import{j as e,_ as u,y as m,J as h,K as o,b2 as x}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9910.js";import{u as v}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9963.js";import{u as d}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9919.js";import{i as l,j}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9921.js";import{p as g}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9923.js";import{R as f}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9946.js";import{a as c}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c994.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9918.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c996.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c998.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c995.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c997.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c999.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9947.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c992.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c993.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9940.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9937.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9960.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9974.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99110.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9927.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9936.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99111.js";const b=c.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99174.js")),[]));function A(){return e.jsx(c.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(b,{})})}const I=()=>{const a=d(s=>s.language),{chatsIA:i,setChatsIA:r}=l(v(s=>({chatsIA:s.chatsIA,setChatsIA:s.setChatsIA}))),n=g(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(),n(e.jsx(A,{}),{placement:"right-end"},s.target)},children:a.open})})]}),e.jsx("div",{children:e.jsx(o,{id:"chats-ia",switchUpdate:()=>r(!i),estado:i})})]})})};function Q(){const{language:a}=d(),{activeMenu:i,setActiveMenu:r}=l(),{close:n}=j();return e.jsxs("div",{children:[e.jsx(m,{children:a.func_menu}),e.jsx(h,{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:[f().map(s=>!s.disabled&&e.jsx("label",{htmlFor:s.id,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:s.icon}),e.jsx("div",{children:s.name}),e.jsx("div",{className:"ml-2 pulse",children:e.jsx("div",{className:"badge badge-outline border-solid open-func",onClick:t=>{t.preventDefault(),s.function(t),s.id!=="google_funcs"&&n()},children:a.open})})]}),e.jsx("div",{children:e.jsx(o,{id:s.id,switchUpdate:()=>r(s.id),estado:i[s.id]})})]})},s.id)),e.jsx(I,{})]})]})}export{Q as default};
