import{T as p,c as u,a as c,b as s,t as e,w as S,d as _,f as I,u as a,v as A,g as E,o as m,q as b}from"./app-13978987.js";import{_ as O}from"./AdminLayout-bd13ff9d.js";import{_ as g}from"./SpinnerBtn-cb152833.js";import{_ as D}from"./PageHeader-8c638686.js";import"./dropdown-45d66330.js";const P={class:"container p-4 sm:p-6"},T={class:"space-y-6"},f={class:"grid grid-cols-1 lg:grid-cols-12"},v={class:"lg:col-span-5"},y={class:"lg:col-span-7"},h={class:"card card-body space-y-4"},K={class:"-ml-1 text-lg"},F={class:"label"},Y={value:"true"},B={value:"false"},M={class:"card card-body space-y-4"},N={class:"-ml-1 text-lg"},L={class:"label"},U={class:"card card-body space-y-4"},C={class:"-ml-1 text-lg"},k={class:"label"},V={value:"stage"},w={value:"production"},$={class:"label"},j={class:"card card-body space-y-4"},q={class:"-ml-1 text-lg"},z={class:"label"},G=E({layout:O}),X=Object.assign(G,{__name:"AiApi",props:["id","STABLE_DIFFUSION_API_MODE","STABLE_DIFFUSION_API_KEY","STABILITY_AI_API_KEY","OPENAI_API_KEY","AI_MOCK_DATA","segments","buttons"],setup(d){const i=d,l=p({STABLE_DIFFUSION_API_MODE:i.STABLE_DIFFUSION_API_MODE,STABLE_DIFFUSION_API_KEY:i.STABLE_DIFFUSION_API_KEY,STABILITY_AI_API_KEY:i.STABILITY_AI_API_KEY,OPENAI_API_KEY:i.OPENAI_API_KEY,AI_MOCK_DATA:i.AI_MOCK_DATA});function r(){l.put(route("admin.developer-settings.update",i.id),{onSuccess:()=>{b.success(trans("Settings has been updated successfully"))}})}return(t,n)=>(m(),u("main",P,[c(D,{title:t.trans("Ai Api Settings"),buttons:d.buttons},null,8,["title","buttons"]),s("div",T,[s("div",f,[s("div",v,[s("strong",null,e(t.trans("Application Ai Api Settings")),1),s("p",null,e(t.trans("Edit you Ai Api Settings")),1)]),s("div",y,[s("form",{onSubmit:S(r,["prevent"]),class:"space-y-4"},[s("div",h,[s("h6",K,e(t.trans("Ai Mock Settings")),1),s("div",null,[s("label",F,e(t.trans("Ai Mock Data")),1),_(s("select",{class:"select","onUpdate:modelValue":n[0]||(n[0]=o=>a(l).AI_MOCK_DATA=o),name:"AI_MOCK_DATA"},[s("option",Y,e(t.trans("Enable")),1),s("option",B,e(t.trans("Disable")),1)],512),[[I,a(l).AI_MOCK_DATA]])])]),s("div",M,[s("h6",N,e(t.trans("Open AI Settings")),1),s("div",null,[s("label",L,e(t.trans("OpenAi Api Key")),1),_(s("input",{type:"text","onUpdate:modelValue":n[1]||(n[1]=o=>a(l).OPENAI_API_KEY=o),class:"input",placeholder:"APi key"},null,512),[[A,a(l).OPENAI_API_KEY]])])]),s("div",U,[s("h6",C,e(t.trans("Stable Diffusion Settings")),1),s("div",null,[s("label",k,e(t.trans("Stable Diffusion Api Mode")),1),_(s("select",{class:"select","onUpdate:modelValue":n[2]||(n[2]=o=>a(l).STABLE_DIFFUSION_API_MODE=o),name:"STABLE_DIFFUSION_API_MODE"},[s("option",V,e(t.trans("Stage")),1),s("option",w,e(t.trans("Production")),1)],512),[[I,a(l).STABLE_DIFFUSION_API_MODE]])]),s("div",null,[s("label",$,e(t.trans("Stable Diffusion Api Key")),1),_(s("input",{type:"text","onUpdate:modelValue":n[3]||(n[3]=o=>a(l).STABLE_DIFFUSION_API_KEY=o),class:"input",placeholder:"APi key"},null,512),[[A,a(l).STABLE_DIFFUSION_API_KEY]])])]),s("div",j,[s("h6",q,e(t.trans("Stability Ai Settings")),1),s("div",null,[s("label",z,e(t.trans("Stability Ai Api Key")),1),_(s("input",{type:"text","onUpdate:modelValue":n[4]||(n[4]=o=>a(l).STABILITY_AI_API_KEY=o),class:"input",placeholder:"APi key"},null,512),[[A,a(l).STABILITY_AI_API_KEY]])]),s("div",null,[c(g,{processing:a(l).processing,"btn-text":t.trans("Save Changes")},null,8,["processing","btn-text"])])])],32)])])])]))}});export{X as default};
