import{j as e}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777.js";import{n as v,C as f,m as i,ab as A,b5 as b}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277723.js";import{u as w}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277720.js";import{V as N,X as y,Y as l,ar as c,x as I}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277711.js";import{S as M}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a2777144.js";import{W as T}from"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277719.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27778.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27777.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27774.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27773.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27772.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a277710.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27776.js";import"./v_7_4_3_5_5680d44b-ceb1-449a-bec3-8cbef70a27779.js";function V(){const{open:n}=v(),{activeLanguage:d,setActiveLanguage:m,stateTraducao:t,setStateTraducao:o}=f(),{openRendertype:u}=i(),{IA:p}=A(),{close:x}=i(),{language:s}=w(),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(N,{children:s.traducaoComIATittle}),e.jsx(y,{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(l,{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(l,{estado:t.trascreverAudio,switchUpdate:()=>o("trascreverAudio",!t.trascreverAudio),id:"trascrever_audio"})]})}),e.jsx("div",{className:"mt-2",children:e.jsx(c,{content:s.restaurarMensagensIA,icon:e.jsx(b,{className:"w-6 h-6 text-[var(--panel-header-icon)]"}),setFunction:j})}),p.activeIA===null&&e.jsx("div",{className:"mt-2",children:e.jsx(c,{content:s.chaveAPIIANaoCadastrada,icon:e.jsx(I,{className:"w-6 h-6 text-red-500"}),setFunction:()=>u("Active_IA")})})]})}export{V as default};
