import{j as e,r}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71.js";import{u as p}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7162.js";import{u as c}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7120.js";import{y as l,q as u}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7124.js";import{l as m}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7122.js";import{R as h}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7145.js";import{_ as x,Q as f,$ as g,b6 as j,b7 as v,a0 as A}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7111.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a718.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7119.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a717.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a719.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a716.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a714.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a713.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a712.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7110.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7146.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71104.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71124.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7129.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7138.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7159.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71105.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71106.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7128.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7137.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71107.js";const _=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71164.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 X(){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{X as default};
