import{b as f,a as b,_ as v}from"./BasePage-C3DiNX0e.js";import{_ as S}from"./UToggle.vue_vue_type_script_setup_true_lang-BWEOakO2.js";import{u as _,O as C,c as R}from"./index-_-ijfL1Q.js";import{l as N,r,k as V,f as O,h as $,o as h,w as s,a as n,u as U}from"./index-DRopsKkO.js";const A={__name:"Page",setup(G){const t=_(),e=N({sellingStatus:"",employeesNumber:"",annualRevenue:""}),i=r([]),c=r([]),g=r([]),y=V(()=>!e.sellingStatus||!e.employeesNumber||!e.annualRevenue);O(async()=>{t.hasCompanyData||await t.getCompany(),e.sellingStatus=t.company.about.sellingStatus,e.employeesNumber=t.company.about.employeesNumber,e.annualRevenue=t.company.about.annualRevenue,c.value=t.company.about.employeesNumberOptions,g.value=t.company.about.annualRevenueOptions,i.value=t.company.about.sellingStatusOptions});async function d(a){R(e,t.company.about)&&(await t.updateCompanyAbout(e),t.company.about.sellingStatus=e.sellingStatus,t.company.about.employeesNumber=e.employeesNumber,t.company.about.annualRevenue=e.annualRevenue),a()}return(a,o)=>{const p=b,m=S,u=f;return h(),$(v,{group:a.$t("group.company"),"group-step":U(C)*3,title:a.$t("title.aboutCompany"),step:2,"prevent-next":y.value,prev:{name:"GettingStarted/Company/Step1"},next:{name:"GettingStarted/Company/Step3"},skip:{name:"GettingStarted/Company/Step3"},onContinue:d},{default:s(()=>[n(u,null,{default:s(()=>[n(u,{gap:"lg",align:"center"},{default:s(()=>[n(p,{class:"text-center font-bold",html:a.$t("label.readyToSell")},null,8,["html"]),n(m,{modelValue:e.sellingStatus,"onUpdate:modelValue":o[0]||(o[0]=l=>e.sellingStatus=l),options:i.value,config:{options:"justify-center"},name:"sell",separated:""},null,8,["modelValue","options"])]),_:1}),n(u,{gap:"lg",align:"center"},{default:s(()=>[n(p,{class:"text-center font-bold",html:a.$t("label.companySize")},null,8,["html"]),n(m,{modelValue:e.employeesNumber,"onUpdate:modelValue":o[1]||(o[1]=l=>e.employeesNumber=l),options:c.value,config:{options:"justify-center"},name:"employees",separated:""},null,8,["modelValue","options"])]),_:1}),n(u,{gap:"lg"},{default:s(()=>[n(p,{class:"text-center font-bold",html:a.$t("label.currentRevenue")},null,8,["html"]),n(m,{modelValue:e.annualRevenue,"onUpdate:modelValue":o[2]||(o[2]=l=>e.annualRevenue=l),options:g.value,config:{options:"justify-center"},name:"revenue",separated:""},null,8,["modelValue","options"])]),_:1})]),_:1})]),_:1},8,["group","group-step","title","prevent-next"])}}};export{A as default};
