import{L as _}from"./Layout-DhxLvS0V.js";import{T as V}from"./TextInput-UGcC5hIa.js";import{L as w}from"./LoadingButton-BqD68voa.js";import{F as v}from"./FileInput-BAEpJ7ii.js";import{X as y,C as i,j as d,t as p,m as l,k as s,H as h,z as x,y as m,E as C,x as E}from"./vendor-CoimUlS3.js";import{_ as k}from"./RichEditor-5gaZmhKN.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 H={layout:_,components:{LoadingButton:w,TextInput:V,FileInput:v,Head:y,RichEditor:k},props:{title:String},remember:"form",data(){return{form:this.$inertia.form({title:null,icon:null,image:null,details:""})}},methods:{store(){this.form.post(this.route("dashboard.services.store"))}}},L={class:"bg-white rounded-md shadow overflow-hidden max-w-full"},N={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},S={class:"pr-6 pb-8 w-full"},T={class:"form-label"},U={key:0,class:"text-red-600 text-sm mt-1"},F={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function I(r,o,u,R,e,n){const f=i("Head"),a=i("text-input"),c=i("RichEditor"),b=i("file-input"),g=i("loading-button");return p(),d("div",null,[l(f,{title:r.$t(u.title)},null,8,["title"]),s("div",L,[s("form",{onSubmit:o[4]||(o[4]=h((...t)=>n.store&&n.store(...t),["prevent"]))},[s("div",N,[l(a,{modelValue:e.form.title,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.title=t),error:e.form.errors.title,class:"pr-6 pb-8 w-full lg:w-2/3",label:r.$t("Title")},null,8,["modelValue","error","label"]),l(a,{modelValue:e.form.icon,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.icon=t),error:e.form.errors.icon,class:"pr-6 pb-8 w-full lg:w-1/3",label:r.$t("Icon")},null,8,["modelValue","error","label"]),s("div",S,[s("label",T,m(r.$t("Details"))+":",1),l(c,{modelValue:e.form.details,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.details=t),class:"mt-1"},null,8,["modelValue"]),e.form.errors.details?(p(),d("div",U,m(e.form.errors.details),1)):x("",!0)]),l(b,{modelValue:e.form.image,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.image=t),error:e.form.errors.image,class:"pb-8 pr-6 w-full lg:w-1/3",type:"file",accept:"image/*",label:r.$t("Feature image")},null,8,["modelValue","error","label"])]),s("div",F,[l(g,{loading:e.form.processing,class:"btn-indigo",type:"submit"},{default:C(()=>[E(m(r.$t("Create Service")),1)]),_:1},8,["loading"])])],32)])])}const Y=B(H,[["render",I]]);export{Y as default};
