import{j as e,r}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f.js";import{u as p}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f46.js";import{u as c}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f20.js";import{v as l,n as m}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f23.js";import{g as u}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f22.js";import{R as h}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f43.js";import{_ as x,D as f,H as g,b9 as j,ba as v,J as A}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f11.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f8.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f19.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f7.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f4.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f3.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f2.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f10.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f6.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f9.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f45.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f47.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f104.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f125.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f26.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f105.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f36.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f59.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f106.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f107.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f35.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f108.js";const _=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f163.js")),[]));function b(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(_,{})})}const I=()=>{const t=c(s=>s.language),{chatsIA:a,setChatsIA:o}=l(p(s=>({chatsIA:s.chatsIA,setChatsIA:s.setChatsIA}))),i=m(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(v,{})}),e.jsx("div",{children:t.assistenteIA}),e.jsx("div",{className:"ml-2 pulse",children:e.jsx("div",{className:"badge badge-outline border-solid open-func",onClick:s=>{s.preventDefault(),i(e.jsx(b,{}),{placement:"right-end"},s.target)},children:t.open})})]}),e.jsx("div",{children:e.jsx(A,{id:"chats-ia",switchUpdate:()=>o(!a),estado:a})})]})})};function Z(){const{language:t}=c(),{activeMenu:a,setActiveMenu:o}=l(),{close:i}=u();return e.jsxs("div",{children:[e.jsx(f,{children:t.func_menu}),e.jsx(g,{size:"16px",children:t.func_menu_des}),e.jsxs("div",{className:"flex flex-col gap-1 pt-6 overflow-y-auto",style:{maxHeight:"calc(-110px + 100vh)"},children:[h().map(s=>!s.disabled&&e.jsx(j,{id:s.id,name:s.name,icon:s.icon,onClick:n=>{n.stopPropagation(),s.function(n),s.id!=="google_funcs"&&i()},text_open:t.open,switch_state:a[s.id],switch_update:()=>o(s.id)},s.id)),e.jsx(I,{})]})]})}export{Z as default};
