import{j as e,_ as u,y as m,H as h,J as o,a$ as x}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b10.js";import{u as v}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b63.js";import{u as d}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b19.js";import{i as l,j}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b21.js";import{p as g}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b23.js";import{R as f}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b46.js";import{a as c}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b4.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b18.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b8.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b5.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b7.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b9.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b47.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b6.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b2.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b3.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b40.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b37.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b60.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b74.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b110.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b27.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b36.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b111.js";const b=c.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b174.js")),[]));function A(){return e.jsx(c.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(b,{})})}const I=()=>{const a=d(s=>s.language),{chatsIA:i,setChatsIA:r}=l(v(s=>({chatsIA:s.chatsIA,setChatsIA:s.setChatsIA}))),n=g(s=>s.open);return e.jsx("label",{htmlFor:"chats-ia",children:e.jsxs("div",{className:"flex justify-between items-center rounded-lg hover:bg-[var(--dropdown-background-hover)] cursor-pointer p-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"menu-item pulse cursor-pointer rounded-[10px] bg-[var(--menu-bar-item-background-active)] p-2 text-[var(--panel-header-icon)]",children:e.jsx(x,{})}),e.jsx("div",{children:a.assistenteIA}),e.jsx("div",{className:"ml-2 pulse",children:e.jsx("div",{className:"badge badge-outline border-solid open-func",onClick:s=>{s.preventDefault(),n(e.jsx(A,{}),{placement:"right-end"},s.target)},children:a.open})})]}),e.jsx("div",{children:e.jsx(o,{id:"chats-ia",switchUpdate:()=>r(!i),estado:i})})]})})};function K(){const{language:a}=d(),{activeMenu:i,setActiveMenu:r}=l(),{close:n}=j();return e.jsxs("div",{children:[e.jsx(m,{children:a.func_menu}),e.jsx(h,{size:"16px",children:a.func_menu_des}),e.jsxs("div",{className:"flex flex-col gap-1 pt-6 overflow-y-auto",style:{maxHeight:"calc(-110px + 100vh)"},children:[f().map(s=>!s.disabled&&e.jsx("label",{htmlFor:s.id,children:e.jsxs("div",{className:"flex justify-between items-center rounded-lg hover:bg-[var(--dropdown-background-hover)] cursor-pointer p-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"menu-item pulse cursor-pointer rounded-[10px] bg-[var(--menu-bar-item-background-active)] p-2 text-[var(--panel-header-icon)]",children:s.icon}),e.jsx("div",{children:s.name}),e.jsx("div",{className:"ml-2 pulse",children:e.jsx("div",{className:"badge badge-outline border-solid open-func",onClick:t=>{t.preventDefault(),s.function(t),s.id!=="google_funcs"&&n()},children:a.open})})]}),e.jsx("div",{children:e.jsx(o,{id:s.id,switchUpdate:()=>r(s.id),estado:i[s.id]})})]})},s.id)),e.jsx(I,{})]})]})}export{K as default};
