1import{o as m,u,r as p,c9 as _,g as d,a0 as j,e as I,ca as w,j as r,B as E,av as P,S as g,H as O,T as l,b as M,bm as N,v as T,w as k,ce as D,ch as R,aE as H}from"./index-DkpLsOxt.js";import{u as B}from"./useStepOneNavigation-BesXJzfa.js";import{O as C}from"./OnboardingStepContainer-lQAq9sAp.js";import{R as L,a as Y}from"./radio-CJ1bI_tI.js";import"./useProfileSetupAbTest-nFGELYqY.js";import"./StepProgressBar-Dp9yOIRz.js";import"./index-Cx4xmqgY.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"23d597f"},s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[new s.Error().stack]=(function(t){for(var o=1;o<arguments.length;o++){var e=arguments[o];if(e!=null)for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])}return t})({},s._sentryModuleMetadata[new s.Error().stack],{"_sentryBundlerPluginAppKey:meetsmore-web-app-key":!0});var n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="e5acf9fa-9fc7-4625-93fe-697b8d343528",s._sentryDebugIdIdentifier="sentry-dbid-e5acf9fa-9fc7-4625-93fe-697b8d343528")}catch{}})();const z=()=>{const s=m(),n=u(e=>e.profile.profile),t=u(e=>e.auth.user);return p.useEffect(()=>{var e;n||(e=t==null?void 0:t.profiles)!=null&&e[0]&&s(_(d(t.profiles[0])))},[n,t]),((n==null?void 0:n.services)??[]).map(({_id:e,key:a,name:c})=>({_id:e,key:a,name:c}))},A=()=>{var f;const{serviceId:s}=j(),n=z(),t=u(i=>i.auth.user),o=(f=t==null?void 0:t.profiles)!=null&&f[0]?d(t.profiles[0]):"",[e,a]=p.useState(null),c=I(),v=m(),{isLoading:h,currentStep:x,totalSteps:b}=B("selectOneService"),[y]=w();p.useEffect(()=>{if(!e){if(s&&n.some(i=>d(i)===s)){a(s);return}n.length===1&&a(d(n[0]))}},[n,e,s]);const S=()=>{e&&(v(T(k.web.CLICK_BUTTON,{trackPath:"pro_onb_select_one_service_next",serviceId:e})),y({upsertProOnboardingProgressBodyDto:{serviceId:e,progress:D.businessHour}}),c(R.setBusinessHour({fromSignup:1,serviceId:e,newOnboardingFlow:1})))};return r.jsx(C,{stepNumber:1,stepTitle:"ãããã£ã¼ã«ä½æ",currentPage:x,totalPages:b,onNext:S,nextDisabled:e===null||h,children:r.jsx(E,{paddingX:"md",paddingY:"xl",children:r.jsx(P,{maxWidth:"sm",children:r.jsxs(g,{space:"lg",children:[r.jsxs(g,{space:"sm",children:[r.jsx(O,{level:1,size:5,children:"è¨å®ãµã¼ãã¹ã®é¸æ"}),r.jsx(l,{fontSize:"sm",color:"secondary",children:"ã¾ãã¯ãæåã«è¨å®ãããµã¼ãã¹ã1ã¤é¸ã³ã¾ãããã"})]}),r.jsx(L,{name:"onboarding-service",value:e??void 0,onValueChange:a,className:"md:grid-cols-2",children:n.map(i=>r.jsx("label",{className:"cursor-pointer",children:r.jsxs(M,{paddingY:"sm",space:"sm",alignY:"center",wrap:"none",children:[r.jsx(Y,{value:i._id}),r.jsx(l,{children:i.name})]})},i._id))}),o&&r.jsxs(l,{fontSize:"sm",className:"text-center",children:["叿ã®ãµã¼ãã¹ããªãæ¹ã¯ã",r.jsx(N,{to:`/account/services/add/${o}?newOnboardingFlow=1&from=/signup-pro/select-one-service`,className:"mmlink",children:"ãµã¼ãã¹ã追å ãã"})]})]})})})})},$=()=>r.jsx("div",{style:{paddingTop:H},children:r.jsx(A,{})});export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.