import{j as e,_ as u,Q as m,Z as h,$ as o,a_ as x}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{u as v}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf63.js";import{u as l}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{x as d,p as g}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{l as j}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf21.js";import{R as f}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf46.js";import{a as c}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf2.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf3.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf47.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf107.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf126.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf28.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf41.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf38.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf60.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf74.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf108.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf27.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf37.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf109.js";const b=c.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf162.js")),[]));function A(){return e.jsx(c.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(b,{})})}const I=()=>{const a=l(s=>s.language),{chatsIA:r,setChatsIA:i}=d(v(s=>({chatsIA:s.chatsIA,setChatsIA:s.setChatsIA}))),t=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(),t(e.jsx(A,{}),{placement:"right-end"},s.target)},children:a.open})})]}),e.jsx("div",{children:e.jsx(o,{id:"chats-ia",switchUpdate:()=>i(!r),estado:r})})]})})};function W(){const{language:a}=l(),{activeMenu:r,setActiveMenu:i}=d(),{close:t}=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:n=>{n.preventDefault(),s.function(n),s.id!=="google_funcs"&&t()},children:a.open})})]}),e.jsx("div",{children:e.jsx(o,{id:s.id,switchUpdate:()=>i(s.id),estado:r[s.id]})})]})},s.id)),e.jsx(I,{})]})]})}export{W as default};
