import{j as e,r}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777.js";import{u as p}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277746.js";import{u as c}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277720.js";import{v as l,n as u}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277723.js";import{l as m}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277722.js";import{R as h}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277743.js";import{_ as x,V as f,X as g,b9 as j,ba as v,Y as A}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277711.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27778.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277719.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27777.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27774.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27773.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27772.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277710.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27776.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27779.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277745.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277747.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777104.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777124.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277726.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277736.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277759.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777105.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777106.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277735.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777107.js";const _=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777162.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=u(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 W(){const{language:t}=c(),{activeMenu:a,setActiveMenu:o}=l(),{close:i}=m();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{W as default};
