import{j as e,v,D as f,F as i,ad as l,l as A}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{o as b,n as c,J as w,aJ as N}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{u as y}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e28.js";import{u as I}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import{S as M}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e155.js";import{W as T}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";function E(){const{open:n}=b(),{activeLanguage:d,setActiveLanguage:m,stateTraducao:t,setStateTraducao:o}=y(),{openRendertype:u}=c(),{IA:p}=w(),{close:x}=c(),{language:s}=I(),h=a=>{const r=a.currentTarget;n(e.jsx(M,{onSelect:g=>m(g)}),{placement:"right"},r,-10,{mounted:()=>r.setAttribute("style","outline-style: solid; outline-width: 2px; outline-offset: 2px; outline-color: hsl(var(--bc) / 0.2);"),desmouted:()=>r.removeAttribute("style")})},j=()=>{T.Msg("replaceAllTradutorMsg"),x()};return e.jsxs("div",{className:"w-[580px] flex flex-col gap-3",children:[e.jsx(v,{children:s.traducaoComIATittle}),e.jsx(f,{children:s.traducaoComIASubtittle}),e.jsx("div",{className:"form-control w-full",children:e.jsx("div",{className:"select select-bordered select-sm !cursor-pointer border border-solid",onClick:a=>h(a),children:e.jsxs("div",{className:"pulse flex gap-2 py-1 items-center",children:[e.jsx("span",{}),e.jsx("span",{className:"text-base overflow-hidden text-ellipsis whitespace-nowrap",style:{width:"calc(300px - 100px)"},children:d.label})]})})}),e.jsx("label",{htmlFor:"traslate_message",children:e.jsxs("div",{className:"flex gap-2 cursor-pointer justify-between items-center h-9 px-1 py-2 rounded",children:[e.jsx("span",{children:s.disabledBtnIA}),e.jsx(i,{estado:t.message,switchUpdate:()=>o("message",!t.message),id:"traslate_message"})]})}),e.jsx("label",{htmlFor:"trascrever_audio",children:e.jsxs("div",{className:"flex gap-2 cursor-pointer justify-between items-center h-9 px-1 py-2 rounded",children:[e.jsx("span",{children:s.disabledBtnAudio}),e.jsx(i,{estado:t.trascreverAudio,switchUpdate:()=>o("trascreverAudio",!t.trascreverAudio),id:"trascrever_audio"})]})}),e.jsx("div",{className:"mt-2",children:e.jsx(l,{content:s.restaurarMensagensIA,icon:e.jsx(N,{className:"w-6 h-6 text-[var(--panel-header-icon)]"}),setFunction:j})}),p.activeIA===null&&e.jsx("div",{className:"mt-2",children:e.jsx(l,{content:s.chaveAPIIANaoCadastrada,icon:e.jsx(A,{className:"w-6 h-6 text-red-500"}),setFunction:()=>u("Active_IA")})})]})}export{E as default};
