import{b as f,_ as b,a as v}from"./BasePage-aJlR_RJI.js";import{_ as S}from"./UToggle.vue_vue_type_script_setup_true_lang-BXyNT88P.js";import{c as _}from"./helper.service-Dk93koq0.js";import{u as C,O as R}from"./index-DruWBKkm.js";import{j as N,r,g as V,k as O,h as $,o as h,w as s,a as n,u as U}from"./index-CdEV5Lsj.js";const B={__name:"Page",setup(G){const t=C(),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){_(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 m=b,p=S,u=f;return h(),$(v,{group:a.$t("group.company"),"group-step":U(R)*2,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(m,{class:"text-center font-bold",html:a.$t("label.readyToSell")},null,8,["html"]),n(p,{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(m,{class:"text-center font-bold",html:a.$t("label.companySize")},null,8,["html"]),n(p,{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(m,{class:"text-center font-bold",html:a.$t("label.currentRevenue")},null,8,["html"]),n(p,{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{B as default};
