import{j as e,_ as p,V as m,$ as u,a_ as h,a$ as x,a0 as f}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab710.js";import{u as g}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab763.js";import{u as r}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab719.js";import{x as c,p as j}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab723.js";import{m as v}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab721.js";import{R as _}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab746.js";import{a as l}from"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab74.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab718.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab76.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab78.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab75.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab77.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab79.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab72.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab73.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab747.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7105.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7125.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab728.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab741.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab738.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab760.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7106.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7107.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab727.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab737.js";import"./v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7108.js";const A=l.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_13_59773d94-6a68-4ed1-8b86-dcf9791b0ab7164.js")),[]));function I(){return e.jsx(l.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(A,{})})}const b=()=>{const a=r(s=>s.language),{chatsIA:t,setChatsIA:o}=c(g(s=>({chatsIA:s.chatsIA,setChatsIA:s.setChatsIA}))),i=j(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(),i(e.jsx(I,{}),{placement:"right-end"},s.target)},children:a.open})})]}),e.jsx("div",{children:e.jsx(f,{id:"chats-ia",switchUpdate:()=>o(!t),estado:t})})]})})};function Y(){const{language:a}=r(),{activeMenu:t,setActiveMenu:o}=c(),{close:i}=v();return e.jsxs("div",{children:[e.jsx(m,{children:a.func_menu}),e.jsx(u,{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:[_().map(s=>!s.disabled&&e.jsx(h,{id:s.id,name:s.name,icon:s.icon,onClick:n=>{n.stopPropagation(),s.function(n),s.id!=="google_funcs"&&i()},text_open:a.open,switch_state:t[s.id],switch_update:()=>o(s.id)},s.id)),e.jsx(b,{})]})]})}export{Y as default};
