import{s as u,T as _,c as b,a as r,b as s,t as l,w as g,d as n,v as d,u as t,f as m,g as f,o as v}from"./app-f0fa1d4d.js";import{_ as h}from"./SpinnerBtn-17822d7e.js";import{_ as c}from"./InputFieldError-0e4ea242.js";import{_ as y}from"./AdminLayout-196336a1.js";import{_ as x}from"./PageHeader-1622a4ec.js";const w={class:"container flex-grow p-4 sm:p-6"},V={class:"mx-auto lg:w-9/12"},C={class:"card-title mb-2"},j={class:"card card-body"},k={class:"mb-2"},U={class:"label mb-1"},T={class:"mb-2"},$={class:"label mb-1"},B={class:"card card-body"},D={class:"mb-2"},E={class:"label mb-1"},M={class:"text-yellow-400"},N=s("code",null,"[]",-1),P={class:"flex items-end justify-between"},S={class:"w-80"},z={for:"toggle-featured",class:"toggle toggle-sm"},A=s("div",{class:"toggle-body"},null,-1),O={class:"label label-md capitalize"},q={class:"flex flex-col justify-end"},L=Object.assign({layout:y},{__name:"Create",props:[],setup(F){u();const e=_({title:"",description:"",icon:"",status:"active",prompt:"",meta:{}}),p=()=>{e.post(route("admin.videoai.prompt-preset.store"),{onSuccess:()=>{e.reset()}})};return(o,a)=>(v(),b("main",w,[r(x),s("div",V,[s("h3",C,l(o.trans("Create Prompt Preset")),1),s("form",{onSubmit:g(p,["prevent"]),class:"space-y-6"},[s("div",j,[s("div",k,[s("label",U,l(o.trans("Title")),1),n(s("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=i=>t(e).title=i),class:"input"},null,512),[[d,t(e).title]]),r(c,{message:t(e).errors.title},null,8,["message"])]),s("div",T,[s("label",$,l(o.trans("Description")),1),n(s("textarea",{"onUpdate:modelValue":a[1]||(a[1]=i=>t(e).description=i),class:"textarea"},null,512),[[d,t(e).description]]),r(c,{message:t(e).errors.description},null,8,["message"])])]),s("div",B,[s("div",D,[s("label",E,l(o.trans("Custom Prompt")),1),n(s("textarea",{"onUpdate:modelValue":a[2]||(a[2]=i=>t(e).prompt=i),ref:"bodyEl",class:"textarea"},null,512),[[d,t(e).prompt]]),r(c,{message:t(e).errors.prompt},null,8,["message"]),s("small",M,[m(" * "+l(o.trans("Use"))+" ",1),N,m(" "+l(o.trans("for subject or action replacement. Example:"))+" ",1),s("code",null,l(o.trans("A [subject] walking in the [action]")),1)])]),s("div",P,[s("div",S,[s("label",z,[n(s("input",{"onUpdate:modelValue":a[3]||(a[3]=i=>t(e).status=i),"true-value":"active","false-value":"inactive",class:"toggle-input peer sr-only",id:"toggle-featured",type:"checkbox"},null,512),[[f,t(e).status]]),A,s("span",O,l(t(e).status),1)]),r(c,{message:t(e).errors.status},null,8,["message"])]),s("div",q,[r(h,{processing:t(e).processing,"btn-text":o.trans("Create")},null,8,["processing","btn-text"])])])])],32)])]))}});export{L as default};
