import{r as b,d as h,o as n,c as d,a,l as m,v as u,t as p,e as r,w as x,f as k,i as g,B as C,C as S,g as y}from"./app-91dba96b.js";import{i as N}from"./index-0653e21c.js";import{u as V}from"./urlGenerator-87d92adb.js";import{_ as w}from"./_plugin-vue_export-helper-c27b6911.js";import"./appFunction-1b5b1f43.js";const c=i=>(C("data-v-9cada9cb"),i=i(),S(),i),z={class:"container-fluid pb-5 my-5 installer-container"},B={class:"row justify-content-center align-items-center"},I={class:"col-12 col-lg-7 mt-4 mb-4"},U={class:"card"},D=c(()=>a("div",{class:"card-header"},[a("h4",{class:"mt-2 fw-bolder"},[y(" Company Information "),a("span",{class:"text-danger"},"*")])],-1)),j={class:"card-body"},A={class:"mb-4"},M=c(()=>a("label",{class:"company_name"},[y("Company Name "),a("span",{class:"text-danger"},"*")],-1)),T={key:0,class:"text-danger"},Z={class:"mb-4"},E=c(()=>a("label",{class:"address"},"Address",-1)),G={key:0,class:"text-danger"},q={class:"mb-4"},F=c(()=>a("label",{class:"zakat_nisab"},[y("Zakat Nisab "),a("span",{class:"text-danger"},"*")],-1)),H={key:0,class:"text-danger"},J={class:"mb-4"},K=c(()=>a("label",{class:"form-label"},[y("Currency Symbol "),a("span",{class:"text-danger"},"*")],-1)),L={key:0,class:"text-danger"},O={class:"d-flex justify-content-center gap-3"},P=["disabled"],Q=c(()=>a("span",null,"Next",-1)),R={__name:"companySetup",setup(i){const e=b({}),s=b({}),_=b(!1),v=()=>{_.value=!0,N.post("company-store",e.value).then(o=>{g.success(o.data.message),location.replace(V("email-setup"))}).catch(({response:o})=>{(o==null?void 0:o.status)===422&&(s.value=o.data.errors)}).finally(()=>_.value=!1)};return(o,t)=>{const f=h("app-button-loader");return n(),d("div",z,[a("div",B,[a("div",I,[a("div",U,[D,a("div",j,[a("div",A,[M,m(a("input",{type:"text",class:"form-control",id:"company_name",placeholder:"Company Name","onUpdate:modelValue":t[0]||(t[0]=l=>e.value.company_name=l)},null,512),[[u,e.value.company_name]]),s.value.company_name?(n(),d("small",T,p(s.value.company_name[0]),1)):r("",!0)]),a("div",Z,[E,m(a("input",{type:"text",class:"form-control",id:"address",placeholder:"Company Address","onUpdate:modelValue":t[1]||(t[1]=l=>e.value.address=l)},null,512),[[u,e.value.address]]),s.value.address?(n(),d("small",G,p(s.value.address[0]),1)):r("",!0)]),a("div",q,[F,m(a("input",{type:"number",class:"form-control",id:"zakat_nisab",placeholder:"Zakat Nisab","onUpdate:modelValue":t[2]||(t[2]=l=>e.value.zakat_nisab=l)},null,512),[[u,e.value.zakat_nisab]]),s.value.zakat_nisab?(n(),d("small",H,p(s.value.zakat_nisab[0]),1)):r("",!0)]),a("div",J,[K,m(a("input",{type:"text",class:"form-control",id:"currency_symbol",placeholder:"Currency Symbol","onUpdate:modelValue":t[3]||(t[3]=l=>e.value.currency_symbol=l)},null,512),[[u,e.value.currency_symbol]]),s.value.currency_symbol?(n(),d("small",L,p(s.value.currency_symbol[0]),1)):r("",!0)]),a("div",O,[a("button",{type:"button",class:"btn btn-primary btn-lg px-4",disabled:_.value,onClick:x(v,["prevent"])},[_.value?(n(),k(f,{key:0})):r("",!0),Q],8,P)])])])])])])}}},ea=w(R,[["__scopeId","data-v-9cada9cb"]]);export{ea as default};
