import{j as e,r}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6.js";import{u as p}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f646.js";import{u as c}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f620.js";import{v as l,n as u}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f623.js";import{l as m}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f622.js";import{R as h}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f643.js";import{_ as x,V as f,X as g,b9 as j,ba as v,Y as A}from"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f611.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f68.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f619.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f67.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f64.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f63.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f62.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f610.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f66.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f69.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f645.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f647.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6104.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6124.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f626.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f636.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f659.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6105.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6106.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f635.js";import"./v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6107.js";const _=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_4_e110faba-0ecf-462e-819c-68342bb684f6162.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};
