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