import{L as b}from"./Layout-BNWXhjq5.js";import{T as g}from"./TextInput-CRQDtFka.js";import{S as w}from"./SelectInput-Cao9wiYo.js";import{T as V}from"./TextareaInput-CESzil30.js";import{L as v}from"./LoadingButton-BKJMdZnQ.js";import{Z as h,i as x,r as l,c as y,o as S,a as n,b as s,d as C,w as m,t as a,e as I}from"./app-BhD6J0Va.js";import{_ as L}from"./FlashMessages-DW2Y2mP0.js";import"./moment-DeOISj6Y.js";import"./v4-SoommWqA.js";const T={metaInfo:{title:"Create FAQ"},components:{LoadingButton:v,SelectInput:w,TextareaInput:V,TextInput:g,Link:x,Head:h},layout:b,props:{title:String},remember:"form",data(){return{form:this.$inertia.form({name:null,status:1,details:null})}},methods:{store(){this.form.post(this.route("faqs.store"))}}},k={class:"bg-white rounded-md shadow overflow-hidden max-w-full"},B={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},N={value:1},A={value:0},D={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function F(o,t,p,H,e,i){const u=l("Head"),d=l("text-input"),f=l("select-input"),c=l("textarea-input"),_=l("loading-button");return S(),y("div",null,[n(u,{title:o.$t(p.title)},null,8,["title"]),s("div",k,[s("form",{onSubmit:t[3]||(t[3]=C((...r)=>i.store&&i.store(...r),["prevent"]))},[s("div",B,[n(d,{modelValue:e.form.name,"onUpdate:modelValue":t[0]||(t[0]=r=>e.form.name=r),error:e.form.errors.name,class:"pr-6 pb-8 w-full lg:w-1/2",label:o.$t("Name")},null,8,["modelValue","error","label"]),n(f,{modelValue:e.form.status,"onUpdate:modelValue":t[1]||(t[1]=r=>e.form.status=r),error:e.form.errors.status,class:"pr-6 pb-8 w-full lg:w-1/2",label:o.$t("Status")},{default:m(()=>[s("option",N,a(o.$t("Active")),1),s("option",A,a(o.$t("Inactive")),1)]),_:1},8,["modelValue","error","label"]),n(c,{id:"ticketDetails",name:"content",modelValue:e.form.details,"onUpdate:modelValue":t[2]||(t[2]=r=>e.form.details=r),error:e.form.errors.details,class:"pr-6 pb-8 w-full",placeholder:o.$t("Faq Description")},null,8,["modelValue","error","placeholder"])]),s("div",D,[n(_,{loading:e.form.processing,class:"btn-indigo",type:"submit"},{default:m(()=>[I(a(o.$t("Create FAQ")),1)]),_:1},8,["loading"])])],32)])])}const J=L(T,[["render",F]]);export{J as default};
