1import{j as e,a7 as x,B as m,a as f,u as w,a8 as S}from"./@themenu-design-system-PPvpWM1I.js";import{u as y}from"./WalletPage-BFNrInqo.js";import{u as p}from"./@react-intl-CKI24l5Z.js";import{a as j}from"./@analytics-DNf5dJTn.js";import{hx as P}from"./index-DE1OpxQz.js";import"./@react-aria-stately-4PMgXtPH.js";import"./@libphonenumber-js-CKk4m8Ay.js";import"./CheckoutSummary-Cglbp12Y.js";import"./ProductProvider-NkJpu-MM.js";import"./useProductQuery-D-yywT9I.js";import"./storeGraphql-Ohg8wK-a.js";import"./useElementHeight-trY62YW4.js";import"./SetOrderCustomFields-B2Tt4j9n.js";import"./order-BxhFZRGD.js";import"./CartItem-BUfXW_sG.js";import"./promoRate-BM5NAj7i.js";import"./useAutoFocus-D070Udbv.js";import"./OrderProvider-CsAf8tQk.js";import"./CartProvider-4OYZXHCd.js";import"./variantUtils-ByJltGTw.js";import"./SafeAreaBottomContainer-q4SekFlo.js";import"./useMobileBottomBarMargin-BN50mBiY.js";import"./CartSavedAmount-CLLCtzEm.js";import"./BottomSheet-D6DgubPX.js";import"./index-CH-tNaWX.js";import"./useSelectedWallet-DbTf81GP.js";import"./GiftMobileAppHeader-BJJ958ln.js";import"./queryIds-DQpqvu2M.js";import"./InfiniteScroll-kVyydUOl.js";import"./InfiniteScroll-B0iJJxiH.js";import"./LeftLayout-8UJsuSag.js";import"./wallets-C6pU-a6D.js";import"./SidebarItem-BcUfl4cr.js";import"./GiftSpotlightPanel-Caj3Pj24.js";import"./useCashbackActivationModal-DlRfs9Bm.js";import"./useCardOrderingSettings-e-D6m-3m.js";import"./PaymentMethodSelector-D0hNw3t7.js";import"./react-spring_web.modern-D3LzJCpj.js";import"./utils-Ko48q6nk.js";import"./@swiper-DRyvN9l1.js";import"./OperationsList-BdENrdJW.js";import"./PlaceWalletEligibility-DUScLIOf.js";import"./useGeolocation-D1jLgU3P.js";import"./RefundRequestDetailsModal-LWwoaUOP.js";import"./Suggestions-CyKE47Vp.js";import"./@utils-CrEFOnIh.js";import"./FormikErrorMessage-othB8Ul0.js";import"./FormikFieldTextarea-D9Mygxeh.js";import"./@luxon-DfZoh-A_.js";import"./paymentMessage-BGvckA4h.js";import"./amount-Br4X-Yef.js";import"./usePotClosedAtMutation-CsJKLmXR.js";import"./isClosedPot-Df8BtXcY.js";import"./activity-BoCWE1Ii.js";import"./UsersSelector-CXvpuwKu.js";import"./pagination-BJ-_4Wsh.js";import"./image-helper-D5qRy8ab.js";import"./UsersListSkeleton-B5sdSVsh.js";import"./ContributeForm.utils-__e5BOeM.js";import"./ItemCardPrice-CJItAz1Q.js";import"./LinkButton-Db3P4osB.js";import"./HomeSlices-DvUfBjLA.js";import"./logging-C_2cHijw.js";import"./useSendAppLink-cx2PMhBJ.js";import"./useRefundRequestList-u3urPv70.js";import"./useLottie-akeooH7S.js";try{let o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new o.Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="f05d7d09-326a-4682-9900-ea9941750450",o._sentryDebugIdIdentifier="sentry-dbid-f05d7d09-326a-4682-9900-ea9941750450")}catch{}const _="https://team.swile.co/assets/onboarding-cesu-step1-cyN0B-w_.png",N=({onNext:o,companyName:i})=>{const{formatMessage:r}=p();return e.jsx(x,{title:r({id:"wallet_page.cesu.onboarding.step.presentation.title"}),text:r({id:"wallet_page.cesu.onboarding.step.presentation.content"},{companyName:i}),illustration:_,children:e.jsx(m,{onClick:o,children:r({id:"wallet_page.cesu.onboarding.cta.continue"})})})},C=({onNext:o,companyName:i,enabledActivities:r})=>{const{formatMessage:s}=p();return e.jsxs("div",{className:"flex h-full flex-col justify-between p-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(f,{component:"h2",variant:"h1",className:"line-clamp-3 text-pretty",children:s({id:"wallet_page.cesu.onboarding.step.listOfServices.title"},{companyName:i})}),e.jsx("div",{className:"mt-24 flex flex-col gap-6",children:r.map(t=>e.jsxs("div",{className:"flex items-center gap-12",children:[e.jsx("div",{className:"flex w-[54px] flex-shrink-0 items-center justify-center",children:t.iconUrl&&e.jsx("img",{src:t.iconUrl,alt:"",className:"h-[54px]"})}),e.jsx(f,{variant:"body",className:"flex-1 text-left",children:t.name})]},t.type))})]}),e.jsx(m,{onClick:o,children:s({id:"wallet_page.cesu.onboarding.cta.continue"})})]})},I="https://team.swile.co/assets/onboarding-cesu-step3-CpYjdbRP.png",h=({onNext:o})=>{const{formatMessage:i}=p();return e.jsx(x,{title:i({id:"wallet_page.cesu.onboarding.step.photoOfInvoices.title"}),text:i({id:"wallet_page.cesu.onboarding.step.photoOfInvoices.content"}),illustration:I,children:e.jsx(m,{onClick:o,children:i({id:"wallet_page.cesu.onboarding.cta.continue"})})})},O="https://team.swile.co/assets/onboarding-cesu-step3-directServiceProvider.dark-DCIQmrj9.png",D="https://team.swile.co/assets/onboarding-cesu-step3-directServiceProvider.light-BAnixHzC.png",E=({onNext:o})=>{const{formatMessage:i}=p(),r=w();return e.jsx(x,{title:i({id:"wallet_page.cesu.onboarding.step.directServiceProvider.title"}),text:i({id:"wallet_page.cesu.onboarding.step.directServiceProvider.content"}),illustration:r.name==="light"?D:O,children:e.jsx(m,{onClick:o,children:i({id:"wallet_page.cesu.onboarding.cta.continue"})})})},T=o=>{const[i,r]=j.useState(1),{formatMessage:s}=p(),{data:t}=P(),d=()=>{r(1),o()},l=()=>r(n=>n+1),u=()=>r(n=>n-1),g=n=>r(n),a=(()=>{const n=[s({id:"wallet_page.cesu.onboarding.step.presentation.title"}),s({id:"wallet_page.cesu.onboarding.step.listOfServices.title"})];return t!=null&&t.isDirectServiceProviderPaymentEnabled?n.push(s({id:"wallet_page.cesu.onboarding.step.directServiceProvider.title"}),s({id:"wallet_page.cesu.onboarding.step.photoOfInvoices.title"})):n.push(s({id:"wallet_page.cesu.onboarding.step.photoOfInvoices.title"})),n})(),b={close:s({id:"wallet_page.cesu.onboarding.aria_label.close"}),previousAction:s({id:"wallet_page.cesu.onboarding.aria_label.previous"})},c={companyName:(t==null?void 0:t.companyName)||"",enabledActivities:(t==null?void 0:t.enabledActivities)||[],isDirectServiceProviderPaymentEnabled:(t==null?void 0:t.isDirectServiceProviderPaymentEnabled)||!1},v=c.isDirectServiceProviderPaymentEnabled?4:3;return{step:i,goToNextStep:l,goToPreviousStep:u,goToStep:g,handleClose:d,stepAriaLabels:a,actionLabels:b,commonProps:c,stepsCount:v}},$e=()=>{const{isOnboardingModalOpen:o,onCloseOnboardingModal:i}=y("CESU"),{step:r,goToNextStep:s,goToPreviousStep:t,goToStep:d,handleClose:l,stepAriaLabels:u,actionLabels:g,commonProps:a,stepsCount:b}=T(i),c=()=>{switch(r){case 1:return e.jsx(N,{onNext:s,companyName:a.companyName});case 2:return e.jsx(C,{onNext:s,companyName:a.companyName,enabledActivities:a.enabledActivities});case 3:return a.isDirectServiceProviderPaymentEnabled?e.jsx(E,{onNext:s}):e.jsx(h,{onNext:l});case 4:return a.isDirectServiceProviderPaymentEnabled?e.jsx(h,{onNext:l}):null;default:return null}};return e.jsx(S,{onPreviousAction:t,isOpen:o,onClose:l,onStepChange:d,stepsCount:b,currentStep:r,stepAriaLabels:u,actionLabels:g,children:c()})};export{$e 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.