PageSourceSearch

https://team.swile.co/assets/OnboardingWalletCesu-DenJqZC0.js

js swile.co collected 2026-10-02 02:35:59 UTC 6,833 bytes, 1 lines download raw bytes

1import{j as e,a7 as f,B as m,a as x,u as w,a8 as S}from"./@themenu-design-system-DYRiRzlM.js";import{u as y}from"./WalletPage-D_q4T9kx.js";import{u as p}from"./@react-intl-ByT5Dd3Q.js";import{a as j}from"./@analytics-DQmwd0WL.js";import{hy as P}from"./index-CEOZadzw.js";import"./@react-aria-stately-BjYSCrfq.js";import"./@libphonenumber-js-CKk4m8Ay.js";import"./CheckoutSummary-CWCVPax3.js";import"./ProductProvider-4kydnk1p.js";import"./useProductQuery-B7A4cs3w.js";import"./storeGraphql-CKHBJz_C.js";import"./useElementHeight-I30BHUPF.js";import"./SetOrderCustomFields-CYelFvIf.js";import"./order-WdIgnDv0.js";import"./CartItem-BSrhwlDe.js";import"./promoRate-C1UdT2uN.js";import"./useAutoFocus-D2OnlY2a.js";import"./OrderProvider-CRRS58nX.js";import"./CartProvider-CbxG-CER.js";import"./variantUtils-DcgqBDLd.js";import"./SafeAreaBottomContainer-CKmUDDxW.js";import"./useMobileBottomBarMargin-BETz8H6G.js";import"./CartSavedAmount-CarUvjZM.js";import"./BottomSheet-ClXHHyQl.js";import"./index-DX_aH9Mi.js";import"./useSelectedWallet-CKK9Kmd6.js";import"./GiftMobileAppHeader-DmU3n1wz.js";import"./queryIds-D5EeoIrS.js";import"./InfiniteScroll-2C0hlO2v.js";import"./InfiniteScroll-BR1GEULq.js";import"./LeftLayout-DKASGruU.js";import"./wallets-DPhbTA8B.js";import"./SidebarItem-BTkIYJON.js";import"./GiftSpotlightPanel-CC5xAMwv.js";import"./useCashbackActivationModal-CjpJPmWP.js";import"./useCardOrderingSettings-ZXGz10wm.js";import"./PaymentMethodSelector-Bv7qLYdy.js";import"./react-spring_web.modern-C7N96yYJ.js";import"./utils-DrWYBKbl.js";import"./@swiper-B92D2qE2.js";import"./OperationsList-gxAjdprq.js";import"./PlaceWalletEligibility-C9y4bRHG.js";import"./useGeolocation-BRjDzj6H.js";import"./RefundRequestDetailsModal-IT6fPgYo.js";import"./Suggestions-7jQATn5f.js";import"./@utils-B5fX3Hvq.js";import"./FormikErrorMessage-BtkyPZrk.js";import"./FormikFieldTextarea-DpmrvN7W.js";import"./@luxon-DfZoh-A_.js";import"./paymentMessage-Bgu5iOeQ.js";import"./amount-B_yzVXXz.js";import"./usePotClosedAtMutation-DkBC5Orv.js";import"./isClosedPot-BmBtN-T_.js";import"./activity-BUWvfxQW.js";import"./UsersSelector-DfAWKqk-.js";import"./pagination-DYrnuci9.js";import"./image-helper-PUnDyBym.js";import"./UsersListSkeleton-DOUlpeWy.js";import"./ContributeForm.utils-DEs1Np8U.js";import"./ItemCardPrice-DLP9xUaQ.js";import"./LinkButton-CvRBEyUv.js";import"./HomeSlices-DCHGpkPT.js";import"./logging-Bol8ZL0M.js";import"./useSendAppLink-D0TgH-5c.js";import"./useRefundRequestList-B0lDTPN3.js";import"./useLottie-UouWGIoX.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]="35947cbf-289f-42ad-91bd-1a068fb3b980",o._sentryDebugIdIdentifier="sentry-dbid-35947cbf-289f-42ad-91bd-1a068fb3b980")}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(f,{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(x,{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(x,{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(f,{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(f,{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.