import{j as e}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a71.js";import{u as n}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7162.js";import{al as d,am as p,an as m,ao as x}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7124.js";import{u as v}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7120.js";import{Q as b,$ as l,a1 as g,a2 as h}from"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7111.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a717.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a719.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a716.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a718.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7119.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a714.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a713.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a712.js";import"./v_7_4_2_28_54378c94-eda0-47d4-8f59-c666edac6a7110.js";function _(){const{language:s}=v(),{IA:i,setIA:o,viewIA:a,setViewIA:r}=d(n(t=>({IA:t.IA,setIA:t.setIA,viewIA:t.viewIA,setViewIA:t.setViewIA}))),c=()=>{a==="Gemini"?p():a==="GPT"?m():a==="Groq"&&x()};return e.jsxs("div",{className:"w-[500px]",children:[e.jsx("div",{children:e.jsx(b,{children:s.assistenteIA})}),e.jsxs("div",{className:"mt-4 flex flex-col gap-4",children:[e.jsxs("div",{role:"tablist",className:"tabs tabs-boxed w-[500px]",children:[e.jsxs("a",{role:"tab",className:"tab font-bold bg-base-200 gap-2 "+(a==="Groq"?"tab-active !bg-[var(--primaria)] !text-[var(--letra)]":""),onClick:()=>r("Groq"),children:["Groq ",s.gratuita,i.activeIA==="Groq"&&e.jsx("div",{className:"badge badge-accent badge-xs !bg-[var(--secundaria)] shadow-2xl pulse !text-[var(--letra)] px-1 py-[10px] border border-solid border-[var(--letra)]",children:e.jsx("span",{className:"pb-[3px]",children:s.active})})]}),e.jsxs("a",{role:"tab",className:"tab font-bold bg-base-200 gap-2 "+(a==="Gemini"?"tab-active !bg-[var(--primaria)] !text-[var(--letra)]":""),onClick:()=>r("Gemini"),children:["Gemini ",s.gratuita,i.activeIA==="Gemini"&&e.jsx("div",{className:"badge badge-accent badge-xs !bg-[var(--secundaria)] shadow-2xl pulse !text-[var(--letra)] px-1 py-[10px] border border-solid border-[var(--letra)]",children:e.jsx("span",{className:"pb-[3px]",children:s.active})})]}),e.jsxs("a",{role:"tab",className:"tab font-bold bg-base-200 gap-2 "+(a==="GPT"?"tab-active !bg-[var(--primaria)] !text-[var(--letra)]":""),onClick:()=>r("GPT"),children:["GPT",i.activeIA==="GPT"&&e.jsx("div",{className:"badge badge-accent badge-xs !bg-[var(--secundaria)] shadow-2xl pulse !text-[var(--letra)] px-1 py-[10px] border border-solid border-[var(--letra)]",children:e.jsx("span",{className:"pb-[3px]",children:s.active})})]})]}),e.jsxs("div",{children:[a==="Gemini"&&e.jsxs(l,{children:[s.inteligenciaDesenvolvidaGoogle,e.jsx("a",{href:"https://aistudio.google.com/app/apikey",target:"_blank",children:" https://aistudio.google.com/app/apikey"})]}),a==="GPT"&&e.jsxs(l,{children:[s.inteligenciaDesenvolvidaOpenIa,e.jsx("a",{href:"https://platform.openai.com/api-keys",target:"_blank",children:" https://platform.openai.com/api-keys"})]}),a==="Groq"&&e.jsxs(l,{children:[s.useIAGroqDesc,e.jsx("a",{href:"https://console.groq.com/keys",target:"_blank",children:" https://console.groq.com/keys"})]})]}),e.jsxs("label",{className:"input input-bordered input-sm flex items-center gap-2 border border-solid",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-4 h-4 opacity-70 "+(i.activeIA===a?"text-[var(--unread-marker-background)]":""),children:e.jsx("path",{fillRule:"evenodd",d:"M14 6a4 4 0 0 1-4.899 3.899l-1.955 1.955a.5.5 0 0 1-.353.146H5v1.5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2.293a.5.5 0 0 1 .146-.353l3.955-3.955A4 4 0 1 1 14 6Zm-4-2a.75.75 0 0 0 0 1.5.5.5 0 0 1 .5.5.75.75 0 0 0 1.5 0 2 2 0 0 0-2-2Z",clipRule:"evenodd"})}),e.jsx("input",{type:"text",placeholder:s.useIAInputPlace,className:"grow",value:i[`key${a}`],onChange:t=>o(`key${a}`,t.target.value)})]}),e.jsxs("div",{className:"m-auto",children:[i.activeIA===a&&e.jsx(g,{name:`${s.delete} IA ${a}`,funcao:()=>o("activeIA",null)}),i.activeIA!==a&&e.jsx(h,{name:`${s.activate} IA ${a}`,funcao:c})]})]})]})}export{_ as default};
