import{j as e}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{u as f,e as v}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02833.js";import{k as i}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import{a as A}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02838.js";import{u as b}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{a as w,b as N,S as l,am as c,q as y}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{S as I}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028153.js";import{W as M}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0283.js";import{n as T}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02844.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0284.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02820.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0289.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02810.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.js";function G(){const{open:n}=f(),{activeLanguage:d,setActiveLanguage:m,stateTraducao:t,setStateTraducao:o}=v(),{openRendertype:p}=i(),{IA:u}=A(),{close:x}=i(),{language:s}=b(),h=a=>{const r=a.currentTarget;n(e.jsx(I,{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=()=>{M.Msg("replaceAllTradutorMsg"),x()};return e.jsxs("div",{className:"w-[580px] flex flex-col gap-3",children:[e.jsx(w,{children:s.traducaoComIATittle}),e.jsx(N,{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(T,{className:"w-6 h-6 text-[var(--panel-header-icon)]"}),setFunction:j})}),u.activeIA===null&&e.jsx("div",{className:"mt-2",children:e.jsx(c,{content:s.chaveAPIIANaoCadastrada,icon:e.jsx(y,{className:"w-6 h-6 text-red-500"}),setFunction:()=>p("Active_IA")})})]})}export{G as default};
