import{j as e,r}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc.js";import{u as p}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc62.js";import{u as c}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc20.js";import{y as l,q as u}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc24.js";import{l as m}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc22.js";import{R as h}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc45.js";import{_ as x,Q as f,$ as g,b6 as j,b7 as v,a0 as A}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc11.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc8.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc19.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc7.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc9.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc6.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc4.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc3.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc2.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc10.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc46.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc104.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc124.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc29.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc38.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc59.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc105.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc106.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc28.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc37.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc107.js";const _=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc164.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};
