import{L as b}from"./Layout-DhxLvS0V.js";import{T as g}from"./TextInput-UGcC5hIa.js";import{S as w}from"./SelectInput-BeV75IPk.js";import{T as V}from"./TextareaInput-BCCh4Nha.js";import{L as v}from"./LoadingButton-BqD68voa.js";import{X as x,B as h,C as l,j as y,t as C,m as n,k as s,H as S,E as m,y as a,x as k}from"./vendor-CoimUlS3.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./LogoutButton-BZlSuKxY.js";import"./app-W9XHfen4.js";import"./utils-CXPYudwi.js";/* empty css                                                                 */import"./ui-CI37mw-K.js";import"./Logo-DiOikIGZ.js";import"./FlashMessages-D1juQjH6.js";const I={metaInfo:{title:"Create FAQ"},components:{LoadingButton:v,SelectInput:w,TextareaInput:V,TextInput:g,Link:h,Head:x},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"))}}},L={class:"bg-white rounded-md shadow overflow-hidden max-w-full"},T={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},H={value:1},N={value:0},A={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function D(o,t,p,F,e,i){const u=l("Head"),d=l("text-input"),f=l("select-input"),c=l("textarea-input"),_=l("loading-button");return C(),y("div",null,[n(u,{title:o.$t(p.title)},null,8,["title"]),s("div",L,[s("form",{onSubmit:t[3]||(t[3]=S((...r)=>i.store&&i.store(...r),["prevent"]))},[s("div",T,[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",H,a(o.$t("Active")),1),s("option",N,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",A,[n(_,{loading:e.form.processing,class:"btn-indigo",type:"submit"},{default:m(()=>[k(a(o.$t("Create FAQ")),1)]),_:1},8,["loading"])])],32)])])}const W=B(I,[["render",D]]);export{W as default};
