import{_ as h}from"./Input.7105798b.js";import{_ as v}from"./Textarea.7637503b.js";import{_ as V}from"./card.924cd882.js";import{_ as C}from"./Button.c35f3c05.js";import{N as g,bG as y,aL as n,o as _,c,ba as o,a as e,t as N,z as w,b as l,w as d,d as B,bz as S}from"./entry.816e6e91.js";const k={key:0,class:"row mx-0"},D={class:"col-12"},U={class:"alert alert-danger"},z={class:"row mx-0"},A={class:"col-12 mb-4"},P=e("div",null,[e("h6",{class:"text-lg mb-0"},"Basic Info")],-1),$={class:"row"},E={class:"col-lg-6 mb-3"},G={class:"col-lg-6 mb-3"},I={class:"col-lg-12"},L={class:"row mx-0"},M={class:"col-12"},O=g({__name:"create",setup(T){const i=y();i.pageName="New Customer";const s=n({});let r=n(),u=n(!1);const p=async()=>{};return(j,t)=>{const m=h,b=v,f=V,x=C;return _(),c("form",{onSubmit:t[3]||(t[3]=S(a=>p(),["prevent"]))},[o(r)?(_(),c("div",k,[e("div",D,[e("div",U,N(o(r)),1)])])):w("",!0),e("div",z,[e("div",A,[l(f,{"body-classes":"mt-2"},{title:d(()=>[P]),body:d(()=>[e("div",$,[e("div",E,[l(m,{label:"Customer Name",type:"text",placeholder:"Customer Name",modelValue:o(s).name,"onUpdate:modelValue":t[0]||(t[0]=a=>o(s).name=a)},null,8,["modelValue"])]),e("div",G,[l(m,{label:"Customer Phone",type:"text",placeholder:"Customer Phone",modelValue:o(s).phone,"onUpdate:modelValue":t[1]||(t[1]=a=>o(s).phone=a)},null,8,["modelValue"])]),e("div",I,[l(b,{label:"Customer Address",type:"text",placeholder:"Customer Address",modelValue:o(s).address,"onUpdate:modelValue":t[2]||(t[2]=a=>o(s).address=a)},null,8,["modelValue"])])])]),_:1})])]),e("div",L,[e("div",M,[l(x,{type:"submit",color:"main",disabled:o(u)},{default:d(()=>[B("Create")]),_:1},8,["disabled"])])])],32)}}});export{O as default};
