PageSourceSearch

https://app.helpling.com.sg/h2-provider-app-expo/static/js/main.170052fa.js

js helpling.com.sg collected 2026-09-28 12:43:43 UTC 1,915,392 bytes, 4,109 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"d15672e9e9042c3a05a0d00ebb22d04e8d2ed9e1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac6aaec4-662f-4528-a48f-7eb6c55dd0bd",e._sentryDebugIdIdentifier="sentry-dbid-ac6aaec4-662f-4528-a48f-7eb6c55dd0bd")}catch(e){}}(),(()=>{var e={86839(e,t,n){"use strict";var i={};n.r(i),n.d(i,{addBreadcrumb:()=>$,captureException:()=>F,captureMessage:()=>H,sentryInit:()=>B,sentryIntegrations:()=>G,setExtras:()=>W,setUser:()=>U,wrap:()=>V});var o={};n.r(o),n.d(o,{IGNORED_ERRORS:()=>D,addBreadcrumb:()=>de,beforeBreadcrumb:()=>z,beforeSend:()=>q,captureException:()=>le,captureMessage:()=>ce,debug:()=>se,sentryEnabled:()=>ie,sentryInit:()=>oe,sentryIntegrations:()=>ae,setExtras:()=>ue,setUser:()=>re,wrap:()=>pe});var a={};n.r(a),n.d(a,{acknowledgePushCampaign:()=>St,changeUserLocale:()=>Nt,fetchAppVersionSupported:()=>Ht,fetchBrazeSettings:()=>vt,fetchCounters:()=>Tt,fetchCurrentUser:()=>yt,fetchCurrentUserLimitAppPendingDeletion:()=>Ft,fetchHasHasNewOffersBlockedFlag:()=>It,fetchIntercomSettings:()=>bt,fetchPersonalTaxId:()=>jt,fetchPreferredNotificationChannels:()=>Bt,fetchSettings:()=>Ct,fetchStripeHostedOnboardingLink:()=>wt,fetchUnreadMessagesCount:()=>Et,fetchUserAddress:()=>Ut,markAnnouncementAsRead:()=>Lt,nativeSignIn:()=>zt,storeDevice:()=>kt,storePushToken:()=>Rt,updateAppUsage:()=>$t,updateMessageTranslationLanguage:()=>qt,updatePreferredNotificationChannels:()=>Gt,webSignIn:()=>Mt,webSignOut:()=>Pt});var s={};n.r(s),n.d(s,{acceptUnconfirmedEvent:()=>on,acknowledgeEventCancellation:()=>Jt,cancelUnconfirmedEvent:()=>an,claimCancellationFee:()=>en,createEventRating:()=>Zt,fetchCalendarEvents:()=>ln,fetchCancelledEvents:()=>Qt,fetchDaysEventsCount:()=>dn,fetchEvent:()=>sn,fetchEventCaseEligibleFlags:()=>rn,fetchNotPostAgreedEvents:()=>Yt,fetchTimeTravels:()=>cn,fetchTranslatedCustomerChecklist:()=>un,fetchUnconfirmedEvents:()=>nn,updatePostCleanRequest:()=>Xt,waiveCancellationFee:()=>tn});var r={};n.r(r),n.d(r,{fetchMyEarnings:()=>pn});var l={};n.r(l),n.d(l,{fetchNotificationMessage:()=>mn,markNotificationMessageRead:()=>fn});var d={};n.r(d),n.d(d,{getTotalRatingsCount:()=>gn});var c={};n.r(c),n.d(c,{acceptNewRequest:()=>_n,fetchNewRequests:()=>hn,fetchSelectedByCustomer:()=>yn,rejectNewRequest:()=>xn});var u={};n.r(u),n.d(u,{acceptChangeRequest:()=>bn,acknowledgeChangeRequest:()=>Cn,acknowledgeRelationshipCancellation:()=>In,claimRelationshipCancellationFee:()=>Tn,fetchCancelledRelationships:()=>jn,fetchChangeRequests:()=>vn,fetchCurrentProviderAccountStatus:()=>Nn,rejectChangeRequest:()=>wn,waiveRelationshipCancellationFee:()=>En});var p={};n.r(p),n.d(p,{fetchCustomer:()=>Rn,fetchCustomerFutureEvents:()=>Pn,fetchCustomers:()=>An,getProviderRelationship:()=>Sn,useEventHasUserParticipatedInConversation:()=>Mn});var m={};n.r(m),n.d(m,{fetchAbsenceAffectedCustomers:()=>qn,fetchAbsences:()=>On,fetchAbsencesOverview:()=>zn,requestAbsence:()=>Ln});var f={};n.r(f),n.d(f,{getOffers:()=>Bn,getTotalOffers:()=>Gn});var g={};n.r(g),n.d(g,{fetchVerticalOffers:()=>Un,fetchVerticalOptableRequests:()=>$n});var h={};n.r(h),n.d(h,{UNREAD_MESSAGE_COUNT_UPDATED:()=>Yn,fetchMessagesForCustomer:()=>Hn,getChatConversations:()=>Fn,markMessageAsRead:()=>Vn,postMessage:()=>Wn,translateMessage:()=>Kn});var _={};n.r(_),n.d(_,{downloadInvoice:()=>Xn});var x={};n.r(x),n.d(x,{fetchHelpArticle:()=>Qn,searchHelpArticles:()=>Jn,sendHelpMessage:()=>ei});var y={};n.r(y),n.d(y,{getExpeditedPayment:()=>ti});var v={};n.r(v),n.d(v,{assignProviderToAbTest:()=>ii});var b={};n.r(b),n.d(b,{fetchExternalCalendarConfig:()=>ai});var w={};n.r(w),n.d(w,{fetchReferralProgram:()=>ri});n(31707),n(10244),n(84326);var C=n(44585);window.DateTime=C.DateTime;var j=n(25754),I=n(3938);function T(e){var t,n,i,o,a,s;return(null===(t=I.default.manifest2)||void 0===t||null===(n=t.extra)||void 0===n||null===(i=n.expoClient)||void 0===i||null===(o=i.extra)||void 0===o?void 0:o[e])||(null===(a=I.default.expoConfig)||void 0===a||null===(s=a.extra)||void 0===s?void 0:s[e])||{NODE_ENV:"production",PUBLIC_URL:"/h2-provider-app-expo",APP_MANIFEST:{userInterfaceStyle:"light",name:"Helpling Partner",description:"H2 Partner App",owner:"helpling",slug:"helpling-provider",privacy:"unlisted",platforms:["ios","android","web"],version:"31.0.0",runtimeVersion:"31.0.0",orientation:"portrait",icon:"./assets/icon.ios.png",scheme:"h2pa",updates:{fallbackToCacheTimeout:0,checkAutomatically:"ON_ERROR_RECOVERY",url:"https://u.exp
1o.dev/1fbfc3da-29d6-4f86-9e0a-28e5141b0cca"},web:{},extra:{eas:{projectId:"1fbfc3da-29d6-4f86-9e0a-28e5141b0cca"},revision:"d15672e9e9042c3a05a0d00ebb22d04e8d2ed9e1",EXPO_PUBLIC_TITLE:"Helpling Partner",EXPO_PUBLIC_COUNTRY:"sg",EXPO_PUBLIC_API_HOSTNAMES:'{"ch":"https://api.helpling.ch","de":"https://api.helpling.de","fr":"https://api.helpling.fr","ie":"https://api.helpling.ie","it":"https://api.helpling.it","sg":"https://api.helpling.com.sg","uk":"https://api.helpling.co.uk"}',EXPO_PUBLIC_WWW_HOSTNAMES:'{"ch":"https://www.helpling.ch","de":"https://www.helpling.de","fr":"https://www.helpling.fr","ie":"https://www.helpling.ie","it":"https://www.helpling.it","sg":"https://www.helpling.com.sg","uk":"https://www.helpling.co.uk"}',EXPO_PUBLIC_SERVICES_HOSTNAMES:'{"ch":"https://services.helpling.ch","de":"https://services.helpling.de","fr":"https://services.helpling.fr","ie":"https://services.helpling.ie","it":"https://services.helpling.it","sg":"https://services.helpling.com.sg","uk":"https://services.helpling.co.uk"}',EXPO_PUBLIC_APP_HOSTNAMES:'{"ch":"https://app.helpling.ch","de":"https://app.helpling.de","fr":"https://app.helpling.fr","ie":"https://app.helpling.ie","it":"https://app.helpling.it","sg":"https://app.helpling.com.sg","uk":"https://app.helpling.co.uk"}',EXPO_PUBLIC_LOCALES_HOSTNAMES:'{"ch":"https://app.helpling.ch","de":"https://app.helpling.de","fr":"https://app.helpling.fr","ie":"https://app.helpling.ie","it":"https://app.helpling.it","sg":"https://app.helpling.com.sg","uk":"https://app.helpling.co.uk"}',EXPO_PUBLIC_API_AUTH:"aDI6ZWRpZnkudmVsb2NpdHkubHVrZQ==",EXPO_PUBLIC_ANALYTICS:'{"ch":"GTM-K32NN4F","de":"GTM-K32NN4F","fr":"GTM-K32NN4F","ie":"GTM-K32NN4F","it":"GTM-K32NN4F","sg":"GTM-K32NN4F","uk":"GTM-K32NN4F"}',EXPO_PUBLIC_ENVIRONMENT:"production",EXPO_PUBLIC_COOKIEBOT_DOMAIN_GROUPS:'{"ch":"","de":"35743a68-910f-4999-8d68-91ab28369090","fr":"e549d9d3-df21-4bb1-9ea9-8b6e6e179ad7","ie":"b2044617-2d83-4e79-9330-a3d8795a637a","it":"17aed888-7d30-478c-b0ec-404ff0c970cc","sg":"","uk":""}',EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_WEB:"AIzaSyC_5CFAhWPkhL4nw8i_hMiC_WMxIuBWloo",EXPO_PUBLIC_INTERCOM_APP_ID:"w5866md4",EXPO_PUBLIC_INTERCOM_ANDROID_APP_KEY:"android_sdk-718dd97d521c0fd63c17507de608b944001aa58d",EXPO_PUBLIC_INTERCOM_IOS_APP_KEY:"ios_sdk-7fe2ca6af372eec2e7a94704743d5a3d7d1ddcc6",EXPO_PUBLIC_GOOGLE_OAUTH_WEB_CLIENT_ID:"402409845477-pn9fv2fccanecn65nhkk0556kbvirsj2.apps.googleusercontent.com",EXPO_PUBLIC_APPLE_OAUTH_WEB_CLIENT_ID:"com.helpling.app.h2.provider.sso.web.production",EXPO_PUBLIC_CUSTOMER_APP_HOSTNAMES:'{"ch":"https://app.helpling.ch","de":"https://app.helpling.de","fr":"https://app.helpling.fr","ie":"https://app.helpling.ie","it":"https://app.helpling.it","sg":"https://app.helpling.com.sg","uk":"https://app.helpling.co.uk"}',EXPO_PUBLIC_PROVIDER_APP_PROTOCOL:"https",EXPO_PUBLIC_APPLICANT_HOSTNAMES:'{"ch":"https://app.helpling.ch","de":"https://app.helpling.de","fr":"https://app.helpling.fr","ie":"https://app.helpling.ie","it":"https://app.helpling.it","sg":"https://app.helpling.com.sg","uk":"https://app.helpling.co.uk"}',EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY:"6Lf3Mp4sAAAAADnuHIUfAdoZdzJ1RyRYgLaZ6uBl",EXPO_PUBLIC_BRAZE_ANDROID_API_KEYS:'{"ch":"45e75f01-9736-4b61-b3fa-b75554c810b8","de":"45e75f01-9736-4b61-b3fa-b75554c810b8","fr":"45e75f01-9736-4b61-b3fa-b75554c810b8","sg":null}',EXPO_PUBLIC_BRAZE_IOS_API_KEYS:'{"ch":"95713553-0ce3-451d-b45b-9ce675f4f7dd","de":"95713553-0ce3-451d-b45b-9ce675f4f7dd","fr":"95713553-0ce3-451d-b45b-9ce675f4f7dd","sg":null}',EXPO_PUBLIC_BRAZE_WEB_API_KEYS:'{"ch":"970dff47-120e-4427-9062-99786b91f444","de":"970dff47-120e-4427-9062-99786b91f444","fr":"970dff47-120e-4427-9062-99786b91f444","sg":null}',EXPO_PUBLIC_BRAZE_ENDPOINTS:'{"ch":"sdk.fra-02.braze.eu","de":"sdk.fra-02.braze.eu","fr":"sdk.fra-02.braze.eu","sg":null}'},sdkVersion:"57.0.0"},EXPO_DEBUG:!1,PLATFORM:"web",WDS_SOCKET_PATH:"/_expo/ws",CI:"true"}[e]}function E(e){return{EXPO_PUBLIC_TITLE:T("EXPO_PUBLIC_TITLE"),EXPO_PUBLIC_PROVIDER_APP_PROTOCOL:T("EXPO_PUBLIC_PROVIDER_APP_PROTOCOL"),EXPO_PUBLIC_ENVIRONMENT:T("EXPO_PUBLIC_ENVIRONMENT")||"development",EXPO_PUBLIC_API_HOSTNAMES:T("EXPO_PUBLIC_API_HOSTNAMES"),EXPO_PUBLIC_WWW_HOSTNAMES:T("EXPO_PUBLIC_WWW_HOSTNAMES"),EXPO_PUBLIC_SERVICES_HOSTNAMES:T("EXPO_PUBLIC_SERVICES_HOSTNAMES"),EXPO_PUBLIC_APP_HOSTNAMES:T("EXPO_PUBLIC_APP_HOSTNAMES"),EXPO_PUBLIC_LOCALES_HOSTNAMES:T("EXPO_PUBLIC_LOCALES_HOSTNAMES"),EXPO_PUBLIC_DEBUG:T("EXPO_PUBLIC_DEBUG"),EXPO_PUBLIC_COUNTRY:T("EXPO_PUBLIC_COUNTRY"),EXPO_PUBLIC_API_AUTH:T("EXPO_PUBLIC_API_AUTH"),EXPO_PUBLIC_ANALYTICS:T("EXPO_PUBLIC_ANALYTICS"),EXPO_PUBLIC_DEV_USER_EMAIL:T("EXPO_PUBLIC_DEV_USER_EMAIL"),EXPO_PUBLIC_DEV_USER_PASSWORD:T("EXPO_PUBLIC_DEV_USER_PASSWORD"),EXPO_PUBLIC_CUSTOMER_APP_HOSTNAMES:T("EXPO_PUBLIC_CUSTOMER_APP_HOSTNAMES"),EXPO_PUBLIC_APPLICANT_HOSTNAMES:T("EXPO_PUBLIC_APPLICANT_HOSTNAMES")||"{}",EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_WEB:T("EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_WEB")||"",EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_IOS:T("EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_IOS")||"",EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_ANDROID:T("EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_ANDROID")||"",EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY:T("EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY"),EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY_IOS:T("EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY_IOS"),EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY_ANDROID:T("EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY_ANDROID"),EXPO_PUBLIC_E2E:T("EXPO_PUBLIC_E2E"),EXPO_PUBLIC_INTERCOM_APP_ID:T("EXPO_PUBLIC_INTERCOM_APP_ID"),EXPO_PUBLIC_GOOGLE_OAUTH_WEB_CLIENT_ID:T("EXPO_PUBLIC_GOOGLE_OAUTH_WEB_CLIENT_ID"),EXPO_PUBLIC_GOOGLE_OAUTH_IOS_CLIENT_ID:T("EXPO_PUBLIC_GOOGLE_OAUTH_IOS_CLIENT_ID"),EXPO_PUBLIC_GOOGLE_OAUTH_ANDROID_CLIENT_ID:T("EXPO_PUBLIC_GOOGLE_OAUTH_ANDROID_CLIENT_ID"),EXPO_PUBLIC_APPLE_OAUTH_WEB_CLIENT_ID:T("EXPO_PUBLIC_APPLE_OAUTH_WEB_CLIENT_ID"),EXPO_PUBLIC_MIXPANEL_TOKEN:T("EXPO_PUBLIC_MIXPANEL_TOKEN"),EXPO_PUBLIC_BRAZE_ANDROID_API_KEYS:T("EXPO_PUBLIC_BRAZE_ANDROID_API_KEYS"),EXPO_PUBLIC_BRAZE_IOS_API_KEYS:T("EXPO_PUBLIC_BRAZE_IOS_API_KEYS"),EXPO_PUBLIC_BRAZE_WEB_API_KEYS:T("EXPO_PUBLIC_BRAZE_WEB_API_KEYS"),EXPO_PUBLIC_BRAZE_ENDPOINTS:T("EXPO_PUBLIC_BRAZE_ENDPOINTS"),EXPO_PUBLIC_SENDGRID_TRACKING_HOSTNAMES:T("EXPO_PUBLIC_SENDGRID_TRACKING_HOSTNAMES")}[e]}var N=n(4683),k=n(98657),R=n(16018),S=n(8984),A=n(98587);const P=["id"],D=[/intercom_user_jwt has expired/i,/Network request failed/i,/Failed to fetch/i,/TypeError: NetworkError/i],M=[/authorization/i,/cookie/i,/credential/i,/email/i,/jwt/i,/password/i,/secret/i,/token/i,/username/i],O=(e,t=new WeakSet)=>e&&"object"===typeof e?t.has(e)?"[Circular]":e instanceof Date?e:(t.add(e),Array.isArray(e)?e.map(e=>O(e,t)):Object.entries(e).reduce((e,[n,i])=>(e[n]=(e=>M.some(t=>t.test(e)))(n)?"[Filtered]":O(i,t),e),{})):e,z=(e={})=>"data"in e?Object.assign({},e,{data:O(e.data)}):Object.assign({},e),L=e=>(e=>{const t=[];"string"===typeof e.message&&t.push(e.message);const n=e.exception&&e.exception.values;
1return Array.isArray(n)&&n.forEach(e=>{e&&"string"===typeof e.value&&(t.push(e.value),"string"===typeof e.type&&t.push(`${e.type}: ${e.value}`))}),t})(e).some(e=>D.some(t=>t.test(e))),q=e=>{if(!e)return e;if(L(e))return null;const t=Object.assign({},e);return t.extra&&(t.extra=O(t.extra)),t.contexts&&(t.contexts=O(t.contexts)),t.tags&&(t.tags=O(t.tags)),t.request&&(t.request=Object.assign({},t.request,"data"in t.request?{data:O(t.request.data)}:{},t.request.headers?{headers:O(t.request.headers)}:{},t.request.cookies?{cookies:O(t.request.cookies)}:{})),t},B=N.init,G=[],U=e=>k.setUser((e=>{if(!e)return null;if(null==e.id)return(0,A.default)(e,P);return Object.assign({},e,{id:String(e.id)})})(e)),$=(e,t)=>R.addBreadcrumb(z(Object.assign({category:e},t))),F=(e,t={})=>S.withScope(n=>{n.setExtras(O(t)),k.captureException(e)}),H=k.captureMessage,W=e=>k.setExtras(O(e)),V=e=>e;var K=n(36665),Y=n(50923),X=n(60397);const Z=()=>"development"===E("EXPO_PUBLIC_ENVIRONMENT"),Q=()=>"staging"===E("EXPO_PUBLIC_ENVIRONMENT"),J=e=>Y.types.optional(e,()=>e.create()),ee=(e,t,n,i)=>{const o=e.split(" ");let a="";const s=[];return o.forEach((e,r)=>{t.includes(e)?(a&&(s.push((0,X.jsx)(n,{children:a},r+1)),a=""),s.push((0,X.jsx)(i,{children:e+" "},r))):a+=`${e} `,r===o.length-1&&a&&s.push((0,X.jsx)(n,{children:a},r))}),s};function te(e,t){return new Array(2*(t-e)+1).fill().reduce((t,n,i)=>{const o=e+i/2;return t.concat([{label:i18n.t("hours",{count:o}),value:3600*o}])},[])}const ne=!!E("EXPO_PUBLIC_E2E");const ie=!Z()&&!ne,oe=B,ae=G,se=(e,t,n)=>{const i={category:e,message:t,data:n,level:"debug"};return E("EXPO_PUBLIC_DEBUG")&&(!n||0===Object.keys(n).length||1===Object.keys(n).length&&n.arguments&&"undefined"===typeof n.arguments?console.info(`${e}: ${t}`):console.info(`${e}: ${t}`,n)),$(e,i),i},re=U,le=(e,t={})=>F(e,t),de=(e,t)=>$(e,t),ce=H,ue=W,pe=V;var me,fe,ge,he,_e,xe,ye,ve,be,we,Ce=n(58812),je=n(74273),Ie=n(38386),Te=n(20671),Ee=n(10918),Ne=n(17185),ke=n(99154),Re=n(25235),Se=n(23951),Ae=n(44990),Pe=n(30646),De=n(47344),Me=n.n(De),Oe=n(94075),ze=n.n(Oe),Le=n(62283),qe=n(74504),Be=n(44796),Ge=n(85050),Ue=n(67265),$e=n(42799);const Fe=Ue.applicationName||(null===(me=I.default.expoConfig)||void 0===me?void 0:me.name),He=(null===(fe=I.default.manifest2)||void 0===fe||null===(ge=fe.extra)||void 0===ge||null===(he=ge.expoClient)||void 0===he?void 0:he.version)||(null===(_e=I.default.expoClient)||void 0===_e?void 0:_e.version)||(null===(xe=I.default.expoConfig)||void 0===xe?void 0:xe.version),We=(null===(ye=I.default.manifest2)||void 0===ye||null===(ve=ye.extra)||void 0===ve||null===(be=ve.expoClient)||void 0===be?void 0:be.runtimeVersion)||(null===(we=I.default.expoConfig)||void 0===we?void 0:we.runtimeVersion),Ve=T("revision"),Ke=[$e.brand,$e.modelName].filter(Boolean).join(" "),Ye=[$e.osName,$e.osVersion].filter(Boolean).join(" "),Xe={appName:Fe,appVersion:He,deviceModel:Ke,deviceOs:Ye,platform:"web"},Ze=Ve?`Version ${Ve.substr(0,6)}`:"unreleased";var Qe=n(23184);const Je=(0,Ge.default)(qe.default).withConfig({displayName:"version__VersionContainer",componentId:"sc-137wcqo-0"})(["position:absolute;bottom:","px;right:15px;"],({$bottomGap:e})=>15+e),et=(0,Ge.default)(Be.default).withConfig({displayName:"version__VersionText",componentId:"sc-137wcqo-1"})(["opacity:",";color:",";"],e=>e.opacity,e=>e.color),tt=({textColor:e=Qe.WHITE,opacity:t=.3})=>{const n=(0,Re.useSafeAreaInsets)();return(0,X.jsx)(Je,{$bottomGap:n.bottom,children:(0,X.jsx)(et,{color:e,opacity:t,children:Ze})})};tt.propTypes={textColor:ze().string,opacity:ze().number};const nt=tt,it=Ge.default.Image.withConfig({displayName:"logo_new__LogoImage",componentId:"sc-1ct217v-0"})(["width:80px;height:39px;"]),ot={white:n(35886)};function at({onPress:e,color:t="green"}){return(0,X.jsx)(it,{onPress:e,source:ot[t]})}function st(){window.location.reload(!0)}at.propTypes={onPress:ze().func,color:ze().string};const rt=()=>{Ne.default.clear(),st()},lt=()=>(0,K.useContext)(Te.MobXProviderContext).store,dt=(e,t)=>{const[n,i]=(0,K.useState)(e);return(0,K.useEffect)(()=>{const n=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(n)}},[e]),n},ct=e=>{const{session:{countryConfig:{minimumRepeatBidHours:t,maximumRepeatBidHours:n,minimumO
1neOffBidHours:i,maximumOneOffBidHours:o}}}=lt();return(0,K.useMemo)(()=>"once"===e?te(i,o):te(t,n),[e])},ut=()=>{const{session:{settings:e}}=lt();return(null===e||void 0===e?void 0:e.featureFlags)||{}},pt=()=>{const{session:{settings:e}}=lt();return(null===e||void 0===e?void 0:e.viewPermissions)||{}},mt=()=>{const{analytics:e}=lt();return e},ft=(e=({userFlow:e,action:t,objectName:n})=>`${e}_${t}_${n}}`)=>{const{autoTrackEnhanced:t}=mt(),n=(0,K.useRef)(new Set);return(0,K.useCallback)(({userFlow:i,action:o,objectName:a,properties:s})=>{const r=e({userFlow:i,action:o,objectName:a});n.current.has(r)||(n.current.add(r),t({userFlow:i,action:o,objectName:a,properties:s}))},[t])},gt=({children:e,error:t})=>{const{updates:n}=lt();return(0,K.useEffect)(()=>{t&&n.checkAndFetchUpdate()},[t]),(0,X.jsx)(Le.default,{logo:(0,X.jsx)(at,{color:"white"}),versionNumber:(0,X.jsx)(nt,{}),captureException:le,clearStorageAndRestart:rt,showErrorDetails:Z()||Q(),reload:st,error:t,children:e})};gt.propTypes={children:ze().node.isRequired,error:ze().object};const ht=(0,Te.inject)(({store:e})=>({error:e.fatalError}))((0,Te.observer)(gt));var _t=n(33442);const xt=_t.default;async function yt(e){const t=_t.default`
2    query fetchCurrentUser {
3      currentUser {
4        id
5        firstname
6        lastname
7        email
8        preferredLanguage
9        accountType
10        profileImage
11        mobile
12
13        ... on ProviderCurrentUserType {
14          onboarded
15          referred
16          applicationProcessVersion
17          emailVerified
18        }
19      }
20      currentProvider {
21        id
22        defaultProfileImage
23        workStatus
24        performanceScoreGroup
25        maxRadius
26        referralUrl
27        metro
28        birthdate
29        birthPlace
30        birthCountry
31        variantSubGroup
32        stripePublicKey
33        registrationFeeAmount
34        agency {
35          id
36          featureFlagChat
37          featureFlagProviderCanSeeOffers
38        }
39        stripeAccount {
40          hasAccount
41          chargesEnabled
42          idVerificationRequired
43          payoutsEnabled
44          underReview
45          verificationDeadline
46        }
47        announcement {
48          body
49          buttonText
50          buttonUrl
51          externalUrl
52          id
53          title
54        }
55        prices {
56          oneOffPrice
57          oneOffCommissionPerHour
58          recurringPrice
59          recurringCommissionPerHour
60        }
61        priceLimits {
62          recurringMaxPrice
63          recurringMinPrice
64          oneOffMaxPrice
65          oneOffMinPrice
66        }
67        premium
68        address {
69          id
70          address
71          address1
72          address2
73          postcode
74          town
75          latitude
76          longitude
77        }
78        messageTranslationLanguage
79        vacationProbationPeriodEnd
80        limitAppPendingDeletion
81        needsBankDetailsBeforeOffers
82        invoicedYears
83        referencesCode
84        profile {
85          vatId
86        }
87      }
88    }
89  `;return e.query({query:t})}async function vt(e){const t=_t.default`
90    query fetchBrazeSettings {
91      settings {
92        braze {
93          enabled
94          externalId
95          country
96          jwt
97        }
98      }
99    }
100  `;return e.query({query:t})}async function bt(e){const t=xt`
101    query fetchIntercomSettings {
102      intercom {
103        jwt {
104          iat
105          exp
106          token
107        }
108        finJwt {
109          iat
110          exp
111          token
112        }
113      }
114    }
115  `;return e.query({query:t,context:{apiVersion:3}})}function wt(e){const t=_t.default`
116    query fetchStripeHostedOnboardingLink {
117      currentProvider {
118        id
119        stripeAccount {
120          hostedOnboardingLink
121        }
122      }
123    }
124  `;return e.query({query:t})}function Ct(e){const t=xt`
125    query settings {
126      settings {
127        applicationProcess {
128          version
129          requiredAgreements
130          applicationProcessState
131          seenActivationScreen
132          steps
133          redirectUrl
134        }
135        abTests {
136          key
137          group
138        }
139        featureFlags {
140          hidePricesFromProvider
141          materials
142          onboardingBusinessLicenseCheckbox
143          onboardingSelfEmploymentCheckbox
144          psd2Payments
145          registrationFee
146          showChatDisclaimerModal
147          showConfirmedEventsPerMonth
148          showHotlineInfo
149          showMyEarnings
150          showShortTimeWorkAgreement
151          vatIdInProfileForm
152          verticalOffers
153          verticalServices
154          collectReferences
155          canReportResolutionCenterCases
156          providerNoReferencesCardEnabled
157          providerReviewPriceCardEnabled
158          newRelationshipIntroFee
159          personalTaxIdInProfileForm
160        }
161        viewPermissions {
162          canShareProfile
163          editProfile
164          myEarnings
165          seeOffers
166          seeAbsenceOverview
167          requestAbsence
168          seeMonthlyOverview
169          editNotificationPreferences
170          seeTips
171          seeBonuses
172          canSeeResolutionCenter
173          editWorkingHours
174          canChangePrices
175          referAFriend
176          createHolidays
177          seePayouts
178          seeTransfers
179          seeTermsLink
180          seeAbsenceStatus
181          seeRelationshipCancellation
182          canCancelEvents
183          canSeeExpectedMonthlyIncome
184          canSeeWorkingLocationSetup
185          canRescheduleSeries
186          actionSelectedOffers
187          hasNewOffersBlocked
188        }
189        unreadMessagesCount
190        absenceCategoriesStructured {
191          name
192          subcategories {
193            name
194          }
195        }
196        redirectUrl
197      }
198    }
199  `;return e.query({query:t,context:{apiVersion:3}})}function jt(e){const t=xt`
200    query personalTaxId {
201      provider {
202        id
203        personalTaxId
204      }
205    }
206  `;return e.query({query:t,context:{apiVersion:3}})}function It(e){const t=xt`
207    query fetchHasHasNewOffersBlockedFlag {
208      settings {
209        viewPermissions {
210          hasNewOffersBlocked
211        }
212      }
213    }
214  `;return e.query({query:t,context:{apiVersion:3}})}function Tt(e){const t=_t.default`
215    query fetchCounters {
216      currentProvider {
217        id
218        notifications {
219          counters {
220            newCustomers
221            newRequests
222            notPostAgreedEvents
223            selectedByCustomer
224            unconfirmedEvents
225            unreadMessages
226            cancelledEvents
227            cancelledRelationships
228            changeRequests
229            openCases
230          }
231        }
232      }
233      providerVerticalRequestCandidatesCount
234      optableVerticalRequestsCount
235    }
236  `;return e.query({query:t})}function Et(e){const t=_t.default`
237    query fetchUnreadMessagesCount {
238      currentProvider {
239        id
240        notifications {
241          counters {
242            unreadMessages
243          }
244        }
245      }
246    }
247  `;return e.query({query:t})}function Nt(e,t){const n=_t.default`
248    mutation changeUserLocale($language: String!) {
249      changeUserLocale(language: $language) {
250        success
251        error
252      }
253    }
254  `;return e.mutate({mutation:n,variables:{language:t}})}function kt(e,t){const n=xt`
255    mutation devicesStoreDevice($device: DeviceInputType!) {
256      devicesStoreDevice(device: $device) {
257        deviceUniqueIdentifier
258      }
259    }
260  `;return e.mutate({mutation:n,variables:{device:t},context:{apiVersion:3}})}function Rt(e,{deviceUniqueIdentifier:t,token:n,adapter:i="expo"}){const o=xt`
261    mutation storePushToken($deviceUniqueIdentifier: String!, $token: String!, $adapter: String) {
262      devicesStorePushToken(deviceUniqueIdentifier: $deviceUniqueIdentifier, token: $token, adapter: $adapter) {
263        success
264      }
265    }
266  `;return e.mutate({mutation:o,variables:{deviceUniqueIdentifier:t,token:n,adapter:i},context:{apiVersion:3}})}const St=(e,{devicePushToken:t,pushCampaignUuid:n})=>{console.warn("acknowledgePushCampaign",t,n);const i=_t.default`
267    mutation acknowledgePushCampaign($devicePushToken: String!, $pushCampaignUuid: String!) {
268      acknowledgePushCampaign(devicePushToken: $devicePushToken, pushCampaignUuid: $pushCampaignUuid) {
269        success
270        error
271      }
272    }
273  `;return e.mutate({mutation:i,variables:{devicePushToken:t,pushCampaignUuid:n}})},At=xt`
274  mutation webSignOut($deviceUniqueIdentifier: String) {
275    webSignOut(deviceUniqueIdentifier: $deviceUniqueIdentifier) {
276      success
277      errors {
278        code
279        message
280      }
281    }
282  }
283`,Pt=async(e,t)=>{const{data:n}=await e.mutate({mutation:At,variables:{deviceUniqueIdentifier:t},context:{apiVersion:3}});return null===n||void 0===n?void 0:n.webSignOut},Dt=xt`
284  mutation webSignIn($email: String!, $password: String!, $recaptchaToken: String, $device: DeviceInputType) {
285    webSignIn(email: $email, password: $password, recaptchaToken: $recaptchaToken, device: $device) {
286      success
287      errors {
288        code
289        message
290        path
291      }
292      deviceUniqueIdentifier
293    }
294  }
295`,Mt=async(e,t,n,i,o)=>{const{data:a}=await e.mutate({mutation:Dt,variables:{email:t,password:n,recaptchaToken:i,device:o},context:{apiVersion:3}});return null===a||void 0===a?void 0:a.webSignIn},Ot=xt`
296  mutation nativeSignIn($email: String!, $password: String!, $recaptchaToken: String, $device: DeviceInputType) {
297    nativeSignIn(email: $email, password: $password, recaptchaToken: $recaptchaToken, device: $device) {
298      success
299      accessToken
300      refreshToken
301      deviceUniqueIdentifier
302      errors {
303        code
304        message
305      }
306    }
307  }
308`,zt=async(e,t,n,i,o)=>{const{data:a}=await e.mutate({mutation:Ot,variables:{email:t,password:n,recaptchaToken:i,device:o},context:{apiVersion:3,withoutAccessToken:!0}});return null===a||void 0===a?void 0:a.nativeSignIn},Lt=(e,t)=>
308{const n=_t.default`
309    mutation markAnnouncementAsRead($announcementId: ID!) {
310      markAnnouncementAsRead(announcementId: $announcementId) {
311        success
312      }
313    }
314  `;return e.mutate({mutation:n,variables:{announcementId:t}})},qt=(e,t)=>{const n=_t.default`
315    mutation updateMessageTranslationLanguage($messageTranslationLanguage: String) {
316      updateCurrentUserDetails(messageTranslationLanguage: $messageTranslationLanguage) {
317        success
318        errors {
319          messageTranslationLanguage
320        }
321      }
322    }
323  `;return e.mutate({mutation:n,variables:{messageTranslationLanguage:t}})};function Bt(e){const t=xt`
324    query fetchPreferredNotificationChannels {
325      provider {
326        id
327        preferredNotificationChannels {
328          push
329          pushMarketing
330          sms
331        }
332      }
333    }
334  `;return e.query({query:t,context:{apiVersion:3}})}const Gt=(e,{push:t,pushMarketing:n,sms:i})=>{const o=xt`
335    mutation updatePreferredNotificationChannels($push: Boolean!, $pushMarketing: Boolean!, $sms: Boolean!) {
336      updatePreferredNotificationChannels(push: $push, pushMarketing: $pushMarketing, sms: $sms) {
337        success
338      }
339    }
340  `;return e.mutate({mutation:o,variables:{push:t,pushMarketing:n,sms:i},context:{apiVersion:3}})};async function Ut(e){const t=_t.default`
341    query fetchUserAddress {
342      currentProvider {
343        id
344        address {
345          id
346          address
347          address1
348          postcode
349          town
350        }
351      }
352    }
353  `;return e.query({query:t})}function $t(e,{appName:t,appVersion:n,platform:i}){const o=xt`
354    mutation updateAppUsage($appName: String!, $appVersion: String!, $platform: String!) {
355      updateAppUsage(appName: $appName, appVersion: $appVersion, platform: $platform) {
356        success
357      }
358    }
359  `;return e.mutate({mutation:o,variables:{appName:t,appVersion:n,platform:i},context:{apiVersion:3}})}async function Ft(e){const t=_t.default`
360    query fetchCurrentUserLimitAppPendingDeletion {
361      currentProvider {
362        limitAppPendingDeletion
363      }
364    }
365  `;return e.query({query:t})}async function Ht(e){return!0}const Wt=_t.default`
366    fragment AddressFields on Address {
367      id
368      address
369      postcode
370      town
371      latitude
372      longitude
373    }
374  `,Vt=_t.default`
375    fragment EventFullFields on Event {
376      id
377      clash
378      startTime
379      endTime
380      materials
381      customer {
382        id
383        name
384      }
385      address {
386        ...AddressFields
387      }
388      relationship {
389        id
390        successfulEventsCount
391        customerRepeatPrice
392        customerAdhocPrice
393        providerRecurringPrice
394        customerRecurringPrice
395      }
396      postRequestPending
397      providerBalance
398      promptCustomerForConversion
399      totalProviderSupportTips
400      eligibleForCancellationFeeClaim
401      cancellationFeeAmount
402      cancelledWithinXHours
403      cancelled
404      period
405      fixedDuration
406    }
407    ${Wt}
408  `,Kt=_t.default`
409    fragment EventBaseFields on Event {
410      id
411      clash
412      startTime
413      endTime
414      customer {
415        id
416        name
417      }
418      address {
419        ...AddressFields
420      }
421      fixedDuration
422    }
423    ${Wt}
424  `,Yt=e=>{const t=_t.default`
425    query fetchNotPostAgreedEvents {
426      currentProvider {
427        id
428        unreadMessagesCount
429        notifications {
430          notPostAgreedEvents {
431            ...EventFullFields
432          }
433        }
434      }
435    }
436    ${Vt}
437  `;return e.query({query:t})},Xt=(e,t)=>{const n=_t.default`
438    mutation providerUpdatePostCleanRequest(
439      $createdBy: ID
440      $eventId: ID!
441      $originalStarttime: DateTime
442      $originalDuration: Int
443      $proposedDate: Date
444      $proposedTime: String
445      $proposedStarttime: DateTime
446      $proposedDuration: String
447      $providerAgreedWithCustomer: Boolean
448      $changeType: String
449      $cancellationReasonCode: String
450      $otherResponse: String
451      $chargeCustomer: Boolean
452    ) {
453      postCleanRequest(
454        createdBy: $createdBy
455        eventId: $eventId
456        originalStarttime: $originalStarttime
457        originalDuration: $originalDuration
458        proposedDate: $proposedDate
459        proposedTime: $proposedTime
460        proposedStarttime: $proposedStarttime
461        proposedDuration: $proposedDuration
462        providerAgreedWithCustomer: $providerAgreedWithCustomer
463        changeType: $changeType
464        cancellationReasonCode: $cancellationReasonCode
465        otherResponse: $otherResponse
466        chargeCustomer: $chargeCustomer
467      ) {
468        success
469        error
470        postCleanRequest {
471          createdBy
472          eventId
473          actioned
474          actionedBy
475          originalStarttime
476          originalDuration
477          proposedDuration
478          proposedStarttime
479          cancelled
480          otherResponse
481          providerAgreedWithCustomer
482          changeType
483          customerResponse
484          cancellationReasonCode
485          emailLinkId
486          actionRequiredBy
487          isFirstInSeries
488        }
489      }
490    }
491  `;return e.mutate({mutation:n,variables:t})},Zt=(e,t)=>
491{const n=_t.default`
492    mutation createRatingOfCustomer($eventId: ID!, $rating: Int!, $comments: String) {
493      createRatingOfCustomer(eventId: $eventId, rating: $rating, comments: $comments) {
494        success
495        errors {
496          code
497          message
498        }
499      }
500    }
501  `;return e.mutate({mutation:n,variables:t})},Qt=e=>{const t=_t.default`
502    query fetchCancelledEvents {
503      currentProvider {
504        id
505        notifications {
506          cancelledEvents {
507            ...EventFullFields
508          }
509        }
510      }
511    }
512    ${Vt}
513  `;return e.query({query:t})},Jt=(e,t)=>{const n=_t.default`
514    mutation acknowledgeEventCancellation($eventId: ID!) {
515      acknowledgeEventCancellation(eventId: $eventId) {
516        id
517        success
518        reasonCode
519        error
520      }
521    }
522  `;return e.mutate({mutation:n,variables:{eventId:t}})},en=(e,t)=>{const n=_t.default`
523    mutation claimCancellationFeeOnEvent($eventId: ID!) {
524      claimCancellationFeeOnEvent(eventId: $eventId) {
525        success
526        error
527      }
528    }
529  `;return e.mutate({mutation:n,variables:{eventId:t}})},tn=(e,t)=>{const n=_t.default`
530    mutation waiveCancellationFeeOnEvent($eventId: ID!) {
531      waiveCancellationFeeOnEvent(eventId: $eventId) {
532        success
533      }
534    }
535  `;return e.mutate({mutation:n,variables:{eventId:t}})},nn=e=>{const t=_t.default`
536    query fetchUnconfirmedEvents {
537      currentProvider {
538        id
539        notifications {
540          unconfirmedEvents {
541            ...EventFullFields
542          }
543        }
544      }
545    }
546    ${Vt}
547  `;return e.query({query:t})},on=(e,t)=>{const n=_t.default`
548    mutation providerAcceptUnconfirmedEvent($eventId: ID!) {
549      acceptUnconfirmedEvent(eventId: $eventId) {
550        success
551      }
552    }
553  `;return e.mutate({mutation:n,variables:{eventId:t}})},an=(e,{eventId:t,reason:n,userReason:i})=>{const o=_t.default`
554    mutation providerCancelUnconfirmedEvent($eventId: ID!, $reason: String, $userReason: String) {
555      cancelUnconfirmedEvent(eventId: $eventId, reason: $reason, userReason: $userReason) {
556        success
557      }
558    }
559  `;return e.mutate({mutation:o,variables:{eventId:t,reason:n,userReason:i}})},sn=(e,t)=>{const n=_t.default`
560    query fetchEvent($id: ID!) {
561      currentProvider {
562        id
563        event(id: $id) {
564          id
565          cancelled
566          startTime
567          endTime
568          materials
569          isCleaning
570          isVertical
571          category
572          relationship {
573            id
574            haveUsersParticipatedInConversation
575            customerInstructions {
576              cleaningDetails
577              tasks
578            }
579            bids {
580              pets
581            }
582          }
583          address {
584            id
585            address
586            longitude
587            latitude
588          }
589          period
590          customer {
591            id
592            name
593            addresses {
594              address
595              latitude
596              longitude
597            }
598            firstname
599            abTests {
600              experiment
601              experimentKey
602            }
603          }
604          customerChecklist {
605            id
606            additionalInformation
607            customerChecklistItems {
608              id
609              category
610              name
611              checked
612            }
613          }
614          invoices {
615            id
616            invoiceDate
617            invoiceType
618            invoiceNumber
619            amount
620            path
621          }
622          charges {
623            name
624            amount
625          }
626          payouts {
627            id
628            amount
629            estimatedPayDate
630          }
631          amendableByProvider
632          providerTotal
633          additionalServices
634          pricingItems {
635            name
636            pricePerItem
637            quantity
638          }
639          verticalRequest {
640            category
641            description
642            pictureUrls
643            pricingModel
644            pricingUnit
645            unitQuantity
646            items {
647              name
648              type
649              value
650            }
651          }
652          pickupAttempts {
653            duration
654            scheduledAt
655          }
656          careServiceDetails
657          fixedDuration
658          externalCalendarEventId
659        }
660      }
661    }
662  `;return e.query({query:n,variables:{id:t}})},rn=(e,t)=>{const n=xt`
663    query getCaseEligibleFlags($id: ID!) {
664      event(id: $id) {
665        pecEligible
666        stcEligible
667        firstInRelationship
668      }
669    }
670  `;return e.query({query:n,variables:{id:t},context:{apiVersion:3}})},ln=(e,{startDate:t,endDate:n,isPremium:i})=>{const o=_t.default`
671    query providerCalendarEvents($startDate: Date!, $endDate: Date!, $isPremium: Boolean!) {
672      providerCalendarEvents(startDate: $startDate, endDate: $endDate) {
673        confirmedEvents {
674          id
675          startTime
676          endTime
677          period
678          providerTotal
679          customer {
680            id
681            firstname
682            lastname
683            abTests {
684              experiment
685              experimentKey
686            }
687          }
688          relationship {
689            id
690            cleaningDetailsActioned
691            haveUsersParticipatedInConversation
692          }
693          address {
694            id
695            address1
696            postcode
697            latitude
698            longitude
699          }
700          isVertical
701          externalCalendarEventId
702        }
703        unconfirmedEvents {
704          id
705          startTime
706          endTime
707          period
708          providerTotal
709          customer {
710            id
711            firstname
712            lastname
713            abTests {
714              experiment
715              experimentKey
716            }
717          }
718          relationship {
719            id
720            cleaningDetailsActioned
721            haveUsersParticipatedInConversation
722          }
723          address {
724            id
725            address1
726            postcode
727            latitude
728            longitude
729          }
730          isVertical
731          externalCalendarEventId
732        }
733        changeRequests @skip(if: $isPremium) {
734          id
735          proposedStarttime
736          proposedDuration
737          customer {
738            id
739            firstname
740            lastname
741          }
742          address {
743            id
744            address1
745            postcode
746            latitude
747            longitude
748          }
749        }
750        newCustomers @skip(if: $isPremium) {
751          id
752          code
753          startTime
754          endTime
755          address {
756            address1
757            postcode
758            latitude
759            longitude
760          }
761          customer {
762            id
763            firstname
764            lastname
765          }
766          isCountdown
767          payout
768        }
769        newRequests @skip(if: $isPremium) {
770          id
771          proposedStarttime
772          proposedDuration
773          relationship {
774            customer {
775              id
776              firstname
777              lastname
778            }
779            address {
780              id
781              address1
782              postcode
783              latitude
784              longitude
785            }
786          }
787        }
788        busyTimes(name: "BAT B2B") @skip(if: $isPremium) {
789          id
790          name
791          starttime
792          endtime
793          customerName
794          customerAddress
795          customerTasks
796          notes
797        }
798        pickupAttempts @skip(if: $isPremium) {
799          id
800          scheduledAt
801          duration
802          event {
803            id
804            customer {
805              id
806              firstname
807              lastname
808            }
809            address {
810              id
811              address1
812              postcode
813              latitude
814              longitude
815            }
816            isVertical
817          }
818        }
819      }
820    }
821  `;return e.query({query:o,variables:{startDate:t,endDate:n,isPremium:i}})},dn=(e,t,n)=>{const i=_t.default`
822    query providerCalendarEventsCount($startDate: Date!, $endDate: Date!) {
823      providerCalendarEventsCount(startDate: $startDate, endDate: $endDate) {
824        date
825        confirmedEvents
826        unconfirmedEvents
827      }
828    }
829  `;return e.query({query:i,variables:{startDate:t,endDate:n}})},cn=(e,t)=>{const n=_t.default`
830    query providerTravelTime($eventIds: [Int!]!) {
831      providerTravelTime(eventIds: $eventIds) {
832        fromEvent
833        toEvent
834        walkingDistance
835        walkingTime
836        transitTime
837      }
838    }
839  `;return e.query({query:n,variables:{eventIds:t}})},un=(e,t,n)=>{const i=_t.default`
840    query translatedCustomerChecklist($id: ID!, $targetLanguage: String!) {
841      currentProvider {
842        id
843        customerChecklist(id: $id, targetLanguage: $targetLanguage) {
844          id
845          additionalInformation
846          translatedAdditionalInformation
847          customerChecklistItems {
848            id
849            name
850            category
851            translatedName
852            translatedCategory
853          }
854        }
855      }
856    }
857  `;return e.query({query:i,variables:{id:t,targetLanguage:n}})},pn=async e=>{const t=_t.default`
858    query providerFetchMyEarnings {
859      currentProvider {
860        id
861        myEarnings {
862          currentMonth
863          currentMonthProjected
864          nextMonthProjected
865        }
866      }
867    }
868  `,n=await e.query({query:t});return Object.assign({},n.data.currentProvider.myEarnings,{updatedAt:C.DateTime.local()})},mn=e=>{const t=_t.default`
869    query providerFetchNotificationMessage {
870      currentProvider {
871        id
872        notificationMessage {
873          id
874          url
875          translationKey
876          body {
877            key
878            value
879          }
880          expiresAt
881        }
882      }
883    }
884  `;return e.query({query:t})},fn=(e,t)=>{const n=_t.default`
885    mutation markNotificationMessageRead($id: ID!) {
886      markNotificationMessageRead(id: $id) {
887        success
888      }
889    }
890  `;return e.mutate({mutation:n,variables:{id:t}})},gn=e=>{const t=_t.default`
891    query providerGetRatingsCount {
892      currentProvider {
893        id
894        totalRatings: ratings(readable: true) {
895          totalCount
896        }
897      }
898    }
899  `;return e.query({query:t})}
899,hn=e=>{const t=_t.default`
900    query fetchNewRequests {
901      currentProvider {
902        id
903        notifications {
904          newRequests {
905            id
906            proposedStarttime
907            proposedDuration
908            relationship {
909              id
910              address {
911                ...AddressFields
912              }
913              customer {
914                id
915                name
916              }
917            }
918            nextEvent {
919              ...EventBaseFields
920            }
921            previousEvent {
922              ...EventBaseFields
923            }
924            frequency
925            payout {
926              pricePerHour
927              commissionAmountPerHour
928              providerPayoutPerHour
929              providerTotalPayout
930            }
931          }
932        }
933      }
934    }
935    ${Wt}
936    ${Kt}
937  `;return e.query({query:t})},_n=(e,t)=>{const n=_t.default`
938    mutation acceptNewRequest($id: ID!) {
939      acceptNewRequest(newRequestId: $id) {
940        success
941      }
942    }
943  `;return e.mutate({mutation:n,variables:{id:t}})},xn=(e,t)=>{const n=_t.default`
944    mutation rejectNewRequest($id: ID!) {
945      rejectNewRequest(newRequestId: $id) {
946        success
947      }
948    }
949  `;return e.mutate({mutation:n,variables:{id:t}})},yn=e=>{const t=_t.default`
950    query fetchSelectedByCustomer {
951      currentProvider {
952        id
953        notifications {
954          selectedByCustomer {
955            address {
956              ...AddressFields
957            }
958            code
959            frequency
960            startTime
961            endTime
962            duration
963            totalPayout
964          }
965        }
966      }
967    }
968    ${Wt}
969  `;return e.query({query:t})},vn=e=>{const t=_t.default`
970    query fetchChangeRequests {
971      currentProvider {
972        id
973        notifications {
974          changeRequests {
975            id
976            originalStarttime
977            originalDuration
978            proposedStarttime
979            proposedDuration
980            originalFrequency
981            proposedFrequency
982            providerResponse
983            providerAcknowledged
984            address {
985              ...AddressFields
986            }
987            customer {
988              id
989              name
990              relationship {
991                id
992              }
993            }
994            nextEvent {
995              ...EventBaseFields
996            }
997            previousEvent {
998              ...EventBaseFields
999            }
1000          }
1001        }
1002      }
1003    }
1004    ${Wt}
1005    ${Kt}
1006  `;return e.query({query:t})},bn=(e,t)=>{const n=_t.default`
1007    mutation acceptChangeRequest($id: ID!) {
1008      acceptChangeRequest(changeRequestId: $id) {
1009        success
1010      }
1011    }
1012  `;return e.mutate({mutation:n,variables:{id:t}})},wn=(e,t)=>{const n=_t.default`
1013    mutation rejectChangeRequest($id: ID!) {
1014      rejectChangeRequest(changeRequestId: $id) {
1015        success
1016      }
1017    }
1018  `;return e.mutate({mutation:n,variables:{id:t}})},Cn=(e,t)=>{throw new Error("Mutation does not exist")},jn=e=>{const t=_t.default`
1019    query fetchCancelledRelationships {
1020      currentProvider {
1021        id
1022        notifications {
1023          cancelledRelationships {
1024            id
1025            customer {
1026              id
1027              name
1028            }
1029            cancellation {
1030              affectedEvents {
1031                ...EventFullFields
1032                relationship {
1033                  successfulEventsCount
1034                  customerRepeatPrice
1035                  customerAdhocPrice
1036                }
1037              }
1038            }
1039          }
1040        }
1041      }
1042    }
1043    ${Vt}
1044  `;return e.query({query:t})},In=(e,t)=>{const n=_t.default`
1045    mutation acknowledgeRelationshipCancellation($relationshipId: ID!) {
1046      acknowledgeRelationshipCancellation(relationshipId: $relationshipId) {
1047        id
1048        success
1049        reasonCode
1050        error
1051      }
1052    }
1053  `;return e.mutate({mutation:n,variables:{relationshipId:t}})},Tn=(e,t,n)=>{const i=xt`
1054    mutation claimRelationshipCancellationFee($relationshipId: ID!, $eventId: ID!) {
1055      claimRelationshipCancellationFee(relationshipId: $relationshipId, eventId: $eventId) {
1056        success
1057        errors {
1058          message
1059        }
1060      }
1061    }
1062  `;return e.mutate({mutation:i,variables:{relationshipId:t,eventId:n}
1062,context:{apiVersion:3}})},En=(e,t)=>{const n=xt`
1063    mutation waiveRelationshipCancellationFee($relationshipId: ID!) {
1064      waiveRelationshipCancellationFee(relationshipId: $relationshipId) {
1065        success
1066        errors {
1067          message
1068        }
1069      }
1070    }
1071  `;return e.mutate({mutation:n,variables:{relationshipId:t},context:{apiVersion:3}})};function Nn(e){const t=_t.default`
1072    query fetchCurrentProviderAccountStatus {
1073      currentProvider {
1074        id
1075        awaitingOnfidoPass
1076        finishedEventsCount
1077        profile {
1078          activeRelationshipsLimit
1079        }
1080      }
1081    }
1082  `;return e.query({query:t})}var kn=n(69654);const Rn=(e,t)=>{const n=xt`
1083    query fetchCustomer($id: ID!) {
1084      customer(id: $id) {
1085        id
1086        name
1087        firstname
1088        mobile
1089        abTests {
1090          experiment
1091          experimentKey
1092        }
1093        ratings {
1094          average
1095          count
1096        }
1097        addresses {
1098          address
1099          latitude
1100          longitude
1101        }
1102        relationship {
1103          id
1104          cancelled
1105          canRequestPriceChange
1106          canRequestPriceChangeWithForm
1107          successfulEventsCount
1108          customerAdhocPrice
1109          customerRecurringPrice
1110          providerRecurringPrice
1111          hasPendingPriceChangeRequest
1112          hasOnlyOneOffEvents
1113          pastBookingCount
1114          bids {
1115            pets
1116          }
1117          series {
1118            id
1119            changeRequestable
1120            startTime
1121            duration
1122            period
1123            address {
1124              id
1125              address
1126              address1
1127              postcode
1128            }
1129            nextEvent {
1130              id
1131              startTime
1132              endTime
1133              customerHomeDetails {
1134                bathrooms
1135                cleaningProducts
1136                contactPreference
1137                elevator
1138                entranceAccess
1139                floor
1140                floorType
1141                id
1142                ironing
1143                isTrashKeyRequired
1144                laundry
1145                nameOnBell
1146                pets
1147                preferredLanguage
1148                rooms
1149                size
1150                stateOfHome
1151                trashRemovalAccess
1152              }
1153            }
1154          }
1155          customerInstructions {
1156            cleaningDetails
1157            addressInstructions
1158            numberOfRooms
1159            numberOfBathrooms
1160            needsCleaningProducts
1161            tasks
1162          }
1163          cleaningDetailsActioned
1164        }
1165      }
1166    }
1167  `;return e.query({query:n,variables:{id:t},context:{apiVersion:3}})},Sn=(e,t)=>{const n=xt`
1168    query relationships($relationshipId: ID) {
1169      relationships(id: $relationshipId) {
1170        customer {
1171          id
1172        }
1173      }
1174    }
1175  `;return e.query({query:n,variables:{relationshipId:t},context:{apiVersion:3}})},An=(e,t)=>{const n=xt`
1176    query providerFetchCustomers($filter: CustomersFilter!) {
1177      customers(filter: $filter) {
1178        id
1179        name
1180        initials
1181        relationship {
1182          id
1183          customerRecurringPrice
1184          providerRecurringPrice
1185        }
1186      }
1187    }
1188  `;return e.query({query:n,variables:{filter:t},context:{apiVersion:3}})},Pn=(e,t,n)=>{const i=_t.default`
1189    query fetchCustomerFutureEvents($id: ID!, $cancelled: Boolean) {
1190      customer(id: $id) {
1191        id
1192        relationship {
1193          id
1194          futureEvents(limit: 50, cancelled: $cancelled) {
1195            id
1196            startTime
1197            period
1198          }
1199        }
1200      }
1201    }
1202  `;return e.query({query:i,variables:{id:t,cancelled:n}})},Dn=_t.default`
1203  query customer($id: ID!) {
1204    customer(id: $id) {
1205      relationship {
1206        haveUsersParticipatedInConversation
1207      }
1208    }
1209  }
1210`,Mn=()=>{var e;const[t,{data:n,error:i,loading:o}]=(0,kn.useLazyQuery)(Dn);return{getCustomer:e=>t({variables:{id:e}}),hasUsersParticipatedInConversation:null===n||void 0===n||null===(e=n.customer)||void 0===e?void 0:e.relationship.haveUsersParticipatedInConversation,loading:o,error:i}},On=e=>{const t=_t.default`
1211    query fetchAbsences {
1212      currentProvider {
1213        id
1214        absences {
1215          id
1216          startDate
1217          endDate
1218          status
1219          category
1220          proofProvided
1221          dayPart
1222          createdAt
1223        }
1224      }
1225    }
1226  `;return e.query({query:t})},zn=e=>{const t=_t.default`
1227    query absencesOverview {
1228      allAbsences {
1229        category
1230        overallBalance
1231        entitledDays
1232        takenDays
1233        plannedDays
1234        pendingDays
1235      }
1236    }
1237  `;return e.query({query:t})},Ln=(e,t)=>{const n=_t.default`
1238    mutation createProviderAgencyAbsence(
1239      $category: String!
1240      $subCategory: String!
1241      $startDate: DateTime!
1242      $endDate: DateTime!
1243    ) {
1244      createProviderAgencyAbsence(
1245        category: $category
1246        subCategory: $subCategory
1247        startDate: $startDate
1248        endDate: $endDate
1249      ) {
1250        success
1251        errors
1252      }
1253    }
1254  `;return e.mutate({mutation:n,variables:t})},qn=(e,t)=>{const n=_t.default`
1255    query providerAgencyAbsenceAffectedCustomers($startDate: Date!, $endDate: Date!) {
1256      providerAgencyAbsenceAffectedCustomers(startDate: $startDate, endDate: $endDate) {
1257        customerName
1258        customerInitials
1259        eventStartTime
1260        eventEndTime
1261      }
1262    }
1263  `;return e.query({query:n,variables:t})},Bn=(e,{inPrice:t=!0,belowPrice:n=!0,maxRadius:i=8,minDuration:o=7200,maxDuration:a=43200,recurring:s=!0,oneOff:r=!0})=>{const l=xt`
1264    query providerGetJobs(
1265      $inPrice: Boolean
1266      $belowPrice: Boolean
1267      $maxRadius: Float
1268      $minDuration: Int
1269      $maxDuration: Int
1270      ${s!==r?"$frequency: Frequency":""}
1271    ) {
1272      allBids: bids {
1273        totalCount
1274      }
1275      bids(
1276        inPrice: $inPrice
1277        belowPrice: $belowPrice
1278        maxRadius: $maxRadius
1279        minDuration: $minDuration
1280        maxDuration: $maxDuration
1281        ${s!==r?"frequency: $frequency":""}
1282      ) {
1283        totalCount
1284        edges {
1285          node {
1286            code
1287            distance
1288            duration
1289            frequency
1290            starttime
1291            endtime
1292            payout
1293            payoutsWithIntroFee {
1294              providerTotalPayout
1295            }
1296            totalPayout
1297            isCandidate
1298            selectedByCustomer
1299            pricePerHour
1300            address {
1301              id
1302              address
1303              postcode
1304              town
1305            }
1306            optedIn
1307            countdownEndTime
1308            bidType
1309            isCountdown
1310            reverseOfferExclusivityEndTime
1311          }
1312        }
1313      }
1314    }
1315  `,d={inPrice:t,belowPrice:n,maxRadius:i,minDuration:o,maxDuration:a};return s!==r&&(d.frequency=s?"repeat":"once"),e.query({query:l,variables:d,context:{apiVersion:3}})},Gn=(e,{inPrice:t=!0,belowPrice:n=!0,maxRadius:i=8,minDuration:o=7200,maxDuration:a=43200}={})=>{const s=xt`
1316    query providerGetJobsTotalCount(
1317      $inPrice: Boolean
1318      $belowPrice: Boolean
1319      $maxRadius: Float
1320      $minDuration: Int
1321      $maxDuration: Int
1322    ) {
1323      bids(
1324        inPrice: $inPrice
1325        belowPrice: $belowPrice
1326        maxRadius: $maxRadius
1327        minDuration: $minDuration
1328        maxDuration: $maxDuration
1329      ) {
1330        totalCount
1331      }
1332    }
1333  `,r={inPrice:t,belowPrice:n,maxRadius:i,minDuration:o,maxDuration:a};return e.query({query:s,variables:r,context:{apiVersion:3}})},Un=e=>{const t=xt`
1334    query verticalRequestCandidates {
1335      verticalRequestCandidates {
1336        id
1337        request {
1338          id
1339          category
1340          duration
1341          starttime
1342          endtime
1343          pricingUnit
1344          unitQuantity
1345          frequency
1346          currentProviderTotalPayout
1347          address {
1348            id
1349            postcode
1350          }
1351        }
1352      }
1353    }
1354  `;return e.query({query:t,context:{apiVersion:3}})},$n=e=>{const t=_t.default`
1355    query findOptableVerticalRequests {
1356      findOptableVerticalRequests {
1357        id
1358        category
1359        duration
1360        starttime
1361        endtime
1362        pricingUnit
1363        unitQuantity
1364        frequency
1365        currentProviderTotalPayout
1366        address {
1367          id
1368          postcode
1369        }
1370      }
1371    }
1372  `;return e.query({query:t})};async function Fn(e){const t=xt`
1373    query providerConversations {
1374      providerConversations {
1375        customerName
1376        frequency
1377        initials
1378        lastMessageAt
1379        lastMessagePreview
1380        relationshipId
1381        unreadMessagesCount
1382        nextOccurrenceStarttime
1383      }
1384    }
1385  `;return e.query({query:t,context:{apiVersion:3}})}function Hn(e,t={}){const{relationshipId:n,beforeId:i,afterId:o,received:a,limit:s}=t,r=xt`
1386    query fetchMessagesForCustomer(
1387      $relationshipId: ID
1388      $afterId: Int
1389      $beforeId: Int
1390      $received: Boolean
1391      $limit: Int
1392    ) {
1393      messages(
1394        relationshipId: $relationshipId
1395        afterId: $afterId
1396        beforeId: $beforeId
1397        received: $received
1398        first: $limit
1399        order: DESC
1400      ) {
1401        edges {
1402          cursor
1403          node {
1404            id
1405            body
1406            payload {
1407              key
1408              value
1409            }
1410            sender {
1411              id
1412              firstname
1413            }
1414            createdAt
1415            readAt
1416          }
1417        }
1418      }
1419    }
1420  `;return e.query({query:r,variables:{relationshipId:n,beforeId:i,afterId:o,received:a,limit:s},context:{apiVersion:3}})}function Wn(e,{receiverId:t,body:n}){const i=xt`
1421    mutation postMessage($body: String!, $receiverId: ID) {
1422  postMessage(body: $body, receiverId: $receiverId) {
1423    success
1424    message {
1425      id
1426      body
1427      createdAt
1428      readAt
1429    }
1430    errors {
1431      message
1432      code
1433    }
1434  }
1435}
1436
1437  `;return e.mutate({mutation:i,variables:{receiverId:t,body:n},context:{apiVersion:3}})}function Vn(e,t){const n=_t.default`
1438    mutation markMessagesRead($messageId: ID!) {
1439      markMessagesRead(messageId: $messageId) {
1440        success
1441      }
1442    }
1443  `;return e.mutate({mutation:n,variables:{messageId:t}})}function Kn(e,{messageId:t,targetLanguage:n}){const i=xt`
1444    query translateMessage($messageId: ID, $targetLanguage: String!, $translationProvider: TranslationProviderEnum) {
1445      translateMessage(
1446        messageId: $messageId
1447        targetLanguage: $targetLanguage
1448        translationProvider: $translationProvider
1449      ) {
1450        translatedBody
1451        detectedSourceLanguage
1452        error
1453      }
1454    }
1455  `;return e.query({query:i,variables:{messageId:t,targetLanguage:n},context:{apiVersion:3}})}const Yn=xt`
1456  subscription unreadMessageCountUpdated {
1457    unreadMessageCountUpdated {
1458      unreadCount
1459    }
1460  }
1461`,Xn=async(e,t)=>{const n=xt`
1462    mutation exportInvoices($endDate: Date!, $startDate: Date!) {
1463      exportInvoices(endDate: $endDate, startDate: $startDate) {
1464        success
1465        errors {
1466          message
1467        }
1468      }
1469    }
1470  `;return e.mutate({mutation:n,variables:t,context:{apiVersion:3}})},Zn=_t.default`
1471  fragment HelpArticleFields on ProviderHelpArticleType {
1472    id
1473    title
1474    description
1475  }
1476`,Qn=async(e,{id:t})=>{const n=_t.default`
1477    ${Zn}
1478    query fetchHelpArticle($id: ID!) {
1479      providerHelp {
1480        article(id: $id) {
1481          ...HelpArticleFields
1482        }
1483      }
1484    }
1485  `;return e.query({query:n,variables:{id:t}})},Jn=async(e,{searchedText:t})=>{const n=_t.default`
1486    ${Zn}
1487    query searchHelpArticles($term: String!) {
1488      providerHelp {
1489        articles(term: $term) {
1490          ...HelpArticleFields
1491        }
1492      }
1493    }
1494  `;return e.query({query:n,variables:{term:t}})},ei=async(e,t)=>{const n=_t.default`
1495    mutation providerHelpSubmitContactForm($subject: String!, $body: String!) {
1496      providerHelpSubmitContactForm(subject: $subject, body: $body) {
1497        success
1498        errors {
1499          code
1500        }
1501      }
1502    }
1503  `;return e.mutate({mutation:n,variables:{subject:t.subject,body:t.message}})},ti=e=>{const t=xt`
1504    query getExpeditedPayment {
1505      providerPendingPayouts {
1506        expeditedPayment {
1507          enabled
1508          commission
1509          balance
1510        }
1511      }
1512    }
1513  `;return e.query({query:t,context:{apiVersion:3}})},ni=xt`
1514  mutation assignProviderToAbTest($abTestKey: String!) {
1515    assignProviderToAbTest(abTestKey: $abTestKey) {
1516      success
1517      abTest {
1518        key
1519        group
1520      }
1521    }
1522  }
1523`,ii=(e,t)=>
1523e.mutate({mutation:ni,variables:{abTestKey:t},context:{apiVersion:3}}).then(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.assignProviderToAbTest}),oi=xt`
1524  query externalCalendar {
1525    externalCalendar {
1526      externalCalendarId
1527    }
1528  }
1529`,ai=e=>e.query({query:oi,context:{apiVersion:3},fetchPolicy:"network-only"}),si=xt`
1530  query ReferralProgramSummary {
1531    referralProgram {
1532      schemeTotalAmount
1533    }
1534  }
1535`;function ri(e){return e.query({query:si,context:{apiVersion:3}})}var li=n(33880);const di=JSON.parse(E("EXPO_PUBLIC_API_HOSTNAMES")),ci=JSON.parse(E("EXPO_PUBLIC_APP_HOSTNAMES")),ui=JSON.parse(E("EXPO_PUBLIC_WWW_HOSTNAMES")),pi=JSON.parse(E("EXPO_PUBLIC_SERVICES_HOSTNAMES")),mi=JSON.parse(E("EXPO_PUBLIC_LOCALES_HOSTNAMES")),fi=JSON.parse(E("EXPO_PUBLIC_CUSTOMER_APP_HOSTNAMES")),gi=JSON.parse(E("EXPO_PUBLIC_APPLICANT_HOSTNAMES")),hi=(e="localhost")=>{const t=window.location.protocol;return e.startsWith("http")?e:`${t}//${e}`},_i=(e="",t=n.g.country)=>new URL(e,hi(ci[t])).toString(),xi=(e="",t=n.g.country)=>new URL(e,hi(di[t])).toString(),yi=(e=n.g.country)=>new URL("/cable",hi(di[e]).replace("http","ws")).toString(),vi=(e="",t=n.g.country)=>new URL(e,hi(pi[t])).toString(),bi=(e="",t=n.g.country)=>new URL(e,hi(ui[t])).toString(),wi=e=>`/provider${e?`?${new URLSearchParams(e).toString()}`:""}`,Ci="return_to",ji=/^\/provider(\/|\?|$)/,Ii=(e="",t=null)=>{if(!t)return`/provider/login${e}`;const n=new URLSearchParams(e);return n.set(Ci,t),`/provider/login?${n.toString()}`},Ti=(e="")=>{const t=new URLSearchParams(e).get(Ci);return t&&ji.test(t)?t:null},Ei=(e="")=>`/provider/country${e}`,Ni=e=>`/provider/events/${e}`,ki=e=>`/provider/events/${e}/amend`,Ri=e=>`/provider/customers/${e}`,Si=e=>`/provider/faq/article/${e}`,Ai=e=>`/provider/customers/${e}/reschedule_booking`,Pi=(e,t)=>`/provider/customers/${e}/price${t?`?prefillPrice=${t}`:""}`,Di=e=>`/provider/customers/${e}/home_details`,Mi=e=>"/provider/resolution_center"+(e?`?initial_tab=${e}`:""),Oi=e=>`/provider/resolution_center/report_problem/case/${e}/pre_report_notes`,zi=e=>`/provider/resolution_center/cases/${e}/add_documents`,Li=e=>`/provider/resolution_center/cases/${e}/details`,qi=e=>`/provider/resolution_center/reported_cases/${e}/details`,Bi=e=>`/provider/resolution_center/cases/${e}/resolve`,Gi=e=>`/provider/resolution_center/cases/${e}/provider_response`,Ui=e=>"/provider/my_prices"+(e?`?preselectTab=${e}`:""),$i=e=>`/provider/services/${e}`,Fi=e=>bi(`refermyfriend/?referral_code=${e}`),Hi=e=>`/provider/chat_messages/${e}`,Wi=e=>`/provider/chat_messages/${e}`,Vi=e=>null!==e&&void 0!==e&&e.showAvailabilityModal?`/provider/planner?showAvailabilityModal=${null===e||void 0===e?void 0:e.showAvailabilityModal}`:"/provider/planner",Ki=e=>"/provider/references"+(e?`/${e}`:""),Yi=e=>`/provider/apply/${e}`,Xi=e=>`/provider/bid/${e}`,Zi=()=>xi("/api/v2/oauth/token"),Qi=(e,t=n.g.country)=>`${hi(fi[t])}/customer/provider/${e}`,Ji=(e,t)=>{const n=E("EXPO_PUBLIC_API_AUTH");return Object.assign({},e,t?{"X-Auth-Token":t}:{},n?{Authorization:`Basic ${n}`}:{},{"X-Platform":"web","X-App-Name":Fe,"X-App-Version":He})},eo="UNAUTHORIZED",to=e=>{if(!e)return!1;const t=e.networkError||e;return"ServerError"===t.name&&401===t.statusCode||t.message===eo},no=async e=>{const t=await fetch(Zi(),{body:JSON.stringify(e),cache:"no-cache",method:"POST",headers:{"Content-Type":"application/json"}});return{status:t.status,data:await t.json()}};const io=["fetchCurrentUser","fetchBrazeSettings","fetchIntercomSettings"],oo=Object.assign({},a,s,r,l,d,c,u,p,m,f,g,h,_,x,y,v,b,w),ao=e=>{const{session:t}=(0,Y.getRoot)(e);return t.isSignedIn?t.apis:((e,t=io)=>Object.keys(oo).reduce((n,i)=>(-1!==t.indexOf(i)?n[i]=e.apis[i]:(console.warn(`Ignoring API call: ${i} because the user is not signed in`),n[i]=()=>new Promise((e,t)=>t(new Error(eo)))),n),{}))(t)},so=2,ro=3,lo=4,co=5,uo={[so]:Qe.GREEN_SUMMER_GRASS,[ro]:Qe.GOLD_1,[lo]:Qe.CRIMSON_1,[co]:Qe.CRIMSON_1},po=Y.types.model("StripeAccount",{hasAccount:Y.types.boolean,chargesEnabled:Y.types.boolean,idVerificationRequired:Y.types.boolean,payoutsEnabled:Y.types.boolean,underReview:Y.types.boolean,verificationDeadline:Y.types.maybeNull(Y.types.string)}).views(e=>({getUseCase:()=>!e.hasAccount||e.underReview||!e.idVerificationRequired&&e.payoutsEnabled?null:e.idVerificationRequired&&e.payoutsEnabled&&!e.verificationDeadline?2:e.idVerificationRequired&&e.payoutsEnabled&&e.verificationDeadline?3:e.idVerificationRequired&&!e.payoutsEnabled?4:5,getUseCaseColor(){const t=e.getUseCase();return uo[t]}})),mo=Y.types.model("Agency",{id:Y.types.identifier,featureFlagChat:Y.types.boolean,featureFlagProviderCanSeeOffers:Y.types.boolean}),fo=Y.types.model("Announcement",{id:Y.types.identifier,title:Y.types.string,body:Y.types.string,buttonText:Y.types.string,buttonUrl:Y.types.maybeNull(Y.types.string),externalUrl:Y.types.maybeNull(Y.types.string)}),go=Y.types.model("ProviderPrice",{oneOffPrice:Y.types.maybeNull(Y.types.number),oneOffCommissionPerHour:Y.types.maybeNull(Y.types.number),recurringPrice:Y.types.maybeNull(Y.types.number),recurringCommissionPerHour:Y.types.maybeNull(Y.types.number)}),ho=Y.types.model("ProviderPriceLimits",{recurringMaxPrice:Y.types.number,recurringMinPrice:Y.types.number,oneOffMaxPrice:Y.types.number,oneOffMinPrice:Y.types.number}),_o=Y.types.model("Address",{id:Y.types.identifier,address:Y.types.maybeNull(Y.types.string),postcode:Y.types.maybeNull(Y.types.string),town:Y.types.maybeNull(Y.types.string),address1:Y.types.maybeNull(Y.types.string),address2:Y.types.maybeNull(Y.types.string),latitude:Y.types.maybeNull(Y.types.number),longitude:Y.types.maybeNull(Y.types.number)}),xo={trial:"trial",full:"full",one_off:"one_off",repeat:"repeat",active:"active",leaver:"leaver",inactive:"inactive"},yo=Y.types.model("CurrentUser",{id:Y.types.identifier,accountType:Y.types.string,firstname:Y.types.optional(Y.types.maybeNull(Y.types.string),""),lastname:Y.types.optional(Y.types.maybeNull(Y.types.string),""),email:Y.types.string,preferredLanguage:Y.types.maybeNull(Y.types.string),defaultProfileImage:Y.types.string,profileImage:Y.types.maybeNull(Y.types.string),workStatus:Y.types.maybeNull(Y.types.string),performanceScoreGroup:Y.types.maybeNull(Y.types.string),stripeAccount:po,stripePublicKey:Y.types.maybeNull(Y.types.string),agency:Y.types.maybeNull(mo),announcement:Y.types.maybeNull(fo),birthPlace:Y.types.maybeNull(Y.types.string),birthCountry:Y.types.maybeNull(Y.types.string),birthdate:Y.types.maybeNull(Y.types.string),prices:Y.types.maybeNull(go),priceLimits:ho,premium:Y.types.boolean,address:Y.types.maybeNull(_o),messageTranslationLanguage:Y.types.maybeNull(Y.types.string),maxRadius:Y.types.maybeNull(Y.types.number),vacationProbationPeriodEnd:Y.types.maybeNull(Y.types.string),limitAppPendingDeletion:Y.types.boolean,needsBankDetail
1535sBeforeOffers:Y.types.boolean,referralUrl:Y.types.maybeNull(Y.types.string),metro:Y.types.maybeNull(Y.types.string),postcode:Y.types.maybeNull(Y.types.string),invoicedYears:Y.types.maybeNull(Y.types.array(Y.types.number)),mobile:Y.types.maybeNull(Y.types.string),referencesCode:Y.types.maybeNull(Y.types.string),onboarded:Y.types.maybeNull(Y.types.boolean),referred:Y.types.maybeNull(Y.types.boolean),emailVerified:Y.types.maybeNull(Y.types.boolean),applicationProcessVersion:Y.types.maybeNull(Y.types.number),vatId:Y.types.maybeNull(Y.types.string),personalTaxId:Y.types.maybeNull(Y.types.string),variantSubGroup:Y.types.maybeNull(Y.types.string),registrationFeeAmount:Y.types.maybeNull(Y.types.number)}).views(e=>({get fullName(){return`${e.firstname} ${e.lastname}`},get isSuspended(){return"suspended"===e.workStatus},get isFreelance(){return!e.agency},get avatar(){return e.profileImage||e.defaultProfileImage},get hasAvatar(){return e.profileImage!==e.defaultProfileImage},get fullAddress(){return`${e.address.address1}, ${e.address.town}, ${e.address.postcode}`},get isDeactivated(){return e.workStatus===xo.leaver},get birthPlaceDetails(){return e.birthPlace&&e.birthCountry?`${e.birthPlace}, ${e.birthCountry}`:e.birthCountry?e.birthCountry:""},get isHamburgProvider(){return"Hamburg"===e.metro},get isInactive(){return e.workStatus===xo.inactive},get isFromOldFunnel(){return 1===e.applicationProcessVersion},get paymentBillingDetails(){var t,n,i,o;return{name:e.fullName,email:e.email,address:{line1:null===(t=e.address)||void 0===t?void 0:t.address1,line2:null===(n=e.address)||void 0===n?void 0:n.address2,city:null===(i=e.address)||void 0===i?void 0:i.town,postal_code:null===(o=e.address)||void 0===o?void 0:o.postcode,state:"",country:(0,Y.getRoot)(e).session.stripeCountry}}}})).actions(e=>({removeAnnouncement:()=>{e.announcement=null},setAvatar:t=>{e.profileImage=t},setWorkStatus:t=>{e.workStatus=t},setEmail:t=>{e.email=t},setReferred:t=>{e.referred=t},setOnboarded:t=>{e.onboarded=t},setEmailVerified:t=>{e.emailVerified=t}})),vo="welcome",bo="register",wo="email_verification",Co="personal_details",jo="address",Io="mobile",To="mobile_verfication",Eo="account_created",No=[wo,Co,jo,Io,To,Eo],ko=Y.types.model("ApplicationProcess",{version:Y.types.maybeNull(Y.types.number),requiredAgreements:Y.types.array(Y.types.string),applicationProcessState:Y.types.maybeNull(Y.types.string),seenActivationScreen:Y.types.maybeNull(Y.types.boolean),steps:Y.types.array(Y.types.string),redirectUrl:Y.types.maybeNull(Y.types.string)}).views(e=>({get enabled(){return 2===e.version},get redirectToDashboard(){const{session:{isSignedIn:t}}=(0,Y.getRoot)(e);return!!t&&(e.steps.length>0&&e.steps.indexOf(e.applicationProcessState)===e.steps.length-1)},get pendingStep(){const{session:{currentUser:t}}=(0,Y.getRoot)(e);if(!e.enabled||null!==t&&void 0!==t&&t.onboarded)return null;const n=e.steps.indexOf(e.applicationProcessState);return n<0||n===e.steps.length-1?null:e.applicationProcessState},get businessLicenseRequired(){return e.requiredAgreements.includes("business_license")},get requireNewPassword(){return e.applicationProcessState===bo}})).actions(e=>({updateApplicationProcessState(t){e.applicationProcessState=t},updateSeenActivationScreen(t){e.seenActivationScreen=t}})),Ro=Y.types.model("FeatureFlags",{hidePricesFromProvider:Y.types.boolean,materials:Y.types.boolean,onboardingBusinessLicenseCheckbox:Y.types.boolean,onboardingSelfEmploymentCheckbox:Y.types.boolean,psd2Payments:Y.types.boolean,registrationFee:Y.types.boolean,showChatDisclaimerModal:Y.types.boolean,showConfirmedEventsPerMonth:Y.types.boolean,showHotlineInfo:Y.types.boolean,showMyEarnings:Y.types.boolean,showShortTimeWorkAgreement:Y.types.boolean,vatIdInProfileForm:Y.types.boolean,verticalOffers:Y.types.boolean,verticalServices:Y.types.boolean,collectReferences:Y.types.boolean,canReportResolutionCenterCases:Y.types.maybeNull(Y.types.boolean),providerNoReferencesCardEnabled:Y.types.maybeNull(Y.types.boolean),providerReviewPriceCardEnabled:Y.types.maybeNull(Y.types.boolean),newRelationshipIntroFee:Y.types.maybeNull(Y.types.boolean),personalTaxIdInProfileForm:Y.types.maybeNull(Y.types.boolean)}),So=Y.types.model("ViewPermissions",{editProfile:Y.types.boolean,canShareProfile:Y.types.maybeNull(Y.types.boolean),canSeeWorkingLocationSetup:Y.types.boolean,myEarnings:Y.types.boolean,seeOffers:Y.types.boolean,seeAbsenceOverview:Y.types.maybeNull(Y.types.boolean),requestAbsence:Y.types.maybeNull(Y.types.boolean),seeMonthlyOverview:Y.types.maybeNull(Y.types.boolean),editNotificationPreferences:Y.types.maybeNull(Y.types.boolean),seeTips:Y.types.boolean,seeBonuses:Y.types.boolean,editWorkingHours:Y.types.boolean,canChangePrices:Y.types.boolean,referAFriend:Y.types.boolean,createHolidays:Y.types.boolean,seePayouts:Y.types.boolean,seeTransfers:Y.types.boolean,seeTermsLink:Y.types.boolean,seeAbsenceStatus:Y.types.boolean,seeRelationshipCancellation:Y.types.maybeNull(Y.types.boolean),canCancelEvents:Y.types.boolean,canSeeResolutionCenter:Y.types.boolean,canSeeExpectedMonthlyIncome:Y.types.boolean,canResc
1535heduleSeries:Y.types.boolean,actionSelectedOffers:Y.types.boolean,hasNewOffersBlocked:Y.types.boolean}).actions(e=>({fetchHasNewOffersBlocked:(0,Y.flow)(function*(){try{var t,n;const{data:i}=yield ao(e).fetchHasHasNewOffersBlockedFlag();void 0!==(null===i||void 0===i||null===(t=i.settings)||void 0===t||null===(n=t.viewPermissions)||void 0===n?void 0:n.hasNewOffersBlocked)&&(e.hasNewOffersBlocked=i.settings.viewPermissions.hasNewOffersBlocked)}catch(i){console.error("Failed to fetch hasNewOffersBlocked flag",i)}})})).views(e=>({get canSeeReferAFriend(){const{session:{currentUser:{limitAppPendingDeletion:t,referralUrl:n}}}=(0,Y.getRoot)(e);return!!n&&!!e.referAFriend&&!t}})),Ao=Y.types.model("Subcategory",{name:Y.types.identifier}),Po=Y.types.model("Category",{name:Y.types.string,subcategories:Y.types.array(Ao)}),Do=Y.types.model("ProviderAbTest",{key:Y.types.string,group:Y.types.string}),Mo="Decrease_no_show_rate_mobile_DE_ft_sync_all_helpling_events_with_the_provider_personal_calendar_v2",Oo="ReducePECCancels_all_de_berlin_ft_PECOnlyTwoCancelReasonsWithMandatoryComment_EventAndRS_v1",zo="ReducePECCancels_all_de_non_berlin_ft_PECOnlyTwoCancelReasonsWithMandatoryComment_EventAndRS_v1",Lo="ProviderOfferPageImprovements_all_de_dt_AddOfferTags_v1",qo=Y.types.model("ReferralProgram",{schemeTotalAmount:Y.types.maybeNull(Y.types.number)}),Bo=Y.types.model("AppSettings",{applicationProcess:Y.types.maybe(ko),featureFlags:Y.types.maybe(Ro),viewPermissions:Y.types.maybe(So),unreadMessagesCount:Y.types.maybeNull(Y.types.integer),redirectUrl:Y.types.maybeNull(Y.types.string),absenceCategoriesStructured:Y.types.maybeNull(Y.types.array(Po)),abTests:Y.types.optional(Y.types.array(Do),[]),referralProgram:Y.types.maybeNull(qo)}).views(e=>({get absenceCategories(){return e.absenceCategoriesStructured?Array.from(e.absenceCategoriesStructured).reduce((e,t)=>{const{name:n,subcategories:i}=t;return e=i.length<1?[...e,{category:n,subCategory:""}]:[...e,...i.map(e=>({category:n,subCategory:e.name}))]},[]):[]},isProviderUnderAbTest:t=>e.abTests.some(e=>e.key===t),isProviderUnderExperimentAbTest:t=>e.abTests.some(e=>e.key===t&&"experiment_group"===e.group),isProviderUnderEventCancellationReasonSelectionExperimentAbTest:()=>e.isProviderUnderExperimentAbTest(Oo)||e.isProviderUnderExperimentAbTest(zo)})).actions(e=>({clearRedirectUrl(){e.redirectUrl=null},assignProviderToAbTest:(0,Y.flow)(function*(t){const{abTest:n}=yield ao(e).assignProviderToAbTest(t);if(n){const{analytics:{trackTestStarted:t}}=(0,Y.getRoot)(e);t(n.key,n.group),e.abTests=[...e.abTests,n]}}),assignProviderToEventCancellationReasonSelectionAbTest:(0,Y.flow)(function*(){const{session:{currentUser:t}}=(0,Y.getRoot)(e);return"Berlin"===t.metro?e.assignProviderToAbTest(Oo):e.assignProviderToAbTest(zo)}),syncAbTestsClarityTags:(0,Y.flow)(function*(){const{session:{currentUser:t},analytics:{trackingPermission:n}}=(0,Y.getRoot)(e);t&&n&&"function"===typeof window.claritySetCustomTag&&e.abTests.forEach(e=>{window.claritySetCustomTag(e.key,e.group)})})})),Go=Bo,Uo=Y.types.model("AppCounters",{newOffers:Y.types.optional(Y.types.integer,0),newCustomers:Y.types.optional(Y.types.integer,0),newRequests:Y.types.optional(Y.types.integer,0),notPostAgreedEvents:Y.types.optional(Y.types.integer,0),selectedByCustomer:Y.types.optional(Y.types.integer,0),cancelledEvents:Y.types.optional(Y.types.integer,0),cancelledRelationships:Y.types.optional(Y.types.integer,0),unconfirmedEvents:Y.types.optional(Y.types.integer,0),unreadMessages:Y.types.optional(Y.types.integer,0),totalVerticals:Y.types.optional(Y.types.integer,0),changeRequests:Y.types.optional(Y.types.integer,0),openCases:Y.types.maybeNull(Y.types.integer,0)}).views(e=>({get offers(){return e.newOffers+e.totalVerticals},get offersWithNewRequests(){return e.offers+e.newRequests},get showNewRequest(){var t;const{session:{currentUser:n,countryConfig:i}}=(0,Y.getRoot)(e);return(null===n||void 0===n?void 0:n.isFreelance)||(null===i||void 0===i||null===(t=i.agencyProvider)||void 0===t?void 0:t.showNewRequest)},get showNewCustomer(){var t;const{session:{currentUser:n,countryConfig:i}}=(0,Y.getRoot)(e);return(null===n||void 0===n?void 0:n.isFreelance)||(null===i||void 0===i||null===(t=i.agencyProvider)||void 0===t?void 0:t.showNewCustomer)},get dashboardCount(){const{session:{currentUser:t,countryConfig:n}}=(0,Y.getRoot)(e);return t?(t.isFreelance||n.agencyProvider.showChangeRequest?e.changeRequests:0)+(e.showNewCustomer?e.selectedByCustomer:0)+e.unconfirmedEvents+(e.showNewRequest?e.newRequests:0)+e.notPostAgreedEvents:null},get notificationsCount(){const{session:{currentUser:t,countryConfig:n}}=(0,Y.getRoot)(e);return(t.isFreelance||n.agencyProvider.showChangeRequest?e.changeRequests:0)+e.cancelledEvents+e.cancelledRelationships}})),$o=Uo,Fo={country:{locale:"uk",momentLocale:"en",timezone:"Europe/London",timeFormat:"H:mm",multiLanguage:!1,availableLocales:["uk"]},offers:{showAllOffersWithoutFiltering:!1,availableOfferTypes:["selected","countdown"],showFilterButton:!0},notPostAgreedEvents:{durations:[3600,5400,7200,9e3,10800,12600,14400,16200,18e3,19800,21600,23400,25200,27e3],cancellationReasons:["EC_1","EC_3","EC_6","EC_99"],proposedTimes:[["07:00","07:00"],["07:30","07:30"],["08:00","08:00"],["08:30","08:30"],["09:00","09:00"],["09:30","09:30"],["10:00","10:00"],["10:30","10:30"],["11:00","11:00"],["11:30","11:30"],["12:00","12:00"],["12:30","12:30"],["13:00","13:00"],["13:30","13:30"],["14:00","14:00"],["14:30","14:30"],["15:00","15:00"],["15:30","15:30"],["16:00","16:00"],["16:30","16:30"],["17:00","17:00"],["17:30","17:30"],["18:00","18:00"],["18:30","18:30"],["19:00","19:00"],["19:30","19:30"]],datesOffset:{daysBeforeCurrent:20,daysAfterCurrent:20}},agencyProvider:{showChangeRequest:!0,showNewRequest:!0,showNewCustomer:!0},extraConfirmationSteps:!0,requireSuccessfulEventsBeforeCompensationClaim:!0,showTechnicalIssuesBanner:!1,minimumRepeatBidHours:2,maximumRepeatBidHours:12,minimumO
1535neOffBidHours:3,maximumOneOffBidHours:12,minStartTime:"7:30",maxStartTime:"19:30",moreOptions:{newCustomers:[{value:"travel",labelKey:"more_options.new_customers.reject.travel"},{value:"busy",labelKey:"more_options.new_customers.reject.busy"},{value:"duration",labelKey:"more_options.new_customers.reject.duration"},{value:"frequency",labelKey:"more_options.new_customers.reject.frequency"},{value:"notes",labelKey:"more_options.new_customers.reject.notes"},{value:"price",labelKey:"more_options.new_customers.reject.price"}]},showUnconfirmedLabel:!0,enableSearch:!1,showFreelanceReliabilityStatus:!1,showOfferDisclaimer:!1,canDeactivateAccount:!1,servicesWithImages:[],euRegulation20242065ModalRequired:!1,onfidoFailedContactUsLink:null,documentVerificationFaqArticleId:null,personalTaxIdIntercomArticleId:null,showAnnualOverview:!1,showVATInfo:!1,appShutdownDate:null,supportAppleSignIn:!1,supportGoogleSignIn:!1,registrationBlocked:!1,showEmailSupport:!0,showMessageTemplatesInChat:!1,shouldSeeIntercom:!1,makeCleaningInstructionAccessible:!1,showCommunityGuidelinesMenuItem:!1,providerCanSetAvailability:!0};var Ho=n(24254),Wo=n.n(Ho);const Vo=Object.assign({},Fo,{country:{locale:"ch",momentLocale:"de",timezone:"Europe/Zurich",timeFormat:"H:mm",multiLanguage:!0,availableLocales:["ch","ch_fr","ch_en"]},offers:{showAllOffersWithoutFiltering:!0,availableOfferTypes:["selected"],showFilterButton:!1},minimumOneOffBidHours:2.5,minStartTime:"7:00",showEmailSupport:!1,providerCanSetAvailability:!1}),Ko=Object.assign({},Vo,{country:{locale:"ch_en",momentLocale:"en",timezone:"Europe/Zurich",timeFormat:"H:mm",multiLanguage:!0,availableLocales:["ch","ch_fr","ch_en"]},providerCanSetAvailability:!1}),Yo=Object.assign({},Vo,{country:{locale:"ch_fr",momentLocale:"fr",timezone:"Europe/Zurich",timeFormat:"H:mm",multiLanguage:!0,availableLocales:["ch","ch_fr","ch_en"]},providerCanSetAvailability:!1}),Xo=Object.assign({},Fo,{country:{locale:"de",momentLocale:"de",timezone:"Europe/Berlin",timeFormat:"H:mm",multiLanguage:!0,availableLocales:["de","de_en"]},recommendedArticles:[15000029977,15000029968,15000029955,15000029959,15000029993],minimumOneOffBidHours:2,minStartTime:"7:00",showUnconfirmedLabel:!1,enableSearch:!0,showFreelanceReliabilityStatus:!0,showOfferDisclaimer:!0,canDeactivateAccount:!0,servicesWithImages:["home_beauty.cart_massage","lawn_plants.yard_gardening","home_maintenance.handyman","furniture.furniture_assembly","pet_care.dog_sitting","pet_care.dog_boarding","pet_care.dog_walking"],onfidoFailedContactUsLink:"https://de.provider.helpling.com/de/support/solutions/articles/15000058870-wie-gehe-ich-vor-wenn-meine-id-verifizierung-fehlschl%C3%A4gt",documentVerificationFaqArticleId:"15000056940",personalTaxIdIntercomArticleId:"788497",showAnnualOverview:!0,showVATInfo:!0,supportAppleSign
1535In:!0,supportGoogleSignIn:!0,showMessageTemplatesInChat:!0,shouldSeeIntercom:!0,makeCleaningInstructionAccessible:!0,showCommunityGuidelinesMenuItem:!0}),Zo={en:Fo,ch:Vo,chEn:Ko,chFr:Yo,de:Xo,deEn:Object.assign({},Xo,{country:{locale:"de_en",momentLocale:"en",timezone:"Europe/Berlin",timeFormat:"H:mm",multiLanguage:!0,availableLocales:["de","de_en"]},recommendedArticles:[15000029977,15000029968,15000029955,15000029959,15000029993],showUnconfirmedLabel:!1,euRegulation20242065Faq:"https://de.provider.helpling.com/en/support/solutions/articles/15000058747-why-do-i-have-to-certify-that-my-services-are-compliant-with-eu-rules-",onfidoFailedContactUsLink:"https://de.provider.helpling.com/en/support/solutions/articles/15000058870-how-to-proceed-if-your-id-verification-fails-",documentVerificationFaqArticleId:"15000056940",showCommunityGuidelinesMenuItem:!0}),fr:Object.assign({},Fo,{country:{locale:"fr",momentLocale:"fr",timezone:"Europe/Paris",timeFormat:"H:mm",multiLanguage:!1,availableLocales:["fr"]},minimumOneOffBidHours:2,minStartTime:"8:00",maxStartTime:"18:00",listAgenciesForceInstallHelplingConnectApp:["86"],showAnnualOverview:!0}),ie:Object.assign({},Fo,{country:{locale:"ie",momentLocale:"en",timezone:"Europe/Dublin",timeFormat:"H:mm",multiLanguage:!1,availableLocales:["ie"]},recommendedArticles:[15000030251,15000030244,15000030218,15000030233,15000030600],euRegulation20242065ModalRequired:!0,documentVerificationFaqArticleId:"15000056506",showAnnualOverview:!0,supportAppleSign
1535In:!0,supportGoogleSignIn:!0,registrationBlocked:!0,appShutdownDate:"2025-09-10T00:00:00Z"}),it:Object.assign({},Fo,{country:{locale:"it",momentLocale:"it",timezone:"Europe/Rome",timeFormat:"H:mm",multiLanguage:!1,availableLocales:["it"]},recommendedArticles:[15000052267,15000029981,15000030027,15000030300,15000029976],maximumRepeatBidHours:10,minimumOneOffBidHours:2,maximumOneOffBidHours:10,minStartTime:"8:00",maxStartTime:"21:00",euRegulation20242065ModalRequired:!0,documentVerificationFaqArticleId:"15000056505",showAnnualOverview:!0,appShutdownDate:"2025-05-29T00:00:00Z"}),sg:Object.assign({},Fo,{country:{locale:"sg",momentLocale:"en",timezone:"Asia/Singapore",timeFormat:"H:mm",multiLanguage:!1,availableLocales:["sg"]},agencyProvider:{showChangeRequest:!1,showNewRequest:!1,showNewCustomer:!1},extraConfirmationSteps:!1,recommendedArticles:[15000030103,15000030187,15000030098,15000030083,15000030066],minimumRepeatBidHours:3,maximumRepeatBidHours:6,minimumOneOffBidHours:3,maximumOneOffBidHours:6}),uk:Object.assign({},Fo,{recommendedArticles:[15000030249,15000029660,15000030201,15000029669,15000030247],documentVerificationFaqArticleId:"15000056507",appShutdownDate:"2025-03-10T00:00:00Z"})},Qo=(e="en")=>Zo[Wo().camelize(e)];var Jo=n(34930),ea=n(83710),ta=n(126),na=n(96118),ia=n(87827),oa=n(6209),aa=n(74291),sa=n(36356),ra=n(15778),la=n(61461),da=n(85092),ca=n(26062);const ua=function(){let e=[];return{wait:(t,n)=>e.push({success:t,error:n}),success:t=>{e.map(({success:e})=>e(t)),e=[]},failure:t=>{e.map(({error:e})=>e(t)),e=[]}}}(),pa=(e,t,n,i,o)=>{const{headers:a}=t.getContext();return t.setContext({uri:e,headers:Ji(a,o)}),n(t).subscribe(i)},ma=({getApiUrl:e,getDeviceUniqueIdentifier:t,onRefreshFailure:i=()=>null})=>{let o=!1;return(0,ca.onError)(({networkError:a,operation:s,forward:r})=>{if(to(a))return new da.Observable(async l=>{const{apiVersion:d=2}=s.getContext(),c=await Ne.default.getItem("refreshToken"),u=pa.bind(void 0,e(d),s,r,l);if(!c)return await i(null),l.error(a);try{if(!o){o=!0;const{accessToken:e,refreshToken:i}=await async function(e,t){se("auth","Refreshing access token",{refreshToken:e,country:n.g.country,url:Zi()});const i=await no({grant_type:"refresh_token",refresh_token:e,device_unique_identifier:t});if(i.data.access_token)return se("auth","Refresh token success"),{accessToken:i.data.access_token,refreshToken:i.data.refresh_token};{se("auth","Refresh token failure",{response:i.data}),ce("Customer was unable to refresh access token");const e=new Error(eo);throw e.response=i,e}}(c,t());return await Ne.default.multiSet([["accessToken",e],["refreshToken",i]]),ua.success(e),o=!1,u(e)}ua.wait(e=>u(e),e=>{l.error(e),i(e)})}catch(ca){return o=!1,await i(ca),ua.failure(ca),l.error(ca)}})})},fa=({onUnauthorized:e})=>(0,ca.onError)(({graphQLErrors:t})=>{if(null!==t&&void 0!==t&&t.some(e=>{var t;return"UNAUTHORIZED"===(null===(t=e.extensions)||void 0===t?void 0:t.code)}))return e(),new da.Observable(e=>{e.complete()})});var ga=n(17859);const{useApolloNetworkStatus:ha,link:_a}=(0,ga.createNetworkStatusNotifier)(),xa=()=>new na.ApolloLink((e,t)=>t(e));var ya=n(85819);const va=async()=>{try{var e;const t=await fetch(xi("/api/v3/provider"),{credentials:"include",headers:Ji({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify({query:"query { subscriptionJwt }"})});return null===(e=(await t.json()).data)||void 0===e?void 0:e.subscriptionJwt}catch(ca){throw se("cable","Unable to fetch JWT token from the server",{error:ca}),ca}},ba=(0,ya.createConsumer)(yi(),{transportConfigurator:async(e,{initial:t})=>{if(!t)return;const n=yi();e.setURL(n);const i=await va();e.setToken(i)},tokenRefresher:async e=>{e.setToken(await va())}});var wa=n(47408);const Ca=e=>"object"===typeof e&&null!==e&&"string"===typeof e.uri&&"string"===typeof e.name&&"string"===typeof e.type&&!(0,ra.default)(e),ja=e=>(0,ra.default)(e)||Ca(e),Ia=(e,t,n)=>{Ca(n)?e.append(t,n,n.name):(0,la.default)(e,t,n)},Ta=({getApiUrl:e,getDeviceUniqueIdentifier:t,onTokenRefreshFailure:n,cache:i})=>{const o=(0,aa.setContext)(async(t,{apiVersion:n=2,headers:i,withoutAccessToken:o=!1})=>{const a=o?void 0:await Ne.default.getItem("accessToken");return{uri:e(n),headers:Ji(i,a)}}),a=(0,sa.default)({uri:e(),credentials:"include",isExtractableFile:ja,formDataAppendFile:Ia}),s=new oa.BatchHttpLink({credentials:"include",batchMax:4}),r=new wa.default({cable:ba,channelName:"Gql::ProviderChannel",callbacks:{connected:({reconnected:e})=>{se("cable","connected",{reconnected:e}),e&&m.refetchQueries({include:"active"})},received:e=>{se("cable","received",null===e||void 0===e?void 0:e.result,!0)},disconnected:()=>{se("cable","disconnected")}}}),l=na.ApolloLink.split(e=>!e.query.definitions.find(e=>"mutation"===e.operation),s,a),d=na.ApolloLink.split(({query:{definitions:e}})=>e.some(({kind:e,operation:t})=>"OperationDefinition"===e&&"subscription"===t),r,l),c=ma({getApiUrl:e,getDeviceUniqueIdentifier:t,onRefreshFailure:n}),u=fa({onUnauthorized:n}),p=na.ApolloLink.from([xa(),_a,o,c,u,d]),m=new ia.ApolloClient({devtools:{enabled:Z()},link:p,cache:i,defaultOptions:{query:{fetchPolicy:"network-only"}}});return m},Ea=({getApiUrl:e,getDeviceUniqueIdentifier:t,onTokenRefreshFailure:n})=>{const i=new Jo.InMemoryCache({typePolicies:{Query:{fields:{settings:{merge:!0},stats:{merge:!0}}},Provider:{fields:{notifications:{merge:!0}}}}}),o=new ea.SynchronousCachePersistor({cache:i,storage:new ea.AsyncStorageWrapper(Ne.default)});o.restoreSync();const a=Ta({getApiUrl:e,getDeviceUniqueIdentifier:t,onTokenRefreshFailure:n,cache:i}
1535);return ta.default.addEventListener(e=>{a&&(a.defaultOptions.query.fetchPolicy=e.isConnected?"network-only":"cache-first")}),{apolloClient:a,cache:i,cachePersistor:o}};var Na=n(77422);const ka={ch:n(71605),ch_en:n(1965),ch_fr:n(89534),de:n(90369),de_en:n(28281),en:n(10389),fr:n(52841),ie:n(29196),it:n(34895),sg:n(39084),uk:n(58230)},Ra=(e,t)=>se("phrase",e,t),Sa=(0,Na.default)(Object.assign({mapKey:"h2-provider-app-expo",localesUrl:e=>((e="",t=n.g.country)=>new URL(e,hi(mi[t])).toString())("locales",e),localTranslations:ka,debug:Ra},(0,Na.defaultImplementations)({debug:Ra,AsyncStorage:Ne.default,NetInfo:ta.default,Sentry:o}),{onMissingTranslation:(e,t)=>Z()?console.warn("Missing translation",e,t):null}));var Aa=n(3349),Pa=n(79564),Da=n(157),Ma=n(96735);const Oa="Edit Profile",za="Offers",La="Home",qa="Onboarding",Ba="Settings",Ga="Event Cancellation",Ua="Event Reschedule",$a="Series Reschedule",Fa="Order Cancellation",Ha="Resolution Center",Wa="Refer a Friend",Va=[Oa,za,La,qa,Ba,Ga,Ua,$a,Fa,Ha,Wa],Ka="Provider",Ya=[Ka],Xa={click:"clicks",view:"views",open:"opens",close:"closes",scroll:"scrolls",rate:"rates",input:"inputs",add:"adds",update:"updates",delete:"deletes",toggle:"toggles",check:"checks",tab:"tabs",complete:"completes",success:"succeeds",fail:"fails"},Za=[Xa.click,Xa.view,Xa.open,Xa.close,Xa.scroll,Xa.rate,Xa.input,Xa.add,Xa.update,Xa.delete,Xa.toggle,Xa.check,Xa.tab,Xa.complete,Xa.success,Xa.fail],Qa=["onPress","children","style","eventAction","eventLabel","withoutFeedback","disabled","disableWhenOffline","trackingUserFlow","trackingAction","trackingObjectName","trackingProperties"],Ja=(0,Ge.default)(Da.default).withConfig({displayName:"custom_touch_opacity__StyledTouchOpacity",componentId:"sc-hju4mo-0"})(["cursor:pointer;"]),es=(0,Ge.default)(Ma.default).withConfig({displayName:"custom_touch_opacity__StyledTouchableWithoutFeedback",componentId:"sc-hju4mo-1"})(["cursor:pointer;"]),ts=e=>{let{onPress:t,children:n,style:i={},eventAction:o,eventLabel:a="",withoutFeedback:s=!1,disabled:r,disableWhenOffline:l,trackingUserFlow:d,trackingAction:c,trackingObjectName:u,trackingProperties:p}=e,m=(0,A.default)(e,Qa);const{analytics:{autoTrack:f,autoTrackEnhanced:g}}=lt(),{isConnected:h}=(0,ta.useNetInfo)(),_=r||!h&&l,x=()=>{o&&f(`User clicked on ${o}`,a),d&&g({userFlow:d,action:c||Xa.click,objectName:u,properties:p}),t&&t()};return s?(0,X.jsx)(es,Object.assign({onPress:()=>x(),style:i},m,{disabled:_,children:n})):(0,X.jsx)(Ja,Object.assign({onPress:()=>x(),style:i},m,{disabled:_,children:n}))},ns=["innerRef","textColor","disabled","fontSize"],is=["innerRef","textColor"],os=["children","onPress","color","borderColor","borderWidth","stretched","textColor","fontWeight","icon","set","disabled","disabledColor","disabledTextColor","style","contentAlign","fontSize","testID","loading","centered"],as=["variant","disabled","disabledColor","disabledTextColor"],ss=(0,Ge.default)(Aa.default).attrs({size:18,color:Qe.WHITE}).withConfig({displayName:"button__Spinner",componentId:"sc-1tbwt8f-0"})(["margin-left:10px;"]),rs=(0,Ge.default)(ts).withConfig({displayName:"button__TouchableContainer",componentId:"sc-1tbwt8f-1"})(["border-radius:","px;justify-content:center;",""],({borderRadius:e})=>e||8,({stretched:e,color:t,borderColor:n,borderWidth:i,centered:o,width:a,height:s})=>`\n    background-color: ${t};\n    border-color: ${n};\n    border-width: ${Number.isInteger(i)?`${i}px`:i};\n    ${!e&&`width: ${a||294}px;`}\n    ${o&&"align-self: center;"}\n    ${s&&`height: ${s}px;`}\n    ${s&&`max-height: ${s}px;`}\n  `),ls=(0,Ge.default)(qe.default).withConfig({displayName:"button__ButtonTextContainer",componentId:"sc-1tbwt8f-2"})(["min-height:50px;padding:10px 15px;align-items:center;flex-direction:row;justify-content:",";border-radius:","px;",""],({contentAlign:e})=>"left"===e?"flex-start":"center",({borderRadius:e})=>e||8,({color:e,elevation:t})=>`\n    background-color: ${e};\n    ${t&&`elevation: ${t};`}\n  `),ds=(0,Ge.default)(e=>{let t=(0,A.default)(e,ns);return(0,X.jsx)(Be.default,Object.assign({},t))}).withConfig({displayName:"button__ButtonText",componentId:"sc-1tbwt8f-3"})(["text-align:center;text-align:",";"," "," ",""],({contentAlign:e})=>e,({fontSize:e})=>`font-size: ${e};`,({textColor:e})=>`color: ${e};`,({fontWeight:e})=>`font-weight: ${e};`),cs=(0,Ge.default)(e=>{let t=(0,A.default)(e,is);return(0,X.jsx)(Pa.default,Object.assign({},t))}).withConfig({displayName:"button__ButtonIcon",componentId:"sc-1tbwt8f-4"})(["margin-right:5px;"]),us=e=>{let{children:t,onPress:n,color:i=Qe.GREEN_SUMMER_GRASS,borderColor:o=Qe.GREEN_SUMMER_GRASS,borderWidth:a=0,stretched:s=!1,textColor:r=Qe.WHITE,fontWeight:l="bold",icon:d,set:c="MaterialIcons",disabled:u=!1,disabledColor:p=Qe.GREEN_IR
1535ISH_BREEZE,disabledTextColor:m=Qe.WHITE,style:f={},contentAlign:g="center",fontSize:h="16px",testID:_="button",loading:x=!1,centered:y=!1}=e,v=(0,A.default)(e,os);return(0,X.jsx)(rs,Object.assign({onPress:n,color:u?p:i,borderColor:u?p:o,borderWidth:a,stretched:s,disabled:u,style:f,testID:_,centered:y},v,{children:(0,X.jsxs)(ls,Object.assign({contentAlign:g},v,{children:[d&&("string"===typeof d?(0,X.jsx)(cs,{name:d,color:u?m:r,set:c}):d),"string"===typeof t?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ds,{contentAlign:g,disabled:u,textColor:u?m:r,fontSize:h,fontWeight:l,children:t}),x&&(0,X.jsx)(ss,{})]}):t]}))}))};us.propTypes={onPress:ze().func.isRequired,color:ze().string,stretched:ze().bool,textColor:ze().string,fontWeight:ze().string,borderColor:ze().string,borderWidth:ze().number,icon:ze().node,style:ze().oneOfType([ze().array,ze().object]),children:ze().node,disabled:ze().bool,disabledColor:ze().string,disabledTextColor:ze().string,contentAlign:ze().string,set:ze().string,fontSize:ze().string,testID:ze().string,loading:ze().bool,centered:ze().bool};const ps=e=>{let{variant:t,disabled:n=!1,disabledColor:i,disabledTextColor:o}=e,a=(0,A.default)(e,as);if(n){const e=Object.assign({},a,{disabled:n,disabledColor:t?Qe.GRAY_LIGHT:i||Qe.GREEN_IRISH_BREEZE,disabledTextColor:o||Qe.WHITE});return(0,X.jsx)(us,Object.assign({},e))}if("secondary"===t){const e=Object.assign({color:Qe.WHITE,borderColor:Qe.GREEN_IRISH_BREEZE,borderWidth:1,textColor:Qe.GREEN_GROWN_UP_GREEN},a);return(0,X.jsx)(us,Object.assign({},e))}if("danger"===t){const e=Object.assign({color:Qe.WHITE,borderColor:Qe.CRIMSON_1,borderWidth:1,textColor:Qe.CRIMSON_1},a);return(0,X.jsx)(us,Object.assign({},e))}if("main"===t){const e=Object.assign({},a,{color:Qe.CTA_DARK,textColor:Qe.WHITE});return(0,X.jsx)(us,Object.assign({},e))}if("floating"===t){const e=Object.assign({color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,height:54,width:54,borderRadius:27},a);return(0,X.jsx)(us,Object.assign({},e))}return(0,X.jsx)(us,Object.assign({},a))};ps.propTypes={isDesktop:ze().bool,onPress:ze().func.isRequired,color:ze().string,stretched:ze().bool,textColor:ze().string,fontWeight:ze().string,borderColor:ze().string,borderWidth:ze().number,icon:ze().node,style:ze().oneOfType([ze().array,ze().object]),children:ze().node,disabled:ze().bool,disabledColor:ze().string,disabledTextColor:ze().string,contentAlign:ze().string,set:ze().string,fontSize:ze().str
1535ing,testID:ze().string,loading:ze().bool,variant:ze().string,centered:ze().bool,height:ze().number,width:ze().number};const ms=ps;var fs=n(58494);const gs=n.n(fs)(),hs=(0,Ge.default)(qe.default).withConfig({displayName:"old_applicant_reminder_new_onboarding_change_modal__Container",componentId:"sc-1pvscwk-0"})(["align-items:center;background-color:",";padding:40px 16px;"," ",""],Qe.WHITE,({theme:e})=>e.isDesktop&&"\n      align-self: center;\n      max-width: 400px;\n      width: 100%;\n      border-radius: 12px;\n  ",({theme:e})=>!e.isDesktop&&`\n      position: absolute;\n      bottom: 0;\n      left: 0;\n      right: 0;\n      padding-bottom: ${40+e.insets.bottom}px;\n  `),_s=(0,Ge.default)(Be.default).withConfig({displayName:"old_applicant_reminder_new_onboarding_change_modal__Description",componentId:"sc-1pvscwk-1"})(["font-size:15px;font-weight:400;line-height:20px;color:",";margin-bottom:39px;text-align:center;max-width:300px;"],Qe.TEXT_DARK),xs=(0,Ge.default)(ms).withConfig({displayName:"old_applicant_reminder_new_onboarding_change_modal__OKButton",componentId:"sc-1pvscwk-2"})(["width:100%;"]),ys="OLD_APPLICANT_REMINDER_NEW_ONBOARDING_CHANGE_MODAL",vs=({isOpen:e,onClose:t})=>(0,X.jsx)(gs,{isVisible:e,style:{margin:0},onBackdropPress:t,children:(0,X.jsxs)(hs,{children:[(0,X.jsx)(_s,{children:i18n.t("onboarding_dashboard.old_applicant_reminder_new_onboarding_change_modal.description")}),(0,X.jsx)(xs,{fontSize:"15px",onPress:t,children:i18n.t("shared.labels.ok")})]})});var bs=n(12771),ws=n(2885);const Cs=e=>{const[t,n]=(0,K.useState)(!1),{getItem:i,setItem:o}=(0,Ne.useAsyncStorage)(e);(0,K.useEffect)(()=>{(async()=>{try{"true"!==await i()&&n(!0)}catch(ca){n(!0)}})()},[]);return[t,async()=>{await o("true"),n(!1)}]};var js=n(95605),Is=n(768);const Ts=xt`
1536  mutation applicationProcessMarkRequirementAsCompleted($requirementName: ApplicationProcessOnboardingRequirementsRequirementNameEnum!) {
1537    applicationProcessMarkRequirementAsCompleted(requirementName: $requirementName) {
1538      success
1539    }
1540  }
1541`,Es=()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(Ts);return{markRequirementAsCompleted:t=>e({context:{apiVersion:3},variables:{requirementName:t}}),loading:t,error:n}},Ns=xt`
1542  query applicationProcess {
1543    application {
1544      euRegulation20242065Accepted
1545    }
1546  }
1547`,ks=xt`
1548  mutation applicationProcessAcceptEuRegulation20242065 {
1549    applicationProcessAcceptEuRegulation20242065 {
1550      success
1551    }
1552  }
1553`,Rs=(0,Ge.default)(qe.default).withConfig({displayName:"eu_regulation_2024_2065_modal__Container",componentId:"sc-wofx2g-0"})(["align-items:center;background-color:",";padding:60px 16px 40px 16px;"," ",""],Qe.WHITE,({theme:e})=>e.isDesktop&&"\n      align-self: center;\n      max-width: 400px;\n      width: 100%;\n      border-radius: 12px;\n  ",({theme:e})=>!e.isDesktop&&`\n      position: absolute;\n      bottom: 0;\n      left: 0;\n      right: 0;\n      padding-bottom: ${40+e.insets.bottom}px;\n  `),Ss=(0,Ge.default)(Be.default).withConfig({displayName:"eu_regulation_2024_2065_modal__Title",componentId:"sc-wofx2g-1"})(["font-size:20px;font-weight:700;line-height:26px;color:",";text-align:center;margin-bottom:30px;"],Qe.TEXT_DARK),As=(0,Ge.default)(Be.default).withConfig({displayName:"eu_regulation_2024_2065_modal__Description",componentId:"sc-wofx2g-2"})(["font-size:15px;font-weight:400;line-height:20px;color:",";text-align:center;max-width:300px;margin-bottom:20px;"],Qe.TEXT_DARK),Ps=(0,Ge.default)(ws.default).withConfig({displayName:"eu_regulation_2024_2065_modal__LinkContainer",componentId:"sc-wofx2g-3"})(["margin-bottom:20px;"]),Ds=(0,Ge.default)(Be.default).withConfig({displayName:"eu_regulation_2024_2065_modal__LinkText",componentId:"sc-wofx2g-4"})(["font-size:15px;font-weight:400;line-height:20px;color:",";text-align:center;"],Qe.GREEN_SUMMER_GRASS),Ms=(0,Ge.default)(ms).withConfig({displayName:"eu_regulation_2024_2065_modal__ConfirmButton",componentId:"sc-wofx2g-5"})(["width:100%;margin-top:30px;"]),Os=(0,Ge.default)(ts).withConfig({displayName:"eu_regulation_2024_2065_modal__CloseButton",componentId:"sc-wofx2g-6"})(["position:absolute;top:15px;right:15px;padding:7px;"]),zs="EU_REGULATION_2024_2065_MODAL",Ls=()=>{const{toast:{showToastMessage:e},session:{countryConfig:{euRegulation20242065Faq:t}}}=lt(),{autoTrack:n}=mt(),[i,o]=Cs(zs),{euRegulation20242065Accepted:a,loading:s}=(()=>{var e;const{data:t,loading:n}=(0,Is.useQuery)(Ns,{context:{apiVersion:3}});return{euRegulation20242065Accepted:null===t||void 0===t||null===(e=t.application)||void 0===e?void 0:e.euRegulation20242065Accepted,loading:n}})(),{acceptEuRegulation20242065:r,loading:l}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(ks);return{acceptEuRegulation20242065:()=>e({context:{apiVersion:3}}).then(({data:{applicationProcessAcceptEuRegulation20242065:e}})=>e),loading:t,error:n}})(),d=(0,K.useCallback)(async()=>{try{n("User clicked on I confirm EU regulation 2024/2065","from EU regulation 2024/2065 modal");const{success:t}=await r();t?o():e({message:i18n.t("provider.generic.error")})}catch{e({message:i18n.t("provider.generic.error")})}},[o,e,r,n]);return s||a||!i?null:(0,X.jsx)(gs,{isVisible:i,style:{margin:0},onBackdropPress:o,children:(0,X.jsxs)(Rs,{children:[(0,X.jsx)(Os,{onPress:o,children:(0,X.jsx)(Pa.default,{name:"close",size:22,color:Qe.TEXT_DARK})}),(0,X.jsx)(Ss,{children:i18n.t("eu_regulation_2024_2065_modal.title")}),(0,X.jsx)(As,{children:i18n.t("eu_regulation_2024_2065_modal.description_1")}),(0,X.jsx)(As,{children:i18n.t("eu_regulation_2024_2065_modal.description_2")}),!!t&&(0,X.jsx)(Ps,{onPress:()=>bs.default.openURL(t),children:(0,X.jsx)(Ds,{children:i18n.t("eu_regulation_2024_2065_modal.link")})}),(0,X.jsx)(Ms,{fontSize:"15px",onPress:d,disabled:l,loading:l,children:i18n.t("eu_regulation_2024_2065_modal.ok_button")})]})})};var qs=n(27612);const Bs=["ch","de","fr","sg"],Gs=(0,Ge.default)(qe.default).withConfig({displayName:"check_emails_on_spam_folder__Container",componentId:"sc-yjr6mv-0"})(["align-items:center;background-color:",";padding:60px 16px 40px 16px;"," ",""],Qe.WHITE,({theme:e})=>e.isDesktop&&"\n      align-self: center;\n      max-width: 400px;\n      width: 100%;\n      border-radius: 12px;\n  ",({theme:e})=>!e.isDesktop&&`\n      position: absolute;\n      bottom: 0;\n      left: 0;\n      right: 0;\n      padding-bottom: ${40+e.insets.bottom}px;\n  `),Us=(0,Ge.default)(Be.default).withConfig({displayName:"check_emails_on_spam_folder__Title",componentId:"sc-yjr6mv-1"})(["font-size:20px;font-weight:700;line-height:26px;color:",";text-align:center;margin-bottom:30px;"],Qe.TEXT_DARK),$s=(0,Ge.default)(Be.default).withConfig({displayName:"check_emails_on_spam_folder__Description",componentId:"sc-yjr6mv-2"})(["font-size:15px;font-weight:400;line-height:20px;color:",";text-align:center;max-width:300px;margin-bottom:20px;"],Qe.TEXT_DARK),Fs=(0,Ge.default)(ms).withConfig({displayName:"check_emails_on_spam_folder__ConfirmButton",componentId:"sc-yjr6mv-3"})(["margin-top:30px;"]),Hs=(0,Ge.default)(ts).withConfig({displayName:"check_emails_on_spam_folder__CloseButton",componentId:"sc-yjr6mv-4"})(["position:absolute;top:15px;right:15px;padding:7px;"]),Ws="CHECK_EMAILS_ON_SPAM_FOLDER_MODAL",Vs=()=>{const{session:{currentUser:e}}=lt(),[t,n]=Cs(Ws),{onboarded:i,email:o}=e||{},a=i&&o&&(e=>e.includes("@privaterelay.appleid.com"))(o),s=(0,K.useCallback)(()=>{n()},[n]);return t&&a?(0,X.jsx)(gs,{isVisible:!!t,style:{margin:0},onBackdropPress:n,children:(0,X.jsxs)(Gs,{children:[(0,X.jsx)(Hs,{onPress:n,children:(0,X.jsx)(Pa.default,{name:"close",size:22,color:Qe.TEXT_DARK})}),(0,X.jsx)(Us,{children:i18n.t("check_emails_on_spam_folder_modal.title")}),(0,X.jsx)($s,{children:i18n.t("check_emails_on_spam_folder_modal.description")}),(0,X.jsx)(Fs,{fontSize:"15px",onPress:s,eventAction:"User actioned Got it button",eventLabel:"from check emails on spam folder modal",children:i18n.t("check_emails_on_spam_folder_modal.confirm_button")})]})}):null};var Ks=n(63626);const Ys=["/provider/bid/:code","/provider/new_request/:id","/provider/events/:id","/provider/events/:id/amend","/provider/customers/:id/reschedule_booking","/provider/customers/:id/price","/provider/customers/:id/home_details","/provider/customers/:id","/provider/offers/:id","/provider/optable_offers/:id","/provider/bank_transfers/:id","/provider/resolution_center/cases/:id/resolve","/provider/resolution_center/cases/:id/provider_response","/provider/resolution_center/cases/:id/details","/provider/resolution_center/reported_cases/:id/details","/provider/resolution_center/cases/:id/add_documents","/provider/resolution_center/cases/:id/confirmation","/provider/resolution_center/report_problem/case/:id/call_customer","/provider/resolution_center/report_problem/case/:id/after_call_customer","/provider/resolution_center/report_problem/case/:id/pre_report_notes","/provider/resolution_center/report_problem/event/:topic/:relatedId/select_reason","/provider/resolution_center/report_problem/event/:topic/related_events","/provider/resolution_center/report_problem/event/:relatedId","/provider/references/:serviceId","/provider/services/:service"],
1553Xs=Y.types.model({pathname:Y.types.optional(Y.types.string,"/provider")}).views(e=>({get trackingProperties(){const{path:t,params:n}=(e=>{for(const t of Ys){const n=(0,Ks.matchPath)(e,{path:t,exact:!0});if(n)return{path:t,params:n.params}}return{path:e,params:{}}})(e.pathname),i={};return n&&"object"===typeof n&&Object.keys(n).forEach(e=>{i[`path_${e}`]=n[e]}),Object.assign({path:t},i)}}));var Zs=n(81739),Qs=n(41407),Js=n(27345),er=n(62914),tr=n.n(er);const nr=(e,t=[],n=!0)=>{const{session:i}=lt();(0,K.useEffect)(()=>(n&&e(),(0,Ie.observe)(i,"appState",t=>{"active"!==t.oldValue&&"active"===t.newValue&&e()})),t)},ir=xt`
1554  mutation saveExternalCalendarConfig($externalCalendarId: String!) {
1555    saveExternalCalendarConfig(
1556      externalCalendarId: $externalCalendarId
1557    ) {
1558      success
1559      errors {
1560        code
1561        message
1562      }
1563    }
1564  }
1565`,or=(xt`
1566  mutation acknowledgeExternalCalendarBanner {
1567    acknowledgeExternalCalendarBanner {
1568      success
1569      errors {
1570        code
1571        message
1572      }
1573    }
1574  }
1575`,xt`
1576  mutation acknowledgeExternalCalendarTooltip {
1577    acknowledgeExternalCalendarTooltip {
1578      success
1579      errors {
1580        code
1581        message
1582      }
1583    }
1584  }
1585`,xt`
1586  query acknowledgementsExternalCalendar {
1587    acknowledgements {
1588      externalCalendarBannerAcknowledgedAt
1589      externalCalendarTooltipAcknowledgedAt
1590    }
1591  }
1592`,xt`
1593  mutation saveCalendarEvents($externalCalendarEvents: [SaveCalendarEventsInput!]!) {
1594    saveExternalCalendarEvents(externalCalendarEvents: $externalCalendarEvents) {
1595      success
1596      errors {
1597        code
1598        message
1599      }
1600    }
1601  }
1602`),ar=xt`
1603  mutation destroyExternalCalendarSync {
1604    destroyExternalCalendarSync {
1605      success
1606      errors {
1607        code
1608        message
1609      }
1610    }
1611  }
1612`,sr="Helpling Partner",rr="last_calendar_sync",lr=e=>new Promise(t=>setTimeout(t,e)),dr=e=>`${e.firstname} ${e.lastname}`,cr=e=>`${e.address1}, ${e.postcode}`,ur=async e=>{if(!e)return null;const t=(await Zs.getCalendarsAsync(Qs.EntityTypes.EVENT)).find(t=>t.id===e);return(null===t||void 0===t?void 0:t.id)||null},pr=async()=>{(await Zs.getCalendarsAsync(Qs.EntityTypes.EVENT)).forEach(e=>
1612{e.title===sr&&Zs.deleteCalendarAsync(e.id)})},mr=e=>{const t=C.DateTime.fromISO(e.startTime),n=C.DateTime.fromISO(e.endTime),i=dr(e.customer),o=cr(e.address),a=i18n.t("external_calendar.event.title",{customerName:i}),s=((e,t,n)=>[`${i18n.t("external_calendar.event.chat",{customerName:e})}: ${_i(`/provider/chat_messages/${n}?fromExternalCalendar=true`)}`,i18n.t("external_calendar.event.event_details",{eventLink:_i(`/provider/events/${t}?fromExternalCalendar=true`)}),i18n.t("external_calendar.event.disclaimer",{lastSync:C.DateTime.now().toFormat("EEEE, dd LLLL HH:mm")})].join("\n\n"))(i,e.id,e.relationship.id);return{title:a,startDate:t.toJSDate(),endDate:n.toJSDate(),location:o,notes:s,alarms:[{relativeOffset:-120,method:Qs.AlarmMethod.DEFAULT}]}},fr=(e,t)=>{const n=C.DateTime.fromISO(t.startTime),i=C.DateTime.fromISO(t.endTime),o=dr(t.customer),a=cr(t.address),s=i18n.t("external_calendar.event.title",{customerName:o});return e.title!==s||e.location!==a||new Date(e.startDate).getTime()!==n.toMillis()||new Date(e.endDate).getTime()!==i.toMillis()},gr=()=>{const{toast:{showToastMessage:e},externalCalendar:{setOpenConnectCalendarModal:t,setExternalCalendarId:n},analytics:{autoTrack:i}}=lt(),{saveExternalCalendarConfig:o}=(()=>{const[e,{error:t,loading:n}]=(0,js.useMutation)(ir,{context:{apiVersion:3}});return{saveExternalCalendarConfig:({externalCalendarId:t})=>e({variables:{externalCalendarId:t}}),error:t,loading:n}})(),a=()=>{i("User clicked cancel CTA","on permission required to sync calendar events modal"),t(!1),e({message:i18n.t("connect_calendar.permission_denied.error")})};return{createHelplingPartnerCalendar:async()=>{try{var i,s;const{status:t}=await Zs.requestCalendarPermissionsAsync();if("granted"!==t)return Js.default.alert(i18n.t("connect_calendar.permission_denied.title"),i18n.t("connect_calendar.permission_denied.description"),[{text:i18n.t("connect_calendar.permission_denied.cancel_cta"),style:"cancel",onPress:a},{text:i18n.t("connect_calendar.permission_denied.open_settings_cta"),onPress:()=>bs.default.openSettings()}]),null;await pr();let r=null;r={isLocalAccount:!0,name:"Helpling Partner"};const l=(e=>({title:sr,color:Qe.GREEN_GROWN_UP_GREEN,entityType:Qs.EntityTypes.EVENT,sourceId:e.id,source:e,name:sr,ownerAccount:void 0,accessLevel:Qs.CalendarAccessLevel.OWNER}))(r),d=await Zs.createCalendarAsync(l),c=await o({externalCalendarId:d});return null!==c&&void 0!==c&&null!==(i=c.data)&&void 0!==i&&null!==(s=i.saveExternalCalendarConfig)&&void 0!==s&&s.success?(n(d),d):(e({message:i18n.t("provider.generic.error")}),null)}catch(ca){return console.error("Error creating calendar:",ca),le(ca),t(!1),e({message:i18n.t("connect_calendar.calender_sync.failed.error")}),null}}}},hr=()=>{const{events:{fetchCalendarEvents:e},session:{isSignedIn:t},toast:{showToastMessage:n},externalCalendar:{externalCalendarId:i,setOpenConnectCalendarModal:o},analytics:{autoTrack:a}}=lt(),{saveCalendarEvents:s}=(()=>{const[e,{loading:t,error:n,data:i}]=(0,js.useMutation)(or,{context:{apiVersion:3}});return{saveCalendarEvents:t=>e({variables:{externalCalendarEvents:t}}),loading:t,error:n,data:i}})(),{createHelplingPartnerCalendar:r}=gr(),l=async(e,t,n)=>{const i={created:0,updated:0,deleted:0},o=[],a=n.map(e=>e.id);for(const s of t)if(s.externalCalendarEventId&&a.includes(s.externalCalendarEventId)){const e=n.find(e=>e.id===s.externalCalendarEventId);if(e&&fr(e,s)){const t=mr(s);await Zs.updateEventAsync(e.id,t),i.updated++}}else{const t=mr(s),n=await Zs.createEventAsync(e,t);s.externalCalendarEventId=n,o.push({eventId:s.id,externalCalendarEventId:n}),i.created++}for(const s of n){if(!t.some(e=>e.externalCalendarEventId===s.id))try{await Zs.deleteEventAsync(s.id),i.deleted++}catch(ca){console.error("Error deleting event:",ca),le(ca)}}const r=(0,er.chunk)(o,5);for(const[l,d]of r.entries()){await s(d);l===r.length-1||await lr(1e3)}return i};return{syncEvents:async()=>{if(t)try{const{status:t}=await Zs.getCalendarPermissionsAsync();if("granted"!==t)return void Js.default.alert(i18n.t("connect_calendar.permission_required.title"),i18n.t("connect_calendar.permission_required.message"),[{text:i18n.t("connect_calendar.permission_required.cancel"),style:"cancel",onPress:()=>(a("User clicked cancel CTA","on permission required to sync calendar events modal"),o(!1),void n({message:i18n.t("connect_calendar.permission_denied.error")}))},{text:i18n.t("connect_calendar.permission_required.open_settings"),onPress:()=>bs.default.openSettings()}]);let s=await ur(i);s||(s=await r());const d=C.DateTime.now().startOf("day"),c=C.DateTime.now().plus({days:28}).endOf("day"),u=await e({startDate:d,endDate:c,isPremium:!1}),{confirmedEvents:p,unconfirmedEvents:m}=u.data.providerCalendarEvents,f=[...p.map(e=>Object.assign({},e,{eventType:"confirmed"})),...m.map(e=>Object.assign({},e,{eventType:"unconfirmed"}))],g=await Zs.getEventsAsync([s],d.toJSDate(),c.toJSDate()),h=await l(s,f,g);a("Successfully synced helpling events","to personal calendar"),(h.created>0||h.updated>0||h.deleted>0)&&n({message:i18n.t("connect_calendar.calender_sync.success",{newEvents:h.created,updatedEvents:h.updated,deletedEvents:h.deleted}),type:"success",duration:6e3}),await Ne.default.setItem(rr,C.DateTime.now().toMillis().toString())}catch(ca){console.error("Calendar sync error:",ca),le(ca),n({message:i18n.t("connect_calendar.calender_sync.failed.sync_error")})}},processEventSync:l}},_r=()=>{const{createHelplingPartnerCalendar:e}=gr(),{syncEvents:t}=hr();return{createHelplingPartnerCalendar:e,syncEvents:t}};var xr=n(6339);JSON.parse(E("EXPO_PUBLIC_BRAZE_ANDROID_API_KEYS")||"{}"),JSON.parse(E("EXPO_PUBLIC_BRAZE_IOS_API_KEYS")||"{}");const yr=JSON.parse(E("EXPO_PUBLIC_BRAZE_WEB_API_KEYS")||"{}"),vr=JSON.parse(E("EXPO_PUBLIC_BRAZE_ENDPOINTS")||"{}"),br=()=>{const e="undefined"===typeof window.CookieScript||-1!==window.CookieScript.instance.currentState().categories.indexOf("targeting");"granted"===window.trackingPermission||e?(Sr("$google_ad_user_data",!0),Sr("$google_ad_personalization",!0)):(Sr("$google_ad_user_data",!1),Sr("$google_ad_personalization",!1))},{disableBrazeSDK:wr,enableBrazeSDK:Cr,start:jr,changeUser:Ir,setCountry:Tr,logCustomEvent:Er,requestImmediateDataFlush:Nr,createIdleTimer:kr,createExitIntentEvent:Rr,setCustomUserAttribute:Sr}=(0,xr.default)({Sentry:i,isProduction:!(Z()||Q()),appVersion:He}),Ar=Y.types.model("BrazeSettings",{enabled:Y.types.optional(Y.types.boolean,!1),externalId:Y.types.maybeNull(Y.types.string),country:Y.types.maybeNull(Y.types.string),jwt:Y.types.maybeNull(Y.types.string)}).actions(e=>({fetch:(0,Y.flow)(function*(){try{const{data:{settings:{braze:t}}}=yield ao(e).fetchBrazeSettings();if(!t||!t.enabled)return se("braze","Braze is not enabled for this environment, disabling"),e.reset(),null;se("braze","Braze is enabled for this environment",{externalId:t.externalId,country:t.country,jwtPresent:!!t.jwt}),e.enabled=t.enabled,e.externalId=t.externalId,e.country=t.country,e.jwt=t.jwt}catch(t){return le(t),!1}}),refetchJwt:(0,Y.flow)(function*(){return se("braze","Refetching Braze JWT (triggered by SDK)"),yield e.fetch(),e.jwt}),reset:()=>{e.enabled=!1,e.externalId=null,e.country=null,e.jwt=null}})),Pr=Y.types.custom({name:"DateTime",fromSnapshot:e=>C.DateTime.fromISO(e),toSnapshot:e=>e.toISO(),isTargetType:e=>e instanceof C.DateTime,getValidationMessage(e){const t=C.DateTime.fromISO(e);return t.invalidReason?`${t.invalidReason} (${t.invalidExplanation})`:""}}),Dr=Y.types.model("IntercomJwt",{token:Y.types.string,exp:Pr,iat:Pr}),Mr=Y.types.model("IntercomSettings",{jwt:Y.types.maybeNull(Dr),finJwt:Y.types.maybeNull(Dr)}).volatile(()=>({timeoutId:null,isFetching:!1})).views(e=>({get isExpired(){return!e.jwt||e.jwt.exp.toMillis()<=Date.now()},get activeToken(){return e.isExpired?null:e.jwt.token},get isFinExpired(){return!e.finJwt||e.finJwt.exp.toMillis()<=Date.now()},get activeFinToken(){return e.isFinExpired?null:e.finJwt.token}})).actions(e=>({clearTimer(){null!==e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null)},scheduleNextRefresh(){if(e.clearTimer(),!e.jwt)return;if(e.isExpired)return void e.scheduleRetry();const t=e.jwt.exp.toMillis()-Date.now()-3e5;e.timeoutId=setTimeout(()=>e.fetch(),Math.max(t,0))},scheduleRetry(){e.clearTimer(),e.timeoutId=setTimeout(()=>e.fetch(),15e3)},fetch:(0,Y.flow)(function*(){if(e.isFetching)return null;e.isFetching=!0;try{const{data:{intercom:t}}=yield ao(e).fetchIntercomSettings();if(!(0,Y.isAlive)(e))return null;if(!t)return se("intercom","Intercom settings not available"),e.jwt=null,e.finJwt=null,null;if(se("intercom","Intercom settings fetched",{jwtPresent:!!t.jwt,finJwtPresent:!!t.finJwt}),e.jwt=t.jwt,e.finJwt=t.finJwt,e.jwt&&e.isExpired)return e.scheduleRetry(),null;e.scheduleNextRefresh()}catch(t){return!!(0,Y.isAlive)(e)&&(le(t),e.scheduleRetry(),!1)}finally{(0,Y.isAlive)(e)&&(e.isFetching=!1)}}),reset(){e.clearTimer(),e.isFetching=!1,e.jwt=null,e.finJwt=null},beforeDestroy(){e.clearTimer()}})),Or=["id","address","profile"],zr=Y.types.model("SessionStore",{appVersionSupported:Y.types.optional(Y.types.boolean,!0),i18n:Y.types.optional(Sa,()=>{}),country:Y.types.maybe(Y.types.string),currentUser:Y.types.maybe(yo),settings:Y.types.maybe(Go),devicePushToken:Y.types.maybe(Y.types.string),counters:Y.types.optional($o,()=>{}),isSignedInWithSso:Y.types.optional(Y.types.boolean,!1),isSigningOut:Y.types.optional(Y.types.boolean,!1),appState:Y.types.optional(Y.types.string,"active"),currentPath:Y.types.optional(Xs,{}),deviceUniqueIdentifier:Y.types.maybeNull(Y.types.string),brazeSettings:Y.types.optional(Ar,{}),intercomSettings:J(Mr),hasNewOffersBlockedModalDismissed:Y.types.optional(Y.types.boolean,!1)}).views(e=>({get isSignedIn(){return!!e.currentUser},get countryConfig(){return Qo(e.locale)}
1612,get allSsoNotSupported(){const{supportAppleSignIn:t,supportGoogleSignIn:n}=e.countryConfig;return!t&&!n},get countryCCA2(){var t;return null===(t=e.country)||void 0===t?void 0:t.toUpperCase()},get stripeCountry(){return{ch:"CH",de:"DE",fr:"FR",sg:"SG",ie:"IE"}[e.country.toLowerCase()]},get locale(){return e.i18n.locale},get availableLocales(){return e.i18n.availableLocales},get chatTranslationLanguage(){var t;return null===(t=e.currentUser)||void 0===t?void 0:t.messageTranslationLanguage},get providerBelongsToHMG(){var t,n;return"de"===e.locale.slice(0,2)&&"122"===(null===(t=e.currentUser)||void 0===t||null===(n=t.agency)||void 0===n?void 0:n.id)},apiUrl:(t=2)=>xi(3===t?"/api/v3/provider":"/api/v2/rr",e.country),get countryAlreadyShutdown(){if(e.countryConfig.appShutdownDate)return C.DateTime.fromISO(e.countryConfig.appShutdownDate)<C.DateTime.local()},buildEventLabel(t){const n=[];return"string"===typeof t&&n.push(t),t&&(Array.isArray(t)?t.forEach(e=>n.push(e)):"object"===typeof t&&Object.keys(t).forEach(e=>n.push(`${e}: ${t[e]}`))),e.currentUser&&n.push(`{provider_id: ${e.currentUser.id}}`),n.filter(e=>!!e).join(" - ")},get device(){return Object.assign({},Xe,{deviceUniqueIdentifier:e.deviceUniqueIdentifier})},get hasNewOffersBlockedModalDismissedKey(){return`has_new_offers_blocked_modal_dismissed_${e.currentUser.id}`}})).volatile(e=>{const{apolloClient:t,cache:n,cachePersistor:i}=Ea({getApiUrl:t=>e.apiUrl(t),getDeviceUniqueIdentifier:()=>e.deviceUniqueIdentifier,onTokenRefreshFailure:()=>{e.signOut({message:i18n.t("ui.error.session_expired"),unauthorized:!0})}});return{apolloClient:t,apis:(o=t,Object.entries(oo).reduce((e,[t,n])=>("function"===typeof n&&(e[t]=(...e)=>(se("api",t),n(o,...e))),e),{})),updateLocaleAfterSignIn:!1,cache:n,cachePersistor:i};var o}).actions(e=>({setIsSignedInWithSso:t=>{e.isSignedInWithSso=t},setup:(0,Y.flow)(function*(){var t,n;window.i18n=e.i18n,window.I18n=window.i18n,yield e.getDeviceUniqueIdentifier(),yield e.initializeWeb(),null!==(t=e.currentUser)&&void 0!==t&&t.preferredLanguage&&e.i18n.setLocale(e.currentUser.preferredLanguage),null!==(n=e.currentUser)&&void 0!==n&&n.id&&(re({id:e.currentUser.id}),e.brazeSettings.jwt||(yield e.brazeSettings.fetch()),yield e.intercomSettings.fetch(),e.brazeSettings.enabled&&(Ir(e.brazeSettings.externalId,e.brazeSettings.jwt),Tr(e.brazeSettings.country),br()))}),fetchCurrentUser:(0,Y.flow)(function*(){const[{data:{currentUser:t,currentProvider:n}},i]=yield Promise.all([e.apis.fetchCurrentUser(),e.apis.fetchAppVersionSupported()]);return e.appVersionSupported=i,t&&n?Object.assign({},n,t):null}),refresh:(0,Y.flow)(function*(){if(!e.countryAlreadyShutdown)try{var t;const i=yield e.fetchCurrentUser();var n;if(String(null===(t=e.currentUser)||void 0===t?void 0:t.id)!==String(null===i||void 0===i?void 0:i.id))se("refresh: trigger resetStore",null===(n=e.currentUser)||void 0===n?void 0:n.id),yield e.resetStore();if(e.setCurrentUser(i),i){yield e.storeCurrentDevice(),se("i18n translations",JSON.stringify(Object.keys(e.i18n.i18n.translations))),se("i18n country",e.i18n.country),se("i18n loading",e.i18n.loading),se("i18n source",e.i18n.source),se("store country",e.country);const[{data:t},{data:n},i]=yield Promise.all([e.apis.fetchSettings(),e.apis.fetchReferralProgram(),e.apis.fetchCounters(),(0,Y.getRoot)(e).notificationPreferences.fetch()]);e.setCounters(i),e.setAppSettings(null===t||void 0===t?void 0:t.settings),e.setReferralProgram(null===n||void 0===n?void 0:n.referralProgram),yield e.fetchPersonalTaxId(),e.currentUser.isFreelance&&(yield e.fetchNewOffersCount()),e.settings.isProviderUnderExperimentAbTest(Mo)&&(yield(0,Y.getRoot)(e).externalCalendar.fetchExternalCalendarId())}else{const{data:t}=yield e.apis.fetchSettings();e.setAppSettings(null===t||void 0===t?void 0:t.settings)}}catch(i){to(i)?e.clear():"undefined"!==typeof console&&console.error(i)}}),clear:()=>{e.currentUser=void 0},setCurrentUser:(0,Y.flow)(function*(t){var n,i;if(!t)return;const{analytics:o}=(0,Y.getRoot)(e),{id:a,address:s,profile:r}=t,l=(0,A.default)(t,Or);return e.currentUser=Object.assign({},l,{id:String(a),address:s,vatId:(null===r||void 0===r?void 0:r.vatId)||null}),!1===(null===(n=e.settings)||void 0===n||null===(i=n.viewPermissions)||void 0===i?void 0:i.hasNewOffersBlocked)?e.setHasNewOffersBlockedModalDismissed(!1):e.retrieveHasNewOffersBlockedModalDismissed(),o.setDefaultTrackingParameters()}),setAppSettings:t=>{var n;const i=null!==(n=e.settings)&&void 0!==n&&n.referralProgram?(0,Y.getSnapshot)(e.settings.referralProgram):null;e.settings=t,e.setReferralProgram(i)},setReferralProgram:t=>{e.settings&&(e.settings.referralProgram=t??null)},setTotalVerticalsCount(t){e.counters.totalVerticals=t},setNewOffersCount(t){e.counters.newOffers=t},fetchNewOffersCount:(0,Y.flow)(function*(){var t,n;const{data:i}=yield e.apis.getTotalOffers({maxRadius:null===(t=e.currentUser)||void 0===t?void 0:t.maxRadius});e.setNewOffersCount(null===i||void 0===i||null===(n=i.bids)||void 0===n?void 0:n.totalCount)}),refreshCounters:(0,Y.flow)(function*(){try{const t=yield e.apis.fetchCounters();e.setCounters(t),e.currentUser.isFreelance&&(yield e.fetchNewOffersCount())}catch(t){console.error(t)}}),fetchUnreadMessagesCount:(0,Y.flow)(function*(){try{const{data:{currentProvider:{notifications:{counters:{unreadMessages:t}}}}}=yield e.apis.fetchUnreadMessagesCount();e.counters.unreadMessages=t}catch(t){console.error(t)}}),updateCounters:t=>{e.counters=Object.assign({},e.counters,t)},setCounters:(0,Y.flow)(function*(t){var n,i;if(null!==(n=t.data)&&void 0!==n&&null!==(i=n.currentProvider)&&void 0!==i&&i.notifications.counters){const{data:{currentProvider:{notifications:{counters:n}},providerVerticalRequestCandidatesCount:i,optableVerticalRequestsCount:a}}=t;try{const t=n.newRequests>0||n.selectedByCustomer>0;"de"===e.country&&t&&!e.settings.isProviderUnderAbTest(Lo)&&(yield e.settings.assignProvi
1612derToAbTest(Lo))}catch(o){console.error(o)}e.counters=Object.assign({},n,{totalVerticals:i+a})}}),setRegistrationFeePaid:(0,Y.flow)(function*(){e.settings.featureFlags.registrationFee=!1}),initializeWeb:(0,Y.flow)(function*(){const t=(yield Ne.default.getItem("__COUNTRY_OVERRIDE__"))||E("EXPO_PUBLIC_COUNTRY");if(!t)throw new Error("Country is missing");yield e.setCountry(t);const n=yield Ne.default.getItem("locale");n&&e.i18n.setLocale(n),yield e.refresh()}),initializeNative:(0,Y.flow)(function*(){const{updates:t}=(0,Y.getRoot)(e);t.checkAndFetchUpdate();const n=yield Ne.default.getItem("country"),i=(()=>{const e=((0,qs.getLocales)()||[]).map(({regionCode:e})=>null===e||void 0===e?void 0:e.toLowerCase());for(const t of e)if(Bs.includes(t))return t;return null})();n||i?yield e.setCountry(n||i):wr();const o=yield Ne.default.getItem("locale");o&&e.i18n.setLocale(o);const a=yield Ne.default.getItem("accessToken");e.countryAlreadyShutdown||n&&a&&(yield e.refresh())}),setCountry:(0,Y.flow)(function*(t){const i=Qo(t),o=i.country.availableLocales;if(e.country=t,yield e.i18n.update(t,o,o[0]),ue({country:t}),n.g.country=t,!e.countryAlreadyShutdown){yield e.brazeSettings.fetch(),yield e.intercomSettings.fetch();const{apiKey:n,endpoint:a}=(e=>({apiKey:(null===yr||void 0===yr?void 0:yr[e])??null,endpoint:(null===vr||void 0===vr?void 0:vr[e])??null}))(e.country);e.brazeSettings.enabled&&n&&a?(Cr({apiKey:n,endpoint:a,getJwtToken:e.brazeSettings.refetchJwt,getIsSignedIn:()=>e.isSignedIn}),jr(),Tr(e.country)):wr(),C.Settings.defaultZoneName=i.country.timezone,yield Ne.default.setItem("country",t),se("setCountry: trigger i18n update",JSON.stringify(o))}}),updateLocale:(0,Y.flow)(function*(t){"en"!==t&&(yield Ne.default.setItem("locale",t),e.i18n.setLocale(t),e.isSignedIn?(yield e.apis.changeUserLocale(t),(0,Y.getRoot)(e).helpFAQArticles.setCurrentLanguage(t)):e.updateLocaleAfterSignIn=!0)}),signInRequest:(0,Y.flow)(function*(t,n,i){try{{const{success:o,errors:a,deviceUniqueIdentifier:s}=yield e.apis.webSignIn(t,n,i,e.device);return o&&(yield e.setDeviceUniqueIdentifier(s)),{success:o,errors:a}}}catch(ca){return console.log(ca),{success:!1,errors:[{message:i18n.t("sign_in.error")}]}}}),signIn:(0,Y.flow)(function*(t,n,i){const{success:o,errors:a}=yield e.signInRequest(t,n,i);return o?yield e.setupAfterSignIn():e.clear(),{success:o,errors:a}}),setupAfterSignIn:(0,Y.flow)(function*(){const[{data:t},{data:n},i]=yield Promise.all([e.apis.fetchSettings(),e.apis.fetchReferralProgram(),e.fetchCurrentUser()]);if(e.setAppSettings(null===t||void 0===t?void 0:t.settings),e.setReferralProgram(null===n||void 0===n?void 0:n.referralProgram),yield e.setCurrentUser(i),yield e.fetchPersonalTaxId(),e.updateLocaleAfterSignIn){const{multiLanguage:t}=e.countryConfig;t&&"en"!==e.i18n.locale&&(yield e.apis.changeUserLocale(e.i18n.locale))}else i.preferredLanguage&&e.i18n.setLocale(i.preferredLanguage);re({id:i.id}),e.brazeSettings.jwt||(yield e.brazeSettings.fetch()),yield e.intercomSettings.fetch(),e.brazeSettings.enabled&&(Ir(e.brazeSettings.externalId,e.brazeSettings.jwt),Tr(e.brazeSettings.country),br())}),setupAfterSsoLogin:(0,Y.flow)(function*({accessToken:t,refreshToken:n}={}){try{t&&n&&(yield Ne.default.multiSet([["accessToken",t],["refreshToken",n]])),e.setIsSignedInWithSso(!0),yield e.setupAfterSignIn()}catch(ca){console.error(ca),e.clear()}}),fetchSettings:(0,Y.flow)(function*(){const{data:t}=yield e.apis.fetchSettings();return e.setAppSettings(null===t||void 0===t?void 0:t.settings),null===t||void 0===t?void 0:t.settings}),signOut:(0,Y.flow)(function*({message:t,unauthorized:n}={}){if(!e.isSigningOut){e.isSigningOut=!0;try{n||(yield e.apis.webSignOut(e.deviceUniqueIdentifier).catch(()=>{}))}finally{yield Ne.default.multiRemove(["accessToken","refreshToken","provider_app_cache","apollo-cache-persist",ys,zs,Ws,rr]),e.intercomSettings.reset(),re(null);const{analytics:n}=(0,Y.getRoot)(e);yield n.afterSignOut(),e.currentUser=void 0,e.setIsSignedInWithSso(!1),yield e.resetStore(),e.isSigningOut=!1,t&&(0,Y.getRoot)(e).toast.showToastMessage({message:t,type:"error"})}return!0}}),register:(0,Y.flow)(function*(t,n){yield e.signIn(t,n)}),getDeviceUniqueIdentifier:(0,Y.flow)(function*(){e.deviceUniqueIdentifier=yield Ne.default.getItem("deviceUniqueIdentifier")}),setDeviceUniqueIdentifier:(0,Y.flow)(function*(t){e.deviceUniqueIdentifier=t,t?yield Ne.default.setItem("deviceUniqueIdentifier",t):yield Ne.default.removeItem("deviceUniqueIdentifier")}),storeCurrentDevice:(0,Y.flow)(function*(){var t,n;if(!e.currentUser)return;const i=yield e.apis.storeDevice(e.device),o=null===(t=i.data)||void 0===t||null===(n=t.devicesStoreDevice)||void 0===n?void 0:n.deviceUniqueIdentifier;if(o)return e.setDeviceUniqueIdentifier(o);console.error("Failed to store device",i)}),storePushToken:(0,Y.flow)(function*(t){e.deviceUniqueIdentifier||(yield e.storeCurrentDevice()
1612),yield e.apis.storePushToken({token:t,deviceUniqueIdentifier:e.deviceUniqueIdentifier}),e.devicePushToken=t}),acknowledgePushCampaign:(0,Y.flow)(function*(t){const n=yield e.apis.acknowledgePushCampaign({devicePushToken:e.devicePushToken,pushCampaignUuid:t});console.warn("acknowledgePushCampaign res:",n)}),resetStore:(0,Y.flow)(function*(){const t=yield Ne.default.getItem("country");(0,Y.getRoot)(e).resetStore(t),e.cache.reset(),e.cachePersistor.purge()}),markAnnouncementAsRead:()=>{const{session:t}=(0,Y.getRoot)(e),n=t.currentUser.announcement.id;return e.apis.markAnnouncementAsRead(n).catch(()=>{})},updateChatTranslationLanguage:(0,Y.flow)(function*(t){try{const{data:{updateCurrentUserDetails:{success:n,errors:i}}}=yield e.apis.updateMessageTranslationLanguage(t);return n&&(e.currentUser.messageTranslationLanguage=t),{success:n,errors:i}}catch(ca){return{success:!1,errors:[ca.message]}}}),setNeedsBankDetailsBeforeOffers:(0,Y.flow)(function*(){e.currentUser.needsBankDetailsBeforeOffers=!1}),setUserEmail:(0,Y.flow)(function*(t){e.currentUser.email=t}),setUserMobile:(0,Y.flow)(function*(t){e.currentUser.mobile=t}),setUserBirthDate:(0,Y.flow)(function*(t){e.currentUser.birthdate=t}),setUserBirthCountry:(0,Y.flow)(function*(t){e.currentUser.birthCountry=t}),setUserBirthPlace:(0,Y.flow)(function*(t){e.currentUser.birthPlace=t}),setUserVatId:(0,Y.flow)(function*(t){e.currentUser.vatId=t}),setUserPersonalTaxId:t=>{e.currentUser.personalTaxId=t},fetchPersonalTaxId:(0,Y.flow)(function*(){var t,n;if(e.currentUser&&null!==(t=e.settings)&&void 0!==t&&null!==(n=t.featureFlags)&&void 0!==n&&n.personalTaxIdInProfileForm)try{var i;const{data:t}=yield e.apis.fetchPersonalTaxId();e.setUserPersonalTaxId((null===t||void 0===t||null===(i=t.provider)||void 0===i?void 0:i.personalTaxId)||null)}catch(o){le(o)}}),fetchUserAddress:(0,Y.flow)(function*(){const{data:{currentProvider:{address:t}}}=yield e.apis.fetchUserAddress();e.currentUser.address=t}),setProfilePicture:t=>{e.currentUser.setAvatar(t)},setAppState:t=>{e.appState=t},fetchCurrentUserLimitAppPendingDeletion:(0,Y.flow)(function*(){const{data:{currentProvider:t}}=yield e.apis.fetchCurrentUserLimitAppPendingDeletion();
1612e.currentUser.limitAppPendingDeletion=t.limitAppPendingDeletion}),setCurrentPath(t){e.currentPath={pathname:t}},retrieveHasNewOffersBlockedModalDismissed:(0,Y.flow)(function*(){const t="true"===(yield Ne.default.getItem(e.hasNewOffersBlockedModalDismissedKey));e.setHasNewOffersBlockedModalDismissed(t)}),setHasNewOffersBlockedModalDismissed:t=>{e.hasNewOffersBlockedModalDismissed=t;const n=e.hasNewOffersBlockedModalDismissedKey;t?Ne.default.setItem(n,e.hasNewOffersBlockedModalDismissed.toString()):Ne.default.removeItem(n)}})),Lr=zr;var qr=n(11226),Br=n.n(qr),Gr=n(11573),Ur=n.n(Gr);const $r=Y.types.model("CustomerHomeDetails",{id:Y.types.identifier,bathrooms:Y.types.optional(Y.types.number,0),cleaningProducts:Y.types.optional(Y.types.boolean,!1),contactPreference:Y.types.optional(Y.types.string,""),elevator:Y.types.optional(Y.types.boolean,!1),entranceAccess:Y.types.optional(Y.types.string,""),floor:Y.types.optional(Y.types.string,""),floorType:Y.types.optional(Y.types.array(Y.types.string),[]),ironing:Y.types.optional(Y.types.boolean,!1),isTrashKeyRequired:Y.types.optional(Y.types.boolean,!1),laundry:Y.types.optional(Y.types.boolean,!1),nameOnBell:Y.types.optional(Y.types.string,""),pets:Y.types.optional(Y.types.string,""),preferredLanguage:Y.types.optional(Y.types.string,""),rooms:Y.types.optional(Y.types.number,0),size:Y.types.optional(Y.types.number,0),stateOfHome:Y.types.optional(Y.types.string,""),trashRemovalAccess:Y.types.optional(Y.types.string,"")}),Fr=Y.types.model("NextEvent",{id:Y.types.identifier,startTime:Y.types.maybe(Y.types.string),endTime:Y.types.maybe(Y.types.string),customerHomeDetails:Y.types.maybeNull($r)}),Hr=Y.types.model("Series",{id:Y.types.identifier,changeRequestable:Y.types.boolean,startTime:Y.types.maybeNull(Y.types.string),duration:Y.types.maybeNull(Y.types.number),peri
1612od:Y.types.maybeNull(Y.types.string),nextEvent:Y.types.maybeNull(Fr),address:Y.types.maybeNull(_o)}),Wr=Y.types.model("UserAbTest",{experiment:Y.types.boolean,experimentKey:Y.types.string}),Vr=Y.types.model("FutureEvent",{id:Y.types.identifier,startTime:Y.types.string,period:Y.types.maybeNull(Y.types.string)}),Kr=Y.types.model("CustomerInstructions",{cleaningDetails:Y.types.maybeNull(Y.types.string),addressInstructions:Y.types.maybeNull(Y.types.string),numberOfRooms:Y.types.maybeNull(Y.types.number),numberOfBathrooms:Y.types.maybeNull(Y.types.number),needsCleaningProducts:Y.types.maybeNull(Y.types.boolean),tasks:Y.types.maybeNull(Y.types.array(Y.types.string))}),Yr=Y.types.model("Bids",{pets:Y.types.maybeNull(Y.types.boolean)}),Xr=Y.types.model("Relationship",{id:Y.types.identifier,pastBookingCount:Y.types.maybeNull(Y.types.number),successfulEventsCount:Y.types.maybeNull(Y.types.number),hasPendingPriceChangeRequest:Y.types.maybeNull(Y.types.boolean),hasOnlyOneOffEvents:Y.types.maybeNull(Y.types.boolean),canRequestPriceChange:Y.types.maybeNull(Y.types.boolean),canRequestPriceChangeWithForm:Y.types.maybeNull(Y.types.boolean),customerAdhocPrice:Y.types.maybeNull(Y.types.number),customerRecurringPrice:Y.types.maybeNull(Y.types.number),providerRecurringPrice:Y.types.maybeNull(Y.types.number),cancelled:Y.types.maybeNull(Y.types.boolean),series:Y.types.maybeNull(Y.types.array(Hr)),futureEvents:Y.types.maybeNull(Y.types.array(Vr)),customerInstructions:Y.types.maybeNull(Kr),cleaningDetailsActioned:Y.types.maybeNull(Y.types.boolean),bids:Y.types.maybeNull(Y.types.array(Yr))}),Zr=Y.types.model("CustomerAddress",{address:Y.types.maybeNull(Y.types.string),latitude:Y.types.maybeNull(Y.types.number),longitude:Y.types.maybeNull(Y.types.number)}),Qr=Y.types.model("CustomerRatings",{average:Y.types.maybeNull(Y.types.number),count:Y.types.maybeNull(Y.types.number)}),Jr=Y.types.model("Customer",{id:Y.types.identifier,name:Y.types.string,firstname:Y.types.maybeNull(Y.types.string),mobile:Y.types.maybeNull(Y.types.string),addresses:Y.types.maybeNull(Y.types.array(Zr)),relationship:Y.types.maybeNull(Xr),ratings:Y.types.maybeNull(Qr),abTests:Y.types.optional(Y.types.array(Wr),[])}).views(e=>({underAbTest:t=>e.abTests.find(e=>e.experimentKey===t),underExperimentOfAbTest(t){var n;return!(null===(n=e.underAbTest(t))||void 0===n||!n.experiment)}})),el=Y.types.model("CustomerChecklistItem",{id:Y.types.identifier,category:Y.types.string,name:Y.types.string,checked:Y.types.boolean}),tl=Y.types.model("CustomerChecklist",{id:Y.types.string,additionalInformation:Y.types.maybeNull(Y.types.string),customerChecklistItems:Y.types.optional(Y.types.array(el),[])}),nl={hour:"48",amount:"10\u20ac"},il={hour:"24",amount:"15\u20ac"},ol={hour:"12",amount:"20\u20ac"},al={hour:"0",amount:"30\u20ac"},sl=e=>{const t=Math.round(C.DateTime.fromISO(e).diff(C.DateTime.now(),["hours"]).toObject().hours);return t>48?null:t<=48&&t>24?nl:t<=24&&t>12?il:t<=12&&t>=0?ol:t<=0?al:void 0},rl=e=>Math.round(C.DateTime.fromISO(e).diff(C.DateTime.now(),["hours"]).toObject().hours)<=48,ll=Y.types.model("EventDetails",{startTime:Y.types.string,endTime:Y.types.string,materials:Y.types.boolean,relationshipId:Y.types.string,address:_o,period:Y.types.maybe(Y.types.string)}).views(e=>({get formattedDate(){return C.DateTime.fromISO(e.startTime).toLocaleString(C.DateTime.DATE_HUGE)},get formattedStartTime(){return C.DateTime.fromISO(e.startTime).toLocaleString(C.DateTime.TIME_SIMPLE)},get formattedEndTime(){return C.DateTime.fromISO(e.endTime).toLocaleString(C.DateTime.TIME_SIMPLE)},get duration(){const t=C.DateTime.fromISO(e.startTime);return(C.DateTime.fromISO(e.endTime)-t)/1e3},get durationInHour(){return e.duration/3600},get isEventInFuture(){return C.DateTime.fromISO(e.endTime)>=C.DateTime.local()}})),dl=Y.types.model("EventCancelled",{eligibleForCancellationFeeClaim:Y.types.boolean,cancellationFeeAmount:Y.types.maybeNull(Y.types.number),cancelledWithinXHours:Y.types.maybeNull(Y.types.number),actioned:Y.types.optional(Y.types.boolean,!1),successfulEventsCount:Y.types.maybe(Y.types.integer),customerRepeatPrice:Y.types.maybeNull(Y.types.number),customerAdhocPrice:Y.types.maybeNull(Y.types.number)}),cl=Y.types.model("EventInvoice",{id:Y.types.string,invoiceDate:Y.types.maybeNull(Y.types.string),invoiceType:Y.types.maybeNull(Y.types.string),amount:Y.types.maybeNull(Y.types.number),invoiceNumber:Y.types.maybeNull(Y.types.string),path:Y.types.maybeNull(Y.types.string)}),ul=Y.types.model("EventCharges",{amount:Y.types.maybeNull(Y.types.number),name:Y.types.maybeNull(Y.types.string)}),pl=Y.types.model("EventPayout",{id:Y.types.string,amount:Y.types.maybeNull(Y.types.number),estimatedPayDate:Y.types.maybeNull(Y.types.string)}
1612),ml=Y.types.model("CustomerInstructions",{cleaningDetails:Y.types.maybeNull(Y.types.string),addressInstructions:Y.types.maybeNull(Y.types.string),numberOfRooms:Y.types.maybeNull(Y.types.number),numberOfBathrooms:Y.types.maybeNull(Y.types.number),needsCleaningProducts:Y.types.maybeNull(Y.types.boolean),tasks:Y.types.maybeNull(Y.types.array(Y.types.string))}),fl=Y.types.model("Bids",{pets:Y.types.maybeNull(Y.types.boolean)}),gl=Y.types.model("Relationship",{id:Y.types.identifier,customerAdhocPrice:Y.types.maybeNull(Y.types.number),customerRecurringPrice:Y.types.maybeNull(Y.types.number),customerRepeatPrice:Y.types.maybeNull(Y.types.number),haveUsersParticipatedInConversation:Y.types.maybeNull(Y.types.boolean),providerRecurringPrice:Y.types.maybeNull(Y.types.number),successfulEventsCount:Y.types.maybeNull(Y.types.number),customerInstructions:Y.types.maybeNull(ml),bids:Y.types.maybeNull(Y.types.array(fl))}),hl=Y.types.model("PricingItem",{name:Y.types.string,pricePerItem:Y.types.number,quantity:Y.types.number}),_l=Y.types.model("Item",{name:Y.types.string,type:Y.types.string,value:Y.types.string}),xl=Y.types.model("VerticalRequestSlim",{category:Y.types.maybeNull(Y.types.string),description:Y.types.maybeNull(Y.types.string),pictureUrls:Y.types.array(Y.types.string),pricingModel:Y.types.maybeNull(Y.types.string),pricingUnit:Y.types.string,unitQuantity:Y.types.maybeNull(Y.types.number),items:Y.types.maybeNull(Y.types.array(_l))}),yl=Y.types.model("PickupAttempt",{duration:Y.types.number,scheduledAt:Y.types.string}),vl=Y.types.model("Event",{id:Y.types.identifier,customer:Jr,postAgreed:Y.types.optional(Y.types.boolean,!0),totalProviderSupportTips:Y.types.maybe(Y.types.number),promptCustomerForConversion:Y.types.maybe(Y.types.boolean),postRequestPending:Y.types.maybe(Y.types.boolean),providerBalance:Y.types.maybeNull(Y.types.integer),details:Y.types.maybe(ll),cancelled:Y.types.maybe(Y.types.boolean),cancelledDetails:Y.types.maybe(dl),confirmed:Y.types.optional(Y.types.boolean,!0),firstInRelationship:Y.types.optional(Y.types.boolean,!1),customerChecklist:Y.types.maybeNull(tl),fixedDuration:Y.types.optional(Y.types.boolean,!1),invoices:Y.types.array(cl),charges:Y.types.array(ul),payouts:Y.types.array(pl),relationship:Y.types.maybeNull(gl),providerTotal:Y.types.maybeNull(Y.types.number),amendableByProvider:Y.types.maybeNull(Y.types.boolean),isCleaning:Y.types.maybe(Y.types.boolean),isVertical:Y.types.maybe(Y.types.boolean),category:Y.types.maybe(Y.types.string),additionalServices:Y.types.array(Y.types.string),pricingItems:Y.types.array(hl),verticalRequest:Y.types.maybeNull(xl),pickupAttempts:Y.types.array(yl),careServiceDetails:Y.types.maybeNull(Y.types.string),externalCalendarEventId:Y.types.maybeNull(Y.types.string),pecEligible:Y.types.maybe(Y.types.boolean),stcEligible:Y.types.maybe(Y.types.boolean)}).views(e=>({get hasPickupDate(){return e.pickupAttempts.length>0},get cancellationFee(){return e.details?sl(e.details.startTime):null},get showPecGuidelines(){return e.pecEligible},get showStcGuidelines(){return!e.pecEligible&&e.stcEligible},get showFeeWarning(){return!e.showPecGuidelines&&!e.showStcGuidelines&&!!e.cancellationFee},get showReliabilityWarning(){return!e.showStcGuidelines&&rl(e.details.startTime)}})),bl=Y.types.model("MyEarnings",{currentMonth:Y.types.integer,currentMonthProjected:Y.types.integer,nextMonthProjected:Y.types.integer,updatedAt:Y.types.optional(Pr,C.DateTime.local())}),wl=Y.types.model("notificationMessageBody",{key:Y.types.string,value:Y.types.string}),Cl=Y.types.model("notificationMessage",{id:Y.types.identifier,url:Y.types.string,translationKey:Y.types.maybeNull(Y.types.string),body:Y.types.maybeNull(Y.types.array(wl)),expiresAt:Y.types.maybeNull(Y.types.string)}),jl=Y.types.model("Relationship",{id:Y.types.identifier,customer:Jr,address:Y.types.maybe(_o),futureEvents:Y.types.maybe(Y.types.array(Y.types.reference(vl)))}),Il=Y.types.model("RequestEvent",{id:Y.types.identifier,startTime:Y.types.string,endTime:Y.types.string,address:_o,customer:Jr,clash:Y.types.boolean}).views(e=>({get formattedStartTime(){return C.DateTime.fromISO(e.startTime).toLocaleStr
1612ing(C.DateTime.TIME_SIMPLE)},get duration(){const t=C.DateTime.fromISO(e.startTime);return(C.DateTime.fromISO(e.endTime)-t)/1e3}})),Tl=Y.types.model("NewRequest",{id:Y.types.identifier,proposedStarttime:Y.types.string,proposedDuration:Y.types.integer,frequency:Y.types.maybeNull(Y.types.string),relationship:jl,previousEvent:Y.types.maybeNull(Il),nextEvent:Y.types.maybeNull(Il),actioned:Y.types.optional(Y.types.boolean,!1)}).views(e=>({get formattedStartDate(){return C.DateTime.fromISO(e.proposedStarttime).toLocaleString(C.DateTime.DATE_HUGE)},get formattedStartTime(){return C.DateTime.fromISO(e.proposedStarttime).toLocaleString(C.DateTime.TIME_SIMPLE)},get formattedEndTime(){return C.DateTime.fromISO(e.proposedStarttime).plus({seconds:e.proposedDuration}).toLocaleString(C.DateTime.TIME_SIMPLE)}})),El=Y.types.model("DashboardBid",{code:Y.types.identifier,address:_o,frequency:Y.types.maybeNull(Y.types.string),startTime:Y.types.string,endTime:Y.types.string,duration:Y.types.number,totalPayout:Y.types.maybeNull(Y.types.string),distance:Y.types.maybeNull(Y.types.number),payout:Y.types.maybeNull(Y.types.number),isCandidate:Y.types.maybeNull(Y.types.boolean),selectedByCustomer:Y.types.maybeNull(Y.types.boolean),pricePerHour:Y.types.maybeNull(Y.types.number),url:Y.types.maybeNull(Y.types.string),optedIn:Y.types.maybeNull(Y.types.boolean),countdownEndTime:Y.types.maybeNull(Y.types.string),bidType:Y.types.maybeNull(Y.types.string)}).views(e=>({get detailViewUrl(){return Xi(e.code)},get formattedDate(){return C.DateTime.fromISO(e.startTime).toLocaleString(C.DateTime.DATE_HUGE)},get formattedStartTime(){return C.DateTime.fromISO(e.startTime).toLocaleString(C.DateTime.TIME_SIMPLE)},get formattedEndTime(){return C.DateTime.fromISO(e.endTime).toLocaleString(C.DateTime.TIME_SIMPLE)},get showClock(){return e.optedIn},get providerPrice(){var t;return null===(t=e.payout)||void 0===t?void 0:t.toFixed(2)}})),Nl=Y.types.model("ChangeRequest",{id:Y.types.identifier,originalStarttime:Y.types.string,originalDuration:Y.types.integer,originalFrequency:Y.types.maybeNull(Y.types.string),proposedStarttime:Y.types.string,proposedDuration:Y.types.integer,proposedFrequency:Y.types.maybeNull(Y.types.string),address:_o,customer:Jr,previousEvent:Y.types.maybeNull(Il),nextEvent:Y.types.maybeNull(Il),providerResponse:Y.types.maybeNull(Y.types.boolean),providerAcknowledged:Y.types.optional(Y.types.boolean,!1)}).views(e=>({get originalStartDate(){return C.DateTime.fromISO(e.originalStarttime).toLocaleString(C.DateTime.DATE_HUGE)},get proposedStartDate(){return C.DateTime.fromISO(e.proposedStarttime).toLocaleString(C.DateTime.DATE_HUGE)},get originalStartTime(){return C.DateTime.fromISO(e.originalStarttime).toLocaleString(C.DateTime.TIME_SIMPLE)},get originalEndTime(){return C.DateTime.fromISO(e.originalStarttime).plus({seconds:e.originalDuration}).toLocaleString(C.DateTime.TIME_SIMPLE)},get proposedStartTime(){return C.DateTime.fromISO(e.proposedStarttime).toLocaleString(C.DateTime.TIME_SIMPLE)},get proposedEndTime(){return C.DateTime.fromISO(e.proposedStarttime).plus({seconds:e.proposedDuration}).toLocaleString(C.DateTime.TIME_SIMPLE)},get automaticallyAcceptedButProviderDidNotActioned(){return null!==e.providerResponse&&!0!==e.providerAcknowledged}})),kl=Y.types.model("DashboardPageStore",{initialLoading:Y.types.optional(Y.types.boolean,!0),initialLoadingAt:Y.types.optional(Y.types.integer,0),lastUpdatedAt:Y.types.optional(Y.types.integer,0),events:Y.types.array(Y.types.reference(vl)),myEarnings:Y.types.maybeNull(bl),notificationMessage:Y.types.maybeNull(Cl),eventToConvert:Y.types.maybeNull(Y.types.reference(vl)),eventToReview:Y.types.maybeNull(Y.types.reference(vl)),newRequests:Y.types.maybe(Y.types.array(Tl)),selectedByCustomer:Y.types.maybe(Y.types.array(El)),changeRequests:Y.types.array(Y.types.reference(Nl))}).actions(e=>({fetch:(0,Y.flow)(function*(){if(Date.now()-e.lastUpdatedAt<6e4&&e.events.length>0)return e.initialLoading=!1,!1;e.lastUpdatedAt=Date.now();const{analytics:{autoTrack:t},events:n,changeRequests:i,session:{country:o,countryConfig:a,currentUser:s,counters:{showNewRequest:r,showNewCustomer:l}
1612,refreshCounters:d,settings:{assignProviderToAbTest:c,isProviderUnderAbTest:u,isProviderUnderExperimentAbTest:p}}}=(0,Y.getRoot)(e);Date.now()-e.initialLoadingAt>3e5&&(e.initialLoading=!0);try{var m,f,g,h,_,x;const[u,y,v,b,w,C,j]=yield Promise.all([n.fetchNotPostAgreedEvents(),n.fetchUnconfirmedEvents(),s.isFreelance||a.agencyProvider.showChangeRequest?i.fetchChangeRequests():null,r?ao(e).fetchNewRequests():null,l?ao(e).fetchSelectedByCustomer():null,ao(e).fetchMyEarnings(),ao(e).fetchNotificationMessage()]);e.events=Ur()(u,y,"id"),e.changeRequests=v||[],e.myEarnings=C;const I=null===(m=j.data)||void 0===m||null===(f=m.currentProvider)||void 0===f?void 0:f.notificationMessage;e.notificationMessage=I&&!Br()(I)?I:null,e.newRequests=null===b||void 0===b||null===(g=b.data)||void 0===g||null===(h=g.currentProvider)||void 0===h?void 0:h.notifications.newRequests,e.selectedByCustomer=null===w||void 0===w||null===(_=w.data)||void 0===_||null===(x=_.currentProvider)||void 0===x?void 0:x.notifications.selectedByCustomer;if("de"===o&&["active","trial","full"].includes(s.workStatus)&&!1){yield c(Mo);t("User is assigned to AB test","from dashboard - abTest: provider_personal_calendar_sync_v2 - group: "+(p(Mo)?"experiment":"control"))}e.initialLoading=!1,e.initialLoadingAt=Date.now(),d()}catch(y){e.initialLoading=!1,le(y)}}),setEventToConvert(t){e.eventToConvert=t},setEventToReview(t){e.eventToReview=t},markNotificationMessageRead:(0,Y.flow)(function*(t){const{data:n}=yield ao(e).markNotificationMessageRead(t);n.markNotificationMessageRead.success&&(e.notificationMessage=null)}),fetchStripeHostedOnboardingLink:(0,Y.flow)(function*(){var t,n;return null===(t=(yield ao(e).fetchStripeHostedOnboardingLink()).data)||void 0===t||null===(n=t.currentProvider)||void 0===n?void 0:n.stripeAccount.hostedOnboardingLink}),acceptNewRequest:(0,Y.flow)(function*(t){try{const{data:{acceptNewRequest:{success:n}}}=yield ao(e).acceptNewRequest(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),rejectNewRequest:(0,Y.flow)(function*(t){try{const{data:{rejectNewRequest:{success:n}}}=yield ao(e).rejectNewRequest(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),closeNewRequest(t){e.newRequests.forEach(e=>{e.id===t&&(e.actioned=!0)})}})).views(e=>({get changeRequestsNotActioned(){return(e.changeRequests||[]).filter(({providerAcknowledged:e})=>!e)},get notPostAgreedEvents(){return e.events.filter(({postAgreed:e})=>!e)},get unconfirmedEvents(){return e.events.filter(({confirmed:e})=>!e)},get newRequestsNotActioned(){return(e.newRequests||[]).filter(({actioned:e})=>!e)}})),Rl=kl,Sl=Y.types.model("NotificationsPageStore",{initialLoading:Y.types.optional(Y.types.boolean,!0),initialLoadingAt:Y.types.optional(Y.types.integer,0),events:Y.types.array(Y.types.reference(vl)),ratingsCount:Y.types.optional(Y.types.integer,0),finishedEventsCount:Y.types.optional(Y.types.integer,0),awaitingOnfidoPass:Y.types.optional(Y.types.boolean,!1),oneRelationshipLimit:Y.types.optional(Y.types.boolean,!1),cancelledRelationships:Y.types.maybe(Y.types.array(jl)),changeRequests:Y.types.array(Y.types.reference(Nl)),sharePublicProfileBannerDismissed:Y.types.optional(Y.types.boolean,!1)}).actions(e=>({fetchForPremium:(0,Y.flow)(function*(){const{events:t}=(0,Y.getRoot)(e);e.initialLoading=!0;try{var n,i;const[o,a]=yield Promise.all([t.fetchCancelledEvents(),ao(e).fetchCancelledRelationships()]);e.events=o,e.cancelledRelationships=((null===(n=a.data)||void 0===n||null===(i=n.currentProvider)||void 0===i?void 0:i.notifications.cancelledRelationships)||[]).map(e=>{const n=e.customer;return{id:e.id,customer:n,futureEvents:e.cancellation.affectedEvents.map(e=>t.put(Object.assign({},e,{customer:n})))}}),e.initialLoading=!1}catch(o){e.initialLoading=!1,le(o)}}),fetch:(0,Y.flow)(function*(){const{events:t,changeRequests:n,session:{countryConfig:i,currentUser:o}}=(0,Y.getRoot)(e);Date.now()-e.initialLoadingAt>3e5&&(e.initialLoading=!0);try{var a,s,r,l,d,c;const[u,p,m,f,g]=yield Promise.all([o.isFreelance||i.agencyProvider.showChangeRequest?n.fetchChangeRequests():null,ao(e).getTotalRatingsCount(),ao(e).fetchCurrentProviderAccountStatus(),t.fetchCancelledEvents(),ao(e).fetchCancelledRelationships()]);if(e.changeRequests=u||[],e.events=f,e.ratingsCount=null===(a=p.data)||void 0===a||null===(s=a.currentProvider)||void 0===s||null===(r=s.totalRatings)||void 0===r?void 0:r.totalCount,null!==(l=m.data)&&void 0!==l&&l.currentProvider){const{data:{currentProvider:{awaitingOnfidoPass:t,finishedEventsCount:n,profile:{activeRelationshipsLimit:i}}}}=m;e.awaitingOnfidoPass=t,e.oneRelationshipLimit=0===i,e.finishedEventsCount=n}e.cancelledRelationships=((null===(d=g.data)||void 0===d||null===(c=d.currentProvider)||void 0===c?void 0:c.notifications.cancelledRelationships)||[]).map(e=>{const n=e.customer;return{id:e.id,customer:n,futureEvents:e.cancellation.affectedEvents.map(e=>t.put(Object.assign({}
1612,e,{cancelledDetails:{eligibleForCancellationFeeClaim:e.eligibleForCancellationFeeClaim,cancellationFeeAmount:e.cancellationFeeAmount,cancelledWithinXHours:e.cancelledWithinXHours,successfulEventsCount:e.relationship.successfulEventsCount,customerRepeatPrice:e.relationship.customerRepeatPrice,customerAdhocPrice:e.relationship.customerAdhocPrice},customer:n})))}}),e.initialLoading=!1,e.initialLoadingAt=Date.now()}catch(u){e.initialLoading=!1,le(u)}}),acknowledgeRelationshipCancellation(t){ao(e).acknowledgeRelationshipCancellation(t),e.markRelationshipCancellationAsAck(t)},markRelationshipCancellationAsAck(t){const n=e.cancelledRelationships.findIndex(({id:e})=>e===t);n>-1&&e.cancelledRelationships.splice(n,1)},claimRelationshipCancellationFee:(0,Y.flow)(function*(t,n){try{const{data:{claimRelationshipCancellationFee:{success:i,errors:o}}}=yield ao(e).claimRelationshipCancellationFee(t,n);return{success:i,error:null===o||void 0===o?void 0:o[0]}}catch(i){return{success:!1,error:i}}}),waiveRelationshipCancellationFee:(0,Y.flow)(function*(t){try{const{data:{waiveRelationshipCancellationFee:{success:n,errors:i}}}=yield ao(e).waiveRelationshipCancellationFee(t);return{success:n,error:null===i||void 0===i?void 0:i[0]}}catch(n){return{success:!1,error:n}}}),dismissSharePublicProfileBannerNotification(){e.sharePublicProfileBannerDismissed=!0}})).views(e=>({get changeRequestsNotActioned(){return(e.changeRequests||[]).filter(({providerAcknowledged:e})=>!e)},get cancelledEvents(){return e.events.filter(({cancelledDetails:e})=>!!e)},get cancelledEventsNotActioned(){return e.cancelledEvents.filter(({cancelledDetails:{actioned:e}})=>!e)},get activeNotifications(){const{session:{currentUser:t,settings:n}}=(0,Y.getRoot)(e),i={suspended:t.isSuspended,awaitingOnfido:!t.isSuspended&&e.awaitingOnfidoPass,oneRelationshipLimit:!e.awaitingOnfidoPass&&e.oneRelationshipLimit&&0===e.finishedEventsCount,showShareBanner:n.viewPermissions.editProfile&&n.viewPermissions.canShareProfile&&!e.sharePublicProfileBannerDismissed,showReference:!e.awaitingOnfidoPass&&n.featureFlags.collectReferences&&!e.ratingsCount};return Object.keys(i).filter(e=>!!i[e])}})),Al=Sl;var Pl=n(78724),Dl=n.n(Pl);const Ml=({model:e,onFetch:t,onRemove:n,perPage:i=25})=>Y.types.model(`${e.name}ReferenceStore`,{collection:Y.types.array(Y.types.safeReference(e)),cursor:Y.types.maybeNull(Y.types.string),loading:Y.types.optional(Y.types.boolean,!1),currentPage:Y.types.optional(Y.types.number,1),totalCount:Y.types.maybeNull(Y.types.number),perPage:Y.types.optional(Y.types.number,i)}).views(e=>({get paginated(){return e.getPage(e.currentPage)},get hasNextPage(){return!!e.totalCount&&e.currentPage<e.totalCount/e.perPage},get hasPrevPage(){return e.currentPage>1},getPage(t){const n=(t-1)*e.perPage,i=n+e.perPage;return e.collection.slice(n,i)},get totalPages(){return e.totalCount&&Math.ceil(e.totalCount/e.perPage)}})).actions(e=>({sort:e=>e,reset(){e.collection=[],e.complete=!1,e.cursor=null,e.currentPage=1},setFilter(t,n){e[t]=n},setPerPage(t){e.perPage=t},fetch:(0,Y.flow)(function*(...n){var i;null!==(i=n[0])&&void 0!==i&&i.withoutLoader||(e.loading=!0);const{collection:o,totalCount:a,cursor:s}=yield t(e,{cursor:e.cursor,first:e.perPage},...n);return e.collection=e.sort(Dl()(e.collection,o)),e.cursor=s,e.totalCount=a,e.loading=!1,o}),remove:(0,Y.flow)(function*(t){(yield n(e,t))&&(e.totalCount-=1,e.currentPage>e.totalPages&&(e.currentPage=e.totalPages))}),next:(0,Y.flow)(function*(){e.hasNextPage&&(e.currentPage+=1,0===e.getPage(e.currentPage).length&&(yield e.fetch()))}),prev(){e.hasPrevPage&&(e.currentPage-=1)}})),Ol="selected",zl="countdown",Ll="optin",ql=[Ol,zl],Bl=[Ol,zl,Ll],Gl="cleaning",Ul=[Gl,"more"],$l={minimum:7200,maximum:43200},Fl=1,Hl=Y.types.model("Payout",{providerTotalPayout:Y.types.number}),Wl=Y.types.model("Bid",{code:Y.types.identifier,address:_o,frequency:Y.types.maybeNull(Y.types.string),starttime:Y.types.string,endtime:Y.types.string,duration:Y.types.number,totalPayout:Y.types.maybeNull(Y.types.string),distance:Y.types.maybeNull(Y.types.number),payout:Y.types.maybeNull(Y.types.number),payoutsWithIntroFee:Hl,isCandidate:Y.types.maybeNull(Y.types.boolean),selectedByCustomer:Y.types.maybeNull(Y.types.boolean),existingCustomer:Y.types.optional(Y.types.boolean,!1),pricePerHour:Y.types.maybeNull(Y.types.number),optedIn:Y.types.maybeNull(Y.types.boolean),countdownEndTime:Y.types.maybeNull(Y.types.string),bidType:Y.types.maybeNull(Y.types.string),isCountdown:Y.types.maybeNull(Y.types.boolean),reverseOfferExclusivityEndTime:Y.types.maybeNull(Pr)}).views(e=>({get asap(){return"asap"===e.bidType}
1612,get detailViewUrl(){return Xi(e.code)},get formattedDate(){return C.DateTime.fromISO(e.starttime).toLocaleString(C.DateTime.DATE_HUGE)},get formattedStartTime(){return C.DateTime.fromISO(e.starttime).toLocaleString(C.DateTime.TIME_SIMPLE)},get formattedEndTime(){return C.DateTime.fromISO(e.endtime).toLocaleString(C.DateTime.TIME_SIMPLE)},get showClock(){return e.optedIn},get providerPrice(){return e.payout?(e.payout/100).toFixed(2):void 0},get providerType(){return["selection","asap"].includes(e.bidType)?void 0:e.bidType},get providerPriceWithIntroFee(){return e.payoutsWithIntroFee?(e.payoutsWithIntroFee.providerTotalPayout/100).toFixed(2):void 0},get isSelectionOffer(){return"selection"===e.bidType&&e.selectedByCustomer&&!e.isCountdown},get showExclusivityTimer(){const{session:{settings:t}}=(0,Y.getRoot)(e);return e.isSelectionOffer&&e.reverseOfferExclusivityEndTime&&e.reverseOfferExclusivityEndTime>new Date},get trackingProperties(){const t={asap:e.asap,frequencyOption:e.frequency,duration:e.duration/3600,startTime:C.DateTime.fromISO(e.starttime).toLocaleString(C.DateTime.TIME_24_SIMPLE),day:C.DateTime.fromISO(e.starttime).toFormat("EEEE"),offerType:e.selectedByCustomer?Ol:zl,serviceType:Gl};return e.providerType&&(t.providerType=e.providerType),"once"===e.frequency?t.oneoffPrice=Number((e.payout/100).toFixed(2)):(t.first3CleanPrice=Number((e.payoutsWithIntroFee.providerTotalPayout/100).toFixed(2)),t.after3CleanPrice=Number((e.payout/100).toFixed(2))),t}})),Vl=Ml({model:Wl,loading:!1,onFetch:async(e,t,n)=>{const{offers:i,session:o}=(0,Y.getRoot)(e),{settings:{isProviderUnderExperimentAbTest:a}}=o;await o.settings.viewPermissions.fetchHasNewOffersBlocked();const{collection:s,totalCount:r}=await i.fetchOffers(n);if(a(Lo)){var l,d,c;const t=await ao(e).fetchNewRequests(),n=((null===t||void 0===t||null===(l=t.data)||void 0===l||null===(d=l.currentProvider)||void 0===d||null===(c=d.notifications)||void 0===c?void 0:c.newRequests)??[]).map(e=>i.put((e=>{var t;const n=null!==(t=e.payout)&&void 0!==t&&t.providerTotalPayout?Number(e.payout.providerTotalPayout):null;return{code:e.id,address:e.relationship.address,frequency:e.frequency,starttime:e.proposedStarttime,endtime:C.DateTime.fromISO(e.proposedStarttime).plus({seconds:e.proposedDuration}).toISO(),duration:e.proposedDuration,payout:n,payoutsWithIntroFee:{providerTotalPayout:n??0},selectedByCustomer:!0,optedIn:!1,bidType:"selection",existingCustomer:!0}})(e))).filter(Boolean);return{collection:[...s,...n],totalCount:r+n.length}}return{collection:s,totalCount:r}},onRemove:()=>{}}),Kl=Vl,Yl=Y.types.model("PlannerPageStore",{date:Y.types.optional(Pr,C.DateTime.local())}).views(e=>({get selectedDate(){return e.date}})).actions(e=>({setSelectedDate(t){e.date=t}})),Xl=Yl,Zl=Y.types.model("VerticalRequest",{id:Y.types.identifier,offerId:Y.types.maybeNull(Y.types.string),category:Y.types.string,duration:Y.types.number,starttime:Y.types.string,endtime:Y.types.string,pricingUnit:Y.types.string,unitQuantity:Y.types.maybeNull(Y.types.number),frequency:Y.types.maybeNull(Y.types.string),address:_o,currentProviderTotalPayout:Y.types.maybeNull(Y.types.number),selected:Y.types.boolean}).views(e=>({get detailViewUrl(){return e.selected?`/provider/offers/${e.offerId}`:(e=>`/provider/optable_offers/${e}`)(e.id)},get formattedDate(){return C.DateTime.fromISO(e.starttime).toLocaleString(C.DateTime.DATE_HUGE)},get formattedStartTime(){return C.DateTime.fromISO(e.starttime).toLocaleString(C.DateTime.TIME_SIMPLE)},get formattedEndTime(){return C.DateTime.fromISO(e.endtime).toLocaleString(C.DateTime.TIME_SIMPLE)},get showClock(){return!1},get providerPrice(){var t;return null===(t=e.currentProviderTotalPayout)||void 0===t?void 0:t.toFixed(2)}})),Ql=Ml({model:Zl,loading:!1,onFetch:async e=>{const{collection:t,totalCount:n}=await(0,Y.getRoot)(e).verticalOffers.fetchVerticalOffers();return{collection:t,totalCount:n}},onRemove:()=>{}}),Jl=Y.types.model("UpdatesStore",{}).actions(e=>({checkAndFetchUpdate(){}})),ed="once",td=e=>null===e||""===e?ed:e,nd=Y.types.model("EventsStore",{loading:Y.types.optional(Y.types.boolean,!0),collection:Y.types.map(vl)}).actions(e=>({fetchNotPostAgreedEvents:(0,Y.flow)(function*(){e.loading=!0;const{data:{currentProvider:{notifications:{notPostAgreedEvents:t}}}}=yield ao(e).fetchNotPostAgreedEvents(),n=t.map(t=>e.put(Object.assign({},t,{postAgreed:!1})));return e.loading=!1,n}),fetchCancelledEvents:(0,Y.flow)(function*(){e.loading=!0;const{data:{currentProvider:{notifications:{cancelledEvents:t}}}}=yield ao(e).fetchCancelledEvents(),n=t.map(t=>e.put(Object.assign({}
1612,t,{cancelledDetails:{eligibleForCancellationFeeClaim:t.eligibleForCancellationFeeClaim,cancellationFeeAmount:t.cancellationFeeAmount,cancelledWithinXHours:t.cancelledWithinXHours,successfulEventsCount:t.relationship.successfulEventsCount,customerRepeatPrice:t.relationship.customerRepeatPrice,customerAdhocPrice:t.relationship.customerAdhocPrice}})));return e.loading=!1,n}),updatePostCleanRequest:(0,Y.flow)(function*(t){try{const{data:{postCleanRequest:{success:n,error:i,postCleanRequest:o}}}=yield ao(e).updatePostCleanRequest(t);return{success:n,error:i,data:o}}catch(n){return{success:!1,error:n}}}),createEventRating:(0,Y.flow)(function*(t){try{const{data:{createRatingOfCustomer:{success:n,error:i}}}=yield ao(e).createEventRating(t);return{success:n,error:i}}catch(n){return{success:!1,error:n}}}),addEventPendingRequest:(0,Y.flow)(function*(t){e.collection.get(t).postRequestPending=!0}),removeEvent:(0,Y.flow)(function*(t){const n=e.collection.get(t);n&&(n.postAgreed=!0)}),clear:(0,Y.flow)(function*(){e.collection.clear()}),acknowledgeEventCancellation:(0,Y.flow)(function*(t){try{yield ao(e).acknowledgeEventCancellation(t)}catch(n){}return e.markCancellationAck(t)}),claimCancellationFee:(0,Y.flow)(function*(t){try{const{data:{claimCancellationFeeOnEvent:{success:n,error:i}}}=yield ao(e).claimCancellationFee(t);return{success:n,error:i}}catch(n){return{success:!1,error:n}}}),waiveCancellationFee:(0,Y.flow)(function*(t){try{const{data:{waiveCancellationFeeOnEvent:{success:n}}}=yield ao(e).waiveCancellationFee(t);return{success:n}}catch(n){return{success:!1,error:n}}}),markCancellationAck:(0,Y.flow)(function*(t){e.collection.get(t).cancelledDetails.actioned=!0}),fetchUnconfirmedEvents:(0,Y.flow)(function*(){e.loading=!0;const{data:{currentProvider:{notifications:{unconfirmedEvents:t}}}}=yield ao(e).fetchUnconfirmedEvents(),n=t.map(t=>e.put(Object.assign({},t,{confirmed:!1})));return e.loading=!1,n}),acceptUnconfirmedEvent:(0,Y.flow)(function*(t){try{const{data:{acceptUnconfirmedEvent:{success:n}}}=yield ao(e).acceptUnconfirmedEvent(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),cancelUnconfirmedEvent:(0,Y.flow)(function*(t){try{const{data:{cancelUnconfirmedEvent:{success:n}}}=yield ao(e).cancelUnconfirmedEvent(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),markEventAsConfirmed:(0,Y.flow)(function*(t){e.collection.get(t).confirmed=!0}),fetchEvent:(0,Y.flow)(function*(t){try{const{data:{currentProvider:{event:n}}}=yield ao(e).fetchEvent(t);return n?e.put(n):null}catch(n){return null}}),fetchEventCaseEligibleFlags:(0,Y.flow)(function*(t){const n=e.collection.get(t);try{const{data:{event:{pecEligible:i,stcEligible:o,firstInRelationship:a}}}=yield ao(e).fetchEventCaseEligibleFlags(t);return n&&(n.pecEligible=i,n.stcEligible=o,n.firstInRelationship=a),{firstInRelationship:a,pecEligible:i,stcEligible:o}}catch(i){return{firstInRelationship:null,pecEligible:null,stcEligible:null}}}),put:({id:t,providerBalance:n,customer:i,postRequestPending:o,promptCustomerForConversion:a,postAgreed:s,cancelled:r,cancelledDetails:l,totalProviderSupportTips:d,confirmed:c,relationship:u,startTime:p,endTime:m,materials:f,address:g,period:h,customerChecklist:_,fixedDuration:x,invoices:y,charges:v,payouts:b,providerTotal:w,amendableByProvider:C,isCleaning:j,isVertical:I,category:T,additionalServices:E,pricingItems:N,verticalRequest:k,pickupAttempts:R,careServiceDetails:S,externalCalendarEventId:A,firstInRelationship:P})=>e.collection.put({id:String(t),providerBalance:n,customer:i,postRequestPending:o,promptCustomerForConversion:a,postAgreed:s,details:{relationshipId:null===u||void 0===u?void 0:u.id,startTime:p,endTime:m,materials:f,address:g,period:td(h)},cancelled:r,cancelledDetails:l,totalProviderSupportTips:d,confirmed:c,customerChecklist:_,fixedDuration:x,invoices:y,charges:v,payouts:b,relationship:u,providerTotal:w,amendableByProvider:C,isCleaning:j,isVertical:I,category:T,additionalServices:E,pricingItems:N,verticalRequest:k,pickupAttempts:R,careServiceDetails:S,externalCalendarEventId:A,firstInRelationship:P}),fetchEvents:(0,Y.flow)(function*(t,n){try{const{data:{providerCalendarEvents:{confirmedEvents:i,unconfirmedEvents:o,changeRequests:a=[],newRequests:s=[],newCustomers:r=[],busyTimes:l=[],pickupAttempts:d=[]}}}=yield e.fetchCalendarEvents({startDate:t.startOf("day"),endDate:t.endOf("day"),isPremium:n});return[...i.map(e=>Object.assign({},e,{eventType:"confirmed"})),...o.map(e=>Object.assign({},e,{eventType:"unconfirmed"})),...a.map(e=>Object.assign({},e,{eventType:"change_request",startTime:e.proposedStarttime,endTime:C.DateTime.fromISO(e.proposedStarttime).plus({seconds:e.proposedDuration}).toISO()})),...s.map(e=>Object.assign({},e,{eventType:"new_request",startTime:e.proposedStarttime,endTime:C.DateTime.fromISO(e.proposedStarttime).plus({seconds:e.proposedDuration}).toISO(),customer:e.relationship.customer,address:e.relationship.address})),...r.filter(e=>C.DateTime.fromISO(e.startTime).toLocal().startOf("day").toISO()===t.toLocal().startOf("day").toISO()).map(e=>Object.assign({},e,{eventType:"new_customer",providerTotal:100*e.payout})),...l.map(e=>Object.assign({},e,{eventType:"busy_time",startTime:e.starttime,endTime:e.endtime,notes:[e.customerTasks,e.notes].filter(e=>!!e).join("\n"),address:{address1:e.customerAddress}})),...d.map(e=>{var t,n;return Object.assign({},e,{eventType:"pickup_attempt",startTime:e.scheduledAt,endTime:C.DateTime.fromISO(e.scheduledAt).plus({seconds:e.duration}).toISO(),customer:null===(t=e.event)||void 0===t?void 0:t.customer,address:null===(n=e.event)||void 0===n?void 0:n.address})})].map(e=>Object.assign({},e,{period:td(e.period)})).sort((e,t)=>
1612new Date(e.startTime)-new Date(t.startTime)).filter(e=>C.DateTime.fromISO(e.startTime).day===t.day)}catch(ca){return console.error(ca),[]}}),fetchCalendarEvents:(0,Y.flow)(function*({startDate:t,endDate:n,isPremium:i}){return yield ao(e).fetchCalendarEvents({startDate:t,endDate:n,isPremium:i})}),fetchEventsCounts:(0,Y.flow)(function*(t,n=3,i=4){const{year:o,month:a}=t,s=C.DateTime.local(o,a,1),r=s.plus({month:i});try{const{data:{providerCalendarEventsCount:t}}=yield ao(e).fetchDaysEventsCount(s.minus({month:n}),r);return t}catch(ca){return[]}}),fetchTimeTravels:(0,Y.flow)(function*(t){try{const{data:{providerTravelTime:n}}=yield ao(e).fetchTimeTravels(t);return n}catch(ca){return[]}}),fetchTranslatedCustomerChecklist:(0,Y.flow)(function*(t,n){try{const{data:{currentProvider:{customerChecklist:i}}}=yield ao(e).fetchTranslatedCustomerChecklist(t,n);return{translatedCustomerChecklist:i}}catch(i){return{error:i}}})})).views(e=>({get events(){return Array.from(e.collection.values())},get notPostAgreedEvents(){return e.events.filter(({postAgreed:e})=>!e)},get unconfirmedEvents(){return e.events.filter(({confirmed:e})=>!e)}})),id=nd,od=Y.types.model("ChangeRequestsStore",{collection:Y.types.map(Nl)}).actions(e=>({fetchChangeRequests:(0,Y.flow)(function*(){const{data:{currentProvider:{notifications:{changeRequests:t}}}}=yield ao(e).fetchChangeRequests();return t.map(t=>e.put(t))}),acceptChangeRequest:(0,Y.flow)(function*(t){try{const{data:{acceptChangeRequest:{success:n}}}=yield ao(e).acceptChangeRequest(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),rejectChangeRequest:(0,Y.flow)(function*(t){try{const{data:{rejectChangeRequest:{success:n}}}=yield ao(e).rejectChangeRequest(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),closeChangeRequest(t){const{session:{refreshCounters:n}}=(0,Y.getRoot)(e);e.collection.get(t).providerAcknowledged=!0,n()},acknowledgeChangeRequest:(0,Y.flow)(function*(t){try{const{data:{acknowledgeChangeRequest:{success:n}}}=yield ao(e).acknowledgeChangeRequest(t);return{success:n,error:{}}}catch(n){return{success:!1,error:n}}}),put:t=>e.collection.put(t)})),ad="H2 Partner Provider App Web",sd=Y.types.model("AnalyticsStore",{trackingPermission:Y.types.optional(Y.types.boolean,!0)}).actions(e=>((0,Y.addMiddleware)(e,(t,n,i)=>"action"!==t.type||"setTrackingPermission"===t.name||e.trackingPermission?n(t):i()),{autoTrack(t,n,i={}){window.dataLayer=window.dataLayer||[];const{session:{isSignedIn:o,currentUser:a,country:s}}=(0,Y.getRoot)(e);if(!e.trackingPermission)return;const r=o?a.id:null,l=r?`${n||""} - {provider_id: ${r}}`:n;window.dataLayer.push(Object.assign({event:"autoTrack",eventCategory:ad,eventAction:t,eventLabel:l,country:s,userUid:r?`provider-${r}`:"unknown",time:(new Date).toISOString()},i))},autoTrackEnhanced:({userFlow:t,action:n,objectName:i,userType:o=Ka,properties:a={}})=>{if(!Za.includes(n))return void console.warn(`autoTrackEnhanced: Invalid action "${n}" provided. Valid actions are: ${Za.join(", ")}`);if(!Va.includes(t))return void console.warn(`autoTrackEnhanced: Invalid user flow "${t}" provided. Valid user flows are: ${Va.join(", ")}`);if(!Ya.includes(o))return void console.warn(`autoTrackEnhanced: Invalid user type "${o}" provided. Valid user types are: ${Ya.join(", ")}`);if(!i)return void console.warn("autoTrackEnhanced: Missing required parameter objectName");const{session:{currentPath:s,currentUser:r,country:l,buildEventLabel:d}}=(0,Y.getRoot)(e),c=null===r||void 0===r?void 0:r.id,u=`${t} - ${o} ${n} ${i}`,p=d();window.dataLayer.push(Object.assign({},a,{event:"autoTrack",eventCategory:ad,eventAction:u},p?{eventLabel:p}:{},{country:l,userUid:c?`provider-${c}`:"unknown"},s.trackingProperties))},trackEvent(t,n={}){window.dataLayer=window.dataLayer||[],e.trackingPermission&&window.dataLayer.push(Object.assign({event:t,eventCategory:ad},n))},trackTestStarted:(t,n)=>{const{session:{currentPath:i,currentUser:o,country:a,buildEventLabel:s}}=(0,Y.getRoot)(e),r=null===o||void 0===o?void 0:o.id,l={"Experiment name":t,"Variant name":n},d=s(l);window.dataLayer.push(Object.assign({},l,{event:"autoTrack",eventCategory:ad,eventAction:"$experiment_started",eventLabel:d,country:a,userUid:r?`customer-${r}`:null},i.trackingProperties))},triggerHotjarEvent(e){"function"===typeof window.hj&&hj("event",e)},hjIdentifyUser(){const{session:{currentUser:t}}=(0,Y.getRoot)(e);if(!t)return;const{id:n,performanceScoreGroup:i,workStatus:o,metro:a}=t;e.trackingPermission&&"function"===typeof window.hjIdentifyUser&&window.hjIdentifyUser(n,{performanceScoreGroup:i||"no-score",workStatus:o,metro:a})},clarityPushUserAttributes(){const{session:{currentUser:t}}=(0,Y.getRoot)(e);if(!t||!e.trackingPermission||"function"!==typeof window.claritySetCustomTag)return;const{performanceScoreGroup:n,workStatus:i,metro:o}=t;window.claritySetCustomTag("performanceScoreGroup",n||"no-score"),window.claritySetCustomTag("workStatus",i),window.claritySetCustomTag("metro",o)},setTrackingPermission(e){},async setDefaultTrackingParameters(){const{session:{settings:t}}=(0,Y.getRoot)(e);
1612null!==t&&void 0!==t&&t.abTests&&t.abTests.forEach(t=>{e.trackTestStarted(t.key,t.group)})},async afterSignOut(){},trackCurrentPath:()=>{const{session:{currentPath:{pathname:t,trackingProperties:n}}}=(0,Y.getRoot)(e);return e.autoTrack("Provider visited the route",`pathname: ${t}`,Object.assign({},n))}})),rd=sd,ld=Y.types.model("PushNotification",{eventName:Y.types.maybeNull(Y.types.string),details:Y.types.frozen({}),redirectTo:Y.types.maybeNull(Y.types.string)}),dd=Y.types.model("PushNotificationStore",{pending:Y.types.maybeNull(ld)}).actions(e=>({set(t){e.pending=(e=>{var t;return e?{eventName:e.event_name,details:null===(t=e.data)||void 0===t?void 0:t.detail,redirectTo:e.redirect_to}:null})(t)}})),cd=Y.types.model("CustomersStore",{collection:Y.types.map(Jr),customers:Y.types.array(Jr)}).actions(e=>({fetchCustomer:(0,Y.flow)(function*(t){try{const{data:{customer:n}}=yield ao(e).fetchCustomer(t);return e.put(n)}catch(n){return{success:!1,error:n}}}),fetchCustomers:(0,Y.flow)(function*(t){try{const{data:{customers:n}}=yield ao(e).fetchCustomers(t);return[...n].sort((e,t)=>e.name.localeCompare(t.name))}catch(n){return{success:!1,error:n}}}),fetchCustomerFutureEvents:(0,Y.flow)(function*(t,n){try{var i;const{data:{customer:o}}=yield ao(e).fetchCustomerFutureEvents(t,n);return null===o||void 0===o||null===(i=o.relationship)||void 0===i?void 0:i.futureEvents}catch(o){return{success:!1,error:o}}}),put(t){var n,i;if(!t)return null;if((null===(n=t.relationship)||void 0===n||null===(i=n.series)||void 0===i?void 0:i.length)>0){const n=t.relationship.series.map(e=>"undefined"===typeof e.period?e:Object.assign({},e,{period:td(e.period)}));return e.collection.put(Object.assign({},t,{relationship:Object.assign({},t.relationship,{series:n})}))}return e.collection.put(t)}})),ud=cd,pd="requested",md="approved",fd="declined",gd={banner:{color:Qe.WHITE},label:{color:Qe.CRIMSON_4,textColor:Qe.GREEN_SUMMER_GRASS}},hd={[pd]:{banner:{color:Qe.CRIMSON_4},label:{color:Qe.CRIMSON_4,textColor:Qe.GREEN_SUMMER_GRASS}},[md]:{banner:{color:Qe.GRAY_BORDER},label:{color:Qe.GREEN_SAGE_TEA,textColor:Qe.WHITE}},[fd]:{banner:{color:Qe.CRIMSON_4},label:{color:Qe.CRIMSON_4,textColor:Qe.GREEN_SUMMER_GRASS}}},_d=Y.types.model("Absence",{id:Y.types.identifier,startDate:Y.types.maybeNull(Y.types.string),endDate:Y.types.maybeNull(Y.types.string),category:Y.types.maybeNull(Y.types.string),status:Y.types.maybeNull(Y.types.string),proofProvided:Y.types.maybeNull(Y.types.boolean),dayPart:Y.types.maybeNull(Y.types.string),createdAt:Y.types.maybeNull(Y.types.string)}).views(e=>({get durationInDays(){const t=C.DateTime.fromISO(e.startDate),n=C.DateTime.fromISO(e.endDate).diff(t,"days").days+1;switch(e.dayPart){case"first_half":case"second_half":case"half_first_day":case"half_last_day":return n-.5;case"half_first_and_last_day":return n-1;default:return n}}})),xd=_d,yd=Y.types.model("AbsencesStore",{collection:Y.types.map(xd)}).actions(e=>({getAbsence:t=>e.absences.find(e=>{const n=t.startOf("day"),i=C.DateTime.fromISO(e.startDate).startOf("day"),o=C.DateTime.fromISO(e.endDate).startOf("day");return n>=i&&n<=o}),fetchAbsence:(0,Y.flow)(function*(t){try{const{data:{currentProvider:{absences:n}}}=yield ao(e).fetchAbsences();return n.forEach(t=>{e.put(t)}),e.getAbsence(t)}catch(n){return{success:!1,error:n}}}),fetchAbsences:(0,Y.flow)(function*(){try{const{data:{currentProvider:{absences:t}}}=yield ao(e).fetchAbsences();return e.collection.clear(),t.map(t=>e.put(t))}catch(t){return{success:!1,error:t}}}),put:t=>t?e.collection.put(t):null,fetchAbsencesOverview:(0,Y.flow)(function*(){try{const{data:{allAbsences:t}}=yield ao(e).fetchAbsencesOverview();return{success:!0,overview:t}}catch(t){return{success:!1,error:t}}}),fetchAffectedCustomers:(0,Y.flow)(function*(t,n){try{const{data:{providerAgencyAbsenceAffectedCustomers:i}}=yield ao(e).fetchAbsenceAffectedCustomers({startDate:t,endDate:n});return i}catch(i){return[]}}),requestAbsence:(0,Y.flow)(function*(t){try{const{data:{createProviderAgencyAbsence:{success:n,errors:i}}}=yield ao(e).requestAbsence(t);return{success:n,errors:i}}catch(n){return{success:!1,errors:[n]}}})})).views(e=>({get absences(){return Array.from(e.collection.values())}
1612,get pastAbsences(){const t=e.absences.filter(e=>e.status===md&&C.DateTime.fromISO(e.endDate)<C.DateTime.local());return t.sort((e,t)=>{const n=C.DateTime.fromISO(e.endDate),i=C.DateTime.fromISO(t.endDate);return n===i?0:n<i?1:-1})},get pendingAbsences(){const t=e.absences.filter(e=>!(e.status===md&&C.DateTime.fromISO(e.endDate)<C.DateTime.local()));return t.sort((e,t)=>{const n=C.DateTime.fromISO(e.endDate),i=C.DateTime.fromISO(t.endDate);return n===i?0:n<i?-1:1})}})),vd=yd,bd=Y.types.model("OffersStore",{collection:Y.types.map(Wl),seenKeepProfileUpdatedTooltip:Y.types.optional(Y.types.boolean,!1)}).views(e=>({get showKeepProfileUpdatedTooltip(){return!1}})).actions(e=>({fetchOffers:(0,Y.flow)(function*(t){const{data:{bids:{edges:n}}}=yield ao(e).getOffers(t),i=n.map(({node:t})=>e.put(t));return(0,Y.getRoot)(e).session.setNewOffersCount(i.length),{collection:i,totalCount:i.length}}),put:t=>t?e.collection.put(t):null,setSeenKeepProfileUpdatedTooltip(){e.seenKeepProfileUpdatedTooltip=!0}})),wd=Y.types.model("VerticalOffersStore",{collection:Y.types.map(Zl)}).actions(e=>({fetchVerticalOffers:(0,Y.flow)(function*(){const[{data:{verticalRequestCandidates:t}},{data:{findOptableVerticalRequests:n}}]=yield Promise.all([ao(e).fetchVerticalOffers(),ao(e).fetchVerticalOptableRequests()]),i=Dl()(t.map(({id:t,request:n})=>e.put(Object.assign({},n,{offerId:t,selected:!0}))),n.map(t=>e.put(Object.assign({},t,{offerId:null,selected:!1}))));return(0,Y.getRoot)(e).session.setTotalVerticalsCount(i.length),{collection:i,totalCount:i.length}}),put:t=>e.collection.put(t)})),Cd=wd,jd=Y.types.model("Conversation",{relationshipId:Y.types.maybeNull(Y.types.string),customerName:Y.types.maybeNull(Y.types.string),initials:Y.types.maybeNull(Y.types.string),lastMessagePreview:Y.types.maybeNull(Y.types.string),lastMessageAt:Y.types.maybeNull(Y.types.string),unreadMessagesCount:Y.types.maybeNull(Y.types.number),frequency:Y.types.maybeNull(Y.types.string),nextOccurrenceStarttime:Y.types.maybeNull(Y.types.string)}),Id=Y.types.model("ChatMessagePayload",{title_key:Y.types.maybeNull(Y.types.string),customer_id:Y.types.maybeNull(Y.types.string)}),Td=Y.types.model("ChatMessage",{id:Y.types.identifier,relationshipId:Y.types.maybeNull(Y.types.string),createdAt:Y.types.maybeNull(Y.types.string),readAt:Y.types.maybeNull(Y.types.string),body:Y.types.maybeNull(Y.types.string),isSender:Y.types.boolean,translation:Y.types.maybeNull(Y.types.string),translationLang:Y.types.maybeNull(Y.types.string),payload:Y.types.optional(Id,{}),senderName:Y.types.maybeNull(Y.types.string)}),Ed=Y.types.model("ChatStore",{chatCustomers:Y.types.array(jd),messages:Y.types.map(Td)}).views(e=>({get activeCustomerConversations(){return e.chatCustomers.filter(e=>!!e.lastMessagePreview)},get newCustomerConversations(){return e.chatCustomers.filter(e=>!e.lastMessagePreview)},get hasUnreadCustomersChat(){return e.chatCustomers.some(e=>e.unreadMessagesCount)}})).actions(e=>({fetchConversations:(0,Y.flow)(function*(){try{const{data:{providerConversations:t}}=yield ao(e).getChatConversations();return e.chatCustomers=[...t].sort((e,t)=>new Date(t.lastMessageAt)-new Date(e.lastMessageAt)),{success:!0,errors:[]}}catch(t){return{success:!1,errors:[t.message]}}}),fetchMessagesForCustomer:(0,Y.flow)(function*(t,{beforeId:n,afterId:i,received:o}={}){try{const{currentUser:a}=(0,Y.getRoot)(e).session,{data:{messages:{edges:s}}}=yield ao(e).fetchMessagesForCustomer({relationshipId:t,limit:10,beforeId:n,afterId:i,received:o});return s.map(({node:{id:n,body:i,createdAt:o,readAt:s,sender:{id:r,firstname:l},payload:d}})=>e.messages.put({id:n,relationshipId:t,body:i,createdAt:o,readAt:s,isSender:String(a.id)===String(r),senderName:l,payload:null===d||void 0===d?void 0:d.reduce((e,{key:t,value:n})=>(e[t]=n,e),{})}))}catch(ca){return[]}}),postMessage:(0,Y.flow)(function*(t,n,i){try{const{data:{postMessage:{message:o,success:a,errors:s}}}=yield ao(e).postMessage({receiverId:n,body:i});return a?(e.messages.put(Object.assign({},o,{relationshipId:t,isSender:!0})),{success:a}):{success:a,errors:s}}catch(ca){return le(ca),{success:!1,error:ca.message}}}),markMessageAsRead:(0,Y.flow)(function*(t){const n=e.messages.get(t);if(null===n||void 0===n||!n.readAt)try{yield ao(e).markMessageAsRead(t),n.readAt=C.DateTime.local().toISO(),(0,Y.getRoot)(e).session.fetchUnreadMessagesCount()}catch(ca){}}),translateMessage:(0,Y.flow)(function*(t,n){try{const i=e.messages.get(t);if(!i)return{success:!1};if(i.translation&&i.translationLang===n)return{success:!0};i.translation="",i.translationLang=n;const{data:{translateMessage:{translatedBody:o,error:a}}}=yield ao(e).translateMessage({messageId:t,targetLanguage:n});return a?{success:!1,error:a}:(i.translation=o,{success:!0})}catch(ca){return le(ca),{success:!1,error:ca.message}}})})),Nd=Ed,kd=Y.types.model("PremiumDashboardPageStore",{events:Y.types.array(Y.types.maybe(Y.types.reference(vl)))}).actions(e=>({fetchNotPostAgreedEvents:(0,Y.flow)(function*(){const{events:t}=(0,Y.getRoot)(e);try{e.events=[],t.clear();const n=yield t.fetchNotPostAgreedEvents();return e.events=n,e.events}catch(n){e.initialLoading=!1,le(n),console.error(n)}}),updatePostCleanRequest:(0,Y.flow)(function*(t){const{events:n}=(0,Y.getRoot)(e),i=!0;{const{eventId:i}=t;n.removeEvent(i),e.events=e.events.map(e=>(e.removeEvent(),e))}return i})})).views(e=>({get notPostAgreedEvents(){return e.events.filter(({postAgreed:e})=>!e)}})),Rd=Y.types.model("ChatMessagesPageStore",{currentRelationshipId:Y.types.maybeNull(Y.types.string),loading:Y.types.optional(Y.types.boolean,!1),sending:Y.types.optional(Y.types.boolean,!1),draft:Y.types.optional(Y.types.string,"")}).views(e=>({get messages(){return Array.from((0,Y.getRoot)(e).chat.messages.values()).filter(({relationshipId:t})=>t===e.currentRelationshipId).sort((e,t)=>
1612e.createdAt<t.createdAt?1:t.createdAt<e.createdAt?-1:0)}})).actions(e=>({setCurrentRelationshipId(t){e.currentRelationshipId!==t&&(e.currentRelationshipId=t,e.draft="",e.sending=!1)},fetchCustomer:(0,Y.flow)(function*(t){try{var n;const{data:{relationships:[i]}}=yield ao(e).getProviderRelationship(t),o=null===i||void 0===i||null===(n=i.customer)||void 0===n?void 0:n.id,{collection:a,fetchCustomer:s}=(0,Y.getRoot)(e).customers;return a.has(o)||(yield s(o)),a.get(o)}catch(ca){le(ca)}}),setDraft(t){e.draft=t},fetchMessagesForCustomer:(0,Y.flow)(function*({beforeId:t}={}){e.loading=!0,yield(0,Y.getRoot)(e).chat.fetchMessagesForCustomer(e.currentRelationshipId,{beforeId:t}),e.loading=!1}),fetchNewMessages:(0,Y.flow)(function*(t){return yield(0,Y.getRoot)(e).chat.fetchMessagesForCustomer(e.currentRelationshipId,{afterId:t,received:!0})}),postMessage:(0,Y.flow)(function*(t){e.sending=!0;const{success:n,errors:i}=yield(0,Y.getRoot)(e).chat.postMessage(e.currentRelationshipId,t,e.draft);return n&&(e.draft=""),e.sending=!1,{success:n,errors:i}}),markMessageAsRead:(0,Y.flow)(function*(t){yield(0,Y.getRoot)(e).chat.markMessageAsRead(t)}),translateMessage:(0,Y.flow)(function*(t,n){return yield(0,Y.getRoot)(e).chat.translateMessage(t,n)})})),Sd=Rd,Ad=Y.types.model("InvoicesPageStore").actions(e=>({downloadInvoice:(0,Y.flow)(function*(t){e.loading=!0;const{data:{exportInvoices:{success:n}}}=yield ao(e).downloadInvoice(t);return e.loading=!1,{success:n}})})),Pd=Y.types.model("HelpFAQArticle",{id:Y.types.identifier,title:Y.types.string,description:Y.types.string,recommended:Y.types.optional(Y.types.boolean,!1),searchedText:Y.types.optional(Y.types.string,"")}),Dd=Y.types.model("HelpFAQArticlesStore",{articles:Y.types.map(Pd),currentLanguage:Y.types.optional(Y.types.string,"")}).actions(e=>({fetchRecommendedArticle:(0,Y.flow)(function*(t){try{const n=e.getRecommendedArticle(t);if(n)return n;const i=yield e.fetchHelpArticle(t);return i?e.articles.put(Object.assign({},i,{recommended:!0})):null}catch(n){return null}}),fetchArticle:(0,Y.flow)(function*(t){const n=e.articles.get(t);if(n)return n;const i=yield e.fetchHelpArticle(t);return i?e.articles.put(Object.assign({},i,{recommended:!1})):null}),searchArticles:(0,Y.flow)(function*(t){e.clearSearchedArticles();const{data:{providerHelp:{articles:n}}}=yield ao(e).searchHelpArticles({searchedText:t});return n.map(n=>e.putSearchedArticle(n,t))}),sendHelpMessage:(0,Y.flow)(function*(t){return yield ao(e).sendHelpMessage(t)}),getRecommendedArticle(t){const n=e.articles.get(t);return n&&n.recommended?n:null},putSearchedArticle(t,n){const i=e.articles.get(t.id);return i&&i.recommended?e.articles.put(Object.assign({},i,{searchedText:n})):e.articles.put(Object.assign({},t,{id:`${t.id}`,recommended:!1,searchedText:n}))},clearAllArticles(){e.articles.clear()},clearSearchedArticles(){const t=Array.from(e.articles.values()).filter(e=>!!e.searchedText);t.map(t=>{t.recommended?(t.searchedText="",e.articles.put(t)):e.articles.delete(t.id)})},fetchHelpArticle:(0,Y.flow)(function*(t){const{data:{providerHelp:{article:n}}}=yield ao(e).fetchHelpArticle({id:t});return n?Object.assign({},n,{id:`${n.id}`}):null}),setCurrentLanguage:t=>t!==e.currentLanguage&&(e.currentLanguage=t,e.clearAllArticles(),!0)})).views(e=>({get arrayOfArticles(){return Array.from(e.articles.values())}})),Md=Dd,Od=Y.types.model("HelpFAQPageStore",{loading:Y.types.optional(Y.types.boolean,!0),searchedText:Y.types.optional(Y.types.string,"")}).actions(e=>({fetchRecommendedArticles:(0,Y.flow)(function*(){try{e.loading=!0;const t=(0,Y.getRoot)(e).session.countryConfig.recommendedArticles;yield Promise.all(t.map(t=>(0,Y.getRoot)(e).helpFAQArticles.fetchRecommendedArticle(t))),e.loading=!1}catch(t){return e.loading=!1,null}}),searchArticles:(0,Y.flow)(function*(t){e.loading=!0,e.searchedText=t,yield(0,Y.getRoot)(e).helpFAQArticles.searchArticles(t),e.loading=!1}),setSearchedText(t){e.searchedText=t},clearSearch(){e.searchedText="",(0,Y.getRoot)(e).helpFAQArticles.clearSearchedArticles()}})),zd=Y.types.model("HelpFAQArticlePageStore",{loading:Y.types.optional(Y.types.boolean,!0),title:Y.types.maybeNull(Y.types.string),description:Y.types.maybeNull(Y.types.string)}).actions(e=>({fetchArticle:(0,Y.flow)(function*(t){e.loading=!0;const n=yield(0,Y.getRoot)(e).helpFAQArticles.fetchArticle(t);e.title=n.title,e.description=n.description,e.loading=!1}),setCurrentLanguage(t){(0,Y.getRoot)(e).helpFAQArticles.setCurrentLanguage(t)&&(e.title="",e.description="")}})),Ld=zd,qd=Y.types.model("HelpFAQContact",{subject:Y.types.maybeNull(Y.types.string),message:Y.types.maybeNull(Y.types.string)}),Bd=Y.types.model("HelpFAQContactPageStore",{saving:Y.types.optional(Y.types.boolean,!1),form:Y.types.optional(qd,{})}).actions(e=>({init(){e.form={subject:"",message:""}},setField(t,n){e.form[t]=n},save:(0,Y.flow)(function*(){e.saving=!0;const{data:{providerHelpSubmitContactForm:{success:t,errors:n}}}=yield(0,Y.getRoot)(e).helpFAQArticles.sendHelpMessage(e.form);return e.saving=!1,t?{success:t}:null!==n?{success:t,errors:n.map(e=>e.code)}:{success:t,errors:["help_faq.contact.error"]}})})),Gd=Bd,Ud=Y.types.model("ExpeditedPayment",{enabled:Y.types.maybeNull(Y.types.boolean),balance:Y.types.maybeNull(Y.types.number),commission:Y.types.maybeNull(Y.types.number)}),$d=Y.types.model("BankTransfersPageStore",{expeditedPayment:Y.types.optional(Ud,{enabled:!0,balance:0,commission:0}),expeditedPaymentLoading:Y.types.maybeNull(Y.types.boolean)}).actions(e=>({getExpeditedPayment:(0,Y.flow)(function*(){e.expeditedPaymentLoading=!0;try{const{data:{providerPendingPayouts:{expeditedPayment:t}}}=yield ao(e).getExpeditedPayment();e.expeditedPayment=t}catch(ca){le(ca)}finally{e.expeditedPaymentLoading=!1}}),setExpeditedPaymentStatus:t=>{e.expeditedPayment.enabled=t}})),Fd=$d,Hd=Y.types.model("ToastStore",{message:Y.types.maybeNull(Y.types.string),type:Y.types.optional(Y.types.string,"error"),position:Y.types.optional(Y.types.string,"top"),duration:Y.types.optional(Y.types.number,3e3),onlyPopup:Y.types.optional(Y.types.boolean,!1)}).views(e=>({get show(){return!!e.message&&!e.onlyPopup},get showPopupToast(){return!!e.message&&e.onlyPopup}})).actions(e=>({showToastMessage(t){if(!t)return null;e.message=null===t||void 0===t?void 0:t.message,e.type=(null===t||void 0===t?void 0:t.type)||"error",e.position=(null===t||void 0===t?void 0:t.position)||"top",e.duration=(null===t||void 0===t?void 0:t.duration)||3e3,e.onlyPopup=(null===t||void 0===t?void 0:t.onlyPopup)||!1},close(){e.message=null,e.type="error",e.position="top",e.duration=3e3,e.onlyPopup=!1}})),Wd={},Vd=({name:e,type:t,defaultValue:n,onChange:i=(e,t)=>t,validator:o})=>(Wd[e]||(Wd[e]=Y.types.model(`Field:${e}`,{name:Y.types.optional(Y.types.literal(e),e),value:Y.types.maybe(void 0!==n?Y.types.optional(t,n):t),error:Y.types.maybeNull(Y.types.string)}).actions(e=>({set:(0,Y.flow)(function*(t){e.error=null;const n=i(e.form,t);return e.value=n instanceof Promise?yield n:n,e.value}),setError(t){e.error=t},validate:()=>!o||o(e,e.form),clearErrors(){e.error=null},reset(){e.error=null,e.value=null}})).views(e=>({get form(){return(0,Y.getParent)(e)}}))),Y.types.optional(Wd[e],{})),Kd=Y.types.model("ApplyStore:Base",{error:Y.types.maybeNull(Y.types.string)}).views(e=>({get fields(){return[]},get submitEnabled(){return e.fields.every(t=>e[t].value)},get hasFieldErrors(){return e.fields.some(t=>!!e[t].error)},toGraphQL:()=>({})})).actions(e=>
1612({fill(t,n=!0){Object.entries(t).forEach(([t,i])=>{if(e[t]&&(n||!e[t].value))return null===i?e[t].set(void 0):e[t].set(i)})},validate:()=>e.fields.map(t=>e[t].validate()).every(e=>!!e),setError(t){e.error=t},setErrorsFromGraphQL(t){t.forEach(({path:t,message:n})=>{if(t){const i=e[t[0]];i&&i.setError(n)}else e.setError(n)})},clearErrors(){e.error=null,e.fields.forEach(t=>e[t].clearErrors())}})),Yd=Kd,Xd=e=>t=>!!t.value||(t.setError(i18n.t(`applicant_funnel.personal_details.form.errors.${e}.required`)),!1),Zd=Yd.named("ApplyStore:PersonalDetails").props({firstName:Vd({name:"firstName",type:Y.types.string,validator:Xd("first_name")}),lastName:Vd({name:"lastName",type:Y.types.string,validator:Xd("last_name")}),gender:Vd({name:"gender",type:Y.types.string,validator:Xd("gender")}),dateOfBirth:Vd({name:"dateOfBirth",type:Y.types.string,defaultValue:"",validator:e=>{if(!e.value)return e.setError(i18n.t("applicant_funnel.personal_details.form.errors.date_of_birth.required")),!1;const t=C.DateTime.fromFormat(e.value,"dd/MM/yyyy"),n=C.DateTime.now().minus({years:18}),i=C.DateTime.now().minus({years:100}).set({day:1,month:1});return t.isValid?t>n?(e.setError(i18n.t("applicant_funnel.personal_details.form.errors.date_of_birth.too_young")),!1):!(t<i)||(e.setError(i18n.t("applicant_funnel.personal_details.form.errors.date_of_birth.invalid")),!1):(e.setError(i18n.t("applicant_funnel.personal_details.form.errors.date_of_birth.invalid")),!1)}}),birthCountry:Vd({name:"birthCountry",type:Y.types.string,validator:Xd("birth_country")}),birthPlace:Vd({name:"birthPlace",type:Y.types.string,validator:Xd("birth_place")}),nationality:Vd({name:"nationality",type:Y.types.string,validator:Xd("nationality")}),euRegulation20242065Accepted:Vd({name:"euRegulation20242065Accepted",type:Y.types.boolean,defaultValue:!1,validator:Xd("euRegulation20242065Accepted")}),referralCode:Vd({name:"referralCode",type:Y.types.string})}).views(e=>({get fields(){return["firstName","lastName","gender","dateOfBirth","birthCountry","birthPlace","nationality","euRegulation20242065Accepted","referralCode"]},toGraphQL({includeReferralCode:t=!0}={}){const n=""!==e.referralCode.value&&t?e.referralCode.value:void 0;return{firstName:e.firstName.value,lastName:e.lastName.value,gender:e.gender.value,dateOfBirth:C.DateTime.fromFormat(e.dateOfBirth.value,"dd/MM/yyyy").toISODate(),birthCountry:e.birthCountry.value,birthPlace:e.birthPlace.value,nationality:e.nationality.value,euRegulation20242065Accepted:e.euRegulation20242065Accepted.value,referralCode:n}}})).actions(e=>({setReferralCode(t){var n;null!==(n=e.currentUser)&&void 0!==n&&n.referred||e.referralCode.value||e.referralCode.set(t)}})),Qd=Zd,Jd=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),ec=e=>new RegExp(/^[\w\-\s]+$/gm).test(e),tc=e=>/^[A-Za-z\s]+$/.test(e),nc=Yd.named("ApplyStore:Register").props({email:Vd({name:"email",type:Y.types.string,defaultValue:"",validator:e=>!!Jd(e.value)||(e.setError(i18n.t("applicant_funnel.register.form.errors.email.invalid")),!1)}),password:Vd({name:"password",type:Y.types.string,defaultValue:"",validator:(e,t)=>{var n,i;const{requireNewPassword:o}=(null===(n=(0,Y.getRoot)(t).session)||void 0===n||null===(i=n.settings)||void 0===i?void 0:i.applicationProcess)||{};if(!o&&!e.value)return!0;return!!/(?=.*\d).{9,}/.test(e.value)||(e.setError(i18n.t("applicant_funnel.register.form.labels.password_rule")),!1)}})}).views(e=>({get fields(){return["email","password"]},get submitEnabled(){if(e.currentUser)return!0;return["email","password"].every(t=>e[t].value)},get currentUser(){return(0,Y.getRoot)(e).session.currentUser},toGraphQL(){const{session:{settings:{applicationProcess:{businessLicenseRequired:t}}}}=(0,Y.getRoot)(e);return e.currentUser?{email:e.email.value!==e.currentUser.email?e.email.value:void 0,password:e.password.value?e.password.value:void 0}:{email:e.email.value,password:e.password.value,terms:!0,businessLicense:t,preferredLanguage:i18n.locale}}})).actions(e=>({initialize(){e.currentUser&&e.email.set(e.currentUser.email)},clearPassword(){e.password.set("")}
1612,onUpdate(){e.clearErrors(),e.clearPassword(),e.currentUser.setEmail(e.email.value)}})),ic=nc,oc=Yd.named("ApplyStore:Address").props({address1:Vd({name:"address1",type:Y.types.string,defaultValue:""}),postcode:Vd({name:"postcode",type:Y.types.string,defaultValue:""}),town:Vd({name:"town",type:Y.types.string,defaultValue:""})}).views(e=>({get fields(){return["address1","postcode","town"]},get submitEnabled(){return["address1","postcode","town"].every(t=>!!e[t].value)},toGraphQL:()=>({address1:e.address1.value,postcode:e.postcode.value,town:e.town.value})}));const ac=n(8701).PhoneNumberUtil.getInstance(),sc=e=>{try{const t=ac.parse(e);return ac.isValidNumber(t)}catch(ca){return!1}},rc=Yd.named("ApplyStore:Mobile").props({mobile:Vd({name:"mobile",type:Y.types.string,defaultValue:"",validator:e=>!!sc(e.value)||(e.setError(i18n.t("applicant_funnel.mobile.form.errors.mobile.invalid")),!1)})}).views(()=>({get fields(){return["mobile"]}})),lc=rc,dc=Y.types.model("ApplyStore",{register:Y.types.optional(ic,()=>{}),personalDetails:Y.types.optional(Qd,()=>{}),address:Y.types.optional(oc,()=>{}),mobile:Y.types.optional(lc,()=>{})}),cc=Y.types.model("OnboardingRequirement",{name:Y.types.maybeNull(Y.types.string),status:Y.types.maybeNull(Y.types.string)}),uc="started",pc="pending",mc="complete",fc="failed",gc="in_progress",hc="not_applicable",_c="blocked",xc="upload_documents",yc="onfido_workflow",vc="identity_verification",bc="add_bank_details",wc="set_your_profile",Cc="set_your_price",jc="set_working_hours",Ic="set_services",Tc="set_your_work_location",Ec="welcome_session",Nc="registration_fee",kc="video_interview",Rc="personal_tax_id",Sc=Y.types.model("OnboardingDashboardPageStore",{requirements:Y.types.maybeNull(Y.types.array(cc))}).actions(e=>({showRequirementCompleteNotification(t=[]){if(!e.requirements)return void(e.requirements=t);const{toast:{showToastMessage:n},analytics:{autoTrack:i}}=(0,Y.getRoot)(e),o=[Rc,bc,wc,Cc,jc,Tc,Ic],a=t.filter(({name:e,status:t})=>o.includes(e)&&t===mc).find(({name:t})=>{const n=e.requirements.find(e=>e.name===t);return n&&n.status!==mc});a&&(i(`User completed requirement ${a.name}`,"on Onboarding Dashboard"),n({message:i18n.t(`onboarding_dashboard.notifications.completed_requirement.${a.name}`),type:"success"})),e.requirements=t}})),Ac=Y.types.model("ExternalCalendarStore",{externalCalendarId:Y.types.maybeNull(Y.types.string),openConnectCalendarModal:Y.types.optional(Y.types.boolean,!1)}).actions(e=>({setOpenConnectCalendarModal(t){e.openConnectCalendarModal=t},setExternalCalendarId(t){e.externalCalendarId=t},fetchExternalCalendarId:(0,Y.flow)(function*(){var t,n;const i=yield ao(e).fetchExternalCalendarConfig();e.externalCalendarId=null===i||void 0===i||null===(t=i.data)||void 0===t||null===(n=t.externalCalendar)||void 0===n?void 0:n.externalCalendarId})})),Pc=Ac,Dc=Y.types.model("NotificationPreferencesStore",{push:Y.types.optional(Y.types.boolean,!1),pushMarketing:Y.types.optional(Y.types.boolean,!0),sms:Y.types.optional(Y.types.boolean,!1),loading:Y.types.optional(Y.types.boolean,!1)}).actions(e=>({fetch:(0,Y.flow)(function*(){var t,n;const i=yield ao(e).fetchPreferredNotificationChannels(),o=null===i||void 0===i||null===(t=i.data)||void 0===t||null===(n=t.provider)||void 0===n?void 0:n.preferredNotificationChannels;o&&(e.push=o.push??e.push,e.pushMarketing=o.pushMarketing??e.pushMarketing,e.sms=o.sms??e.sms)}),update:(0,Y.flow)(function*({push:t,pushMarketing:n,sms:i}={}){const o={push:t??e.push,pushMarketing:n??e.pushMarketing,sms:i??e.sms};e.loading=!0;try{const{data:{updatePreferredNotificationChannels:{success:t,errors:n}}}=yield ao(e).updatePreferredNotificationChannels(o);return t&&(e.push=o.push,e.pushMarketing=o.pushMarketing,e.sms=o.sms),{success:t,errors:n}}catch(ca){return{success:!1,errors:[ca.message]}}finally{e.loading=!1}})})),Mc=Dc;let Oc={};const zc=Y.types.model("AppStore",{loading:Y.types.optional(Y.types.boolean,!1),loaded:Y.types.optional(Y.types.boolean,!1),session:J(Lr),apply:J(dc),updates:J(Jl),events:J(id),changeRequests:J(od),analytics:J(rd),pushNotification:J(dd),customers:J(ud),absences:J(vd),offers:J(bd),verticalOffers:J(Cd),chat:J(Nd),helpFAQArticles:J(Md),toast:J(Hd),externalCalendar:J(Pc),notificationPreferences:J(Mc),pages:Y.types.optional(Y.types.model({dashboard:J(Rl),premiumDashboard:J(kd),notifications:J(Al),planner:J(Xl),offers:J(Kl),verticalOffers:J(Ql),chatMessages:J(Sd),invoices:J(Ad),helpFAQ:J(Od),helpFAQArticle:J(Ld),helpFAQContact:J(Gd),bankTransfers:J(Fd),onboardingDashboard:J(Sc)}),{})}).volatile(()=>({fatalError:null,resolvingDeepLink:!1})).actions(e=>({afterCreate(){Oc=(0,Y.getSnapshot)(e)},setup:(0,Y.flow)(function*(){const t=yield Ne.default.getItem("provider_app_cache");if(t)try{const n=JSON.parse(t);zc.is(n)&&(n.pages.dashboard.initialLoading=!0,n.pages.notifications.initialLoading=!0,n.pages.planner.date=C.DateTime.local(),delete n.apply,delete n.updates,delete n.session.i18n,n.session.intercomSettings&&delete n.session.intercomSettings.jwt,delete n.toast,delete n.customers,delete n.externalCalendar,delete n.notificationPreferences,(0,Y.applySnapsh
1612ot)(e,n))}catch(n){"undefined"!==typeof console&&console.error("malformed cache",n)}e.loading=!0;try{yield e.session.setup()}catch(n){e.fatalError=n,"undefined"!==typeof console&&console.error(n)}try{yield Ne.default.multiRemove([ys,zs])}catch(n){le(n)}e.loading=!1,e.loaded=!0}),setResolvingDeepLink:t=>{e.resolvingDeepLink=t},clearCache:()=>{const{session:t}=(0,Y.getSnapshot)(e);(0,Y.applySnapshot)(e,{session:t})},resetStore:(t=null)=>{const n=(0,Y.getSnapshot)(e.updates),i=(0,Y.getSnapshot)(e.analytics),{loading:o,loaded:a}=e;(0,Y.applySnapshot)(e,Object.assign({},Oc,{updates:n,analytics:i,loading:o,loaded:a})),t&&e.session.setCountry(t)},updateLuxonInstances(t){!function(e,t){const n=(e,t)=>(0,Y.isModelType)(e)?i(e,t):e instanceof C.DateTime?e.setLocale(t):e,i=(e,t)=>{(0,Y.walk)(e,e=>{const i=(0,Y.getType)(e);if((0,Y.isModelType)(i)){const{properties:n}=(0,Y.getPropertyMembers)(i);Object.keys(n).forEach(n=>{e[n]instanceof C.DateTime&&(e[n]=e[n].setLocale(t))})}else(0,Y.isArrayType)(i)?e.forEach((i,o)=>{e[o]=n(i,t)}):(0,Y.isMapType)(i)&&Array.from(e.entries()).forEach(([i,o])=>{e[i]=n(o,t)})})};i(e,t)}(e,t)}})),Lc=zc;var qc=n(78199);function Bc({children:e}){return e}Bc.propTypes={children:qc.default.node};const Gc=Bc;var Uc=n(53142),$c=n(87206);const Fc=(0,Ge.default)(qe.default).withConfig({displayName:"success_message__Content",componentId:"sc-jikkn9-0"})(["padding:15px;align-items:center;"]),Hc=(0,Ge.default)(Be.default).withConfig({displayName:"success_message__Title",componentId:"sc-jikkn9-1"})(["font-size:24px;color:",";padding:15px;color:",";text-align:center;"],Qe.TEXT_DARK,Qe.TEXT_DARK),Wc=(0,Ge.default)(Be.default).withConfig({displayName:"success_message__Message",componentId:"sc-jikkn9-2"})(["font-size:16px;padding:15px;color:",";text-align:center;"],Qe.TEXT_DARK),Vc=({title:e,message:t,onClose:n,cta:i,messageTestID:o})=>(0,X.jsx)($c.default,{buttons:[{color:Qe.GREEN_SUMMER_GRASS,onPress:n,text:i,icon:{name:"chevron-left"}}],testID:o,children:(0,X.jsxs)(Fc,{children:[e&&(0,X.jsx)(Hc,{children:e}),(0,X.jsx)(Pa.default,{name:"check-circle",size:80,color:Qe.GREEN_SUMMER_GRASS}),t&&(0,X.jsx)(Wc,{children:t})]})}),Kc=xt`
1613  mutation resetPassword($email: String!) {
1614    resetPassword(email: $email) {
1615      success
1616      errors {
1617        code
1618        message
1619      }
1620    }
1621  }
1622`,Yc=["visible","innerRef"],Xc=(0,Ge.default)(Be.default).withConfig({displayName:"password_recovery__Title",componentId:"sc-1x75wpf-0"})(["margin-bottom:10px;font-size:24px;font-weight:300;color:",";"],Qe.TEXT_DARK),Zc=(0,Ge.default)(Uc.default).withConfig({displayName:"password_recovery__StyledTextInput",componentId:"sc-1x75wpf-1"})(["background:",";height:52px;padding:15px;font-size:16px;border-radius:4px;border:1px solid ",";margin-top:10px;margin-bottom:20px;"],Qe.WHITE,Qe.GRAY_BORDER),Qc=(0,Ge.default)(qe.default).withConfig({displayName:"password_recovery__PasswordRecoveryForm",componentId:"sc-1x75wpf-2"})(["padding:25px;"]),Jc=(0,Ge.default)(Be.default).withConfig({displayName:"password_recovery__Message",componentId:"sc-1x75wpf-3"})(["color:",";font-size:16px;"],Qe.TEXT_DARK),eu=(0,Ge.default)(e=>{let t=(0,A.default)(e,Yc);return(0,X.jsx)(Be.default,Object.assign({},t))}).withConfig({displayName:"password_recovery__ErrorMessage",componentId:"sc-1x75wpf-4"})(["margin-top:10px;color:",";",""],Qe.CRIMSON_1,({visible:e})=>e?"":"opacity: 0"),tu="SET_EMAIL",nu="SHOW_ERROR",iu={email:"",error:!1};function ou(e,t){switch(t.type){case tu:return Object.assign({},e,{email:t.value});case nu:return Object.assign({},e,{error:!0});default:throw new Error}}const au=({onClose:e})=>{const{analytics:{autoTrack:t}}=lt(),{resetPassword:n,saving:i,success:o}=(()=>{var e,t;const[n,{data:i,error:o,loading:a}]=(0,js.useMutation)(Kc);return{resetPassword:({email:e})=>n({variables:{email:e},context:{apiVersion:3}}),success:null===i||void 0===i||null===(e=i.resetPassword)||void 0===e?void 0:e.success,errors:null===i||void 0===i||null===(t=i.resetPassword)||void 0===t?void 0:t.errors,error:o,saving:a}})(),[a,s]=(0,K.useReducer)(ou,iu),{email:r,error:l}=a,d={top:0};return(0,X.jsxs)(Ae.KeyboardAvoidingView,{contentContainerStyle:d,behavior:"position",enabled:!0,children:[!
1622o&&(0,X.jsx)($c.default,{buttons:[{color:Qe.CRIMSON_1,onPress:()=>{t("User clicked take me back","from forgot password modal"),e()},text:i18n.t("sign_in.back"),testID:"back-button",icon:{name:"chevron-left"}},{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>""===r||i?{}:(async()=>{if(t("User clicked send","from forgot password modal"),!/^\w+([./+]?\w+)*@\w+([.]?\w+)*(\.\w{2,3})+$/.test(r))return s({type:nu});await n({email:r})})(),text:i18n.t("password_recovery.send"),testID:"continue-password-recovery",icon:{name:"done"}}],children:(0,X.jsxs)(Qc,{children:[(0,X.jsx)(Xc,{children:i18n.t("password_recovery.title")}),(0,X.jsx)(Jc,{children:i18n.t("password_recovery.desc")}),(0,X.jsx)(eu,{visible:l,children:i18n.t("password_recovery.error")}),(0,X.jsx)(Zc,{autoFocus:!0,textContentType:"username",autoComplete:"username",keyboardType:"email-address",autoCapitalize:"none",testID:"email-address-input",placeholder:i18n.t("password_recovery.email"),value:r,onChangeText:e=>s({type:tu,value:e})})]})}),o&&(0,X.jsx)(Vc,{title:i18n.t("password_recovery.success"),messageTestID:"password-recovery-success",cta:i18n.t("sign_in.back"),onClose:e})]})};au.propTypes={onClose:ze().func.isRequired};const su=au,ru=(e,t,n)=>{if(!n)return(window.location.href=e)&&e;window.open(e,"_blank","noopener,noreferrer")},lu=()=>{const e=(0,Ks.useHistory)();return(t,n={},i=!1)=>t.startsWith("http")?ru(t):e.push(t,n)},du=e=>t=>{const n=lu();return(0,X.jsx)(e,Object.assign({},t,{navigate:n}))};var cu=n(64642);const uu=()=>({isDesktop:(0,cu.useMediaQuery)({minWidth:992}),isMobile:(0,cu.useMediaQuery)({maxWidth:991})});var pu=n(59535);const mu=["country","style"],fu={de:n(23374),fr:n(33999),ch:n(11318),sg:n(84225),uk:n(70827),en:n(70827),it:n(44456),ie:n(4609)},gu=e=>{let{country:t,style:n={width:"30px",height:"18px"}}=e,i=(0,A.default)(e,mu);return(0,X.jsx)(pu.default,Object.assign({style:n,source:fu[t]},i))};gu.propTypes={country:ze().string.isRequired,style:ze().oneOfType([ze().array,ze().object])};const hu=gu,_u=(0,Ge.default)(qe.default).withConfig({displayName:"generic_picker__Container",componentId:"sc-1ozx43-0"})(["flex-direction:row;align-items:center;background-color:",";padding:5px 5px 4px 10px;border-radius:5px;margin-left:10px;"],Qe.WHITE),xu=(0,Ge.default)(hu).withConfig({displayName:"generic_picker__Flag",componentId:"sc-1ozx43-1"})(["width:18px;height:12px;margin-right:5px;"]),yu=(0,Ge.default)(Be.default).withConfig({displayName:"generic_picker__Label",componentId:"sc-1ozx43-2"})(["color:",";font-size:12px;font-weight:bold;padding-top:1px;"],Qe.TEXT_DARK),vu=(0,Ge.default)(Pa.default).attrs(()=>({name:"chevron-down",set:"MaterialCommunityIcons",size:20})).withConfig({displayName:"generic_picker__Chevron",componentId:"sc-1ozx43-3"})([""]),bu=["onPress","action","label"],wu=e=>{let{onPress:t,action:n,label:i=""}=e,o=(0,A.default)(e,bu);const{autoTrack:a}=mt();return(0,X.jsx)(ws.default,Object.assign({onPress:()=>{a(n,i),t()}},o))};wu.propTypes={onPress:qc.default.func.isRequired,action:qc.default.string.isRequired,label:qc.default.string};const Cu=wu,ju=(0,Ge.default)(qe.default).withConfig({displayName:"dropdown__DropdownContainer",componentId:"sc-55njpl-0"})(["position:absolute;top:32px;left:0;right:0;background-color:",";border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:5px;border-bottom-right-radius:5px;padding:0 10px;z-index:10;",""],Qe.WHITE,({hasBorder:e})=>e?`\n      border-width: 1px;\n      border-color: ${Qe.GRAY_BORDER};\n    `:`\n      border-top-width: 1px;\n      border-top-color: ${Qe.GRAY_BORDER};\n  `),Iu=(0,Ge.default)(Cu).withConfig({displayName:"dropdown__DropdownOption",componentId:"sc-55njpl-1"})(["flex-direction:row;align-items:center;padding:10px 0;",""],({$last:e})=>!e&&`\n    border-bottom-width: 1px;\n    border-bottom-color: ${Qe.GRAY_BORDER};\n  `),Tu=(0,Te.observer)(({entries:e,onSelect:t,hasBorder:n,testID:i="GenericPicker:dropdown"})=>(0,X.jsx)(ju,{hasBorder:n,children:e.map((n,o)=>(0,X.jsx)(Iu,{$last:o===e.length-1,onPress:()=>t(n.key),action:`Click to select ${n.key}`,label:`in ${i}`,children:"string"===typeof n.label?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(xu,{country:n.label}),(0,X.jsx)(yu,{children:n.label.toUpperCase()})]}):n.label},n.key))})),Eu=({visible:e,onClose:t,hasBorder:n=!1})=>{const{session:{availableLocales:i,updateLocale:o}}=lt(),{autoTrack:a}=mt();return e?(0,X.jsx)(Tu,{testID:"LanguagePicker:Dropdown",hasBorder:n,visible:e,onSelect:e=>
1622{a(`User changed language to ${e}`),o(e),t(e)},entries:i.map(e=>({key:e,label:e.slice(-2)}))}):null};Eu.propTypes={visible:ze().bool,onClose:ze().func,hasBorder:ze().bool};const Nu=(0,Te.observer)(Eu),ku=(0,Ge.default)(hu).withConfig({displayName:"modal__Flag",componentId:"sc-17omy3q-0"})(["width:25px;height:15px;margin-right:10px;"]),Ru=(0,Ge.default)(Be.default).withConfig({displayName:"modal__ModalTextCountry",componentId:"sc-17omy3q-1"})(["font-size:16px;font-weight:500;color:",";margin-left:10px;flex:1;"],Qe.TEXT_LIGHT),Su=(0,Ge.default)(gs).withConfig({displayName:"modal__PickerModal",componentId:"sc-17omy3q-2"})(["flex:1;flex-direction:row;align-items:flex-end;"]),Au=(0,Ge.default)(qe.default).withConfig({displayName:"modal__Container",componentId:"sc-17omy3q-3"})(["background-color:",";flex:1;border-radius:5px;padding:48px 16px ","px 16px;"],Qe.WHITE,({theme:e})=>e.insets.bottom+16),Pu=(0,Ge.default)(Cu).withConfig({displayName:"modal__Close",componentId:"sc-17omy3q-4"})(["position:absolute;top:16px;right:16px;"]),Du=(0,Ge.default)(Be.default).withConfig({displayName:"modal__ModalHeader",componentId:"sc-17omy3q-5"})(["font-size:24px;font-weight:500;color:",";margin-bottom:16px;"],Qe.TEXT_DARK),Mu=(0,Ge.default)(Cu).withConfig({displayName:"modal__ModalOption",componentId:"sc-17omy3q-6"})(["flex-direction:row;align-items:center;padding:16px 0;margin:0 8px;",""],({$last:e})=>!e&&`\n    border-bottom-width: 1px;\n    border-bottom-color: ${Qe.GRAY_BORDER};\n  `),Ou=(0,Ge.default)(qe.default).withConfig({displayName:"modal__ModalOptionCheck",componentId:"sc-17omy3q-7"})(["width:20px;height:20px;border-radius:10px;border-width:1px;border-color:",";background-color:",";align-items:center;justify-content:center;"],e=>e.$checked?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_3,e=>e.$checked?Qe.GREEN_SUMMER_GRASS:Qe.WHITE),zu=(0,Ge.default)(qe.default).withConfig({displayName:"modal__ModalButtonContainer",componentId:"sc-17omy3q-8"})(["margin-top:24px;"]),Lu=({isVisible:e,headerLabel:t,submitLabel:n,entries:i,selected:o,onSelect:a,onSubmit:s,onClose:r,testID:l="GenericPicker:Modal"})=>(0,X.jsx)(Su,{isVisible:e,onClose:r,style:{margin:0},testID:l,children:(0,X.jsxs)(Au,{children:[(0,X.jsx)(Pu,{onPress:r,action:"Close the Modal",label:`in ${l}`,children:(0,X.jsx)(Pa.default,{name:"close",set:"MaterialCommunityIcons",size:28,color:Qe.TEXT_LIGHT})}),(0,X.jsx)(Du,{children:t}),i.map((e,t)=>(0,X.jsxs)(Mu,{$last:t===i.length-1,action:`Click to select ${e.key}`,label:`in ${l}`,onPress:()=>{a(e.key)},testID:`${l}:${e.key}`,children:[(0,X.jsx)(ku,{country:e.flag}),(0,X.jsx)(Ru,{children:e.label}),(0,X.jsx)(Ou,{$checked:e.key===o,children:e.key===o&&(0,X.jsx)(Pa.default,{name:"check-bold",set:"MaterialCommunityIcons",size:12,color:Qe.WHITE})})]},e.key)),(0,X.jsx)(zu,{children:(0,X.jsx)(ms,{onPress:s,stretched:!0,centered:!0,testID:`${l}:Submit`,children:n})})]})});Lu.propTypes={isVisible:ze().bool.isRequired,selected:ze().string,onSelect:ze().func.isRequired,onSubmit:ze().func.isRequired,onClose:ze().func.isRequired,headerLabel:ze().str
1622ing.isRequired,submitLabel:ze().string.isRequired,entries:ze().arrayOf(ze().shape({key:ze().string.isRequired,flag:ze().string.isRequired,label:ze().string.isRequired})).isRequired,testID:ze().string};const qu=(0,Te.observer)(Lu),Bu=({visible:e,onClose:t})=>{const{session:{locale:n,updateLocale:i,availableLocales:o}}=lt(),{autoTrack:a}=mt(),[s,r]=(0,K.useState)(n);return(0,X.jsx)(qu,{testID:"LanguagePicker:Modal",isVisible:e,entries:o.map(e=>({key:e,flag:e.slice(-2),label:i18n.t(`language_list.${e}`)})),selected:s,onSelect:r,onSubmit:()=>{a(`User changed language to ${s}`,"in LanguagePicker:Modal"),i(s),t()},onClose:()=>{r(n),t()},headerLabel:i18n.t("applicant_funnel.welcome.language_picker.header"),submitLabel:i18n.t("applicant_funnel.welcome.language_picker.save")})};Bu.propTypes={visible:ze().bool.isRequired,onClose:ze().func.isRequired};const Gu=(0,Te.observer)(Bu),Uu=({borderOnDropdown:e=!1})=>{const{session:{availableLocales:t,locale:n}}=lt(),[i,o]=(0,K.useState)(!1),{isDesktop:a}=uu(),s=n.slice(-2);return t.length<2?null:(0,X.jsx)(Cu,{action:"Click on the dropdown to change the language",onPress:()=>o(!i),testID:"LanguagePicker:Change",children:(0,X.jsxs)(_u,{children:[(0,X.jsx)(xu,{country:s}),(0,X.jsx)(yu,{children:s.toUpperCase()}),(0,X.jsx)(vu,{}),a?(0,X.jsx)(Nu,{visible:i,onClose:()=>o(!1),hasBorder:e}):(0,X.jsx)(Gu,{visible:i,onClose:()=>o(!1)})]})})};Uu.propTypes={borderOnDropdown:ze().bool};const $u=(0,Te.observer)(Uu),Fu=18,Hu=16;var Wu=n(98834);const Vu=["color"],Ku=e=>{let{color:t=Qe.GREEN_GROWN_UP_GREEN}=e,n=(0,A.default)(e,Vu);return(0,X.jsxs)(Wu.default,Object.assign({width:70,height:31,viewBox:"0 0 70 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,X.jsx)(Wu.Path,{d:"M44.9494 3.79318H47.5783C47.6848 3.79318 47.7831 3.71952 47.7994 3.61313L48.1844 1.82903C48.2171 1.68991 48.1025 1.55078 47.9632 1.55078H45.3343C45.2279 1.55078 45.1296 1.62444 45.1132 1.73083L44.7283 3.51493C44.6955 3.65405 44.8102 3.79318 44.9494 3.79318Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M68.955 5.31046H67.0796H66.6865H66.6373C66.4735 5.31046 66.3343 5.44959 66.3343 5.61327V5.62145C66.3343 5.88334 66.0477 6.04702 65.8266 5.91607C65.4908 5.71966 65.1468 5.55598 64.8028 5.44959C64.5817 5.37594 64.3934 5.35957 64.0822 5.35957C61.9692 5.35957 60.1757 6.80812 59.4468 11.0392C59.2912 11.8822 59.2175 12.7006 59.2175 13.4126C59.2175 13.478 59.2175 13.5517 59.2257 13.6172C59.2338 13.7645 59.152 13.8954 59.0127 13.9527C58.8571 14.0182 58.5377 14.0509 58.3412 14.0509C57.5058 14.0509 57.2683 13.7317 57.2683 13.2571C57.2683 13.0443 57.3093 12.8069 57.3748 12.5696L58.2593 8.48583C58.3002 8.31397 58.3002 8.14211 58.3002 7.97024C58.3002 6.53805 56.9899 5.29409 55.8269 5.29409C55.139 5.29409 54.4265 5.56417 53.7467 5.96518C53.4929 6.11249 53.1817 5.93244 53.1817 5.63782V5.62145C53.1817 5.44141 53.0342 5.28591 52.8459 5.28591H50.4463C50.2825 5.28591 50.1515 5.40049 50.1105 5.55598L48.489 13.1752C48.4726 13.2489 48.4316 13.3143 48.3743 13.3553C47.8829 13.7399 47.2441 14.0345 46.8183 14.0345C45.9584 14.0345 45.7454 13.6908 45.7454 13.2243C45.7454 13.0361 45.7864 12.7988 45.8273 12.5614L47.2933 5.67874C47.3342 5.48233 47.1868 5.29409 46.9821 5.29409H44.5579C44.3941 5.29409 44.2631 5.40867 44.2221 5.56417L42.7316 12.5614C42.6988 12.7087 42.6743 12.856 42.6579 12.987C42.6497 13.0688 42.6006 13.1425 42.5351 13.1916C41.9782 13.6499 41.4131 14.0264 40.9217 14.0264C40.0863 14.0264 39.8488 13.7072 39.8488 13.2325C39.8488 13.0606 39.8898 12.8724 39.9553 12.5451L42.2157 1.98779C42.2566 1.79137 42.1092 1.60314 41.9045 1.60314H39.4803C39.3165 1.60314 39.1855 1.71772 39.1445 1.87321L36.8514 12.5451C36.8187 12.6924 36.7941 12.8315 36.7777 12.9624C36.7613 13.0606 36.704 13.1425 36.6303 13.208C36.0652 13.6663 34.6238 14.2719 34.1488 14.2719C34.1079 14.2719 34.0587 14.2719 34.0178 14.2719C34.7139 13.298 35.2544 11.8494 35.5492 9.79526C35.6311 9.23875 35.6803 8.74772 35.6803 8.2976C35.6803 6.09612 34.6238 5.30228 32.388 5.30228C32.3553 5.30228 32.3225 5.30228 32.2979 5.30228C31.9458 5.30228 31.7247 5.42504 31.4216 5.58872C31.2824 5.66237 31.004 5.646 30.9876 5.50688C30.9876 5.37593 30.8811 5.27773 30.7583 5.27773H30.6354H28.1212C27.9902 5.27773 27.8755 5.36775 27.8509 5.49869L26.2621 12.9461C26.2458 13.0034 26.213 13.0606 26.172 13.1016C25.5824 13.5926 25.1811 14.0182 24.6651 14.0182C23.8298 14.0182 23.5923 13.699 23.5923 13.2243C23.5923 13.0525 23.6332 12.8642 23.6988 12.5369L25.9673 1.9796C26.0083 1.80774 25.869 1.64406 25.697 1.64406H23.1746C23.0436 1.64406 22.9289 1.73408 22.9044 1.86503L20.7587 11.8494C20.7505 11.874 20.7423 11.9067 20.7259 11.9313C19.9069 13.3716 18.2526 14.4601 17.2698 14.4601C16.4345 14.4601 15.5091 14.0345 15.5091 12.6187C15.5091 12.4141 15.5254 12.1768 15.55 11.9149C15.5664 11.7921 15.6565 11.6857 15.7793 11.6694C17.8022 11.342 20.4311 9.86073 20.4311 7.34008C20.4311 5.84242 19.4401 5.11405 17.6793 5.11405C14.6901 5.11405 13.306 7.89659 12.8228 10.4172C12.4052 10.2536 12.0776 10.0244 11.7746 9.65613C11.144 8.88684 11.234 8.30578 11.234 8.30578L12.9948 0.391918C13.0358 0.195504 12.8884 0.00727461 12.6836 0.00727461H10.2595C10.1121 0.00727461 9.98102 0.113664 9.94826 0.260975L8.58877 6.58716L8.55601 6.7181C8.53144 6.80812 8.45773 6.88178 8.36764 6.90633C7.42583 7.13548 6.27108 7.29916 5.24737 7.1273C5.09177 7.10275 4.96892 6.98817 5.00168 6.83268L6.37755 0.391918C6.4185 0.195504 6.27108 0.00727461 6.06634 0.00727461C5.7797 0.00727461 4.14995 -0.00909326 3.75685 0.00727461C3.4784 0.0154585 3.46202 0.293711 3.42926 0.432838L0.00596728 15.7286C-0.0267915 15.8677 0.0796725 15.9987 0.218897 15.9987H2.87236C2.97883 15.9987 3.06891 15.925 3.08529 15.8268L4.46116 9.36151C4.49392 9.27149 4.58401 9.20602 4.68228 9.19783C5.64867 9.15691 6.88531 8.82956 7.81075 8.55949C7.96635 8.51038 8.12196 8.64132 8.11377 8.79682L6.62324 15.7286C6.59048 15.8677 6.69695 15.9987 6.83618 15.9987H9.44869C9.55515 15.9987 9.64524 15.925 9.66162 15.8268L10.7427 10.3436C10.7427 10.3436 11.0375 10.6546 11.1521 10.7528C11.7746 11.2684 
162212.053 11.2602 12.6509 11.4975C12.6099 11.8903 12.5935 12.2586 12.5935 12.6023C12.5935 14.4437 13.7073 15.9987 15.7711 15.9987C17.6875 15.9987 19.2599 14.9675 20.4556 13.609C20.4556 13.6335 20.4556 13.6499 20.4556 13.6744C20.4556 15.2785 21.463 16.0069 23.1173 16.0069C23.8462 16.0069 24.6488 15.4667 25.4923 14.7711C25.697 14.6074 25.8608 14.7875 25.8117 15.0412L25.0091 18.8467L24.8453 19.6242C24.8044 19.8206 24.9518 20.0088 25.1565 20.0088H27.5889C27.7363 20.0088 27.8673 19.9024 27.9001 19.7551L28.0802 18.9122L28.7027 16.0314C28.7928 15.524 28.9975 15.434 29.1613 15.5158C29.6772 15.7941 30.2096 15.9496 30.7665 15.9659C31.1923 16.0069 32.0441 16.015 32.56 15.9578C33.5428 15.8432 34.9023 15.4831 35.8605 14.812C36.36 14.4601 36.7531 14.4192 36.8842 14.6401C37.2281 15.5649 38.1208 15.9987 39.3902 15.9987C40.2256 15.9987 41.2575 15.2867 42.1993 14.4519C42.3795 14.2882 42.6579 14.3701 42.7398 14.5992C43.0756 15.5567 43.9928 15.9987 45.2786 15.9987C45.9092 15.9987 46.6545 15.5977 47.3834 15.033C47.67 14.812 48.0795 15.0657 48.0058 15.4258L47.973 15.5895C47.9321 15.8023 48.0877 15.9987 48.3088 15.9987H50.7084C50.8722 15.9987 51.0032 15.8841 51.0442 15.7286L52.7886 7.50376C52.8049 7.41373 52.8623 7.3319 52.9442 7.28279C53.3455 7.03727 53.7058 6.91452 54.1726 6.91452C54.7541 6.91452 55.1636 7.40555 55.1636 8.17484C55.1636 8.3467 55.139 8.53493 55.098 8.73135L54.2791 12.5778C54.1972 12.987 54.148 13.3225 54.148 13.6663C54.148 15.2703 55.139 15.9987 56.8097 15.9987C57.555 15.9987 58.4394 15.5404 59.111 14.9511C59.2748 14.812 59.5205 14.8529 59.627 15.033C60.0119 15.6631 60.7162 16.1296 61.8791 16.1296C62.5507 16.1296 63.1485 15.9496 63.6727 15.6795C63.9265 15.5404 64.2459 15.7695 64.1968 16.0887C64.1395 16.4406 63.9265 17.4309 63.9265 17.4309C63.8447 17.8155 63.6153 18.0856 63.2304 18.0856C63.2304 18.0856 62.436 18.0856 62.3705 18.0774C61.9037 18.0201 62.5916 17.3327 62.0102 17.1444C61.9528 17.1281 61.7727 17.1281 61.6171 17.1281C61.2813 17.1281 60.88 17.1362 60.8718 17.1281C60.7817 17.1362 60.7244 17.169 60.6834 17.2263C60.6343 17.2836 60.6015 17.349 60.5933 17.4227C60.5524 17.6109 60.4541 18.0774 60.4541 18.0774C60.2002 19.0677 61.2158 19.9924 62.4278 19.9924H64.164C65.499 19.9761 66.2606 19.2313 66.5391 17.9219L69.2744 5.71966C69.3317 5.50688 69.168 5.31046 68.955 5.31046ZM15.8285 10.3108C16.3117 8.38762 17.2535 6.25162 18.3836 6.25162C19.0306 6.25162 19.1371 6.99635 19.1371 7.44647C19.1207 8.86229 17.9005 10.4254 16.1315 10.6464C15.9431 10.6709 15.7875 10.4991 15.8285 10.3108ZM32.8221 10.0817C32.1096 13.478 31.5936 14.4028 30.5208 14.4028C30.2178 14.4028 29.7591 14.4028 29.3005 14.1327C29.194 14.0755 29.1449 13.9527 29.1695 13.8299L30.6518 6.93907C30.6682 6.86541 30.7091 6.80812 30.7665 6.7672C31.1432 6.52987 31.5199 6.38256 31.8966 6.38256C32.5846 6.38256 33.1005 6.63626 33.1005 7.92114C33.1005 8.42854 33.0104 9.14054 32.8221 10.0817ZM65.802 7.40555L64.4016 13.9036C64.0822 14.1737 63.7464 14.3537 63.4352 14.3537C62.4934 14.3537 61.8627 14.0345 61.8627 13.0034C61.8627 12.9788 61.8627 12.9543 61.8627 12.9297C61.8955 12.4796 61.9856 11.9313 62.1166 11.2602C62.8291 7.86385 63.3451 6.93907 64.4179 6.93907C64.7455 6.93907 65.2533 6.93907 65.7447 7.27461C65.7938 7.30734 65.8184 7.35645 65.802 7.40555Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M17.7028 26.0491C17.367 25.9018 16.9821 25.8281 16.5317 25.8281H14.4023V31.0004H15.3605V29.5109H16.5317C16.9821 29.5109 17.367 29.4372 17.7028 29.2899C18.0386 29.1426 18.2925 28.9298 18.4644 28.6516C18.6446 28.3733 18.7265 28.046 18.7265 27.6695C18.7265 27.293 18.6364 26.9657 18.4644 26.6874C18.2925 26.4092 18.0386 26.1964 17.7028 26.0491ZM17.4407 28.4224C17.2278 28.6025 16.9084 28.6925 16.4907 28.6925H15.3687V26.6383H16.4907C16.9084 26.6383 17.2278 26.7284 17.4407 26.9084C17.6537 27.0885 17.7683 27.3422 17.7683 27.6695C17.7683 27.9969 17.6618 28.2506 17.4407 28.4224Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M21.7751 25.8281L19.4492 31.0004H20.4402L20.9479 29.8055H23.5359L24.0518 31.0004H25.0592L22.7251 25.8281H21.7751ZM21.2755 29.0444L22.2419 26.7856L23.2165 29.0444H21.2755Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M30.5027 28.6683C30.6911 28.3901 30.7894 28.0545 30.7894 27.6617C30.7894 27.2852 30.6993 26.9579 30.5191 26.6796C30.3389 26.4014 30.0851 26.1886 29.7575 26.0413C29.4217 25.894 29.0368 25.8203 28.5864 25.8203H26.457V30.9926H27.4152
1622V29.4867H28.5864C28.6764 29.4867 28.742 29.4867 28.7829 29.4785L29.8394 30.9926H30.8713L29.6838 29.2903C30.0359 29.1594 30.3062 28.9466 30.5027 28.6683ZM28.5372 28.7011H27.4152V26.6387H28.5372C28.9549 26.6387 29.2743 26.7287 29.4872 26.9088C29.7002 27.0888 29.8148 27.3425 29.8148 27.6699C29.8148 27.9972 29.7083 28.2509 29.4872 28.431C29.2743 28.611 28.9549 28.7011 28.5372 28.7011Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M31.8516 26.6383H33.5714V30.9922H34.5296V26.6383H36.2412V25.8281H31.8516V26.6383Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M41.3554 29.3227L38.5053 25.8281H37.7109V30.9922H38.6609V27.4976L41.5191 30.9922H42.3054V25.8281H41.3554V29.3227Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M45.3961 28.7662H47.8939V27.9723H45.3961V26.6301H48.2133V25.8281H44.4297V30.9922H48.3116V30.1902H45.3961V28.7662Z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M54.1824 28.6683C54.3708 28.3901 54.4691 28.0545 54.4691 27.6617C54.4691 27.2852 54.379 26.9579 54.1988 26.6796C54.0186 26.4014 53.7648 26.1886 53.4372 26.0413C53.1014 25.894 52.7165 25.8203 52.266 25.8203H50.1367V30.9926H51.0949V29.4867H52.266C52.3561 29.4867 52.4216 29.4867 52.4626 29.4785L53.5191 30.9926H54.551L53.3635 29.2903C53.7156 29.1594 53.9859 28.9466 54.1824 28.6683ZM52.2169 28.7011H51.0949V26.6387H52.2169C52.6346 26.6387 52.954 26.7287 53.1669 26.9088C53.3798 27.0888 53.4945 27.3425 53.4945 27.6699C53.4945 27.9972 53.388 28.2509 53.1669 28.431C52.954 28.611 52.6346 28.7011 52.2169 28.7011Z",fill:Qe.GREEN_GROWN_UP_GREEN})]}))};Ku.propTypes={color:ze().string};const Yu=Ku,Xu=(0,Ge.default)(qe.default).withConfig({displayName:"login_header__Container",componentId:"sc-ip4b1b-0"})(["width:100%;align-items:center;height:60px;flex-direction:row;justify-content:space-between;padding-left:","px;padding-right:","px;background-color:",";z-index:1;",""],Fu,Fu,Qe.GREEN_WINTER_MIST,e=>`\n    padding-top: ${e.paddingTop};\n    height: ${60+e.paddingTop};\n  `),Zu=(0,Ge.default)(qe.default).withConfig({displayName:"login_header__BaseRow",componentId:"sc-ip4b1b-1"})(["flex-direction:row;align-items:center;"]),Qu=(0,Ge.default)(Zu).withConfig({displayName:"login_header__HeaderRow",componentId:"sc-ip4b1b-2"})(["justify-content:flex-end;"]),Ju=({children:e})=>{const t=(0,Re.useSafeAreaInsets)();return(0,X.jsxs)(Xu,{paddingTop:t.top,children:[(0,X.jsx)(Yu,{}),(0,X.jsx)(Qu,{children:e})]})};Ju.propTypes={children:qc.default.node};const ep=Ju,tp=({visible:e,onClose:t})=>{const{session:{country:n,setCountry:i}}=lt(),{autoTrack:o}=mt(),[a,s]=(0,K.useState)(n);return(0,X.jsx)(qu,{testID:"CountryPicker:Modal",isVisible:e,entries:Bs.map(e=>({key:e,flag:e,label:i18n.t(`country_selector.${e}`)})),selected:a,onSelect:s,onSubmit:()=>{o(`User changed country to ${a}`,"in CountryPicker:Modal"),i(a),t()},onClose:()=>{s(n),t()},headerLabel:i18n.t("country_selector.header"),submitLabel:i18n.t("country_selector.submit")})};tp.propTypes={visible:ze().bool.isRequired,onClose:ze().func.isRequired};const np=(0,Te.observer)(tp),ip=({borderOnDropdown:e=!1})=>{const{session:{country:t}}=lt(),[n,i]=(0,K.useState)(!1);return(0,X.jsx)(Cu,{action:"Click on the dropdown to change the country",onPress:()=>i(!n),children:(0,X.jsxs)(_u,{children:[(0,X.jsx)(xu,{country:t}),(0,X.jsx)(yu,{children:i18n.t(`country_selector.${t}`)}),(0,X.jsx)(vu,{}),(0,X.jsx)(np,{visible:n,onClose:()=>i(!1)})]})})};ip.propTypes={borderOnDropdown:ze().bool};(0,Te.observer)(ip);const op="NunitoSans";var ap=n(86737),sp=n(64532),rp=n(8076);const lp=["options","style","itemStyle","dropdownIconColor","selectedValue","fullWidth","defaultEmpty"],dp=(0,Ge.default)(qe.default).withConfig({displayName:"indexweb__PickerContainer",componentId:"sc-pa1oa-0"})(["position:relative;"]),cp=(0,Ge.default)(Pa.default).attrs(e=>Object.assign({name:"expand-more",size:20},e)).withConfig({displayName:"indexweb__ChevronIcon",componentId:"sc-pa1oa-1"})(["position:absolute;right:","px;margin-top:10px;"],({$fullWidth:e})=>e?0:5),up=K.forwardRef((e,t)=>{let{options:n,style:i,itemStyle:o,dropdownIconColor:a,selectedValue:s,fullWidth:r=!1,defaultEmpty:l=!1}=e,d=(0,A.default)(e,lp);const c=Object.assign({backgroundColor:"transparent",padding:10,paddingLeft:r?0:10,paddingRight:r?0:15,borderWidth:0,zIndex:10,outline:"none"}
1622,sp.default.flatten(o));return(0,X.jsxs)(dp,{style:i,children:[(0,X.jsxs)(rp.Picker,Object.assign({},d,{selectedValue:s,style:c,ref:t,children:[l&&(0,X.jsx)(rp.Picker.Item,{label:"",value:"",enabled:!1}),n.map(({label:e,value:t})=>(0,X.jsx)(rp.Picker.Item,{label:e,value:t},t))]})),(0,X.jsx)(cp,{color:a||Qe.TEXT_DARK,$fullWidth:r})]})});up.propTypes={options:qc.default.arrayOf(qc.default.shape({label:qc.default.string.isRequired,value:qc.default.any})),selectedValue:qc.default.any,style:qc.default.any,itemStyle:qc.default.any,dropdownIconColor:qc.default.string,fullWidth:qc.default.bool,defaultEmpty:qc.default.bool};const pp=up,mp=(0,Ge.default)(qe.default).withConfig({displayName:"input__Container",componentId:"sc-y7l62a-0"})([""]),fp=(0,Ge.default)(qe.default).withConfig({displayName:"input__Box",componentId:"sc-y7l62a-1"})(["min-height:60px;padding:12px 16px;flex-direction:row;align-items:center;justify-content:center;border-radius:8px;border:solid 1px ",";background:",";"],({$focused:e,$error:t})=>t?Qe.CRIMSON_2:e?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER,({$disabled:e})=>e?"#F8F8F8":Qe.WHITE),gp=(0,Ge.default)(qe.default).withConfig({displayName:"input__Field",componentId:"sc-y7l62a-2"})(["flex:1;flex-direction:column;align-items:flex-start;"]),hp=(0,Ge.default)(Uc.default).withConfig({displayName:"input__StyledInput",componentId:"sc-y7l62a-3"})(["height:28px;width:100%;font-size:14px;line-height:16px;color:",";",";font-family:",";padding:0;"],Qe.TEXT_MEDIUM,"outline-width: 0;",op),_p=(0,Ge.default)(pp).withConfig({displayName:"input__StyledPicker",componentId:"sc-y7l62a-4"})(["height:28px;width:100%;flex:1;font-size:14px;line-height:16px;color:",";padding:0;",";"],Qe.TEXT_MEDIUM,"outline-width: 0;"),xp=(0,Ge.default)(Be.default).withConfig({displayName:"input__Label",componentId:"sc-y7l62a-5"})(["color:",";font-size:12px;"],({$error:e})=>e?Qe.CRIMSON_2:Qe.TEXT_DARK),yp=(0,Ge.default)(Be.default).withConfig({displayName:"input__ErrorText",componentId:"sc-y7l62a-6"})(["color:",";font-size:12px;flex-wrap:wrap;flex-shrink:1;margin-top:4px;"],Qe.CRIMSON_1),vp=(0,Ge.default)(ws.default).withConfig({displayName:"input__SecureInputAction",componentId:"sc-y7l62a-7"})(["padding:0px 8px;"]),bp=(0,K.forwardRef)(({value:e,onChange:t,label:n,options:i,disabled:o,readonly:a,required:s,textContentType:r,autoComplete:l,keyboardType:d,secure:c=!1,error:u,style:p,testID:m,autoCapitalize:f="sentences",onSubmitEditing:g,onPress:h,startAdornment:_,endAdornment:x,mask:y,placeholder:v},b)=>{const[w,C]=(0,K.useState)(c),j=(0,K.useRef)(null),I=b||j,T=`${n} ${s?"*":""}`,E=(0,K.useCallback)(()=>C(e=>!e),[]),[N,k]=(0,K.useState)(!1);if(y&&i)throw new Error("Input cannot have both mask and options");const R={};return(0,X.jsx)(ws.default,{onPress:()=>{h&&h(),!o&&!a&&I&&"current"in I&&I.current&&(I.current.focus(),"showPicker"in I.current&&I.current.showPicker())},focusable:!1,tabIndex:-1,testID:`Container:${m}`,children:(0,X.jsxs)(mp,{style:p,children:[(0,X.jsxs)(fp,{$disabled:o,$focused:N,$error:!!u,children:[_,(0,X.jsxs)(gp,{children:[(0,X.jsx)(xp,{$error:!!u,children:T}),i?(0,X.jsx)(_p,Object.assign({dropdownIconColor:Qe.TEXT_LIGHT,itemStyle:void 0,options:i,onValueChange:t,selectedValue:e,disabled:o||a,testID:m,defaultEmpty:!0,fullWidth:!0,ref:I},R)):(0,X.jsx)(hp,{ref:I,as:y?ap.default:Uc.default,mask:y,onSubmitEditing:g,textContentType:r,autoComplete:l,keyboardType:d,secureTextEntry:w,onChangeText:t,value:e,editable:!a&&!o,autoFocus:!1,testID:m,autoCapitalize:f,onFocus:()=>!o&&!a&&k(!0),onBlur:()=>k(!1),placeholder:v})]}),c&&!!e&&(0,X.jsx)(vp,{onPress:E,children:(0,X.jsx)(Pa.default,{name:w?"eye-off-outline":"eye-outline",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,size:20,color:Qe.GRAY_3})}),x]}),!!u&&(0,X.jsx)(yp,{testID:`ErrorLabel:${m}`,children:u})]})})}),wp=(0,Te.observer)(bp),Cp=["onPress","userFlow","action","objectName","properties"],jp=e=>{let{onPress:t,userFlow:n,action:i,objectName:o,properties:a={}}=e,s=(0,A.default)(e,Cp);const{autoTrackEnhanced:r}=mt();return(0,X.jsx)(ws.default,Object.assign({onPress:async()=>{await r({userFlow:n,userType:Ka,action:i,objectName:o,properties:a}),t()}},s))};const Ip=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1747_2861)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M19.021 10.214c0-.673-.06-1.32-.172-1.94H9.914v3.669h5.106a4.364 4.364 0 01-1.893 2.863v2.38h3.065c1.794-1.651 2.83-4.083 2.83-6.972z",fill:"#4285F4"}),(0,X.jsx)(Wu.Path,{d:"M9.911 19.485c2.562 0 4.709-.85 6.278-2.298l-3.065-2.38c-.85.569-1.937.905-3.213.905-2.47 0-4.562-1.669-5.308-3.911h-3.17v2.458a9.483 9.483 0 008.478 5.226z",fill:"#34A853"}),(0,X.jsx)(Wu.Path,{d:"M4.604 11.801A5.702 5.702 0 014.307 10c0-.626.107-1.234.297-1.803V5.738h-3.17a9.483 9.483 0 00-1.008 4.26c0 1.531.366 2.98 1.009 4.26l3.17-2.457z",fill:"#FBBC05"}),(0,X.jsx)(Wu.Path,{d:"M9.911 4.285c1.393 0 2.643.478 3.627 1.418l2.72-2.72C14.617 1.452 12.469.512 9.912.512a9.483 9.483 0 00-8.477 5.226l3.169 2.458c.746-2.242 2.837-3.911 5.308-3.911z",f
1622ill:"#EA4335"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1747_2861",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(.426 .512)",d:"M0 0H18.9731V18.9731H0z"})})})]}))},Tp=["onPress","disabled","children","loading"],Ep=(0,Ge.default)(Aa.default).attrs({color:Qe.TEXT_DARK,size:16}).withConfig({displayName:"google_auth_button__Spinner",componentId:"sc-1dwlp9y-0"})(["margin-left:10px;"]),Np=(0,Ge.default)(jp).withConfig({displayName:"google_auth_button__GoogleButton",componentId:"sc-1dwlp9y-1"})(["background-color:white;border:1px solid ",";height:45px;border-radius:7px;flex-direction:row;align-items:center;justify-content:center;padding:0px 12px;"],Qe.GRAY_BORDER),kp=(0,Ge.default)(Be.default).withConfig({displayName:"google_auth_button__GoogleButtonText",componentId:"sc-1dwlp9y-2"})(["color:black;font-size:17px;font-weight:500;margin-left:6px;line-height:20.4px;"]),Rp=e=>{let{onPress:t,disabled:n,children:i,loading:o}=e,a=(0,A.default)(e,Tp);const{session:{countryConfig:{supportGoogleSignIn:s}}}=lt();return s?(0,X.jsxs)(Np,Object.assign({},a,{onPress:t,disabled:n||o,children:[(0,X.jsx)(Ip,{}),(0,X.jsx)(kp,{children:i}),o&&(0,X.jsx)(Ep,{})]})):null};var Sp=n(96865),Ap=n(41100),Pp=n(2545);Pp.maybeCompleteAuthSession();const Dp=({onSuccess:e,onCancel:t,onError:n})=>{const i=(0,Ks.useLocation)(),[o,a,s]=Sp.useAuthRequest({webClientId:E("EXPO_PUBLIC_GOOGLE_OAUTH_WEB_CLIENT_ID")||"",iosClientId:E("EXPO_PUBLIC_GOOGLE_OAUTH_IOS_CLIENT_ID"),androidClientId:E("EXPO_PUBLIC_GOOGLE_OAUTH_ANDROID_CLIENT_ID"),redirectUri:(0,Ap.makeRedirectUri)({path:i.pathname}),scopes:["profile","email"]}),r=(0,K.useCallback)(async i=>{if("success"===(null===i||void 0===i?void 0:i.type)){const t=i.authentication.accessToken;console.log(t),e(t)}["dismiss","cancel"].includes(null===i||void 0===i?void 0:i.type)&&t(),"error"===(null===i||void 0===i?void 0:i.type)&&n(i.error)},[]),l=(0,K.useCallback)(()=>{o&&s()},[o]);return(0,K.useEffect)(()=>{r(a)},[a]),{start:l,isReady:!!o}},Mp=xt`
1623  mutation ssoGoogleWebSignIn($accessToken: String!, $preferredLanguage: String, $device: DeviceInputType) {
1624    ssoGoogleWebSignIn(accessToken: $accessToken, preferredLanguage: $preferredLanguage, device: $device) {
1625      success
1626      provider {
1627        id
1628      }
1629      newlyCreated
1630      errors {
1631        code
1632        message
1633      }
1634      deviceUniqueIdentifier
1635    }
1636  }
1637`,Op=(xt`
1638  mutation ssoGoogleNativeSignIn($accessToken: String!, $preferredLanguage: String, $device: DeviceInputType) {
1639    ssoGoogleNativeSignIn(accessToken: $accessToken, preferredLanguage: $preferredLanguage, device: $device) {
1640      success
1641      provider {
1642        id
1643      }
1644      newlyCreated
1645      accessToken
1646      refreshToken
1647      errors {
1648        code
1649        message
1650      }
1651      deviceUniqueIdentifier
1652    }
1653  }
1654`,xt`
1655  mutation ssoAppleNativeSignIn($identityToken: String!, $preferredLanguage: String, $firstname: String, $lastname: String, $device: DeviceInputType) {
1656    ssoAppleNativeSignIn(identityToken: $identityToken, preferredLanguage: $preferredLanguage, firstname: $firstname, lastname: $lastname, device: $device) {
1657        success
1658        provider {
1659          id
1660        }
1661        newlyCreated
1662        accessToken
1663        refreshToken
1664        errors {
1665          code
1666          message
1667        }
1668    }
1669  }
1670`,xt`
1671  mutation ssoAppleWebSignIn($identityToken: String!, $preferredLanguage: String, $firstname: String, $lastname: String, $device: DeviceInputType) {
1672    ssoAppleWebSignIn(identityToken: $identityToken, preferredLanguage: $preferredLanguage, firstname: $firstname, lastname: $lastname, device: $device) {
1673        success
1674        provider {
1675          id
1676        }
1677        newlyCreated
1678        errors {
1679          code
1680          message
1681        }
1682    }
1683  }
1684`),zp=({onError:e})=>{const{session:{setupAfterSsoLogin:t,locale:n,device:i,setDeviceUniqueIdentifier:o}}=lt(),{ssoGoogleWebSignIn:a}=(()=>{var e,t,n;const[i,{data:o,error:a,loading:s}]=(0,js.useMutation)(Mp,{context:{apiVersion:3}});return{ssoGoogleWebSignIn:e=>i({variables:e}).then(e=>e.data.ssoGoogleWebSignIn),success:null===o||void 0===o||null===(e=o.ssoGoogleWebSignIn)||void 0===e?void 0:e.success,provider:null===o||void 0===o||null===(t=o.ssoGoogleWebSignIn)||void 0===t?void 0:t.provider,errors:null===o||void 0===o||null===(n=o.ssoGoogleWebSignIn)||void 0===n?void 0:n.errors,error:a,loading:s}})();return{googleTokenSignIn:(0,K.useCallback)(async s=>{const{success:r,provider:l,newlyCreated:d,errors:c,deviceUniqueIdentifier:u}=await a({accessToken:s,preferredLanguage:n,device:i});if(r)return await o(u),await t(),{provider:l,newlyCreated:d};e(c&&c[0])},[n,e,a,t,i,o])}},Lp="SIGN_IN",qp="SIGN_UP",Bp="Z002",Gp=(e=Lp)=>{const{toast:{showToastMessage:t}}=lt(),{autoTrack:n,trackEvent:i}=mt(),[o,a]=(0,K.useState)(!1),[s,r]=(0,K.useState)(null),{googleTokenSignIn:l}=zp({onError:t=>{n(`User cannot ${e} with Google`),r(t),a(!1)}}),d=(0,K.useCallback)(async e=>{try{const{provider:t,newlyCreated:o}=await l(e)||{};o?i("applicationCreated",{applicantId:t.id}):n(`User successfully ${Lp} with Google`)}catch(o){console.log(o),t({message:i18n.t("provider.generic.error")})}finally{a(!1)}},[l,n,i,e,a,t]),c=(0,K.useCallback)(()=>a(!1),[a]),u=(0,K.useCallback)(()=>{n("User cannot authenticate with Google"),t({message:i18n.t("login_page.errors.error_sign_in_google")}),a(!1)},[a,t,n]),{start:p,isReady:m}=Dp({onSuccess:d,onCancel:c,onError:u});return{signOnGoogle:(0,K.useCallback)(async()=>{a(!0),p()},[p,a]),loading:o,error:s,isGoogleReady:m}};const Up=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:"24px",height:"44px",viewBox:"0 0 24 44",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsxs)(Wu.G,{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{fill:"#FFF",d:"M0 0H24V44H0z"}),(0,X.jsx)(Wu.Path,{d:"M12.234 16.988c.656 0 1.478-.443 1.967-1.035.444-.536.767-1.284.767-2.032 0-.102-.009-.203-.027-.287-.73.028-1.608.49-2.134 1.11-.416.47-.795 1.21-.795 1.967 0 .11.019.222.028.258.046.01.12.019.194.019zm-2.31 11.178c.896 0 1.294-.6 2.411-.6 1.137 0 1.386.582 2.384.582.98 0 1.635-.906 2.254-1.792.693-1.017.98-2.014.998-2.06-.065-.019-1.94-.786-1.94-2.938 0-1.866 1.478-2.707 1.56-2.772-.978-1.404-2.466-1.441-2.872-1.441-1.1 0-1.996.665-2.56.665-.609 0-1.413-.628-2.364-.628-1.81 0-3.65 1.497-3.65 4.323 0 1.756.684 3.613 1.525 4.814.72 1.016 1.349 1.847 2.254 1.847z",fill:"#000",fillRule:"nonzero"})]})}))}
1684,$p=["onPress","loading","disabled","style","children"],Fp=(0,Ge.default)(jp).withConfig({displayName:"apple_auth_button__ButtonContainer",componentId:"sc-9adtd0-0"})(["background-color:white;border:1px solid ",";height:46px;border-radius:7px;flex-direction:row;align-items:center;justify-content:center;padding:0px 12px;"],Qe.GRAY_BORDER),Hp=(0,Ge.default)(Be.default).withConfig({displayName:"apple_auth_button__ButtonText",componentId:"sc-9adtd0-1"})(["color:black;font-size:17px;font-weight:500;line-height:20.4px;"]),Wp=(0,Ge.default)(Aa.default).attrs({color:Qe.TEXT_DARK,size:16}).withConfig({displayName:"apple_auth_button__Spinner",componentId:"sc-9adtd0-2"})(["margin-left:10px;"]),Vp=(Kp=e=>{let{onPress:t,loading:n=!1,disabled:i=!1,style:o,children:a}=e,s=(0,A.default)(e,$p);const{session:{countryConfig:{supportAppleSignIn:r}}}=lt();return r?(0,X.jsxs)(Fp,Object.assign({},s,{onPress:t,disabled:i,style:o,children:[(0,X.jsx)(Up,{}),(0,X.jsx)(Hp,{children:a}),n&&(0,X.jsx)(Wp,{})]})):null},e=>(0,X.jsx)(Kp,Object.assign({},e)));var Kp,Yp=n(69163),Xp=n(36839);const Zp=({onError:e})=>{const{session:{setupAfterSsoLogin:t,locale:n,device:i,setDeviceUniqueIdentifier:o},toast:{showToastMessage:a}}=lt(),{ssoAppleWebSignIn:s}=(()=>{var e,t,n,i;const[o,{data:a,error:s,loading:r}]=(0,js.useMutation)(Op,{context:{apiVersion:3}});return{ssoAppleWebSignIn:e=>o({variables:e}).then(e=>e.data.ssoAppleWebSignIn),success:null===a||void 0===a||null===(e=a.ssoAppleWebSignIn)||void 0===e?void 0:e.success,provider:null===a||void 0===a||null===(t=a.ssoAppleWebSignIn)||void 0===t?void 0:t.provider,newlyCreated:null===a||void 0===a||null===(n=a.ssoAppleWebSignIn)||void 0===n?void 0:n.newlyCreated,errors:null===a||void 0===a||null===(i=a.ssoAppleWebSignIn)||void 0===i?void 0:i.errors,error:s,loading:r}})();return{appleTokenSignIn:(0,K.useCallback)(async({identityToken:r,firstname:l,lastname:d})=>{const{success:c,provider:u,newlyCreated:p,errors:m,deviceUniqueIdentifier:f}=await s({identityToken:r,preferredLanguage:n,firstname:l,lastname:d,device:i});if(c)return await o(f),await t(),{provider:u,newlyCreated:p};m?e(m[0]):a({message:i18n.t("sso.errors.error_sign_in_apple")})},[s,t,n,a,e,i,o])}},Qp=e=>{(0,Yp.useScript)(Yp.appleAuthHelpers.APPLE_SCRIPT_SRC);const{toast:{showToastMessage:t}}=lt(),{autoTrack:n,trackEvent:i}=mt(),[o,a]=(0,K.useState)(!1),[s,r]=(0,K.useState)(null),{appleTokenSignIn:l}=Zp({onError:t=>{n(`User cannot ${e} with Apple`),r(t),a(!1)}}),d=(0,Ks.useLocation)(),c=(0,K.useMemo)(()=>Xp.createURL(d.pathname,{scheme:"h2pa"}),[d]),u=(0,K.useCallback)(async()=>{a(!0);try{const{authorization:{id_token:e},user:t}=await(async({redirectURI:e})=>new Promise((t,n)=>{Yp.appleAuthHelpers.signIn({authOptions:{clientId:E("EXPO_PUBLIC_APPLE_OAUTH_WEB_CLIENT_ID")||"",scope:"name email",redirectURI:e,state:"state",usePopup:!0},onSuccess:t,onError:n})}))({redirectURI:c}),{firstName:o,lastName:a}=(null===t||void 0===t?void 0:t.name)||{},{provider:s,newlyCreated:r}=await l({identityToken:e,firstname:o,lastname:a})||{};r?i("applicationCreated",{applicantId:s.id}):n(`User successfully ${Lp} with Google`)}catch(s){"popup_closed_by_user"!==s.error&&(console.log(s),t({message:i18n.t("sso.errors.error_sign_in_apple")}))}finally{a(!1)}},[a,t,c,l]);return{signOnApple:u,loading:o,error:s}},Jp=(0,Ge.default)(qe.default).withConfig({displayName:"fullscreen_spinner__FullScreenSpinnerContainer",componentId:"sc-c6stb5-0"})(["flex:1;justify-content:center;align-items:center;background:",";"],Qe.GREEN_SUMMER_GRASS),em=()=>(0,X.jsx)(Jp,{children:(0,X.jsx)(Aa.default,{color:Qe.WHITE,size:"large"})});var tm=n(50576),nm=n(52846);const im=(0,Ge.default)(qe.default).withConfig({displayName:"recaptcha_notice__Container",componentId:"sc-1aedpbd-0"})(["margin:16px 0;"]),om=(0,Ge.default)(Be.default).withConfig({displayName:"recaptcha_notice__NoticeText",componentId:"sc-1aedpbd-1"})(["font-size:14px;color:",";"],Qe.GRAY_2),am=()=>(0,X.jsx)(im,{children:(0,X.jsx)(om,{children:i18n.t("recaptcha.notice.copy")})});var sm=n(98524);const rm=(...e)=>ne?{executeRecaptcha:null}:(0,sm.useGoogleReCaptcha)(...e),lm=Ge.default.View.withConfig({displayName:"paper__Paper",componentId:"sc-1rt2bsw-0"})(["border-radius:8px;background-color:",";padding:10px;",";",";"],Qe.WHITE,e=>e.elevation?`box-shadow: 0 ${e.elevation}px 10px rgba(0, 0, 0, ${.1*e.elevation})`:"",e=>e.rounded?"border-radius: 5px":""),dm=(0,Ge.default)(lm).withConfig({displayName:"offline_banner__Container",componentId:"sc-nxs53l-0"})(["flex-direction:row;align-self:center;align-items:center;padding:12px;margin:10px 0 5px;border-radius:22px;background:",";border-width:1px;border-color:",";position:absolute;z-index:1000;top:",";"],Qe.GOLD_4,Qe.GOLD_1,({$paddingTop:e})=>e?`${e}px`:"10px"),cm=(0,Ge.default)(Be.default).withConfig({displayName:"offline_banner__StyledText",componentId:"sc-nxs53l-1"})(["color:",";font-weight:bold;margin-left:5px;"],Qe.TEXT_DARK);function um({paddingTop:e}){return(0,X.jsxs)(dm,{elevation:2,$paddingTop:e,children:[(0,X.jsx)(Pa.default,{name:"wifi-off",set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,size:18}),(0,X.jsx)(cm,{children:i18n.t("offline_banner.text")})]})}um.propTypes={paddingTop:ze().number};const pm=um,mm=Ge.default.Image.withConfig({displayName:"logo__LogoImage",componentId:"sc-361mje-0"})(["width:100px;height:30px;margin-top:3px;"]),fm={white:n(42663),green:n(37637),whiteNew:n(35886)};function gm({onPress:e,color:t="green"}){return(0,X.jsx)(mm,{onPress:e,source:fm[t]})}
1684gm.propTypes={onPress:ze().func,color:ze().string};const hm=e=>(0,X.jsx)(cu.default,Object.assign({},e,{minWidth:992})),_m=e=>(0,X.jsx)(cu.default,Object.assign({},e,{maxWidth:991}));var xm=n(40800);const ym=["children","clamped"],vm=(0,Ge.default)(qe.default).withConfig({displayName:"counter__CounterContainer",componentId:"sc-ck2pv3-0"})(["position:absolute;top:3px;right:3px;background:",";border-radius:21px;width:21px;height:21px;align-items:center;justify-content:center;"],Qe.CRIMSON_2),bm=(0,Ge.default)(xm.Text).withConfig({displayName:"counter__CounterText",componentId:"sc-ck2pv3-1"})(["color:",";font-size:10px;font-weight:700;"],Qe.WHITE),wm=e=>{let{children:t,clamped:n=!0}=e,i=(0,A.default)(e,ym);return(0,X.jsx)(vm,Object.assign({},i,{children:(0,X.jsx)(bm,{children:n&&Number(t)&&Number(t)>99?"99":t})}))};wm.propTypes={clamped:qc.default.bool,children:qc.default.oneOfType([qc.default.number,qc.default.node])};const Cm=wm,jm=(0,Ge.default)(qe.default).withConfig({displayName:"menu_item__MenuItemContainer",componentId:"sc-1iawbli-0"})(["align-items:center;"]),Im=(0,Ge.default)(ts).withConfig({displayName:"menu_item__MenuItemContent",componentId:"sc-1iawbli-1"})(["flex-direction:row;padding:0 25px;"]),Tm=(0,Ge.default)(Cm).withConfig({displayName:"menu_item__StyledCounter",componentId:"sc-1iawbli-2"})(["position:static;margin-left:10px;"]),Em=(0,Ge.default)(Be.default).withConfig({displayName:"menu_item__MenuItemText",componentId:"sc-1iawbli-3"})([""," margin-top:4px;"],e=>"true"===e.active?`\n    color: ${Qe.GREEN_SUMMER_GRASS};\n    font-weight: 700;\n  `:`\n    color: ${Qe.TEXT_DARK};\n  `),Nm=({to:e,count:t=0,children:n,trackingObjectName:i})=>{const o=lu(),a=(0,Ks.useRouteMatch)(e),s=null!==a&&!0===a.isExact;return(0,X.jsx)(jm,{children:(0,X.jsxs)(Im,{onPress:()=>o(e),trackingUserFlow:La,trackingObjectName:i,trackingProperties:{source:"top navbar"},children:["string"===typeof n?(0,X.jsx)(Em,{active:s.toString(),children:n}):n,t?(0,X.jsx)(Tm,{children:t}):null]})})};Nm.propTypes={to:qc.default.string.isRequired,count:qc.default.oneOfType([qc.default.number,qc.default.node]),children:qc.default.node,trackingObjectName:qc.default.string.isRequired};const km=Nm;var Rm=n(79351),Sm=n.n(Rm);const Am={de_en:"en",de:"de"},Pm=(0,K.createContext)(),Dm=()=>(0,K.useContext)(Pm),Mm=(0,Te.observer)(e=>{const{session:{currentUser:t,intercomSettings:n,countryConfig:{shouldSeeIntercom:i}}}=lt(),[o,a]=(0,K.useState)(0);(0,K.useEffect)(()=>{i&&t?Sm()(Object.assign({app_id:E("EXPO_PUBLIC_INTERCOM_APP_ID"),region:"eu",email:t.email,phone:t.mobile,name:`${t.firstname} ${t.lastname}`,user_id:"production"===E("EXPO_PUBLIC_ENVIRONMENT")?t.id:`test-${t.id}`,hide_default_launcher:!0,user_type:"Provider",metro:t.metro,work_status:t.workStatus,language_override:Am[null===t||void 0===t?void 0:t.preferredLanguage],intercom_user_jwt:n.activeToken??void 0},n.activeFinToken&&{auth_tokens:{fin_jwt:n.activeFinToken}})):(0,Rm.shutdown)()},[t,i,n.activeToken,n.activeFinToken]),(0,K.useEffect)(()=>{(0,Rm.onUnreadCountChange)(e=>{a(e)})},[]),nr(()=>{i&&t&&n.fetch()},[i,t],!1);return(0,X.jsx)(Pm.Provider,Object.assign({value:{unreadConversationCount:o,openIntercomPage:()=>(0,Rm.showSpace)("home"),openIntercomArticle:e=>(0,Rm.showArticle)(e),updateLanguage:e=>(0,Rm.update)({language_override:Am[e]})}},e))});var Om=n(9771);const zm=(0,Ge.default)(qe.default).withConfig({displayName:"menu__MenuContainer",componentId:"sc-1rjkc29-0"})(["width:100%;flex-direction:row;flex:1;justify-content:flex-end;"]),Lm=({dashboardCount:e,offers:t,unreadMessages:n,showOffers:i,agencyChat:o,updateCounters:a})=>{const{unreadConversationCount:s}=Dm();return(0,Om.useSubscription)(Yn,{onData:({data:e})=>{var t,n;const i=null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.unreadMessageCountUpdated)||void 0===n?void 0:n.unreadCount;"undefined"!==typeof i&&a({unreadMessages:i})}}),(0,X.jsxs)(zm,{children:[(0,X.jsx)(km,{to:wi(),count:e,trackingObjectName:"Home",children:i18n.t("menu.home")}),i&&(0,X.jsx)(km,{to:"/provider/offers",count:t,trackingObjectName:"offers",children:i18n.t("menu.offers")}),(0,X.jsx)(km,{to:"/provider/chat",count:n+s,trackingObjectName:"chat",children:i18n.t("menu.chat")}
1684),(0,X.jsx)(km,{to:Vi(),trackingObjectName:"calendar",children:i18n.t("menu.calendar")}),(0,X.jsx)(km,{to:"/provider/more",trackingObjectName:"more",children:i18n.t("menu.more")})]})};Lm.propTypes={dashboardCount:qc.default.number,offers:qc.default.number,unreadMessages:qc.default.number,agencyChat:qc.default.bool,showOffers:qc.default.bool,updateCounters:qc.default.func.isRequired};const qm=(0,Te.inject)(({store:e})=>{var t,n,i;return{dashboardCount:e.session.counters.dashboardCount,offers:e.session.counters.offers,unreadMessages:e.session.counters.unreadMessages,agencyChat:null===(t=e.session.currentUser)||void 0===t||null===(n=t.agency)||void 0===n?void 0:n.featureFlagChat,showOffers:!(null!==(i=e.session.currentUser)&&void 0!==i&&i.agency)||e.session.currentUser.agency.featureFlagProviderCanSeeOffers,updateCounters:e.session.updateCounters}})((0,Te.observer)(Lm));var Bm=n(91525);const Gm=E("EXPO_PUBLIC_TITLE"),Um=({title:e})=>(0,X.jsx)(Bm.default,{defaultTitle:Gm,titleTemplate:`${Gm} - %s`,title:e});Um.propTypes={title:ze().str
1684ing};const $m=(0,Te.observer)(Um),Fm=(0,Ge.default)(qe.default).withConfig({displayName:"header__Container",componentId:"sc-1yu2v87-0"})(["width:100%;align-items:center;background-color:",";"," ",";"],e=>e.backgroundColor,e=>`\n    padding-top: ${e.paddingTop};\n    height: ${e.onlyPadding?1:60+e.paddingTop};\n  `,e=>e.secondary?`background-color: ${Qe.GREEN_SUMMER_GRASS};`:`\n      background-color: ${Qe.WHITE};\n      box-shadow: 0 0 5px rgba(87, 97, 105, 0.10);\n  `),Hm=(0,Ge.default)(qe.default).withConfig({displayName:"header__NodeContainer",componentId:"sc-1yu2v87-1"})(["width:50px;height:60px;justify-content:center;"]),Wm=(0,Ge.default)(qe.default).withConfig({displayName:"header__HeaderContent",componentId:"sc-1yu2v87-2"})(["flex-direction:row;align-items:center;"]),Vm=(0,Ge.default)(Be.default).withConfig({displayName:"header__Title",componentId:"sc-1yu2v87-3"})(["padding-left:5px;font-size:18px;color:",";"],Qe.TEXT_DARK),Km=(0,Ge.default)(qe.default).withConfig({displayName:"header__Content",componentId:"sc-1yu2v87-4"})(["flex:1;width:100%;max-width:1280px;align-items:center;justify-content:space-between;flex-direction:row;"]),Ym=(0,Ge.default)(qe.default).withConfig({displayName:"header__Offline",componentId:"sc-1yu2v87-5"})(["position:absolute;padding:3px;top:10px;right:10px;border-style:solid;border-width:1px;border-color:",";flex-direction:row;"],Qe.CRIMSON_1),Xm=(0,Ge.default)(Be.default).withConfig({displayName:"header__OfflineText",componentId:"sc-1yu2v87-6"})(["color:",";font-size:10px;padding-left:2px;"],Qe.CRIMSON_1),Zm=({leftNode:e=null,rightNode:t=null,secondary:n=!1,onlyPadding:i=!1,paddingTop:o=0,title:a=null,icon:s=null,withMenu:r=!1,hideNetworkOfflineStatus:l=!1})=>{const{isConnected:d,isInternetReachable:c}=(0,ta.useNetInfo)(),u=()=>{ce("Send debug information holding header")};return(0,X.jsx)(hm,{children:p=>(0,X.jsxs)(Fm,{onlyPadding:i,secondary:n,paddingTop:o,wide:p,children:[!i&&(0,X.jsxs)(Km,{children:[(0,X.jsx)(Hm,{children:e}),(0,X.jsx)(ts,{withoutFeedback:!0,onLongPress:u,delayLongPress:3e3,children:(0,X.jsx)(qe.default,{children:a?(0,X.jsxs)(Wm,{children:[s,(0,X.jsx)(Vm,{children:a})]}):(0,X.jsx)(gm,{color:n?"white":"green"})})}),r&&(0,X.jsx)(qm,{}),(0,X.jsx)(Hm,{children:t}),!l&&!d&&!1===c&&(0,X.jsxs)(Ym,{children:[(0,X.jsx)(Pa.default,{name:"cloud-off",size:12,color:Qe.CRIMSON_1}),(0,X.jsx)(Xm,{children:"OFFLINE"})]})]}),(0,X.jsx)($m,{title:a})]})})};Zm.propTypes={paddingTop:qc.default.number,leftNode:qc.default.node,rightNode:qc.default.node,secondary:qc.default.bool,onlyPadding:qc.default.bool,title:qc.default.string,icon:qc.default.node,withMenu:qc.default.bool,hideNetworkOfflineStatus:qc.default.bool};const Qm=Zm,Jm=(0,Ge.default)(qe.default).withConfig({displayName:"tab_menu__Tabs",componentId:"sc-124mvtk-0"})(["flex-direction:row;justify-content:space-between;background-color:",";border-top-width:1px;border-top-color:",";padding-bottom:","px;"],Qe.WHITE,Qe.GRAY_2,e=>e.paddingBottom),ef=(0,Ge.default)(ts).withConfig({displayName:"tab_menu__TabButtonContainer",componentId:"sc-124mvtk-1"})(["flex-direction:column;align-items:center;flex:1;"]),tf=(0,Ge.default)(xm.Text).withConfig({displayName:"tab_menu__TabButtonText",componentId:"sc-124mvtk-2"})(["color:",";margin-top:4px;"],e=>e.color),nf=(0,Ge.default)(qe.default).withConfig({displayName:"tab_menu__TabButtonContent",componentId:"sc-124mvtk-3"})(["align-items:center;padding:10px 5px;min-width:73px;"]),of=(0,Ge.default)(Cm).withConfig({displayName:"tab_menu__StyledCounter",componentId:"sc-124mvtk-4"})(["top:5px;right:0;"]),af=({to:e,icon:t,set:n="MaterialCommunityIcons",count:i=0,disabled:o=!1,children:a,testID:s,trackingObjectName:r})=>{const{analytics:{autoTrackEnhanced:l}}=lt(),d=(0,Ks.useHistory)(),c=(0,Ks.useRouteMatch)(e),u=null!==c&&!0===c.isExact?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_2;return(0,X.jsx)(ef,{disabled:o,testID:s,onPress:()=>(e=>{l({userFlow:La,action:Xa.click,objectName:r,properties:{source:"bottom navbar"}}),d.push(e)})(e),children:(0,X.jsxs)(nf,{children:[(0,X.jsx)(Pa.default,{name:t,set:n,color:u}),"string"===typeof a?(0,X.jsx)(tf,{numberOfLines:1,color:u,children:a}):a,i?(0,X.jsx)(of,{children:i}):null]})})},sf=(0,Te.inject)(({store:e})=>{var t,n,i,o;return{dashboardCount:e.session.counters.dashboardCount,offers:e.session.counters.offers,offersWithNewRequests:e.session.counters.offersWithNewRequests,unreadMessages:e.session.counters.unreadMessages,premium:null===(t=e.session.currentUser)||void 0===t?void 0:t.premium,agencyChat:null===(n=e.session.currentUser)||void 0===n||null===(i=n.agency)||void 0===i?void 0:i.featureFlagChat,showOffers:!(null!==(o=e.session.currentUser)&&void 0!==o&&o.agency)||e.session.currentUser.agency.featureFlagProviderCanSeeOffers,updateCounters:e.session.updateCounters}})((0,Te.observer)(({dashboardCount:e,unreadMessages:t,web:n,offers:i=0,offersWithNewRequests:o=0,agencyChat:a,showOffers:s,updateCounters:r})=>{const l=(0,Re.useSafeAreaInsets)(),{unreadConversationCount:d}=Dm(),{session:{settings:{isProviderUnderExperimentAbTest:c}}}=lt();(0,Om.useSubscription)(Yn,{onData:({data:e})=>{var t,n;const i=null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.unreadMessageCountUpdated)||void 0===n?void 0:n.unreadCount;"undefined"!==typeof i&&r({unreadMessages:i})}});const u=c(Lo)?o:i;return(0,X.jsxs)(Jm,{paddingBottom:l.bottom,web:n,children:[(0,X.jsx)(af,{to:wi(),testID:"menu-home",icon:"home",count:e,trackingObjectName:"Home",children:i18n.t("menu.home")}
1684),s&&(0,X.jsx)(af,{testID:"menu-offers",to:"/provider/offers",icon:"broom",count:u,trackingObjectName:"offers",children:i18n.t("menu.offers")}),(0,X.jsx)(af,{to:"/provider/chat",testID:"menu-chat",icon:"chat-processing",count:t+d,trackingObjectName:"chat",children:i18n.t("menu.chat")}),(0,X.jsx)(af,{to:Vi(),testID:"menu-planner",icon:"calendar",trackingObjectName:"calendar",children:i18n.t("menu.calendar")}),(0,X.jsx)(af,{to:"/provider/more",testID:"menu-more",icon:"menu",trackingObjectName:"more",children:i18n.t("menu.more")})]})}));var rf=n(95482);const lf=(0,Ge.default)(Da.default).withConfig({displayName:"deactivated_banner__Container",componentId:"sc-1o731vk-0"})([""," "," "," margin-bottom:24px;flex-direction:row;align-items:center;border-radius:64px;padding:10px 15px;background-color:",";",""],({$marginTop:e})=>`margin-top: ${e};`,({noContentMargin:e})=>e&&"margin-left: 16px;",({noContentMargin:e})=>e&&"margin-right: 16px;",Qe.WHITE,"box-shadow: 1px 6px 5px rgba(0, 0, 0, 0.2);"),df=(0,Ge.default)(pu.default).attrs({source:n(75176)}).withConfig({displayName:"deactivated_banner__InfoIcon",componentId:"sc-1o731vk-1"})(["height:50px;width:50px;margin-right:12px;"]),cf=(0,Ge.default)(rf.default).withConfig({displayName:"deactivated_banner__Message",componentId:"sc-1o731vk-2"})(["color:",";font-weight:400;font-size:12px;flex:1;"],Qe.TEXT_DARK),uf=(0,Ge.default)(rf.default).withConfig({displayName:"deactivated_banner__Bold",componentId:"sc-1o731vk-3"})(["color:",";font-weight:500;font-size:12px;text-decoration-line:underline;"],Qe.TEXT_DARK),pf=(0,Te.observer)(({$marginTop:e,noContentMargin:t})=>{const n=(0,Ks.useHistory)(),i=(0,Ks.useLocation)(),o="/provider/faq/contact_form",{session:{currentUser:a,country:s}}=lt(),r="fr"!==s&&"sg"!==s;return null!==a&&void 0!==a&&a.isDeactivated?(0,X.jsxs)(lf,{onPress:()=>{i.pathname!==o&&r&&n.push(o)},$marginTop:e,noContentMargin:t,children:[(0,X.jsx)(df,{}),(0,X.jsxs)(cf,{children:[i18n.t("deactivated_banner.message")," ",r&&(0,X.jsx)(uf,{children:i18n.t("deactivated_banner.contact_support")})]})]}):null});var mf=n(61999);let ff={};const gf=(e,t)=>{const n=Object.keys(ff);if(n.length>=40){const{[e]:i}=ff,o=(0,A.default)(ff,[e].map(mf.default));ff=Object.assign({},o,{[e]:Object.assign({},i,t)}),delete ff[n[0]]}else ff[e]=Object.assign({},ff[e],t)},hf={HEADER:{BACKGROUND:Qe.GREEN_IRISH_BREEZE,TEXT:Qe.TEXT_DARK,ICON:Qe.WHITE,BADGE:{BACKGROUND:Qe.CRIMSON_2,TEXT:Qe.WHITE},CTA:{DISABLED:{TEXT:Qe.GREEN_IRISH_BREEZE},INACTIVE:{BACKGROUND:Qe.WHITE,TEXT:Qe.GREEN_SUMMER_GRASS},ACTIVE:{BACKGROUND:Qe.GREEN_SUMMER_GRASS,TEXT:Qe.WHITE}},DASHBOARD:{BACKGROUND:Qe.GREEN_GROWN_UP_GREEN,TEXT:Qe.WHITE}},CONTENT:{BACKGROUND:Qe.WHITE}},_f=({tabMenuVisible:e,hasFloatingFooter:t=!1})=>{const n=(0,Re.useSafeAreaInsets)(),i=e?70+n.bottom:0,o=e?0:n.bottom;return{insets:n,tabMenuHeight:i,contentPaddingBottom:e||t?0:n.bottom,footerPaddingBottom:o,keyboardStickyOffset:i+o}};var xf=n(29438);const yf=(0,Ge.default)(Be.default).withConfig({displayName:"title__Title",componentId:"sc-94nn1h-0"})(["color:",";font-weight:700;font-size:","px;line-height:28px;flex:1;"],hf.HEADER.TEXT,({small:e})=>e?15:18),vf=(0,Ge.default)(qe.default).withConfig({displayName:"header__Container",componentId:"sc-psx3k4-0"})(["width:100%;align-items:stretch;background:",";padding:","px;padding-top:","px;",""],({headerBackgroundColor:e})=>e,Fu,({insetTop:e})=>Fu+e,({noContentBorderRadius:e})=>!e&&`padding-bottom: ${Fu+Hu}px;`),bf=(0,Ge.default)(qe.default).withConfig({displayName:"header__BaseRow",componentId:"sc-psx3k4-1"})(["width:100%;max-width:900px;flex-direction:row;align-items:center;margin:auto;"]),wf=(0,Ge.default)(bf).withConfig({displayName:"header__HeaderRow",componentId:"sc-psx3k4-2"})(["position:relative;justify-content:flex-start;"]),Cf=(0,Ge.default)(bf).withConfig({displayName:"header__SubheaderRow",componentId:"sc-psx3k4-3"})(["justify-content:center;"]),jf=(0,Ge.default)(Pa.default).attrs(({color:e})=>({name:"chevron-left",size:30,color:e})).withConfig({displayName:"header__ArrowBackIcon",componentId:"sc-psx3k4-4"})([""]),If=({title:e,header:t,subheader:n,page:i,hideBackButton:o=!1,headerBackgroun
1684dColor:a=hf.HEADER.BACKGROUND,handleBackButtonClick:s=null,noContentBorderRadius:r=!1})=>{const{analytics:{autoTrack:l}}=lt(),d=(0,Ks.useHistory)(),c=(0,Re.useSafeAreaInsets)();(0,K.useEffect)(()=>{const e=xf.default.addEventListener("hardwareBackPress",()=>s?(s(),!0):(d.goBack(),!0));return()=>e.remove()},[]);return(0,X.jsxs)(vf,{insetTop:c.top,noContentBorderRadius:r,headerBackgroundColor:a,children:[(0,X.jsxs)(wf,{children:[!o&&(0,X.jsx)(ws.default,{testID:"header:backButton",onPress:()=>(l("User clicked on back button",`from ${i||e} page`),s?(s(),!0):(d.goBack(),!0)),children:(0,X.jsx)(jf,{color:hf.HEADER.TEXT})}),!!e&&(0,X.jsx)(yf,{children:e}),!!t&&t()]}),!!n&&(0,X.jsx)(Cf,{children:n()})]})},Tf=(0,Ge.default)(qe.default).withConfig({displayName:"main__Container",componentId:"sc-1b92v9v-0"})(["flex:1;background:",";",""],Qe.WHITE,({desktop:e})=>e&&"\n    align-items: center;\n    min-height: 100%;\n  "),Ef=(0,Ge.default)(Ae.KeyboardAwareScrollView).withConfig({displayName:"main__Content",componentId:"sc-1b92v9v-1"})(["flex:1;width:100%;background:",";padding:0px ","px;padding-top:","px;",""],({contentBackgroundColor:e})=>e,({noContentMargin:e})=>e?0:16,({scrollEnabled:e,customPaddingTop:t})=>e?t??32:0,({noContentBorderRadius:e})=>!e&&`\n  margin-top: -${Hu}px;\n  border-top-right-radius: ${Hu}px;\n  border-top-left-radius: ${Hu}px;\n  `),Nf={maxWidth:750,alignSelf:"center",width:"100%"},kf=(0,Ge.default)(qe.default).withConfig({displayName:"main__ContentWrapper",componentId:"sc-1b92v9v-2"})(["flex:1;width:100%;"]),Rf=({scrollRef:e=null,title:t,header:n,subheader:i=null,content:o,page:a,hideHeader:s=!1,hideTabMenu:r,hideBackButton:l,scrollEnabled:d=!0,centeredContent:c=!0,headerBackgroundColor:u,contentBackgroundColor:p=hf.CONTENT.BACKGROUND,contentContainerStyle:m,noContentMargin:f,contentCustomPaddingTop:g,handleBackButtonClick:h,customFooter:_=null,keyboardShouldPersistTaps:x,onScrollBeginDrag:y=()=>{},noContentBorderRadius:v=!1,restoreScrollPositionEnabled:b=!1,testID:w})=>{const{isDesktop:C}=uu(),j=!r&&!C,{insets:I,tabMenuHeight:T,contentPaddingBottom:E,footerPaddingBottom:N,keyboardStickyOffset:k}=_f({tabMenuVisible:j,hasFloatingFooter:!!_}),{isConnected:R}=(0,ta.useNetInfo)(),S=(0,K.useRef)(null),A=e||S,{onScroll:P,restorePageScrollViewState:D}=(e=>{const{key:t}=(0,Ks.useLocation)(),n=(0,K.useCallback)(({nativeEvent:e})=>{gf(t,{scrollY:e.contentOffset.y})},[t]),i=(0,K.useCallback)(()=>{const{scrollView:e,scrollY:n}=ff[t]||{};e&&n&&e.scrollTo({y:n,animated:!1})},[t]);return(0,K.useLayoutEffect)(()=>{const n=ff[t]||{};return n.scrollView=e.current,ff[t]=n,()=>{gf(t,{scrollView:null})}},[t,e.current]),{onScroll:n,restorePageScrollViewState:i}})(A);(0,K.useLayoutEffect)(()=>{b&&D()},[]);const[M,O]=(0,K.useState)(0),z=(v?0:Hu)+E,L=(0,K.useCallback)(e=>{var t,n;const i=null===(t=e.nativeEvent)||void 0===t||null===(n=t.layout)||void 0===n?void 0:n.height;"undefined"!==typeof i&&O(Number(i))},[]);return(0,X.jsxs)(Tf,{desktop:C,testID:w,children:[!R&&(0,X.jsx)(pm,{paddingTop:I.top}),C&&!s&&(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}),!s&&(0,X.jsx)(If,{noContentBorderRadius:v,headerBackgroundColor:u,hideBackButton:l,handleBackButtonClick:h,title:t,header:n,subheader:i,page:a}),(0,X.jsx)(kf,{children:(0,X.jsxs)(Ef,Object.assign({ref:A,noContentBorderRadius:v,contentBackgroundColor:p,scrollEnabled:d,enabled:d,overScrollMode:"never",keyboardShouldPersistTaps:x,contentContainerStyle:Object.assign({},z?{paddingBottom:z}:{},c?Nf:{},m),noContentMargin:f,customPaddingTop:g,onScrollBeginDrag:y,onScroll:b?P:void 0,scrollEventThrottle:60,extraKeyboardSpace:-1*T,bottomOffset:M},d?{}:{as:qe.default},{children:[(0,X.jsx)(pf,{noContentMargin:f}),o?o():null]}))}),!!_&&(0,X.jsx)(Ae.KeyboardStickyView,{offset:{opened:k},style:{paddingBottom:N},onLayout:L,children:_}),j&&(0,X.jsx)(sf,{})]})},Sf=["visible","innerRef"],Af=["visible","innerRef"],Pf=(0,Ge.default)(wp).withConfig({displayName:"login__EmailInput",componentId:"sc-riarpl-0"})(["margin-top:8px;"]),Df=(0,Ge.default)(wp).withConfig({displayName:"login__PasswordInput",componentId:"sc-riarpl-1"})(["margin-top:16px;"]),Mf=(0,Ge.default)(qe.default).withConfig({displayName:"login__Heading",componentId:"sc-riarpl-2"})(["padding:20px 0;"]),Of=(0,Ge.default)(Be.default).withConfig({displayName:"login__Title",componentId:"sc-riarpl-3"})(["margin-bottom:10px;font-size:20px;text-align:center;font-weight:700;color:",";"],Qe.TEXT_DARK),zf=(0,Ge.default)(qe.default).withConfig({displayName:"login__SignInForm",componentId:"sc-riarpl-4"})(["width:100%;background-color:",";align-self:center;",""],Qe.WHITE,({theme:e})=>e.isDesktop&&"max-width: 400px;"),Lf=(0,Ge.default)(e=>{let t=(0,A.default)(e,Sf);return(0,X.jsx)(qe.default,Object.assign({},t))}).withConfig({displayName:"login__Error",componentId:"sc-riarpl-5"})(["flex-direction:row;align-items:center;",""],({visible:e})=>
1684e?"":"opacity: 0;"),qf=(0,Ge.default)(e=>{let t=(0,A.default)(e,Af);return(0,X.jsx)(Be.default,Object.assign({},t))}).withConfig({displayName:"login__ErrorMessage",componentId:"sc-riarpl-6"})(["color:",";font-size:14px;padding-left:5px;"],Qe.CRIMSON_1),Bf=(0,Ge.default)(ms).withConfig({displayName:"login__ForgotPassword",componentId:"sc-riarpl-7"})(["margin:10px 0;"]),Gf=(0,Ge.default)(Be.default).withConfig({displayName:"login__SignUp",componentId:"sc-riarpl-8"})(["font-size:15px;color:",";text-align:center;"],Qe.TEXT_DARK),Uf=(0,Ge.default)(Be.default).withConfig({displayName:"login__SignUpCta",componentId:"sc-riarpl-9"})(["color:",";text-decoration:underline;text-decoration-color:",";"],Qe.GREEN_SUMMER_GRASS,Qe.GREEN_SUMMER_GRASS),$f=(0,Ge.default)(qe.default).withConfig({displayName:"login__VersionContainer",componentId:"sc-riarpl-10"})(["margin-top:24px;"]),Ff=(0,Ge.default)(Be.default).withConfig({displayName:"login__VersionText",componentId:"sc-riarpl-11"})(["text-align:center;color:",";"],e=>e.color),Hf=(0,Ge.default)(Vp).withConfig({displayName:"login__AppleAuthButton",componentId:"sc-riarpl-12"})(["margin-bottom:12px;"]),Wf=(0,Te.observer)(()=>{var e;const{analytics:{autoTrackEnhanced:t},session:{fetchSettings:i,settings:o,country:a,signIn:s,isSignedIn:r,allSsoNotSupported:l},toast:{showToastMessage:d}}=lt(),{signOnGoogle:c,loading:u,isGoogleReady:p,error:m}=Gp(Lp),{signOnApple:f,loading:g,error:h}=Qp(Lp),{executeRecaptcha:_}=rm(),[x,y]=(0,K.useState)(!1),v=(0,Ks.useHistory)(),{search:b}=(0,Ks.useLocation)(),[w,C]=(0,K.useState)(!0),j=lu(),[I,T]=(0,K.useState)(Z()||Q()?E("EXPO_PUBLIC_DEV_USER_EMAIL"):""),[N,k]=(0,K.useState)(Z()||Q()?E("EXPO_PUBLIC_DEV_USER_PASSWORD"):""),[R,S]=(0,K.useState)(!1),[A,P]=(0,K.useState)(!1),D=x||u||g;(0,K.useEffect)(()=>{a&&!r&&(C(!0),i().then(()=>C(!1)).catch(e=>{a&&(console.error("Error when trying to fetch app settings",a,JSON.stringify(e)),d({type:"error",message:i18n.t("ui.error.network")})),j(Ei(b))}))},[a,o,r]),(0,K.useEffect)(()=>{const e=m||h;e&&((null===e||void 0===e?void 0:e.code)===Bp?P(i18n.t("login_page.sso.google.error.not_found")):P(null===e||void 0===e?void 0:e.message))},[m,h]);const M=((e="",t=n.g.country)=>!!gi[t]&&new URL(e,hi(gi[t])).toString())("become-a-cleaner/new?action=new&controller=applications",a),O=null===o||void 0===o||null===(e=o.applicationProcess)||void 0===e?void 0:e.enabled,z="de"===a&&!!M||O,L=async()=>{y(!0),t({userFlow:qa,action:Xa.click,objectName:"login",properties:{step:"login"}}),P(null);let e=null;if(_)try{e=await _("provider_sign_in")}catch(o){return console.error("reCAPTCHA verification failed",o),d({message:i18n.t("applicant_funnel.register.form.errors.recaptcha.error")}),void y(!1)}const{success:n,errors:i}=await s(I,N,e);y(!1),n?t({userFlow:qa,action:Xa.success,objectName:"login",properties:{step:"login"}}):(t({userFlow:qa,action:Xa.fail,objectName:"login",properties:{step:"login"}}),P(i.length?i[0].message:i18n.t("sign_in.error")))};return r&&!D?(0,X.jsx)(Ks.Redirect,{to:Ti(b)||wi()}):a?w?(0,X.jsx)(em,{}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ep,{children:[!1,(0,X.jsx)($u,{borderOnDropdown:!0})]}),(0,X.jsx)(Rf,{hideHeader:!0,hideTabMenu:!0,content:()=>(0,X.jsxs)(zf,{children:[(0,X.jsxs)(Mf,{children:[(0,X.jsx)(Of,{testID:"login-title",children:i18n.t("sign_in.title")}),z&&(0,X.jsxs)(Gf,{children:[i18n.t("sign_in.sign_up.copy"),(0,X.jsx)(Uf,{onPress:()=>{D||(t({userFlow:qa,action:Xa.click,objectName:"become a provider",properties:{step:"login"}}),O?v.push(Yi(vo)):bs.default.openURL(M))},testID:"become-a-provider",children:i18n.t("sign_in.sign_up.cta")})]})]}),(0,X.jsxs)(Lf,{visible:!!A,children:[(0,X.jsx)(Pa.default,{name:"warning",size:13,set:Pa.SETS.MATERIAL_ICONS,color:Qe.CRIMSON_1}),(0,X.jsx)(qf,{children:A})]}),(0,X.jsx)(Pf,{readonly:D,label:i18n.t("sign_in.email"),value:I,onChange:e=>{P(null),T(e)},autoCapitalize:"none",autoComplete:"email",testID:"username-input"}),(0,X.jsx)(Df,{readonly:D,label:i18n.t("sign_in.password"),secure:!0,value:N,onChange:e=>{P(null),k(e)},autoCapitalize:"none",autoComplete:"password",testID:"password-input"}),(0,X.jsx)(Bf,{fontSize:"15px",color:"transparent",textColor:Qe.GREEN_SUMMER_GRASS,testID:"forgot-password-button",onPress:()=>{t({userFlow:qa,action:Xa.click,objectName:"forgot your password",properties:{step:"login"}}),P(null),S(!0)},stretched:!0,children:i18n.t("sign_in.forgot_password")}),(0,X.jsx)(ms,{color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,testID:"sign-in-button",onPress:L,disabled:""===I||D,stretched:!0,children:i18n.t("sign_in.button")}),!l&&(0,X.jsx)(tm.default,{separatorCopy:i18n.t("applicant_funnel.register.sso_form_separator")}),(0,X.jsx)(Hf,{onPress:f,loading:g,disabled:D,action:"User clicked on Sign in with Apple",label:"from login page",testID:"signIn:appleAuthButton",children:i18n.t("login_page.actions.sign_in_with_apple")}
1684),(0,X.jsx)(Rp,{onPress:c,loading:u,disabled:!p||D,action:"User clicked on Sign in with Google",label:"from login page",testID:"signIn:googleAuthButton",children:i18n.t("login_page.actions.login_with_google")}),(0,X.jsx)(nm.default,{text:i18n.t("applicant_funnel.register.form.labels.terms_privacy_and_other_requirements"),tokens:{TERMS_SERVICE:{onPress:()=>bs.default.openURL(i18n.t("provider_terms.url"),!1,!0),href:i18n.t("provider_terms.url"),label:i18n.t("applicant_funnel.register.form.labels.terms_of_use")},PRIVACY_POLICY:{onPress:()=>bs.default.openURL(i18n.t("privacy.url"),!1,!0),href:i18n.t("privacy.url"),label:i18n.t("applicant_funnel.register.form.labels.privacy_policy")}}}),!!_&&(0,X.jsx)(am,{}),(0,X.jsx)($f,{children:(0,X.jsx)(Ff,{testID:"app-version",color:Qe.GREEN_SUMMER_GRASS,children:Ze})})]})}),(0,X.jsx)(gs,{isVisible:R,onBackdropPress:()=>S(!1),children:(0,X.jsx)(X.Fragment,{children:R&&(0,X.jsx)(su,{onClose:()=>S(!1)})})})]}):(0,X.jsx)(Ks.Redirect,{to:Ei(b)})});var Vf=n(51421);const Kf=(0,Ge.default)(qe.default).withConfig({displayName:"country__CountryContainer",componentId:"sc-70hc0c-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:15px 0;"]),Yf=(0,Ge.default)(Be.default).withConfig({displayName:"country__CountryName",componentId:"sc-70hc0c-1"})(["color:",";font-size:18px;font-weight:500;margin-left:10px;"],Qe.WHITE),Xf=({label:e,code:t,withFlag:n=!1,style:i={}})=>(0,X.jsxs)(Kf,{testID:e,style:i,children:[n&&(0,X.jsx)(hu,{country:t}),(0,X.jsx)(Yf,{children:e})]});
1684Xf.propTypes={label:ze().string.isRequired,code:ze().string.isRequired,withFlag:ze().bool,style:ze().oneOfType([ze().array,ze().object])};const Zf=Xf,Qf=(0,Ge.default)(qe.default).withConfig({displayName:"country_selector__Container",componentId:"sc-cg3lii-0"})(["padding-top:16px;padding-bottom:","px;flex:1;gap:16px;"],({$paddingBottom:e})=>e),Jf=(0,Ge.default)(ts).withConfig({displayName:"country_selector__CountryItem",componentId:"sc-cg3lii-1"})(["display:flex;flex-direction:row;justify-content:space-between;border-bottom-width:1px;border-bottom-color:",";"],Qe.GRAY_BORDER),eg=(0,Ge.default)(Vf.default).withConfig({displayName:"country_selector__Countries",componentId:"sc-cg3lii-2"})(["padding:0 15px;"]),tg=({setCountry:e,navigate:t})=>{const{analytics:{autoTrack:n},toast:{showToastMessage:i}}=lt(),[o,a]=(0,K.useState)(!1),{isConnected:s}=(0,ta.useNetInfo)(),r=(0,Re.useSafeAreaInsets)(),{search:l}=(0,Ks.useLocation)();return o?(0,X.jsx)(em,{}):(0,X.jsx)(Rf,{hideTabMenu:!0,hideHeader:!0,scrollEnabled:!1,contentBackgroundColor:Qe.GREEN_SUMMER_GRASS,content:()=>(0,X.jsxs)(Qf,{$paddingBottom:r.bottom,children:[(0,X.jsx)(Qm,{secondary:!0}),(0,X.jsx)(eg,{children:Bs.map(o=>(0,X.jsx)(Jf,{onPress:()=>(async o=>{a(!0);try{n(`User clicked on country ${o}`),await e(o),t(Ii(l))}catch(r){console.error(r),i(s?{message:i18n.t("ui.error.generic")}:{message:i18n.t("ui.error.network")})}finally{a(!1)}})(o),testID:`CountrySelector:${o}`,children:(0,X.jsx)(Zf,{code:o,label:i18n.t(`country_selector.${o}`),withFlag:!0})},o))}),(0,X.jsx)(nt,{})]})})};tg.propTypes={setCountry:ze().func.isRequired,navigate:ze().func.isRequired};const ng=du((0,Te.inject)(({store:e})=>({setCountry:e.session.setCountry}))((0,Te.observer)(tg))),ig=["color"],og=e=>{let{color:t=Qe.TEXT_DARK}=e,n=(0,A.default)(e,ig);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 23 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M5.91889 3.89019L9.92039 0.810272C11.0185 -0.0176953 12.4702 -0.232027 13.735 0.264166L20.0995 2.72751C20.5221 2.89487 20.9648 2.96533 21.3873 2.96533H22.4394C22.7442 2.96533 23 3.20316 23 3.51144V11.427C23 11.7353 22.7413 11.9966 22.4394 11.9966H21.0596C20.8728 11.9966 20.6629 12.0671 20.5221 12.1875L20.2173 12.4488C20.1484 12.5193 20.0305 12.4958 19.9586 12.4253L12.5421 3.27656C12.3552 3.03874 12.0275 2.99176 11.7688 3.13563L8.3767 5.0558C7.69829 5.43456 6.87902 5.48153 6.15461 5.17325C5.7809 5.00589 5.59405 4.55667 5.75791 4.15444C5.75503 4.05755 5.82402 3.96359 5.91889 3.89019ZM0.678415 11.9731H1.87139L2.71366 10.9308C3.46107 10.006 4.8179 9.88855 5.73203 10.646C6.05974 10.9308 6.31559 11.3096 6.43345 11.7353C7.15786 11.9262 7.72128 12.4928 7.93113 13.2298C8.44569 13.3942 8.91426 13.7289 9.1701 14.2251C9.61567 14.2956 10.0354 14.5099 10.3631 14.8417C11.0415 15.5757 11.1824 16.6679 10.6678 17.5428L10.5499 17.7572V17.7807C11.1105 18.1594 11.8608 18.042 12.2575 17.4724C12.4443 17.1876 12.5162 16.8558 12.4443 16.524V16.5005H12.4673L12.5622 16.5945C12.9848 17.0202 13.6632 17.0936 14.1519 16.7589C14.5486 16.4741 14.7354 15.9779 14.6434 15.5023V15.4788H14.6664L14.7613 15.5727C15.181 15.9985 15.8364 16.0689 16.351 15.7372C16.7477 15.4524 16.9604 14.9562 16.8655 14.4805V14.46H16.8885L16.9834 14.5539C17.3801 14.9562 18.0125 15.0266 18.4811 14.7448C19.0646 14.3895 19.2543 13.632 18.9036 13.0389C18.8576 12.9685 18.8088 12.898 18.7628 12.8481L18.0154 11.9232L11.9556 4.45978C11.8866 4.38932 11.7918 4.36583 11.6969 4.41281L8.7964 6.04819C7.85927 6.57081 6.76116 6.66476 5.75503 6.28601C5.19448 6.09517 4.7719 5.64595 4.56206 5.09985C4.3982 4.53025 4.46719 3.91368 4.7719 3.41749C4.8409 3.27656 4.7949 3.1092 4.65404 3.03874C4.60805 3.01525 4.55918 3.01525 4.51319 3.01525H0.560555C0.255843 3.01525 0 3.25307 0 3.56135V11.4535C0.11786 11.7353 0.373703 11.9731 0.678415 11.9731ZM4.88976 11.4036C4.4212 11.1422 3.86064 11.2626 3.53293 11.6883L2.71366 12.7072C2.36295 13.1564 2.40895 13.8199 2.85452 14.1752H2.87752L2.99538 14.2691C3.32308 14.5304 3.79165 14.5539 4.14236 14.3631C4.16535 14.3396 4.18835 14.3631 4.21135 14.3866V14.4336C4.14236 14.8123 4.28034 15.2145 4.58505 15.4524L4.67991 15.5228C5.00762 15.7841 5.42732 15.8076 5.8039 15.6403C5.8269 15.6168 5.87289 15.6403 5.87289 15.6638V15.6873C5.8269 16.0425 5.99075 16.3978 6.26959 16.6356L6.33858 16.6826C6.66629 16.9439 7.08599 16.9909 7.46257 16.7765C7.48556 16.753 7.53156 16.7765 7.53156 16.8V16.8235C7.57755 17.0848 7.71841 17.3226 7.92826 17.4871L7.97425 17.5105C8.44282 17.8658 9.09824 17.7953 9.44894 17.3197C9.47194 17.2727 9.51794 17.2257 9.54381 17.2023L9.68466 16.9409C9.94338 16.4917 9.87152 15.9456 9.49781 15.5904C9.1931 15.3056 8.75041 15.2351 8.35083 15.3995C8.32783 15.3995 8.32783 15.3995 8.30484 15.376V15.3525C8.32783 14.7829 7.88227 14.2868 7.32171 14.2398C7.18085 14.2398 7.04 14.2633 6.89914 14.3102C6.73528 14.3337 6.78128 14.1928 6.78128 14.1928C6.99113 13.6467 6.75828 13.0565 6.22072 12.8187C5.93901 12.7013 5.5883 12.7248 5.33246 12.8657C5.2146 12.8892 5.2376 12.7718 5.2376 12.7718C5.54518 12.3284 5.38133 11.6883 4.88976 11.4036Z",fill:t})}))};
1684og.propTypes={color:ze().string};const ag=og,sg=(0,Ge.default)(qe.default).withConfig({displayName:"salutation__Salutation",componentId:"sc-1j5vafr-0"})(["flex-direction:row;align-items:center;justify-content:space-between;width:100%;"]),rg=(0,Ge.default)(Be.default).withConfig({displayName:"salutation__ProviderName",componentId:"sc-1j5vafr-1"})(["color:",";font-weight:700;font-size:16px;flex:1;"],hf.HEADER.DASHBOARD.TEXT),lg=(0,Ge.default)(ts).withConfig({displayName:"salutation__IconContainer",componentId:"sc-1j5vafr-2"})(["justify-content:center;align-items:center;height:26px;"]),dg=(0,Ge.default)(lg).withConfig({displayName:"salutation__HandshakeIconContainer",componentId:"sc-1j5vafr-3"})(["margin-right:8px;"]),cg=(0,Ge.default)(qe.default).withConfig({displayName:"salutation__TextWrapper",componentId:"sc-1j5vafr-4"})(["position:absolute;top:-3;right:",";width:14px;height:14px;border-radius:10px;background-color:",";justify-content:center;align-items:center;"],({handshake:e})=>e?-6:-3,hf.HEADER.BADGE.BACKGROUND),ug=(0,Ge.default)(Be.default).withConfig({displayName:"salutation__StyledText",componentId:"sc-1j5vafr-5"})(["font-size:10px;color:",";"],hf.HEADER.BADGE.TEXT),pg=({navigate:e,providerName:t,openCases:n,notificationsCount:i,activeNotifications:o,canSeeResolutionCenter:a,autoTrackEnhanced:s})=>{const{isDesktop:r}=uu(),l=i+o.length;return(0,X.jsxs)(sg,{isDesktop:r,children:[(0,X.jsx)(rg,{children:i18n.t("dashboard.salutation.greeting_user",{name:t})}),a&&(0,X.jsxs)(dg,{testID:"resolution-center-icon",onPress:()=>{s({userFlow:La,action:Xa.click,objectName:"resolution center"}),e(Mi())},children:[(0,X.jsx)(ag,{color:hf.HEADER.ICON}),!!n&&(0,X.jsx)(cg,{handshake:!0,children:(0,X.jsx)(ug,{children:n})})]}),(0,X.jsxs)(lg,{testID:"notification-bell",onPress:()=>e("/provider/notifications"),trackingUserFlow:La,trackingObjectName:"notification bell",children:[(0,X.jsx)(Pa.default,{name:"notifications",size:24,color:hf.HEADER.ICON}),!!l&&(0,X.jsx)(cg,{children:(0,X.jsx)(ug,{children:l})})]})]})};pg.propTypes={providerName:ze().string,navigate:ze().func.isRequired,notificationsCount:ze().number,activeNotifications:ze().arrayOf(ze().string),openCases:ze().number,canSeeResolutionCenter:ze().bool,autoTrackEnhanced:ze().func};const mg=du((0,Te.inject)(({store:e})=>{var t,n,i,o;return{providerName:null===(t=e.session.currentUser)||void 0===t?void 0:t.firstname,openCases:null===(n=e.session.counters)||void 0===n?void 0:n.openCases,canSeeResolutionCenter:null===(i=e.session.settings)||void 0===i||null===(o=i.viewPermissions)||void 0===o?void 0:o.canSeeResolutionCenter,autoTrackEnhanced:e.analytics.autoTrackEnhanced,notificationsCount:e.session.counters.notificationsCount,activeNotifications:e.pages.notifications.activeNotifications}})((0,Te.observer)(pg))),fg=(0,Ge.default)(qe.default).withConfig({displayName:"header__Container",componentId:"sc-1e8agrc-0"})(["width:100%;"]),gg=()=>(0,X.jsx)(fg,{children:(0,X.jsx)(mg,{})});var hg=n(52044);const _g=(0,Ge.default)(qe.default).withConfig({displayName:"section__Container",componentId:"sc-1fzk1lu-0"})(["background-color:",";margin-top:16px;padding:0px ","px;"],e=>e.color,({noHorizontalPadding:e})=>e?0:16),xg=(0,Ge.default)(Be.default).withConfig({displayName:"section__Subtitle",componentId:"sc-1fzk1lu-1"})(["font-size:14px;color:",";padding-top:5px;font-weight:500;margin-bottom:6px;"],Qe.TEXT_DARK),yg=(0,Ge.default)(qe.default).withConfig({displayName:"section__TitleWrapper",componentId:"sc-1fzk1lu-2"})(["flex-grow:1;flex-direction:row;align-items:center;"]),vg=(0,Ge.default)(Be.default).withConfig({displayName:"section__Title",componentId:"sc-1fzk1lu-3"})(["font-size:17px;font-weight:600;color:",";"],Qe.TEXT_DARK),bg=(0,Ge.default)(Be.default).withConfig({displayName:"section__Count",componentId:"sc-1fzk1lu-4"})(["font-size:12px;padding-left:5px;align-self:flex-end;"]),wg=(0,Ge.default)(Vf.default).withConfig({displayName:"section__MobileContentScroll",componentId:"sc-1fzk1lu-5"})(["margin:0 -10px;padding:10px 10px 0;"]),Cg=(0,Ge.default)(qe.default).withConfig({displayName:"section__MobileContent",componentId:"sc-1fzk1lu-6"})(["padding-top:10px;"]),jg=(0,Ge.default)(qe.default).withConfig({displayName:"section__DesktopContent",componentId:"sc-1fzk1lu-7"})(["padding-top:10px;",""],e=>e.wrap&&"\n      flex-flow: row wrap;\n      justify-content: space-between;\n    "),Ig=(0,Ge.default)(qe.default).withConfig({displayName:"section__TitleMore",componentId:"sc-1fzk1lu-8"})(["padding-left:5px;flex-grow:1px;align-items:flex-end;"]),Tg=({icon:e=null,title:t,subtitle:n,titleMore:i,count:o,children:a,color:s=Qe.TRANSPARENT,scroll:r=!1,extraHeading:l=null,noHorizontalPadding:d=!1,titleWrapperStyle:c,subTitleStyle:u,tooltip:p})=>(0,X.jsxs)(_g,{color:s,noHorizontalPadding:d,children:[p,(0,X.jsxs)(yg,{style:c,children:[e,"string"===typeof t?(0,X.jsx)(vg,{children:t}):t,!!o&&(0,X.jsxs)(bg,{children:["(",o,")"]}),!!i&&(0,X.jsx)(Ig,{children:i})]}),l,n&&(0,X.jsx)(xg,{style:u,children:n}),!1,(0,X.jsx)(_m,{children:r?(0,X.jsx)(wg,{horizontal:!0,children:a}):(0,X.jsx)(Cg,{children:a})}),(0,X.jsx)(hm,{children:(0,X.jsx)(jg,{wrap:r,children:a})})]});
1684Tg.propTypes={color:ze().string,icon:ze().node,title:ze().oneOfType([ze().string,ze().node]),subtitle:ze().string,count:ze().number,scroll:ze().bool,titleMore:ze().node,extraHeading:ze().node,children:ze().node,noHorizontalPadding:ze().bool,titleWrapperStyle:ze().oneOfType([ze().object,ze().array]),subTitleStyle:ze().oneOfType([ze().object,ze().array]),tooltip:ze().element};const Eg=(0,Te.observer)(Tg);var Ng=n(33504);const kg=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-18ytbbq-0"})(["padding:15px;flex-grow:1;"]),Rg=(0,Ge.default)(qe.default).withConfig({displayName:"content__Row",componentId:"sc-18ytbbq-1"})(["flex-direction:row;align-items:center;margin:5px 0;"]),Sg=(0,Ge.default)(Be.default).withConfig({displayName:"content__StyledText",componentId:"sc-18ytbbq-2"})(["padding:2px 0px 2px 10px;color:",";font-size:14px;"],e=>e.color),Ag=({date:e,duration:t,address:n})=>(0,X.jsxs)(kg,{children:[(0,X.jsxs)(Rg,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Sg,{color:Qe.TEXT_DARK,children:e})]}),(0,X.jsxs)(Rg,{children:[(0,X.jsx)(Pa.default,{name:"clock-outline",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Sg,{color:Qe.TEXT_DARK,children:t})]}),n&&(0,X.jsxs)(Rg,{children:[(0,X.jsx)(Pa.default,{name:"location-pin",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Sg,{color:Qe.TEXT_DARK,children:n})]})]});
1684Ag.propTypes={date:ze().string.isRequired,duration:ze().string.isRequired,address:ze().string};const Pg=Ag,Dg=(0,Ge.default)(qe.default).withConfig({displayName:"event_card_header__Container",componentId:"sc-1i38vlt-0"})(["border-top-left-radius:9px;border-top-right-radius:9px;overflow:hidden;"]),Mg=(0,Ge.default)(qe.default).withConfig({displayName:"event_card_header__Heading",componentId:"sc-1i38vlt-1"})(["flex-direction:row;justify-content:space-between;align-items:center;height:40px;padding:0 10px;background-color:",";"],({bgColor:e})=>e),Og=(0,Ge.default)(Be.default).withConfig({displayName:"event_card_header__StyledText",componentId:"sc-1i38vlt-2"})(["color:",";padding:0 5px;font-weight:bold;font-size:14px;",""],({color:e})=>e,e=>e.title&&"\n      flex: 1;\n      overflow: hidden;\n  "),zg=({title:e,price:t,bgColor:n=Qe.GREEN_IRISH_BREEZE,color:i=Qe.TEXT_DARK,icon:o=null})=>(0,X.jsx)(Dg,{children:(0,X.jsxs)(Mg,{bgColor:n,children:[o,(0,X.jsx)(Og,{color:i,numberOfLines:1,title:"true",children:e}),!!t&&(0,X.jsx)(Og,{color:i,children:t})]})});
1684zg.propTypes={title:ze().string.isRequired,price:ze().string,color:ze().string,bgColor:ze().string,icon:ze().node};const Lg=zg,qg=["style","label","labelStyle","leftIcon","rightIcon","errorMsg","inputStyle"],Bg=(0,Ge.default)(qe.default).withConfig({displayName:"text_input__Container",componentId:"sc-rceb48-0"})(["flex-direction:row;justify-content:space-between;align-items:center;border:1px solid ",";padding:3px 10px;"],Qe.GRAY_BORDER),Gg=(0,Ge.default)(Be.default).withConfig({displayName:"text_input__ErrorMsg",componentId:"sc-rceb48-1"})(["color:",";font-size:12px;"],Qe.CTA_SALMON),Ug=e=>{let{style:t,label:n,labelStyle:i,leftIcon:o,rightIcon:a,errorMsg:s,inputStyle:r={}}=e,l=(0,A.default)(e,qg);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Bg,{style:t,children:[o,(0,X.jsxs)(qe.default,{style:{flex:1},children:[n&&(0,X.jsx)(Be.default,{style:i,children:n}),(0,X.jsx)(Uc.default,Object.assign({},l,{style:Object.assign({},r,{outlineStyle:"none"})}))]}),a]}),s&&(0,X.jsx)(Gg,{children:s})]})};Ug.propTypes={style:ze().oneOfType([ze().object,ze().array]),labelStyle:ze().oneOfType([ze().object,ze().array]),inputStyle:ze().oneOfType([ze().object,ze().array]),label:ze().str
1684ing,leftIcon:ze().element,rightIcon:ze().element,errorMsg:ze().string};const $g=Ug,Fg=(0,Ge.default)(gs).withConfig({displayName:"components__NoMarginModal",componentId:"sc-djvwv0-0"})(["margin:0;"]),Hg=((0,Ge.default)(qe.default).withConfig({displayName:"components__Container",componentId:"sc-djvwv0-1"})(["max-width:360px;background-color:",";align-items:center;justify-content:center;align-self:center;margin:15px;",";border-radius:5px;"],Qe.WHITE,e=>e.isVisible?"":"display: none;"),(0,Ge.default)(qe.default).withConfig({displayName:"components__Content",componentId:"sc-djvwv0-2"})(["flex-grow:1;padding:15px 25px;"])),Wg=(0,Ge.default)(Be.default).withConfig({displayName:"components__StyledText",componentId:"sc-djvwv0-3"})(["padding:5px 0;color:",";font-size:",";text-align:",";"],Qe.TEXT_DARK,e=>e.fontSize||16,e=>e.textAlign||"left"),Vg=((0,Ge.default)(Wg).withConfig({displayName:"components__StyledTextBold",componentId:"sc-djvwv0-4"})(["font-weight:bold;"]),(0,Ge.default)(qe.default).withConfig({displayName:"components__Actions",componentId:"sc-djvwv0-5"})(["padding:15px;"])),Kg=(0,Ge.default)(qe.default).withConfig({displayName:"components__Action",componentId:"sc-djvwv0-6"})(["padding-bottom:10px;"]),Yg=(0,Ge.default)(Ae.KeyboardAvoidingView).withConfig({displayName:"edit_form__Container",componentId:"sc-1gmkpeu-0"})(["flex:1;background-color:",";"],Qe.WHITE),Xg=(0,Ge.default)(Pa.default).withConfig({displayName:"edit_form__BackIcon",componentId:"sc-1gmkpeu-1"})(["padding-left:10px;"]),Zg=(0,Ge.default)(Be.default).withConfig({displayName:"edit_form__Description",componentId:"sc-1gmkpeu-2"})(["font-size:24px;padding:10px 0;color:",";"],Qe.TEXT_DARK),Qg=(0,Ge.default)(qe.default).withConfig({displayName:"edit_form__SuccessWrapper",componentId:"sc-1gmkpeu-3"})(["flex:1;justify-content:center;align-items:center;"]),Jg=(0,Ge.default)(Be.default).withConfig({displayName:"edit_form__ErrorMessage",componentId:"sc-1gmkpeu-4"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),eh=(0,Ge.default)($g).withConfig({displayName:"edit_form__StyledTextInput",componentId:"sc-1gmkpeu-5"})(["align-items:start;padding:15px;margin-top:10px;margin-bottom:20px;",""],()=>!1),th=(0,Ge.default)(Be.default).withConfig({displayName:"edit_form__FeeWarning",componentId:"sc-1gmkpeu-6"})(["color:",";"],Qe.CRIMSON_1),nh=({event:e,back:t,cancelUnconfirmedEvent:n,markEventAsConfirmed:i})=>{var o,a;const{analytics:{autoTrack:s}}=lt(),r=(0,Ng.useLocalObservable)(()=>({submitting:!1,success:null,error:!1,params:{reason:"other",userReason:""},submit:(0,Ie.flow)(function*(){r.success=null,r.submitting=!0;const{success:t,error:i}=yield n(Object.assign({},r.params,{eventId:e.id}));r.success=t,r.error=i,r.submitting=!1}),closeSuccessMessage(){s("User clicked on back button from success modal","from unconfirmed event"),i(e.id)},onUserReasonChange(e){r.params.userReason=e,r.error=null,r.success=null}})),l=(0,Re.useSafeAreaInsets)();return(0,X.jsxs)(X.Fragment,{children:[!0!==r.success&&(0,X.jsxs)(Yg,{behavior:"padding",enabled:!0,children:[(0,X.jsx)(Qm,{leftNode:(0,X.jsx)(ts,{onPress:t,eventAction:"back",children:(0,X.jsx)(Xg,{name:"chevron-left",size:36,color:Qe.GRAY_2})}),title:i18n.t("dashboard.unconfirmed_events.edit.title"),withMenu:!1,paddingTop:l.top}),(0,X.jsxs)(Hg,{children:[(0,X.jsx)(Zg,{children:i18n.t("dashboard.unconfirmed_events.edit.confirm_reason")}),(0,X.jsx)(eh,{testID:"user-reason-input",autoFocus:!0,multiline:!0,numberOfLines:5,placeholder:i18n.t("dashboard.unconfirmed_events.edit.input_placeholder"),placeholderTextColor:Qe.GRAY_3,value:r.userReason,onChangeText:r.onUserReasonChange}),(0,X.jsx)(th,{children:i18n.t("dashboard.unconfirmed_events.edit.short_notice_fee_warning")})]}),(0,X.jsxs)(Vg,{style:{paddingBottom:15+l.bottom},children:[!1===r.success&&(0,X.jsx)(Jg,{children:null!==(o=r.error)&&void 0!==o&&null!==(a=o.message)&&void 0!==a&&a.includes("Network error")?i18n.t("ui.error.network"):i18n.t("ui.error.generic")}),(0,X.jsx)(Kg,{children:(0,X.jsx)(ms,{variant:"secondary",stretched:!0,disabled:r.submitting,onPress:()=>{s("User clicked on send button",`params: ${JSON.stringify(r.params)}`),r.submit(!1)},testID:"edit_unconfirmed_event_send",children:i18n.t("dashboard.unconfirmed_events.edit.send")})})]})]}
1684),!0===r.success&&(0,X.jsx)(Qg,{children:(0,X.jsx)(Vc,{title:i18n.t("dashboard.unconfirmed_events.edit.messages.title"),message:i18n.t("dashboard.unconfirmed_events.edit.messages.message"),cta:i18n.t("dashboard.unconfirmed_events.edit.messages.cta"),onClose:r.closeSuccessMessage,messageTestID:"edit_unconfirmed_event_send_success"})})]})};nh.propTypes={event:qc.default.modelOf(vl),back:qc.default.func.isRequired,cancelUnconfirmedEvent:qc.default.func.isRequired,markEventAsConfirmed:qc.default.func.isRequired};const ih=(0,Te.inject)(({store:e})=>({cancelUnconfirmedEvent:e.events.cancelUnconfirmedEvent,markEventAsConfirmed:e.events.markEventAsConfirmed}))((0,Te.observer)(nh));var oh=n(97908);const ah=["disabled"],sh=(0,Ge.default)(ts).withConfig({displayName:"event_card_components__Content",componentId:"sc-1h7yh4l-0"})(["background-color:",";margin:0 15px 15px 0;border-radius:10px;"," opacity:",";",""],({bgColor:e})=>e||Qe.WHITE,({borderless:e,borderColor:t})=>!e&&`border: 1px solid ${t||Qe.GREEN_IRISH_BREEZE};`,({opacity:e})=>e||1,({isDesktop:e})=>e?"\n        width: 47%;\n      ":"\n        width: 280px;\n      "),rh=(0,Ge.default)(qe.default).withConfig({displayName:"event_card_components__Actions",componentId:"sc-1h7yh4l-1"})(["flex-direction:row;justify-content:center;padding:0 10px 10px 10px;"]),lh=(0,Ge.default)(qe.default).withConfig({displayName:"event_card_components__Action",componentId:"sc-1h7yh4l-2"})(["width:50%;padding:5px;"]),dh=(0,Ge.default)(oh.default).attrs(({color:e=Qe.GREEN_IRISH_BREEZE})=>({stretched:!0,color:e,small:!0})).withConfig({displayName:"event_card_components__CtaButton",componentId:"sc-1h7yh4l-3"})(["border-radius:10px;"]),ch=e=>{let{disabled:t=!1}=e,n=(0,A.default)(e,ah);return(0,X.jsx)(hm,{children:e=>(0,X.jsx)(sh,Object.assign({isDesktop:e},n))})};ch.propTypes={onPress:qc.default.func,disabled:qc.default.bool,children:qc.default.node,style:qc.default.oneOfType([qc.default.array,qc.default.object]),testID:qc.default.string};const uh=(0,Ge.default)(Be.default).withConfig({displayName:"unconfirmed_events__ErrorMessage",componentId:"sc-1exx72p-0"})(["padding:0 15px 5px;color:",";font-size:16px;"],Qe.CRIMSON_1),ph=({event:e,event:{customer:{name:t},details:{startTime:n,endTime:i,address:{address:o}}},acceptUnconfirmedEvent:a,markEventAsConfirmed:s})=>{var r,l;const{analytics:{autoTrackEnhanced:d}}=lt(),c=(0,Ng.useLocalObservable)(()=>({submitting:!1,success:null,error:{},modalIsOpen:!1,setModalOpenStatus(e=!1){this.modalIsOpen=e},submit:(0,Ie.flow)(function*(){d({userFlow:La,action:Xa.click,objectName:"confirm upcoming booking"}),c.success=null,c.submitting=!0;const{success:t,error:n}=yield a(e.id);c.success=t,c.error=n,c.submitting=!1,t||setTimeout(function(){c.success=null},3e3)}),closeSuccessMessage(){s(e.id)}})),u=C.DateTime.fromISO(n),p=C.DateTime.fromISO(i);return(0,X.jsxs)(ch,{children:[(0,X.jsx)(Lg,{bgColor:Qe.GREEN_IRISH_BREEZE,title:t}),(0,X.jsx)(Pg,{date:u.toLocaleString(C.DateTime.DATE_HUGE),duration:i18n.t("formatted_time_duration",{start:u.toLocaleString(C.DateTime.TIME_SIMPLE),end:p.toLocaleString(C.DateTime.TIME_SIMPLE),duration:p.diff(u,["hours"]).toObject().hours}),address:o}),!1===c.success&&(0,X.jsx)(uh,{children:null!==(r=c.error)&&void 0!==r&&null!==(l=r.message)&&void 0!==l&&l.includes("Network error")?i18n.t("ui.error.network"):i18n.t("ui.error.generic")}),(0,X.jsxs)(rh,{children:[(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:c.submitting,onPress:c.submit,textColor:Qe.GREEN_SUMMER_GRASS,borderRadius:10,color:Qe.GREEN_IRISH_BREEZE,testID:`cta-confirm-event-${e.id}`,children:(0,X.jsx)(Pa.default,{name:"done",size:24,color:Qe.GREEN_SUMMER_GRASS})})}),(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:c.submitting,onPress:()=>{d({userFlow:La,action:Xa.click,objectName:"modify upcoming booking"}),c.setModalOpenStatus(!0)},textColor:Qe.TEXT_DARK,color:Qe.WHITE,borderWidth:1,borderColor:Qe.GREEN_IRISH_BREEZE,testID:`cta-modify-event-${e.id}`,children:i18n.t("dashboard.unconfirmed_events.modify")})})]}),(0,X.jsx)(gs,{isVisible:!0===c.success,children:(0,X.jsx)(Vc,{title:i18n.t("dashboard.unconfirmed_events.success_title"),message:i18n.t("dashboard.unconfirmed_events.success_message"),cta:i18n.t("dashboard.unconfirmed_events.success_cta"),onClose:c.closeSuccessMessage})}),(0,X.jsx)(Fg,{isVisible:c.modalIsOpen,children:(0,X.jsx)(ih,{back:()=>c.setModalOpenStatus(),event:e})})]})};ph.propTypes={event:qc.default.modelOf(vl),acceptUnconfirmedEvent:qc.default.func.isRequired,markEventAsConfirmed:qc.default.func.isRequired};const mh=(0,Te.inject)(({store:e})=>({acceptUnconfirmedEvent:e.events.acceptUnconfirmedEvent,markEventAsConfirmed:e.events.markEventAsConfirmed}))((0,Te.observer)(ph)),fh=(e,{precision:t,withSymbol:n,compact:i}={precision:2,withSymbol:!1,compact:!1})=>{const o=e/100;void 0===t&&(t=2),i&&Number.isInteger(o)&&(t=0);
1684const a=o.toFixed(t).toLocaleString();return n?i18n.t("price",{price:a}):a},gh=e=>fh(e,{withSymbol:!0}),hh=(e,{precision:t}={precision:2})=>fh(100*e,{withSymbol:!0,precision:t}),_h=(e="...",t="...",n="...",i=!1,o=i18n.t("services.details.price_section.price_breakdown.customer_price"))=>{const a=[{label:o,formattedPrice:e}];return i&&(a.push({label:i18n.t("services.details.price_section.price_breakdown.helpling_commission"),formattedPrice:t}),a.push({label:i18n.t("services.details.price_section.price_breakdown.provider_price"),formattedPrice:n,color:Qe.GREEN_GROWN_UP_GREEN})),a},xh=(0,Ge.default)(Be.default).withConfig({displayName:"card__PendingConfirmation",componentId:"sc-ewuexk-0"})(["font-size:14px;color:",";padding:0 15px 15px;"],Qe.CRIMSON_1),yh=({event:e,event:{customer:{name:t},providerBalance:n,postRequestPending:i,details:{startTime:o,endTime:a}},hidePricesFromProvider:s,onConfirm:r,onEdit:l})=>{const d=C.DateTime.fromISO(o),c=C.DateTime.fromISO(a);return(0,X.jsxs)(ch,{opacity:i?.8:1,testID:"NotPostAgreedEventCard",children:[(0,X.jsx)(Lg,{title:t,price:s?null:fh(n,{withSymbol:!0})}),(0,X.jsx)(Pg,{date:d.toLocaleString(C.DateTime.DATE_HUGE),duration:i18n.t("formatted_time_duration",{start:d.toLocaleString(C.DateTime.TIME_SIMPLE),end:c.toLocaleString(C.DateTime.TIME_SIMPLE),duration:c.diff(d,["hours"]).toObject().hours})}),i&&(0,X.jsx)(xh,{testID:`pending_customer_confirmation_text_for_event_${e.id}`,children:i18n.t("dashboard.not_post_agreed_events.pending_customer_confirmation").toUpperCase()}),!i&&(0,X.jsx)(X.Fragment,{children:(0,X.jsxs)(rh,{children:[(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{onPress:()=>r(e),color:Qe.GREEN_FROSTY_GREEN,testID:"not_post_agreed_event_done_cta",children:(0,X.jsx)(Pa.default,{name:"done",size:24,color:Qe.GREEN_SUMMER_GRASS})})}),(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{onPress:()=>{l(e)},color:Qe.WHITE,borderWidth:1,borderColor:Qe.GREEN_IRISH_BREEZE,textColor:Qe.TEXT_DARK,testID:"not_post_agreed_event_modify_cta",children:i18n.t("dashboard.not_post_agreed_events.modify")})})]})})]})};yh.propTypes={event:qc.default.modelOf(vl),hidePricesFromProvider:qc.default.bool.isRequired,onConfirm:qc.default.func.isRequired,onEdit:qc.default.func.isRequired};const vh=(0,Te.observer)(yh),bh="confirm_event_happened",wh="were_there_any_changes",Ch="confirm_event_happened_with_no_change",jh=(0,Ge.default)(Be.default).withConfig({displayName:"confirm__ErrorMessage",componentId:"sc-piu543-0"})(["padding:15px 25px 5px;color:",";font-size:16px;"],Qe.CRIMSON_1),Ih=(0,Ge.default)(Be.default).withConfig({displayName:"confirm__Heading",componentId:"sc-piu543-1"})(["font-size:18px;font-weight:bold;color:",";text-align:center;"],Qe.TEXT_DARK),Th=(0,Ge.default)(Be.default).withConfig({displayName:"confirm__Subheading",componentId:"sc-piu543-2"})(["font-size:16px;font-weight:bold;color:",";text-align:center;margin-bottom:5px;"],Qe.TEXT_DARK),Eh=(0,Ge.default)(Be.default).withConfig({displayName:"confirm__NormalText",componentId:"sc-piu543-3"})(["font-size:14px;font-weight:bold;color:",";text-align:center;"],Qe.TEXT_DARK),Nh=(0,Ge.default)(Be.default).withConfig({displayName:"confirm__SmallText",componentId:"sc-piu543-4"})(["font-size:12px;color:",";text-align:center;"],Qe.TEXT_DARK),kh=(0,Ge.default)(Be.default).withConfig({displayName:"confirm__Question",componentId:"sc-piu543-5"})(["font-size:18px;color:",";text-align:center;margin:20px;"],Qe.TEXT_DARK),Rh=({event:e,setModalStatus:t,setChangeType:n,updatePostCleanRequest:i,removeEvent:o,setEventToConvert:a,setEventToReview:s,step:r,setConfirmationStep:l,extraConfirmationSteps:d})=>{var c,u;const{analytics:{autoTrack:p}}=lt();if(!e)return null;const m=C.DateTime.fromISO(e.details.startTime),f=C.DateTime.fromISO(e.details.endTime),g=(0,Ng.useLocalObservable)(()=>({submitting:!1,success:null,error:null,isFirstInSeries:!1,submit:(0,Ie.flow)(function*(){if(g.submitting)return;g.success=null,g.submitting=!0;const{success:t,error:n,data:o}=yield i({eventId:e.id,chargeCustomer:!0});g.isFirstInSeries=!(null===o||void 0===o||!o.isFirstInSeries),g.success=t,g.error=n,g.submitting=!1}),closeSuccessMessage(){o(e.id),e.promptCustomerForConversion&&a(e.id),g.isFirstInSeries&&s(e.id),t()}})),{buttons:h,heading:_,question:x}=d?{[bh]:{question:i18n.t("dashboard.not_post_agreed_events.confirm_modal.confirmation_steps.confirm_event_happened",{hours:e.details.duration/3600}),buttons:[{color:Qe.CRIMSON_1,onPress:()=>{p("User clicked on no button from confirm",`event:${e.id}`),n("duration",!0)},text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.ctas.no"),icon:{name:"close"}},{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>{p("User clicked on yes button from confirm",`event:${e.id}`),l(wh)},text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.ctas.yes"),icon:{name:"done"}}]},[wh]:{question:i18n.t("dashboard.not_post_agreed_events.confirm_modal.confirmation_steps.were_there_any_changes"),buttons:[{color:Qe.CRIMSON_1,onPress:()=>{p("User clicked on no button from where_there_any_changes",`event:${e.id}`),l(Ch)},text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.ctas.no"),icon:{name:"close"}},{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>{p("User clicked on yes button from where_there_any_changes",`event:${e.id}`),t("edit",e),l(bh)},text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.ctas.yes"),icon:{name:"done"}}]},[Ch]:{question:i18n.t("dashboard.not_post_agreed_events.confirm_modal.confirmation_steps.confirm_event_happened_with_no_change"),buttons:[{color:g.submitting?Qe.GRAY_2:Qe.CRIMSON_1,onPress:()=>{p("User clicked on cancel button from confirm_event_happened_with_no_change",`event:${e.id}`),l(bh),t()},disabled:g.submitting,text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.ctas.cancel"),icon:{name:"close"}},{color:g.submitting?Qe.GRAY_2:Qe.GREEN_SUMMER_GRASS,onPress:()=>{p("User clicked on I confirm button from confirm_event_happened_with_no_change",`event:${e.id}`),g.submit()},disabled:g.submitting,text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.ctas.confirm"),icon:{name:"done"}}]}}[r]:{heading:i18n.t("dashboard.not_post_agreed_events.confirm_modal.message_first"),question:i18n.t("dashboard.not_post_agreed_events.confirm_modal.message_last"),buttons:[{color:g.submitting?Qe.GRAY_2:Qe.CRIMSON_1,onPress:()=>{l(bh),t()},disabled:g.submitting,text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.back"),icon:{name:"close"}},{color:g.submitting?Qe.GRAY_2:Qe.GREEN_SUMMER_GRASS,onPress:g.submit,disabled:g.submitting,text:i18n.t("dashboard.not_post_agreed_events.confirm_modal.confirm"),icon:{name:"done"}}]};return(0,X.jsxs)(X.Fragment,{children:[!0!==g.success&&(0,X.jsxs)($c.default,{buttons:h,testID:"Confirm",children:[(0,X.jsxs)(Hg,{children:[(0,X.jsx)(Ih,{children:_||i18n.t("dashboard.not_post_agreed_events.confirm_modal.heading")}),(0,X.jsx)(Th,{children:e.customer.name}
1684),(0,X.jsxs)(Eh,{children:[m.toLocaleString(C.DateTime.DATE_HUGE)," "]}),(0,X.jsxs)(Nh,{children:[m.toLocaleString(C.DateTime.TIME_SIMPLE)," - ",f.toLocaleString(C.DateTime.TIME_SIMPLE)]}),(0,X.jsx)(kh,{children:x})]}),!1===g.success&&(0,X.jsx)(jh,{children:null!==(c=g.error)&&void 0!==c&&null!==(u=c.message)&&void 0!==u&&u.includes("Network error")?i18n.t("ui.error.network"):i18n.t("ui.error.generic")})]}),!0===g.success&&(0,X.jsx)(Vc,{title:i18n.t("dashboard.not_post_agreed_events.confirm_modal.success.title"),message:i18n.t("dashboard.not_post_agreed_events.confirm_modal.success.message"),cta:i18n.t("ui.ok"),onClose:g.closeSuccessMessage,messageTestID:"not_post_agreed_event_confirm_success"})]})};Rh.propTypes={event:qc.default.modelOf(vl),setModalStatus:qc.default.func.isRequired,setChangeType:qc.default.func.isRequired,updatePostCleanRequest:qc.default.func.isRequired,setEventToConvert:qc.default.func.isRequired,setEventToReview:qc.default.func.isRequired,removeEvent:qc.default.func.isRequired,step:qc.default.string.isRequired,setConfirmationStep:qc.default.func.isRequired,extraConfirmationSteps:qc.default.bool};const Sh=(0,Te.inject)(({store:e})=>({setEventToConvert:e.pages.dashboard.setEventToConvert,setEventToReview:e.pages.dashboard.setEventToReview,updatePostCleanRequest:e.events.updatePostCleanRequest,removeEvent:e.events.removeEvent,extraConfirmationSteps:e.session.countryConfig.extraConfirmationSteps}))((0,Te.observer)(Rh)),Ah=({back:e})=>(0,X.jsx)($c.default,{buttons:[{color:Qe.GRAY_2,onPress:e,text:i18n.t("dashboard.not_post_agreed_events.charges_not_enabled_cta"),icon:{name:"close"}}],children:(0,X.jsx)(Hg,{children:(0,X.jsx)(Wg,{fontSize:22,children:i18n.t("dashboard.not_post_agreed_events.charges_not_enabled")})})});Ah.propTypes={back:qc.default.func.isRequired};const Ph=Ah,Dh=(0,Ge.default)(qe.default).withConfig({displayName:"list__Container",componentId:"sc-4j6gzm-0"})(["border-style:solid;border-color:",";border-top-width:1px;"],Qe.GRAY_BORDER),Mh=({children:e})=>(0,X.jsx)(Dh,{children:e});Mh.propTypes={children:ze().node.isRequired};const Oh=Mh,zh=(0,Ge.default)(ts).withConfig({displayName:"item__Container",componentId:"sc-1hsdgdc-0"})(["border-style:solid;border-color:",";border-bottom-width:1px;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 15px;"],Qe.GRAY_BORDER),Lh=(0,Ge.default)(Be.default).withConfig({displayName:"item__StyledText",componentId:"sc-1hsdgdc-1"})(["color:",";padding:10px;font-size:16px;"],Qe.TEXT_DARK),qh=({children:e,onPress:t,testID:n})=>(0,X.jsxs)(zh,{onPress:t,testID:n,children:["string"===typeof e?(0,X.jsx)(Lh,{children:e}):e,(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,color:Qe.VIOLET_5})]});qh.propTypes={children:ze().node.isRequired,onPress:ze().func.isRequired,testID:ze().string};const Bh=qh,Gh="select_reason",Uh="add_evidence",$h="add_notes",Fh="open",Hh="provider_ignored - refunded",Wh="provider_agreed - refunded",Vh="admin_closed - refunded",Kh="admin_closed - not refunded",Yh="provider_created - refunded",Xh="admin_closed - provider compensated (100%)",Zh="admin_closed - provider compensated (50%)",Qh="admin_closed - provider compensated (25%)",Jh="admin_closed - provider compensated (1h)",e_="admin_closed - provider charged fee (10 EUR)",t_="admin_closed - provider charged fee (15 EUR)",n_="admin_closed - provider charged fee (20 EUR)",i_="admin_closed - provider charged fee (30 EUR)",o_="admin_closed - provider charged no show fee",a_="admin_closed - provider charged short term cancellation fee",s_="admin_closed - no charges",r_="compliant",l_="reactivated",d_="failed_reactivation",c_="provider_reported_to_debt_collection",u_="provider_did_not_report_to_debt_collection",p_="payment_succeeded",m_={[Xh]:"admin_closed_provider_compensated_full_event",[Zh]:"admin_closed_provider_compensated_half_event",[Qh]:"admin_closed_provider_compensated_quarter_event",[Jh]:"admin_closed_provider_compensated_1h",[e_]:"admin_closed_provider_charged_fee_10_eur",[t_]:"admin_closed_provider_charged_fee_15_eur",[n_]:"admin_closed_provider_charged_fee_20_eur",[i_]:"admin_closed_provider_charged_fee_30_eur",[o_]:"admin_closed_provider_charged_no_show_fee",[a_]:"admin_closed_provider_charged_short_term_cancellation_fee",[s_]:"admin_closed_no_charges",[r_]:"regulatory_compliance"},f_={waiting_response:Qe.CRIMSON_2,response_required:Qe.CRIMSON_2,under_review:Qe.GOLD_1},g_={[Hh]:Qe.GREEN_SAGE_TEA,[Wh]:Qe.GREEN_SAGE_TEA,[Vh]:Qe.GREEN_SAGE_TEA,[Kh]:Qe.CRIMSON_2,[Yh]:Qe.GREEN_SAGE_TEA,[l_]:Qe.GREEN_SAGE_TEA,[d_]:Qe.CRIMSON_2}
1684,h_={issue_refund:"issue_refund",cleaner_not_here:"cleaner_not_here",damage_claim:"damage_claim",dispute_cancellation_fee:"dispute_cancellation_fee",event_provider_pec:"event_provider_pec",event_provider_stc:"event_provider_stc",event_provider_no_show:"event_provider_no_show",regulatory_compliance:"regulatory_compliance",provider_reactivation:"provider_reactivation"},__={[h_.issue_refund]:{quality_complain:"quality_complain"}},x_={[h_.issue_refund]:{select_reason:1,add_evidence:2,add_notes:3,confirmation:4},[h_.dispute_cancellation_fee]:{add_evidence:1,add_notes:2,confirmation:3}},y_={[h_.issue_refund]:{[__.issue_refund.quality_complain]:{add_evidence:1,add_notes:2,confirmation:3}}},v_="dispute_fee",b_="customer_no_show",w_="customer_failed_payment",C_="open_cases",j_="closed_cases",I_=[b_,v_],T_=(0,Ge.default)(qe.default).withConfig({displayName:"edit_menu__Container",componentId:"sc-uajfhu-0"})(["flex:1;justify-content:flex-end;"]),E_=(0,Ge.default)(ts).withConfig({displayName:"edit_menu__BackArea",componentId:"sc-uajfhu-1"})(["flex-grow:1;"]),N_=(0,Ge.default)(qe.default).withConfig({displayName:"edit_menu__Content",componentId:"sc-uajfhu-2"})(["background-color:",";padding-bottom:","px;"],Qe.WHITE,({theme:e})=>e.insets.bottom),k_=(0,Ge.default)(Be.default).withConfig({displayName:"edit_menu__Title",componentId:"sc-uajfhu-3"})(["font-size:24px;color:",";padding:25px;"],Qe.TEXT_DARK),R_="duration",S_="cancelled",A_=b_,P_=({back:e,setChangeType:t,canChangeDuration:n,onCustomerNoShow:i,canReportCustomerNoShow:o})=>(0,X.jsxs)(T_,{children:[(0,X.jsx)(E_,{onPress:e,eventAction:"back from claim payments modify modal"}),(0,X.jsxs)(N_,{children:[(0,X.jsx)(k_,{children:i18n.t("dashboard.not_post_agreed_events.edit.title")}),(0,X.jsxs)(Oh,{children:[n&&(0,X.jsx)(Bh,{onPress:()=>t(R_),eventAction:R_,testID:"not_post_agreed_event_edit_duration",children:i18n.t("dashboard.not_post_agreed_events.edit.duration.title")}),(0,X.jsx)(Bh,{onPress:()=>t(S_),eventAction:S_,testID:"not_post_agreed_event_edit_cancelled",children:i18n.t("dashboard.not_post_agreed_events.edit.cancelled.title")}),o&&(0,X.jsx)(Bh,{onPress:i,eventAction:A_,testID:"not_post_agreed_event_edit_customer_no_show",children:i18n.t("dashboard.not_post_agreed_events.edit.customer_no_show.title")})]})]})]});P_.propTypes={back:ze().func.isRequired,setChangeType:ze().func.isRequired,canChangeDuration:ze().bool.isRequired,onCustomerNoShow:ze().func.isRequired,canReportCustomerNoShow:ze().bool};const D_=P_;const M_=n(75866).default.select.withConfig({displayName:"indexweb__PickerElement",componentId:"sc-wtoo0o-0"})(["font-size:20px;height:50px;color:",";border-color:",";border-width:1px;border-style:solid;background-color:transparent;font-family:",";padding:0 5px;"],Qe.TEXT_DARK,Qe.GRAY_BORDER,op),O_=({selectedValue:e="",options:t,onValueChange:n})=>(0,X.jsx)(M_,{value:e,onChange:e=>n(e.currentTarget.value),children:t.map(({label:e,value:t})=>(0,X.jsx)("option",{label:e,value:t},t))});O_.propTypes={selectedValue:qc.default.string,options:qc.default.arrayOf(qc.default.shape({label:qc.default.string.isRequired,value:qc.default.oneOfType([qc.default.string,qc.default.number]).isRequired}).isRequired),onValueChange:qc.default.func.isRequired};const z_=O_,L_=({params:e,params:{proposedDuration:t},onParamsChange:n,durations:i})=>(0,X.jsx)(z_,{selectedValue:t,onValueChange:t=>n(Object.assign({},e,{proposedDuration:t})),options:i.filter(e=>e.toString()!==t).map(e=>({value:e.toString(),label:i18n.t("hours",{count:e/3600})}))});L_.propTypes={onParamsChange:qc.default.func.isRequired,params:qc.default.shape({proposedDuration:qc.default.string}).isRequired,durations:qc.default.arrayOf(qc.default.number.isRequired)};const q_=(0,Te.inject)(({store:e})=>({durations:e.session.countryConfig.notPostAgreedEvents.durations}))((0,Te.observer)(L_)),B_=({params:e,params:{cancellationReasonCode:t},onParamsChange:n,cancellationReasons:i})=>(0,X.jsx)(z_,{selectedValue:t,onValueChange:t=>n(Object.assign({},e,{cancellationReasonCode:t})),options:i.map(e=>({value:e,label:i18n.t(`cancellation_reasons.${e}`)}))});B_.propTypes={onParamsChange:qc.default.func.isRequired,params:qc.default.shape({cancellationReasonCode:qc.default.string}).isRequired,cancellationReasons:qc.default.arrayOf(qc.default.string.isRequired)};const G_=(0,Te.inject)(({store:e})=>({cancellationReasons:e.session.countryConfig.notPostAgreedEvents.cancellationReasons}))((0,Te.observer)(B_)),U_="Start date cannot be older than the relationship with the customer",$_=(0,Ge.default)(qe.default).withConfig({displayName:"edit_form__Container",componentId:"sc-7dgnqh-0"})(["flex:1;background-color:",";",";"],Qe.WHITE,e=>e.isVisible?"":"display: none;"),F_=(0,Ge.default)(Pa.default).withConfig({displayName:"edit_form__BackIcon",componentId:"sc-7dgnqh-1"})(["padding-left:10px;"]),H_=(0,Ge.default)(Be.default).withConfig({displayName:"edit_form__Description",componentId:"sc-7dgnqh-2"})(["font-size:24px;padding:10px 0;color:",";"],Qe.TEXT_DARK),W_=(0,Ge.default)(qe.default).withConfig({displayName:"edit_form__SuccessWrapper",componentId:"sc-7dgnqh-3"})(["flex:1;justify-content:center;align-items:center;"]),V_=(0,Ge.default)(Be.default).withConfig({displayName:"edit_form__ErrorMessage",componentId:"sc-7dgnqh-4"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),K_="duration",Y_="cancelled",X_={[K_]:q_,[Y_]:G_},Z_=e=>{var t;return e?null!==(t=e.message)&&void 0!==t&&t.includes("Network error")?i18n.t("ui.error.
1684network"):e===U_?i18n.t("dashboard.not_post_agreed_events.edit.messages.start_date_cannot_be_older_than_relationship"):i18n.t("ui.error.generic"):""},Q_=({changeType:e,event:t,back:n,onClose:i,updatePostCleanRequest:o,addEventPendingRequest:a,removeEvent:s,setEventToConvert:r,setEventToReview:l,cancellationReasons:d})=>{const{analytics:{autoTrack:c}}=lt();(0,K.useEffect)(()=>m.updateParams(((e,t,n)=>e?t===K_?{proposedDuration:e.details.duration.toString()}:t===Y_?{cancellationReasonCode:n}:{}:{})(t,e,d[0]),!1),[e,d]);const u=(0,Re.useSafeAreaInsets)(),p={cancelled:{title:i18n.t("dashboard.not_post_agreed_events.edit.messages.cancelled_title"),message:i18n.t("dashboard.not_post_agreed_events.edit.messages.cancelled_message")},agreed:{title:i18n.t("dashboard.not_post_agreed_events.edit.messages.agreed_title"),message:i18n.t("dashboard.not_post_agreed_events.edit.messages.agreed_message")},not_agreed:{title:i18n.t("dashboard.not_post_agreed_events.edit.messages.not_agreed_title"),message:i18n.t("dashboard.not_post_agreed_events.edit.messages.not_agreed_message")}},m=(0,Ng.useLocalObservable)(()=>({loading:!0,submitting:!1,success:null,error:null,params:{},providerAgreedWithCustomer:!1,isFirstInSeries:!1,get message(){return"cancelled"===e&&m.providerAgreedWithCustomer?p.cancelled:m.providerAgreedWithCustomer?p.agreed:p.not_agreed},submit:(0,Ie.flow)(function*(n){c(`User clicked on submit modifiy event with providerAgreedWithCustomer: ${n}`,`params - ${JSON.stringify(m.params)}`),m.success=null,m.submitting=!0,m.providerAgreedWithCustomer=n;const{success:i,error:a,data:s}=yield o(Object.assign({},m.params,{eventId:t.id,changeType:e,providerAgreedWithCustomer:n}));m.isFirstInSeries=!(null===s||void 0===s||!s.isFirstInSeries),m.success=i,m.error=a,m.submitting=!1}),closeSuccessMessage(){m.providerAgreedWithCustomer?s(t.id):a(t.id),t.promptCustomerForConversion&&e===K_&&r(t.i
1684d),m.isFirstInSeries&&l(t.id),i()},updateParams(t,n=m.loading){c(`User changed params on modify event ${e} from claim payments`,`params: ${JSON.stringify(t)}`),m.success=null,m.error=null,m.params=t,m.loading=n}}));if(null===e||null===t)return null;const f=X_[e];return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)($_,{isVisible:!0!==m.success,children:[(0,X.jsx)(Qm,{leftNode:(0,X.jsx)(ts,{onPress:n,eventAction:"back",children:(0,X.jsx)(F_,{name:"chevron-left",size:36,color:Qe.GRAY_2})}),title:i18n.t(`dashboard.not_post_agreed_events.edit.${e}.title`),withMenu:!1,paddingTop:u.top}),(0,X.jsxs)(Hg,{children:[(0,X.jsx)(H_,{children:i18n.t(`dashboard.not_post_agreed_events.edit.${e}.confirm_reason`)}),!m.loading&&(0,X.jsx)(f,{event:t,params:m.params,onParamsChange:m.updateParams})]}),(0,X.jsxs)(Vg,{style:{paddingBottom:15+u.bottom},children:[!1===m.success&&(0,X.jsx)(V_,{children:Z_(m.error)}),(0,X.jsx)(Kg,{children:(0,X.jsx)(oh.default,{color:Qe.CRIMSON_2,textColor:Qe.WHITE,disabled:m.submitting,onPress:()=>m.submit(!0),testID:"not_post_agreed_event_agreed_with_customer_cta",children:i18n.t("dashboard.not_post_agreed_events.edit.agreed_with_customer")})}),(0,X.jsx)(Kg,{children:(0,X.jsx)(oh.default,{borderWidth:1,borderColor:Qe.GREEN_SUMMER_GRASS,textColor:Qe.GREEN_SUMMER_GRASS,disabled:m.submitting,onPress:()=>m.submit(!1),testID:"not_post_agreed_event_not_agreed_with_customer_cta",children:i18n.t("dashboard.not_post_agreed_events.edit.not_agreed_with_customer")})})]})]}),!0===m.success&&(0,X.jsx)(W_,{children:(0,X.jsx)(Vc,{title:m.message.title,message:m.message.message,cta:i18n.t("ui.ok"),onClose:m.closeSuccessMessage,messageTestID:"not_post_agreed_event_success"})})]})};Q_.propTypes={event:qc.default.modelOf(vl),back:qc.default.func.isRequired,onClose:qc.default.func.isRequired,changeType:qc.default.string,setEventToConvert:qc.default.func.isRequired,setEventToReview:qc.default.func.isRequired,updatePostCleanRequest:qc.default.func.isRequired,addEventPendingRequest:qc.default.func.isRequired,removeEvent:qc.default.func.isRequired,cancellationReasons:qc.default.arrayOf(qc.default.string.isRequired)};const J_=(0,Te.inject)(({store:e})=>({setEventToConvert:e.pages.dashboard.setEventToConvert,setEventToReview:e.pages.dashboard.setEventToReview,updatePostCleanRequest:e.events.updatePostCleanRequest,addEventPendingRequest:e.events.addEventPendingRequest,removeEvent:e.events.removeEvent,cancellationReasons:e.session.countryConfig.notPostAgreedEvents.cancellationReasons}))((0,Te.observer)(Q_)),ex=xt`
1685  query providerResolutionCenterCases {
1686    resolutionCenter {
1687      cases {
1688        id
1689        kind
1690        topic
1691        reason
1692        state
1693        openState
1694        closedResolution
1695        reportedBySystem
1696        reporter {
1697          accountType
1698        }
1699      }
1700    }
1701  }
1702`,tx=xt`
1703  query newOffersBlocked {
1704    newOffersBlocked {
1705      active
1706      cases {
1707        id
1708        state
1709        suspensionEndsAt
1710        topic
1711        closedResolution
1712        related {
1713          ... on Event {
1714            id
1715            startTime
1716            endTime
1717            period
1718            duration
1719            customer {
1720              firstname
1721              lastname
1722            }
1723          }
1724        }
1725      }
1726    }
1727  }
1728`,nx=xt`
1729  query providerResolutionCenter($id: ID!) {
1730    resolutionCenter {
1731      case(id: $id) {
1732        id
1733        kind
1734        state
1735        estimatedResolutionAt
1736        reviewProcessDuration
1737        topic
1738        reason
1739        agreed
1740        filedAt
1741        closedAt
1742        openState
1743        closedResolution
1744        disagreedReason
1745        customerNotes
1746        providerNotes
1747        validDisagreeReasons
1748        providerCanCloseCase
1749        reporter {
1750          accountType
1751        }
1752        evidences {
1753          id
1754          name
1755          file
1756          thumbnail
1757          size
1758          reporterAccountType
1759        }
1760        related {
1761          ... on Event {
1762            id
1763            customerPricePerHour
1764            duration
1765            startTime
1766            endTime
1767            category
1768            totals {
1769              providerToCustomerTotal
1770              providerTotal
1771              totalProviderCancellationsFees
1772            }
1773            customer {
1774              firstname
1775              lastname
1776              mobile
1777            }
1778          }
1779        }
1780        detail {
1781          ... on ProviderResolutionCenterCaseEventIssueRefundDurationDetail {
1782            claimedDuration
1783          }
1784          ... on ProviderResolutionCenterCaseEventIssueRefundQualityDetail {
1785            apartmentSize
1786            durationReduction
1787            wasCleanerBriefed
1788            wasCleaningInspected
1789          }
1790          ... on ProviderResolutionCenterCaseEventProviderIncidentDetail {
1791            blocksOffers
1792            requiresCall
1793            callScheduledFor
1794            scheduleCallUrl
1795            suspensionEndsAt
1796          }
1797        }
1798      }
1799    }
1800  }
1801`,ix=e=>{var t;const{data:n,error:i,loading:o,startPolling:a,stopPolling:s}=(0,Is.useQuery)(nx,{variables:{id:e},context:{apiVersion:3},fetchPolicy:"network-only"});return{kase:null===n||void 0===n||null===(t=n.resolutionCenter)||void 0===t?void 0:t.case,loading:o,error:i,startPolling:a,stopPolling:s}},ox=_t.gql`
1802  mutation providerResolutionCenterAgreesCase($id: ID!, $notes: String) {
1803    providerResolutionCenterAgreesCase(id: $id, notes: $notes) {
1804      success
1805      errors {
1806        code
1807        message
1808      }
1809      case {
1810        id
1811        agreed
1812        providerNotes
1813      }
1814    }
1815  }
1816`,ax=_t.gql`
1817  mutation providerResolutionCenterAddsCaseEvidence($id: ID!, $evidence: Upload!) {
1818    providerResolutionCenterAddsCaseEvidence(id: $id, evidence: $evidence) {
1819      success
1820      errors {
1821        code
1822        message
1823      }
1824      case {
1825        evidences {
1826          id
1827          name
1828          size
1829          reporterAccountType
1830          file
1831          thumbnail
1832        }
1833      }
1834    }
1835  }
1836`,sx=()=>{const[e,{loading:t}]=(0,js.useMutation)(ax);return{addsEvidence:({id:t,evidence:n})=>e({variables:{id:t,evidence:n}}),loading:t}},rx=_t.gql`
1837  mutation providerResolutionCenterRemovesCaseEvidence($id: ID!, $evidenceId: ID!) {
1838    providerResolutionCenterRemovesCaseEvidence(id: $id, evidenceId: $evidenceId) {
1839      success
1840      errors {
1841        code
1842        message
1843      }
1844      case {
1845        evidences {
1846          id
1847          name
1848          size
1849          reporterAccountType
1850          file
1851          thumbnail
1852        }
1853      }
1854    }
1855  }
1856`,lx=()=>{const[e,{loading:t}]=(0,js.useMutation)(rx);return{removeEvidence:({id:t,evidenceId:n})=>e({variables:{id:t,evidenceId:n}}),loading:t}},dx=_t.gql`
1857  mutation providerResolutionCenterDisagreesCase($id: ID!, $reason: String!, $notes: String!) {
1858    providerResolutionCenterDisagreesCase(id: $id, reason: $reason, notes: $notes) {
1859      success
1860      errors {
1861        code
1862        message
1863      }
1864      case {
1865        id
1866        agreed
1867        providerNotes
1868      }
1869    }
1870  }
1871`,cx=xt`
1872  query providerResolutionCenterRelatedEvents($topic: ResolutionCenterCaseTopicEnum!) {
1873    resolutionCenter {
1874      relatedEvents(topic: $topic) {
1875        id
1876        startTime
1877        duration
1878        category
1879        totals {
1880          totalProviderCancellationsFees
1881        }
1882        customer {
1883          id
1884          firstname
1885          lastname
1886        }
1887      }
1888    }
1889  }
1890`,ux=e=>{var t;const{data:n,error:i,loading:o}=(0,Is.useQuery)(cx,{variables:{topic:e},context:{apiVersion:3},fetchPolicy:"network-only"});return{relatedEvents:null===n||void 0===n||null===(t=n.resolutionCenter)||void 0===t?void 0:t.relatedEvents,loading:o,error:i}},px=xt`
1891  query providerResolutionCenterTopics($relatedType: ResolutionCenterCaseRelatedTypeEnum!, $relatedId: ID) {
1892    resolutionCenter {
1893      caseTopics(relatedType: $relatedType, relatedId: $relatedId)
1894    }
1895  }
1896`,mx=(e,{skip:t=!1}={})=>{var n;const{data:i,error:o,loading:a}=(0,Is.useQuery)(px,{variables:{relatedType:"Event",relatedId:e},context:{apiVersion:3},fetchPolicy:"network-only",skip:t});return{topics:null===i||void 0===i||null===(n=i.resolutionCenter)||void 0===n?void 0:n.caseTopics,loading:a,error:o}},fx=xt`
1897  query providerResolutionCenterReportCaseReasons($relatedType: ResolutionCenterCaseRelatedTypeEnum!, $topic: String!) {
1898    resolutionCenter {
1899      caseReasons(relatedType: $relatedType, topic: $topic)
1900    }
1901  }
1902`,gx=xt`
1903  mutation resolutionCenterReportsCase(
1904    $relatedId: ID!
1905    $relatedType: ResolutionCenterCaseRelatedTypeEnum!
1906    $topic: String!
1907    $reason: String
1908  ) {
1909    resolutionCenterReportsCase(relatedId: $relatedId, relatedType: $relatedType, topic: $topic, reason: $reason) {
1910      success
1911      errors {
1912        code
1913        message
1914      }
1915      case {
1916        id
1917      }
1918    }
1919  }
1920`,hx=()=>{const[e,{loading:t}]=(0,js.useMutation)(gx,{context:{apiVersion:3}});return{reportCase:({relatedId:t,topic:n,reason:i})=>e({variables:{relatedId:t,relatedType:"Event",topic:n,reason:i}}),loading:t}},_x=xt`
1921  mutation resolutionCenterFilesCase($id: ID!, $notes: String!) {
1922    resolutionCenterFilesCase(id: $id, notes: $notes) {
1923      success
1924      errors {
1925        code
1926        message
1927      }
1928      case {
1929        id
1930      }
1931    }
1932  }
1933`,xx=xt`
1934  query resolutionCenterReportedCase($id: ID!) {
1935    resolutionCenter {
1936      case(id: $id) {
1937        id
1938        kind
1939        state
1940        openState
1941        estimatedResolutionAt
1942        reviewProcessDuration
1943        topic
1944        reason
1945        agreed
1946        closedResolution
1947        closedAt
1948        filedAt
1949        providerNotes
1950        providerCanCloseCase
1951        reporter {
1952          accountType
1953        }
1954        evidences {
1955          id
1956          name
1957          file
1958          thumbnail
1959          size
1960          reporterAccountType
1961        }
1962        related {
1963          ... on Event {
1964            id
1965            duration
1966            startTime
1967            category
1968            customer {
1969              firstname
1970              lastname
1971              mobile
1972            }
1973            totals {
1974              totalProviderCancellationsFees
1975            }
1976          }
1977        }
1978        detail {
1979          ... on ProviderResolutionCenterCaseEventProviderIncidentDetail {
1980            blocksOffers
1981            requiresCall
1982            callScheduledFor
1983            scheduleCallUrl
1984            suspensionEndsAt
1985          }
1986        }
1987      }
1988    }
1989  }
1990`,yx=(e,t)=>{var n;const{data:i,error:o,loading:a,startPolling:s,stopPolling:r}=(0,Is.useQuery)(xx,{onCompleted:t,onError:e=>{r()},variables:{id:e},context:{apiVersion:3},fetchPolicy:"network-only"});return{kase:null===i||void 0===i||null===(n=i.resolutionCenter)||void 0===n?void 0:n.case,loading:a,error:o,startPolling:s,stopPolling:r}},vx=xt`
1991  mutation resolutionCenterClosesCase($id: ID!, $resolution: String!) {
1992    resolutionCenterClosesCase(id: $id, resolution: $resolution) {
1993      success
1994      errors {
1995        code
1996        message
1997      }
1998      case {
1999        id
2000      }
2001    }
2002  }
2003`,bx=e=>ru(e),wx=()=>{const e=(0,Ks.useHistory)(),{toast:{showToastMessage:t}}=lt(),{reportCase:n,loading:i}=hx();return{navigateToReportCaseFlow:(i,o)=>
2003{if(i===v_)return e.push(((e,t)=>`/provider/resolution_center/report_problem/event/${e}/${t}/select_reason`)(i,o));i===b_&&n({relatedId:o,topic:i}).then(({data:n})=>{n.resolutionCenterReportsCase.success?e.push(`/provider/resolution_center/report_problem/case/${n.resolutionCenterReportsCase.case.id}/call_customer`):t({message:i18n.t("ui.error.generic")})}).catch(()=>t({message:i18n.t("ui.error.generic")}))},loading:i}},Cx=e=>"community_guidelines_incident"===e.kind,jx=e=>e.topic===h_.provider_reactivation,Ix="confirm",Tx="edit",Ex="charges_not_enabled",Nx=({notPostAgreedEvents:e,hidePricesFromProvider:t,chargesEnabled:n})=>{var i,o,a,s,r;const{analytics:{autoTrack:l}}=lt(),{navigateToReportCaseFlow:d,loading:c}=wx(),u=(0,Ng.useLocalObservable)(()=>({[Tx]:!1,[Ix]:!1,[Ex]:!1,confirmation_step:bh,currentEvent:null,changeType:null,closeAllModals(){this[Tx]=!1,this[Ix]=!1,this[Ex]=!1,this.currentEvent=null,this.changeType=null},setModalStatus(e=null,t=void 0){this.closeAllModals(),"undefined"===typeof t&&null!==e||(this.currentEvent=t),setTimeout(()=>{e&&(this[e]=!0)},450)},setChangeType(e=null,t){l(`User clicked on modify event ${e} from claim payments`),t&&this.setModalStatus(Tx,this.currentEvent),this.changeType=e},setConfirmationStep(e){this.confirmation_step=e},onConfirm(e){l("User clicked on confirm button from claim payment",`event: ${e.id}`),this.setModalStatus(n?Ix:Ex,e)},onEdit(e){l("User clicked on modify event button from claim payments",`event: ${e.id}`),this.setModalStatus(n?Tx:Ex,e)}})),p=null===(i=u.currentEvent)||void 0===i?void 0:i.id,{topics:m}=mx(p,{skip:!p}),f=!(null===m||void 0===m||!m.includes(b_));return(0,X.jsxs)(Eg,{title:i18n.t("dashboard.not_post_agreed_events.title"),subtitle:i18n.t("dashboard.not_post_agreed_events.subtitle"),count:e.length,scroll:!0,children:[e.map(e=>(0,X.jsx)(vh,{event:e,hidePricesFromProvider:t,onConfirm:u.onConfirm,onEdit:u.onEdit},e.id)),(0,X.jsx)(gs,{isVisible:u[Ix],onBackdropPress:()=>{u.closeAllModals(),u.setConfirmationStep(bh),l("User clicked on backdrop from confirm event modal")},children:(0,X.jsx)(Sh,{event:u.currentEvent,setChangeType:u.setChangeType,setModalStatus:u.setModalStatus,step:u.confirmation_step,setConfirmationStep:u.setConfirmationStep},null===(o=u.currentEvent)||void 0===o?void 0:o.id)}),(0,X.jsx)(gs,{isVisible:u[Ex],onBackdropPress:()=>u.setModalStatus(),children:(0,X.jsx)(Ph,{back:()=>u.setModalStatus()})}),(0,X.jsx)(Fg,{isVisible:u[Tx],children:u.changeType?(0,X.jsx)(J_,{back:()=>u.setChangeType(),onClose:()=>u.setModalStatus(),changeType:u.changeType,event:u.currentEvent},null===(r=u.currentEvent)||void 0===r?void 0:r.id):(0,X.jsx)(D_,{canChangeDuration:!(null!==(s=u.currentEvent)&&void 0!==s&&s.fixedDuration),back:()=>u.setModalStatus(),setChangeType:u.setChangeType,onCustomerNoShow:()=>{if(c)return;const e=p;l("User clicked on customer could not make it from claim payments",`event: ${e}`),u.setModalStatus(),d(b_,e)},canReportCustomerNoShow:f},null===(a=u.currentEvent)||void 0===a?void 0:a.id)})]})};Nx.propTypes={notPostAgreedEvents:qc.default.arrayOrObservableArrayOf(qc.default.modelOf(vl)),hidePricesFromProvider:qc.default.bool.isRequired,chargesEnabled:qc.default.bool.isRequired};const kx=(0,Te.inject)(({store:e})=>{var t,n,i,o,a,s;return{hidePricesFromProvider:null===(t=e.session.settings)||void 0===t||null===(n=t.featureFlags)||void 0===n?void 0:n.hidePricesFromProvider,chargesEnabled:!(null!==(i=e.session.settings)&&void 0!==i&&null!==(o=i.featureFlags)&&void 0!==o&&o.psd2Payments)||(null===(a=e.session.currentUser)||void 0===a||null===(s=a.stripeAccount)||void 0===s?void 0:s.chargesEnabled)}})((0,Te.observer)(Nx)),Rx=({event:e,setEventToConvert:t,navigate:n})=>{var i;const{analytics:{autoTrack:o}}=lt(),a=()=>{o("User clicked on close button"),t(null)},s=(null===e||void 0===e||null===(i=e.customer)||void 0===i?void 0:i.name)||"";return(0,X.jsx)(gs,{isVisible:!!e,onBackdropPress:a,children:(0,X.jsx)($c.default,{buttons:[{color:Qe.CRIMSON_1,onPress:a,text:i18n.t("dashboard.not_post_agreed_events.skip"),icon:{name:"close"}},{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>{o("User clicked on talk to customer button"),t(null),n("/provider/chat")},text:i18n.t("dashboard.not_post_agreed_events.convert_modal.cta",{customerName:s}),icon:{name:"done"}}],children:(0,X.jsxs)(Hg,{children:[(0,X.jsx)(Wg,{fontSize:24,children:i18n.t("dashboard.not_post_agreed_events.convert_modal.title",{customerName:s})}),(0,X.jsx)(Wg,{children:i18n.t("dashboard.not_post_agreed_events.convert_modal.description")}),(0,X.jsx)(Wg,{children:i18n.t("dashboard.not_post_agreed_events.convert_modal.ask",{customerName:s})}),(0,X.jsx)(Wg,{fontSize:14,children:i18n.t("dashboard.not_post_agreed_events.convert_modal.small",{customerName:s})})]})})})};Rx.propTypes={event:qc.default.modelOf(vl),setEventToConvert:qc.default.func.isRequired,navigate:qc.default.func.isRequired};const Sx=du((0,Te.inject)(({store:e})=>({event:e.pages.dashboard.eventToConvert,setEventToConvert:e.pages.dashboard.setEventToConvert}))((0,Te.observer)(Rx))),Ax=(0,Ge.default)(Uc.default).withConfig({displayName:"event_review_modal__StyledTextInput",componentId:"sc-1s9gm3y-0"})(["padding:15px;font-size:16px;border-radius:4px;border:1px solid ",";"],Qe.GRAY_BORDER),Px=(0,Ge.default)(qe.default).withConfig({displayName:"event_review_modal__StarsContainer",componentId:"sc-1s9gm3y-1"})(["flex-direction:row;justify-content:center;margin:20px 0;"]),Dx=({event:e,setEventToReview:t,createEventRating:n})=>{var i;const o=(null===e||void 0===e||null===(i=e.customer)||void 0===i?void 0:i.name)||"",a=(0,Ng.useLocalObservable)(()=>({submitting:!1,comments:"",rating:null,submit:(0,Ie.flow)(function*(e){a.submitting=!0,yield n({eventId:e,comments:a.comments,rating:a.rating}),a.submitting=!1,a.reset(),t(null)}),onChangeComments(e){a.comments=e},onRatingChange(e){a.rating=e},reset(){a.comments="",a.rating=null},get disabled(){return!a.rating||a.comments.length<2}})),s=()=>{a.reset(),t(null)};return(0,X.jsx)(gs,{isVisible:!!e,onBackdropPress:s,children:(0,X.jsxs)($c.default,{buttons:[{color:a.submitting?Qe.GRAY_2:Qe.CRIMSON_1,onPress:()=>a.submitting?{}:s(),text:i18n.t("dashboard.not_post_agreed_events.skip"),icon:{name:"close"}}],children:[(0,X.jsxs)(Hg,{children:[(0,X.jsx)(Wg,{fontSize:24,children:i18n.t("dashboard.not_post_agreed_events.review_modal.title")}),(0,X.jsx)(Wg,{children:i18n.t("dashboard.not_post_agreed_events.review_modal.body",{customerName:o})}),(0,X.jsx)(Px,{children:[1,2,3,4,5].map(e=>(0,X.jsx)(ts,{testID:`event-review-rating-${e}`,onPress:()=>a.onRatingChange(e),eventAction:`rating ${e}`,children:(0,X.jsx)(Pa.default,{name:"star",size:50,color:e<=a.rating?Qe.GOLD_1:Qe.GRAY_BORDER})},e))}
2003),(0,X.jsx)(Ax,{testID:"event-review-comments",autoFocus:!0,multiline:!0,numberOfLines:3,value:a.comments,onChangeText:a.onChangeComments})]}),(0,X.jsx)(Vg,{children:(0,X.jsx)(Kg,{children:(0,X.jsx)(oh.default,{onPress:()=>a.submit(null===e||void 0===e?void 0:e.id),disabled:a.disabled||a.submitting,textColor:Qe.WHITE,color:Qe.GREEN_SUMMER_GRASS,children:i18n.t("dashboard.not_post_agreed_events.review_modal.cta")})})})]})})};Dx.propTypes={event:qc.default.modelOf(vl),setEventToReview:qc.default.func.isRequired,createEventRating:qc.default.func.isRequired};const Mx=(0,Te.inject)(({store:e})=>({event:e.pages.dashboard.eventToReview,setEventToReview:e.pages.dashboard.setEventToReview,createEventRating:e.events.createEventRating}))((0,Te.observer)(Dx)),Ox=(0,Ge.default)(qe.default).withConfig({displayName:"my_earnings_tips__Container",componentId:"sc-7czrln-0"})(["padding:12px;margin:4px 2px 8px 2px;border-radius:4px;background-color:",";"],Qe.GRAY_4),zx=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings_tips__Title",componentId:"sc-7czrln-1"})(["font-weight:600;line-height:16px;color:",";padding-bottom:8px;margin-top:12px;"],Qe.TEXT_DARK),Lx=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings_tips__GotIt",componentId:"sc-7czrln-2"})(["font-weight:700;line-height:16px;color:",";margin-top:12px;text-decoration:underline;"],Qe.GRAY_1),qx=({onClose:e})=>(0,X.jsxs)(Ox,{children:[(0,X.jsx)(zx,{children:i18n.t("dashboard.my_earnings_tips.current_earning.title")}),(0,X.jsx)(Be.default,{children:i18n.t("dashboard.my_earnings_tips.current_earning.description")}),(0,X.jsx)(zx,{children:i18n.t("dashboard.my_earnings_tips.estimated_earning_this_month.title")}),(0,X.jsx)(Be.default,{children:i18n.t("dashboard.my_earnings_tips.estimated_earning_this_month.description")}),(0,X.jsx)(zx,{children:i18n.t("dashboard.my_earnings_tips.estimated_earning_next_month.title")}),(0,X.jsx)(Be.default,{children:i18n.t("dashboard.my_earnings_tips.estimated_earning_next_month.description")}),(0,X.jsx)(ws.default,{onPress:e,children:(0,X.jsx)(Lx,{children:i18n.t("shared.labels.got_it")})})]});qx.propTypes={onClose:ze().func.isRequired};const Bx=qx,Gx=e=>(0,X.jsxs)(Wu.default,Object.assign({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsx)(Wu.Rect,{x:.695312,y:.5,width:19,height:19,rx:9.5,fill:"#EDEEF3",stroke:"#878BB0"}),(0,X.jsx)(Wu.Path,{d:"M9.544 11.074v-.56c0-.439.08-.845.238-1.218.168-.373.448-.78.84-1.218.3-.327.504-.607.616-.84.122-.233.182-.48.182-.742 0-.308-.112-.55-.336-.728-.224-.177-.54-.266-.952-.266-.914 0-1.759.336-2.534 1.008L7.01 5.166c.392-.355.878-.64 1.456-.854a5.151 5.151 0 011.778-.322c.588 0 1.102.098 1.54.294.448.196.794.467 1.036.812.252.345.378.751.378 1.218 0 .43-.098.83-.294 1.204-.186.373-.522.78-1.008 1.218-.438.401-.742.751-.91 1.05a2.666 2.666 0 00-.322.896l-.056.392H9.544zM9.096 14v-1.946h1.96V14h-1.96z",fill:"#878BB0"})]})),Ux=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings__HistoryCta",componentId:"sc-n2djfi-0"})(["color:",";font-weight:600;font-size:13px;"],Qe.TEXT_DARK),$x=(0,Ge.default)(qe.default).withConfig({displayName:"my_earnings__Card",componentId:"sc-n2djfi-1"})(["background-color:",";border-radius:10px;padding:16px;"],Qe.WHITE),Fx=(0,Ge.default)($x).withConfig({displayName:"my_earnings__CurrentEarnings",componentId:"sc-n2djfi-2"})(["flex-direction:row;justify-content:space-between;align-items:center;border:1px solid ",";"],Qe.GREEN_SUMMER_GRASS),Hx=(0,Ge.default)(Be.default).attrs({"data-component-name":"CurrentMonthPaid"}).withConfig({displayName:"my_earnings__Amount",componentId:"sc-n2djfi-3"})(["color:",";font-size:18px;font-weight:600;"],Qe.GREEN_GROWN_UP_GREEN),Wx=(0,Ge.default)(qe.default).attrs({"data-component-name":"Estimates"}).withConfig({displayName:"my_earnings__Estimates",componentId:"sc-n2djfi-4"})(["flex-direction:row;margin:6px 0 12px 0;justify-content:space-between;width:100%;"]),Vx=(0,Ge.default)($x).withConfig({displayName:"my_earnings__EstimateCard",componentId:"sc-n2djfi-5"})(["align-items:center;flex:1 1 0;border:1px solid ",";"],Qe.GREEN_SUMMER_GRASS),Kx=(0,Ge.default)(Vx).withConfig({displayName:"my_earnings__EstimateCardLeft",componentId:"sc-n2djfi-6"})(["margin-right:6px;"]),Yx=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings__EstimateText",componentId:"sc-n2djfi-7"})(["color:",";padding-bottom:8px;display:flex;text-align:center;"],Qe.TEXT_DARK),Xx=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings__EstimatedAmount",componentId:"sc-n2djfi-8"})(["color:",";font-weight:600;font-size:18px;"],Qe.GREEN_GROWN_UP_GREEN),Zx=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings__UpdatedAt",componentId:"sc-n2djfi-9"})(["color:",";"],Qe.TEXT_DARK),Qx=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings__CurrentEarningsTitle",componentId:"sc-n2djfi-10"})(["color:",";font-size:16px;font-weight:600;"],Qe.TEXT_DARK),Jx=(0,Ge.default)(qe.default).withConfig({displayName:"my_earnings__Row",componentId:"sc-n2djfi-11"})(["flex-direction:row;align-items:center;"]),ey=(0,Ge.default)(Be.default).withConfig({displayName:"my_earnings__SectionTitle",componentId:"sc-n2djfi-12"})(["font-size:17px;font-weight:600;color:",";"],Qe.TEXT_DARK),ty=(0,Ge.default)(Gx).withConfig({displayName:"my_earnings__QuestionMarkIcon",componentId:"sc-n2djfi-13"})(["margin-left:8px;
2003"]),ny=({myEarnings:{currentMonth:e,currentMonthProjected:t,nextMonthProjected:n,updatedAt:i},navigate:o})=>{const{analytics:{autoTrackEnhanced:a}}=lt(),{isConnected:s}=(0,ta.useNetInfo)(),[r,l]=(0,K.useState)(!1),d=C.DateTime.local().toLocaleString({month:"long"}),c=C.DateTime.local().plus({months:1}).toLocaleString({month:"long"}),u=(0,K.useCallback)(()=>{a({userFlow:La,action:Xa.click,objectName:"earnings tooltip"}),l(!0)},[l]);return(0,X.jsxs)(Eg,{title:(0,X.jsxs)(Jx,{children:[(0,X.jsx)(ey,{children:i18n.t("dashboard.my_earnings.title")}),(0,X.jsx)(ws.default,{onPress:u,children:(0,X.jsx)(ty,{})})]}),titleMore:(0,X.jsx)(ts,{disabled:!s,onPress:()=>o("/provider/bank_transfers"),trackingUserFlow:La,trackingObjectName:"view history",children:(0,X.jsx)(Ux,{children:i18n.t("dashboard.my_earnings.view_history")})}),children:[r&&(0,X.jsx)(Bx,{onClose:()=>l(!1)}),(0,X.jsxs)(Fx,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(Qx,{children:i18n.t("dashboard.my_earnings.current_paid.title",{month:d})}),(0,X.jsxs)(Zx,{children:[i18n.t("dashboard.my_earnings.current_paid.updated")," ",i.toRelativeCalendar()]})]}),(0,X.jsx)(Hx,{children:fh(e,{withSymbol:!0})})]}),(0,X.jsxs)(Wx,{children:[(0,X.jsxs)(Kx,{children:[(0,X.jsx)(Yx,{children:i18n.t("dashboard.my_earnings.current",{month:e})}),(0,X.jsx)(Xx,{children:fh(t,{withSymbol:!0})})]}),(0,X.jsxs)(Vx,{children:[(0,X.jsx)(Yx,{children:i18n.t("dashboard.my_earnings.next",{month:c})}),(0,X.jsx)(Xx,{children:fh(n,{withSymbol:!0})})]})]})]})};ny.propTypes={myEarnings:ze().shape({currentMonth:ze().number,currentMonthProjected:ze().number,nextMonthProjected:ze().number,updatedAt:ze().instanceOf(C.DateTime)}),navigate:ze().func.isRequired};const iy=du((0,Te.inject)(({store:e})=>({myEarnings:e.pages.dashboard.myEarnings}))((0,Te.observer)(ny)));var oy=n(97889);const ay=(0,Ge.default)(oy.LinearGradient).withConfig({displayName:"generic_message__Container",componentId:"sc-suy6yo-0"})(["background-color:",";padding:15px 10px 15px 15px;flex-direction:row;justify-content:space-between;border-radius:5px;box-shadow:",";margin:15px;"],Qe.VIOLET_1,"0 0 21px rgba(67, 72, 130, 0.15)"),sy=(0,Ge.default)(Be.default).withConfig({displayName:"generic_message__Message",componentId:"sc-suy6yo-1"})(["color:",";font-size:14px;margin:0 10px 0 0;align-self:center;padding-bottom:1px;flex:1;"],Qe.WHITE),ry=(0,Ge.default)(Pa.default).withConfig({displayName:"generic_message__ArrowImage",componentId:"sc-suy6yo-2"})(["align-self:center;"]),ly=({disabled:e=!1,message:t,onPress:n})=>(0,X.jsx)(ts,{disabled:e,onPress:n,activeOpacity:.6,eventAction:"generic message",children:(0,X.jsxs)(ay,{colors:[Qe.GREEN_SUMMER_GRASS,Qe.GREEN_SUMMER_GRASS],start:{x:0,y:0},end:{x:1,y:1},children:[(0,X.jsx)(sy,{children:t}),(0,X.jsx)(ry,{name:"keyboard-arrow-right",size:24,color:Qe.WHITE})]})});ly.propTypes={disabled:qc.default.bool,message:qc.default.string.isRequired,onPress:qc.default.func.isRequired};const dy=ly,cy=(0,Ge.default)(qe.default).withConfig({displayName:"notification_message__Wrapper",componentId:"sc-1vwk2f0-0"})(["padding:15px;"]),uy=({locale:e,notificationMessage:t,markNotificationMessageRead:n,navigate:i})=>{const[o,a]=(0,K.useState)(!1),{isConnected:s}=(0,ta.useNetInfo)();if(!t)return null;const{id:r,url:l,translationKey:d,body:c,expiresAt:u}=t,p=c&&c.find(({key:t})=>t===e);return(0,X.jsx)(cy,{children:(0,X.jsx)(dy,{message:p?p.value:i18n.t(d),disabled:!s||o,onPress:async()=>{u&&C.DateTime.fromISO(u)>C.DateTime.local()||(a(!0),await n(r)),i(l)}})})};uy.propTypes={notificationMessage:qc.default.modelOf(Cl),markNotificationMessageRead:qc.default.func.isRequired,locale:qc.default.string,navigate:qc.default.func.isRequired};const py=du((0,Te.inject)(({store:e})=>({notificationMessage:e.pages.dashboard.notificationMessage,markNotificationMessageRead:e.pages.dashboard.markNotificationMessageRead,locale:e.session.locale}))((0,Te.observer)(uy))),my=["progress","width","tintColor","backgroundColor","text","textColor"],fy=(0,Ge.default)(qe.default).withConfig({displayName:"circular_progress_bar__Container",componentId:"sc-5zfhz4-0"})(["position:relative;width:","px;height:","px;align-self:center;justify-content:center;align-items:center;"],({width:e})=>e,({width:e})=>e),gy=(0,Ge.default)(qe.default).withConfig({displayName:"circular_progress_bar__SvgWrapper",componentId:"sc-5zfhz4-1"})(["position:absolute;"]),hy=(0,Ge.default)(Be.default).withConfig({displayName:"circular_progress_bar__PercentText",componentId:"sc-5zfhz4-2"})(["color:",";font-size:13px;font-weight:700;"],({$color:e})=>e||Qe.TEXT_DARK),_y=e=>{let{progress:t=0,width:n=68,tintColor:i="#52B79F",backgroundColor:o=Qe.WHITE,text:a,textColor:s=Qe.TEXT_DARK}=e,r=(0,A.default)(e,my);const l=n/2-7-3.5,d=2*l*Math.PI,c=d-t/100*d,u=n/2;return(0,X.jsxs)(fy,{width:n,children:[(0,X.jsx)(gy,{children:(0,X.jsx)(Wu.default,Object.assign({width:n,height:n,viewBox:`0 0 ${n} ${n}`,fill:"none"},r,{children:(0,X.jsxs)(Wu.G,{children:[(0,X.jsx)(Wu.Circle,{cx:u,cy:u,r:l,stroke:o,strokeWidth:7,fill:"none"}),(0,X.jsx)(Wu.Circle,{cx:u,cy:u,r:l,stroke:i,strokeWidth:7,strokeLinecap:"round",fill:"none",strokeDasharray:d,strokeDashoffset:c,transform:`rotate(-90 ${u} ${u})`})]})}))}),(0,X.jsx)(hy,{$color:s,children:a||`${t}%`})]})};_y.propTypes={progress:ze().number,width:ze().number,tintColor:ze().str
2003ing,backgroundColor:ze().string,text:ze().string,textColor:ze().string};const xy=_y,yy={primary:Qe.GREEN_SUMMER_GRASS,error:Qe.CRIMSON_2,warning:Qe.CRIMSON_1},vy=({score:e,color:t="primary",text:n})=>(0,X.jsx)(xy,{progress:e,width:80,backgroundColor:Qe.GRAY_LIGHT,tintColor:yy[t],text:n||`${e}%`,textColor:yy[t]});vy.propTypes={score:ze().number,text:ze().string,color:ze().string};const by=vy,wy=(0,Ge.default)(qe.default).withConfig({displayName:"score_notification_box__Container",componentId:"sc-15tyeoz-0"})(["box-shadow:",";background-color:",";padding:15px;border-bottom-color:",";border-style:solid;border-bottom-width:1px;"],"0 0 21px rgba(87, 97, 105, 0.15)",Qe.WHITE,Qe.GRAY_BORDER),Cy=(0,Ge.default)(ts).withConfig({displayName:"score_notification_box__Main",componentId:"sc-15tyeoz-1"})(["flex-direction:row;align-items:center;"]),jy=(0,Ge.default)(qe.default).withConfig({displayName:"score_notification_box__Progress",componentId:"sc-15tyeoz-2"})(["width:64px;"]),Iy=(0,Ge.default)(qe.default).withConfig({displayName:"score_notification_box__Content",componentId:"sc-15tyeoz-3"})(["flex:1;margin-left:15px;padding:5px 0;"]),Ty=(0,Ge.default)(Be.default).withConfig({displayName:"score_notification_box__Title",componentId:"sc-15tyeoz-4"})(["text-transform:uppercase;color:",";font-size:14px;padding:2px 0;"],Qe.GRAY_2),Ey=(0,Ge.default)(qe.default).withConfig({displayName:"score_notification_box__Body",componentId:"sc-15tyeoz-5"})(["display:flex;align-items:center;flex-direction:row;padding:2px 0;"]),Ny=(0,Ge.default)(Be.default).withConfig({displayName:"score_notification_box__Label",componentId:"sc-15tyeoz-6"})(["flex:1;font-size:14px;"]),ky=(0,Ge.default)(Pa.default).withConfig({displayName:"score_notification_box__ArrowImage",componentId:"sc-15tyeoz-7"})(["align-self:center;",""],e=>e.rotate?`transform: rotate(${e.rotate}deg);`:""),Ry=(0,Ge.default)(qe.default).withConfig({displayName:"score_notification_box__Children",componentId:"sc-15tyeoz-8"})(["",""],e=>`display: ${e.display};`),Sy=({title:e,description:t,color:n,score:i,text:o,footer:a=null,onClick:s=()=>{},expandedDefault:r=!1,children:l,hideArrow:d,testID:c})=>{const[u,p]=(0,K.useState)(r);return(0,X.jsxs)(wy,{testID:c,children:[(0,X.jsxs)(Cy,{onPress:()=>{s(),l&&p(!u)},children:[(0,X.jsx)(jy,{children:(0,X.jsx)(by,{text:o,score:i,color:n})}),(0,X.jsxs)(Iy,{children:[(0,X.jsx)(Ty,{children:e}),(0,X.jsxs)(Ey,{children:[(0,X.jsx)(Ny,{children:t}),!d&&(0,X.jsx)(ky,{name:"keyboard-arrow-right",size:24,color:Qe.GRAY_2,rotate:u?90:null})]})]})]}),a,l&&(0,X.jsx)(Ry,{display:u?"flex":"none",children:l})]})};
2003Sy.propTypes={title:ze().string.isRequired,description:ze().string,color:ze().string,score:ze().number.isRequired,text:ze().string,onClick:ze().func,children:ze().node,footer:ze().node,expandedDefault:ze().bool,hideArrow:ze().bool,testID:ze().string};const Ay=Sy,Py=(0,Ge.default)(qe.default).withConfig({displayName:"stripe_account_status__FooterContainer",componentId:"sc-35ncjh-0"})(["padding-top:5px;padding-left:79px;"]),Dy=(0,Ge.default)(Be.default).withConfig({displayName:"stripe_account_status__FooterLabel",componentId:"sc-35ncjh-1"})(["color:",";"],Qe.GREEN_SUMMER_GRASS),My=({stripeAccount:e,navigate:t,fetchStripeHostedOnboardingLink:n})=>{const{session:{country:i,countryConfig:{documentVerificationFaqArticleId:o}}}=lt(),{isConnected:a}=(0,ta.useNetInfo)();if(!e)return null;const{hasAccount:s,idVerificationRequired:r,payoutsEnabled:l,underReview:d,verificationDeadline:c}=e,u=e.getUseCase();if(!u)return null;const p="fr"!==i&&"sg"!==i;return(0,X.jsx)(Ay,{title:i18n.t(`stripe_account.status_${u}.title`),description:i18n.t(`stripe_account.status_${u}.description`,{date:C.DateTime.fromISO(c).toLocaleString(C.DateTime.DATE_HUGE)}),color:e.getUseCaseColor(),score:100,text:"!",onClick:async()=>{if(p&&5===u)return void t("/provider/faq/contact_form");const e=await n();e&&t(e)},hideArrow:!p,footer:!!o&&(0,X.jsx)(Py,{children:(0,X.jsx)(ts,{disabled:!a,onPress:()=>{t(Si(o))},eventAction:"open faq",children:(0,X.jsx)(Dy,{children:i18n.t("stripe_account.document_verification_faq.link")})})})})};My.propTypes={stripeAccount:qc.default.modelOf(po),navigate:qc.default.func.isRequired,fetchStripeHostedOnboardingLink:qc.default.func.isRequired};const Oy=du((0,Te.inject)(({store:e})=>({stripeAccount:e.session.currentUser.stripeAccount,fetchStripeHostedOnboardingLink:e.pages.dashboard.fetchStripeHostedOnboardingLink}))((0,Te.observer)(My))),zy=(0,Ge.default)(qe.default).withConfig({displayName:"clash_status__Container",componentId:"sc-1w29i00-0"})(["padding:10px 0;margin:10px 15px 20px;border-top-width:1px;border-bottom-width:1px;border-style:solid;border-color:",";"],Qe.GRAY_BORDER),Ly=(0,Ge.default)(ts).withConfig({displayName:"clash_status__ClashMessage",componentId:"sc-1w29i00-1"})(["flex-direction:row;align-items:center;"]),qy=(0,Ge.default)(Be.default).withConfig({displayName:"clash_status__ClashText",componentId:"sc-1w29i00-2"})(["margin-left:10px;flex:1;font-size:12px;color:",";font-weight:bold;"],({color:e})=>e),By=(0,Ge.default)(qe.default).withConfig({displayName:"clash_status__ClashContent",componentId:"sc-1w29i00-3"})(["padding:15px;"]),Gy=(0,Ge.default)(Be.default).withConfig({displayName:"clash_status__ClashHeading",componentId:"sc-1w29i00-4"})(["font-weight:bold;font-size:12px;padding-bottom:10px;"]),Uy=(0,Ge.default)(qe.default).withConfig({displayName:"clash_status__EventBoxContainer",componentId:"sc-1w29i00-5"})(["margin-bottom:5px;padding:10px;background-color:",";flex-direction:row;"],({backgroundColor:e})=>e),$y=(0,Ge.default)(qe.default).withConfig({displayName:"clash_status__EventBoxDetails",componentId:"sc-1w29i00-6"})(["padding-left:10px;flex-grow:1;flex:1;"]),Fy=(0,Ge.default)(Be.default).withConfig({displayName:"clash_status__EventBoxText",componentId:"sc-1w29i00-7"})(["font-size:11px;color:",";font-weight:",";text-align:",";padding:2px 0;"],({color:e})=>e,({fontWeight:e})=>e||"normal",({textalign:e})=>e||"left"),Hy=({formattedStartTime:e,formattedDuration:t,customerName:n,address:i,requestedEvent:o=!1})=>{const a=o?Qe.CRIMSON_2:Qe.VIOLET_5,s=o?Qe.WHITE:Qe.TEXT_DARK;return(0,X.jsxs)(Uy,{backgroundColor:a,children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(Fy,{color:s,fontWeight:"bold",children:e}),(0,X.jsx)(Fy,{color:s,textalign:"center",children:t})]}),(0,X.jsxs)($y,{children:[(0,X.jsx)(Fy,{color:s,fontWeight:"bold",children:n}),(0,X.jsx)(Fy,{color:s,children:i})]})]})};Hy.propTypes={formattedStartTime:qc.default.string.isRequired,formattedDuration:qc.default.string.isRequired,customerName:qc.default.string.isRequired,address:qc.default.string.isRequired,requestedEvent:qc.default.bool};const Wy=({proposedStartDate:e,proposedDuration:t,customerName:n,address:i,proposedStartTime:o,previousEvent:a,nextEvent:s,i18n:r,requestType:l})=>{const[d,c]=(0,K.useState)(!1),u="change_request"===l;return(null===a||void 0===a?void 0:a.clash)||(null===s||void 0===s?void 0:s.clash)?(0,X.jsxs)(zy,{children:[(0,X.jsxs)(Ly,{onPress:()=>c(!0),eventAction:"open clash details",children:[(0,X.jsx)(qy,{color:Qe.CRIMSON_2,children:u?r.t("change_request.clashing_warning"):r.t("new_request.clashing_warning")}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,color:Qe.CRIMSON_2})]}),(0,X.jsx)(gs,{isVisible:d,onBackdropPress:()=>c(!1),children:(0,X.jsx)($c.default,{buttons:[{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>c(!1),text:r.t("back"),icon:{name:"chevron-left"}}],children:(0,X.jsxs)(By,{children:[(0,X.jsx)(Gy,{children:e.toUpperCase()}),(null===a||void 0===a?void 0:a.clash)&&(0,X.jsx)(Hy,{formattedStartTime:a.formattedStartTime,formattedDuration:r.t("formatted_duration_short",{duration:a.duration/3600}),customerName:a.customer.name,address:a.address.address}),(0,X.jsx)(Hy,{formattedStartTime:o,formattedDuration:r.t("formatted_duration_short",{duration:t/3600}),customerName:n,address:i,requestedEvent:!0}),(null===s||void 0===s?void 0:s.clash)&&(0,X.jsx)(Hy,{formattedStartTime:s.formattedStartTime,formattedDuration:r.t("formatted_duration_short",{duration:s.duration/3600}),customerName:s.customer.name,address:s.address.address})]})})})]}):null};Wy.propTypes={proposedStartDate:qc.default.string.isRequired,proposedDuration:qc.default.number.isRequired,customerName:qc.default.string.isRequired,address:qc.default.string.isRequired,proposedStartTime:qc.default.string.isRequired,previousEvent:qc.default.modelOf(Il),nextEvent:qc.default.modelOf(Il),i18n:qc.default.shape({t:qc.default.func.isRequired}).isRequired,requestType:qc.default.oneOf(["change_request","new_request"]).isRequired};const Vy=Wy,Ky=(0,Ge.default)(qe.default).withConfig({displayName:"new_request__Content",componentId:"sc-1mewgz0-0"})(["padding:15px;"]),Yy=(0,Ge.default)(qe.default).withConfig({displayName:"new_request__Row",componentId:"sc-1mewgz0-1"})(["flex-direction:row;align-items:center;margin:5px 0;"]),Xy=(0,Ge.default)(Be.default).withConfig({displayName:"new_request__StyledText",componentId:"sc-1mewgz0-2"})(["padding:2px 0px 2px 10px;color:",";font-size:14px;"],e=>e.color),Zy=(0,Ge.default)(Be.default).withConfig({displayName:"new_request__ErrorMessage",componentId:"sc-1mewgz0-3"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),Qy=!0,Jy=({newRequest:{id:e,formattedStartDate:t,formattedStartTime:n,formattedEndTime:i,proposedDuration:o,relationship:{customer:{name:a},address:{address:s}},frequency:r,previousEvent:l,nextEvent:d},acceptNewRequest:c,rejectNewRequest:u,closeNewRequest:p})=>{var m,f;const{analytics:{autoTrackEnhanced:g}}=lt(),h=(0,Ng.useLocalObservable)(()=>({submitting:!1,success:null,error:null,action:Qy,accept:(0,Ie.flow)(function*(){g({userFlow:La,action:Xa.click,objectName:"accept",properties:{requestType:"new request"}}),h.success=null,h.submitting=!0,h.action=Qy;const t=yield c(e);h.success=t.success,h.error=t.error,h.submitting=!1}),reject:(0,Ie.flow)(function*(){g({userFlow:La,action:Xa.click,objectName:"decline",properties:{requestType:"new request"}}),h.success=null,h.submitting=!0,h.action=false;const t=yield u(e);h.success=t.success,h.error=t.error,h.submitting=!1}),closeSuccessMessage(){g({userFlow:La,action:Xa.click,objectName:"close success message",properties:{requestType:"new request"}}),p(e)}}));return(0,X.jsxs)(X.Fragment,{children:[!0!==h.success&&(0,X.jsxs)(ch,{children:[(0,X.jsx)(Lg,{title:a}),(0,X.jsxs)(Ky,{children:[(0,X.jsx)(Xy,{color:Qe.TEXT_DARK,style:{paddingLeft:29,fontWeight:"600"},children:i18n.t(`frequency_names.${r||"once"}`)}),(0,X.jsxs)(Yy,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Xy,{color:Qe.TEXT_DARK,children:t})]}),(0,X.jsxs)(Yy,{children:[(0,X.jsx)(Pa.default,{name:"clock-outline",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Xy,{color:Qe.TEXT_DARK,children:((e,t,n)=>i18n.t("formatted_time_duration",{start:e,end:t,duration:n/3600}))(n,i,o)})]}),(0,X.jsxs)(Yy,{children:[(0,X.jsx)(Pa.default,{name:"location-pin",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Xy,{color:Qe.TEXT_DARK,children:s})]})]}),(0,X.jsx)(Vy,{i18n:i18n,proposedStartDate:t,proposedDuration:o,customerName:a,address:s,proposedStartTime:n,previousEvent:l,nextEvent:d,requestType:"new_request"}),!1===h.success&&(0,X.jsx)(Zy,{children:null!==(m=h.error)&&void 0!==m&&null!==(f=m.message)&&void 0!==f&&f.includes("Network error")?i18n.t("ui.error.
2003network"):i18n.t("ui.error.generic")}),(0,X.jsxs)(rh,{children:[(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:h.submitting,onPress:h.accept,color:Qe.GREEN_FROSTY_GREEN,children:(0,X.jsx)(Pa.default,{name:"done",size:24,color:Qe.GREEN_SUMMER_GRASS})})}),(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:h.submitting,onPress:h.reject,color:Qe.CRIMSON_5,children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.CRIMSON_2})})})]})]}),(0,X.jsx)(gs,{isVisible:!0===h.success,children:(0,X.jsx)(Vc,{title:h.action===Qy?i18n.t("new_request.success.accepted"):i18n.t("new_request.success.rejected"),cta:i18n.t("new_request.success.cta"),onClose:h.closeSuccessMessage})})]})};Jy.propTypes={newRequest:qc.default.modelOf(Tl),acceptNewRequest:qc.default.func.isRequired,rejectNewRequest:qc.default.func.isRequired,closeNewRequest:qc.default.func.isRequired};const ev=(0,Te.inject)(({store:e})=>({acceptNewRequest:e.pages.dashboard.acceptNewRequest,rejectNewRequest:e.pages.dashboard.rejectNewRequest,closeNewRequest:e.pages.dashboard.closeNewRequest}))((0,Te.observer)(Jy)),tv=(0,Ge.default)(qe.default).withConfig({displayName:"selected_by_customer__Content",componentId:"sc-1vri9wd-0"})(["padding:15px;background-color:",";"],Qe.GREEN_IRISH_BREEZE),nv=(0,Ge.default)(qe.default).withConfig({displayName:"selected_by_customer__Row",componentId:"sc-1vri9wd-1"})(["flex-direction:row;align-items:center;margin:5px 0;"]),iv=(0,Ge.default)(Be.default).withConfig({displayName:"selected_by_customer__StyledText",componentId:"sc-1vri9wd-2"})(["padding:2px 0px 2px 10px;color:",";font-size:14px;"],e=>e.color),ov=({bid:{code:e,formattedDate:t,formattedStartTime:n,formattedEndTime:i,duration:o,address:{postcode:a,town:s},frequency:r,totalPayout:l},navigate:d,hidePricesFromProvider:c})=>{const{analytics:{autoTrackEnhanced:u}}=lt(),{isConnected:p}=(0,ta.useNetInfo)();return(0,X.jsxs)(ch,{onPress:()=>{p&&(u({userFlow:La,action:Xa.click,objectName:"new request"}),d(Xi(e)))},children:[(0,X.jsx)(Lg,{bgColor:Qe.GREEN_GROWN_UP_GREEN,color:Qe.WHITE,title:a,price:c?null:l}),(0,X.jsxs)(tv,{children:[(0,X.jsx)(iv,{color:Qe.TEXT_DARK,style:{paddingLeft:30,fontWeight:"600"},children:i18n.t(`frequency_names.${r||"once"}`)}),(0,X.jsxs)(nv,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(iv,{color:Qe.TEXT_DARK,children:t})]}),(0,X.jsxs)(nv,{children:[(0,X.jsx)(Pa.default,{name:"clock-outline",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(iv,{color:Qe.TEXT_DARK,children:i18n.t("formatted_time_duration",{start:n,end:i,duration:o/3600})})]}),(0,X.jsxs)(nv,{children:[(0,X.jsx)(Pa.default,{name:"location-pin",color:Qe.GRAY_1,size:20}),(0,X.jsxs)(iv,{color:Qe.TEXT_DARK,children:[a," ",s]})]})]})]})};ov.propTypes={bid:qc.default.modelOf(El),navigate:qc.default.func.isRequired,hidePricesFromProvider:qc.default.bool.isRequired};const av=du((0,Te.inject)(({store:e})=>{var t,n;return{hidePricesFromProvider:null===(t=e.session.settings)||void 0===t||null===(n=t.featureFlags)||void 0===n?void 0:n.hidePricesFromProvider}})((0,Te.observer)(ov))),sv=(0,Ge.default)(qe.default).withConfig({displayName:"requests__Tabs",componentId:"sc-1jij5pc-0"})(["flex-direction:row;margin:10px 0;"]),rv=(0,Ge.default)(Be.default).withConfig({displayName:"requests__Tab",componentId:"sc-1jij5pc-1"})(["margin-right:10px;font-weight:bold;font-size:16px;border-bottom-width:4px;border-style:solid;padding-bottom:5px;",""],({selected:e})=>e?`\n        color: ${Qe.GREEN_SUMMER_GRASS};\n        border-bottom-color: ${Qe.GREEN_SUMMER_GRASS};\n        `:`\n        color: ${Qe.TEXT_DARK};\n        border-bottom-color: transparent;\n        `),lv="new_requests",dv="new_customers",cv=({newRequestsNotActioned:e=[],selectedByCustomer:t=[]})=>{const[n,i]=(0,K.useState)(e.length?lv:dv),o=n===lv&&!!e.length;return e.length+t.length?(0,X.jsxs)(Eg,{title:i18n.t("dashboard.requests.title"),subtitle:o?i18n.t("dashboard.requests.new_requests.subtitle"):i18n.t("dashboard.requests.new_customers.subtitle"),extraHeading:e.length&&t.length?(0,X.jsxs)(sv,{children:[(0,X.jsx)(ts,{onPress:()=>i(lv),eventAction:"new_requests",children:(0,X.jsx)(rv,{selected:o,children:i18n.t("dashboard.requests.new_requests.tab")})}),(0,X.jsx)(ts,{onPress:()=>i(dv),eventAction:"new_customers",children:(0,X.jsx)(rv,{selected:!o,children:i18n.t("dashboard.requests.new_customers.tab")})})]}
2003):null,count:e.length+t.length,scroll:!0,children:[o&&e.map(e=>(0,X.jsx)(ev,{newRequest:e},e.id)),!o&&t.map(e=>(0,X.jsx)(av,{bid:e},e.code))]}):null};cv.propTypes={newRequestsNotActioned:qc.default.arrayOf(qc.default.modelOf(Tl)),selectedByCustomer:qc.default.arrayOf(qc.default.modelOf(El))};const uv=(0,Te.inject)(({store:e})=>({newRequestsNotActioned:e.pages.dashboard.newRequestsNotActioned,selectedByCustomer:e.pages.dashboard.selectedByCustomer}))((0,Te.observer)(cv));var pv=n(14580),mv=n(78242),fv=n.n(mv);const gv=(0,Ge.default)(Vf.default).withConfig({displayName:"announcement__ScrollWrapper",componentId:"sc-6dcqqu-0"})(["max-height:600px;"]),hv=(0,Ge.default)(pv.default).withConfig({displayName:"announcement__ModalContentWrapper",componentId:"sc-6dcqqu-1"})(["max-width:700px;width:100%;"]),_v=(0,Ge.default)(pv.default).withConfig({displayName:"announcement__ModalContent",componentId:"sc-6dcqqu-2"})(["padding:20px;align-self:center;"]),xv=(0,Ge.default)(Be.default).withConfig({displayName:"announcement__Title",componentId:"sc-6dcqqu-3"})(["text-align:center;font-size:20px;margin-bottom:20px;"]),yv=(0,Ge.default)(qe.default).withConfig({displayName:"announcement__Body",componentId:"sc-6dcqqu-4"})(["text-align:center;margin-bottom:30px;"]),vv=(0,Ge.default)(ts).withConfig({displayName:"announcement__Close",componentId:"sc-6dcqqu-5"})(["align-self:flex-end;"]),bv=({announcement:e,navigate:t,markAnnouncementAsRead:n,removeAnnouncement:i})=>{const[o,a]=(0,K.useState)(!1),[s,r]=(0,K.useState)(!1),{isConnected:l}=(0,ta.useNetInfo)(),d=async()=>{l&&(a(!0),await n(),a(!1)),r(!1),i()};return(0,K.useEffect)(()=>{setTimeout(()=>{r(!!e)},300)},[e]),(0,X.jsx)(gs,{isVisible:s,children:(0,X.jsx)(gv,{contentContainerStyle:{display:"flex",alignItems:"center"},children:(0,X.jsxs)(hv,{children:[(0,X.jsx)(vv,{disabled:o,onPress:d,eventAction:"close announcement modal",children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.BLACK})}),(0,X.jsx)(_v,{children:!!e&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(xv,{children:e.title}),(0,X.jsx)(yv,{children:(0,X.jsx)(fv(),{containerStyle:{textAlign:"center"},source:{html:e.body}})}),(0,X.jsx)(ms,{disabled:!l||o,color:Qe.CRIMSON_2,textColor:Qe.WHITE,onPress:async()=>{await d(),setTimeout(()=>e.externalUrl?bs.default.openURL(e.externalUrl):e.buttonUrl?(e=>{if(e)return e.startsWith("http")||e.startsWith("www")?bs.default.openURL(e):t(e.startsWith("/")?e:`/${e}`)})(e.buttonUrl):void 0,450)},centered:!0,children:e.buttonText})]})})]})})})};bv.propTypes={announcement:qc.default.modelOf(fo),navigate:qc.default.func.isRequired,markAnnouncementAsRead:qc.default.func.isRequired,removeAnnouncement:qc.default.func.isRequired};const wv=du((0,Te.inject)(({store:e})=>({announcement:e.session.currentUser.announcement,markAnnouncementAsRead:e.session.markAnnouncementAsRead,removeAnnouncement:e.session.currentUser.removeAnnouncement}))((0,Te.observer)(bv))),Cv=_t.gql`
2004  query fetchProviderCustomerAddressChangeRequests {
2005    providerCustomerAddressChangeRequests {
2006      id
2007      state
2008      newAddress {
2009        id
2010        address
2011      }
2012      oldAddress {
2013        id
2014        address
2015      }
2016      relationship {
2017        id
2018        customer {
2019          id
2020          firstname
2021          lastname
2022        }
2023        futureEvents(limit: 1) {
2024          startTime
2025          endTime
2026          duration
2027        }
2028      }
2029    }
2030  }
2031`,jv=_t.gql`
2032  mutation providerAcceptsRelationshipAddressChangeRequest($requestId: ID!) {
2033    providerAcceptsRelationshipAddressChangeRequest(requestId: $requestId) {
2034      success
2035      errors {
2036        code
2037        message
2038      }
2039    }
2040  }
2041`,Iv=_t.gql`
2042  mutation providerDeclinesRelationshipAddressChangeRequest($requestId: ID!) {
2043    providerDeclinesRelationshipAddressChangeRequest(requestId: $requestId) {
2044      success
2045      errors {
2046        code
2047        message
2048      }
2049    }
2050  }
2051`,Tv=xt`
2052  query relationshipFutureEvents($id: ID!) {
2053    relationshipFutureEvents(id: $id) {
2054      id
2055      startTime
2056      endTime
2057      address {
2058        address1
2059        postcode
2060      }
2061      relationship {
2062        id
2063      }
2064      customer {
2065        firstname
2066        lastname
2067      }
2068      externalCalendarEventId
2069    }
2070  }
2071`,Ev=()=>{const[e,{data:t,error:n,loading:i}]=(0,kn.useLazyQuery)(Tv,{fetchPolicy:"network-only"});return{getFutureEvents:t=>e({variables:{id:t},context:{apiVersion:3}}),loading:i,error:n,data:(null===t||void 0===t?void 0:t.relationshipFutureEvents)||[]}},Nv=()=>{const{session:{isSignedIn:e},toast:{showToastMessage:t},externalCalendar:{externalCalendarId:n,setOpenConnectCalendarModal:i},analytics:{autoTrack:o}}=lt(),{getFutureEvents:a}=Ev(),{createHelplingPartnerCalendar:s}=gr(),{processEventSync:r}
2071=hr(),l=()=>{o("User clicked on Cancel CTA","from permission required modal"),i(!1),t({message:i18n.t("connect_calendar.permission_denied.error")})};return{syncEvent:async i=>{if(e&&n)try{var o;const{status:e}=await Zs.getCalendarPermissionsAsync();if("granted"!==e)return void Js.default.alert(i18n.t("connect_calendar.permission_required.title"),i18n.t("connect_calendar.permission_required.message"),[{text:i18n.t("connect_calendar.permission_required.cancel_cta"),style:"cancel",onPress:()=>l},{text:i18n.t("connect_calendar.permission_required.open_settings"),onPress:()=>bs.default.openSettings()}]);let t=await ur(n);t!==n&&(await pr(),t=await s());const d=await a(i),c=null===d||void 0===d||null===(o=d.data)||void 0===o?void 0:o.relationshipFutureEvents;if((null===c||void 0===c?void 0:c.length)>0){const e=c.filter(e=>!!e.externalCalendarEventId),n=[];for(const t of e)try{const e=await Zs.getEventAsync(t.externalCalendarEventId);e&&n.push(e)}catch(ca){console.error("Calendar sync error for event:",t.externalCalendarEventId,ca),le(ca)}r(t,c,n)}return!0}catch(ca){console.error("Calendar sync error:",ca),le(ca),t({message:i18n.t("connect_calendar.calender_sync.failed.sync_error")})}}}},kv=(0,Ge.default)(qe.default).withConfig({displayName:"change_request__Content",componentId:"sc-1gm40ae-0"})(["padding:15px;"]),Rv=(0,Ge.default)(Be.default).withConfig({displayName:"change_request__StyledText",componentId:"sc-1gm40ae-1"})(["padding:2px 0px 2px 10px;color:",";font-size:14px;"],e=>e.color),Sv=(0,Ge.default)(qe.default).withConfig({displayName:"change_request__Divider",componentId:"sc-1gm40ae-2"})(["background-color:",";flex-direction:row;align-items:center;justify-content:center;padding:5px;"],Qe.VIOLET_1),Av=(0,Ge.default)(Be.default).withConfig({displayName:"change_request__DividerText",componentId:"sc-1gm40ae-3"})(["color:",";font-weight:600;font-size:13px;line-height:18px;margin-right:3px;"],Qe.WHITE),Pv=(0,Ge.default)(Be.default).withConfig({displayName:"change_request__ErrorMessage",componentId:"sc-1gm40ae-4"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),Dv=(0,Ge.default)(Be.default).withConfig({displayName:"change_request__SystemAcceptedText",componentId:"sc-1gm40ae-5"})(["text-align:center;color:",";"],Qe.GREEN_SUMMER_GRASS),Mv=(0,Ge.default)(qe.default).withConfig({displayName:"change_request__Row",componentId:"sc-1gm40ae-6"})(["flex-direction:row;align-items:center;margin:5px 0;"]),Ov=!0,zv=({changeRequest:{id:e,originalStartDate:t,originalDuration:n,proposedStartDate:i,proposedDuration:o,customer:{name:a,relationship:s},address:{address:r},originalStartTime:l,originalEndTime:d,proposedStartTime:c,proposedEndTime:u,previousEvent:p,nextEvent:m,automaticallyAcceptedButProviderDidNotActioned:f,originalAddress:g,originalFrequency:h,proposedFrequency:_},acceptChangeRequest:x,rejectChangeRequest:y,closeChangeRequest:v,acknowledgeChangeRequest:b})=>{var w,C;const{analytics:{autoTrackEnhanced:j},session:{settings:I}}=lt(),{syncEvent:T}=Nv(),E=(0,Ng.useLocalObservable)(()=>({submitting:!1,success:null,error:null,action:Ov,accept:(0,Ie.flow)(function*(){j({userFlow:La,action:Xa.click,objectName:"accept",properties:{requestType:"change request"}}),E.success=null,E.submitting=!0,E.action=Ov;const t=yield x(e);E.success=t.success,E.error=t.error,E.submitting=!1}),reject:(0,Ie.flow)(function*(){j({userFlow:La,action:Xa.click,objectName:"decline ",properties:{requestType:"change request"}}),E.success=null,E.submitting=!0,E.action=false;const t=yield y(e);E.success=t.success,E.error=t.error,E.submitting=!1}),acknowledge:(0,Ie.flow)(function*(){j({userFlow:La,action:Xa.click,objectName:"acknowledge ",properties:{requestType:"change request"}}),E.submitting=!0;const t=yield b(e);t.success&&v(e),E.error=t.error,E.submitting=!1}),closeSuccessMessage(){j({userFlow:La,action:Xa.click,objectName:"close success message",properties:{requestType:"change request"}}),v(e),null!==I&&void 0!==I&&I.isProviderUnderExperimentAbTest(Mo)&&T(null===s||void 0===s?void 0:s.id)}})),N=(e,t,n)=>i18n.t("formatted_time_duration",{start:e,end:t,duration:n/3600});return(0,X.jsxs)(X.Fragment,{children:[!0!==E.success&&(0,X.jsxs)(ch,{borderColor:Qe.VIOLET_4,children:[(0,X.jsx)(Lg,{bgColor:Qe.VIOLET_2,color:Qe.WHITE,title:a}),(0,X.jsxs)(kv,{children:[h&&(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"autorenew",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Rv,{color:Qe.GRAY_2,children:i18n.t(`frequency_names.${h}`)})]}),(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Rv,{color:Qe.GRAY_2,children:t})]}),(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"clock-outline",set:"MaterialCommunityIcons",color:Qe.GRAY_1,size:20}),(0,X.jsx)(Rv,{color:Qe.GRAY_2,children:N(l,d,n)})]}),g&&(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"location-pin",color:Qe.TEXT_DARK,size:20}),(0,X.jsx)(Rv,{color:Qe.TEXT_DARK,children:g})]})]}),(0,X.jsxs)(Sv,{children:[(0,X.jsx)(Av,{children:i18n.t(g?"dashboard.events.address_change_request.requested_change":"dashboard.events.change_request.requested_change")}),(0,X.jsx)(Pa.default,{name:"arrow-down",set:"MaterialCommunityIcons",color:Qe.WHITE,size:18})]}),(0,X.jsxs)(kv,{style:{flexGrow:1},children:[_&&(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"autorenew",set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,size:20}),(0,X.jsx)(Rv,{color:Qe.TEXT_DARK,children:i18n.t(`frequency_names.${_}`)})]}),(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month",set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,size:20}),(0,X.jsx)(Rv,{color:Qe.TEXT_DARK,children:i})]}),(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"clock-outline",set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,size:20}),(0,X.jsx)(Rv,{color:Qe.TEXT_DARK,children:N(c,u,o)})]}),(0,X.jsxs)(Mv,{children:[(0,X.jsx)(Pa.default,{name:"location-pin",color:Qe.TEXT_DARK,size:20}),(0,X.jsx)(Rv,{color:Qe.TEXT_DARK,children:r})]})]}),(0,X.jsx)(Vy,{i18n:i18n,proposedStartDate:i,proposedDuration:o,customerName:a,address:r,proposedStartTime:c,previousEvent:p,nextEvent:m,requestType:"change_request"}),!1===E.success&&(0,X.jsx)(Pv,{children:null!==(w=E.error)&&void 0!==w&&null!==(C=w.message)&&void 0!==C&&C.includes("Network error")?i18n.t("ui.error.
2071network"):i18n.t("ui.error.generic")}),f&&(0,X.jsx)(kv,{children:(0,X.jsx)(Dv,{children:i18n.t("dashboard.events.change_request.notification.auto_accepted.heading")})}),(0,X.jsxs)(rh,{children:[!f&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:E.submitting,onPress:E.accept,color:Qe.GREEN_FROSTY_GREEN,children:(0,X.jsx)(Pa.default,{name:"done",size:24,color:Qe.GREEN_SUMMER_GRASS})})}),(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:E.submitting,onPress:E.reject,color:Qe.CRIMSON_5,children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.CRIMSON_2})})})]}),f&&(0,X.jsx)(lh,{children:(0,X.jsx)(dh,{disabled:E.submitting,onPress:E.acknowledge,color:Qe.GREEN_FROSTY_GREEN,children:(0,X.jsx)(Pa.default,{name:"done",size:24,color:Qe.GREEN_SUMMER_GRASS})})})]})]}),(0,X.jsx)(gs,{isVisible:!0===E.success,children:(0,X.jsx)(Vc,{title:E.action===Ov?i18n.t("change_request.success.accepted"):i18n.t("change_request.success.rejected"),cta:i18n.t("change_request.success.cta"),onClose:E.closeSuccessMessage})})]})};zv.propTypes={changeRequest:qc.default.shape({id:qc.default.string.isRequired,originalStartDate:qc.default.string,originalDuration:qc.default.number,proposedStartDate:qc.default.string,proposedDuration:qc.default.number,customer:qc.default.shape({name:qc.default.string,relationship:qc.default.shape({id:qc.default.string})}),address:qc.default.shape({address:qc.default.string}),originalStartTime:qc.default.string,originalEndTime:qc.default.string,proposedStartTime:qc.default.string,proposedEndTime:qc.default.string,previousEvent:qc.default.object,nextEvent:qc.default.object,automaticallyAcceptedButProviderDidNotActioned:qc.default.bool,originalAddress:qc.default.string,originalFrequency:qc.default.string,proposedFrequency:qc.default.string}),acceptChangeRequest:qc.default.func.isRequired,rejectChangeRequest:qc.default.func.isRequired,closeChangeRequest:qc.default.func.isRequired,acknowledgeChangeRequest:qc.default.func.isRequired};const Lv=(0,Te.observer)(zv),qv=({refetchAddressChangeRequests:e,request:t})=>{const{analytics:{autoTrack:n},session:{currentUser:{id:i}}}=lt();if(!t.relationship.futureEvents.length)return null;const o=t.relationship.futureEvents[0],a=C.DateTime.fromISO(o.startTime).toLocaleString(C.DateTime.DATE_HUGE),s=C.DateTime.fromISO(o.startTime).toLocaleString(C.DateTime.TIME_SIMPLE),r=C.DateTime.fromISO(o.endTime).toLocaleString(C.DateTime.TIME_SIMPLE),l=o.duration,d=`${t.relationship.customer.firstname} ${t.relationship.customer.lastname}`,[c]=(0,js.useMutation)(jv),[u]=(0,js.useMutation)(Iv);return(0,X.jsx)(Lv,{acceptChangeRequest:async()=>{const e=C.DateTime.now().toLocaleString(C.DateTime.DATETIME_FULL);n("Change request - Provider accepts address change request",`on change requests section - provider: ${i} - request: ${t.id} - customer: ${t.relationship.customer.id} - time: ${e}`);try{const{data:{providerAcceptsRelationshipAddressChangeRequest:{success:e,errors:n}}}=await c({variables:{requestId:t.id}});return{success:e,error:n&&n.length?n[0]:null}}catch(o){return{success:!1,error:{message:i18n.t("ui.error.generic")}}}},rejectChangeRequest:async()=>{const e=C.DateTime.now().toLocaleString(C.DateTime.DATETIME_FULL);n("Change request - Provider rejects address change request",`on change requests section - provider: ${i} - request: ${t.id} - customer: ${t.relationship.customer.id} - time: ${e}`);try{const{data:{providerDeclinesRelationshipAddressChangeRequest:{success:e,errors:n}}}=await u({variables:{requestId:t.id}});return{success:e,error:n&&n.length?n[0]:null}}catch(o){return{success:!1,error:{message:i18n.t("ui.error.generic")}}}},closeChangeRequest:e,acknowledgeChangeRequest:()=>{},changeRequest:{id:t.id,originalStartDate:a,originalDuration:l,proposedStartDate:a,proposedDuration:l,customer:{name:d},originalStartTime:s,originalEndTime:r,proposedStartTime:s,proposedEndTime:r,previousEvent:null,nextEvent:null,automaticallyAcceptedButProviderDidNotActioned:!1,originalAddress:t.oldAddress.address,address:t.newAddress}},t.id)};qv.propTypes={request:qc.default.object.isRequired,refetchAddressChangeRequests:qc.default.func.isRequired};const Bv=qv,Gv=(0,Ge.default)(gs).withConfig({displayName:"bank_account_modal__Modal",componentId:"sc-hgja4v-0"})(["align-items:center;justify-content:center;"]),Uv=(0,Ge.default)(qe.default).withConfig({displayName:"bank_account_modal__
2071Container",componentId:"sc-hgja4v-1"})(["background-color:",";width:100%;padding:20px;max-width:600px;"],Qe.WHITE),$v=(0,Ge.default)(Be.default).withConfig({displayName:"bank_account_modal__Title",componentId:"sc-hgja4v-2"})(["color:",";text-align:center;font-weight:700;font-size:16px;"],Qe.TEXT_DARK),Fv=(0,Ge.default)(Be.default).withConfig({displayName:"bank_account_modal__Paragraph",componentId:"sc-hgja4v-3"})(["text-align:center;padding:20px 10px;font-size:13px;color:",";"],Qe.TEXT_DARK),Hv=(0,Ge.default)(qe.default).withConfig({displayName:"bank_account_modal__IconContainer",componentId:"sc-hgja4v-4"})(["align-items:center;"]),Wv=(0,Ge.default)(pu.default).attrs({source:n(50925)}).withConfig({displayName:"bank_account_modal__NoBankDetails",componentId:"sc-hgja4v-5"})(["width:80px;height:80px;"]);function Vv({open:e,onClose:t}){const{session:{currentUser:n}}=lt(),i=(0,Ks.useHistory)(),o=null===n||void 0===n?void 0:n.needsBankDetailsBeforeOffers;return(0,X.jsx)(Gv,{isVisible:e&&o,onBackdropPress:t,children:(0,X.jsxs)(Uv,{children:[(0,X.jsx)(Hv,{children:(0,X.jsx)(Wv,{})}),(0,X.jsx)($v,{children:i18n.t("dashboard.no_bank_details.modal.heading")}),(0,X.jsx)(Fv,{children:i18n.t("dashboard.no_bank_details.modal.body")}),(0,X.jsx)(ms,{onPress:()=>{t(!1),i.push("/provider/bank_details")},color:Qe.CRIMSON_1,stretched:!0,testID:"bank-account-modal-cta-add",children:i18n.t("dashboard.no_bank_details.modal.add")}),(0,X.jsx)(ms,{onPress:t,color:Qe.WHITE,textColor:Qe.TEXT_DARK,stretched:!0,testID:"bank-account-modal-cta-back",children:i18n.t("dashboard.no_bank_details.modal.back")})]})})}Vv.propTypes={open:qc.default.bool.isRequired,onClose:qc.default.func.isRequired};const Kv=Vv,Yv=n(32370),Xv=(0,Ge.default)(pu.default).withConfig({displayName:"technical_issues_banner__Icon",componentId:"sc-5b3ktk-0"})(["width:24px;height:24px;margin-right:20px;"]),Zv=(0,Ge.default)(pv.default).withConfig({displayName:"technical_issues_banner__Container",componentId:"sc-5b3ktk-1"})(["padding:20px;flex-direction:row;align-items:center;margin-bottom:20px;"]),Qv=(0,Ge.default)(Be.default).withConfig({displayName:"technical_issues_banner__Description",componentId:"sc-5b3ktk-2"})(["font-weight:300;"]),Jv=(0,Ge.default)(qe.default).withConfig({displayName:"technical_issues_banner__ContentContainer",componentId:"sc-5b3ktk-3"})(["flex:1;"]),eb=e=>(0,X.jsxs)(Zv,Object.assign({elevation:1},e,{children:[(0,X.jsx)(Xv,{source:Yv}),(0,X.jsx)(Jv,{children:(0,X.jsx)(Qv,{children:i18n.t("technical_issues_banner.text")})})]}));var tb=n(98253);const nb=(0,Ge.default)(qe.default).withConfig({displayName:"pending_deleti
2071on_banner__BannerContainer",componentId:"sc-dj7x2j-0"})(["background:",";width:100%;padding:8px;"],Qe.CRIMSON_1),ib=(0,Ge.default)(qe.default).withConfig({displayName:"pending_deletion_banner__TextContainer",componentId:"sc-dj7x2j-1"})(["padding:10px;max-width:760px;margin:0 auto;"]),ob=(0,Ge.default)(xm.Text).withConfig({displayName:"pending_deletion_banner__BannerText",componentId:"sc-dj7x2j-2"})(["text-align:center;font-size:12px;font-weight:700;color:",";"],Qe.WHITE),ab=(0,Ge.default)(xm.Text).withConfig({displayName:"pending_deletion_banner__CTAText",componentId:"sc-dj7x2j-3"})(["font-size:12px;font-weight:900;color:",";"],Qe.WHITE);const sb=()=>{const e=i18n.lookup("pending_deletion_banner.email");return(0,X.jsx)(nb,{children:(0,X.jsx)(ib,{children:(0,X.jsxs)(ob,{children:[i18n.t("pending_deletion_banner.title")," ",e&&(0,X.jsx)(ab,{onPress:()=>function(e){bs.default.openURL(`mailto:${e}`)}(e),children:e})]})})})},rb=(0,Ge.default)(qe.default).withConfig({displayName:"no_requests__Container",componentId:"sc-63bqcp-0"})(["margin:43px;padding:16px 16px 24px 16px;border:1px solid ",";border-radius:10px;align-items:center;"],Qe.GREEN_SUMMER_GRASS),lb=Ge.default.Image.withConfig({displayName:"no_requests__Image",componentId:"sc-63bqcp-1"})(["width:64px;height:64px;"]),db=n(16224),cb=(0,Ge.default)(Be.default).withConfig({displayName:"no_requests__Heading",componentId:"sc-63bqcp-2"})(["font-weight:700;font-size:16px;color:",";margin-top:6px;"],Qe.TEXT_DARK),ub=(0,Ge.default)(Be.default).withConfig({displayName:"no_requests__Body",componentId:"sc-63bqcp-3"})(["font-weight:400;font-size:14px;color:",";margin-top:12px;text-align:center;"],Qe.TEXT_DARK),pb=(0,Ge.default)(Da.default).withConfig({displayName:"no_requests__Cta",componentId:"sc-63bqcp-4"})(["margin:24px 0 0 0;max-width:241px;background-color:",";width:100%;padding:16px 0;justify-content:center;flex-direction:row;border-radius:10px;align-items:center;"],Qe.GREEN_SUMMER_GRASS),mb=(0,Ge.default)(Be.default).withConfig({displayName:"no_requests__CtaText",componentId:"sc-63bqcp-5"})(["color:",";font-weight:700;font-size:15px;padding-right:4px;"],Qe.WHITE),fb=()=>{const e=(0,Ks.useHistory)(),{session:{currentUser:t},analytics:{autoTrackEnhanced:n}}=lt();return(0,X.jsxs)(rb,{children:[(0,X.jsx)(lb,{source:db}),(0,X.jsx)(cb,{children:i18n.t("dashboard.no_requests.heading")}),t.isFreelance&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ub,{children:i18n.t("dashboard.no_requests.body")}),(0,X.jsxs)(pb,{onPress:()=>{n({userFlow:La,action:Xa.click,objectName:"find customers"}),e.push("/provider/offers")},children:[(0,X.jsx)(mb,{children:i18n.t("dashboard.no_requests.cta")}),(0,X.jsx)(Pa.default,{name:"arrow-forward",size:18,color:Qe.WHITE})]})]})]})},gb="top",hb="average",_b="below",xb="top",yb="good",vb="building";var bb=n(12619),wb=n.n(bb),Cb=n(60214),jb=n.n(Cb);const Ib=xt`
2072  query reliabilityDetails {
2073    stats {
2074      reliabilityRating
2075    }
2076    performanceScoreGroup
2077  }
2078`,Tb=()=>{const{data:e,error:t,loading:n}=(0,Is.useQuery)(Ib,{context:{apiVersion:3}});return{data:e,error:t,loading:n}},Eb=xt`
2079  query executedEventsInLast4Months {
2080    executedEventsInLast4Months {
2081      eventsCount
2082      month
2083    }
2084  }
2085`,Nb=xt`
2086  query longTermCustomers($first: Int, $after: String) {
2087    longTermCustomers(first: $first, after: $after) {
2088      nodes {
2089        customerName
2090        customerUserId
2091        executedEventsCount
2092        firstEventExecutedAt
2093        fifthEventExecutedAt
2094      }
2095      pageInfo {
2096        hasNextPage
2097        endCursor
2098      }
2099      totalCount
2100    }
2101  }
2102`,kb=xt`
2103  query providerDrivenCancellations($first: Int, $after: String) {
2104    providerDrivenCancellations(first: $first, after: $after) {
2105      nodes {
2106        id
2107        customer {
2108          name
2109        }
2110        reasonCode
2111        cancelledAt
2112        bid {
2113          frequency
2114          starttime
2115          duration
2116          address {
2117            address
2118            address1
2119            address2
2120          }
2121        }
2122      }
2123      pageInfo {
2124        hasNextPage
2125        endCursor
2126      }
2127      totalCount
2128    }
2129  }
2130`,Rb=xt`
2131  query stats {
2132    stats {
2133      last90DaysProviderDrivenShortNoticeCancellationsCount
2134      last90DaysProviderDrivenCancellationsCount
2135    }
2136  }
2137`,Sb=(0,Ge.default)(lm).withConfig({displayName:"reliability_score_badge__Container",componentId:"sc-rurdxc-0"})(["flex-direction:row;justify-content:center;background-color:",";padding:5px;border-radius:5px;align-items:center;margin-bottom:5px;"],Qe.WHITE),Ab=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_score_badge__ReliabilityText",componentId:"sc-rurdxc-1"})(["font-size:14px;padding-left:2px;font-size:16px;color:",";"],({color:e})=>e),Pb=(0,Ge.default)(pu.default).attrs(()=>({source:n(15565)})).withConfig({displayName:"reliability_score_badge__AboveAverage",componentId:"sc-rurdxc-2"})(["height:24px;width:24px;margin-right:2px;"]),Db=(0,Ge.default)(pu.default).attrs(()=>({source:n(9881)})).withConfig({displayName:"reliability_score_badge__Average",componentId:"sc-rurdxc-3"})(["height:24px;width:24px;margin-right:2px;"]),Mb=(0,Ge.default)(pu.default).attrs(()=>({source:n(73369)})).withConfig({displayName:"reliability_score_badge__BelowAverage",componentId:"sc-rurdxc-4"})(["height:24px;width:24px;margin-right:2px;"]),Ob=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_score_badge__Error",componentId:"sc-rurdxc-5"})(["color:",";text-align:center;"],Qe.CRIMSON_1),zb={[gb]:(0,X.jsx)(Pb,{}),[hb]:(0,X.jsx)(Db,{}),[_b]:(0,X.jsx)(Mb,{})},Lb={[gb]:Qe.GREEN_SUMMER_GRASS,[hb]:Qe.TEAL_2,[_b]:Qe.VIOLET_2},qb=({elevation:e=0})=>{const{session:{currentUser:{workStatus:t}}}=lt(),{data:n,error:i,loading:o}=Tb();if(o)return(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS});if(i)return(0,X.jsx)(Ob,{children:i18n.t("provider.generic.error")});const{performanceScoreGroup:a}=n,s=function({performanceScoreGroup:e,workStatus:t}){return e===xb||e===yb?gb:t!==xo.trial||e&&e!==vb?_b:hb}({performanceScoreGroup:a,workStatus:t});return(0,X.jsxs)(Sb,{elevation:e,children:[zb[s],(0,X.jsx)(Ab,{color:Lb[s],children:i18n.t(`reliability_metrics.average_reliability.${s}`)})]})},Bb=(0,Ge.default)(qe.default).withConfig({displayName:"reliability_score__Wrapper",componentId:"sc-130m2fq-0"})(["flex-direction:column;align-items:",";"],({center:e})=>e?"center":"flex-start"),Gb=({elevation:e=0,center:t=!1})=>(0,X.jsx)(Bb,{center:t,children:(0,X.jsx)(qb,{elevation:e})}),Ub=(0,Ge.default)(qe.default).withConfig({displayName:"reliability_metric__Container",componentId:"sc-102mblm-0"})(["align-items:center;background-color:",";border-radius:10px;padding:10px;margin:10px 16px 0px 16px;"],Qe.VIOLET_5),$b=(0,Ge.default)(qe.default).withConfig({displayName:"reliability_metric__Wrapper",componentId:"sc-102mblm-1"})(["margin:15px;"]),Fb=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_metric__Title",componentId:"sc-102mblm-2"})(["font-weight:500;font-size:18px;color:",";"],Qe.TEXT_DARK),Hb=(0,Ge.default)(ms).withConfig({displayName:"reliability_metric__Cta",componentId:"sc-102mblm-3"})(["margin-bottom:10px;height:34px;"]),Wb=()=>{const{analytics:{autoTrackEnhanced:e}}=lt(),t=lu(),{data:n}=Tb();return(0,X.jsxs)(Ub,{children:[(0,X.jsx)(Fb,{children:i18n.t("reliability_metrics.current_status.title")}),(0,X.jsx)($b,{children:(0,X.jsx)(Gb,{center:!0})}),(0,X.jsx)(Hb,{color:Qe.CTA_PURPLE,textColor:Qe.WHITE,onPress:()=>{e({userFlow:La,action:Xa.click,objectName:"view reliability metrics",properties:{reliabilityStatus:null===n||void 0===n?void 0:n.performanceScoreGroup}}),t("/provider/reliability_metrics")},children:i18n.t("reliability_metrics.view_metrics")})]})},Vb=_t.gql`
2138  query providerFetchRatingsAndReferences {
2139    currentProvider {
2140      id
2141      avgRating {
2142        communication
2143        quality
2144        reliability
2145        total
2146      }
2147      stats {
2148        ratingPercentage
2149        responded
2150        respondedPercentage
2151        jobsDone
2152        jobsDonePercentage
2153      }
2154      ratings(first: 10) {
2155        edges {
2156          node {
2157            id
2158            comment
2159            communication
2160            customer
2161            quality
2162            reliability
2163            total
2164            createdAtFormatted
2165            commentResponse
2166            commentResponseStatus
2167            commentResponseSubmittedAt
2168          }
2169        }
2170      }
2171      references: ratings(first: 5, references: true) {
2172        edges {
2173          node {
2174            id
2175            comment
2176            communication
2177            customer
2178            quality
2179            reliability
2180            total
2181            createdAtFormatted
2182          }
2183        }
2184      }
2185      finishedEventsCount
2186    }
2187    unratedRelationships {
2188      customer {
2189        id
2190        name
2191      }
2192      id
2193      lastPastEvent {
2194        startTime
2195      }
2196    }
2197  }
2198`,Kb=_t.gql`
2199  query providerFetchRatingsAndReferencesCount {
2200    currentProvider {
2201      id
2202      ratings {
2203        totalCount
2204      }
2205      references: ratings(references: true) {
2206        totalCount
2207      }
2208    }
2209  }
2210`,Yb=()=>{var e,t,n,i;const{data:o,error:a,loading:s,refetch:r}=(0,Is.useQuery)(Kb),l=(null===o||void 0===o||null===(e=o.currentProvider)||void 0===e||null===(t=e.ratings)||void 0===t?void 0:t.totalCount)||0,d=(null===o||void 0===o||null===(n=o.currentProvider)||void 0===n||null===(i=n.references)||void 0===i?void 0:i.totalCount)||0;return{data:{ratingsCount:l,referencesCount:d,totalCount:l+d},loading:s,error:a,refetch:r}},Xb=xt`
2211  mutation respondToRatingComment($ratingId: ID!, $response: String!) {
2212    respondToRatingComment(ratingId: $ratingId, response: $response) {
2213      success
2214      errors {
2215        code
2216        message
2217      }
2218    }
2219  }
2220`,Zb=(0,Ge.default)(qe.default).withConfig({displayName:"no_references_card__Container",componentId:"sc-8pih8p-0"})(["background-color:",";align-items:center;border-radius:10px;padding:12px;margin:10px 16px 0px 16px;"],Qe.GREEN_FROSTY_GREEN),Qb=(0,Ge.default)(qe.default).withConfig({displayName:"no_references_card__Content",componentId:"sc-8pih8p-1"})(["width:100%;max-width:",";gap:16px;"],({isDesktop:e})=>e?"300px":"100%"),Jb=(0,Ge.default)(qe.default).withConfig({displayName:"no_references_card__Body",componentId:"sc-8pih8p-2"})(["flex-direction:row;gap:8px;"]),ew=(0,Ge.default)(pu.default).withConfig({displayName:"no_references_card__LightningIcon",componentId:"sc-8pih8p-3"})(["width:44px;height:44px;"]),tw=n(19051),nw=(0,Ge.default)(Be.default).withConfig({displayName:"no_references_card__Description",componentId:"sc-8pih8p-4"})(["flex:1;font-weight:600;font-size:16px;color:",";"],Qe.GREEN_GROWN_UP_GREEN),iw=(0,Ge.default)(ms).withConfig({displayName:"no_references_card__Cta",componentId:"sc-8pih8p-5"}
2220)(["height:40px;width:100%;"]),ow=()=>{const e=(0,Ks.useHistory)(),{isDesktop:t}=uu(),{data:n,loading:i,error:o}=Yb();return i||o||(null===n||void 0===n?void 0:n.totalCount)>0?null:(0,X.jsx)(Zb,{children:(0,X.jsxs)(Qb,{isDesktop:t,children:[(0,X.jsxs)(Jb,{children:[(0,X.jsx)(ew,{source:tw}),(0,X.jsx)(nw,{children:i18n.t("dashboard.no_references_card.content")})]}),(0,X.jsx)(iw,{eventAction:"get references",eventLabel:"from dashboard",stretched:!0,color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,onPress:()=>e.push(Ki()),children:i18n.t("dashboard.no_references_card.cta")})]})})},aw=xt`
2221  query providerFetchPricing {
2222    avgRating {
2223      total
2224    }
2225    service(id: "cleaning.home") {
2226      priceSetting {
2227        providerOneOffPrice
2228        providerRepeatPrice
2229        suggestedOneOffPrice
2230        suggestedRepeatPrice
2231        suggestedEnhancedOneOffPrice
2232        suggestedEnhancedRepeatPrice
2233        peakTime {
2234          enabled
2235          oneOffPrice
2236          repeatPrice
2237        }
2238        travel {
2239          enabled
2240          oneOffPrice
2241          repeatPrice
2242        }
2243        limits {
2244          oneOffMinPrice
2245          oneOffMaxPrice
2246          recurringMinPrice
2247          recurringMaxPrice
2248        }
2249        potentialEarnings {
2250          total
2251          customers {
2252            id
2253            name
2254            relationship {
2255              id
2256              hasPendingPriceChangeRequest
2257              canRequestPriceChange
2258              canRequestPriceChangeWithForm
2259              providerRepeatPrice
2260              remainingEventsCountBeforePriceChange
2261            }
2262          }
2263        }
2264      }
2265    }
2266    stats {
2267      ratingPercentage
2268      responded
2269      respondedPercentage
2270      jobsDone
2271      jobsDonePercentage
2272    }
2273  }
2274`,sw=()=>{const{loading:e,data:t,error:n,refetch:i}=(0,Is.useQuery)(aw,{context:{apiVersion:3}}),{service:{priceSetting:{providerOneOffPrice:o,providerRepeatPrice:a,suggestedOneOffPrice:s,suggestedRepeatPrice:r,suggestedEnhancedOneOffPrice:l,suggestedEnhancedRepeatPrice:d,peakTime:c,travel:u,limits:p,potentialEarnings:m}={}}={},avgRating:f,stats:g}=t||{};return{loading:e,priceRecommendations:{adhocPrice:s,repeatPrice:r},enhancedPriceRecommendations:s&&d?{adhocPrice:l,repeatPrice:d}:null,avgRating:f,stats:g,prices:{oneOffPrice:o,recurringPrice:a},peakTime:c,travel:u,potentialEarnings:m,priceLimits:p,error:n,refetch:i}},rw=xt`
2275  query fetchCleaningServiceCommissions($price: Int!, $type: RepeatOrOneOffEnum!) {
2276    service(id: "cleaning.home") {
2277      commissions(price: $price, type: $type) {
2278        customerPrice
2279        helplingCommission
2280        providerCommission
2281      }
2282    }
2283  }
2284`,lw=()=>{var e;const[t,{loading:n,data:i,error:o}]=(0,kn.useLazyQuery)(rw);return{fetchPriceWithCommissions:(e,n)=>t({variables:{price:e,type:n},context:{apiVersion:3}}),priceWithCommissions:null===i||void 0===i||null===(e=i.service)||void 0===e?void 0:e.commissions,loading:n,error:o}},dw=xt`
2285  mutation updateProviderPrices(
2286    $baseOneOffPrice: Int
2287    $baseRepeatPrice: Int
2288    $peakTimeOneOffPrice: Int
2289    $peakTimeRepeatPrice: Int
2290    $travelOneOffPrice: Int
2291    $travelRepeatPrice: Int
2292  ) {
2293    updateProviderPrices(
2294      baseOneOffPrice: $baseOneOffPrice
2295      baseRepeatPrice: $baseRepeatPrice
2296      peakTimeOneOffPrice: $peakTimeOneOffPrice
2297      peakTimeRepeatPrice: $peakTimeRepeatPrice
2298      travelOneOffPrice: $travelOneOffPrice
2299      travelRepeatPrice: $travelRepeatPrice
2300    ) {
2301      success
2302      errors {
2303        code
2304        message
2305        path
2306      }
2307    }
2308  }
2309`,cw="one_off",uw="repeat",pw="recurring",mw=cw,fw=[pw,mw],gw=(0,Ge.default)(qe.default).withConfig({displayName:"review_price_card__Container",componentId:"sc-1qjwrnj-0"})(["background-color:",";align-items:center;border-radius:10px;padding:12px;margin:10px 16px 0px 16px;"],Qe.GREEN_FROSTY_GREEN),hw=(0,Ge.default)(qe.default).withConfig({displayName:"review_price_card__Content",componentId:"sc-1qjwrnj-1"})(["width:100%;max-width:",";gap:16px;"],({isDesktop:e})=>e?"300px":"100%"),_w=(0,Ge.default)(qe.default).withConfig({displayName:"review_price_card__Body",componentId:"sc-1qjwrnj-2"})(["flex-direction:row;gap:8px;"]),xw=(0,Ge.default)(pu.default).withConfig({displayName:"review_price_card__LightningIcon",componentId:"sc-1qjwrnj-3"})(["width:44px;height:44px;"]),yw=n(23574),vw=(0,Ge.default)(Be.default).withConfig({displayName:"review_price_card__Description",componentId:"sc-1qjwrnj-4"})(["flex:1;font-weight:600;font-size:16px;color:",";"],Qe.GREEN_GROWN_UP_GREEN),bw=(0,Ge.default)(ms).withConfig({displayName:"review_price_card__Cta",componentId:"sc-1qjwrnj-5"}
2309)(["height:40px;width:100%;"]),ww=()=>{const e=(0,Ks.useHistory)(),{isDesktop:t}=uu(),{autoTrack:n}=mt(),{data:i,loading:o,error:a}=Yb(),{priceRecommendations:s,enhancedPriceRecommendations:r,prices:l,loading:d}=sw(),c=r||s||{},u=c.adhocPrice-l.oneOffPrice>100,p=c.repeatPrice-l.recurringPrice>100,m=u||p,f=(0,K.useCallback)(()=>{n("User clicked on review your price","from dashboard"),e.push(Ui(u?mw:pw))},[e,Ui,u,n]);return o||d||a||0===(null===i||void 0===i?void 0:i.totalCount)||!m?null:(0,X.jsx)(gw,{children:(0,X.jsxs)(hw,{isDesktop:t,children:[(0,X.jsxs)(_w,{children:[(0,X.jsx)(xw,{source:yw}),(0,X.jsx)(vw,{children:i18n.t("dashboard.review_price_card.content")})]}),(0,X.jsx)(bw,{stretched:!0,color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,onPress:f,children:i18n.t("dashboard.review_price_card.cta")})]})})},Cw=["width","height"],jw=e=>{let{width:t=64,height:n=64}=e,i=(0,A.default)(e,Cw);return(0,X.jsxs)(Wu.default,Object.assign({width:t,height:n,viewBox:"0 0 64 64",fill:"none"},i,{children:[(0,X.jsx)(Wu.Path,{d:"M56 20v27.334A8.667 8.667 0 0147.333 56H16.667A8.667 8.667 0 018 47.334V20l24-2.666L56 20z",fill:"#BED2CE"}),(0,X.jsx)(Wu.Path,{d:"M47.333 8A8.667 8.667 0 0156 16.667v4.666H8v-4.666A8.667 8.667 0 0116.667 8h30.666zM46.667 32a14.667 14.667 0 110 29.333 14.667 14.667 0 010-29.333z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M54.667 37.334A1.333 1.333 0 0156 38.667V44a1.333 1.333 0 01-1.333 1.334h-5.333a1.333 1.333 0 110-2.667H52a6.667 6.667 0 00-10.738.096 1.334 1.334 0 01-2.16-1.563 9.335 9.335 0 0114.232-1.066v-1.467a1.333 1.333 0 011.333-1.333zM40 53.2v1.467a1.334 1.334 0 01-2.666 0v-5.333A1.333 1.333 0 0138.667 48H44a1.333 1.333 0 010 2.667h-2.666a6.653 6.653 0 005.333 2.667 6.648 6.648 0 005.096-2.368 1.333 1.333 0 012.037 1.72A9.333 9.333 0 0140 53.2z",fill:"#EFF4F3"})]}))};var Iw=n(31080),Tw=n(63649),Ew=n(77123);const Nw=(0,Te.observer)(({message:e,type:t,position:n="top",duration:i=3e3,style:o})=>{const a=(0,Re.useSafeAreaInsets)(),{toast:{close:s}}=lt(),r=a.top<20?20:a.top,l="center"===n,d=l?0:-50,c=(0,K.useRef)(new Tw.default.Value(d)).current,u=l?1:"top"===n?r:a.bottom;(0,K.useEffect)(()=>{Tw.default.timing(c,{toValue:u,duration:300,useNativeDriver:l}).start()},[c]);const p={position:"absolute",alignSelf:"center",zIndex:1e3,width:"100%"},m="top"===n?Object.assign({top:c},p):"bottom"===n?Object.assign({bottom:c},p):Object.assign({opacity:c,top:"45%"},p);return(0,X.jsx)(Tw.default.View,{style:m,testID:`ToastAnimatedView::${t}`,children:(0,X.jsx)(Ew.default,{message:e,type:t,position:n,duration:i,style:o,close:s})})});Nw.propTypes={message:qc.default.string.isRequired,type:qc.default.string,position:qc.default.string,duration:qc.default.number,style:qc.default.object};const kw=["message","showPopupToast"],{height:Rw}=Iw.default.get("screen"),Sw=(0,Ge.default)(gs).withConfig({displayName:"popup_modal__StyledModal",componentId:"sc-mprseb-0"})(["display:flex;align-items:center;justify-content:",";flex:1;margin:0px;padding:0px;padding-top:","px;"],({desktop:e})=>e?"center":"flex-end",({$paddingTop:e})=>e>0?e:0),Aw=(0,Ge.default)(qe.default).withConfig({displayName:"popup_modal__Header",componentId:"sc-mprseb-1"})(["padding:9px 0 0;flex-direction:row;justify-content:space-between;align-items:center;"]),Pw=(0,Ge.default)(Be.default).withConfig({displayName:"popup_modal__Title",componentId:"sc-mprseb-2"})(["text-align:center;font-size:14px;color:",";font-weight:500;flex:1;"],Qe.TEXT_DARK),Dw=(0,Ge.default)(ts).withConfig({displayName:"popup_modal__CloseButton",componentId:"sc-mprseb-3"})(["right:15px;top:15px;padding:7px;width:40px;position:absolute;z-index:99;"]),Mw=(0,Ge.default)(qe.default).withConfig({displayName:"popup_modal__Body",componentId:"sc-mprseb-4"})(["width:100%;max-width:",";"," max-height:100%;padding-top:10px;padding-bottom:","px;align-content:center;border-top-left-radius:",";border-top-right-radius:",";border-bottom-left-radius:",";border-bottom-right-radius:",";background-color:",";display:flex;position:relative;"],({maxWidth:e})=>e,({height:e})=>e&&` height: ${e};`,({paddingBottom:e})=>e>0?e:0,({desktop:e})=>e?"40px":"10px",({desktop:e})=>e?"40px":"10px",({desktop:e})=>e?"40px":"0px",({desktop:e})=>e?"40px":"0px",Qe.WHITE),Ow={desktop:{xsmall:{maxWidth:"30%"},small:{height:"50%",maxWidth:"50%"},normal:{height:"90%",maxWidth:"750px"},medium:{height:"90%",maxWidth:"750px"},big:{height:"100%",maxWidth:"750px"},fit:{height:null,maxWidth:"50%"}},mobile:{xsmall:{maxWidth:"100%"},small:{height:Rw<500?"90%":"60%",maxWidth:"100%"},normal:{height:Rw<500?"90%":"85%",maxWidth:"100%"},medium:{height:"90%",maxWidth:"100%"},big:{height:"100%",maxWidth:"100%"},fit:{height:null,maxWidth:"100%"}}},zw=(0,Te.observer)(({isOpen:e,children:t,displayCloseButton:n,onClose:i,size:o="normal",style:a,title:s,onModalHide:r,testID:l})=>{const d=lt(),{toast:{message:c,showPopupToast:u}}=d,p=(0,A.default)(d.toast,kw),{isDesktop:m}=uu(),{top:f,bottom:g}=(0,Re.useSafeAreaInsets)(),{height:h,maxWidth:_}=Ow[m?"desktop":"mobile"][o];return(0,X.jsxs)(Sw,{isVisible:e,onBackdropPress:i,onRequestClose:i,style:{margin:0},desktop:m,onModalHide:r,$paddingTop:f,children:[u&&(0,X.jsx)(Nw,Object.assign({message:c},p)),(0,X.jsxs)(Mw,{desktop:m,paddingBottom:g,maxWidth:_,height:h,style:a,testID:l,children:[s&&(0,X.jsx)(Aw,{children:(0,X.jsx)(Pw,{children:s})}),n&&(0,X.jsx)(Dw,{onPress:i,testID:l?`${l}:close`:void 0,children:(0,X.jsx)(Pa.default,{name:"close",size:20,color:Qe.TEXT_DARK})}),t]})]})}),Lw=(0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar_modal__Bar",componentId:"sc-14m48x2-0"})(["background-color:",";height:4px;width:54px;align-self:center;"],Qe.GRAY_BORDER),qw=(0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar_modal__
2309Container",componentId:"sc-14m48x2-1"})(["padding:12px 20px 16px 20px;justify-content:space-between;"]),Bw=(0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar_modal__IconContainer",componentId:"sc-14m48x2-2"})(["width:100%;padding:32px;align-items:center background-color:",";border-radius:10px;"],Qe.GREEN_WINTER_MIST),Gw=(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__Title",componentId:"sc-14m48x2-3"})(["font-size:18px;font-weight:600;color:",";margin-top:32px;"],Qe.TEXT_DARK),Uw=(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__Description",componentId:"sc-14m48x2-4"})(["font-size:15px;font-weight:500;color:",";margin-top:16px;"],Qe.TEXT_DARK),$w=(0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar_modal__InfoBox",componentId:"sc-14m48x2-5"})(["margin-top:16px;background-color:",";padding:9px 10px;flex-direction:row;align-items:center;border-radius:6px;margin-bottom:24px;"],Qe.GOLD_5),Fw=(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__InfoBoxText",componentId:"sc-14m48x2-6"})(["color:",";font-size:15px;margin-left:10px;flex-shrink:1;"],Qe.GRAY_0),Hw=(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__InfoBoxBoldText",componentId:"sc-14m48x2-7"})(["font-weight:700;color:",";"],Qe.GRAY_0),Ww=(0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar_modal__ButtonGroup",componentId:"sc-14m48x2-8"})(["gap:12px;"]),Vw=(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__CalendarButtonText",componentId:"sc-14m48x2-9"})(["font-size:15px;font-weight:600;color:",";margin-left:12px;flex:1;text-align:center;"],Qe.WHITE),Kw=(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__Tip",componentId:"sc-14m48x2-10"})(["font-size:14px;font-weight:500;color:",";text-align:center;margin-top:12px;"],Qe.GRAY_2),Yw=((0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar_modal__AppleCalendarButton",componentId:"sc-14m48x2-11"})(["flex-direction:row;align-items:center;padding:16px;border-width:1px;border-color:",";border-radius:8px;margin-bottom:24px;"],Qe.GRAY_BORDER),(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar_modal__AppleCalendarButtonText",componentId:"sc-14m48x2-12"})(["font-size:14px;font-weight:600;color:",";margin-left:12px;flex:1;"],Qe.TEXT_DARK),(0,Te.observer)(({hideBanner:e,handleClose:t})=>{const{toast:{showToastMessage:n},externalCalendar:{openConnectCalendarModal:i,setOpenConnectCalendarModal:o},analytics:{autoTrack:a}}=lt(),{createHelplingPartnerCalendar:s}=_r();return(0,X.jsxs)(zw,{size:"fit",testID:"connect-calendar-modal",isOpen:i,onClose:()=>{a("User closed sync personal calendar modal","from sync personal calendar modal"),o(!1),t&&t()},children:[(0,X.jsx)(Lw,{}),(0,X.jsxs)(qw,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(Bw,{children:(0,X.jsx)(jw,{})}),(0,X.jsx)(Gw,{children:i18n.t("connect_calendar.connect_calendar_modal.title")}),(0,X.jsx)(Uw,{children:i18n.t("connect_calendar.connect_calendar_modal.description")}),(0,X.jsxs)($w,{children:[(0,X.jsx)(Pa.default,{set:Pa.SETS.MATERIAL_ICONS,name:"info-outline",size:16,color:Qe.GRAY_0}),(0,X.jsxs)(Fw,{children:[i18n.t("connect_calendar.connect_calendar_modal.info"),(0,X.jsx)(Hw,{children:i18n.t("connect_calendar.connect_calendar_modal.info_bold")})]})]})]}),!1,(0,X.jsxs)(Ww,{children:[(0,X.jsx)(ms,{stretched:!0,eventAction:"connect your calendar CTA",eventLabel:"from connect your calendar modal",onPress:async()=>{await s()&&(e&&e(),o(!1),t&&t(),n({message:i18n.t("connect_calendar.calender_sync.in_progress"),type:"warning"}))},children:(0,X.jsx)(Vw,{children:i18n.t("connect_calendar.connect_calendar_modal.connect_cta")})}),(0,X.jsx)(Kw,{children:i18n.t("connect_calendar.connect_calendar_modal.tip")})]})]})]})})),Xw=(0,Ge.default)(qe.default).withConfig({displayName:"tooltip__Container",componentId:"sc-fidws2-0"})(["background-color:",";margin-top:18px;padding:14px 16px;border-radius:10px;max-width:240px;border-width:1px;border-color:",";align-self:flex-end;margin-right:36px;"],Qe.WHITE,Qe.GRAY_4),Zw=(0,Ge.default)(qe.default).withConfig({displayName:"tooltip__Triangle",componentId:"sc-fidws2-1"})(["background-color:",";width:0;height:0;border-left-width:22px;border-right-width:0px;border-bottom-width:23px;border-left-color:transparent;border-right-color:transparent;border-bottom-color:",";border-radius:4px;transform:rotate(45deg);position:absolute;top:-6px;left:32px;"],Qe.WHITE,Qe.WHITE),Qw=(0,Ge.default)(ts).withConfig({displayName:"tooltip__CloseButton",componentId:"sc-fidws2-2"})(["position:absolute;top:12px;right:12px;z-index:99;"]),Jw=(0,Ge.default)(qe.default).withConfig({displayName:"tooltip__TitleContainer",componentId:"sc-fidws2-3"})(["align-self:flex-start;align-items:center;background-color:",";padding:4px 8px;border-radius:10px;"],Qe.GOLD_5),eC=(0,Ge.default)(Be.default).withConfig({displayName:"tooltip__Title",componentId:"sc-fidws2-4"})(["font-size:11px;font-weight:600;color:",";"],Qe.TEXT_DARK),tC=(0,Ge.default)(Be.default).withConfig({displayName:"tooltip__Description",componentId:"sc-fidws2-5"})(["margin-top:8px;font-size:13px;font-weight:500;color:",";line-height:18px;
2309"],Qe.GRAY_0),nC=({title:e,description:t,onClose:n})=>(0,X.jsxs)(Xw,{children:[(0,X.jsx)(Zw,{}),(0,X.jsx)(Qw,{onPress:n,eventAction:"close CTA of the tooltip",eventLabel:"from dashboard page",children:(0,X.jsx)(Pa.default,{name:"close",size:16,color:Qe.GRAY_3})}),!!e&&(0,X.jsx)(Jw,{children:(0,X.jsx)(eC,{children:e})}),(0,X.jsx)(tC,{children:t})]}),iC=(0,Ge.default)(ts).withConfig({displayName:"tooltip_mask_overlay__Container",componentId:"sc-urqylh-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;"]),oC=({maskPosition:e,onClose:t})=>(0,X.jsx)(iC,{pointerEvents:"box-none",onPress:t,eventAction:"overlay to close tooltip",eventLabel:"from dashboard page",children:(0,X.jsxs)(Wu.default,{width:"100%",height:"100%",children:[(0,X.jsxs)(Wu.Mask,{id:"mask",children:[(0,X.jsx)(Wu.Rect,{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),(0,X.jsx)(Wu.Rect,{x:e.x,y:e.y,width:e.width,height:e.height,fill:"black",rx:10})]}),(0,X.jsx)(Wu.Rect,{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(0, 0, 0, 0.3)",mask:"url(#mask)"})]})}),aC=(0,Ge.default)(qe.default).withConfig({displayName:"tooltip_overlay__Container",componentId:"sc-1crejr3-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;"]),sC=({maskPosition:e,tooltipTitle:t,tooltipDescription:n,onClose:i})=>(0,X.jsxs)(aC,{pointerEvents:"box-none",children:[(0,X.jsx)(oC,{maskPosition:e,onClose:i}),(!!t||!!n)&&(0,X.jsx)(qe.default,{style:{position:"absolute",top:e.y+e.height,zIndex:1001,width:"100%"},children:(0,X.jsx)(nC,{title:t,description:n,onClose:i})})]}),rC=(0,K.createContext)(void 0),lC=()=>{const e=(0,K.useContext)(rC);if(!e)throw new Error("useWalkthroughTooltip must be used within a WalkthroughTooltipProvider");return e},dC=({children:e})=>{const[t,n]=(0,K.useState)(!0),[i,o]=(0,K.useState)(null),[a,s]=(0,K.useState)(0),[r,l]=(0,K.useState)(""),[d,c]=(0,K.useState)(""),u=(0,K.useRef)(null),p=(0,K.useCallback)(e=>{u.current=e},[]);return(0,X.jsxs)(rC.Provider,{value:{showTooltip:t,setShowTooltip:n,maskPosition:i,setMaskPosition:o,currentOrder:a,setCurrentOrder:s,tooltipTitle:r,setTooltipTitle:l,tooltipDescription:d,setTooltipDescription:c,setOnTooltipClose:p},children:[e,t&&i&&(0,X.jsx)(sC,{maskPosition:i,tooltipTitle:r,tooltipDescription:d,onClose:async()=>{try{var e;await(null===(e=u.current)||void 0===e?void 0:e.call(u))}finally{n(!1)}}})]})},cC=["order","tooltipTitle","tooltipDescription","onTooltipClose"],uC=e=>function(t){const{setMaskPosition:n,currentOrder:i,setTooltipTitle:o,setTooltipDescription:a,setOnTooltipClose:s}=lC(),r=(0,K.useRef)(null),{order:l,tooltipTitle:d,tooltipDescription:c,onTooltipClose:u}=t,p=(0,A.default)(t,cC);return(0,X.jsx)(e,Object.assign({ref:r,onLayout:()=>{r.current&&i===l&&r.current.measureInWindow((e,t,i,r)=>{n({x:e,y:t,width:i,height:r}),o(d),a(c),s(u??null)})}},p,{children:t.children}))},pC=(0,Ge.default)(qe.default).withConfig({displayName:"connect_calendar__Container",componentId:"sc-1kumc8r-0"})(["background-color:",";margin:12px 16px 0;padding:16px;border-radius:10px;"],Qe.GREEN_WINTER_MIST),mC=((0,Ge.default)(ts).withConfig({displayName:"connect_calendar__CloseButton",componentId:"sc-1kumc8r-1"})(["position:absolute;top:12px;right:12px;z-index:99;"]),(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar__Title",componentId:"sc-1kumc8r-2"})(["font-size:17px;font-weight:600;color:",";"],Qe.TEXT_DARK),(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar__Description",componentId:"sc-1kumc8r-3"})(["margin-top:13px;color:",";line-height:18px;"],Qe.GRAY_0),(0,Ge.default)(ts).withConfig({displayName:"connect_calendar__Cta",componentId:"sc-1kumc8r-4"})(["flex-direction:row;align-items:center;margin-top:12px;"]),(0,Ge.default)(Be.default).withConfig({displayName:"connect_calendar__CtaText",componentId:"sc-1kumc8r-5"})(["font-size:14px;font-weight:600;color:",";"],Qe.GREEN_GROWN_UP_GREEN),uC(pC),uC(qe.default),"#A9454B"),fC=(0,Ge.default)(qe.default).withConfig({displayName:"banner__Container",componentId:"sc-x7e4qq-0"})(["background-color:",";border-radius:12px;padding:16px;gap:16px;"],"#F6ECED"),gC=(0,Ge.default)(qe.default).withConfig({displayName:"banner__ContentRow",componentId:"sc-x7e4qq-1"})(["flex-direction:row;align-items:center;gap:12px;"]),hC=(0,Ge.default)(qe.default).withConfig({displayName:"banner__MessageContainer",componentId:"sc-x7e4qq-2"})(["flex:1;"]),_C=(0,Ge.default)(Be.default).withConfig({displayName:"banner__MessageText",componentId:"sc-x7e4qq-3"})(["font-size:16px;font-weight:600;color:",";line-height:20px;"],Qe.TEXT_DARK),xC=(0,Ge.default)(qe.default).withConfig({displayName:"banner__ButtonsRow",componentId:"sc-x7e4qq-4"})(["flex-direction:row;justify-content:space-between;gap:12px;"]),yC=(0,Ge.default)(ws.default).withConfig({displayName:"banner__Button",componentId:"sc-x7e4qq-5"})(["flex:1;border-radius:8px;padding:12px 16px;align-items:center;justify-content:center;background-color:",";border-width:","px;border-color:",";"],({$filled:e})=>e?mC:"transparent",({$filled:e})=>e?0:1,mC),vC=(0,Ge.default)(Be.default).withConfig({displayName:"banner__ButtonText",componentId:"sc-x7e4qq-6"})(["font-size:14px;font-weight:600;color:",";"],({$filled:e})=>e?Qe.WHITE:mC);const bC=({cases:e,onLearnMorePress:t,onContactUsPress:n})=>{const i=e.length>0,o=function(e){const t=e.map(e=>
2309e.suspensionEndsAt).filter(Boolean).map(e=>C.DateTime.fromISO(e)),n=t.length?t.reduce((e,t)=>e>t?e:t):null;return n?n.toFormat("dd LLLL"):""}(e);return(0,X.jsxs)(fC,{children:[(0,X.jsxs)(gC,{children:[(0,X.jsx)(Pa.default,{name:"alert-octagon",set:"MaterialCommunityIcons",size:24,color:mC}),(0,X.jsx)(hC,{children:(0,X.jsx)(_C,{children:o?i18n.t("has_new_offers_blocked.banner.message_v2",{date:o}):i18n.t("has_new_offers_blocked.banner.message")})})]}),(0,X.jsxs)(xC,{children:[(0,X.jsx)(yC,{onPress:t,children:(0,X.jsx)(vC,{children:i18n.t("has_new_offers_blocked.banner.learn_more")})}),!i&&(0,X.jsx)(yC,{onPress:n,$filled:!0,children:(0,X.jsx)(vC,{$filled:!0,children:i18n.t("has_new_offers_blocked.banner.contact_us")})})]})]})};bC.propTypes={cases:ze().arrayOf(ze().shape({id:ze().string.isRequired,topic:ze().string.isRequired,state:ze().string.isRequired})),onLearnMorePress:ze().func,onContactUsPress:ze().func};const wC=bC,CC=(0,Ge.default)(qe.default).withConfig({displayName:"danger__Background",componentId:"sc-1igfe05-0"})(["background-color:#fbf4ee;border-radius:12px;align-items:center;margin-bottom:24px;"]),jC=()=>(0,X.jsx)(CC,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/178,maxWidth:343},children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2686)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:178,rx:12,fill:"#FBF4EE"}),(0,X.jsx)(Wu.Path,{d:"M190.231 27h-36.462c-28.646 0-42.976 0-51.872 8.897C93 44.794 93 59.123 93 87.77v121.538c0 28.647 0 42.964 8.897 51.873 8.896 8.909 23.226 8.896 51.872 8.896h36.462c28.646 0 42.964 0 51.872-8.896C251 252.272 251 237.955 251 209.308V87.77c0-28.647 0-42.976-8.897-51.873-8.908-8.896-23.226-8.896-51.872-8.896z",fill:"#FBF4EE",stroke:"#2D2C25",strokeWidth:12.0784,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.31 27h-48.615l6.077 12.154h36.461L196.31 27z",fill:"#fff",stroke:"#2D2C25",strokeWidth:12.0784,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Rect,{x:132.828,y:76,width:79,height:79,rx:39.5,fill:"#FFE5CF"}),(0,X.jsxs)(Wu.G,{clipPath:"url(#clip1_1109_2686)",children:[(0,X.jsx)(Wu.Path,{transform:"translate(161 102)",fill:"#5B2519",d:"M0 0H24V28H0z"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M162.837 95.351A4.609 4.609 0 01166.093 94h12.814a4.609 4.609 0 013.256 1.351l10.489 10.486a4.608 4.608 0 011.348 3.256v12.814a4.609 4.609 0 01-1.351 3.256l-10.486 10.489a4.608 4.608 0 01-3.256 1.348h-12.814a4.609 4.609 0 01-3.256-1.351l-10.489-10.483a4.613 4.613 0 01-1.348-3.259v-12.814a4.59 4.59 0 011.351-3.256l10.486-10.486zm9.663 8.244a2.304 2.304 0 012.304 2.304v9.982a2.304 2.304 0 01-4.608 0v-9.982a2.304 2.304 0 012.304-2.304zm3.071 20.732a3.07 3.07 0 11-6.141.002 3.07 3.07 0 016.141-.002z",fill:"#FF9970"})]}),(0,X.jsx)(Wu.Path,{d:"M157.328 33h29.5",stroke:"#2D2C25",strokeWidth:9,strokeLinecap:"round"})]}),(0,X.jsxs)(Wu.Defs,{children:[(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2686",children:(0,X.jsx)(Wu.Rect,{width:343,height:178,rx:12,fill:"#fff"})}),(0,X.jsx)(Wu.ClipPath,{id:"clip1_1109_2686",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(151 94)",d:"M0 0H43V43H0z"})})]})]})});const IC=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:21,height:20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2121)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M10.385.365c-.41 0-.811.105-1.16.303-.35.199-.634.483-.82.821l-.004.006-8.16 15.151a1.944 1.944 0 00.092 2.012c.2.3.477.549.809.72a2.36 2.36 0 001.083.264H18.55a2.36 2.36 0 001.082-.264c.33-.173.608-.42.806-.72a1.944 1.944 0 00.092-2.01v-.002L12.367 1.495l-.002-.006a2.136 2.136 0 00-.82-.82 2.355 2.355 0 00-1.16-.304z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M11.498 7.073a.997.997 0 00-.326-.73 1.157 1.157 0 00-.787-.303c-.295 0-.578.108-.787.302a.997.997 0 00-.326.73v4.478c0 .274.117.537.326.73.209.194.492.303.787.303.295 0 .578-.109.787-.303a.997.997 0 00.325-.73V7.073zm-1.113 9.643c.393 0 .77-.146 1.049-.404a1.33 1.33 0 00.434-.974 1.33 1.33 0 00-.434-.974 1.543 1.543 0 00-1.05-.404c-.393 0-.77.146-1.048.404a1.33 1.33 0 00-.435.974c0 .365.157.716.435.974s.655.404 1.049.404z",fill:"#723219"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2121",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(0 .357)",d:"M0 0H20.7693V19.2858H0z"})})})]}))},TC=(0,Ge.default)(qe.default).withConfig({displayName:"pec_guidelines__Container",componentId:"sc-y6blaq-0"})(["background-color:#fbf4ee;padding:16px;border-radius:12px;flex-direction:row;align-items:center;gap:12px;"]),EC=(0,Ge.default)(qe.default).withConfig({displayName:"pec_guidelines__Content",componentId:"sc-y6blaq-1"})(["flex:1;"]),NC=(0,Ge.default)(Be.default).withConfig({displayName:"pec_guidelines__Description",componentId:"sc-y6blaq-2"})(["font-weight:600;font-size:14px;color:",";"],Qe.TEXT_DARK),kC=(0,Ge.default)(Be.default).withConfig({displayName:"pec_guidelines__GuidelinesLinkText",componentId:"sc-y6blaq-3"})(["font-weight:700;font-size:14px;color:#ff5713;text-decoration:underline;text-decoration-color:#ff5713;",""],"");function RC({beforeLinkPress:e=()=>{}}){return(0,X.jsxs)(TC,{children:[(0,X.jsx)(IC,{}),(0,X.jsx)(EC,{children:(0,X.jsxs)(NC,{children:[i18n.t("pec_guidelines.alert.description.part_
23091"),(0,X.jsx)(kC,{onPress:()=>{e(),ru(i18n.t("pec_guidelines.alert.link.url"))},children:i18n.t("pec_guidelines.alert.link.label")})]})})]})}RC.propTypes={beforeLinkPress:ze().func};const SC=(e,t,n=null)=>{const i=e.plus({seconds:t});return`${n?e.toFormat(n):e.toLocaleString(C.DateTime.TIME_SIMPLE)} - ${n?i.toFormat(n):i.toLocaleString(C.DateTime.TIME_SIMPLE)}`},AC=(e,t,n=null)=>`${e.toLocaleString(C.DateTime.DATE_MED)}, ${SC(e,t,n)}`,PC=(0,Ge.default)(qe.default).withConfig({displayName:"related_event_card__Container",componentId:"sc-178bw9a-0"})(["border:1px solid ",";border-left-color:#ff9970;border-left-width:8px;border-radius:8px;padding:12px 16px;gap:8px;"],Qe.GRAY_BORDER),DC=(0,Ge.default)(qe.default).withConfig({displayName:"related_event_card__Tag",componentId:"sc-178bw9a-1"})(["background-color:#fbf4ee;padding:4px 8px;border-radius:6px;align-self:flex-start;margin-bottom:4px;"]),MC=Ge.default.Text.withConfig({displayName:"related_event_card__TagText",componentId:"sc-178bw9a-2"})(["color:#723219;font-size:12px;font-weight:500;"]),OC=(0,Ge.default)(Be.default).withConfig({displayName:"related_event_card__Title",componentId:"sc-178bw9a-3"})(["color:",";font-weight:700;font-size:14px;"],Qe.GRAY_0),zC=(0,Ge.default)(Be.default).withConfig({displayName:"related_event_card__Description",componentId:"sc-178bw9a-4"})(["color:",";font-weight:500;font-size:14px;"],Qe.GRAY_0),LC=({kase:e,onPress:t})=>{var n,i,o;return e&&e.related?(0,X.jsx)(ws.default,{onPress:t,children:(0,X.jsxs)(PC,{children:[(0,X.jsx)(DC,{children:(0,X.jsx)(MC,{children:i18n.t(`has_new_offers_blocked.modal.event.topic.${e.topic}`)})}),(0,X.jsx)(OC,{children:`${null===(n=e.related.customer)||void 0===n?void 0:n.firstname} ${null===(i=e.related.customer)||void 0===i?void 0:i.lastname} (${i18n.t(`frequency_names.${e.related.period}`)})`}),(0,X.jsx)(zC,{children:(o=e.related,o?`${C.DateTime.fromISO(o.startTime).toFormat("cccc, LLLL d")}, ${SC(C.DateTime.fromISO(o.startTime),o.duration,o.timeFormat)}`:"-")})]})}):null},qC=(0,Ge.default)(qe.default).withConfig({displayName:"related_default_card__Container",componentId:"sc-1fmsubl-0"})(["border:1px solid ",";border-left-color:#ff9970;border-left-width:8px;border-radius:8px;padding:12px 16px;gap:8px;"],Qe.GRAY_BORDER),BC=(0,Ge.default)(qe.default).withConfig({displayName:"related_default_card__Tag",componentId:"sc-1fmsubl-1"})(["background-color:#fbf4ee;padding:4px 8px;border-radius:6px;align-self:flex-start;margin-bottom:4px;"]),GC=Ge.default.Text.withConfig({displayName:"related_default_card__TagText",componentId:"sc-1fmsubl-2"})(["color:#723219;font-size:12px;font-weight:500;"]),UC=({kase:e,onPress:t})=>(0,X.jsx)(ws.default,{onPress:t,children:(0,X.jsx)(qC,{children:(0,X.jsx)(BC,{children:(0,X.jsx)(GC,{children:i18n.t(`has_new_offers_blocked.modal.event.topic.${e.topic}`)})})})}),$C=(0,Ge.default)(qe.default).withConfig({displayName:"modal__Container",componentId:"sc-nnvl6y-0"})(["padding:48px 24px 24px;gap:24px height:100%;"]),FC=(0,Ge.default)(Be.default).withConfig({displayName:"modal__Title",componentId:"sc-nnvl6y-1"})(["font-size:20px;font-weight:700;color:",";"],Qe.TEXT_DARK),HC=(0,Ge.default)(qe.default).withConfig({displayName:"modal__Content",componentId:"sc-nnvl6y-2"})(["gap:16px;flex:1;"]),WC=(0,Ge.default)(ms).withConfig({displayName:"modal__StyledButton",componentId:"sc-nnvl6y-3"})(["width:100%;"]),VC=({cases:e,isOpen:t,onClose:n,onGuidelinePress:i,onContactUsPress:o,onLearnMorePress:a})=>{const s=e.length>0,r=1===e.length&&!!e.find(e=>jx(e));return(0,X.jsx)(zw,{isOpen:t,onClose:n,size:"normal",displayCloseButton:!0,children:(0,X.jsxs)($C,{children:[(0,X.jsxs)(Vf.default,{children:[(0,X.jsx)(jC,{}),(0,X.jsxs)(HC,{children:[(0,X.jsx)(FC,{children:r?i18n.t("has_new_offers_blocked.modal.provider_reactivation.title"):i18n.t("has_new_offers_blocked.modal.title")}),e.map(e=>{const t=(e=>e.related.startTime?LC:UC)(e);return(0,X.jsx)(t,{kase:e,onPress:()=>a(e.id)},e.id)}),(0,X.jsx)(RC,{beforeLinkPress:i})]})]}),s?(0,X.jsx)(WC,{onPress:a,children:i18n.t("has_new_offers_blocked.banner.learn_more")}):(0,X.jsx)(WC,{onPress:o,children:i18n.t("has_new_offers_blocked.banner.contact_us")})]})})};
2309VC.propTypes={cases:ze().arrayOf(ze().shape({id:ze().string.isRequired,topic:ze().string.isRequired,state:ze().string.isRequired})),isOpen:ze().bool.isRequired,onClose:ze().func.isRequired,onGuidelinePress:ze().func.isRequired,onContactUsPress:ze().func.isRequired,onLearnMorePress:ze().func.isRequired};const KC=VC,YC=async(e,t,n)=>{if(t){const t=await Ne.default.getItem("accessToken");return Pp.openBrowserAsync((({accessToken:e,redirect:t,country:n,failureRedirectUrl:i})=>{const o=`access_token=${e}&redirect_url=${encodeURIComponent(t)}&failure_redirect_url=${encodeURIComponent(i)}`,a=li.Buffer.from(o).toString("base64");return xi(`/mobile_auth?auth_params=${a}`,n)})({accessToken:t,redirect:e}))}return Pp.openBrowserAsync(e)},XC="Banner",ZC="Popup",QC=({userFlow:e=La,showBanner:t=!0,forceModalOpen:n=!1})=>{const[i,o]=(0,K.useState)(!1),{autoTrackEnhanced:a}=mt(),{data:s,loading:r}=(()=>{const{data:e,error:t,refetch:n,loading:i}=(0,Is.useQuery)(tx,{context:{apiVersion:3}});return{data:null===e||void 0===e?void 0:e.newOffersBlocked,loading:i,error:t}})(),l=(null===s||void 0===s?void 0:s.cases)||[],d=lu(),{session:{hasNewOffersBlockedModalDismissed:c,setHasNewOffersBlockedModalDismissed:u}}=lt(),p=!c||n,m=(t=XC)=>{a({userFlow:e,action:Xa.click,objectName:"New Offers Blocked Contact Us button",properties:{source:t}}),YC(i18n.t("has_new_offers_blocked.banner.contact_us_url"))},f=(t=XC,n)=>{if(a({userFlow:e,action:Xa.click,objectName:"New Offers Blocked Learn More button",properties:{source:t}}),n&&"string"===typeof n)return d(Li(n));if(1===l.length){const[e]=l;return jx(e)?d(Bi(e.id)):d(Li(e.id))}if(l.length>1){const e=l.some(e=>"open"===e.state);return d(e?Mi():Mi(j_))}return g()},g=()=>{o(!0),a({userFlow:e,action:Xa.view,objectName:"New Offers Blocked modal",properties:{}})};return(0,K.useEffect)(()=>{t&&a({userFlow:e,action:Xa.view,objectName:"New Offers Blocked banner",properties:{}})},[t]),(0,K.useEffect)(()=>{p&&g()},[p]),r?(0,X.jsx)(Aa.default,{}):(0,X.jsxs)(X.Fragment,{children:[t&&(0,X.jsx)(wC,{cases:l,onLearnMorePress:e=>f(XC,e),onContactUsPress:()=>m(XC)}),(0,X.jsx)(KC,{cases:l,isOpen:i,onClose:()=>{o(!1),u(!0),a({userFlow:e,action:Xa.close,objectName:"New Offers Blocked modal",properties:{}})},onGuidelinePress:()=>{a({userFlow:e,action:Xa.click,objectName:"New Offers Blocked Guidelines link",properties:{source:ZC}})},onLearnMorePress:e=>f(ZC,e),onContactUsPress:()=>m(ZC)})]})};QC.propTypes={userFlow:ze().oneOf([La,za]),showBanner:ze().bool,forceModalOpen:ze().bool};const JC=QC;const ej=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:34,height:34,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_2977_35543)",children:[(0,X.jsx)(Wu.Mask,{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:34,height:34,children:(0,X.jsx)(Wu.Path,{d:"M33.5 0H0v33.5h33.5V0z",fill:"#fff"})}),(0,X.jsx)(Wu.G,{mask:"url(#a)",children:(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.906 4.906a6.724 6.724 0 00-1.82 6.185A6.724 6.724 0 000 16.75a6.725 6.725 0 003.087 5.66 6.724 6.724 0 001.819 6.184 6.725 6.725 0 006.185 1.82A6.724 6.724 0 0016.75 33.5a6.724 6.724 0 005.66-3.087 6.725 6.725 0 006.184-1.819 6.725 6.725 0 001.82-6.184 6.724 6.724 0 003.086-5.66 6.724 6.724 0 00-3.087-5.66 6.725 6.725 0 00-1.819-6.184 6.724 6.724 0 00-6.184-1.82A6.725 6.725 0 0016.75 0a6.724 6.724 0 00-5.66 3.087 6.724 6.724 0 00-6.184 1.819z",fill:"#E2B35B",fillOpacity:.21})}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.825 22.022a3.824 3.824 0 117.648 0 3.824 3.824 0 01-7.648 0zm3.824-2.55a2.55 2.55 0 100 5.1 2.55 2.55 0 000-5.1z",fill:"#C78F27"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.825 22.022a3.824 3.824 0 117.648 0 3.824 3.824 0 01-7.648 0zm3.824-2.55a2.55 2.55 0 100 5.1 2.55 2.55 0 000-5.1z",fill:"#C78F27"}),(0,X.jsx)(Wu.Path,{d:"M10.033 24.051a1.785 1.785 0 001.984.368l11.22-4.96a1.778 1.778 0 00.538-2.886l-6.797-6.777a1.784 1.784 0 00-2.892.543L9.15 21.57a1.772 1.772 0 00.372 1.973l.51.51z",fill:"#C78F27"}),(0,X.jsx)(Wu.Path,{d:"M10.033 24.051a1.785 1.785 0 001.984.368l11.22-4.96a1.778 1.778 0 00.538-2.886l-6.797-6.777a1.784 1.784 0 00-2.892.543L9.15 21.57a1.772 1.772 0 00.372 1.973l.51.51zM20.308 8.019a.637.637 0 01.464.772l-.319 1.275a.636.636 0 11-1.236-.308l.319-1.275a.637.637 0 01.772-.464zm3.803 1.442a.637.637 0 010 .9l-1.275 1.276a.638.638 0 11-.902-.902l1.274-1.274a.638.638 0 01.903 0zm.823 3.638H23.66a.638.638 0 000 1.274h1.274a.637.637 0 000-1.274z",fill:"#C78F27"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_2977_35543",children:(0,X.jsx)(Wu.Path,{fill:"#fff",d:"M0 0H33.5V33.5H0z"})})})]}))},tj=(0,Ge.default)(qe.default).withConfig({displayName:"refer_a_friend__Container",componentId:"sc-1h657dn-0"})(["background-color:#f8f5ea;flex-direction:row;justify-content:space-between;align-items:center;padding:12px;gap:8px;border-radius:8px;"]),nj=(0,Ge.default)(Be.default).withConfig({displayName:"refer_a_friend__Title",componentId:"sc-1h657dn-1"})(["font-size:14px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK);function ij({schemeTotalAmount:e}){const t=fh(e,{withSymbol:!0,precision:0}),n=lu();return(0,X.jsx)(ws.default,{onPress:()=>n("/provider/refer_a_friend"),children:(0,X.jsxs)(tj,{children:[(0,X.jsx)(ej,{}),(0,X.jsx)(nj,{children:i18n.t("refer_a_friend.earn.banner.title",{value:t})}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,color:Qe.GRAY_3})]})})}const oj=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-3iwd22-0"})(["margin-bottom:20px;"]),aj=(0,Ge.default)(qe.default).withConfig({displayName:"content__TopWrapper",componentId:"sc-3iwd22-1"})(["background-color:",";"],Qe.WHITE),sj=(0,Ge.default)(qe.default).withConfig({displayName:"content__StripeAccountStatusWrapper",componentId:"sc-3iwd22-2"})(["",""],({isDesktop:e})=>e?"padding: 16px;":""),rj=(0,Ge.default)(qe.default).withConfig({displayName:"content__HasNewOffersBlockedWrapper",componentId:"sc-3iwd22-3"})(["padding:0 16px 8px;"]),lj=(0,Ge.default)(qe.default).withConfig({displayName:"content__ReferAFriendWrapper",componentId:"sc-3iwd22-4"})(["padding:0 16px 8px;"]),dj=(0,Ge.default)(qe.default).withConfig({displayName:"content__ResolutionCenterCard",componentId:"sc-3iwd22-5"})(["padding:8px 16px;
2309"]),cj=({showMyEarnings:e,limitAppPendingDeletion:t,addressChangeRequests:n,refetchAddressChangeRequests:i})=>{var o,a,s,r;const{pages:{dashboard:{unconfirmedEvents:l,notPostAgreedEvents:d,changeRequestsNotActioned:c,newRequestsNotActioned:u,selectedByCustomer:p}},session:{currentUser:{isFreelance:m,stripeAccount:f},counters:{openCases:g},countryConfig:{showTechnicalIssuesBanner:h,showFreelanceReliabilityStatus:_},settings:x},analytics:{autoTrack:y},changeRequests:{acceptChangeRequest:v,rejectChangeRequest:b,closeChangeRequest:w,acknowledgeChangeRequest:C}}=lt(),j=uu(),I=null===x||void 0===x||null===(o=x.viewPermissions)||void 0===o?void 0:o.hasNewOffersBlocked,{providerNoReferencesCardEnabled:T,providerReviewPriceCardEnabled:E}=ut(),[N,k]=(0,K.useState)(!0),R=null===x||void 0===x||null===(a=x.viewPermissions)||void 0===a?void 0:a.canSeeResolutionCenter,S=null===x||void 0===x||null===(s=x.viewPermissions)||void 0===s?void 0:s.canSeeReferAFriend,A=Number(g)>0,P=(0,Ks.useHistory)(),D=!(null!==l&&void 0!==l&&l.length)&&!(null!==c&&void 0!==c&&c.length)&&!(null!==u&&void 0!==u&&u.length)&&!(null!==p&&void 0!==p&&p.length)&&!(null!==d&&void 0!==d&&d.length)&&!(null!==n&&void 0!==n&&n.length);null===x||void 0===x||x.isProviderUnderExperimentAbTest(Mo);return(0,X.jsxs)(oj,{children:[I&&(0,X.jsx)(rj,{children:(0,X.jsx)(JC,{userFlow:La})}),t&&(0,X.jsx)(sb,{}),!1,T&&(0,X.jsx)(ow,{}),E&&(0,X.jsx)(ww,{}),f&&f.getUseCase()&&(0,X.jsx)(sj,{isDesktop:j,children:(0,X.jsx)(Oy,{})}),(0,X.jsx)(aj,{children:(0,X.jsx)(py,{})}),h&&(0,X.jsx)(eb,{style:{margin:"10px"}}),R&&A&&(0,X.jsx)(dj,{children:(0,X.jsx)(hg.default,{variant:tb.CARD_VARIANT.STATUS_DOT,dotColor:"#F24D61",title:i18n.t("resolution_center.dashboard_title"),subtitle:i18n.t("resolution_center.dashboard_subtitle",{openCases:g}),style:{backgroundColor:Qe.GRAY_4,boxShadow:"none"},onClick:()=>{y("User clicked on resolution center outstanding actions required card","from dashboard"),P.push(Mi())}})}),!!l.length&&(0,X.jsx)(Eg,{title:i18n.t("dashboard.unconfirmed_events.title"),count:l.length,scroll:!0,children:l.map(e=>(0,X.jsx)(mh,{event:e},e.id))}),e&&(0,X.jsx)(iy,{}),S&&(0,X.jsx)(lj,{children:(0,X.jsx)(ij,{schemeTotalAmount:null===(r=x.referralProgram)||void 0===r?void 0:r.schemeTotalAmount})}),_&&m&&(0,X.jsx)(Wb,{}),!!c&&!!(c.length+n.length)&&(0,X.jsxs)(Eg,{title:i18n.t("dashboard.change_requests.title"),count:c.length+n.length,scroll:!0,children:[c.map(e=>(0,X.jsx)(Lv,{changeRequest:e,acceptChangeRequest:v,rejectChangeRequest:b,closeChangeRequest:w,acknowledgeChangeRequest:C},e.id)),n.map(e=>(0,X.jsx)(Bv,{request:e,refetchAddressChangeRequests:i},e.id))]}),(0,X.jsx)(uv,{}),!!d.length&&(0,X.jsx)(kx,{notPostAgreedEvents:d}),D&&(0,X.jsx)(fb,{}),(0,X.jsx)(wv,{}),(0,X.jsx)(Sx,{}),(0,X.jsx)(Mx,{}),(0,X.jsx)(Kv,{open:N,onClose:()=>k(!1)})]})};cj.propTypes={showMyEarnings:qc.default.bool,limitAppPendingDeletion:qc.default.bool.isRequired,addressChangeRequests:qc.default.array.isRequired,refetchAddressChangeRequests:qc.default.func.isRequired};const uj=(0,Te.inject)(({store:e})=>{var t,n,i,o,a;return{showMyEarnings:(null===(t=e.session.settings)||void 0===t||null===(n=t.viewPermissions)||void 0===n?void 0:n.myEarnings)&&(null===(i=e.session.settings)||void 0===i||null===(o=i.featureFlags)||void 0===o?void 0:o.showMyEarnings),limitAppPendingDeletion:null===(a=e.session.currentUser)||void 0===a?void 0:a.limitAppPendingDeletion}})((0,Te.observer)(cj));var pj=n(68274);const mj=(0,Ge.default)(ms).withConfig({displayName:"intercom_floating_cta__FloatingButton",componentId:"sc-owjyzy-0"})(["z-index:1000;position:absolute;bottom:85px;right:14px;box-shadow:6px 7px 18px rgba(0,0,0,0.4);bottom:","px;"],({isDesktop:e,bottomGap:t})=>e?t+35:t+90),fj=(0,Ge.default)(qe.default).withConfig({displayName:"intercom_floating_cta__Container",componentId:"sc-owjyzy-1"})(["width:100%;align-self:center;align-items:flex-end;",""],({isDesktop:e})=>e&&"max-width: 790px;"),gj=(0,Ge.default)(qe.default).withConfig({displayName:"intercom_floating_cta__Dot",componentId:"sc-owjyzy-2"})(["z-index:1001;position:absolute;bottom:","px;right:16px;width:6px;height:6px;border-radius:50px;background-color:",";"],({bottomGap:e})=>e+130,Qe.CRIMSON_1);const _j=function(){const{session:{countryConfig:{shouldSeeIntercom:e}}}=lt(),{isDesktop:t}=uu(),n=(0,Re.useSafeAreaInsets)(),{unreadConversationCount:i,openIntercomPage:o}=Dm();return e?(0,X.jsxs)(fj,{isDesktop:t,children:[i>0&&(0,X.jsx)(gj,{bottomGap:n.bottom}),(0,X.jsx)(mj,{variant:"floating",isDesktop:t,bottomGap:n.bottom,color:Qe.GRAY_LIGHT,height:52,width:52,onPress:o,icon:(0,X.jsx)(pj.Icon,{image:"chatbotAvatar",size:55}),eventAction:"Helpling support chat icon",eventLabel:"from dashboard'}"})]}):null},xj=(0,Te.observer)(()=>{const{pages:{dashboard:{fetch:e,initialLoading:t}},session:{countryConfig:{shouldSeeIntercom:n}}}=lt(),{loading:i,data:o,refetch:a}=(()=>{const{data:e,loading:t,error:n,refetch:i}=(0,Is.useQuery)(Cv);return{loading:t,error:n,data:(null===e||void 0===e?void 0:e.providerCustomerAddressChangeRequests)||[],refetch:i}})();return(0,K.useEffect)(function(){e()}
2309,[]),t||i?(0,X.jsx)(Rf,{hideBackButton:!0,headerBackgroundColor:hf.HEADER.DASHBOARD.BACKGROUND,header:()=>(0,X.jsx)(gg,{}),content:()=>(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS})}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Rf,{hideBackButton:!0,headerBackgroundColor:hf.HEADER.DASHBOARD.BACKGROUND,header:()=>(0,X.jsx)(gg,{}),content:()=>(0,X.jsx)(uj,{addressChangeRequests:o,refetchAddressChangeRequests:a}),noContentMargin:!0,testID:"page:Dashboard"}),n&&(0,X.jsx)(_j,{})]})}),yj=["size","colors"],vj=(0,Ge.default)(oy.LinearGradient).withConfig({displayName:"dot_indicator__Dot",componentId:"sc-guxy3d-0"})(["height:","px;width:","px;border-radius:","px;"],({size:e})=>e,({size:e})=>e,({size:e})=>e/2),bj=e=>{let{size:t=14,colors:n=[Qe.CRIMSON_1,Qe.CRIMSON_2]}=e,i=(0,A.default)(e,yj);return(0,X.jsx)(vj,Object.assign({size:t,colors:n,start:[1,0],end:[0,1]},i))};bj.propTypes={size:ze().number,colors:ze().arrayOf(ze().string)};const wj=bj,Cj=(0,Ge.default)(qe.default).withConfig({displayName:"bell_button__IndicatorContainer",componentId:"sc-3csl2l-0"})(["position:absolute;right:-1px;top:-2px;"]),jj=(0,Ge.default)(qe.default).withConfig({displayName:"bell_button__BellContainer",componentId:"sc-3csl2l-1"})(["height:36px;width:36px;border-radius:13px;background:",";justify-content:center;align-items:center;"],Qe.GRAY_BORDER),Ij=(0,Ge.default)(Pa.default).attrs({name:"bell",set:"MaterialCommunityIcons",color:Qe.BLACK,size:22}).withConfig({displayName:"bell_button__BellIcon",componentId:"sc-3csl2l-2"})([""]);function Tj({onPress:e,displayDotIndicator:t}){return(0,X.jsx)(ts,{eventAction:"bell button",withoutFeedback:!0,onPress:e,children:(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(jj,{children:(0,X.jsx)(Ij,{})}),t&&(0,X.jsx)(Cj,{children:(0,X.jsx)(wj,{size:9})})]})})}Tj.propTypes={onPress:ze().func,displayDotIndicator:ze().bool};const Ej=Tj,Nj=(0,Ge.default)(qe.default).withConfig({displayName:"initials__Container",componentId:"sc-d6rbzj-0"})(["height:54px;width:54px;border-radius:19px;background:",";justify-content:center;align-items:center;"],Qe.GRAY_BORDER),kj=(0,Ge.default)(xm.Text).withConfig({displayName:"initials__InitialsText",componentId:"sc-d6rbzj-1"})(["color:",";font-size:23px;font-weight:bold;"],Qe.BLACK);function Rj({name:e}){const t=e.split(" ");return null!==e&&void 0!==e&&e.trim()?(0,X.jsx)(Nj,{children:(0,X.jsxs)(kj,{children:[t[0][0].toUpperCase(),t[1]?t[1][0].toUpperCase():""]})}):null}Rj.propTypes={name:ze().string.isRequired};const Sj=Rj,Aj=(0,Ge.default)(qe.default).withConfig({displayName:"header_content__Container",componentId:"sc-1c1b0yk-0"})([""]),Pj=(0,Ge.default)(qe.default).withConfig({displayName:"header_content__Row",componentId:"sc-1c1b0yk-1"})(["flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:20px;"]),Dj=(0,Ge.default)(qe.default).withConfig({displayName:"header_content__NameContainer",componentId:"sc-1c1b0yk-2"})(["flex-direction:row;align-items:center;"]),Mj=(0,Ge.default)(Be.default).withConfig({displayName:"header_content__Title",componentId:"sc-1c1b0yk-3"})(["color:",";font-size:23px;font-weight:bold;"],Qe.WHITE),Oj=(0,Ge.default)(Be.default).withConfig({displayName:"header_content__Name",componentId:"sc-1c1b0yk-4"})(["font-size:20px;font-weight:bold;color:",";margin-left:18px;"],Qe.WHITE);const zj=function(){const{session:{currentUser:e,counters:{notificationsCount:t}}}=lt(),n=(0,Ks.useHistory)();return(0,X.jsxs)(Aj,{children:[(0,X.jsxs)(Pj,{children:[(0,X.jsx)(Mj,{children:i18n.t("dashboard.premium.header.title")}),(0,X.jsx)(Ej,{displayDotIndicator:!!t,onPress:()=>n.push("/provider/notifications")})]}),(0,X.jsxs)(Pj,{children:[(0,X.jsxs)(Dj,{children:[(0,X.jsx)(Sj,{name:null===e||void 0===e?void 0:e.fullName}),(0,X.jsx)(Oj,{children:null===e||void 0===e?void 0:e.fullName})]}),!1]})]})};var Lj=n(89985),qj=n(80655);const Bj=(0,Ge.default)(qe.default).withConfig({displayName:"event_details__Row",componentId:"sc-10xb9ho-0"})(["flex-direction:row;align-items:center;margin-bottom:15px;"]),Gj=(0,Ge.default)(pu.default).attrs({source:n(41942)}).withConfig({displayName:"event_details__CleaningIcon",componentId:"sc-10xb9ho-1"})(["width:14px;
2309height:17px;"]),Uj=(0,Ge.default)(pu.default).attrs({source:n(75829)}).withConfig({displayName:"event_details__CalendarIcon",componentId:"sc-10xb9ho-2"})(["width:12px;height:14px;"]),$j=(0,Ge.default)(pu.default).attrs({source:n(83670)}).withConfig({displayName:"event_details__TimerIcon",componentId:"sc-10xb9ho-3"})(["width:13px;height:13px;"]),Fj=(0,Ge.default)(xm.Text).withConfig({displayName:"event_details__Content",componentId:"sc-10xb9ho-4"})(["margin-left:10px;"]);function Hj({event:e}){return(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(Bj,{children:[(0,X.jsx)(Gj,{}),(0,X.jsx)(Fj,{children:null===e||void 0===e?void 0:e.customer.name})]}),(0,X.jsxs)(Bj,{children:[(0,X.jsx)(Uj,{}),(0,X.jsx)(Fj,{children:null===e||void 0===e?void 0:e.details.formattedDate})]}),(0,X.jsxs)(Bj,{children:[(0,X.jsx)($j,{}),(0,X.jsxs)(Fj,{children:[null===e||void 0===e?void 0:e.details.formattedStartTime," - ",null===e||void 0===e?void 0:e.details.formattedEndTime," (",i18n.t("formatted_duration_short",{duration:(null===e||void 0===e?void 0:e.details.duration)/3600}),")"]})]})]})}Hj.propTypes={event:ze().object};const Wj=Hj,Vj="750px",Kj=(0,Ge.default)(lm).withConfig({displayName:"event__Container",componentId:"sc-d7zisd-0"})(["border-radius:16px;padding:25px;margin:20px;"]),Yj=(0,Ge.default)(qe.default).withConfig({displayName:"event__ConfirmCta",componentId:"sc-d7zisd-1"})(["flex-direction:row;justify-content:space-between;padding:8px 16px;background:",";margin-top:10px;border-radius:14px;align-items:center;"],Qe.GRAY_BORDER),Xj=(0,Ge.default)(xm.Text).withConfig({displayName:"event__CtaText",componentId:"sc-d7zisd-2"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK);function Zj({event:e,onPress:t}){return e?(0,X.jsxs)(Kj,{elevation:1,children:[(0,X.jsx)(Wj,{event:e}),(0,X.jsx)(ts,{eventAction:"confirm button on confirm your appointments",eventLabel:"on premium dashboard",withoutFeedback:!0,onPress:t,children:(0,X.jsxs)(Yj,{children:[(0,X.jsx)(Xj,{children:i18n.t("dashboard.premium.not_post_agreed_events.event.confirm_cta")}),(0,X.jsx)(Pa.default,{name:"arrow-right",size:24,color:Qe.TEXT_DARK,set:"MaterialCommunityIcons"})]})})]}):null}Zj.propTypes={event:ze().object,onPress:ze().func};const Qj=Zj,Jj=["processing","children","onPress","textColor","disabled"],eI=(0,Ge.default)(oh.default).withConfig({displayName:"progress_button__Button",componentId:"sc-18af2sn-0"})(["border-radius:16px;border-width:1px;margin-bottom:10px;margin-top:auto;"]),tI=(0,Ge.default)(xm.Text).withConfig({displayName:"progress_button__ButtonText",componentId:"sc-18af2sn-1"})(["font-size:18px;font-weight:bold;text-align:center;",";"],({textColor:e})=>e&&`color: ${e}`);function nI(e){let{processing:t,children:n,onPress:i,textColor:o,disabled:a}=e,s=(0,A.default)(e,Jj);return(0,X.jsx)(eI,Object.assign({},s,{onPress:()=>!a&&i&&i(),children:(0,X.jsx)(tI,{textColor:o,children:t?i18n.t("progress_cta.in_progress"):n})}))}nI.propTypes={processing:qc.default.bool,onPress:qc.default.func,disabled:qc.default.bool,textColor:qc.default.string,children:qc.default.node};const iI=nI,oI=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_event__Container",componentId:"sc-7f487d-0"})(["flex:1;padding:30px 20px;"]),aI=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_event__ThumbsUpContainer",componentId:"sc-7f487d-1"})(["height:64px;width:64px;border-radius:15px;background:",";justify-content:center;align-items:center;"],Qe.GRAY_BORDER),sI=(0,Ge.default)(rf.default).withConfig({displayName:"confirm_event__ThumbsUpText",componentId:"sc-7f487d-2"})(["font-size:26px;font-weight:bold;"]),rI=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_event__Row",componentId:"sc-7f487d-3"})(["flex-direction:row;justify-content:center;align-items:center;margin-bottom:30px;"]),lI=(0,Ge.default)(rf.default).withConfig({displayName:"confirm_event__Title",componentId:"sc-7f487d-4"})(["color:",";font-weight:bold;"],Qe.TEXT_DARK),dI=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_event__Actions",componentId:"sc-7f487d-5"})(["margin-top:auto;align-items:center;"]);function cI({event:e,onConfirm:t,processing:n,onSomethingChanged:i}){return(0,X.jsxs)(oI,{children:[(0,X.jsx)(rI,{children:(0,X.jsx)(aI,{children:(0,X.jsx)(sI,{children:"\ud83d\udc4d"})})}),(0,X.jsx)(rI,{children:(0,X.jsx)(lI,{children:i18n.t("dashboard.premium.not_post_agreed_events.confirmation.title")})}),(0,X.jsx)(rI,{children:(0,X.jsx)(Wj,{event:e})}),(0,X.jsxs)(dI,{children:[(0,X.jsx)(iI,{stretched:!0,disabled:n,processing:n,color:Qe.TEXT_DARK,borderColor:Qe.TEXT_DARK,textColor:Qe.VIOLET_5,onPress:()=>!n&&t(),children:i18n.t("dashboard.premium.not_post_agreed_events.confirmation.confirm_cta")}),(0,X.jsx)(iI,{stretched:!0,color:Qe.WHITE,borderColor:Qe.TEXT_DARK,onPress:()=>!n&&i(),children:i18n.t("dashboard.premium.not_post_agreed_events.confirmation.changes_cta")})]})]})}cI.propTypes={event:qc.default.object,processing:qc.default.bool,onConfirm:qc.default.func,onSomethingChanged:qc.default.func};const uI=cI;const pI=n(96400).default,mI=(0,Ge.default)(lm).withConfig({displayName:"accordion__AccordionContainer",componentId:"sc-1gciiop-0"})(["padding:0;border-radius:4px;"]),fI=(0,Ge.default)(ts).withConfig({displayName:"accordion__AccordionControl",componentId:"sc-1gciiop-1"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:15px;"]),gI=(0,Ge.default)(Be.default).withConfig({displayName:"accordion__AccordionTitle",componentId:"sc-1gciiop-2"})(["font-size:16px;font-weight:500;"]),hI=(0,Ge.default)(qe.default).withConfig({displayName:"accordion__AccordionContent",componentId:"sc-1gciiop-3"})(["padding:0 10px 10px;"]),_I=({title:e,open:t,onPress:n,children:i,style:o={},elevation:a=1,eventAction:s,eventLabel:r,contentStyle:l={}})=>(0,X.jsxs)(mI,{elevation:a,style:o,eventAction:s,eventLabel:r,children:[(0,X.jsxs)(fI,{onPress:n,children:[K.isValidElement(e)?e:(0,X.jsx)(gI,{children:e}),(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:t?"chevron-up":"chevron-down"})]}),t&&(0,X.jsx)(hI,{style:l,children:i})]});_I.propTypes={title:qc.default.node.isRequired,open:qc.default.bool.isRequired,onPress:qc.default.func,elevation:qc.default.number,children:qc.default.element.isRequired,style:qc.default.oneOfType([qc.default.array,qc.default.object]),eventAction:qc.default.string,eventLabel:qc.default.string,contentStyle:qc.default.oneOfType([qc.default.array,qc.default.object])};const xI=_I,yI=(0,Ge.default)(lm).withConfig({displayName:"picker__PickerContainer",componentId:"sc-yg70ny-0"})(["padding:0;border-radius:4px;"]),vI=(0,Ge.default)(pI).withConfig({displayName:"picker__StyledPicker",componentId:"sc-yg70ny-1"})(["border-width:0px;background:",";",""],Qe.WHITE,`\n    padding: 15px;\n    font-size: 14px;\n    font-family: ${op};\n  `);class bI extends K.Component{state={open:!1};toggle=()=>{const{open:e}=this.state;this.setState({open:!e})};render(){const{state:{open:e},props:{selectedValue:t,options:n,onChange:i,iosCloseOnSelect:o,style:a}}=this,s=(0,X.jsx)(vI,{selectedValue:t,onValueChange:e=>{i(e)},children:n.map(({label:e,value:t})=>(0,X.jsx)(pI.Item,{label:e,value:t},t))});return(0,X.jsx)(yI,{elevation:1,style:a,children:s})}}bI.propTypes={onChange:qc.default.func,selectedValue:qc.default.oneOfType([qc.default.string,qc.default.number]),options:qc.default.arrayOf(qc.default.shape({label:qc.default.string.isRequired,value:qc.default.oneOfType([qc.default.string,qc.default.number])})).isRequired,iosCloseOnSelect:qc.default.bool,style:qc.default.oneOfType([qc.default.array,qc.default.object])};const wI=bI,CI=(0,Ge.default)(qe.default).withConfig({displayName:"did_you_agreed__Container",componentId:"sc-16p5qw3-0"})(["align-items:center;margin:30px 0;"]),jI=(0,Ge.default)(xm.Text).withConfig({displayName:"did_you_agreed__StyledText",componentId:"sc-16p5qw3-1"})(["font-size:16px;color:",";text-align:center;"],({error:e})=>e?Qe.CRIMSON_1:Qe.TEXT_DARK),II=(0,Ge.default)(qe.default).withConfig({displayName:"did_you_agreed__Actions",componentId:"sc-16p5qw3-2"})(["flex-direction:row;justify-content:center;margin-top:20px;"]),TI=(0,Ge.default)(qe.default).withConfig({displayName:"did_you_agreed__ButtonContainer",componentId:"sc-16p5qw3-3"})(["border-radius:12px;padding:10px 20px;background:",";border-width:1px;border-color:",";"],({selected:e})=>e?Qe.VIOLET_5:Qe.WHITE,({error:e})=>e?Qe.CRIMSON_1:Qe.VIOLET_5),EI=(0,Ge.default)(xm.Text).withConfig({displayName:"did_you_agreed__ButtonText",componentId:"sc-16p5qw3-4"})(["font-size:16px;font-weight:bold;color:",";"],({error:e})=>e?Qe.CRIMSON_1:Qe.TEXT_DARK);function NI({selected:e,error:t,children:n,onPress:i,style:o}){return(0,X.jsx)(ts,{eventAction:"",eventLabel:"",withoutFeedback:!0,onPress:i,children:(0,X.jsx)(TI,{selected:e,error:t,style:o,children:(0,X.jsx)(EI,{error:t,children:n})})})}function kI({error:e,processing:t,onResponse:n}){const[i,o]=(0,K.useState)(),a=e=>{t||(o(e),n(e))};return(0,X.jsxs)(CI,{children:[(0,X.jsx)(jI,{error:e,children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.agreed_with_customer.text")}),(0,X.jsxs)(II,{children:[(0,X.jsx)(NI,{selected:i,error:e,onPress:()=>a(!0),style:{marginRight:10},children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.agreed_with_customer.yes")}),(0,X.jsx)(NI,{selected:!1===i,error:e,onPress:()=>a(!1),children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.agreed_with_customer.no")})]})]})}NI.propTypes={selected:qc.default.bool,error:qc.default.bool,children:qc.default.string,onPress:qc.default.func,style:qc.default.style},kI.propTypes={error:qc.default.bool,processing:qc.default.bool,onResponse:qc.default.func};const RI=kI,SI=["processing","onPress"],AI=(0,Ge.default)(qe.default).withConfig({displayName:"back_button__ButtonContainer",componentId:"sc-jnxos6-0"})(["margin:20px 0;"]);function PI(e){let{processing:t,onPress:n}=e,i=(0,A.default)(e,SI);return(0,X.jsx)(ts,{eventAction:"back",withoutFeedback:!0,onPress:()=>!t&&n&&n(),children:(0,X.jsx)(AI,Object.assign({},i,{children:(0,X.jsx)(Pa.default,{name:"arrow-back"})}))})}PI.propTypes={processing:qc.default.bool,onPress:qc.default.func,disabled:qc.default.bool,textColor:qc.default.string,children:qc.default.node};const DI=PI,MI=(0,Ge.default)(qe.default).withConfig({displayName:"date_time_change__Container",componentId:"sc-5h6vwt-0"})(["flex:1;margin-bottom:20px;padding:30px;"]),OI=(0,Ge.default)(qe.default).withConfig({displayName:"date_time_change__PickerContainer",componentId:"sc-5h6vwt-1"})(["margin:10px 0;"]),zI=(0,Ge.default)(qe.default).withConfig({displayName:"date_time_change__Actions",componentId:"sc-5h6vwt-2"})(["margin-top:auto;align-items:center;"]);function LI({event:e,processing:t,onChangeConfirm:n,onCancel:i,onBack:o}){const[a,s]=(0,K.useState)(C.DateTime.fromISO(e.details.startTime).toISODate()),[r,l]=(0,K.useState)(C.DateTime.fromISO(e.details.startTime).toFormat("HH:mm")),[d,c]=(0,K.useState)(),[u,p]=(0,K.useState)(),{session:{countryConfig:{notPostAgreedEvents:{proposedTimes:m,datesOffset:{daysBeforeCurrent:f,daysAfterCurrent:g}}}}}=lt(),h=C.DateTime.fromISO(e.details.startTime).plus({days:-f}),_=f+g+1,x=Array.from({length:_},(e,t)=>t).map(e=>{const t=h.plus({days:e});
2309return{value:t.toISODate(),label:t.toLocaleString({weekday:"long",month:"long",day:"2-digit"})}});return(0,X.jsxs)(MI,{children:[(0,X.jsx)(DI,{onPress:o}),(0,X.jsx)(OI,{children:(0,X.jsx)(wI,{selectedValue:a,onChange:e=>s(e),options:x})}),(0,X.jsx)(OI,{children:(0,X.jsx)(wI,{selectedValue:r,onChange:e=>l(e),options:m.map(e=>({value:e[0],label:e[1]}))})}),(0,X.jsx)(RI,{processing:t,error:null===u||void 0===u?void 0:u.providerAgreedWithCustomer,onResponse:e=>{(e=>{p(Object.assign({},u,{[e]:!1}))})("providerAgreedWithCustomer"),c(e)}}),(0,X.jsxs)(zI,{children:[(0,X.jsx)(iI,{stretched:!0,disabled:t,processing:t,color:Qe.TEXT_DARK,borderColor:Qe.TEXT_DARK,textColor:Qe.VIOLET_5,onPress:()=>{(()=>{let e={};return"boolean"!==typeof d&&(e=Object.assign({},e,{providerAgreedWithCustomer:!0})),a||(e=Object.assign({},e,{proposedDate:!0})),r||(e=Object.assign({},e,{proposedTime:!0})),p(e),Object.values(e).every(e=>!e)})()&&n(a,r,d)},children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.confirm_cta")}),(0,X.jsx)(iI,{disabled:t,borderColor:Qe.TEXT_DARK,stretched:!0,onPress:()=>i(),children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.cancel_cta")})]})]})}LI.propTypes={event:qc.default.object,processing:qc.default.bool,onChangeConfirm:qc.default.func,onCancel:qc.default.func,onBack:qc.default.func};const qI=LI,BI=(0,Ge.default)(qe.default).withConfig({displayName:"change_types_menu__Container",componentId:"sc-1p8ctiy-0"})(["flex:1;margin-bottom:20px;padding:30px;"]),GI=(0,Ge.default)(qe.default).withConfig({displayName:"change_types_menu__TitleContainer",componentId:"sc-1p8ctiy-1"})(["padding:10px;"]),UI=(0,Ge.default)(xm.Text).withConfig({displayName:"change_types_menu__Title",componentId:"sc-1p8ctiy-2"})(["font-size:16px;font-weight:700;color:",";text-align:center;"],Qe.BLACK),$I=(0,Ge.default)(qe.default).withConfig({displayName:"change_types_menu__Menu",componentId:"sc-1p8ctiy-3"})(["margin-top:40px;"]),FI=(0,Ge.default)(ts).withConfig({displayName:"change_types_menu__MenuItem",componentId:"sc-1p8ctiy-4"})(["padding:15px 0;display:flex;flex-direction:row;justify-content:space-between;"]),HI=(0,Ge.default)(xm.Text).withConfig({displayName:"change_types_menu__MenuItemText",componentId:"sc-1p8ctiy-5"})(["color:",";"],Qe.TEXT_DARK),WI=(0,Ge.default)(Pa.default).attrs({set:"MaterialCommunityIcons",name:"arrow-right",size:20,color:Qe.BLACK}).withConfig({displayName:"change_types_menu__ArrowIcon",componentId:"sc-1p8ctiy-6"})([""]);function VI({menuItems:e,onPress:t,onBack:n}){return(0,X.jsxs)(BI,{children:[(0,X.jsx)(DI,{onPress:n}),(0,X.jsx)(GI,{children:(0,X.jsx)(UI,{children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.title")})}),(0,X.jsx)($I,{children:e.map(({title:e,value:n})=>(0,X.jsxs)(FI,{onPress:()=>t(n),children:[(0,X.jsx)(HI,{children:e}),(0,X.jsx)(WI,{})]},e))})]})}
2309VI.propTypes={menuItems:ze().arrayOf(ze().shape({title:ze().string.isRequired,value:ze().string.isRequired})).isRequired,onPress:ze().func,onBack:ze().func};const KI=VI,YI=(0,Ge.default)(qe.default).withConfig({displayName:"duration_change__Container",componentId:"sc-165t5sw-0"})(["flex:1;margin-bottom:20px;padding:30px;"]),XI=(0,Ge.default)(qe.default).withConfig({displayName:"duration_change__PickerContainer",componentId:"sc-165t5sw-1"})(["margin:10px 0;"]),ZI=(0,Ge.default)(qe.default).withConfig({displayName:"duration_change__Actions",componentId:"sc-165t5sw-2"})(["margin-top:auto;align-items:center;"]);function QI({event:e,processing:t,onChangeConfirm:n,onCancel:i,onBack:o}){const[a,s]=(0,K.useState)(e.details.duration.toString()),[r,l]=(0,K.useState)(),[d,c]=(0,K.useState)(),{session:{countryConfig:{notPostAgreedEvents:{durations:u}}}}=lt();return(0,X.jsxs)(YI,{children:[(0,X.jsx)(DI,{onPress:o}),(0,X.jsx)(XI,{children:(0,X.jsx)(wI,{selectedValue:a,onChange:e=>s(e),options:u.map(e=>({value:e.toString(),label:i18n.t("hours",{count:e/3600})}))})}),(0,X.jsx)(RI,{processing:t,error:null===d||void 0===d?void 0:d.providerAgreedWithCustomer,onResponse:e=>{(e=>{c(Object.assign({},d,{[e]:!1}))})("providerAgreedWithCustomer"),l(e)}}),(0,X.jsxs)(ZI,{children:[(0,X.jsx)(iI,{stretched:!0,disabled:t,processing:t,color:Qe.TEXT_DARK,borderColor:Qe.TEXT_DARK,textColor:Qe.VIOLET_5,onPress:()=>{(()=>{let e={};return"boolean"!==typeof r&&(e=Object.assign({},e,{providerAgreedWithCustomer:!0})),a||(e=Object.assign({},e,{proposedDuration:!0})),c(e),Object.values(e).every(e=>!e)})()&&n(a,r)},children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.confirm_cta")}),(0,X.jsx)(iI,{disabled:t,borderColor:Qe.TEXT_DARK,stretched:!0,onPress:()=>i(),children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.cancel_cta")})]})]})}QI.propTypes={event:qc.default.object,processing:qc.default.bool,onChangeConfirm:qc.default.func,onCancel:qc.default.func,onBack:qc.default.func};const JI=QI,eT=(0,Ge.default)(qe.default).withConfig({displayName:"event_cancelled__Container",componentId:"sc-1yh23a0-0"})(["flex:1;margin-bottom:20px;padding:30px;"]),tT=(0,Ge.default)(qe.default).withConfig({displayName:"event_cancelled__PickerContainer",componentId:"sc-1yh23a0-1"})(["margin:10px 0;"]),nT=(0,Ge.default)(qe.default).withConfig({displayName:"event_cancelled__Actions",componentId:"sc-1yh23a0-2"})(["margin-top:auto;align-items:center;"]);function iT({processing:e,onChangeConfirm:t,onCancel:n,onBack:i}){const{session:{countryConfig:{notPostAgreedEvents:{cancellationReasons:o}}}}=lt(),[a,s]=(0,K.useState)(o[0]),[r,l]=(0,K.useState)(),[d,c]=(0,K.useState)();return(0,X.jsxs)(eT,{children:[(0,X.jsx)(DI,{onPress:i}),(0,X.jsx)(tT,{children:(0,X.jsx)(wI,{selectedValue:a,onChange:e=>s(e),options:o.map(e=>({value:e,label:i18n.t(`cancellation_reasons.${e}`)}))})}),(0,X.jsx)(RI,{processing:e,error:null===d||void 0===d?void 0:d.providerAgreedWithCustomer,onResponse:e=>{(e=>{c(Object.assign({},d,{[e]:!1}))})("providerAgreedWithCustomer"),l(e)}}),(0,X.jsxs)(nT,{children:[(0,X.jsx)(iI,{stretched:!0,disabled:e,processing:e,color:Qe.TEXT_DARK,borderColor:Qe.TEXT_DARK,textColor:Qe.VIOLET_5,onPress:()=>{(()=>{let e={};return"boolean"!==typeof r&&(e=Object.assign({},e,{providerAgreedWithCustomer:!0})),a||(e=Object.assign({},e,{cancellationReasonCode:!0})),c(e),Object.values(e).every(e=>!e)})()&&t(a,r)},children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.confirm_cta")}),(0,X.jsx)(iI,{disabled:e,borderColor:Qe.TEXT_DARK,stretched:!0,onPress:()=>n(),children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.cancel_cta")})]})]})}iT.propTypes={processing:qc.default.bool,onChangeConfirm:qc.default.func,onCancel:qc.default.func,onBack:qc.default.func};const oT=iT,aT=(0,Ge.default)(qe.default).withConfig({displayName:"other__Container",componentId:"sc-1bm3w41-0"})(["flex:1;margin-bottom:20px;padding:30px;"]),sT=(0,Ge.default)(qe.default).withConfig({displayName:"other__InputContainer",componentId:"sc-1bm3w41-1"})(["margin:10px 0;"]),rT=(0,Ge.default)(Uc.default).withConfig({displayName:"other__StyledTextInput",componentId:"sc-1bm3w41-2"})(["padding:15px;font-size:16px;border-radius:4px;margin-top:10px;margin-bottom:20px;background:",";border:1px solid ",";"],Qe.WHITE,({error:e})=>e?Qe.CRIMSON_1:Qe.GRAY_BORDER),lT=(0,Ge.default)(qe.default).withConfig({displayName:"other__Actions",componentId:"sc-1bm3w41-3"})(["margin-top:auto;align-items:center;"]);
2309function dT({processing:e,onChangeConfirm:t,onCancel:n,onBack:i}){const[o,a]=(0,K.useState)(),[s,r]=(0,K.useState)();return(0,X.jsxs)(aT,{children:[(0,X.jsx)(DI,{onPress:i}),(0,X.jsx)(sT,{children:(0,X.jsx)(rT,{disabled:e,autoFocus:!0,multiline:!0,textAlignVertical:"top",numberOfLines:6,error:null===s||void 0===s?void 0:s.otherResponse,placeholder:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.change_types.other.input_placeholder"),value:o,onChangeText:e=>a(e)})}),(0,X.jsxs)(lT,{children:[(0,X.jsx)(iI,{stretched:!0,disabled:e,processing:e,color:Qe.TEXT_DARK,borderColor:Qe.TEXT_DARK,textColor:Qe.VIOLET_5,onPress:()=>{(()=>{let e={};return o||(e=Object.assign({},e,{otherResponse:!0})),r(e),Object.values(e).every(e=>!e)})()&&((e=>{r(Object.assign({},s,{[e]:!1}))})("otherResponse"),t(o))},children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.send_cta")}),(0,X.jsx)(iI,{disabled:e,borderColor:Qe.TEXT_DARK,stretched:!0,onPress:()=>n(),children:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.cancel_cta")})]})]})}dT.propTypes={processing:qc.default.bool,onChangeConfirm:qc.default.func,onCancel:qc.default.func,onBack:qc.default.func};const cT=dT,uT="date_time",pT="duration",mT="cancelled",fT="other";function gT({event:e,processing:t,onChangeConfirm:n,onCancel:i,onBack:o}){const[a,s]=(0,K.useState)(),r=[{title:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.change_types.date_time.title"),value:uT},{title:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.change_types.duration.title"),value:pT},{title:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.change_types.cancelled.title"),value:mT},{title:i18n.t("dashboard.premium.not_post_agreed_events.event_changes.change_types.other.title"),value:fT}].filter(t=>!(t.value===pT&&e.fixedDuration)),l=()=>{s("")};return a===uT?(0,X.jsx)(qI,{event:e,processing:t,onChangeConfirm:(t,i,o)=>n({eventId:e.id,changeType:uT,proposedDate:t,proposedTime:i,providerAgreedWithCustomer:o,originalStarttime:e.details.startTime}),onCancel:i,onBack:l}):a===pT?(0,X.jsx)(JI,{event:e,processing:t,onChangeConfirm:(t,i)=>n({eventId:e.id,changeType:pT,proposedDuration:t,providerAgreedWithCustomer:i}),onCancel:i,onBack:l}):a===mT?(0,X.jsx)(oT,{processing:t,onChangeConfirm:(t,i)=>n({eventId:e.id,changeType:mT,cancellationReasonCode:t,providerAgreedWithCustomer:i}),onCancel:i,onBack:l}):a===fT?(0,X.jsx)(cT,{processing:t,onChangeConfirm:t=>n({eventId:e.id,changeType:fT,onResponse:t}),onCancel:i,onBack:l}):(0,X.jsx)(KI,{menuItems:r,onPress:e=>s(e),onBack:o})}gT.propTypes={event:ze().object,processing:ze().bool,onChangeConfirm:ze().func,onCancel:ze().func,onBack:ze().func};const hT=gT,_T=(0,Ge.default)(qe.default).withConfig({displayName:"empty__Container",componentId:"sc-10nyh5x-0"})(["margin-top:20px;"]),xT=(0,Ge.default)(xm.Text).withConfig({displayName:"empty__NotAvailable",componentId:"sc-10nyh5x-1"})(["color:",";"],Qe.TEXT_DARK);const yT=function(){return(0,X.jsx)(_T,{style:{flex:1},children:(0,X.jsx)(xT,{children:i18n.t("dashboard.premium.not_post_agreed_events.empty")})})},vT="success",bT=(0,Ge.default)(qe.default).withConfig({displayName:"message__Container",componentId:"sc-lb2x0w-0"})(["flex:1;padding:20px;margin-top:30px;"]),wT=(0,Ge.default)(qe.default).withConfig({displayName:"message__ThumbsUpContainer",componentId:"sc-lb2x0w-1"})(["height:64px;width:64px;border-radius:15px;background:",";justify-content:center;align-items:center;"],Qe.GRAY_BORDER),CT=(0,Ge.default)(rf.default).withConfig({displayName:"message__ThumbsUpText",componentId:"sc-lb2x0w-2"})(["font-size:30px;font-weight:bold;"]),jT=(0,Ge.default)(qe.default).withConfig({displayName:"message__Row",componentId:"sc-lb2x0w-3"})(["flex-direction:row;justify-content:center;align-items:center;margin-bottom:30px;"]),IT=(0,Ge.default)(rf.default).withConfig({displayName:"message__Title",componentId:"sc-lb2x0w-4"})(["color:",";font-weight:bold;text-align:center;"],Qe.TEXT_DARK),TT=(0,Ge.default)(qe.default).withConfig({displayName:"message__Actions",componentId:"sc-lb2x0w-5"})(["margin-top:auto;align-items:center;"]),ET=(0,Ge.default)(oh.default).withConfig({displayName:"message__Button",componentId:"sc-lb2x0w-6"})(["border-radius:16px;border-width:1px;margin-bottom:10px;"]),NT=(0,Ge.default)(rf.default).withConfig({displayName:"message__ButtonText",componentId:"sc-lb2x0w-7"})(["font-size:18px;font-weight:bold;color:",";"],({color:e})=>e||Qe.VIOLET_5);function kT({type:e,message:t,onPress:n}){return(0,X.jsxs)(bT,{children:[(0,X.jsx)(jT,{children:(0,X.jsx)(wT,{children:(0,X.jsx)(CT,{children:e===vT?"\ud83c\udf89":"\ud83d\ude22"})})}),(0,X.jsx)(jT,{children:(0,X.jsx)(IT,{children:t})}),(0,X.jsx)(TT,{children:(0,X.jsx)(ET,{stretched:!0,color:Qe.TEXT_DARK,borderColor:Qe.TEXT_DARK,onPress:n,children:(0,X.jsx)(NT,{children:i18n.t("dashboard.premium.not_post_agreed_events.confirmation.go_to_dashboard")})})})]})}kT.propTypes={type:qc.default.oneOf([vT,"error"]),message:qc.default.string,onPress:qc.default.func};const RT=kT,ST=(0,Ge.default)(xm.Text).withConfig({displayName:"error_message__ErrorMessageText",componentId:"sc-1vcnjn8-0"})(["padding-top:40px color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1);function AT({children:e}){return(0,X.jsx)(qe.default,{children:(0,X.jsx)(ST,{children:e})})}
2309AT.propTypes={children:ze().string};const PT=AT,DT=(0,Ge.default)(qe.default).withConfig({displayName:"not_post_agreed_events__Container",componentId:"sc-9l2fre-0"})(["margin:20px 10px;"]),MT=(0,Ge.default)(xm.Text).withConfig({displayName:"not_post_agreed_events__Title",componentId:"sc-9l2fre-1"})(["font-size:16px;font-weight:bold;"]);const OT=function(){var e,t;const{events:{notPostAgreedEvents:n,fetchNotPostAgreedEvents:i,updatePostCleanRequest:o,removeEvent:a},session:{settings:s,currentUser:r}}=lt(),[l,d]=(0,K.useState)(),[c,u]=(0,K.useState)(!0),[p,m]=(0,K.useState)(!1),[f,g]=(0,K.useState)(),[h,_]=(0,K.useState)(!1),[x,y]=(0,K.useState)(),[v,b]=(0,K.useState)(),w=!(null!==s&&void 0!==s&&null!==(e=s.featureFlags)&&void 0!==e&&e.psd2Payments)||(null===r||void 0===r||null===(t=r.stripeAccount)||void 0===t?void 0:t.chargesEnabled);(0,K.useEffect)(()=>{!async function(){u(!0),await i(),u(!1)}()},[]);const C=()=>{m(!1),_(!1),b()},j=async e=>{y(!0);const{success:t,error:n}=await o(e);var i;t?(d(),a(f.id),b(i18n.t("dashboard.premium.not_post_agreed_events.confirmation.success_message"))):d(null!==n&&void 0!==n&&null!==(i=n.message)&&void 0!==i&&i.includes("Network error")?i18n.t("ui.error.network"):i18n.t("ui.error.generic"));y(!1)};return(0,X.jsxs)(DT,{children:[(0,X.jsx)(MT,{children:i18n.t("dashboard.premium.not_post_agreed_events.title")}),!c&&0===n.length&&(0,X.jsx)(yT,{}),(0,X.jsx)(Lj.default,{data:n,horizontal:!0,renderItem:({item:e})=>(0,X.jsx)(Qj,{event:e,onPress:()=>{g(e),m(!0)}}),keyExtractor:({id:e})=>e,refreshing:c}),(0,X.jsx)(zw,{isOpen:p,onClose:C,displayCloseButton:!0,children:(0,X.jsxs)(qj.default,{children:[!w&&(0,X.jsx)(RT,{type:"error",message:i18n.t("dashboard.premium.not_post_agreed_events.confirmation.payments_not_enabled"),onPress:C}),w&&(0,X.jsxs)(X.Fragment,{children:[!!v&&(0,X.jsx)(RT,{type:"success",message:v,onPress:C}),!v&&(0,X.jsxs)(X.Fragment,{children:[l&&(0,X.jsx)(PT,{children:l}),h?(0,X.jsx)(hT,{processing:x,event:f,onChangeConfirm:j,onCancel:C,onBack:()=>_(!1)}):(0,X.jsx)(uI,{event:f,processing:x,onSomethingChanged:()=>_(!0),onConfirm:()=>j({eventId:f.id,chargeCustomer:!0})})]})]})]})})]})},zT=(0,Ge.default)(pu.default).attrs({source:n(49069)}).withConfig({displayName:"goal_stats_chart__WorkingHoursIcon",componentId:"sc-1mljrjh-0"})(["width:14px;height:21px;position:absolute;left:","%;margin-left:-7px;top:25px;"],e=>e.progress),LT=(0,Ge.default)(pu.default).attrs({source:n(24047)}).withConfig({displayName:"goal_stats_chart__ContractHoursIcon",componentId:"sc-1mljrjh-1"})(["width:6px;height:20px;position:absolute;left:","%;margin-left:-2px;"],e=>e.progress),qT=(0,Ge.default)(pu.default).attrs({source:n(31796)}).withConfig({displayName:"goal_stats_chart__ScheduledHoursIcon",componentId:"sc-1mljrjh-2"})(["width:19px;height:19px;margin-left:-4px;position:absolute;left:","%;margin-left:-7px;top:-25px;"],e=>e.progress),BT=(0,Ge.default)(qe.default).withConfig({displayName:"goal_stats_chart__Container",componentId:"sc-1mljrjh-3"})(["padding:25px 0px;margin-bottom:20px;"]),GT=(0,Ge.default)(qe.default).withConfig({displayName:"goal_stats_chart__Bar",componentId:"sc-1mljrjh-4"})(["height:20px;background-color:",";position:relative;"],Qe.VIOLET_5),UT=(0,Ge.default)(qe.default).withConfig({displayName:"goal_stats_chart__WorkHoursBar",componentId:"sc-1mljrjh-5"})(["background-color:",";position:absolute;top:0;left:0;bottom:0;width:","%;"],Qe.VIOLET_2,e=>e.progress),$T=(0,Ge.default)(Be.default).withConfig({displayName:"goal_stats_chart__Status",componentId:"sc-1mljrjh-6"})(["color:",";z-index:3;font-size:10px;font-weight:600;position:absolute;left:10;top:3;"],e=>e.color);function FT({displayWorkProgressStatus:e,workedHours:t,contractHours:n,scheduledHours:i}){const o=(i>n?i:n)||1,a=Math.min(100*t/o,100),s=Math.min(100*i/o,100),r=Math.min(100*n/o,100),l=function(e,t){return!e||e<1?i18n.t("monthly_overview.goal_chart.status_still"):e>=t?i18n.t("monthly_overview.goal_chart.status_good_job",{workedHours:e}):i18n.t("monthly_overview.goal_chart.status_on_track",{workedHours:e})}(t,n);return(0,X.jsx)(BT,{children:(0,X.jsxs)(GT,{children:[e&&(0,X.jsx)($T,{color:t<1?Qe.GREEN_SUMMER_GRASS:Qe.WHITE,children:l}),(0,X.jsx)(UT,{progress:a}),(0,X.jsx)(zT,{progress:a}),(0,X.jsx)(qT,{progress:s}),(0,X.jsx)(LT,{progress:r})]})})}
2309FT.propTypes={displayWorkProgressStatus:qc.default.bool,workedHours:qc.default.number,contractHours:qc.default.number,scheduledHours:qc.default.number};const HT=FT,WT=_t.gql`
2310  query providerPremiumMonthlyOverview($date: DateTime!) {
2311    providerPremiumMonthlyOverview(date: $date) {
2312      contractHours
2313      jobsDoneCount
2314      scheduledHours
2315      workedHours
2316      jobsDone {
2317        startTime
2318        customerName
2319        duration
2320        frequency
2321      }
2322      bonusesTotal
2323      bonuses {
2324        amount
2325        awardDate
2326        name
2327      }
2328      tipsTotal
2329      tips {
2330        customerName
2331        createdAt
2332        providerAmount
2333      }
2334      payoutCycleStarts
2335      payoutCycleEnds
2336      providerPayPerHour
2337    }
2338  }
2339`,VT=e=>{const{data:t,error:n,loading:i,refetch:o}=(0,Is.useQuery)(WT,{variables:{date:e}}),{payoutCycleStarts:a,payoutCycleEnds:s,jobsDone:r=[],jobsDoneCount:l=0,workedHours:d=0,contractHours:c=0,scheduledHours:u=0,bonusesTotal:p=0,bonuses:m=[],tipsTotal:f=0,tips:g=[],providerPayPerHour:h}=(null===t||void 0===t?void 0:t.providerPremiumMonthlyOverview)||{};return{data:{payoutCycleStarts:a,payoutCycleEnds:s,jobsDone:r,jobsDoneCount:l,workedHours:d,contractHours:c||0,scheduledHours:u,bonusesTotal:p,bonuses:m,tipsTotal:f,tips:g,providerPayPerHour:h},error:n,noPayoutCycleDayError:"NoPayoutCycleDay"===(null===n||void 0===n?void 0:n.message),loading:i,refetch:o}},KT=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__InlineView",componentId:"sc-ohk9ac-0"})(["display:flex;flex-direction:row;align-items:center;"]),YT=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__Container",componentId:"sc-ohk9ac-1"})(["margin-bottom:40px;"]),XT=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__Title",componentId:"sc-ohk9ac-2"})(["font-size:16px;color:",";font-weight:700;margin-right:5px;"],Qe.BLACK),ZT=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__MonthRangeText",componentId:"sc-ohk9ac-3"})(["font-size:10px;"]),QT=(0,Ge.default)(lm).withConfig({displayName:"earning_overview__Card",componentId:"sc-ohk9ac-4"})(["background-color:",";border-radius:16px;padding:16px 0;margin-top:10px;min-height:250px;"],Qe.VIOLET_4),JT=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__CardHeader",componentId:"sc-ohk9ac-5"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:7px 16px 16px 16px;"]),eE=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__ItemsContainer",componentId:"sc-ohk9ac-6"})(["margin-bottom:20px;"]),tE=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__Item",componentId:"sc-ohk9ac-7"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 16px;"]),nE=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__CardTitle",componentId:"sc-ohk9ac-8"})(["font-weight:700;font-size:14px;color:",";opacity:0.8;"],Qe.BLACK),iE=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__ItemText",componentId:"sc-ohk9ac-9"})(["font-size:10.5px;font-weight:600;margin-left:4px;color:",";opacity:0.7;flex:1;"],Qe.BLACK),oE=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__ItemValue",componentId:"sc-ohk9ac-10"})(["font-size:10.5px;font-weight:600;margin-left:4px;color:",";opacity:0.7;"],Qe.BLACK),aE=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__BonsuesIcon",componentId:"sc-ohk9ac-11"})(["font-size:10.5px;"]),sE=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__TipsIcon",componentId:"sc-ohk9ac-12"})(["font-size:14px;color:red;"]),rE=(0,Ge.default)(Be.default).withConfig({displayName:"earning_overview__WorkingHoursIcon",componentId:"sc-ohk9ac-13"})(["font-size:10.5px;"]),lE=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__Separator",componentId:"sc-ohk9ac-14"})(["height:1px;opacity:0.2;background-color:#aab2bf;margin:0 16px;"]),dE=(0,Ge.default)(qe.default).withConfig({displayName:"earning_overview__GoalStatsChartWrapper",componentId:"sc-ohk9ac-15"})(["padding:0px 16px 0px 20px;"]),cE=C.DateTime.now();const uE=function(){const e=(0,Ks.useHistory)(),{isConnected:t}=(0,ta.useNetInfo)(),{session:{settings:{viewPermissions:{seeTips:n,seeBonuses:i}}}}=lt(),{data:o,loading:a,refetch:s}=VT(cE),{payoutCycleStarts:r,payoutCycleEnds:l,workedHours:d,contractHours:c,scheduledHours:u,bonusesTotal:p,tipsTotal:m}=o,f=r?C.DateTime.fromISO(r).toFormat("dd LLL"):"",g=l?C.DateTime.fromISO(l).toFormat("dd LLL yyyy"):"";return(0,K.useEffect)(()=>{t&&s()},[t]),(0,X.jsxs)(YT,{children:[(0,X.jsxs)(tE,{children:[(0,X.jsxs)(KT,{children:[(0,X.jsxs)(XT,{children:["\ud83d\udcc8 ",i18n.t("dashboard.premium.earning_overview.title")]}),a&&(0,X.jsx)(Aa.default,{size:15,color:"gray"})]}),(0,X.jsx)(ZT,{children:`${f} - ${g}`})]}),(0,X.jsx)(QT,{elevation:1,children:(0,X.jsxs)(ts,{eventAction:"working hours",eventLabel:"from earning overview",onPress:()=>e.push("/provider/monthly_overview"),children:[(0,X.jsxs)(JT,{children:[(0,X.jsx)(nE,{children:i18n.t("dashboard.premium.earning_overview.card_title")}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:"gray"})]}),(0,X.jsx)(lE,{}),(0,X.jsxs)(eE,{children:[i&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(tE,{children:[(0,X.jsx)(aE,{children:"\ud83c\udf81"}),(0,X.jsx)(iE,{children:i18n.t("dashboard.premium.earning_overview.bonuses")}),(0,X.jsx)(oE,{children:fh(p,{withSymbol:!0})})]}),(0,X.jsx)(lE,{})]}),n&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(tE,{children:[(0,X.jsx)(sE,{children:"\u2764"}),(0,X.jsx)(iE,{children:i18n.t("dashboard.premium.earning_overview.tips")}),(0,X.jsx)(oE,{children:fh(m,{withSymbol:!0})})]}),(0,X.jsx)(lE,{})]}),(0,X.jsxs)(tE,{children:[(0,X.jsx)(rE,{children:"\ud83d\udcaa"}),(0,X.jsx)(iE,{children:i18n.t("dashboard.premium.earning_overview.total_working_hours")}),(0,X.jsxs)(oE,{children:[d," h"]})]})]}),(0,X.jsx)(dE,{children:(0,X.jsx)(HT,{workedHours:d,contractHours:c,scheduledHours:u})})]})})]})},pE=()=>{var e;const{session:{settings:t}}=lt(),n=null===t||void 0===t||null===(e=t.viewPermissions)||void 0===e?void 0:e.seeMonthlyOverview;return(0,X.jsx)(X.Fragment,{children:!!t&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(OT,{}),n&&(0,X.jsx)(uE,{})]})})};const mE=(0,Te.observer)(function(){const{session:{refreshCounters:e}}=lt();return(0,K.useEffect)(()=>{e()},[]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Rf,{hideBackButton:!0,header:zj,content:pE,contentBackgroun
2339dColor:Qe.WHITE,testID:"page:PremiumDashboard"}),(0,X.jsx)(wv,{})]})}),fE=["data","loading","error"],gE=xt`
2340  query onboardingRequirement {
2341    applicationProcess {
2342      onboardingRequirements {
2343        requirements {
2344          name
2345          status
2346          details
2347          ... on ApplicationProcessOnboardingRequirementsWelcomeSessionRequirementType {
2348            schedulingUrl
2349            startTime
2350            endTime
2351            joinUrl
2352            rescheduleUrl
2353            cancelUrl
2354          }
2355        }
2356      }
2357    }
2358  }
2359`,hE=(e={})=>{var t,n;const i=(0,Is.useQuery)(gE,Object.assign({context:Object.assign({apiVersion:3},e.context||{}),fetchPolicy:"network-only"},e)),{data:o,loading:a,error:s}=i,r=(0,A.default)(i,fE);return Object.assign({},r,{onboardingRequirements:(null===o||void 0===o||null===(t=o.applicationProcess)||void 0===t||null===(n=t.onboardingRequirements)||void 0===n?void 0:n.requirements)||[],loading:a,error:s})},_E=_t.default`
2360  query providerOnboarded {
2361    currentUser {
2362      ... on ProviderCurrentUserType {
2363        onboarded
2364      }
2365    }
2366  }
2367`,xE=(0,Ge.default)(Da.default).withConfig({displayName:"checkbox__Circle",componentId:"sc-10c5y8n-0"})(["width:18px;height:18px;border-radius:9px;border:1px solid #ebebeb;background-color:",";align-items:center;justify-content:center;padding:2px;"],({checked:e})=>e?"#F1F2F2":Qe.WHITE),yE=({checked:e})=>(0,X.jsx)(xE,{checked:e,children:e&&(0,X.jsx)(Pa.default,{name:"check",size:13,color:"#A7ABAD"})});yE.propTypes={checked:ze().bool};const vE=yE,bE=["color"],wE=e=>{let{color:t="#1E2121"}=e,n=(0,A.default)(e,bE);return(0,X.jsx)(Wu.default,Object.assign({width:8,height:14,viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M1.5 1.167L7.333 7 1.5 12.834",stroke:t,strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})}))},CE=(0,Ge.default)(Da.default).withConfig({displayName:"task__Container",componentId:"sc-g6px0v-0"})(["background-color:",";padding:22px ","px;flex-direction:row;align-items:center;opacity:",";",""],Qe.WHITE,({desktop:e})=>e?38:16,({$status:e})=>e===_c?.5:1,({$actionable:e})=>!e&&"cursor: default;"),jE=(0,Ge.default)(qe.default).withConfig({displayName:"task__Row",componentId:"sc-g6px0v-1"})(["flex-direction:row;align-items:center;"]),IE=(0,Ge.default)(Be.default).withConfig({displayName:"task__TaskName",componentId:"sc-g6px0v-2"})(["font-size:15px;font-weight:500;color:",";text-decoration-line:",";line-height:24px;flex-shrink:1;"],({done:e})=>e?"#74797A":Qe.TEXT_DARK,({done:e})=>e?"line-through":"none"),TE=(0,Ge.default)(qe.default).withConfig({displayName:"task__EstimatedTaskTimeContainer",componentId:"sc-g6px0v-3"})(["margin-left:8px;"]),EE=(0,Ge.default)(Be.default).withConfig({displayName:"task__EstimatedTaskTime",componentId:"sc-g6px0v-4"})(["font-size:11px;color:",";background-color:#f4f4f4;padding:2px 4px;"],Qe.GRAY_1),NE=(0,Ge.default)(qe.default).withConfig({displayName:"task__Stretch",componentId:"sc-g6px0v-5"})(["flex:1;margin-left:16px;justify-content:center;"]),kE=(0,Ge.default)(Be.default).withConfig({displayName:"task__TaskDescription",componentId:"sc-g6px0v-6"})(["font-size:13px;color:",";margin-top:8px;margin-bottom:8px;text-decoration-line:",";"],Qe.GRAY_1,({done:e})=>e?"line-through":"none"),RE=(0,Ge.default)(qe.default).withConfig({displayName:"task__Actionable",componentId:"sc-g6px0v-7"})(["padding-left:12px;"]),SE=({testID:e,name:t,description:n,estimatedTime:i,children:o,onPress:a,status:s,disabled:r,actionable:l=!0})=>{const{isDesktop:d}=uu(),c=s===mc||s===hc;return(0,X.jsxs)(CE,{testID:`OnboardingDashboard:${e}:${s??""}`,onPress:r?void 0:a,$status:s,$actionable:!r&&!c,desktop:d,children:[(0,X.jsx)(vE,{checked:c}),(0,X.jsxs)(NE,{children:[(0,X.jsxs)(jE,{children:[(0,X.jsx)(IE,{done:c,children:t}),!c&&!!i&&(0,X.jsx)(TE,{children:(0,X.jsx)(EE,{children:i})})]}),n&&(0,X.jsx)(kE,{done:c,children:n}),o]}),l&&!r&&(0,X.jsx)(RE,{children:(0,X.jsx)(wE,{})})]})},AE=["type","children"],PE="failed",DE={[PE]:{borderLeftColor:"#f6d0d0",backgroundColor:"#fff2f2"},default:{borderLeftColor:"#f6e2d0",backgroundColor:"#fffaf2"}},ME=(0,Ge.default)(qe.default).withConfig({displayName:"status__Container",componentId:"sc-1lkztws-0"})(["background-color:",";padding:11px 12px;margin-top:8px;border-left-width:4px;border-left-color:",";border-left-style:solid;flex-direction:row;width:90%;"],({type:e})=>DE[e]?DE[e].backgroundColor:DE.default.backgroundColor,({type:e})=>DE[e]?DE[e].borderLeftColor:DE.default.borderLeftColor),OE=(0,Ge.default)(Be.default).withConfig({displayName:"status__StatusText",componentId:"sc-1lkztws-1"})(["font-size:13px;font-style:italic;color:",";font-weight:500;"],Qe.TEXT_DARK),zE=e=>{let{type:t=null,children:n}=e,i=(0,A.default)(e,AE);return(0,X.jsx)(ME,Object.assign({type:t},i,{children:"string"===typeof n?(0,X.jsx)(OE,{children:n}):n}))};
2367zE.propTypes={type:ze().string,children:ze().oneOfType([ze().string,ze().node])};const LE=zE,qE=(0,Ge.default)(LE).withConfig({displayName:"onfido_failed_status__Status",componentId:"sc-24wd80-0"})(["flex-direction:column;"]),BE=(0,Ge.default)(Be.default).withConfig({displayName:"onfido_failed_status__StatusText",componentId:"sc-24wd80-1"})(["font-size:13px;font-style:italic;color:",";font-weight:500;"],Qe.TEXT_DARK),GE=()=>(0,X.jsx)(qE,{type:PE,children:(0,X.jsx)(BE,{children:i18n.t("onboarding_dashboard.requirements.upload_documents.onfido_failed_status.title")})}),UE=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrackEnhanced:n}}=lt(),i=lu(),o=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.click,objectName:"Verify your ID",properties:{step:t,requirement:t}}),i("/provider/identity_verification")},[]);return(0,X.jsxs)(SE,{testID:"upload_documents",name:i18n.t("onboarding_dashboard.requirements.upload_documents.title"),description:i18n.t("onboarding_dashboard.requirements.upload_documents.description"),estimatedTime:i18n.t("onboarding_dashboard.requirements.upload_documents.estimated_time"),status:e,onPress:o,children:[e===gc&&(0,X.jsx)(LE,{children:i18n.t("onboarding_dashboard.requirements.upload_documents.onfido_in_progress_status.title")}),e===fc&&(0,X.jsx)(GE,{})]})};UE.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const $E=UE;const FE=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:87,height:62,viewBox:"0 0 87 62",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsx)(Wu.Path,{d:"M86.573 3.84a4.214 4.214 0 00-1.122-2.35A3.904 3.904 0 0083.2.318l-.056-.06H3.484l-.056.06a3.904 3.904 0 00-2.25 1.172A4.214 4.214 0 00.057 3.84L0 3.9V57.59l.056.06c.12.889.515 1.714 1.123 2.35a3.904 3.904 0 002.249 1.172l.056.058h79.661l.057-.059A3.903 3.903 0 0085.45 60a4.212 4.212 0 001.122-2.35l.056-.059V3.899l-.056-.059z",fill:"#E1F2ED"}),(0,X.jsx)(Wu.Path,{d:"M0 11.943h86.63v15.514H0V11.943z",fill:"#306C60"}),(0,X.jsx)(Wu.Path,{d:"M75.655 37.998H11.553c-3.973 0-7.193 3.366-7.193 7.517 0 4.15 3.22 7.516 7.193 7.516h64.102c3.974 0 7.194-3.365 7.194-7.517 0-4.15-3.22-7.516-7.194-7.516z",fill:"#fff"}),(0,X.jsx)(Wu.Path,{d:"M59.516 51.824c-.194 0-.385-.004-.572-.013-2.322-.108-3.822-.861-4.791-1.784-3.301 1.683-7.25 2.365-8.91.784-.627-.597-1.456-1.968.024-4.44 1.2-2.005 1.477-3.71.691-4.243-.951-.645-3.336-.027-4.906 2.41-1.24 1.923-3.488 3.81-6.012 5.046-1.301.637-4.557 1.983-6.682.719-1.1-.654-2.63-2.444-.528-7.082.256-.565.255-.86.235-.92-.405-.492-3.793-.346-7.373 1.757-2.28 1.34-3.534 2.904-3.192 3.986.103.338.074.704-.08 1.02a1.307 1.307 0 01-.744.666 1.239 1.239 0 01-.977-.072 1.33 1.33 0 01-.647-.77c-.699-2.21.486-4.524 3.336-6.513 3.157-2.203 9.018-4.22 11.36-2.108.603.544 1.458 1.8.412 4.107-.833 1.837-1.045 3.28-.526 3.587 1.495.89 7.039-1.453 9.28-4.928 1.052-1.633 2.508-2.858 4.1-3.451 1.61-.6 3.195-.495 4.348.287 1.664 1.128 2.56 3.804.09 7.93-.368.615-.423.943-.43 1.055.567.4 3.113.148 5.69-1.084-.5-1.438-.5-3.176.01-4.85.538-1.768 1.541-3.17 2.682-3.749 1.8-.914 3.202.33 3.856 1.675 1.233 2.533.31 5.283-2.53 7.543-.055.044-.111.088-.168.131 3.485 1.95 11.153-1.194 14.454-2.722.313-.145.668-.154.987-.025.319.128.576.384.714.71.139.327.147.698.024 1.031a1.324 1.324 0 01-.68.747c-5.112 2.366-9.328 3.563-12.545 3.563zm-2.91-10.261c-.23.044-.929.672-1.378 2.018-.28.841-.419 1.865-.226 2.795.063-.048.125-.097.186-.146 1.248-.998 2.568-2.53 1.774-4.164-.178-.364-.317-.477-.357-.503z",fill:"#306C60"})]}))};const HE=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:16,height:10,viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.8 2.3a.9.9 0 010-1.8h4.5a.9.9 0 01.9.9v4.5a.9.9 0 11-1.8 0V3.573L9.536 7.436a.9.9 0 01-1.272 0L6.2 5.373 2.336 9.236a.9.9 0 11-1.272-1.272l4.5-4.5a.9.9 0 011.272 0L8.9 5.527 12.127 2.3H9.8z",fill:"#5C8E85"})}))},WE=(0,Ge.default)(Da.default).withConfig({displayName:"signup_fee__Container",componentId:"sc-q43cal-0"})(["flex-direction:row;align-items:center;"]),VE=(0,Ge.default)(Be.default).withConfig({displayName:"signup_fee__Link",componentId:"sc-q43cal-1"})(["font-size:13px;color:#0043ce;line-height:18px;"]),KE=(0,Ge.default)(qe.default).withConfig({displayName:"signup_fee__QuestionMark",componentId:"sc-q43cal-2"})(["border-radius:50px;width:13px;height:13px;background-color:#0043ce;margin-right:5px;align-items:center;justify-content:center;"]),YE=(0,Ge.default)(Be.default).withConfig({displayName:"signup_fee__QuestionMarkIcon",componentId:"sc-q43cal-3"})(["color:",";font-size:9px;font-weight:700;"],Qe.WHITE),XE=(0,Ge.default)(qe.default).withConfig({displayName:"signup_fee__Wrapper",componentId:"sc-q43cal-4"})(["padding:16px;"]),ZE=(0,Ge.default)(FE).withConfig({displayName:"signup_fee__PaymentCardIcon",componentId:"sc-q43cal-5"})(["margin-top:70px;margin-bottom:50px;align-self:center;"]),QE=(0,Ge.default)(Be.default).withConfig({displayName:"signup_fee__Title",componentId:"sc-q43cal-6"})(["font-size:20px;font-weight:700;margin-bottom:24px;text-align:center;"]),JE=(0,Ge.default)(Be.default).withConfig({displayName:"signup_fee__Description",componentId:"sc-q43cal-7"})(["font-size:13px;line-height:18px;margin-bottom:20px;text-align:center;"]),eN=(0,Ge.default)(qe.default).withConfig({displayName:"signup_fee__Promotion",componentId:"sc-q43cal-8"})(["flex-direction:row;align-items:center;padding:16px;border-radius:6px;margin-top:16px;background-color:",";border:1px solid ",";"],Qe.GREEN_WINTER_MIST,Qe.GREEN_FROSTY_GREEN),tN=(0,Ge.default)(Be.default).withConfig({displayName:"signup_fee__PromotionText",componentId:"sc-q43cal-9"})(["font-size:13px;line-height:18px;color:",";margin-left:12px;flex:1;"],Qe.TEXT_DARK),nN=()=>{const[e,t]=(0,K.useState)(!1),n=(0,K.useCallback)(()=>{t(!0)},[]),i=(0,K.useCallback)(()=>{t(!1)},[]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(WE,{onPress:n,children:[(0,X.jsx)(KE,{children:(0,X.jsx)(YE,{
2367children:"?"})}),(0,X.jsx)(VE,{children:i18n.t("onboarding_dashboard.requirements.registration_fee.actions.learn_more")})]}),(0,X.jsx)(zw,{isOpen:e,onClose:i,onModalHide:i,displayCloseButton:!0,size:"fit",children:(0,X.jsxs)(XE,{children:[(0,X.jsx)(ZE,{}),(0,X.jsx)(QE,{children:i18n.t("onboarding_dashboard.requirements.registration_fee.signup_fee_modal.title")}),(0,X.jsx)(JE,{children:i18n.t("onboarding_dashboard.requirements.registration_fee.signup_fee_modal.description")}),(0,X.jsxs)(eN,{children:[(0,X.jsx)(HE,{}),(0,X.jsx)(tN,{children:i18n.t("onboarding_dashboard.requirements.registration_fee.signup_fee_modal.promotion")})]})]})})]})},iN=(0,Ge.default)(Be.default).withConfig({displayName:"registration_fee__FreeSignupText",componentId:"sc-1am7bz9-0"})(["font-size:13px;color:",";font-weight:700;"],Qe.CTA_GREEN),oN=(0,Ge.default)(LE).withConfig({displayName:"registration_fee__Status",componentId:"sc-1am7bz9-1"})(["margin-bottom:8px;"]),aN=({onboardingRequirement:{status:e,name:t}})=>{var n;const{analytics:{autoTrackEnhanced:i},session:{settings:o}}=lt(),a=lu(),s=(0,K.useCallback)(()=>{i({userFlow:qa,action:Xa.click,objectName:"Pay a one-time signup fee",properties:{step:t,requirement:t}}),a("/provider/pay_registration_fee")},[]);return e=!(null!==o&&void 0!==o&&null!==(n=o.featureFlags)&&void 0!==n&&n.registrationFee)?mc:e,(0,X.jsxs)(SE,{testID:"registration_fee",name:i18n.t("onboarding_dashboard.requirements.registration_fee.title"),description:i18n.t("onboarding_dashboard.requirements.registration_fee.description"),estimatedTime:i18n.t("onboarding_dashboard.requirements.registration_fee.estimated_time"),status:e,disabled:e!==pc&&e!==fc,onPress:s,children:[e===hc&&(0,X.jsx)(iN,{children:i18n.t("onboarding_dashboard.requirements.registration_fee.not_applicable")}),e===gc&&(0,X.jsx)(oN,{children:i18n.t("onboarding_dashboard.requirements.registration_fee.payment_in_progress_status.title")}),e===fc&&(0,X.jsx)(oN,{type:PE,children:i18n.t("onboarding_dashboard.requirements.registration_fee.payment_failed_status.title")}),e!==hc&&(0,X.jsx)(nN,{})]})};aN.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const sN=aN,rN=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrackEnhanced:n}}=lt(),i=lu(),o=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.click,objectName:"Add your bank details",properties:{step:t,requirement:t}}),i("/provider/bank_details")},[]);return(0,X.jsx)(SE,{testID:"add_bank_details",name:i18n.t("onboarding_dashboard.requirements.add_bank_details.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.add_bank_details.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:o})};rN.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const lN=rN,dN=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrackEnhanced:n}}=lt(),i=lu(),o=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.click,objectName:"Set your working hours",properties:{step:t,requirement:t}}),i("/provider/working_hours")},[]);return(0,X.jsx)(SE,{testID:"set_working_hours",name:i18n.t("onboarding_dashboard.requirements.set_working_hours.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.set_working_hours.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:o})};dN.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const cN=dN,uN=e=>(0,X.jsxs)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:343,height:178,fill:"none"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#a)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:178,fill:"#EFF4F3",rx:12}),(0,X.jsx)(Wu.Rect,{width:209.321,height:172,x:67,y:38,fill:"#fff",rx:19.505}),(0,X.jsx)(Wu.Path,{stroke:"#E4E4E4",strokeLinecap:"round",strokeWidth:15.65,d:"M93.6 142.616H249.64M93.6 174.537h115.258"}),(0,X.jsx)(Wu.Circle,{cx:114.5,cy:85.5,r:20.5,fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{fill:"#DEE9E7",d:"M142.947 85.073c0-15.95-12.929-28.88-28.879-28.88-15.95 0-28.878 12.93-28.878 28.88 0 4.744 1.146 9.327 3.306 13.428l-3.223 12.389a2.457 2.457 0 0 0 1.731 2.984 2.46 2.46 0 0 0 1.261.008l12.389-3.226a28.756 28.756 0 0 0 13.414 3.295c15.95 0 28.879-12.929 28.879-28.878ZM114.068 73.52a5.775 5.775 0 0 1 5.776 5.776v11.551a5.772 5.772 0 0 1-5.776 5.776h-8.663a5.775 5.775 0 0 1-5.776-5.776V79.297a5.777 5.777 0 0 1 5.776-5.776
2367h8.663Zm8.664 14.907v-6.711l5.008-4.742a2.163 2.163 0 0 1 3.299.382c.233.354.357.768.357 1.192v13.047a2.168 2.168 0 0 1-3.656 1.574l-5.008-4.742Z"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"a",children:(0,X.jsx)(Wu.Rect,{width:343,height:178,fill:"#fff",rx:12})})})]})),pN=e=>(0,X.jsxs)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e,{children:[(0,X.jsx)(Wu.Rect,{width:12,height:12,x:4,y:4.143,fill:"#723219",rx:6}),(0,X.jsx)(Wu.Path,{fill:"#FF9970",d:"M9.643 17.678a8.036 8.036 0 1 1 0-16.07 8.036 8.036 0 0 1 0 16.07Zm0-9.642a.804.804 0 0 0-.804.803v4.018a.804.804 0 0 0 1.607 0V8.839a.804.804 0 0 0-.803-.803Zm0-.804a.804.804 0 1 0 0-1.607.804.804 0 0 0 0 1.607Z"})]})),mN=(0,Ge.default)(qe.default).withConfig({displayName:"warning__Container",componentId:"sc-muan2j-0"})(["background-color:#fbf4ee;padding:16px;border-radius:12px;flex-direction:row;align-items:center;gap:12px;margin-top:16px;"]),fN=(0,Ge.default)(qe.default).withConfig({displayName:"warning__Content",componentId:"sc-muan2j-1"})(["flex:1;"]),gN=(0,Ge.default)(Be.default).withConfig({displayName:"warning__Description",componentId:"sc-muan2j-2"})(["font-weight:600;font-size:14px;color:",";"],Qe.TEXT_DARK),hN=({children:e})=>(0,X.jsxs)(mN,{children:[(0,X.jsx)(pN,{}),(0,X.jsx)(fN,{children:(0,X.jsx)(gN,{children:e})})]}),_N=(0,Ge.default)(zw).withConfig({displayName:"video_interview_modal__Modal",componentId:"sc-9047nc-0"})(["overflow:hidden;"," max-height:","px;"],({theme:e})=>e.isDesktop?"height: auto;":"",.85*Iw.default.get("screen").height),xN=(0,Ge.default)(Vf.default).attrs({contentContainerStyle:{paddingTop:48,paddingHorizontal:16,paddingBottom:16}}).withConfig({displayName:"video_interview_modal__Wrapper",componentId:"sc-9047nc-1"})(["border-radius:12px;"]),yN=(0,Ge.default)(Be.default).withConfig({displayName:"video_interview_modal__Title",componentId:"sc-9047nc-2"})(["font-size:18px;font-weight:700;margin-bottom:16px;margin-top:24px;color:",";"],Qe.TEXT_DARK),vN=(0,Ge.default)(Be.default).withConfig({displayName:"video_interview_modal__Description",componentId:"sc-9047nc-3"})(["font-size:14px;line-height:17px;margin-bottom:16px;color:",";"],Qe.TEXT_DARK),bN=(0,Ge.default)(ms).attrs({fontSize:"15px"}).withConfig({displayName:"video_interview_modal__RequestButton",componentId:"sc-9047nc-4"})(["margin:24px 0 0 0;padding:8px 0;"]),wN=(0,Ge.default)(qe.default).withConfig({displayName:"video_interview_modal__HeaderImageWrapper",componentId:"sc-9047nc-5"})(["background:#eff4f3;align-items:center;border-radius:12px;overflow:hidden;"]),CN=({isOpen:e,onClose:t,hireflixUrl:n})=>{const{analytics:{autoTrackEnhanced:i}}=lt(),o=(0,K.useCallback)(async()=>{n&&(i({userFlow:qa,action:Xa.click,objectName:"Go to Video Questionnaire",properties:{requirement:kc}}),ru(n,0,!0),t())},[n,i]);return(0,X.jsx)(_N,{isOpen:e,onClose:t,displayCloseButton:!0,size:"fit",children:(0,X.jsxs)(xN,{children:[(0,X.jsx)(wN,{children:(0,X.jsx)(uN,{})}),(0,X.jsx)(yN,{children:i18n.t("onboarding_dashboard.requirements.video_interview.modals.video_interview.title")}),(0,X.jsx)(vN,{children:i18n.t("onboarding_dashboard.requirements.video_interview.modals.video_interview.description")}),(0,X.jsx)(hN,{children:i18n.t("onboarding_dashboard.requirements.video_interview.modals.video_interview.browser_warning")}),(0,X.jsx)(bN,{stretched:!0,onPress:o,disabled:!n,children:i18n.t("onboarding_dashboard.requirements.video_interview.modals.video_interview.actions.go_to_hireflix")})]})})},jN=(0,Ge.default)(LE).withConfig({displayName:"video_interview__Status",componentId:"sc-1aixd8k-0"})(["margin-bottom:8px;"]),IN=({onboardingRequirement:{status:e,name:t,details:n}})=>{const{analytics:{autoTrackEnhanced:i}}=lt(),[o,a]=(0,K.useState)(!1),s=e===gc||e===mc||e===fc||!n,r=(0,K.useCallback)(()=>{n&&!s&&(i({userFlow:qa,action:Xa.click,objectName:"Complete video questionnaire",properties:{step:t,requirement:t}}),a(!0))},[a,i,t,n,s]),l=(0,K.useCallback)(()=>{a(!1)},[a]);return(0,X.jsxs)(SE,{testID:"video_interview",name:i18n.t("onboarding_dashboard.requirements.video_interview.title"),description:e===pc?i18n.t("onboarding_dashboard.requirements.video_interview.description"):null,estimatedTime:e===pc?i18n.t("onboarding_dashboard.requirements.video_interview.estimated_time"):null,status:e,onPress:r,disabled:s,children:[e===pc&&!n&&(0,X.jsx)(jN,{children:i18n.t("onboarding_dashboard.requirements.video_interview.request_inprogress.title")}),e===gc&&(0,X.jsx)(jN,{children:i18n.t("onboarding_dashboard.requirements.video_interview.request_pending.title")}),e===fc&&(0,X.jsx)(jN,{type:PE,children:i18n.t("onboarding_dashboard.requirements.video_interview.request_rejected.title")}),(0,X.jsx)(CN,{isOpen:o,hireflixUrl:n,onClose:l})]})},TN=["label"],EN=(0,Ge.default)(qe.default).withConfig({displayName:"submit__ButtonContainer",componentId:"sc-krua8z-0"})(["width:100%;padding-top:16px;padding-bottom:",";"],({theme:e})=>`${Math.max(16,e.insets.bottom)}px`),NN=(0,Ge.default)(ms).withConfig({displayName:"submit__Button",componentId:"sc-krua8z-1"})(["width:",";align-self:center;
2367"],({theme:{isDesktop:e}})=>e?"300px":"100%"),kN=e=>{let{label:t=i18n.t("shared.labels.next")}=e,n=(0,A.default)(e,TN);return(0,X.jsx)(EN,{children:(0,X.jsx)(NN,Object.assign({testID:"FormSubmit"},n,{children:t}))})};kN.propTypes={label:ze().string};const RN=kN,SN=n(33809),AN=(0,Ge.default)(qe.default).withConfig({displayName:"image__Background",componentId:"sc-k1czb4-0"})(["flex:1;background:",";position:relative;overflow:hidden;"],Qe.WHITE),PN=(0,Ge.default)(oy.LinearGradient).attrs(()=>({colors:["rgba(234, 248, 218, 0.65)","rgba(224, 238, 255, 0.65)"],start:{x:0,y:0},end:{x:1,y:1}})).withConfig({displayName:"image__Gradient",componentId:"sc-k1czb4-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;"]),DN=(0,Ge.default)(qe.default).withConfig({displayName:"image__Layer",componentId:"sc-k1czb4-2"})(["position:absolute;left:0;right:0;bottom:0;height:336px;display:flex;align-items:center;"]),MN=(0,Ge.default)(qe.default).withConfig({displayName:"image__LayerContainer",componentId:"sc-k1czb4-3"})(["position:relative;width:375px;height:336px;"]),ON=(0,Ge.default)(pu.default).attrs(()=>({source:SN})).withConfig({displayName:"image__LayerImage",componentId:"sc-k1czb4-4"})(["width:375px;height:336px;"]),zN=(0,Ge.default)(Be.default).withConfig({displayName:"image__LayerText1",componentId:"sc-k1czb4-5"})(["position:absolute;top:123px;left:0;width:375px;text-align:center;font-size:16px;font-weight:700;color:#1e2121;"]),LN=(0,Ge.default)(Be.default).withConfig({displayName:"image__LayerText2",componentId:"sc-k1czb4-6"})(["position:absolute;width:46px;text-align:center;font-size:13px;font-weight:700;color:#2a5450;top:195px;left:249px;"]),qN=(0,Ge.default)(LN).withConfig({displayName:"image__LayerText3",componentId:"sc-k1czb4-7"})(["top:266px;left:218px;width:43px;"]),BN=(0,Ge.default)(LN).withConfig({displayName:"image__LayerText4",componentId:"sc-k1czb4-8"})(["top:250px;left:66px;width:38px;"]),GN=e=>(0,X.jsxs)(AN,Object.assign({},e,{children:[(0,X.jsx)(PN,{}),(0,X.jsx)(DN,{children:(0,X.jsxs)(MN,{children:[(0,X.jsx)(ON,{}),(0,X.jsx)(zN,{children:i18n.t("applicant_funnel.activation_screen.image_labels.1")}),(0,X.jsx)(LN,{children:i18n.t("applicant_funnel.activation_screen.image_labels.2")}),(0,X.jsx)(qN,{children:i18n.t("applicant_funnel.activation_screen.image_labels.3")}),(0,X.jsx)(BN,{children:i18n.t("applicant_funnel.activation_screen.image_labels.4")})]})})]})),UN=xt`
2368  mutation applicationProcessMarkActivationScreenAsSeen {
2369    applicationProcessMarkActivationScreenAsSeen {
2370      success
2371    }
2372  }
2373`,$N=(0,Ge.default)(qe.default).withConfig({displayName:"activation_screen__Container",componentId:"sc-dz1ver-0"})(["flex:1;padding-bottom:","px;"],({theme:e})=>e.insets.bottom),FN=(0,Ge.default)(qe.default).withConfig({displayName:"activation_screen__ContentContainer",componentId:"sc-dz1ver-1"})(["height:50%;background:",";padding:48px 16px 0 16px;align-items:center;"],Qe.WHITE),HN=(0,Ge.default)(qe.default).withConfig({displayName:"activation_screen__Content",componentId:"sc-dz1ver-2"})(["flex:1;"]),WN=(0,Ge.default)(Be.default).withConfig({displayName:"activation_screen__HeaderText",componentId:"sc-dz1ver-3"})(["font-size:24px;font-weight:900;margin-bottom:16px;text-align:center;"]),VN=(0,Ge.default)(Be.default).withConfig({displayName:"activation_screen__ContentText",componentId:"sc-dz1ver-4"})(["font-size:16px;font-weight:400;line-height:24px;text-align:center;"]),KN=()=>{const{markActivationScreenAsSeen:e,loading:t}=(()=>{var e;const[t,{data:n,loading:i}]=(0,js.useMutation)(UN,{context:{apiVersion:3}});return{markActivationScreenAsSeen:()=>t().then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessMarkActivationScreenAsSeen}),success:null===n||void 0===n||null===(e=n.applicationProcessMarkActivationScreenAsSeen)||void 0===e?void 0:e.success,loading:i}})(),{session:{settings:{applicationProcess:{updateSeenActivationScreen:n}}},toast:{showToastMessage:i}}=lt(),{autoTrack:o}=mt(),a=(0,K.useCallback)(()=>{o("User clicked on continue","from activation screen"),e().then(()=>n(!0)).catch(()=>
2373i({message:i18n.t("ui.error.network")}))},[e,n,i]);return(0,X.jsxs)($N,{testID:"ActivationScreen",children:[(0,X.jsx)(GN,{}),(0,X.jsxs)(FN,{children:[(0,X.jsxs)(HN,{children:[(0,X.jsx)(WN,{children:i18n.t("applicant_funnel.activation_screen.title")}),(0,X.jsx)(VN,{children:i18n.t("applicant_funnel.activation_screen.description")})]}),(0,X.jsx)(RN,{onPress:a,loading:t,disabled:t,label:i18n.t("shared.cta_labels.continue")})]})]})},YN=(0,Ge.default)(qe.default).withConfig({displayName:"skeleton__Container",componentId:"sc-19ik6pf-0"})(["flex:1;background:#f1f2f2;"]),XN=(0,Ge.default)(qe.default).withConfig({displayName:"skeleton__Header",componentId:"sc-19ik6pf-1"})(["height:151px;background-color:",";"],Qe.GREEN_GROWN_UP_GREEN),ZN=(0,Ge.default)(Vf.default).attrs({contentContainerStyle:{flexGrow:1}}).withConfig({displayName:"skeleton__Content",componentId:"sc-19ik6pf-2"})(["flex:1;position:absolute;width:100%;height:100%;"]),QN=({children:e})=>{const{isDesktop:t}=uu(),n=(0,Re.useSafeAreaInsets)(),{isConnected:i}=(0,ta.useNetInfo)();return(0,X.jsxs)(X.Fragment,{children:[!i&&(0,X.jsx)(pm,{paddingTop:n.top}),t&&(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}),(0,X.jsxs)(YN,{children:[(0,X.jsx)(XN,{}),(0,X.jsx)(ZN,{children:e})]}),!t&&(0,X.jsx)(sf,{})]})};QN.propTypes={children:ze().node};const JN=QN,ek=(0,Ge.default)(qe.default).withConfig({displayName:"layout__CardContainer",componentId:"sc-175c69a-0"})(["background-color:",";margin:82px 16px 0 16px;"," box-shadow:0px 2px 49px rgba(68,68,79,0.08);"],Qe.WHITE,({theme:e})=>e.isDesktop?"\n    max-width: 700px;\n    width: 100%;\n    align-self: center;\n    border-radius: 12px;\n    padding-bottom: 12px;\n  ":"\n    flex-basis: auto;\n    border-top-left-radius: 12px;\n    border-top-right-radius: 12px;\n  "),tk=(0,Ge.default)(oy.LinearGradient).attrs(()=>({colors:["rgba(234, 248, 218, 0.65)","rgba(224, 238, 255, 0.65)"],start:{x:0,y:0},end:{x:1,y:1}})).withConfig({displayName:"layout__Header",componentId:"sc-175c69a-1"})(["border-top-left-radius:12px;border-top-right-radius:12px;padding:23px 16px;position:relative;"]),nk=(0,Ge.default)(xy).withConfig({displayName:"layout__CircularProgressbar",componentId:"sc-175c69a-2"})(["align-self:center;"]),ik=(0,Ge.default)(Be.default).withConfig({displayName:"layout__Title",componentId:"sc-175c69a-3"})(["font-size:20px;font-weight:500;color:",";margin-top:16px;text-align:center;"],Qe.TEXT_DARK),ok=(0,Ge.default)(Be.default).withConfig({displayName:"layout__Description",componentId:"sc-175c69a-4"})(["font-size:13px;color:",";text-align:center;margin-top:8px;"],Qe.TEXT_DARK),ak=(0,Ge.default)(Be.default).withConfig({displayName:"layout__Salutation",componentId:"sc-175c69a-5"})(["font-size:20px;font-weight:500;color:",";text-align:center;margin-bottom:16px;"],Qe.TEXT_DARK),sk=({children:e,progress:t=0})=>{const{session:{currentUser:{fullName:n}}}=lt();return(0,X.jsx)(JN,{children:(0,X.jsxs)(ek,{testID:"OnboardingDashboard",children:[(0,X.jsxs)(tk,{children:[(0,X.jsx)(pf,{}),(0,X.jsx)(ak,{children:i18n.t("dashboard.salutation.greeting_user",{name:n})}),(0,X.jsx)(nk,{progress:t,width:80}),(0,X.jsx)(ik,{children:i18n.t("onboarding_dashboard.title")}),(0,X.jsx)(ok,{children:i18n.t("onboarding_dashboard.description")})]}),e]})})},rk=e=>{const t=C.DateTime.fromISO(e);return t.isValid?{date:t.toFormat("dd.MM"),time:t.toLocaleString(C.DateTime.TIME_SIMPLE)}:{date:"",time:""}},lk=e=>(0,X.jsxs)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:343,height:143,fill:"none"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#welcome-session-header)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:143,fill:"#EFF4F3",rx:12}),(0,X.jsx)(Wu.Rect,{width:182.547,height:150,x:80.387,y:21,fill:"#fff",rx:17.01}),(0,X.jsxs)(Wu.G,{transform:"translate(96.769 105.407)",children:[(0,X.jsx)(Wu.Path,{stroke:"#E4E4E4",strokeLinecap:"round",strokeWidth:13.6486,d:"M6.82429 6.82429H142.907"}),(0,X.jsx)(Wu.Path,{stroke:"#E4E4E4",strokeLinecap:"round",strokeWidth:13.6486,d:"M6.82429 34.6621H107.34"})]}),(0,X.jsxs)(Wu.G,{transform:"translate(91.217 31.83)",children:[(0,X.jsx)(Wu.Circle,{cx:30.5984,cy:30.5955,r:17.8779,fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{fill:"#DEE9E7",d:"M55.4068 30.2221C55.4068 16.3124 44.1315 5.03717 30.2219 5.03717C16.3123 5.03717 5.03702 16.3124 5.03702 30.2221C5.03702 34.3599 6.03686 38.3568 7.92069 41.933L5.11005 52.7374C5.01657 53.0982 5.01894 53.4772 5.
237311691 53.8369C5.21488 54.1965 5.40507 54.5243 5.66865 54.7879C5.93223 55.0515 6.26006 55.2417 6.61971 55.3397C6.97936 55.4376 7.35836 55.44 7.71921 55.3465L18.5235 52.5334C22.1317 54.4272 26.1469 55.4135 30.2219 55.407C44.1315 55.407 55.4068 44.1317 55.4068 30.2221ZM30.2219 20.1481C31.5578 20.1481 32.839 20.6788 33.7836 21.6234C34.7282 22.568 35.2589 23.8492 35.2589 25.1851V35.259C35.2589 36.5949 34.7282 37.8761 33.7836 38.8207C32.839 39.7653 31.5578 40.296 30.2219 40.296H22.6664C21.3306 40.296 20.0494 39.7653 19.1048 38.8207C18.1601 37.8761 17.6295 36.5949 17.6295 35.259V25.1851C17.6295 23.8492 18.1601 22.568 19.1048 21.6234C20.0494 20.6788 21.3306 20.1481 22.6664 20.1481H30.2219ZM37.7774 33.1485V27.2956L42.1444 23.1602C42.4126 22.906 42.7493 22.7361 43.1131 22.6713C43.4768 22.6066 43.8515 22.65 44.1909 22.7961C44.5302 22.9421 44.8192 23.1845 45.0222 23.4932C45.2252 23.8019 45.3332 24.1633 45.3329 24.5328V35.9113C45.3332 36.2808 45.2252 36.6422 45.0222 36.9509C44.8192 37.2596 44.5302 37.502 44.1909 37.6481C43.8515 37.7942 43.4768 37.8375 43.1131 37.7728C42.7493 37.7081 42.4126 37.5381 42.1444 37.2839L37.7774 33.1485Z"})]})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"welcome-session-header",children:(0,X.jsx)(Wu.Rect,{width:343,height:143,fill:"#fff",rx:12})})})]})),dk="onboarding_dashboard.requirements.welcome_session.modals.booking",ck=(0,Ge.default)(zw).withConfig({displayName:"modal_layout__Modal",componentId:"sc-1wpvzni-0"})(["overflow:hidden;"," max-height:","px;"],({theme:e})=>e.isDesktop?"height: auto;":"",.85*Iw.default.get("screen").height),uk=(0,Ge.default)(Vf.default).attrs({contentContainerStyle:{paddingTop:48,paddingHorizontal:16,paddingBottom:32}}).withConfig({displayName:"modal_layout__Wrapper",componentId:"sc-1wpvzni-1"})(["border-radius:12px;"]),pk=(0,Ge.default)(qe.default).withConfig({displayName:"modal_layout__HeaderImageWrapper",componentId:"sc-1wpvzni-2"})(["background:#eff4f3;align-items:center;border-radius:12px;overflow:hidden;"]),mk=(0,Ge.default)(Be.default).withConfig({displayName:"modal_layout__Title",componentId:"sc-1wpvzni-3"})(["font-size:18px;font-weight:700;margin-top:24px;margin-bottom:16px;color:",";"],Qe.TEXT_DARK),fk=(0,Ge.default)(Be.default).withConfig({displayName:"modal_layout__Description",componentId:"sc-1wpvzni-4"})(["font-size:14px;line-height:20px;color:",";"],Qe.TEXT_DARK),gk=(0,Ge.default)(Be.default).withConfig({displayName:"modal_layout__Highlight",componentId:"sc-1wpvzni-5"})(["font-weight:700;"]),hk=({isOpen:e,onClose:t,title:n,testID:i,children:o})=>(0,X.jsx)(ck,{isOpen:e,onClose:t,displayCloseButton:!0,size:"fit",testID:i,children:(0,X.jsxs)(uk,{children:[(0,X.jsx)(pk,{children:(0,X.jsx)(lk,{})}),(0,X.jsx)(mk,{children:n}),(0,X.jsxs)(fk,{children:[i18n.t(`${dk}.description_start`)," ",(0,X.jsx)(gk,{children:i18n.t(`${dk}.description_highlight`)})," ",i18n.t(`${dk}.description_end`)]}),o]})}),_k=async(e,t)=>{ru(e,0,!0),t()},xk="onboarding_dashboard.requirements.welcome_session.modals.booking",yk=(0,Ge.default)(ms).attrs({fontSize:"15px"}
2373).withConfig({displayName:"booking_modal__ChooseTimeButton",componentId:"sc-1cmm3rw-0"})(["margin-top:24px;padding:8px 0;"]),vk=({isOpen:e,onClose:t,schedulingUrl:n,status:i,restartPolling:o})=>{const{analytics:{autoTrackEnhanced:a}}=lt();return(0,X.jsx)(hk,{isOpen:e,onClose:t,testID:"WelcomeSession:BookingModal",title:i18n.t(`${xk}.title`),children:(0,X.jsx)(yk,{stretched:!0,onPress:async()=>{n&&(a({userFlow:qa,action:Xa.click,objectName:"Choose a time",properties:{requirement:Ec,status:i}}),o(),await _k(n,t))},disabled:!n,testID:"WelcomeSession:BookingModal:chooseTime",children:i18n.t(`${xk}.choose_time`)})})},bk=e=>{if(!e)return null;const t=C.DateTime.fromISO(e);return t.isValid?t:null},wk="onboarding_dashboard.requirements.welcome_session.modals.session",Ck=(0,Ge.default)(ms).attrs({fontSize:"15px"}).withConfig({displayName:"session_modal__Button",componentId:"sc-185npt1-0"})(["margin-top:16px;padding:8px 0;"]),jk=(0,Ge.default)(Ck).attrs({variant:"secondary",borderColor:Qe.GREEN_SUMMER_GRASS,textColor:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"session_modal__SecondaryButton",componentId:"sc-185npt1-1"})([""]),Ik=({isOpen:e,onClose:t,status:n,startTime:i,endTime:o,joinUrl:a,rescheduleUrl:s,cancelUrl:r,restartPolling:l})=>{const{analytics:{autoTrackEnhanced:d}}=lt(),[c,u]=(0,K.useState)(()=>C.DateTime.now());(0,K.useEffect)(()=>{if(!e)return;u(C.DateTime.now());const t=setInterval(()=>u(C.DateTime.now()),6e4);return()=>clearInterval(t)},[e]);const p=e=>d({userFlow:qa,action:Xa.click,objectName:e,properties:{requirement:Ec,status:n}}),{date:m,time:f}=rk(i||""),g=!!a&&((e,t,n)=>{const i=bk(t),o=bk(n);return!(!i||!o)&&e>=i.minus({minutes:10})&&e<=o})(c,i,o),h=((e,t)=>{const n=bk(t);return!!n&&e<n})(c,i);return(0,X.jsxs)(hk,{isOpen:e,onClose:t,testID:"WelcomeSession:SessionModal",title:i18n.t(`${wk}.title`,{date:m,time:f}),children:[g&&(0,X.jsx)(Ck,{stretched:!0,onPress:async()=>{p("Join the meeting"),await _k(a,t)},testID:"WelcomeSession:SessionModal:join",children:i18n.t(`${wk}.join`)}),h&&!!s&&(0,X.jsx)(jk,{stretched:!0,onPress:async()=>{p("Reschedule welcome session"),l(),await _k(s,t)},testID:"WelcomeSession:SessionModal:reschedule",children:i18n.t(`${wk}.reschedule`)}),h&&!!r&&(0,X.jsx)(jk,{stretched:!0,onPress:async()=>{p("Cancel welcome session"),l(),await _k(r,t)},testID:"WelcomeSession:SessionModal:cancel",children:i18n.t(`${wk}.cancel`)})]})},Tk="onboarding_dashboard.requirements.welcome_session",Ek="#0043CE",Nk=(0,Ge.default)(Da.default).withConfig({displayName:"welcome_session__SeeDetails",componentId:"sc-19kldvv-0"})(["flex-direction:row;align-items:center;margin-bottom:8px;"]),kk=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_session__SeeDetailsText",componentId:"sc-19kldvv-1"})(["font-size:13px;font-weight:600;color:",";margin-right:4px;"],Ek),Rk=({onboardingRequirement:e,restartPolling:t})=>{const{status:n,schedulingUrl:i,startTime:o,endTime:a,joinUrl:s,rescheduleUrl:r,cancelUrl:l}=e,{analytics:{autoTrackEnhanced:d}}=lt(),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),f=n===pc&&!!i,g=n===gc&&!!o,h=()=>d({userFlow:qa,action:Xa.click,objectName:"Welcome session",properties:{requirement:Ec,status:n}}),_=()=>{h(),m(!0)};return(0,X.jsxs)(SE,{testID:"welcome_session",name:i18n.t(`${Tk}.title`),description:n===pc?f?i18n.t(`${Tk}.book_a_time`):i18n.t(`${Tk}.description`):g?i18n.t(`${Tk}.booked_for`,rk(o)):null,status:n,onPress:g?_:()=>{h(),u(!0)},disabled:!f&&!g,actionable:f,children:[g&&(0,X.jsxs)(Nk,{onPress:_,testID:"WelcomeSession:seeDetails",children:[(0,X.jsx)(kk,{children:i18n.t(`${Tk}.see_details`)}),(0,X.jsx)(wE,{color:Ek,width:7,height:12})]}),(0,X.jsx)(vk,{isOpen:c,onClose:()=>u(!1),schedulingUrl:i,status:n,restartPolling:t}),(0,X.jsx)(Ik,{isOpen:p,onClose:()=>m(!1),status:n,startTime:o,endTime:a,joinUrl:s,rescheduleUrl:r,cancelUrl:l,restartPolling:t})]})},Sk=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrack:n}}=lt(),i=lu(),o=(0,K.useCallback)(()=>{n(`User clicked on ${t} requirement`,"on Onboarding Dashboard"),i("/provider/edit_public_profile")},[]);return(0,X.jsx)(SE,{testID:"set_your_profile",name:i18n.t("onboarding_dashboard.requirements.set_your_profile.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.set_your_profile.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:o})};
2373Sk.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const Ak=Sk,Pk=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrack:n}}=lt(),i=lu(),{canSeeExpectedMonthlyIncome:o}=pt(),a=(0,K.useCallback)(()=>{n(`User clicked on ${t} requirement`,"on Onboarding Dashboard"),i(o?"/provider/setup_my_prices":Ui())},[]);return(0,X.jsx)(SE,{testID:"set_your_price",name:i18n.t("onboarding_dashboard.requirements.set_your_price.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.set_your_price.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:a})};Pk.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const Dk=Pk,Mk=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrack:n}}=lt(),i=lu(),o=(0,K.useCallback)(()=>{n(`User clicked on ${t} requirement`,"on Onboarding Dashboard"),i("/provider/work_location")},[]);return(0,X.jsx)(SE,{testID:"set_your_work_location",name:i18n.t("onboarding_dashboard.requirements.set_your_work_location.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.set_your_work_location.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:o})};Mk.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const Ok=Mk,zk=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrackEnhanced:n}}=lt(),i=lu(),{verticalServices:o}=ut(),a=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.click,objectName:"Set up your services",properties:{step:t,requirement:t}}),i(o?"/provider/services":Ui())},[o]);return(0,X.jsx)(SE,{testID:"set_services",name:i18n.t("onboarding_dashboard.requirements.set_services.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.set_services.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:a})};zk.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const Lk=zk,qk=(0,Ge.default)(LE).withConfig({displayName:"onfido_failed_status__Status",componentId:"sc-w7idtx-0"})(["flex-direction:column;"]),Bk=(0,Ge.default)(Be.default).withConfig({displayName:"onfido_failed_status__StatusText",componentId:"sc-w7idtx-1"})(["font-size:13px;font-style:italic;color:",";font-weight:500;"],Qe.TEXT_DARK),Gk=()=>(0,X.jsx)(qk,{type:PE,children:(0,X.jsx)(Bk,{children:i18n.t("onboarding_dashboard.requirements.onfido_workflow.onfido_failed_status.title")})}),Uk=({onboardingRequirement:{status:e,details:t,name:n}})=>{const{analytics:{autoTrack:i}}=lt(),o=lu(),a=(0,K.useCallback)(()=>{i(`User clicked on ${n} requirement`,"on Onboarding Dashboard"),o("/provider/identity/verification")},[]);return(0,X.jsxs)(SE,{testID:"onfido_workflow",name:i18n.t("onboarding_dashboard.requirements.onfido_workflow.title"),description:i18n.t("onboarding_dashboard.requirements.onfido_workflow.description"),estimatedTime:i18n.t("onboarding_dashboard.requirements.onfido_workflow.estimated_time"),status:e,onPress:a,children:[e===gc&&(0,X.jsx)(LE,{children:i18n.t(`onboarding_dashboard.requirements.onfido_workflow.onfido_in_progress_status.${t}.title`,{defaultValue:i18n.t("onboarding_dashboard.requirements.onfido_workflow.onfido_in_progress_status.title")})}),e===uc&&(0,X.jsx)(LE,{children:i18n.t("onboarding_dashboard.requirements.onfido_workflow.onfido_started_status.title")}),e===fc&&(0,X.jsx)(Gk,{})]})};Uk.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired,details:ze().string}).isRequired};const $k=Uk,Fk=(0,Ge.default)(LE).withConfig({displayName:"onfido_failed_status__Status",componentId:"sc-1di5x42-0"})(["flex-direction:column;"]),Hk=(0,Ge.default)(Be.default).withConfig({displayName:"onfido_failed_status__StatusText",componentId:"sc-1di5x42-1"})(["font-size:13px;font-style:italic;color:",";font-weight:500;"],Qe.TEXT_DARK),Wk=()=>(0,X.jsx)(Fk,{type:PE,children:(0,X.jsx)(Hk,{children:i18n.t("onboarding_dashboard.requirements.identity_verification.onfido_failed_status.title")})}),Vk=({onboardingRequirement:{status:e,details:t,name:n}})=>{const{analytics:{autoTrack:i}}=lt(),o=lu(),a=(0,K.useCallback)(()=>{i(`User clicked on ${n} requirement`,"on Onboarding Dashboard"),o("/provider/identity/verification")}
2373,[i,n,o]),s=e===pc||e===uc;return(0,X.jsxs)(SE,{testID:"onfido_workflow",name:i18n.t("onboarding_dashboard.requirements.identity_verification.title"),description:i18n.t("onboarding_dashboard.requirements.identity_verification.description"),estimatedTime:i18n.t("onboarding_dashboard.requirements.identity_verification.estimated_time"),status:e,disabled:!s,onPress:a,children:[e===gc&&(0,X.jsx)(LE,{children:i18n.t(`onboarding_dashboard.requirements.identity_verification.onfido_in_progress_status.${t}.title`,{defaultValue:i18n.t("onboarding_dashboard.requirements.identity_verification.onfido_in_progress_status.title")})}),e===uc&&(0,X.jsx)(LE,{children:i18n.t("onboarding_dashboard.requirements.identity_verification.onfido_started_status.title")}),e===fc&&(0,X.jsx)(Wk,{})]})},Kk=({onboardingRequirement:{status:e,name:t}})=>{const{analytics:{autoTrackEnhanced:n}}=lt(),i=lu(),o=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.click,objectName:"Provide your tax ID",properties:{step:t,requirement:t}}),i("/provider/personal_tax_id")},[]);return(0,X.jsx)(SE,{testID:"personal_tax_id",name:i18n.t("onboarding_dashboard.requirements.personal_tax_id.title"),estimatedTime:i18n.t("onboarding_dashboard.requirements.personal_tax_id.estimated_time"),status:e,disabled:[_c,mc,hc].includes(e),onPress:o})};Kk.propTypes={onboardingRequirement:ze().shape({status:ze().string.isRequired,name:ze().string.isRequired}).isRequired};const Yk=Kk,Xk=(0,Ge.default)(qe.default).withConfig({displayName:"onboarding_dashboard__Content",componentId:"sc-1vgo21l-0"})(["flex:1;margin-top:8px;flex-basis:100%;"]),Zk=(0,Ge.default)(qe.default).withConfig({displayName:"onboarding_dashboard__Divider",componentId:"sc-1vgo21l-1"}
2373)(["height:1px;background-color:#f4f4f4;margin:0 16px;"]),Qk=(0,Ge.default)(Aa.default).attrs({color:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"onboarding_dashboard__Spinner",componentId:"sc-1vgo21l-2"})(["margin-top:20px;"]),Jk={[xc]:$E,[yc]:$k,[vc]:Vk,[bc]:lN,[wc]:Ak,[Cc]:Dk,[jc]:cN,[Ic]:Lk,[Tc]:Ok,[Ec]:Rk,[Nc]:sN,[kc]:IN,[Rc]:Yk},eR=()=>(0,X.jsx)(sk,{children:(0,X.jsx)(Qk,{})}),tR=(0,Te.observer)(()=>{const{session:{currentUser:{setOnboarded:e,isFromOldFunnel:t},settings:{applicationProcess:n},countryConfig:{shouldSeeIntercom:i}},pages:{onboardingDashboard:{showRequirementCompleteNotification:o}},toast:{showToastMessage:a},analytics:{autoTrack:s}}=lt(),{onboarded:r,loading:l,refetch:d}=(()=>{var e;const{data:t,loading:n,error:i,refetch:o}=(0,Is.useQuery)(_E,{fetchPolicy:"network-only"});return{onboarded:(null===t||void 0===t||null===(e=t.currentUser)||void 0===e?void 0:e.onboarded)||!1,loading:n,error:i,refetch:o}})(),{onboardingRequirements:c,loading:u,startPolling:p,stopPolling:m}=hE({pollInterval:1e4,onCompleted:e=>{var t,n;return o(null===e||void 0===e||null===(t=e.applicationProcess)||void 0===t||null===(n=t.onboardingRequirements)||void 0===n?void 0:n.requirements)}}),{isDesktop:f}=uu(),g=(0,Ks.useLocation)(),[h,_]=Cs(ys),x=(0,K.useMemo)(()=>new URLSearchParams(g.search).get("actionedRequirement"),[g.search]),y=(0,K.useRef)(null),v=()=>{clearTimeout(y.current),y.current=null,m()},b=e=>{clearTimeout(y.current),y.current=setTimeout(v,e)},w=()=>{p(1e4),b(6e5)};(0,K.useEffect)(()=>(b(3e5),()=>clearTimeout(y.current)),[]),(0,K.useEffect)(()=>{c.length>0&&c.every(({status:e})=>e===mc||e===hc)&&(v(),d())},[c.map(({status:e})=>e).join()]);const C=(0,K.useMemo)(()=>{if(!c.length)return 0;const e=c.filter(({status:e})=>[hc,mc].includes(e));return Math.floor(e.length/c.length*100)},[c]),j=e=>{const t=Jk[e.name];return t?(0,X.jsx)(t,{onboardingRequirement:e,restartPolling:w},e.name):null},I=!(null===n||void 0===n||!n.seenActivationScreen);return(0,K.useEffect)(()=>{x&&(s(`User successfully actioned ${x}`,"on Onboarding Dashboard"),a({message:i18n.t(`onboarding_dashboard.notifications.actioned_requirement.${x}`),type:"success"}))},[x,a]),x?(0,X.jsx)(Ks.Redirect,{to:wi(),replace:!0}):u||l?(0,X.jsx)(eR,{}):r&&!I?(0,X.jsx)(KN,{}):r?(e(!0),null):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(sk,{progress:C,children:[(0,X.jsx)(Xk,{children:c.map((e,t)=>(0,X.jsxs)(K.Fragment,{children:[j(e),(!f||t<c.length-1)&&(0,X.jsx)(Zk,{})]},e.name))}),t&&(0,X.jsx)(vs,{isOpen:h,onClose:_})]}),i&&(0,X.jsx)(_j,{})]})}),nR=(0,Te.observer)(()=>{var e;const{session:{currentUser:t,settings:n},analytics:{hjIdentifyUser:i,clarityPushUserAttributes:o}}=lt();(0,K.useEffect)(()=>{i(),o()},[i,o]);const a=null===n||void 0===n||null===(e=n.applicationProcess)||void 0===e?void 0:e.seenActivationScreen;return!t||t.onboarded&&a?null!==t&&void 0!==t&&t.premium?(0,X.jsx)(mE,{}):(0,X.jsx)(xj,{}):(0,X.jsx)(tR,{})}),iR=(0,Ge.default)(qe.default).withConfig({displayName:"notification_item__Container",componentId:"sc-l15b4z-0"})(["flex-direction:row;justify-content:space-between;background-color:",";box-shadow:",";",""],Qe.WHITE,"0 0 5px rgba(87, 97, 105, 0.10)",({fullWidth:e})=>e?"\n        margin: 5px -15px;\n        padding: 15px 30px;":"\n        margin: 5px 0;\n        padding: 15px;\n        border-radius: 8px;"),oR=(0,Ge.default)(qe.default).withConfig({displayName:"notification_item__Body",componentId:"sc-l15b4z-1"})(["flex-grow:1;flex-direction:row;margin-left:13px;flex:1;"]),aR=(0,Ge.default)(qe.default).withConfig({displayName:"notification_item__Content",componentId:"sc-l15b4z-2"})(["flex-direction:column;padding:0 0 0 2px;flex:1;"]),sR=(0,Ge.default)(Be.default).withConfig({displayName:"notification_item__Title",componentId:"sc-l15b4z-3"})(["color:",";font-size:16px;padding:2px 0;"],Qe.TEXT_DARK),rR=(0,Ge.default)(Be.default).withConfig({displayName:"notification_item__Description",componentId:"sc-l15b4z-4"})(["color:",";font-size:14px;padding:2px 0;"],Qe.GRAY_2),lR=(0,Ge.default)(Pa.default).withConfig({displayName:"notification_item__StyledIcon",componentId:"sc-l15b4z-5"})(["margin:1px 0;"]),dR=(0,Ge.default)(Be.default).withConfig({displayName:"notification_item__Warning",componentId:"sc-l15b4z-6"})(["background-color:",";color:",";width:18px;height:18px;border-radius:9px;text-align:center;font-weight:bold;margin-top:4px;"],Qe.CRIMSON_2,Qe.WHITE),cR=(0,Ge.default)(ts).withConfig({displayName:"notification_item__TouchableIconContainer",componentId:"sc-l15b4z-7"}
2373)(["height:24px;width:24px;"]),uR=({onPress:e=()=>{},iconName:t,title:n,description:i,children:o,allClickable:a=!1,fullWidth:s=!1,warningIcon:r=!1,iconSet:l="MaterialIcons",eventAction:d,eventLabel:c})=>n||i?(0,X.jsx)(ts,{disabled:!a,withoutFeedback:!a,onPress:e,eventAction:d,eventLabel:c,children:(0,X.jsx)(iR,{fullWidth:s,children:(0,X.jsxs)(oR,{children:[(0,X.jsxs)(aR,{children:[n&&(0,X.jsx)(sR,{children:n}),i&&(0,X.jsx)(rR,{children:i}),o]}),r&&(0,X.jsx)(dR,{children:"!"}),a&&!!t&&(0,X.jsx)(lR,{name:t,size:24,color:Qe.GRAY_2,set:l}),!a&&!!t&&(0,X.jsx)(cR,{onPress:e,children:(0,X.jsx)(lR,{name:t,size:24,color:Qe.GRAY_2,set:l})})]})})}):null;uR.propTypes={onPress:ze().func,iconName:ze().string,allClickable:ze().bool,title:ze().string,description:ze().string,children:ze().node,fullWidth:ze().bool,warningIcon:ze().bool,iconSet:ze().string,eventAction:ze().string.isRequired,eventLabel:ze().string};const pR=uR,mR=({onClose:e,i18n:t,customerName:n,type:i="event_cancellation"})=>(0,X.jsx)($c.default,{buttons:[{color:Qe.GREEN_SUMMER_GRASS,onPress:e,text:t.t(`${i}.claim.call_us.cta`),icon:{name:"chevron-left"}}],children:(0,X.jsxs)(Hg,{children:[(0,X.jsx)(Wg,{fontSize:20,children:t.t(`${i}.claim.call_us.title`,{customerName:n})}),(0,X.jsx)(Wg,{children:t.t(`${i}.claim.call_us.description`)})]})});mR.propTypes={i18n:qc.default.shape({t:qc.default.func.isRequired}).isRequired,onClose:qc.default.func.isRequired,customerName:qc.default.string.isRequired,type:qc.default.string};const fR=mR,gR=(0,Ge.default)(qe.default).withConfig({displayName:"claim__Container",componentId:"sc-112c6j6-0"})(["align-items:center;justify-content:center;"]),hR=(0,Ge.default)($c.default).withConfig({displayName:"claim__CustomCard",componentId:"sc-112c6j6-1"})(["max-width:720px;width:100%;"]),_R=(0,Ge.default)(Be.default).withConfig({displayName:"claim__ErrorMessage",componentId:"sc-112c6j6-2"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),xR=(0,Ge.default)(Be.default).withConfig({displayName:"claim__WaiveText",componentId:"sc-112c6j6-3"})(["padding-top:20px;color:",";font-size:16px;text-align:center;"],Qe.GREEN_SUMMER_GRASS),yR=({errorMessage:e=null,waive:t,claim:n,submitting:i,cancellationFeeAmount:o,cancelledWithinXHours:a,customerName:s,i18n:r,type:l="event_cancellation"})=>{const{analytics:{autoTrack:d}}=lt();return(0,X.jsx)(gR,{children:(0,X.jsxs)(hR,{children:[(0,X.jsxs)(Hg,{children:[(0,X.jsx)(Wg,{fontSize:20,children:r.t(`${l}.claim.modal.title`,{customerName:s})}),(0,X.jsx)(Wg,{children:r.t(`${l}.claim.modal.description`,{hours:a})})]}),e&&(0,X.jsx)(_R,{children:e}),(0,X.jsxs)(Vg,{children:[(0,X.jsx)(oh.default,{onPress:()=>{d("Cancelled event - Provider clicks on cancellation fee claim button",`cancellationFeeAmount: ${o}`),n()},color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,disabled:i,testID:"CancellationFeeModal:Claim",children:r.t(`${l}.claim.modal.claim`,{amount:fh(o,{withSymbol:!0})})}),(0,X.jsx)(ts,{onPress:t,disabled:i,eventAction:"submit cancellation",children:(0,X.jsx)(xR,{children:r.t(`${l}.claim.modal.waive`)})})]})]})})};yR.propTypes={i18n:qc.default.shape({t:qc.default.func.isRequired}).isRequired,errorMessage:qc.default.string,waive:qc.default.func.isRequired,claim:qc.default.func.isRequired,submitting:qc.default.bool.isRequired,cancellationFeeAmount:qc.default.number,cancelledWithinXHours:qc.default.number,customerName:qc.default.string.isRequired,type:qc.default.string};const vR=yR,bR=(0,Ge.default)(ch).withConfig({displayName:"details__Container",componentId:"sc-lc4u6t-0"})(["width:280px;"]),wR=(0,Ge.default)(qe.default).withConfig({displayName:"details__Content",componentId:"sc-lc4u6t-1"})(["border-top-width:1px;border-color:",";border-style:solid;padding:15px;"],Qe.WHITE),CR=(0,Ge.default)(Be.default).withConfig({displayName:"details__StyledText",componentId:"sc-lc4u6t-2"})(["padding:2px 0;color:",";font-size:14px;"],({color:e})=>e||Qe.TEXT_DARK),jR=({formattedDate:e,formattedTime:t,customerName:n,i18n:i})=>(0,X.jsxs)(bR,{children:[(0,X.jsx)(Lg,{bgColor:Qe.VIOLET_5,color:Qe.TEXT_DARK,title:n}),(0,X.jsxs)(wR,{children:[(0,X.jsx)(CR,{color:Qe.CRIMSON_1,children:i.t("event_cancellation.cancelled")}),(0,X.jsx)(CR,{children:e}),(0,X.jsx)(CR,{children:t})]})]});jR.propTypes={formattedDate:qc.default.string.isRequired,formattedTime:qc.default.string.isRequired,customerName:qc.default.string.isRequired,i18n:qc.default.shape({t:qc.default.func.isRequired}).isRequired};const IR=jR,TR="claim",ER="call_us",NR=({id:e,event:t,acknowledgeCancellation:n,waiveCancellationFee:i,claimCancellationFee:o,markCancellationAck:a,requireSuccessfulEventsBeforeCompensationClaim:s})=>
2373{const{cancelledDetails:r={},details:{duration:l,formattedStartTime:d,formattedEndTime:c,period:u}={}}=t||{},p=(0,Ng.useLocalObservable)(()=>({eventPresent:!!t,submitting:!1,success:null,error:null,isModalOpen:!1,acknowledge:(0,Ie.flow)(function*(){p.success=null,p.submitting=!0,p.error=null,yield n(e)}),open(){p.isModalOpen=!0},close(){p.isModalOpen=!1},waive:(0,Ie.flow)(function*(){p.success=null,p.submitting=!0;const t=yield i(e);if(p.success=t.success,p.error=t.error,p.submitting=!1,t.success)return p.markCancellationAck()}),claim:(0,Ie.flow)(function*(){p.success=null,p.submitting=!0;const t=yield o(e);p.success=t.success,p.error=t.error,p.submitting=!1}),markCancellationAck(){a(e)},get modalType(){return p.eventPresent?r.successfulEventsCount>0||!s?TR:ER:null},get isClaimModalType(){return p.modalType===TR},get isCallUsModalType(){return p.modalType===ER},get errorMessage(){var e,t;return null!==(e=p.error)&&void 0!==e&&null!==(t=e.message)&&void 0!==t&&t.includes("Network error")?i18n.t("ui.error.network"):i18n.t("ui.error.generic")},get formattedTime(){return p.formatTime(d,c,l/3600)},formatTime:(e,t,n)=>i18n.t("formatted_time_duration",{start:e,end:t,duration:n}),get pricePerHour(){return u===ed?r.customerAdhocPrice:r.customerRepeatPrice},get priceClaimed(){return fh(r.cancellationFeeAmount,{withSymbol:!0})}}));return p},kR=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_event__AdditionalContent",componentId:"sc-149nx0p-0"})(["padding-top:10px;padding-bottom:10px;"]),RR=(0,Ge.default)(Be.default).withConfig({displayName:"cancelled_event__AdditionalContentTitle",componentId:"sc-149nx0p-1"})(["color:",";font-size:16px;padding-bottom:5px;"],Qe.GREEN_SUMMER_GRASS),SR=(0,Ge.default)(Be.default).withConfig({displayName:"cancelled_event__AdditionalContentDescription",componentId:"sc-149nx0p-2"})(["color:",";font-size:14px;"],Qe.GRAY_2),AR=(0,Ge.default)(oh.default).attrs(e=>({stretched:!0,color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,small:!0})).withConfig({displayName:"cancelled_event__StyledButton",componentId:"sc-149nx0p-3"})(["margin-top:10px;"]),PR=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_event__EventWrapper",componentId:"sc-149nx0p-4"})(["margin:0 -5px;"]),DR=({event:e,event:{id:t,totalProviderSupportTips:n,customer:{name:i},cancelledDetails:o,details:{duration:a,formattedDate:s,formattedStartTime:r,formattedEndTime:l,period:d}},acknowledgeEventCancellation:c,waiveCancellationFee:u,claimCancellationFee:p,markCancellationAck:m,requireSuccessfulEventsBeforeCompensationClaim:f})=>{const g=NR({id:e.id,event:e,acknowledgeCancellation:c,waiveCancellationFee:u,claimCancellationFee:()=>p(e.id),markCancellationAck:m,requireSuccessfulEventsBeforeCompensationClaim:f}),h=o.eligibleForCancellationFeeClaim&&g.isClaimModalType;return(0,X.jsx)(pR,{title:i18n.t("event_cancellation.title"),allClickable:!o.eligibleForCancellationFeeClaim,iconName:"close",eventAction:`notification cancelled event ${t}`,onPress:()=>{if(h)return g.open();g.acknowledge()},children:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(PR,{children:(0,X.jsx)(IR,{formattedDate:s,formattedTime:g.formattedTime,customerName:i,i18n:i18n})}),o.eligibleForCancellationFeeClaim&&(0,X.jsxs)(kR,{children:[(0,X.jsx)(SR,{children:i18n.t("event_cancellation.cancellation_claim_description",{hours:o.cancelledWithinXHours})}),(0,X.jsx)(AR,{onPress:g.open,children:i18n.t("event_cancellation.cancellation_claim_cta")})]}),!!n&&(0,X.jsxs)(kR,{children:[(0,X.jsx)(RR,{children:i18n.t("event_cancellation.support_tip.title",{customer:i,amount:fh(n,{withSymbol:!0})})}),(0,X.jsx)(SR,{children:i18n.t("event_cancellation.support_tip.description")})]}),(0,X.jsx)(gs,{isVisible:g.isModalOpen,onBackdropPress:()=>g.success?g.markCancellationAck():g.close(),children:(0,X.jsxs)(X.Fragment,{children:[!0!==g.success&&g.isClaimModalType&&(0,X.jsx)(vR,{i18n:i18n,waive:g.waive,claim:g.claim,cancellationFeeAmount:o.cancellationFeeAmount,cancelledWithinXHours:o.cancelledWithinXHours,submitting:g.submitting,customerName:i,errorMessage:!1===g.success?g.errorMessage:null,pricePerHour:g.pricePerHour,duration:a}),!0!==g.success&&g.isCallUsModalType&&(0,X.jsx)(fR,{i18n:i18n,onClose:g.close,customerName:i}),g.success&&(0,X.jsx)(Vc,{margin:"0",title:i18n.t("event_cancellation.claim.success.title"),message:i18n.t("event_cancellation.claim.success.message",{amount:g.priceClaimed}),cta:i18n.t("event_cancellation.claim.success.cta"),onClose:g.markCancellationAck})]})})]})})};DR.propTypes={event:qc.default.modelOf(vl),acknowledgeEventCancellation:qc.default.func.isRequired,waiveCancellationFee:qc.default.func.isRequired,claimCancellationFee:qc.default.func.isRequired,markCancellationAck:qc.default.func.isRequired,requireSuccessfulEventsBeforeCompensationClaim:qc.default.bool.isRequired};const MR=(0,Te.inject)(({store:e})=>{var t;return{acknowledgeEventCancellation:e.events.acknowledgeEventCancellation,waiveCancellationFee:e.events.waiveCancellationFee,claimCancellationFee:e.events.claimCancellationFee,markCancellationAck:e.events.markCancellationAck,requireSuccessfulEventsBeforeCompensationClaim:null===(t=e.session.countryConfig)||void 0===t?void 0:t.requireSuccessfulEventsBeforeCompensationClaim}})((0,Te.observer)(DR)),OR=(0,Ge.default)(Vf.default).withConfig({displayName:"cancelled_relationship__StyledScrollView",componentId:"sc-fdztmf-0"})([""]),zR=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_relationship__EventsContainer",componentId:"sc-fdztmf-1"})(["flex-direction:row;"]),LR=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_relationship__EventDetailsWrapper",componentId:"sc-fdztmf-2"})(["padding-right:5px;padding-left:5px;"]),qR=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_relationship__Container",componentId:"sc-fdztmf-3"})(["margin:5px 0;padding:15px 10px;background-color:",";box-shadow:",";border-radius:8px;"],Qe.WHITE,"0 0 5px rgba(87, 97, 105, 0.10)"),BR=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_relationship__TitleContainer",componentId:"sc-fdztmf-4"})(["flex-direction:row;align-items:center;justify-content:space-between;padding:5px;"]),GR=(0,Ge.default)(Be.default).withConfig({displayName:"cancelled_relationship__Title",componentId:"sc-fdztmf-5"})(["color:",";font-size:16px;padding:2px 0;"],Qe.TEXT_DARK),UR=(0,Ge.default)(Pa.default).attrs(()=>({name:"close",color:Qe.GRAY_2})).withConfig({displayName:"cancelled_relationship__CloseIcon",componentId:"sc-fdztmf-6"})([""]),$R=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_relationship__AdditionalContent",componentId:"sc-fdztmf-7"})(["padding-top:10px;padding-bottom:10px;"]),FR=(0,Ge.default)(Be.default).withConfig({displayName:"cancelled_relationship__AdditionalContentDescription",componentId:"sc-fdztmf-8"})(["color:",";font-size:14px;"],Qe.GRAY_2),HR=(0,Ge.default)(oh.default).attrs(e=>({stretched:!0,color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,small:!0})).withConfig({displayName:"cancelled_relationship__StyledButton",componentId:"sc-fdztmf-9"})(["margin-top:10px;"]),WR=({relationship:{id:e,futureEvents:t,customer:n},acknowledgeRelationshipCancellation:i,markRelationshipCancellationAsAck:o,waiveRelationshipCancellationFee:a,claimRelationshipCancellationFee:s,requireSuccessfulEventsBeforeCompensationClaim:r})=>{var l,d,c,u,p;const m=0===t.length?`${i18n.t("relationship_cancellation.title_with")} ${null===n||void 0===n?void 0:n.name}`:i18n.t("relationship_cancellation.title"),f=t.find(e=>{var t;
2373return null===(t=e.cancelledDetails)||void 0===t?void 0:t.eligibleForCancellationFeeClaim}),g=NR({id:e,event:f,acknowledgeCancellation:i,waiveCancellationFee:a,claimCancellationFee:()=>s(e,f.id),markCancellationAck:o,requireSuccessfulEventsBeforeCompensationClaim:r}),h=f&&g.isClaimModalType;return(0,X.jsxs)(qR,{children:[(0,X.jsxs)(BR,{children:[(0,X.jsx)(GR,{children:m}),(0,X.jsx)(ts,{onPress:()=>{if(h)return g.open();i(e)},eventAction:"cancel relationship",children:(0,X.jsx)(UR,{})})]}),(0,X.jsx)(OR,{horizontal:!0,children:(0,X.jsx)(zR,{children:t.map(({id:e,customer:{name:t},details:{duration:n,formattedDate:i,formattedStartTime:o,formattedEndTime:a}})=>(0,X.jsx)(LR,{children:(0,X.jsx)(IR,{formattedDate:i,formattedTime:g.formatTime(o,a,n/3600),customerName:t,i18n:i18n})},e))})}),!!f&&(0,X.jsxs)($R,{children:[(0,X.jsx)(FR,{children:i18n.t("relationship_cancellation.cancellation_claim_description",{hours:null===f||void 0===f||null===(l=f.cancelledDetails)||void 0===l?void 0:l.cancelledWithinXHours})}),(0,X.jsx)(HR,{testID:"RelationshipCancellation:Claim",onPress:g.open,children:i18n.t("relationship_cancellation.cancellation_claim_cta")})]}),(0,X.jsx)(gs,{isVisible:g.isModalOpen,onBackdropPress:()=>g.success?g.markCancellationAck():g.close(),children:(0,X.jsxs)(X.Fragment,{children:[!g.success&&g.isClaimModalType&&(0,X.jsx)(vR,{i18n:i18n,type:"relationship_cancellation",waive:g.waive,claim:g.claim,cancellationFeeAmount:null===f||void 0===f||null===(d=f.cancelledDetails)||void 0===d?void 0:d.cancellationFeeAmount,cancelledWithinXHours:null===f||void 0===f||null===(c=f.cancelledDetails)||void 0===c?void 0:c.cancelledWithinXHours,submitting:g.submitting,customerName:null===f||void 0===f||null===(u=f.customer)||void 0===u?void 0:u.name,errorMessage:!1===g.success?g.errorMessage:null}),!0!==g.success&&g.isCallUsModalType&&(0,X.jsx)(fR,{i18n:i18n,type:"relationship_cancellation",onClose:g.close,customerName:null===f||void 0===f||null===(p=f.customer)||void 0===p?void 0:p.name}),g.success&&(0,X.jsx)(Vc,{margin:"0",title:i18n.t("relationship_cancellation.claim.success.title"),message:i18n.t("relationship_cancellation.claim.success.message",{amount:g.priceClaimed}),cta:i18n.t("relationship_cancellation.claim.success.cta"),onClose:g.markCancellationAck,messageTestID:"RelationshipCancellation:SuccessMessage"})]})})]})};WR.propTypes={relationship:qc.default.modelOf(jl),acknowledgeRelationshipCancellation:qc.default.func.isRequired,markRelationshipCancellationAsAck:qc.default.func.isRequired,waiveRelationshipCancellationFee:qc.default.func.isRequired,claimRelationshipCancellationFee:qc.default.func.isRequired,requireSuccessfulEventsBeforeCompensationClaim:qc.default.bool.isRequired};const VR=(0,Te.inject)(({store:e})=>{var t;return{acknowledgeRelationshipCancellation:e.pages.notifications.acknowledgeRelationshipCancellation,markRelationshipCancellationAsAck:e.pages.notifications.markRelationshipCancellationAsAck,waiveRelationshipCancellationFee:e.pages.notifications.waiveRelationshipCancellationFee,claimRelationshipCancellationFee:e.pages.notifications.claimRelationshipCancellationFee,requireSuccessfulEventsBeforeCompensationClaim:null===(t=e.session.countryConfig)||void 0===t?void 0:t.requireSuccessfulEventsBeforeCompensationClaim}})((0,Te.observer)(WR)),KR=((0,Ge.default)(Pa.default).withConfig({displayName:"notifications__BackIcon",componentId:"sc-1ripo8c-0"})(["padding-left:10px;"]),(0,Ge.default)(Pa.default).withConfig({displayName:"notifications__BellIcon",componentId:"sc-1ripo8c-1"})(["transform:rotate(45deg);"]),(0,Ge.default)(qe.default).withConfig({displayName:"notifications__EventWrapper",componentId:"sc-1ripo8c-2"})(["margin:0 -5px;"])),YR=(0,Ge.default)(Be.default).withConfig({displayName:"notifications__EmptyMessage",componentId:"sc-1ripo8c-3"})(["font-size:16px;padding:20px;"]),XR=(0,Ge.default)(qe.default).withConfig({displayName:"notifications__Content",componentId:"sc-1ripo8c-4"})(["flex-grow:1;"]),ZR=(0,Ge.default)(qe.default).withConfig({displayName:"notifications__Border",componentId:"sc-1ripo8c-5"})(["margin:0px 15px;height:1px;background-color:",";"],Qe.VIOLET_4),QR=({activeNotifications:e,changeRequestsNotActioned:t=[],loading:n,fetch:i,cancelledEventsNotActioned:o=[],cancelledRelationships:a=[],navigate:s,dismissSharePublicProfileBanner
2373Notification:r})=>{const{changeRequests:{acceptChangeRequest:l,rejectChangeRequest:d,closeChangeRequest:c,acknowledgeChangeRequest:u}}=lt(),{isConnected:p}=(0,ta.useNetInfo)();if((0,K.useEffect)(function(){i()},[]),n)return(0,X.jsx)(Rf,{title:i18n.t("notifications.title"),scrollEnabled:!1,centeredContent:!0,content:()=>(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS})});const m={suspended:{title:i18n.t("notifications.suspended.title"),description:i18n.t("notifications.suspended.description")},awaitingOnfido:{title:i18n.t("notifications.awaiting_onfido.title")},oneRelationshipLimit:{title:i18n.t("notifications.one_relationship_limit.title"),description:i18n.t("notifications.one_relationship_limit.description")},showShareBanner:{title:i18n.t("notifications.show_share_banner.title"),onPress:()=>{p&&(r(),s("/provider/edit_public_profile"))},iconName:"chevron-right",allClickable:!0},showReference:{title:i18n.t("notifications.show_references.title"),description:i18n.t("notifications.show_references.description"),onPress:()=>p?s(Ki()):null,iconName:"chevron-right",allClickable:!0}},f=t.length+o.length+a.length,g=!(e.length+f);return(0,X.jsx)(Rf,{title:i18n.t("notifications.title"),content:()=>(0,X.jsxs)(XR,{children:[(0,X.jsx)(pf,{$marginTop:12,noContentMargin:!0}),g&&(0,X.jsx)(YR,{children:i18n.t("notifications.empty")}),!!e.length&&(0,X.jsx)(Eg,{title:i18n.t("notifications.important_information"),children:e.map(e=>(0,X.jsx)(pR,Object.assign({},m[e],{eventAction:`notification ${e}`}),e))}),!!e.length&&!!f&&(0,X.jsx)(ZR,{}),!!f&&(0,X.jsxs)(Eg,{title:i18n.t("notifications.new_notifications"),count:f,children:[t.map(e=>(0,X.jsx)(pR,{allClickable:!0,title:i18n.t("change_request.title"),eventAction:`notification ${e}`,children:(0,X.jsx)(KR,{children:(0,X.jsx)(Lv,{changeRequest:e,acceptChangeRequest:l,rejectChangeRequest:d,closeChangeRequest:c,acknowledgeChangeRequest:u})})},e.id)),o.map(e=>(0,X.jsx)(MR,{event:e},e.id)),a.map(e=>(0,X.jsx)(VR,{relationship:e},e.id))]})]})})};QR.propTypes={loading:qc.default.bool.isRequired,fetch:qc.default.func.isRequired,activeNotifications:qc.default.arrayOf(qc.default.string),changeRequestsNotActioned:qc.default.arrayOf(qc.default.modelOf(Nl)),cancelledEventsNotActioned:qc.default.arrayOf(qc.default.modelOf(vl)),cancelledRelationships:qc.default.arrayOf(qc.default.modelOf(jl)),navigate:qc.default.func.isRequired,dismissSharePublicProfileBannerNotification:qc.default.func.isRequired};const JR=du((0,Te.inject)(({store:e})=>({fetch:e.pages.notifications.fetch,loading:e.pages.notifications.initialLoading,activeNotifications:e.pages.notifications.activeNotifications,changeRequestsNotActioned:e.pages.notifications.changeRequestsNotActioned,cancelledEventsNotActioned:e.pages.notifications.cancelledEventsNotActioned,cancelledRelationships:e.pages.notifications.cancelledRelationships,dismissSharePublicProfileBannerNotification:e.pages.notifications.dismissSharePublicProfileBannerNotification}))((0,Te.observer)(QR))),eS=(0,Ge.default)(qe.default).withConfig({displayName:"container__Wrapper",componentId:"sc-1wynf90-0"})(["background-color:",";flex:1;display:flex;padding-bottom:","px;"],e=>e.isPremium?Qe.WHITE:Qe.GRAY_4,({$paddingBottom:e})=>e);const tS=function({children:e,disableTabMenu:t,isPremium:n=!0}){const{isDesktop:i}=uu(),o=!t&&!i,{insets:a,contentPaddingBottom:s}=_f({tabMenuVisible:o}),{isConnected:r}=(0,ta.useNetInfo)(),l=(0,Ks.useHistory)();return(0,K.useEffect)(()=>{const e=xf.default.addEventListener("hardwareBackPress",()=>(l.goBack(),!0));return()=>e.remove()},[]),(0,X.jsxs)(eS,{isPremium:n,$paddingBottom:s,children:[!r&&(0,X.jsx)(pm,{paddingTop:a.top}),i&&(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}),e,o&&(0,X.jsx)(sf,{})]})},nS=(0,Ge.default)(qe.default).withConfig({displayName:"content__Wrapper",componentId:"sc-q3uvgz-0"})(["flex:1;"," background-color:",";margin-bottom:5px;"," ",""],e=>e.isPremium&&"margin-top: -35px;",e=>e.isPremium?Qe.WHITE:Qe.GRAY_4,e=>e.isPremium&&"border-top-right-radius: 40px;",e=>e.isPremium&&"border-top-left-radius: 40px;"),iS=(0,Ge.default)(qj.default).withConfig({displayName:"content__ContentContainerScroll",componentId:"sc-q3uvgz-1"})(["flex:1;"," align-self:center;width:",";"],e=>e.isPremium&&"padding: 20px;",({isDesktop:e})=>e?Vj:"100%"),oS=(0,Ge.default)(qe.default).withConfig({displayName:"content__ContentContainer",componentId:"sc-q3uvgz-2"})(["flex:1;padding:0px;align-self:center;width:",";"],({isDesktop:e})=>e?Vj:"100%");const aS=function({children:e,style:t,disableScroll:n,isPremium:i=!0}){const{isDesktop:o}=uu();return(0,X.jsx)(nS,{style:t,isPremium:i,children:n?(0,X.jsx)(oS,{isDesktop:o,children:e}):(0,X.jsx)(iS,{isDesktop:o,isPremium:i,children:e})})},sS=(0,Ge.default)(qe.default).withConfig({displayName:"header__Wrapper",componentId:"sc-9ecmwe
2373-0"})(["background-color:",";min-height:200px;border:0;padding:20px;",""],Qe.GREEN_IRISH_BREEZE,({$paddingTop:e})=>!1),rS=(0,Ge.default)(qe.default).withConfig({displayName:"header__InnerContainer",componentId:"sc-9ecmwe-1"})(["flex:1;width:",";",""],({isDesktop:e})=>e?Vj:"100%",({isDesktop:e})=>e&&"align-self: center;"),lS=(0,Ge.default)(Pa.default).attrs({name:"arrow-back",size:30,color:Qe.BLACK}).withConfig({displayName:"header__ArrowBackIcon",componentId:"sc-9ecmwe-2"})([""]),dS=(0,Ge.default)(ts).withConfig({displayName:"header__BackButton",componentId:"sc-9ecmwe-3"})(["margin-top:30px;margin-left:20px;"]);const cS=function({children:e,hideBackButton:t,style:n}){const i=(0,Re.useSafeAreaInsets)(),o=(0,Ks.useHistory)(),{isDesktop:a}=uu();return(0,X.jsx)(sS,{style:n,$paddingTop:i.top,children:(0,X.jsxs)(rS,{isDesktop:a,children:[!t&&(0,X.jsx)(dS,{onPress:()=>o.goBack(),children:(0,X.jsx)(lS,{})}),(0,X.jsx)(qe.default,{style:{flex:1},children:e})]})})},uS=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_event__Message",componentId:"sc-o4n857-0"})(["margin:25px 10px 0px 25px;display:flex;flex-direction:row;"]),pS=(0,Ge.default)(Be.default).withConfig({displayName:"cancelled_event__MessageText",componentId:"sc-o4n857-1"})(["font-size:13px;padding:0px 20px 0px 0px;flex:1;"]),mS=(0,Ge.default)(ts).withConfig({displayName:"cancelled_event__ActionButton",componentId:"sc-o4n857-2"})([""]);function fS({onAction:e,event:t}){const{customer:n,details:i}=t,o=i.formattedDate,a=i.formattedStartTime,s=null===n||void 0===n?void 0:n.name;return(0,X.jsxs)(uS,{children:[(0,X.jsx)(pS,{children:i18n.t("notifications.cancelled_event_message",{customer:(0,er.startCase)(s),date:`${o} at ${a}`})}),(0,X.jsx)(mS,{onPress:e,children:(0,X.jsx)(Pa.default,{name:"close",size:20,color:"gray"})})]})}fS.propTypes={onAction:qc.default.func.isRequired,event:qc.default.object.isRequired};const gS=(0,Te.observer)(fS);function hS({events:e,actionCancelledEvent:t}){return e.map(e=>(0,X.jsx)(gS,{event:e,onAction:()=>t(e.id)},e.id))}hS.propTypes={events:qc.default.arrayOf(Object).isRequired,actionCancelledEvent:qc.default.func.isRequired};const _S=hS,xS=(0,Ge.default)(qe.default).withConfig({displayName:"cancelled_relationship__Message",componentId:"sc-1vn6nsw-0"})(["margin:25px 10px 0px 25px;display:flex;flex-direction:row;"]),yS=(0,Ge.default)(Be.default).withConfig({displayName:"cancelled_relationship__MessageText",componentId:"sc-1vn6nsw-1"})(["font-size:13px;padding:0px 20px 0px 0px;flex:1;"]),vS=(0,Ge.default)(ts).withConfig({displayName:"cancelled_relationship__ActionButton",componentId:"sc-1vn6nsw-2"})([""]);function bS({onAction:e,relationship:t}){var n;const{customer:i,futureEvents:o}=t,a=null===i||void 0===i?void 0:i.name,s=(0,er.findLast)(o,e=>!e.cancelled),r=null===s||void 0===s||null===(n=s.details)||void 0===n?void 0:n.formattedDate;return(0,X.jsxs)(xS,{children:[(0,X.jsxs)(yS,{children:[i18n.t("notifications.cancelled_relationship_message",{customer:a}),r&&" "+i18n.t("notifications.cancelled_relationship_message_last_event_date",{date:r})]}),(0,X.jsx)(vS,{onPress:e,children:(0,X.jsx)(Pa.default,{name:"close",size:20,color:"gray"})})]})}bS.propTypes={onAction:qc.default.func.isRequired,relationship:qc.default.object.isRequired};const wS=(0,Te.observer)(bS);function CS({relationships:e,actionCancelledRelationship:t}){return e.map(e=>(0,X.jsx)(wS,{relationship:e,onAction:()=>t(e.id)},e.id))}CS.propTypes={relationships:qc.default.arrayOf(Object).isRequired,actionCancelledRelationship:qc.default.func.isRequired};const jS=CS,IS=(0,Ge.default)(qj.default).withConfig({displayName:"notifications__ScrollView",componentId:"sc-8w2vh8-0"})([""]),TS=(0,Ge.default)(Be.default).withConfig({displayName:"notifications__HeaderTitle",componentId:"sc-8w2vh8-1"})(["color:",";font-weight:700;font-size:25px;margin-top:10px;margin-left:25px;"],Qe.BLACK),ES=(0,Ge.default)(Be.default).withConfig({displayName:"notifications__Title",componentId:"sc-8w2vh8-2"})(["font-weight:700;color:",";font-size:16px;margin-bottom:10px;margin-top:30px;margin-left:25px;"],Qe.BLACK),NS=(0,Ge.default)(Be.default).withConfig({displayName:"notifications__EmptyMessage",componentId:"sc-8w2vh8-3"})(["font-size:16px;padding:20px;"]);const kS=(0,Te.observer)(function(){const{pages:{notifications:{initialLoading:e,fetchForPremium:t,cancelledEventsNotActioned:n=[],cancelledRelationships:i=[],acknowledgeRelationshipCancellation:o}},events:{acknowledgeEventCancellation:a}}=lt(),{isConnected:s}=(0,ta.useNetInfo)(),r=n.length+i.length>0;return(0,K.useEffect)(()=>{s&&t()},[s]),(0,X.jsxs)(tS,{disableTabMenu:!0,children:[(0,X.jsx)(cS,{children:(0,X.jsx)(TS,{children:i18n.t("notifications.title")})}),(0,X.jsxs)(aS,{children:[e&&(0,X.jsx)(Aa.default,{size:"large",color:"gray"}),!r&&!e&&(0,X.jsx)(NS,{children:i18n.t("notifications.empty")}),(0,X.jsx)(IS,{overScrollMode:"never",children:r&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ES,{children:i18n.t("notifications.booking_updates.title")}),(0,X.jsx)(_S,{events:n,actionCancelledEvent:e=>a(e)}),(0,X.jsx)(jS,{relationships:i,actionCancelledRelationship:e=>o(e)})]})})]})]})}),RS=(0,Te.observer)(()=>{const{session:{currentUser:e}}=lt();return null!==e&&void 0!==e&&e.premium?(0,X.jsx)(kS,{}):(0,X.jsx)(JR,{})});var SS=n(62362),AS=n.n(SS);const PS=(0,Ge.default)(qe.default).withConfig({displayName:"rating_stars__StarsContainer",componentId:"sc-vuwae9-0"})(["flex-direction:row;"]),DS=(0,Ge.default)(rf.default).withConfig({displayName:"rating_stars__Star",componentId:"sc-vuwae9-1"})(["color:",";padding-right:1px;"],e=>e.color),MS=({rating:e})=>{const t=Math.round(e);return(0,X.jsx)(PS,{children:[1,2,3,4,5].map(e=>(0,X.jsx)(DS,{color:e<=t?Qe.GOLD_1:Qe.GRAY_LIGHT,children:"\u2605"},e))})};MS.propTypes={rating:ze().number.isRequired};const OS=MS,zS=xt`
2374  mutation acceptBid($bidCode: ID!, $responseMethod: String!) {
2375    acceptBid(bidCode: $bidCode, responseMethod: $responseMethod) {
2376      success
2377      errors {
2378        code
2379        message
2380      }
2381    }
2382  }
2383`,LS=()=>{const[e,{loading:t}]=(0,js.useMutation)(zS,{context:{apiVersion:3}});return{acceptBid:({bidCode:t})=>e({variables:{bidCode:t,responseMethod:"provider_app"}}),loading:t}},qS=xt`
2384  mutation providerRejectBid($bidCode: ID!, $responseMethod: String!, $rejectionReason: String!) {
2385    rejectBid(bidCode: $bidCode, responseMethod: $responseMethod, rejectionReason: $rejectionReason) {
2386      success
2387      errors {
2388        code
2389        message
2390      }
2391    }
2392  }
2393`,BS=xt`
2394  query providerFetchCustomerReceivedRatings($customerId: ID!) {
2395    customer(id: $customerId) {
2396      id
2397      ratings {
2398        average
2399        count
2400        data {
2401          month
2402          ratings {
2403            id
2404            comments
2405            rating
2406          }
2407        }
2408      }
2409    }
2410  }
2411`,GS=xt`
2412  query bid($code: String!) {
2413    bid(code: $code) {
2414      id
2415      customer {
2416        id
2417        firstname
2418        abTests {
2419          experiment
2420          experimentKey
2421        }
2422      }
2423      code
2424      description
2425      duration
2426      starttime
2427      endtime
2428      frequency
2429      isFinite
2430      repeat
2431      isCountdown
2432      countdownEndTime
2433      optedIn
2434      address {
2435        id
2436        address1
2437        address2
2438        floor
2439        postcode
2440        town
2441        firstName
2442        lastName
2443        longitude
2444        latitude
2445      }
2446      exactLocation
2447      fullAddress
2448      metroName
2449      postcode
2450      previousAddress {
2451        id
2452        address1
2453        address2
2454        floor
2455        postcode
2456        town
2457        firstName
2458        lastName
2459        longitude
2460        latitude
2461      }
2462      regionName
2463      latitude
2464      longitude
2465      materialsRequired
2466      notes
2467      payouts {
2468        pricePerHour
2469        commissionAmountPerHour
2470        providerPayoutPerHour
2471        providerTotalPayout
2472        commissionPercentage
2473      }
2474      payoutsWithIntroFee {
2475        pricePerHour
2476        commissionAmountPerHour
2477        providerPayoutPerHour
2478        providerTotalPayout
2479        commissionPercentage
2480      }
2481      relatedBids {
2482        code
2483        starttime
2484        endtime
2485      }
2486      averageCustomerRating
2487      customerRatingsCount
2488      additionalServices
2489      customerInstructions {
2490        cleaningDetails
2491        needsCleaningProducts
2492        tasks
2493      }
2494      pets
2495      travelTime
2496      bidType
2497      providerSelectedByCustomer
2498      showPecGuidelineBeforeAccept
2499    }
2500  }
2501`,US=_t.default`
2502  mutation createNewBidWonMessage($code: String!, $message: String!) {
2503    createNewBidWonMessage(code: $code, body: $message) {
2504      success
2505    }
2506  }
2507`,$S=()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(US);return{createNewBidWonMessage:({code:t,message:n})=>e({variables:{code:t,message:n}}),loading:t,error:n}},FS=xt`
2508  subscription bidRelationshipCreated($bidCode: String) {
2509    bidRelationshipCreated(bidCode: $bidCode) {
2510      bidCode
2511      relationshipId
2512    }
2513  }
2514`,HS=e=>{var t;const{data:n,loading:i,error:o}=(0,Om.useSubscription)(FS,{variables:{bidCode:e},context:{apiVersion:3},fetchPolicy:"network-only"});return{relationshipId:null===n||void 0===n||null===(t=n.bidRelationshipCreated)||void 0===t?void 0:t.relationshipId,loading:i,error:o}},WS=(0,Ge.default)(qe.default).withConfig({displayName:"ratings_modal__Container",componentId:"sc-oj1vgk-0"})(["padding:40px 20px 16px 20px;flex:1;"]),VS=(0,Ge.default)(Vf.default).withConfig({displayName:"ratings_modal__Content",componentId:"sc-oj1vgk-1"})(["margin-bottom:30px;"]),KS=(0,Ge.default)(qe.default).withConfig({displayName:"ratings_modal__RatingContainer",componentId:"sc-oj1vgk-2"})(["margin-bottom:8px;"]),YS=(0,Ge.default)(lm).withConfig({displayName:"ratings_modal__Rating",componentId:"sc-oj1vgk-3"})(["padding:12px;margin-bottom:8px;border-width:1px;border-color:",";"],Qe.GRAY_BORDER),XS=(0,Ge.default)(qe.default).withConfig({displayName:"ratings_modal__RatingHeader",componentId:"sc-oj1vgk-4"})(["border-bottom-width:1px;border-bottom-color:",";"],Qe.GRAY_BORDER),ZS=(0,Ge.default)(Be.default).withConfig({displayName:"ratings_modal__Month",componentId:"sc-oj1vgk-5"})(["font-weight:500;color:",";margin-bottom:4px;"],Qe.TEXT_DARK),QS=(0,Ge.default)(Be.default).withConfig({displayName:"ratings_modal__Description",componentId:"sc-oj1vgk-6"})(["color:",";margin-top:12px;"],Qe.TEXT_DARK),JS=(0,Ge.default)(ms).withConfig({displayName:"ratings_modal__StyledButton",componentId:"sc-oj1vgk-7"})(["margin:0 auto;margin-top:auto;"]),eA=(0,Ge.default)(Be.default).withConfig({displayName:"ratings_modal__Error",componentId:"sc-oj1vgk-8"})(["color:",";"],Qe.CRIMSON_1);function tA({open:e,onClose:t,customerId:n}){const{ratings:i,loading:o,error:a}=(({customerId:e})=>{var t,n;const{data:i,error:o,loading:a}=(0,Is.useQuery)(BS,{variables:{customerId:e},context:{apiVersion:3}});return{ratings:null===i||void 0===i||null===(t=i.customer)||void 0===t||null===(n=t.ratings)||void 0===n?void 0:n.data,loading:a,error:o}})({customerId:n});return(0,X.jsx)(zw,{displayCloseButton:!0,title:i18n.t("bid.booking_details.ratings_modal.title"),isOpen:e,onClose:t,size:"big",children:(0,X.jsxs)(WS,{children:[o&&(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS}),a&&(0,X.jsx)(eA,{children:i18n.t("provider.generic.error")}),!o&&(0,X.jsx)(VS,{children:i.map(({month:e,ratings:t})=>(0,X.jsxs)(KS,{children:[(0,X.jsx)(ZS,{children:C.DateTime.fromISO(e).toFormat("MMMM y")}),t.map((e,t)=>(0,X.jsxs)(YS,{elevation:1,children:[(0,X.jsx)(XS,{children:(0,X.jsx)(OS,{rating:e.rating})}),(0,X.jsx)(QS,{children:e.comments})]},t))]},e))}),(0,X.jsx)(JS,{textColor:Qe.CTA_SALMON,variant:"secondary",borderColor:Qe.CTA_SALMON,onPress:t,children:i18n.t("bid.booking_details.ratings_modal.close")})]})})}tA.propTypes={open:qc.default.bool.isRequired,onClose:qc.default.func.isRequired,customerId:qc.default.string.isRequired};const nA=(0,Te.observer)(tA);var iA=n(24877),oA=n.n(iA);const aA=[{key:"google",value:oA().translate("map.google",{defaultValue:"Google Maps \u2192"})},{key:"apple",value:oA().translate("map.apple",{defaultValue:"Apple Maps \u2192"})},{key:"browser",value:oA().translate("map.browser",{defaultValue:"Browser \u2192"})}],sA=(e,t)=>{if(!e)return!1;const n=e.replace("#","%23"),i=`http://maps.google.com/?q=${n}`;window.open(i)},rA=({startLat:e,startLng:t,endLat:n,endLng:i})=>{const o=`https://www.google.com/maps/dir/${e},${t}/${n},${i}?dirflg=r`;bs.default.openURL(o)},lA=xt`
2515  query getTravelTimeToAddress($originAddressId: ID!, $destinationAddressId: ID!, $arrivalTime: DateTime!) {
2516    travelTimeToAddress(originAddressId: $originAddressId, destinationAddressId: $destinationAddressId, arrivalTime: $arrivalTime)
2517  }
2518`,dA=xt`
2519  mutation storeTravelTimeFromAddress($travelTime: Int!, $travelTimeFromId: ID!, $bidId: ID!) {
2520    storeTravelTimeFromAddress(travelTime: $travelTime, travelTimeFromId: $travelTimeFromId, bidId: $bidId) {
2521      success
2522    }
2523  }
2524`,cA=xt`
2525  mutation storeNewRequestTravelTimeFromAddress($travelTime: Int!, $travelTimeFromId: ID!, $newRequestId: ID!) {
2526    storeNewRequestTravelTimeFromAddress(travelTime: $travelTime, travelTimeFromId: $travelTimeFromId, newRequestId: $newRequestId) {
2527      success
2528    }
2529  }
2530`,uA=({originAddressId:e,destinationAddressId:t,arrivalTime:n,onStore:i})=>{const[o,{data:a,loading:s}]=(0,kn.useLazyQuery)(lA);return{fetchTravelTime:async()=>{const a=await o({variables:{originAddressId:e,destinationAddressId:t,arrivalTime:n},context:{apiVersion:3}});return i&&a.data&&i(a.data.travelTimeToAddress),a},travelTime:null===a||void 0===a?void 0:a.travelTimeToAddress,loading:s}}
2530,pA=({bidId:e,originAddressId:t,destinationAddressId:n,arrivalTime:i})=>{const[o]=(0,js.useMutation)(dA,{context:{apiVersion:3}});return uA({originAddressId:t,destinationAddressId:n,arrivalTime:i,onStore:n=>o({variables:{travelTime:n,travelTimeFromId:t,bidId:e}})})},mA=(0,Ge.default)(qe.default).withConfig({displayName:"booking_details__Section",componentId:"sc-2sm3f9-0"})(["margin:12px 0;"]),fA=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__Title",componentId:"sc-2sm3f9-1"})(["font-weight:600;font-size:15px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),gA=(0,Ge.default)(ts).withConfig({displayName:"booking_details__Item",componentId:"sc-2sm3f9-2"})(["flex-direction:",";justify-content:space-between;padding:12px 10px;border:1px solid ",";"," ",""],({column:e})=>"row",Qe.GRAY_BORDER,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;",({seperate:e})=>e&&"margin-bottom: 8px;"),hA=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__ItemLabel",componentId:"sc-2sm3f9-3"})(["color:",";padding-right:8px;flex:1;"],Qe.TEXT_DARK),_A=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__ItemValue",componentId:"sc-2sm3f9-4"})(["",";",";margin-left:auto;flex:1;text-align:right;"],({color:e})=>e&&`color: ${e}`,({bold:e})=>e&&"font-weight: bold"),xA=(0,Ge.default)(qe.default).withConfig({displayName:"booking_details__Rating",componentId:"sc-2sm3f9-5"})(["flex-direction:row;align-items:center;align-self:flex-end;"]),yA=()=>(0,X.jsx)(qe.default,{style:{flex:1,height:"100%",justifyContent:"center",alignItems:"center"},children:(0,X.jsx)(xm.ActivityIndicator,{size:"small"})});function vA({bidId:e,storedTravelTime:t,customerId:n,averageCustomerRating:i,customerRatingsCount:o,durationInHour:a,materialsEnabled:s,materialsRequired:r,notes:l,address:d,previousAddress:c,providerAddressId:u,additionalServices:p=[],startTime:m,trackingProperties:f}){const{autoTrackEnhanced:g}=mt(),[h,_]=(0,K.useState)(!1),[x,y]=(0,K.useState)(!!t);let{fetchTravelTime:v,travelTime:b,loading:w}=pA({bidId:e,originAddressId:c.id,destinationAddressId:d.id,arrivalTime:m});const C=p.length>0,j=!x&&!t,I=x&&w&&!t,T=x&&!w&&null==b&&!t,E=x&&!w&&null!=b||t,N=()=>{c&&c.latitude&&c.longitude&&d&&d.latitude&&d.longitude&&rA({startLat:c.latitude,startLng:c.longitude,endLat:d.latitude,endLng:d.longitude})},k=(0,K.useCallback)(()=>{g({userFlow:za,action:Xa.click,objectName:"customer ratings",properties:f}),_(!0)},[_,g]);return(0,X.jsxs)(mA,{children:[(0,X.jsx)(fA,{children:i18n.t("event.sections.booking_details.title")}),0!==o&&(0,X.jsxs)(gA,{showBottomBorder:!0,seperate:!0,onPress:k,children:[(0,X.jsx)(hA,{children:i18n.t("bid.booking_details.customer_ratings")}),(0,X.jsxs)(xA,{children:[(0,X.jsx)(OS,{rating:i}),(0,X.jsx)(Be.default,{children:i}),(0,X.jsxs)(Be.default,{children:["(",o,")"]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,style:{marginRight:-8}})]})]}),(0,X.jsxs)(gA,{children:[(0,X.jsx)(hA,{children:i18n.t("event.sections.booking_details.duration")}),(0,X.jsx)(_A,{children:i18n.t("event.sections.booking_details.duration_value",{duration:a})})]}),s&&(0,X.jsxs)(gA,{children:[(0,X.jsx)(hA,{children:i18n.t("bid.booking_details.materials")}),(0,X.jsx)(_A,{children:r?i18n.t("bid.booking_details.materials_yes"):i18n.t("bid.booking_details.materials_no")})]}),!!l&&(0,X.jsxs)(gA,{children:[(0,X.jsx)(hA,{children:i18n.t("bid.booking_details.notes")}),(0,X.jsx)(_A,{children:l})]}),(0,X.jsxs)(gA,{showBottomBorder:!C,column:x,onPress:async()=>{if(x)g({userFlow:za,action:Xa.click,objectName:"view on map",properties:f}),N();else{try{g({userFlow:za,action:Xa.click,objectName:"show travel time",properties:f}),await v()}catch(e){le(e)}y(!0)}},testID:j?"TravelTime:getTime":"TravelTime:showDirections",children:[(0,X.jsx)(hA,{children:u!==c.id?i18n.t("notifications.new_customer_detail.travel_time_from_previous_job",{previous_job_address:c.address1}):i18n.t("notifications.new_customer_detail.travel_time_from_home")}),(0,X.jsxs)(_A,{color:Qe.GREEN_SUMMER_GRASS,bold:!0,children:[j&&i18n.t("notifications.new_customer_detail.get_travel_time"),I&&(0,X.jsx)(yA,{}),T&&i18n.t("notifications.new_customer_detail.see_route"),E&&i18n.t("notifications.new_customer_detail.travel_time_on_public_transportation",{time:t?Math.round(t/60):Math.round(b/60)})]})]}),C&&(0,X.jsxs)(gA,{showBottomBorder:!0,children:[(0,X.jsx)(hA,{children:i18n.t("additional_services.label")}),(0,X.jsx)(_A,{children:p.map(e=>{const[t,n]=e.split(".");return`${i18n.t(`additional_services.${t}.included`)} (${i18n.t(`additional_services.${t}.variants.${n}`,{defaultValue:i18n.t(`additional_services.variants.${n}`)})})`}).join(", ")})]}),(0,X.jsx)(nA,{open:h,onClose:()=>_(!1),customerId:n})]})}vA.propTypes={bidId:qc.default.string,storedTravelTime:qc.default.number,durationInHour:qc.default.number,additionalServices:qc.default.arrayOf(qc.default.string),customerId:qc.default.string,averageCustomerRating:qc.default.number,customerRatingsCount:qc.default.number,materialsEnabled:qc.default.bool,materialsRequired:qc.default.bool,notes:qc.default.string,address:qc.default.object,previousAddress:qc.default.object,providerAddressId:qc.default.string,startTime:qc.default.string,trackingProperties:qc.default.shape({serviceType:qc.default.string,offerType:qc.default.string,asap:qc.default.bool,providerType:qc.default.string,frequencyOption:qc.default.string})};const bA=(0,Te.observer)(vA),wA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offers_detail__Container",componentId:"sc-nluru1-0"})(["padding:40px 20px 16px 20px;align-items:center;"]),CA=(0,Ge.default)(Be.default).withConfig({displayName:"countdown_offers_detail__Description",componentId:"sc-nluru1-1"})(["margin-top:24px;text-align:center;"]),jA=(0,Ge.default)(Be.default).withConfig({displayName:"countdown_offers_detail__StepsTitle",componentId:"sc-nluru1-2"})(["font-size:20px;font-weight:bold;margin:20px 0px;"]),IA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offers_detail__Wrapper",componentId:"sc-nluru1-3"})([""]),TA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offers_detail__Step",componentId:"sc-nluru1-4"})(["width:100%;flex-direction:row;padding:10px 0px;"]),EA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offers_detail__StepDetails",componentId:"sc-nluru1-5"})(["flex:1;padding:0px 5px;"]),NA=(0,Ge.default)(Be.default).withConfig({displayName:"countdown_offers_detail__StepText",componentId:"sc-nluru1-6"})(["color:",";"],Qe.TEXT_DARK),kA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offers_detail__Circle",componentId:"sc-nluru1-7"})(["flex-direction:row;border-radius:10px;height:20px;width:20px;align-items:center;background-color:",";"],Qe.GREEN_SUMMER_GRASS),RA=(0,Ge.default)(Be.default).withConfig({displayName:"countdown_offers_detail__StepCount",componentId:"sc-nluru1-8"})(["flex:1;font-size:14px;color:",";text-align:center;"],Qe.WHITE),SA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offers_detail__IconContainer",componentId:"sc-nluru1-9"})(["background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN);function AA({modalOpen:e,setModalOpen:t}){return(0,X.jsx)(zw,{displayCloseButton:!0,size:"normal",testID:"countdown-offer-details-modal",isOpen:e,title:i18n.t("reverse_bid.modals.how_it_works.title"),onClose:()=>t(!1),children:(0,X.jsxs)(wA,{children:[(0,X.jsx)(SA,{children:(0,X.jsx)(Pa.default,{name:"clock",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsx)(CA,{children:i18n.t("reverse_bid.modals.how_it_works.description")}),(0,X.jsx)(jA,{children:i18n.t("reverse_bid.modals.how_it_works.steps_title")}),(0,X.jsx)(IA,{children:[1,2,3].map(e=>(0,X.jsxs)(TA,{children:[(0,X.jsx)(kA,{children:(0,X.jsx)(RA,{children:e})}),(0,X.jsxs)(EA,{children:[(0,X.jsx)(NA,{children:i18n.t(`reverse_bid.modals.how_it_works.step_${e}`)}),1===e&&(0,X.jsx)(NA,{children:i18n.t("reverse_bid.modals.how_it_works.step_1_note")})]})]},e))})]})})}AA.propTypes={setModalOpen:qc.default.func.isRequired,modalOpen:qc.default.bool.isRequired};const PA=(0,Te.observer)(AA),DA=(0,Ge.default)(lm).withConfig({displayName:"countdown_offer__MainContainer",componentId:"sc-poyq69-0"})(["margin:12px 2px;"]),MA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offer__Row",componentId:"sc-poyq69-1"})(["flex-direction:row;align-items:center;"]),OA=(0,Ge.default)(MA).withConfig({displayName:"countdown_offer__Container",componentId:"sc-poyq69-2"})(["padding-right:25px;"]),zA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offer__IconContainer",componentId:"sc-poyq69-3"})(["margin-right:13px;background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN),LA=(0,Ge.default)(qe.default).withConfig({displayName:"countdown_offer__Content",componentId:"sc-poyq69-4"})(["flex:1;"]),qA=(0,Ge.default)(Pa.default).withConfig({displayName:"countdown_offer__ArrowRightIcon",componentId:"sc-poyq69-5"})(["margin-left:auto;"]),BA=(0,Ge.default)(Be.default).withConfig({displayName:"countdown_offer__TitleText",componentId:"sc-poyq69-6"})(["font-size:16px;color:",";"],Qe.TEXT_DARK);function GA({trackingProperties:e}){const[t,n]=(0,K.useState)(!1);return(0,X.jsxs)(DA,{elevation:1,children:[(0,X.jsx)(ts,{disableWhenOffline:!0,onPress:()=>n(!0),withoutFeedback:!0,trackingUserFlow:za,trackingObjectName:"countdown offer info banner",trackingProperties:e,children:(0,X.jsxs)(OA,{children:[(0,X.jsx)(zA,{children:(0,X.jsx)(Pa.default,{name:"clock",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsx)(LA,{children:(0,X.jsx)(BA,{children:i18n.t("event.countdown.offer")})}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(qA,{name:"keyboard-arrow-right",color:Qe.CTA_DARK}
2530)})]})}),(0,X.jsx)(PA,{modalOpen:t,setModalOpen:n})]})}GA.propTypes={trackingProperties:qc.default.shape({serviceType:qc.default.string,offerType:qc.default.string,asap:qc.default.bool,providerType:qc.default.string,frequencyOption:qc.default.string})};const UA=GA,$A=(0,Ge.default)(lm).withConfig({displayName:"reliability_score_disclaimer__Container",componentId:"sc-1gzwes5-0"})(["justify-content:center;align-items:center;padding:16px;margin:16px 16px;"]),FA=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_score_disclaimer__RealibilityScoreText",componentId:"sc-1gzwes5-1"})(["color:",";text-align:center;margin:5px auto;"],Qe.GRAY_3),HA=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_score_disclaimer__Description",componentId:"sc-1gzwes5-2"})(["margin-top:8px;text-align:center;",""],({bold:e})=>e&&"font-weight: bold;"),WA=(0,Ge.default)(qe.default).withConfig({displayName:"reliability_score_disclaimer__IconContainer",componentId:"sc-1gzwes5-3"})(["background-color:",";width:36px;height:36px;border-radius:36px;justify-content:center;align-items:center;margin-bottom:12px;"],Qe.CRIMSON_4),VA=()=>{const{isDesktop:e}=uu();return(0,X.jsxs)($A,{isDesktop:e,elevation:1,children:[(0,X.jsx)(WA,{children:(0,X.jsx)(Pa.default,{name:"exclamation-thick",size:24,color:Qe.CRIMSON_1,set:"MaterialCommunityIcons"})}),(0,X.jsx)(FA,{children:i18n.t("bid.reliability_score_disclaimer.current_status_title")}),(0,X.jsx)(qb,{elevation:1}),(0,X.jsx)(HA,{bold:!0,children:i18n.t("bid.reliability_score_disclaimer.part_1")}),(0,X.jsx)(HA,{children:i18n.t("bid.reliability_score_disclaimer.part_2")}),(0,X.jsx)(HA,{bold:!0,children:i18n.t("bid.reliability_score_disclaimer.part_3")})]})},KA=(0,Ge.default)(qe.default).withConfig({displayName:"step_accept__Container",componentId:"sc-1l3x3mo-0"})(["padding:10px 20px 16px 20px;flex:1;justify-content:space-between;"]),YA=(0,Ge.default)(Vf.default).attrs(()=>({contentContainerStyle:{paddingBottom:42,flexGrow:1}}
2530)).withConfig({displayName:"step_accept__Content",componentId:"sc-1l3x3mo-1"})([""]),XA=(0,Ge.default)(Be.default).withConfig({displayName:"step_accept__Subtitle",componentId:"sc-1l3x3mo-2"})(["margin:20px 0px;text-align:center;"]),ZA=(0,Ge.default)(Be.default).withConfig({displayName:"step_accept__StyledText",componentId:"sc-1l3x3mo-3"})(["font-weight:400;font-size:",";color:",";text-align:center;"],({small:e})=>e?"14px":"16px",Qe.GRAY_2),QA=(0,Ge.default)(Be.default).withConfig({displayName:"step_accept__BoldText",componentId:"sc-1l3x3mo-4"})(["font-weight:600;font-size:",";color:",";text-align:center;margin:24px 0;"],({small:e})=>e?"14px":"18px",({color:e})=>e||Qe.TEXT_DARK),JA=(0,Ge.default)(Be.default).withConfig({displayName:"step_accept__TextNormal",componentId:"sc-1l3x3mo-5"})(["font-weight:400;font-size:14px;color:",";text-align:center;"],Qe.GRAY_2),eP=(0,Ge.default)(Be.default).withConfig({displayName:"step_accept__TextBold",componentId:"sc-1l3x3mo-6"})(["font-weight:600;font-size:14px;color:",";text-align:center;margin:24px 0;"],({color:e})=>e||Qe.TEXT_DARK),tP=(0,Ge.default)(qe.default).withConfig({displayName:"step_accept__CountdownOffer",componentId:"sc-1l3x3mo-7"})(["align-items:center;"]),nP=(0,Ge.default)(qe.default).withConfig({displayName:"step_accept__IconContainer",componentId:"sc-1l3x3mo-8"})(["background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;margin-bottom:12px;"],Qe.CRIMSON_4),iP=(0,Ge.default)(qe.default).withConfig({displayName:"step_accept__ButtonGroup",componentId:"sc-1l3x3mo-9"})(["margin-top:20px;margin-bottom:20px;width:100%;flex-direction:",";justify-content:space-evenly;align-items:center;gap:6px;"],({isDesktop:e})=>e?"row":"column");function oP({isCountdown:e,onConfirm:t,onClose:n,loading:i}){const{session:{countryConfig:{showFreelanceReliabilityStatus:o},currentUser:{isFreelance:a}}}=lt(),{isDesktop:s}=uu(),r=o&&a;return(0,X.jsxs)(KA,{children:[(0,X.jsxs)(YA,{children:[!e&&(0,X.jsxs)(XA,{children:[(0,X.jsx)(QA,{children:i18n.t("bid_accept.modals.subtitle")}),(0,X.jsxs)(ZA,{children:[" ",i18n.t("bid_accept.modals.description")," "]}),(0,X.jsx)(QA,{children:i18n.t("bid_accept.modals.description_bold")})]}),e&&(0,X.jsxs)(tP,{children:[(0,X.jsx)(nP,{children:(0,X.jsx)(Pa.default,{name:"clock-alert-outline",size:30,color:Qe.CRIMSON_1,set:"MaterialCommunityIcons"})}),(0,X.jsx)(ZA,{small:!0,children:i18n.t("bid.accept_modal.countdown_description")}),(0,X.jsxs)(ZA,{small:!0,children:[(0,X.jsx)(QA,{small:!0,children:i18n.t("bid.accept_modal.countdown_important")})," ",i18n.t("bid.accept_modal.countdown_important_part_2")]})]}),(0,X.jsxs)(JA,{children:[i18n.t("bid_accept.modals.confirmation.tc_part_1")," ",(0,X.jsx)(eP,{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>ru(i18n.lookup("provider_terms.url")?i18n.t("provider_terms.url"):bi("provider_terms"),0,!0),children:i18n.t("bid_accept.modals.confirmation.tc_part_2")})," ",i18n.t("bid_accept.modals.confirmation.tc_part_3")," ",(0,X.jsx)(eP,{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>ru(i18n.t("privacy.url"),0,!0),children:i18n.t("bid_accept.modals.confirmation.tc_part_4")})]}),r&&(0,X.jsx)(VA,{})]}),(0,X.jsxs)(iP,{isDesktop:s,children:[(0,X.jsx)(ms,{icon:"check",onPress:t,disabled:i,children:i18n.t("bid.accept_modal.accept")}),(0,X.jsx)(ms,{icon:"close",textColor:Qe.CTA_SALMON,variant:"secondary",borderColor:Qe.CTA_SALMON,onPress:n,disabled:i,children:i18n.t("bid.accept_modal.cancel")})]})]})}oP.propTypes={isCountdown:qc.default.bool,onConfirm:qc.default.func,onClose:qc.default.func,loading:qc.default.bool};const aP=(0,Te.observer)(oP);const sP=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:343,height:178,viewBox:"0 0 343 178",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2109)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:178,rx:12,fill:"#FBF4EE"}),(0,X.jsx)(Wu.Path,{d:"M190.059 27h-36.462c-28.646 0-42.976 0-51.872 8.897-8.897 8.897-8.897 23.226-8.897 51.873v121.538c0 28.647 0 42.964 8.897 51.873 8.896 8.909 23.226 8.896 51.872 8.896h36.462c28.647 0 42.964 0 51.873-8.896 8.896-8.909 8.896-23.226 8.896-51.873V87.77c0-28.647 0-42.976-8.896-51.873-8.909-8.896-23.226-8.896-51.873-8.896z",fill:"#FBF4EE",stroke:"#2D2C25",strokeWidth:12.0784,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.138 27h-48.616l6.077 12.154h36.462L196.138 27z",fill:"#fff",stroke:"#2D2C25",strokeWidth:12.0784,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Rect,{x:132.828,y:76,width:79,height:79,rx:39.5,fill:"#FFE5CF"}),(0,X.jsxs)(Wu.G,{clipPath:"url(#clip1_1109_2109)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M172.985 91.022c-.913 0-1.808.233-2.587.676a4.751 4.751 0 00-1.828 1.83l-.007.012-18.192 33.783a4.338 4.338 0 00-.527 2.267c.036.785.287 1.549.731 2.219a4.821 4.821 0 001.801 1.606 5.264 5.264 0 002.417.588h36.395a5.267 5.267 0 002.412-.59 4.815 4.815 0 001.799-1.606 4.382 4.382 0 00.729-2.216 4.33 4.33 0 00-.525-2.265v-.003L177.404 93.54l-.003-.012a4.758 4.758 0 00-1.828-1.83 5.25 5.25 0 00-2.588-.676z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M175.469 105.978c0-.611-.261-1.197-.726-1.629a2.585 2.585 0 00-1.755-.675 2.58 2.58 0 00-1.754.675 2.224 2.224 0 00-.726 1.629v9.982c0 .611.261 1.197.726 1.629a2.58 2.58 0 001.754.674c.658 0 1.289-.242 1.755-.674a2.224 2.224 0 00.726-1.629v-9.982zm-2.481 21.5a3.44 3.44 0 002.339-.9 2.962 2.962 0 00.969-2.172c0-.814-.348-1.596-.969-2.172a3.439 3.439 0 00-2.339-.899c-.87
25307 0-1.718.323-2.339.899a2.966 2.966 0 00-.968 2.172c0 .815.348 1.596.968 2.172.621.576 1.462.9 2.339.9z",fill:"#723219"})]}),(0,X.jsx)(Wu.Path,{d:"M157.328 33h29.5",stroke:"#2D2C25",strokeWidth:9,strokeLinecap:"round"})]}),(0,X.jsxs)(Wu.Defs,{children:[(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2109",children:(0,X.jsx)(Wu.Rect,{width:343,height:178,rx:12,fill:"#fff"})}),(0,X.jsx)(Wu.ClipPath,{id:"clip1_1109_2109",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(149.828 91)",d:"M0 0H46.3077V43H0z"})})]})]}))},rP=()=>(0,X.jsx)(sP,{width:"100%",height:void 0,aspectRatio:1.938}),lP=(0,Ge.default)(qe.default).withConfig({displayName:"with_pec_guidelines__Container",componentId:"sc-edppgo-0"})(["padding:10px 20px 16px 20px;flex:1;justify-content:space-between;gap:24px;"]),dP=(0,Ge.default)(Vf.default).attrs(()=>({contentContainerStyle:{gap:16}})).withConfig({displayName:"with_pec_guidelines__Content",componentId:"sc-edppgo-1"})([""]),cP=(0,Ge.default)(Be.default).withConfig({displayName:"with_pec_guidelines__Title",componentId:"sc-edppgo-2"})(["color:",";font-weight:700;font-size:18px;"],Qe.TEXT_DARK),uP=(0,Ge.default)(Be.default).withConfig({displayName:"with_pec_guidelines__Subtitle",componentId:"sc-edppgo-3"})(["color:",";font-weight:400;font-size:14px;"],Qe.GRAY_0),pP=(0,Ge.default)(Be.default).withConfig({displayName:"with_pec_guidelines__BoldText",componentId:"sc-edppgo-4"})(["font-weight:700;font-size:14px;"]),mP=(0,Ge.default)(qe.default).withConfig({displayName:"with_pec_guidelines__ButtonGroup",componentId:"sc-edppgo-5"})(["margin-top:20px;margin-bottom:20px;width:100%;flex-direction:",";justify-content:space-evenly;align-items:center;gap:12px;"],({isDesktop:e})=>e?"row":"column"),fP=(0,Ge.default)(ms).withConfig({displayName:"with_pec_guidelines__StyledButton",componentId:"sc-edppgo-6"})(["",""],({isDesktop:e})=>e?"flex: 1;":"width: 100%;");function gP({isCountdown:e,onConfirm:t,onClose:n,loading:i}){const{isDesktop:o}=uu(),a=ft(),{autoTrackEnhanced:s}=mt();return(0,K.useEffect)(()=>{a({userFlow:za,action:Xa.view,objectName:"PEC Guidelines",properties:{isCountdown:e}})},[]),(0,X.jsxs)(lP,{children:[(0,X.jsxs)(dP,{children:[(0,X.jsx)(rP,{}),(0,X.jsx)(cP,{children:i18n.t(e?"bid_accept_pec_guidelines.modals.countdown.title":"bid_accept_pec_guidelines.modals.title")}),(0,X.jsxs)(uP,{children:[i18n.t(e?"bid_accept_pec_guidelines.modals.countdown.description.part_
25301":"bid_accept_pec_guidelines.modals.description.part_1"),(0,X.jsx)(pP,{children:i18n.t(e?"bid_accept_pec_guidelines.modals.countdown.description.part_2":"bid_accept_pec_guidelines.modals.description.part_2")})]}),(0,X.jsx)(RC,{beforeLinkPress:()=>{s({userFlow:za,action:Xa.click,objectName:"PEC guidelines link",properties:{isCountdown:e}})}})]}),(0,X.jsxs)(mP,{isDesktop:o,children:[(0,X.jsx)(fP,{isDesktop:o,onPress:t,disabled:i,children:i18n.t(e?"bid.accept_pec_guidelines_modal.countdown.accept":"bid.accept_pec_guidelines_modal.accept")}),(0,X.jsx)(fP,{textColor:Qe.GRAY_0,variant:"secondary",borderColor:Qe.GRAY_3,isDesktop:o,onPress:n,disabled:i,children:i18n.t(e?"bid.accept_pec_guidelines_modal.countdown.cancel":"bid.accept_pec_guidelines_modal.cancel")})]})]})}gP.propTypes={isCountdown:qc.default.bool,onConfirm:qc.default.func,onClose:qc.default.func,loading:qc.default.bool};const hP=(0,Te.observer)(gP),_P=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__Container",componentId:"sc-rmdudi-0"})(["padding:40px 20px 16px 20px;flex:1;align-items:center;"]),xP=(0,Ge.default)(Vf.default).withConfig({displayName:"step_success__Content",componentId:"sc-rmdudi-1"})(["width:100%;"]),yP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__IconContainer",componentId:"sc-rmdudi-2"})(["background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;margin-bottom:12px;align-self:center;"],Qe.GREEN_FROSTY_GREEN),vP=(0,Ge.default)(Be.default).withConfig({displayName:"step_success__RequestSuccessful",componentId:"sc-rmdudi-3"})(["font-weight:600;font-size:16px;color:",";text-align:center;"],Qe.TEXT_DARK),bP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__Line",componentId:"sc-rmdudi-4"})(["border-bottom-width:1px;border-color:",";margin:12px 0;width:100%;"],Qe.GRAY_BORDER),wP=(0,Ge.default)(Be.default).withConfig({displayName:"step_success__Details",componentId:"sc-rmdudi-5"})(["font-weight:600;font-size:14px;color:",";text-align:center;margin:6px;"],Qe.TEXT_DARK),CP=(0,Ge.default)(Be.default).withConfig({displayName:"step_success__StepsTitle",componentId:"sc-rmdudi-6"})(["font-weight:600;font-size:16px;color:",";text-align:center;margin:12px 0;"],({color:e})=>e||Qe.TEXT_DARK),jP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__Wrapper",componentId:"sc-rmdudi-7"})(["margin-bottom:32px;"]),IP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__Step",componentId:"sc-rmdudi-8"})(["width:100%;flex-direction:row;padding:10px 0px;"]),TP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__StepDetails",componentId:"sc-rmdudi-9"})(["flex:1;padding:0px 5px;"]),EP=(0,Ge.default)(Be.default).withConfig({displayName:"step_success__StepText",componentId:"sc-rmdudi-10"})(["color:",";text-align:center;"],Qe.TEXT_DARK),NP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__Circle",componentId:"sc-rmdudi-11"})(["flex-direction:row;border-radius:10px;height:20px;width:20px;align-items:center;background-color:",";"],Qe.GREEN_SUMMER_GRASS),kP=(0,Ge.default)(Be.default).withConfig({displayName:"step_success__StepCount",componentId:"sc-rmdudi-12"})(["flex:1;font-size:14px;color:",";text-align:center;"],Qe.WHITE),RP=(0,Ge.default)(qe.default).withConfig({displayName:"step_success__ButtonGroup",componentId:"sc-rmdudi-13"})(["margin-top:20px;width:100%;flex-direction:",";justify-content:space-evenly;align-items:center;"],({isDesktop:e})=>e?"row":"column"),SP=(0,Ge.default)(ms).withConfig({displayName:"step_success__StyledButton",componentId:"sc-rmdudi-14"})(["margin-top:4px;"]);function AP({startTime:e,endTime:t,frequency:n,isCountdown:i,onSendMessageClick:o,trackingProperties:a}){const{autoTrackEnhanced:s}=mt(),r=lu(),{isDesktop:l}=uu(),d=C.DateTime.fromISO(e),c=C.DateTime.fromISO(t),u=d.toFormat("EEEE"),p=d.toLocaleString(C.DateTime.DATE_MED),m=d.toFormat("HH:mm"),f=c.toFormat("HH:mm");return(0,X.jsxs)(_P,{children:[(0,X.jsxs)(xP,{contentContainerStyle:{alignItems:"center"},children:[(0,X.jsx)(yP,{children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:i?"clock-check-outline":"check",size:24,color:Qe.GREEN_SUMMER_GRASS})}),(0,X.jsx)(vP,{children:i?i18n.t("bid.accept_modal.request_successful"):i18n.t("bid.accept_modal.booking_accepted")}),(0,X.jsx)(bP,{}),(0,X.jsxs)(wP,{children:[u,", ",p]}),(0,X.jsxs)(wP,{children:[m," - ",f]}),(0,X.jsx)(wP,{children:i18n.t(`frequency_names.${n}`)}),(0,X.jsx)(bP,{}),(0,X.jsx)(CP,{children:i18n.t("bid.accept_modal.next_steps")}),(0,X.jsxs)(jP,{children:[!i&&(0,X.jsx)(EP,{children:i18n.t("bid.accept_modal.next_step_booking_accepted")}),i&&[1,2].map(e=>(0,X.jsxs)(IP,{children:[(0,X.jsx)(NP,{children:(0,X.jsx)(kP,{children:e})}),(0,X.jsx)(TP,{children:(0,X.jsx)(EP,{children:i18n.t(`bid.accept_modal.step_${e}`)})})]},e))]})]}),i&&(0,X.jsx)(ms,{onPress:()=>{s({userFlow:za,action:Xa.click,objectName:"see more offers",properties:a}),r("/provider/offers")},children:i18n.t("bid.accept_modal.see_more_offers")}),!i&&(0,X.jsxs)(RP,{isDesktop:l,children:[(0,X.jsx)(ms,{onPress:o,children:i18n.t("bid.accept_modal.say_hi")}),(0,X.jsx)(SP,{variant:"secondary",onPress:()=>{s({userFlow:za,action:Xa.click,objectName:"maybe later",properties:a}),r(wi())},children:i18n.t("bid.accept_modal.maybe_later")})]})]})}AP.propTypes={startTime:qc.default.string.isRequired,endTime:qc.default.string.isRequired,frequency:qc.default.string.isRequired,isCountdown:qc.default.bool,onSendMessageClick:qc.default.func,trackingProperties:qc.default.shape({serviceType:qc.default.string,offerType:qc.default.string,asap:qc.default.bool,providerType:qc.default.string,frequencyOption:qc.default.string})};const PP=(0,Te.observer)(AP),DP=(0,Ge.default)(Vf.default).withConfig({displayName:"step_send_message__Container",componentId:"sc-1k6kcoi-0"})(["padding:40px 20px 16px 20px;"]),MP=(0,Ge.default)(qe.default).withConfig({displayName:"step_send_message__IconContainer",componentId:"sc-1k6kcoi-1"})(["background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;margin-bottom:12px;"],Qe.GREEN_FROSTY_GREEN),OP=(0,Ge.default)(Be.default).withConfig({displayName:"step_send_message__Title",componentId:"sc-1k6kcoi-2"})(["margin:12px 0;font-size:16px;font-weight:600;color:",";"],Qe.TEXT_DARK),zP=(0,Ge.default)(Be.default).withConfig({displayName:"step_send_message__Description",componentId:"sc-1k6kcoi-3"})(["margin:12px 0;color:",";text-align:center;"],Qe.TEXT_DARK),LP=(0,Ge.default)(Be.default).withConfig({displayName:"step_send_message__BoldText",componentId:"sc-1k6kcoi-4"})(["font-weight:bold;color:",";"],Qe.TEXT_DARK),qP=(0,Ge.default)(Uc.default).withConfig({displayName:"step_send_message__Input",componentId:"sc-1k6kcoi-5"})(["border-width:1px;border-color:",";width:100%;margin-top:12px;padding:8px;"," text-align-vertical:top;"],Qe.GRAY_BORDER,()=>!1),BP=(0,Ge.default)(ms).withConfig({displayName:"step_send_message__StyledButton",componentId:"sc-1k6kcoi-6"})(["margin-top:auto;"]);function GP({code:e,customerId:t,customer:n}){const i=lu(),{analytics:{autoTrack:o},toast:{showToastMessage:a},session:{currentUser:s}}=lt(),{createNewBidWonMessage:r,loading:l}=$S(),[d,c]=(0,K.useState)(i18n.t("bid.send_message_modal.message_v2",{providerName:s.fullName,customerName:n.firstname})),[u,p]=(0,K.useState)(!1);return(0,X.jsxs)(DP,{contentContainerStyle:{flex:1,alignItems:"center"},children:[(0,X.jsx)(MP,{children:(0,X.jsx)(Pa.default,{name:u?"check":"message-text-outline",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),u&&(0,X.jsx)(OP,{children:i18n.t("bid.send_message_modal.message_sent")}),(0,X.jsx)(zP,{children:u?i18n.t("bid.send_message_modal.message_sent_description"):i18n.t("bid.send_message_modal.description")}),!u&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Be.default,{children:[(0,X.jsx)(LP,{children:i18n.t("bid.send_message_modal.message_to")})," ",i18n.t("bid.send_message_modal.customer")]}),(0,X.jsx)(qP,{value:d,onChangeText:c,multiline:!0,numberOfLines:16,disabled:l}),(0,X.jsx)(BP,{onPress:async()=>{o("User clicked on Send button to send welcome message",`on accept offer modal - customerId:  ${t}`);(await r({code:e,message:d})).data.createNewBidWonMessage.success?p(!0):a({message:i18n.t("provider.generic.error"),onlyPopup:!0})},disabled:l,children:i18n.t("bid.send_message_modal.send")})]}),u&&(0,X.jsx)(BP,{onPress:async()=>{i(wi())},disabled:l,children:i18n.t("bid.send_message_modal.navigate_dashboard")})]})}
2530GP.propTypes={code:qc.default.string,customer:qc.default.shape({firstname:qc.default.string}),customerId:qc.default.string};const UP=GP,$P="STEP_ACCEPT",FP="STEP_SUCCESS",HP="STEP_SEND_MESSAGE";function WP({bidCode:e,customer:t,customerId:n,open:i,onClose:o,isCountdown:a,startTime:s,endTime:r,frequency:l,trackingProperties:d,showPecGuidelineBeforeAccept:c}){const u=lu(),{toast:{showToastMessage:p},session:{countryConfig:{showFreelanceReliabilityStatus:m},currentUser:{isFreelance:f},settings:g}}=lt(),{autoTrackEnhanced:h}=mt(),{isDesktop:_}=uu(),{acceptBid:x,loading:y}=LS(),{relationshipId:v,loading:b}=HS(e),{syncEvent:w}=Nv(),C=null===g||void 0===g?void 0:g.isProviderUnderExperimentAbTest(Mo),[j,I]=(0,K.useState)($P);(0,K.useEffect)(()=>{C&&v&&w(v)},[v,b]);const T=async()=>{if(h({userFlow:za,action:Xa.click,objectName:c?"confirm PEC Guidelines":"confirm",properties:d}),j===$P){var t,n;const a=await x({bidCode:e});var i,o;if(null!==(t=a.data)&&void 0!==t&&null!==(n=t.acceptBid)&&void 0!==n&&n.success)I(FP);else p({message:(null===(i=a.data)||void 0===i||null===(o=i.acceptBid)||void 0===o?void 0:o.errorMessage)||i18n.t("provider.generic.error"),onlyPopup:!0})}},E=m&&f,N=(0,K.useCallback)(()=>{h({userFlow:za,action:Xa.click,objectName:c?"reject PEC Guidelines":"cancel",properties:d}),o()},[o,h,d]);return(0,X.jsxs)(zw,{displayCloseButton:!y,size:_&&!E?"small":"big",testID:"countdown-offer-details-modal",isOpen:i,title:j===FP?"":i18n.t("bid_accept.modals.title"),onClose:()=>{o(),h({userFlow:za,action:Xa.click,objectName:"close button on accept offer modal",properties:Object.assign({},d,{step:j,customerId:n})}),j===FP&&a?u("/provider/offers"):j!==FP&&j!==HP||u(wi())},children:[i&&j===$P&&!c&&(0,X.jsx)(aP,{isCountdown:a,onConfirm:T,onClose:N,loading:y}),i&&j===$P&&c&&(0,X.jsx)(hP,{isCountdown:a,onConfirm:T,onClose:N,loading:y}),i&&j===FP&&(0,X.jsx)(PP,{startTime:s,endTime:r,frequency:l,isCountdown:a,onSendMessageClick:()=>{h({userFlow:za,action:Xa.click,objectName:"say hi",properties:d}),I(HP)},trackingProperties:d}),i&&j===HP&&(0,X.jsx)(UP,{code:e,customerId:n,customer:t})]})}WP.propTypes={bidCode:qc.default.string,customer:qc.default.shape({firstname:qc.default.string}),customerId:qc.default.string,open:qc.default.bool,onClose:qc.default.func,isCountdown:qc.default.bool,startTime:qc.default.string,endTime:qc.default.string,frequency:qc.default.string,trackingProperties:qc.default.shape({serviceType:qc.default.string,offerType:qc.default.string,asap:qc.default.bool,providerType:qc.default.string,frequencyOption:qc.default.string}),showPecGuidelineBeforeAccept:qc.default.bool};const VP=(0,Te.observer)(WP),KP=(0,Ge.default)(qe.default).withConfig({displayName:"progress__Container",componentId:"sc-1pvqouj-0"})(["width:100%;background-color:",";height:","px;border-radius:6px;overflow:hidden;"],({backgroundColor:e})=>e||Qe.GRAY_4,({height:e})=>e||7),YP=(0,Ge.default)(qe.default).withConfig({displayName:"progress__Fill",componentId:"sc-1pvqouj-1"})(["width:",";background-color:",";height:100%;border-radius:6px;"],({value:e})=>`${e}%`,({fillColor:e})=>e||Qe.GREEN_SUMMER_GRASS),XP=({value:e,height:t,backgroundColor:n,fillColor:i,style:o})=>(0,X.jsx)(KP,{height:t,backgroundColor:n,style:o,children:(0,X.jsx)(YP,{value:e,fillColor:i})}),ZP=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__Details",componentId:"sc-1squeg4-0"})(["font-weight:500;font-size:12px;color:",";margin-left:2px;"],Qe.TEXT_DARK),QP=(0,Te.observer)(({startTime:e,endTime:t,frequency:n})=>{const i=C.DateTime.fromISO(e),o=C.DateTime.fromISO(t),a=i.toFormat("EEEE"),s=i.toLocaleString(C.DateTime.DATE_MED),r=i.toFormat("HH:mm"),l=o.toFormat("HH:mm");return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ZP,{children:[a,", ",s]}),(0,X.jsxs)(ZP,{children:[r," - ",l]}),(0,X.jsx)(ZP,{children:i18n.t(`frequency_names.${n}`)})]})}),JP=(0,Ge.default)(qe.default).withConfig({displayName:"step__Container",componentId:"sc-ur2gil-0"})(["padding:20px 16px;"]),eD=(0,Ge.default)(qe.default).withConfig({displayName:"step__TitleContainer",componentId:"sc-ur2gil-1"})(["flex-direction:row;gap:10px;"]),tD=(0,Ge.default)(qe.default).withConfig({displayName:"step__IconContainer",componentId:"sc-ur2gil-2"})(["width:24px;height:24px;border-radius:24px;justify-content:center;align-items:center;border-width:1px;border-color:",";",""],Qe.GREEN_SUMMER_GRASS,({checked:e})=>!e&&`background-color: ${Qe.GREEN_SUMMER_GRASS};`),nD=(0,Ge.default)(Be.default).withConfig({displayName:"step__Title",componentId:"sc-ur2gil-3"})(["font-weight:700;font-size:16px;color:",";text-align:center;margin-bottom:4px;"],Qe.TEXT_DARK),iD=(0,Ge.default)(qe.default).withConfig({displayName:"step__ContentContainer",componentId:"sc-ur2gil-4"})(["padding:18px 16px 0;"]),oD=({showContent:e,title:t,details:n,children:i,checked:o})=>(0,X.jsxs)(JP,{children:[(0,X.jsxs)(eD,{children:[(0,X.jsx)(tD,{checked:o,children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"check",size:14,color:Qe.GREEN_SUMMER_GRASS})}),(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(nD,{children:t.toUpperCase()}),n]})]}),e&&(0,X.jsx)(iD,{children:i})]});var aD=n(39447);const sD=xt`
2531  query translateCleaningDetails($relationshipId: ID, $bidCode: String, $targetLanguage: String!) {
2532  translateCleaningDetails(
2533    relationshipId: $relationshipId
2534    bidCode: $bidCode
2535    targetLanguage: $targetLanguage
2536  ) {
2537    translatedCleaningDetails
2538    detectedSourceLanguage
2539    errors {
2540      message
2541    }
2542  }
2543}
2544
2545`,rD={ch:"ch",ch_fr:"fr",ch_en:"en",de_en:"en",de:"de",fr:"fr",sg:"en"},lD=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details__Container",componentId:"sc-1my1fj5-0"})(["flex-grow:1;"]),dD=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_details__Title",componentId:"sc-1my1fj5-1"})(["font-size:16px;font-weight:700;text-transform:uppercase;color:",";margin-bottom:16px;"],Qe.TEXT_DARK),cD=(0,Ge.default)(lm).withConfig({displayName:"cleaning_details__HomeDetails",componentId:"sc-1my1fj5-2"})(["margin:0 0 32px;padding:24px;width:98%;align-self:center;"]),uD=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details__HomeDetail",componentId:"sc-1my1fj5-3"})(["flex-direction:row;align-items:center;margin:4px 0;"]),pD=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details__HomeDetailsContainer",componentId:"sc-1my1fj5-4"})(["margin-left:12px;flex-shrink:1;"]),mD=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_details__HomeDetailsDesc",componentId:"sc-1my1fj5-5"})(["font-size:12px;font-weight:300;color:",";margin-top:2px;"],({color:e})=>e||Qe.TEXT_MEDIUM),fD=(0,Ge.default)(lm).withConfig({displayName:"cleaning_details__Card",componentId:"sc-1my1fj5-6"})(["margin:0 0 32px;padding:24px;width:98%;align-self:center;"]),gD=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details__IconContainer",componentId:"sc-1my1fj5-7"})(["background-color:",";border-radius:12px;align-items:center;justify-content:center;width:48px;height:48px;"],({backgroundColor:e})=>e||Qe.GREEN_FROSTY_GREEN),hD=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_details__Task",componentId:"sc-1my1fj5-8"})(["font-size:16px;font-weight:200;color:",";margin-bottom:4px;"],Qe.TEXT_DARK),_D=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details__ButtonContainer",componentId:"sc-1my1fj5-9"})(["gap:8px;"]),xD=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details__TranslateCTA",componentId:"sc-1my1fj5-10"})(["flex:1;margin-top:10px;align-items:flex-start;"]),yD=({cleaningDetails:e,needsCleaningProducts:t,tasks:n,cleaningDetailsActioned:i,cleaningDetailsActionedSuccess:o,onConfirm:a,onClarify:s,loading:r,relationshipId:l})=>{const{session:{currentUser:{preferredLanguage:d}},analytics:{autoTrack:c}}
2545=lt(),[u,p]=(0,K.useState)(!1),{translate:m,translatedDetails:f,loading:g,errors:h,error:_}=(({relationshipId:e,bidCode:t,targetLanguage:n})=>{var i,o,a;const[s,{data:r,loading:l,error:d}]=(0,kn.useLazyQuery)(sD);return{translate:()=>s({variables:{relationshipId:e,bidCode:t,targetLanguage:n},context:{apiVersion:3}}),translatedDetails:null===r||void 0===r||null===(i=r.translateCleaningDetails)||void 0===i?void 0:i.translatedCleaningDetails,detectedLanguage:null===r||void 0===r||null===(o=r.translateCleaningDetails)||void 0===o?void 0:o.detectedSourceLanguage,errors:null===r||void 0===r||null===(a=r.translateCleaningDetails)||void 0===a?void 0:a.errors,loading:l,error:d}})({relationshipId:l,targetLanguage:rD[d]||"en"});(0,K.useEffect)(()=>{l&&e&&m()},[l,e]);const x=u?e:f||e,y=_?i18n.t("ui.error.generic"):h?h.map(e=>e.message).join(", "):null;return(0,X.jsxs)(lD,{children:[!!(e||t||n&&n.length>0)&&(0,X.jsxs)(X.Fragment,{children:[!!e&&(0,X.jsxs)(fD,{elevation:1,children:[(0,X.jsx)(hD,{children:x}),(0,X.jsx)(xD,{children:(0,X.jsx)(aD.default,{onPress:()=>{c(`Provider clicked on ${u?"show translated language":"show original language"} button`,`from home details page relationshipId: ${l}`),p(!u)},translateText:i18n.t("bid.sections.cleaning_instructions."+(u?"show_translated_language":"show_original_language")),loading:g,error:y})})]}),!!n&&n.length>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(dD,{children:i18n.t("customer.home_details.cleaning_tasks")}),(0,X.jsx)(fD,{elevation:1,children:n.map(e=>(0,X.jsx)(hD,{children:`\u2022 ${i18n.t(`customer.home_details.tasks.${e}`)}`},e))})]}),t&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(dD,{children:i18n.t("customer.home_details.needs_cleaning_products")}),(0,X.jsx)(cD,{elevation:1,children:(0,X.jsxs)(uD,{children:[(0,X.jsx)(gD,{backgroundColor:Qe.CRIMSON_2,children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"spray-bottle",color:Qe.WHITE,size:24})}),(0,X.jsx)(pD,{children:(0,X.jsx)(mD,{color:Qe.CRIMSON_1,children:i18n.t("customer.home_details.clarify")})})]})})]})]}),!i&&!o&&(0,X.jsxs)(_D,{children:[(0,X.jsx)(ms,{onPress:a,disabled:r,stretched:!0,children:i18n.t("cleaning_details.cta_confirm")}),(0,X.jsx)(ms,{variant:"secondary",onPress:s,disabled:r,stretched:!0,children:i18n.t("cleaning_details.cta_clarify")})]})]})},vD=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_message__Container",componentId:"sc-1gsmxrr-0"})([""]),bD=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_message__Info",componentId:"sc-1gsmxrr-1"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),wD=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_message__MessageTo",componentId:"sc-1gsmxrr-2"})(["font-size:14px;color:",";font-weight:600;margin-top:16px;margin-bottom:10px;"],Qe.TEXT_DARK),CD=(0,Ge.default)($g).withConfig({displayName:"welcome_message__Input",componentId:"sc-1gsmxrr-3"})(["padding:20px 15px;font-size:14px;border-radius:7px;"]),jD=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_message__ButtonContainer",componentId:"sc-1gsmxrr-4"})(["gap:8px;margin-top:24px;"]),ID=(0,Te.observer)(({customerName:e,info:t,message:n,onSendMessage:i,onMaybeLater:o,loading:a,setMessage:s})=>(0,X.jsxs)(vD,{children:[(0,X.jsx)(bD,{children:t}),(0,X.jsx)(wD,{children:i18n.t("welcome_message.message_to",{customerName:e})}),(0,X.jsx)(CD,{value:n,multiline:!0,numberOfLines:14,onChangeText:s}),(0,X.jsxs)(jD,{children:[(0,X.jsx)(ms,{onPress:i,disabled:a,stretched:!0,children:i18n.t("welcome_message.send_message")}),(0,X.jsx)(ms,{variant:"secondary",onPress:o,disabled:a,stretched:!0,children:i18n.t("welcome_message.maybe_later")})]})]})),TD=(_t.gql`
2546  query customerSeries($id: ID!) {
2547    customer(id: $id) {
2548      relationship {
2549        id
2550        cancelled
2551        series {
2552          id
2553          changeRequestable
2554          startTime
2555          duration
2556          period
2557          address {
2558            id
2559            address
2560          }
2561          nextEvent {
2562            id
2563            startTime
2564            endTime
2565          }
2566        }
2567      }
2568    }
2569  }
2570`,xt`
2571  mutation createRelationshipPriceChangeRequest($relationshipId: ID!, $futurePrice: Int!, $message: String!) {
2572    createRelationshipPriceChangeRequest(
2573      relationshipId: $relationshipId
2574      futurePrice: $futurePrice
2575      message: $message
2576    ) {
2577      success
2578      errors {
2579        code
2580        message
2581      }
2582    }
2583  }
2584`),ED=_t.gql`
2585  mutation actionCleaningDetails($customerId: ID!, $response: ActionCleaningDetailsEnum!) {
2586    actionCleaningDetails(customerId: $customerId, response: $response) {
2587      success
2588    }
2589  }
2590`,ND=()=>{const[e,{loading:t}]=(0,js.useMutation)(ED);return{actionCleaningDetails:({customerId:t,response:n})=>e({variables:{customerId:t,response:n}}),saving:t}},kD=(0,Ge.default)(qe.default).withConfig({displayName:"variant__ProgressContainer",componentId:"sc-1guf1ft-0"})(["padding:20px 16px 10px;"]),RD=(0,Ge.default)(qe.default).withConfig({displayName:"variant__Line",componentId:"sc-1guf1ft-1"})(["border-bottom-width:4px;border-color:",";width:100%;"],Qe.GRAY_4),SD=(0,Ge.default)(qe.default).withConfig({displayName:"variant__SuccessContainer",componentId:"sc-1guf1ft-2"})(["padding:20px 32px 20px;gap:10px;"]),AD=(0,Ge.default)(Be.default).withConfig({displayName:"variant__SuccessMessage",componentId:"sc-1guf1ft-3"})(["font-size:16px;font-weight:500;color:",";"],Qe.TEXT_DARK),PD=(0,Ge.default)(qe.default).withConfig({displayName:"variant__ButtonContainer",componentId:"sc-1guf1ft-4"})(["margin-top:20px;gap:8px;"]),DD="STEP_ACCEPT",MD="STEP_CLEANING_INSTRUCTIONS",OD="STEP_SEND_MESSAGE",zD="STEP_SUCCESS",LD={STEP_ACCEPT:25,STEP_CLEANING_INSTRUCTIONS:50,STEP_SEND_MESSAGE:75,STEP_SUCCESS:100},qD={STEP_ACCEPT:"bid.accept_modal.title.accept_offer",STEP_CLEANING_INSTRUCTIONS:"bid.accept_modal.title.cleaning_instructions",STEP_SEND_MESSAGE:"bid.accept_modal.title.send_a_message",STEP_SUCCESS:"bid.accept_modal.title.you_are_all_set"},BD=(0,Te.observer)(({bidCode:e,customer:t,open:n,onClose:i,isCountdown:o,startTime:a,endTime:s,frequency:r,customerInstructions:l,trackingProperties:d,showPecGuidelineBeforeAccept:c})=>{const u=lu(),{toast:{showToastMessage:p},session:{countryConfig:{showFreelanceReliabilityStatus:m},currentUser:{isFreelance:f,firstname:g}}}=lt(),{cleaningDetails:h,needsCleaningProducts:_,tasks:x}=l,y=!!h||_||!(null===x||void 0===x||!x.length),v=m&&f,{autoTrackEnhanced:b}=mt(),{isDesktop:w}=uu(),{acceptBid:C,loading:j}=LS(),{createNewBidWonMessage:I,loading:T}=$S(),{relationshipId:E}=HS(e),{actionCleaningDetails:N,saving:k}=ND(),[R,S]=(0,K.useState)(DD),[A,P]=(0,K.useState)(!1),[D,M]=(0,K.useState)(y?i18n.t("bid.accept_modal.welcome_message.message_with_cleaning_instructions_v2",{providerName:g,customerName:t.firstname}):i18n.t("bid.accept_modal.welcome_message.message_v2",{providerName:g,customerName:t.firstname})),[O,z]=(0,K.useState)(!1),L=async()=>{var t,n;b({userFlow:za,action:Xa.click,objectName:"I can make it button on accept offer modal",properties:d});const i=await C({bidCode:e});var o,a;null!==(t=i.data)&&void 0!==t&&null!==(n=t.acceptBid)&&void 0!==n&&n.success?S(y?MD:OD):p({message:(null===(o=i.data)||void 0===o||null===(a=o.acceptBid)||void 0===a?void 0:a.errorMessage)||i18n.t("provider.generic.error"),onlyPopup:!0})},q=()=>{b({userFlow:za,action:Xa.click,objectName:"decline",properties:d}),i()},B=!!E;return(0,X.jsxs)(zw,{displayCloseButton:!j,size:w&&!v?"small":"big",testID:"countdown-offer-details-modal",isOpen:n,title:R!==zD||O?i18n.t(qD[R]):i18n.t("bid.accept_modal.title.almost_there"),onClose:()=>{i(),b({userFlow:za,action:Xa.click,objectName:"close button on accept offer modal",properties:Object.assign({},d,{step:R,customerId:t.id})}),R===zD||R===MD?u("/provider/offers"):R!==zD&&R!==OD||u(wi())},children:[(0,X.jsx)(kD,{children:(0,X.jsx)(XP,{value:LD[R]})}),n&&R===DD&&!c&&(0,X.jsx)(aP,{isCountdown:o,onConfirm:L,onClose:q,loading:j}),n&&R===DD&&c&&(0,X.jsx)(hP,{isCountdown:o,onConfirm:L,onClose:q,loading:j}),n&&R!==DD&&(0,X.jsxs)(Vf.default,{contentContainerStyle:{flexGrow:1},children:[(0,X.jsx)(oD,{title:i18n.t("bid.accept_modal.booking_details"),checked:R!==DD,details:(0,X.jsx)(QP,{startTime:a,endTime:s,frequency:r})}),y&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(RD,{}),(0,X.jsx)(oD,{title:i18n.t("bid.accept_modal.cleaning_instructions"),showContent:R===MD,checked:R===OD||R===zD,children:(0,X.jsx)(yD,{relationshipId:E,cleaningDetails:h,needsCleaningProducts:_,tasks:x,onConfirm:async()=>{var e,n;b({userFlow:za,action:Xa.click,objectName:"confirm cleaning instructions on accept offer modal",properties:d});const i=await N({customerId:t.id,response:"confirm"});null!==i&&void 0!==i&&null!==(e=i.data)&&void 0!==e&&null!==(n=e.actionCleaningDetails)&&void 0!==n&&n.success?S(OD):p({message:i18n.t("provider.generic.error")})},onClarify:async()=>{var e,n;b({userFlow:za,action:Xa.click,objectName:"clarify button on accept offer modal",properties:d});const i=await N({customerId:t.id,response:"clarify"});null!==i&&void 0!==i&&null!==(e=i.data)&&void 0!==e&&null!==(n=e.actionCleaningDetails)&&void 0!==n&&n.success?(P(!0),S(OD)):p({message:i18n.t("provider.generic.error")})},loading:k||!B})})]}),(R===OD||R===zD)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(RD,{}),(0,X.jsx)(oD,{title:i18n.t("bid.accept_modal.send_message"),showContent:R===OD,checked:O,children:(0,X.jsx)(ID,{customerName:t.firstname,info:A?i18n.t("bid.accept_modal.welcome_message.info_clarify_message"):i18n.t("bid.accept_modal.welcome_message.info_quick_message"),message:D,onSendMessage:async()=>{var t,n;b({userFlow:za,action:Xa.click,objectName:"send",properties:d});null!==(t=(await I({code:e,message:D})).data)&&void 0!==t&&null!==(n=t.createNewBidWonMessage)&&void 0!==n&&n.success?(S(zD),z(!0)):p({message:i18n.t("provider.generic.error"),onlyPopup:!0})},onMaybeLater:()=>{b({userFlow:za,action:Xa.click,objectName:"maybe later",properties:d}),S(zD)},loading:T,setMessage:M})})]}),R===zD&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(RD,{}),(0,X.jsxs)(SD,{children:[(0,X.jsx)(AD,{children:O?i18n.t("bid.accept_modal.success.you_are_all_set"):i18n.t("bid.accept_modal.success.almost_there")}),(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(AD,{children:O?i18n.t("bid.accept_modal.success.you_are_all_set_message_1"):i18n.t("bid.accept_modal.success.almost_there_message_1")}),(0,X.jsx)(AD,{children:O?i18n.t("bid.accept_modal.success.you_are_all_set_message_2"):i18n.t("bid.accept_modal.success.almost_there_message_2")})]}),(0,X.jsxs)(PD,{children:[!O&&(0,X.jsx)(ms,{onPress:()=>{b({userFlow:za,action:Xa.click,objectName:"send",properties:d}),S(OD)},stretched:!0,children:i18n.t("bid.accept_modal.success.send_a_message_now")}),(0,X.jsx)(ms,{onPress:()=>{b({userFlow:za,action:Xa.click,objectName:"see more offers",properties:d}),u("/provider/offers")},stretched:!0,variant:O?void 0:"secondary",children:i18n.t("bid.accept_modal.success.see_more_offers")})]})]})]})]})]})}),GD=({width:e=80,height:t=83})=>(0,X.jsxs)(Wu.default,{width:e,height:t,viewBox:"0 0 99 102",fill:"none",children:[(0,X.jsx)(Wu.Ellipse,{cx:"49.5",cy:"50.7496",rx:"47.5",ry:"48.7496",fill:"#E0E9E7",stroke:"white",strokeWidth:"3.50355"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M68.5568 37.479C68.902 37.7802 68.9179 38.3115 68.5912 38.6327L43.271 63.5306C42.8671 63.9279 42.214 63.9105 41.8318 63.4923L30.5727 51.1737C30.2633 50.8352 30.3063 50.3053 30.6662 50.0212C30.9912 49.7646 31.4592 49.8026 31.7385 50.1083L41.8939 61.2221C42.2761 61.6404 42.9292 61.6579 43.3332 61.2607L67.4881 37.5109C67.7813 37.2226 68.247 37.2088 68.5568 37.479Z",fill:"#406B60",stroke:"#406B60",strokeLinejoin:"round"})]}),UD=(0,Ge.default)(qe.default).withConfig({displayName:"decline_modal__
2590Container",componentId:"sc-14etoth-0"})(["flex:1;padding:40px 20px 16px 20px;"]),$D=(0,Ge.default)(qe.default).withConfig({displayName:"decline_modal__Content",componentId:"sc-14etoth-1"})(["align-items:center;flex:1;"]),FD=(0,Ge.default)(Be.default).withConfig({displayName:"decline_modal__Title",componentId:"sc-14etoth-2"})(["font-size:24px;font-weight:bold;text-align:center;margin-bottom:32px;color:",";"],Qe.TEXT_DARK),HD=(0,Ge.default)(ms).withConfig({displayName:"decline_modal__StyledButton",componentId:"sc-14etoth-3"})(["margin:5px 0px;align-self:center;"]),WD=(0,Ge.default)(Da.default).withConfig({displayName:"decline_modal__DeclineOption",componentId:"sc-14etoth-4"})(["border:1px solid ",";border-radius:4px;padding:12px;align-self:stretch;margin-bottom:6px;"],Qe.GRAY_BORDER),VD=(0,Ge.default)(Be.default).withConfig({displayName:"decline_modal__Option",componentId:"sc-14etoth-5"})(["color:",";"],Qe.TEXT_DARK),KD=(0,Ge.default)(qe.default).withConfig({displayName:"decline_modal__Success",componentId:"sc-14etoth-6"})(["align-items:center;"]),YD=(0,Ge.default)(Be.default).withConfig({displayName:"decline_modal__SuccessText",componentId:"sc-14etoth-7"})(["color:",";margin-top:24px;font-size:16px;"],Qe.TEXT_DARK);function XD({open:e,bidCode:t,onClose:n}){const i=lu(),{toast:{showToastMessage:o},session:{countryConfig:{moreOptions:{newCustomers:a}}}}=lt(),{autoTrack:s}=mt(),{rejectBid:r,loading:l}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(qS);return{rejectBid:({bidCode:t,rejectionReason:n})=>e({variables:{bidCode:t,rejectionReason:n,responseMethod:"provider_app"},context:{apiVersion:3}}),loading:t}})(),[d,c]=(0,K.useState)(!1),u=()=>{d&&i("/provider/offers"),n()};return(0,X.jsx)(zw,{displayCloseButton:!0,isOpen:e,onClose:u,children:(0,X.jsxs)(UD,{children:[(0,X.jsxs)($D,{children:[l&&(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS}),!l&&!d&&(0,X.jsx)(FD,{children:i18n.t("bid.decline_modal.title")}),!l&&!d&&a.map(e=>(0,X.jsx)(WD,{onPress:()=>(async e=>{var n,i;s(`User clicked on rejection reason (${e}) on decline offer modal`,"on Bid page");const a=await r({bidCode:t,rejectionReason:e});var l,d;a.data.rejectBid.success||"B011"===(null===(n=a.data.rejectBid.errors)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.code)?(o({message:i18n.t("bid.decline_modal.booking_declined"),type:"success",onlyPopup:!0}),c(!0)):o({message:(null===(l=a.data.rejectBid.errors)||void 0===l||null===(d=l[0])||void 0===d?void 0:d.message)||i18n.t("ui.error.generic"),onlyPopup:!0})})(e.value),children:(0,X.jsx)(VD,{children:i18n.t(e.labelKey)})},e.value)),!l&&d&&(0,X.jsxs)(KD,{children:[(0,X.jsx)(GD,{width:95,height:95}),(0,X.jsx)(YD,{children:i18n.t("bid.decline_modal.declined_booking")})]})]}),(0,X.jsx)(HD,{textColor:Qe.CTA_SALMON,variant:"secondary",borderColor:Qe.CTA_SALMON,onPress:u,children:i18n.t("bid.decline_modal.close")})]})})}XD.propTypes={open:qc.default.bool.isRequired,bidCode:qc.default.string.isRequired,onClose:qc.default.func.isRequired};const ZD=(0,Te.observer)(XD);function QD(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60);return t>0?`${t}h, ${n} min`:`${n} min`}const JD=(e,t)=>{const n=C.DateTime.fromISO(e),i=C.DateTime.fromISO(t);return`${n.toLocaleString(C.DateTime.TIME_SIMPLE)} - ${i.toLocaleString(C.DateTime.TIME_SIMPLE)}`},eM=e=>{const t=Math.floor(e/3600),n=e/60-60*t,i=i18n.t("hours",{count:t});if(0===n)return i;return`${i} ${i18n.t("minutes",{count:n})}`};function tM(e){return C.Duration.fromObject({seconds:e}).as("hours")}const nM=(0,Ge.default)(lm).withConfig({displayName:"opted_in_notification__Container",componentId:"sc-63ozm3-0"})(["margin:0 2px 12px 2px;align-items:center;"]),iM=(0,Ge.default)(Be.default).withConfig({displayName:"opted_in_notification__NotificationText",componentId:"sc-63ozm3-1"})(["font-size:16px;color:",";"],Qe.GREEN_SUMMER_GRASS);function oM({countdownEndTime:e}){const t=C.DateTime.fromISO(e).diffNow(["days","hours","minutes","seconds"]);return(0,X.jsxs)(nM,{elevation:1,children:[(0,X.jsx)(Pa.default,{name:"clock-outline",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"}),(0,X.jsx)(Be.default,{children:i18n.t("bid.countdown_results_notification.bid_results_in",{hours:t.hours,mins:t.minutes})}),(0,X.jsx)(iM,{children:i18n.t("bid.countdown_results_notification.you_win")})]})}oM.propTypes={countdownEndTime:qc.default.string.isRequired};const aM=oM,sM=(0,Ge.default)(qe.default).withConfig({displayName:"payout_after_commission_modal__Container",componentId:"sc-1m952zm-0"})(["flex:1;padding:40px 20px 16px 20px;"]),rM=(0,Ge.default)(qe.default).withConfig({displayName:"payout_after_commission_modal__Content",componentId:"sc-1m952zm-1"})(["align-items:center;flex:1;"]),lM=(0,Ge.default)(qe.default).withConfig({displayName:"payout_after_commission_modal__IconContainer",componentId:"sc-1m952zm-2"})(["background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;align-self:center;margin-bottom:12px;"],Qe.GREEN_FROSTY_GREEN),dM=(0,Ge.default)(lm).withConfig({displayName:"payout_after_commission_modal__Section",componentId:"sc-1m952zm-3"})(["border:1px solid ",";padding:12px;margin-bottom:8px;"],Qe.GRAY_BORDER),cM=(0,Ge.default)(qe.default).withConfig({displayName:"payout_after_commission_modal__SectionHeader",componentId:"sc-1m952zm-4"})(["flex-direction:row;justify-content:space-between;align-items:center;border-bottom-width:1px;border-color:",";"],Qe.GRAY_BORDER),uM=(0,Ge.default)(Be.default).withConfig({displayName:"payout_after_commission_modal__Label",componentId:"sc-1m952zm-5"})(["font-size:24px;font-weight:500;color:",";"],Qe.TEXT_DARK),pM=(0,Ge.default)(Be.default).withConfig({displayName:"payout_after_commission_modal__Value",componentId:"sc-1m952zm-6"})(["font-size:14px;color:",";"],Qe.TEXT_LIGHT),mM=(0,Ge.default)(Be.default).withConfig({displayName:"payout_after_commission_modal__Description",componentId:"sc-1m952zm-7"})(["color:",";margin-top:12px;"],Qe.TEXT_DARK),fM=(0,Ge.default)(ms).withConfig({displayName:"payout_after_commission_modal__StyledButton",componentId:"sc-1m952zm-8"})(["margin:5px 0px;align-self:center;"]);function gM({open:e,onClose:t,before3Events:n,after3Events:i}){return(0,X.jsx)(zw,{displayCloseButton:!0,title:i18n.t("bid.charges.payout_after_commission_modal.title"),isOpen:e,onClose:t,children:(0,X.jsxs)(sM,{children:[(0,X.jsx)(lM,{children:(0,X.jsx)(Pa.default,{name:"chart-timeline-variant-shimmer",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsxs)(rM,{children:[(0,X.jsxs)(dM,{elevation:1,children:[(0,X.jsxs)(cM,{children:[(0,X.jsx)(uM,{children:i18n.t("bid.charges.payout_after_commission_modal.first_cleans")}),(0,X.jsx)(pM,{children:i18n.t("bid.charges.payout_after_commission_modal.commission",{commission:n})})]}),(0,X.jsx)(mM,{children:i18n.t("bid.charges.payout_after_commission_modal.first_cleans_description")})]}),(0,X.jsxs)(dM,{elevation:1,children:[(0,X.jsxs)(cM,{children:[(0,X.jsx)(uM,{children:i18n.t("bid.charges.payout_after_commission_modal.after_cleans")}),(0,X.jsx)(pM,{children:i18n.t("bid.charges.payout_after_commission_modal.commission",{commission:i})})]}),(0,X.jsx)(mM,{children:i18n.t("bid.charges.payout_after_commission_modal.first_cleans_description",{commission:i})})]})]}),(0,X.jsx)(fM,{textColor:Qe.CTA_SALMON,variant:"secondary",borderColor:Qe.CTA_SALMON,onPress:t,children:i18n.t("bid.decline_modal.close")})]})})}gM.propTypes={open:qc.default.bool.isRequired,onClose:qc.default.func.isRequired,before3Events:qc.default.number.isRequired,after3Events:qc.default.number.isRequired};const hM=(0,Te.observer)(gM),_M=({durationInHour:e,pricePerHour:t,commissionAmountPerHour:n,providerPayoutPerHour:i,providerTotalPayout:o})=>[{label:i18n.t("bid.payouts.price_per_hour"),value:fh(t,{withSymbol:!0})},n?{label:i18n.t("bid.payouts.commission_amount_per_hour"),value:fh(n,{withSymbol:!0})}:null,{label:i18n.t("bid.payouts.provider_payout_per_hour"),value:fh(i,{withSymbol:!0})},{label:i18n.t("bid.payouts.provider_total_payout",{hours:e}),value:fh(o,{withSymbol:!0})}].filter(e=>!!e),xM=(0,Ge.default)(qe.default).withConfig({displayName:"payouts__Section",componentId:"sc-og3nzk-0"})(["margin:12px 0;"]),yM=(0,Ge.default)(Da.default).withConfig({displayName:"payouts__Header",componentId:"sc-og3nzk-1"})(["flex-direction:row;justify-content:space-between;"]),vM=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__Title",componentId:"sc-og3nzk-2"})(["font-weight:600;font-size:15px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),bM=(0,Ge.default)(qe.default).withConfig({displayName:"payouts__Item",componentId:"sc-og3nzk-3"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;background-color:",";"],Qe.GREEN_FROSTY_GREEN),wM=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__ItemLabel",componentId:"sc-og3nzk-4"})(["color:",";"],Qe.TEXT_DARK),CM=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__ItemValue",componentId:"sc-og3nzk-5"})(["",";",";"],({color:e})=>e&&`color: ${e}`,({bold:e})=>e&&"font-weight: bold"),jM=(0,Ge.default)(xI).withConfig({displayName:"payouts__StyledAccordion",componentId:"sc-og3nzk-6"})(["margin:10px 0px;border:1px solid ",";"],Qe.GRAY_4),IM=(0,Ge.default)(qe.default).withConfig({displayName:"payouts__PayoutTitleConatiner",componentId:"sc-og3nzk-7"})(["flex-direction:row;justify-content:space-between;width:95%;"]),TM=(0,Ge.default)(qe.default).withConfig({displayName:"payouts__LearnMore",componentId:"sc-og3nzk-8"})(["flex-direction:row;"]),EM=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__LearnMoreText",componentId:"sc-og3nzk-9"})(["color:",";margin-top:2px;"],Qe.GREEN_GROWN_UP_GREEN),NM=({title:e,totalPayout:t})=>(0,X.jsxs)(IM,{children:[(0,X.jsx)(Be.default,{children:e}),(0,X.jsx)(Be.default,{children:fh(t,{withSymbol:!0})})]});function kM({payouts:e,payoutsWithIntroFee:t,durationInHour:n,showPayoutsWithIntroFee:i,trackingProperties:o}){const{autoTrackEnhanced:a}=mt(),s=_M({durationInHour:n,pricePerHour:e.pricePerHour,commissionAmountPerHour:e.commissionAmountPerHour,providerPayoutPerHour:e.providerPayoutPerHour,providerTotalPayout:e.providerTotalPayout}),r=_M({durationInHour:n,pricePerHour:t.pricePerHour,commissionAmountPerHour:t.commissionAmountPerHour,providerPayoutPerHour:t.providerPayoutPerHour,providerTotalPayout:t.providerTotalPayout}),[l,d]=(0,K.useState)(!1),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),f=(0,K.useCallback)(()=>{a({userFlow:za,action:Xa.click,objectName:"learn more",properties:Object.assign({modalType:"Commission info"},o)}),m(!0)},[m,a]),g=(0,K.useCallback)(()=>{a({userFlow:za,action:Xa.click,objectName:"first 3 cleans price breakdown",properties:o}),d(e=>!e)},[d,a]),h=(0,K.useCallback)(()=>{a({userFlow:za,action:Xa.click,objectName:"after 3 cleans price breakdown",properties:o}),u(e=>!e)},[u,a]);return(0,X.jsxs)(xM,{children:[i&&(0,X.jsxs)(yM,{onPress:f,children:[(0,X.jsx)(vM,{children:i18n.t("bid.sections.payout.title")}),(0,X.jsxs)(TM,{children:[(0,X.jsx)(EM,{children:i18n.t("bid.sections.payout.learn_more")}),(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"chevron-right",color:Qe.GREEN_GROWN_UP_GREEN})]})]}),i&&(0,X.jsx)(jM,{title:(0,X.jsx)(NM,{title:i18n.t("bid.sections.payout.new_offer.payout_title"),totalPayout:t.providerTotalPayout}
2590),elevation:0,contentStyle:{padding:0},open:l,onPress:g,children:(0,X.jsx)(X.Fragment,{children:r.map(({label:e,value:t},n)=>(0,X.jsxs)(bM,{showBottomBorder:r.length-1===n,children:[(0,X.jsx)(wM,{children:e}),(0,X.jsx)(CM,{children:t})]},n))})}),(0,X.jsx)(jM,{title:i?(0,X.jsx)(NM,{title:i18n.t("bid.sections.payout.after_3_events.payout_title"),totalPayout:e.providerTotalPayout}):(0,X.jsx)(NM,{title:i18n.t("event.sections.payouts.title"),totalPayout:e.providerTotalPayout}),elevation:0,contentStyle:{padding:0},open:c,onPress:h,children:(0,X.jsx)(X.Fragment,{children:s.map(({label:e,value:t},n)=>(0,X.jsxs)(bM,{showBottomBorder:s.length-1===n,children:[(0,X.jsx)(wM,{children:e}),(0,X.jsx)(CM,{children:t})]},n))})}),(0,X.jsx)(hM,{open:p,onClose:()=>m(!1),before3Events:t.commissionPercentage,after3Events:e.commissionPercentage})]})}NM.propTypes={title:qc.default.string.isRequired,totalPayout:qc.default.number.isRequired},kM.propTypes={payouts:qc.default.object,payoutsWithIntroFee:qc.default.object,durationInHour:qc.default.number,showPayoutsWithIntroFee:qc.default.bool,trackingProperties:qc.default.shape({serviceType:qc.default.string,offerType:qc.default.string,asap:qc.default.bool,providerType:qc.default.string,frequencyOption:qc.default.string})};const RM=kM;var SM=n(54498);const AM=(0,Ge.default)(qe.default).withConfig({displayName:"list_items_modal__Overlay",componentId:"sc-86grft-0"})(["display:flex;align-items:center;justify-content:",";padding:0px;margin:0px;flex:1;"],({desktop:e})=>e?"center":"flex-end"),PM=(0,Ge.default)(qe.default).withConfig({displayName:"list_items_modal__Body",componentId:"sc-86grft-1"})(["width:100%;max-width:900px;max-height:500px;flex:1;padding:20px 0px 30px 0px;padding-bottom:","px;align-content:center;border-top-left-radius:40px;border-top-right-radius:40px;border-bottom-left-radius:",";border-bottom-right-radius:",";background-color:",";"],({desktop:e,theme:t})=>e?30:30+t.insets.bottom,({desktop:e})=>e?"40px":"0px",({desktop:e})=>e?"40px":"0px",Qe.WHITE),DM=(0,Ge.default)(ts).withConfig({displayName:"list_items_modal__CloseButton",componentId:"sc-86grft-2"})(["align-self:flex-end;margin-right:20px;padding:7px;"]),MM=(0,Ge.default)(qe.default).withConfig({displayName:"list_items_modal__TitleContainer",componentId:"sc-86grft-3"})(["padding:30px;"]),OM=(0,Ge.default)(rf.default).withConfig({displayName:"list_items_modal__Title",componentId:"sc-86grft-4"})(["font-size:16px;font-weight:500;color:",";text-align:center;"],Qe.TEXT_DARK),zM=(0,Ge.default)(rf.default).withConfig({displayName:"list_items_modal__SubTitle",componentId:"sc-86grft-5"})(["color:",";font-size:12px;text-align:center;font-weight:300;margin-top:10px;"],Qe.TEXT_DARK),LM=(0,Ge.default)(qj.default).withConfig({displayName:"list_items_modal__List",componentId:"sc-86grft-6"})([""]),qM=(0,Ge.default)(qe.default).withConfig({displayName:"list_items_modal__Item",componentId:"sc-86grft-7"})(["display:flex;flex-direction:row;justify-content:",";align-items:center;height:50px;padding:0px 25px;border-bottom-width:1px;border-bottom-color:",";"],({centered:e})=>e?"center":"space-between",Qe.GRAY_BORDER),BM=(0,Ge.default)(rf.default).withConfig({displayName:"list_items_modal__ItemText",componentId:"sc-86grft-8"})(["",""],({bold:e})=>e&&"font-weight: 500;"),GM=(0,Ge.default)(rf.default).withConfig({displayName:"list_items_modal__Error",componentId:"sc-86grft-9"})(["color:",";text-align:center;margin-bottom:4px;"],Qe.CRIMSON_1);const UM=function({onClose:e,isOpen:t,onItemSelected:n,items:i,selectedItem:o,title:a,subTitle:s,centered:r=!1,bold:l=!1,showIcon:d=!0,displaySpinnerforItem:c,error:u}){const{isDesktop:p}=(0,SM.useResponsive)();return(0,X.jsx)(gs,{isVisible:t,style:{margin:0},children:(0,X.jsx)(ts,{eventAction:"close",withoutFeedback:!0,onPress:e,children:(0,X.jsx)(AM,{desktop:p,children:(0,X.jsx)(ts,{withoutFeedback:!0,onPress:()=>{},children:(0,X.jsxs)(PM,{desktop:p,children:[(0,X.jsx)(DM,{onPress:e,children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.BLACK})}),(0,X.jsxs)(MM,{children:[(0,X.jsx)(OM,{children:a}),(0,X.jsx)(zM,{children:s})]}),!!u&&(0,X.jsx)(GM,{children:u}),(0,X.jsx)(LM,{overScrollMode:"never",children:i.map(({key:e,value:t})=>(0,X.jsx)(ts,{eventAction:"select item",withoutFeedback:!0,onPress:()=>(async e=>{e!==o&&n(e)})(e),disabled:!!c,children:(0,X.jsxs)(qM,{centered:r,children:[(0,X.jsx)(BM,{bold:l,children:t}),!c&&e===o&&d&&(0,X.jsx)(Pa.default,{name:"check",size:20,color:Qe.GREEN_SUMMER_GRASS}),c===e&&(0,X.jsx)(Aa.default,{color:"gray"})]})},e))})]})})})})})},$M=(0,Ge.default)(ws.default).withConfig({displayName:"field__Container",componentId:"sc-iy5nzs-0"})(["flex-direction:row;padding:10px 0;border-color:",";",""],Qe.GRAY_4,({borderBottom:e})=>!!e&&"border-bottom-width: 1px;"),FM=(0,Ge.default)(Be.default).withConfig({displayName:"field__Value",componentId:"sc-iy5nzs-1"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),HM=({children:e=null,borderBottom:t=!1,longText:n=!1,icon:i="",onPress:o=()=>{}})=>(0,X.jsxs)($M,{borderBottom:t,onPress:o,children:[i&&(0,X.jsx)(Pa.default,{name:i,size:20,style:{paddingTop:1,marginRight:6}
2590,set:"MaterialCommunityIcons"}),e&&"string"===typeof e?(0,X.jsx)(FM,{longText:n,children:e}):e]});HM.propTypes={borderBottom:ze().bool,longText:ze().bool,children:ze().oneOfType([ze().string,ze().node]),icon:ze().string,onPress:ze().func};const WM=HM,VM=(0,Ge.default)(lm).withConfig({displayName:"header__Section",componentId:"sc-xfyiy5-0"})(["background-color:",";",""],Qe.GREEN_FROSTY_GREEN,({noMarginBottom:e})=>!e&&"margin-bottom: 10px;"),KM=(0,Ge.default)(qe.default).withConfig({displayName:"header__Row",componentId:"sc-xfyiy5-1"})(["flex-direction:row;justify-content:space-between;align-items:center;flex:1;flex-wrap:wrap;"]),YM=(0,Ge.default)(Be.default).withConfig({displayName:"header__Label",componentId:"sc-xfyiy5-2"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),XM=(0,Ge.default)(Be.default).withConfig({displayName:"header__Action",componentId:"sc-xfyiy5-3"})(["color:",";font-weight:600;font-size:12px;"],Qe.GREEN_GROWN_UP_GREEN);function ZM({latitude:e,longitude:t,startTime:n,endTime:i,frequency:o,isFinite:a,fullAddress:s,description:r,trackingProperties:l}){const{pages:{planner:d}}=lt(),c=lu(),{autoTrackEnhanced:u}=mt(),[p,m]=(0,K.useState)(!1),f=C.DateTime.fromISO(n),g=f.toLocaleString(C.DateTime.DATE_HUGE),h=JD(n,i),_=(0,K.useCallback)(()=>{u({userFlow:za,action:Xa.click,objectName:"view on map",properties:l}),sA(`${e},${t}`)},[p,e,t]),x=(0,K.useCallback)(()=>{u({userFlow:za,action:Xa.click,objectName:"view calendar",properties:l}),d.setSelectedDate(f),c(Vi())},[u,d,f]);return(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(VM,{elevation:1,children:[(0,X.jsx)(WM,{borderBottom:!0,icon:"map-marker",onPress:_,children:(0,X.jsxs)(KM,{children:[(0,X.jsx)(YM,{children:s}),(0,X.jsx)(XM,{children:i18n.t("offer.details.view_on_map")})]})}),(0,X.jsx)(WM,{borderBottom:!0,icon:"calendar-today",onPress:x,children:(0,X.jsx)(KM,{children:(0,X.jsx)(YM,{children:g})})}),(0,X.jsx)(WM,{icon:"clock-time-three-outline",children:`${h} | ${a?r:i18n.t(`frequency_names.${o||"once"}`)}`})]}),(0,X.jsx)(UM,{isOpen:p,onClose:()=>m(!1),onItemSelected:n=>sA(`${e},${t}`),items:aA.map(({key:e,value:t})=>({key:e,value:t})),title:i18n.t("map.options.title"),subTitle:i18n.t("map.options.subtitle"),showIcon:!1,centered:!0,bold:!0,selectedItem:null})]})}ZM.propTypes={latitude:qc.default.number,longitude:qc.default.number,fullAddress:qc.default.string,startTime:qc.default.string,endTime:qc.default.string,frequency:qc.default.string,isFinite:qc.default.bool,description:qc.default.string,trackingProperties:qc.default.shape({serviceType:qc.default.string,offerType:qc.default.string,asap:qc.default.bool,providerType:qc.default.string,frequencyOption:qc.default.string})};const QM=ZM,JM=(0,Ge.default)(Da.default).withConfig({displayName:"related_bid__Container",componentId:"sc-1v1d859-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;background-color:",";"],Qe.GREEN_FROSTY_GREEN),eO=(0,Ge.default)(Be.default).withConfig({displayName:"related_bid__Date",componentId:"sc-1v1d859-1"})(["color:",";"],Qe.TEXT_DARK),tO=(0,Ge.default)(Be.default).withConfig({displayName:"related_bid__Time",componentId:"sc-1v1d859-2"})(["color:",";"],Qe.TEXT_DARK),nO=({code:e,startTime:t,endTime:n,showBottomBorder:i})=>{const o=lu(),a=C.DateTime.fromISO(t).toLocaleString(C.DateTime.DATE_MEDIUM),s=JD(t,n);return(0,X.jsxs)(JM,{showBottomBorder:i,onPress:()=>(e=>{o(Xi(e))})(e),children:[(0,X.jsxs)(eO,{children:[a," - ",(0,X.jsx)(tO,{children:s})]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24})]})},iO=100,oO=60,aO="SET_CURRENT_DATE",sO="SET_CALENDAR_OPEN",rO="SET_CALENDAR_MONTH",lO="SET_EVENTS",dO="SET_LOADING_EVENTS",cO="SET_CALENDAR_MARKS",uO="SET_TIME_TRAVELS",pO="SET_ABSENCE",mO="SET_HOLIDAYS",fO="SET_IS_OVERLAP",gO="SET_CONFIRMED_EVENTS_COUNT",hO=()=>{const{search:e}=(0,Ks.useLocation)();return new URLSearchParams(e)},_O=(e,t,n)=>{const i=C.DateTime.fromISO(e.startTime),o=t&&C.DateTime.fromISO(t.endTime),a=C.DateTime.fromISO(e.endTime),s=n&&C.DateTime.fromISO(n.startTime);return i<o||a>s},xO=(0,Ge.default)(xI).withConfig({displayName:"related_bids__StyledAccordion",componentId:"sc-zwkqoq-0"})(["margin:10px 0px;border:1px solid ",";border-radius:4px;"],Qe.GRAY_4),yO=(0,Ge.default)(qe.default).withConfig({displayName:"related_bids__AccordionTitle",componentId:"sc-zwkqoq-1"})(["flex-direction:row;align-items:center;"]),vO=({relatedBids:e})=>{const t=hO().get("expanded"),[n,i]=(0,K.useState)("true"===t);return(0,X.jsx)(xO,{title:(0,X.jsxs)(yO,{children:[(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"clock-plus",size:24,color:Qe.GREEN_SUMMER_GRASS,style:{marginRight:8}}),(0,X.jsx)(Be.default,{children:i18n.t("bid.related_bids.title")})]}
2590),elevation:0,contentStyle:{padding:0,margin:0},open:n,onPress:()=>i(!n),children:e.map(({code:t,starttime:n,endtime:i},o)=>(0,X.jsx)(nO,{code:t,startTime:n,endTime:i,showBottomBorder:e.length-1===o},o))})},bO=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-hw8xf8-0"})(["margin-top:20px;margin-bottom:60px;"]),wO=(0,Ge.default)(qe.default).withConfig({displayName:"content__DividerContainer",componentId:"sc-hw8xf8-1"})(["flex-direction:row;align-items:center;margin-top:16px;"]),CO=(0,Ge.default)(qe.default).withConfig({displayName:"content__Divider",componentId:"sc-hw8xf8-2"})(["flex:1;height:2px;background-color:",";"],Qe.GRAY_2),jO=(0,Ge.default)(Be.default).withConfig({displayName:"content__DividerTitle",componentId:"sc-hw8xf8-3"})(["width:195px;font-weight:700;font-size:14px;text-align:center;"]),IO=(0,Ge.default)(qe.default).withConfig({displayName:"content__ButtonGroup",componentId:"sc-hw8xf8-4"})(["flex-direction:",";justify-content:space-evenly;align-items:center;margin:32px 0px 0px 0px;"],({isDesktop:e})=>e?"row":"column"),TO=(0,Ge.default)(ms).withConfig({displayName:"content__StyledButton",componentId:"sc-hw8xf8-5"})(["margin:5px 0px;"]);function EO({bid:e}){const{isDesktop:t}=uu(),{autoTrackEnhanced:n}=mt(),{session:{currentUser:i,settings:{viewPermissions:{actionSelectedOffers:o},featureFlags:{hidePricesFromProvider:a,materials:s,newRelationshipIntroFee:r}}}}=lt(),{code:l,duration:d,additionalServices:c,isCountdown:u,optedIn:p,averageCustomerRating:m,customerRatingsCount:f,customer:{id:g},customer:h,materialsRequired:_,notes:x,address:y,previousAddress:v,payouts:b,payoutsWithIntroFee:w,repeat:C,countdownEndTime:j,starttime:I,endtime:T,frequency:E,description:N,isFinite:k,fullAddress:R,latitude:S,longitude:A,relatedBids:P,customerInstructions:D,trackingProperties:M,showPecGuidelineBeforeAccept:O}=e,z=null===i||void 0===i?void 0:i.needsBankDetailsBeforeOffers,L=tM(d),[q,B]=(0,K.useState)(!1),[G,U]=(0,K.useState)(!1),[$,F]=(0,K.useState)(!1),[H,W]=(0,K.useState)(!1),V=(0,K.useCallback)(()=>{n({userFlow:za,action:Xa.click,objectName:"decline",properties:M}),F(!0)},[n,F]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(bO,{children:[(0,X.jsx)(QM,{latitude:S,longitude:A,fullAddress:R,startTime:I,endTime:T,frequency:E,isFinite:k,description:N,trackingProperties:M}),(u||p)&&(0,X.jsx)(UA,{trackingProperties:M}),p&&(0,X.jsx)(aM,{countdownEndTime:j}),(0,X.jsx)(bA,{bidId:e.id,storedTravelTime:e.travelTime,customerId:g,averageCustomerRating:m,customerRatingsCount:f,durationInHour:L,materialsEnabled:s,materialsRequired:_,additionalServices:c,notes:x,address:y,previousAddress:v,providerAddressId:i.address.id,startTime:I,isSelectionOffer:e.isSelectionOffer,trackingProperties:M}),!(null===P||void 0===P||!P.length)&&(0,X.jsx)(vO,{relatedBids:P}),!a&&(0,X.jsx)(RM,{payouts:b,payoutsWithIntroFee:w,durationInHour:L,showPayoutsWithIntroFee:r&&C,trackingProperties:M}),(0,X.jsxs)(wO,{children:[(0,X.jsx)(CO,{}),(0,X.jsx)(jO,{children:i18n.t("bid.divider_title")}),(0,X.jsx)(CO,{})]}),o&&(0,X.jsxs)(IO,{isDesktop:t,children:[!p&&(0,X.jsx)(TO,{icon:"check-circle-outline",textColor:Qe.WHITE,onPress:async()=>{n({userFlow:za,action:Xa.click,objectName:"accept",properties:M}),z?W(!0):u?B(!0):U(!0)},children:u?i18n.t("bid.request"):i18n.t("bid.accept")}),(0,X.jsx)(TO,{icon:"close",textColor:Qe.GREEN_SUMMER_GRASS,onPress:V,variant:"secondary",children:i18n.t("bid.decline")})]})]}),(0,X.jsx)(VP,{bidCode:l,customer:h,customerId:g,open:q,onClose:()=>{B(!1)},isCountdown:u,startTime:I,endTime:T,frequency:E,trackingProperties:M,showPecGuidelineBeforeAccept:O}),(0,X.jsx)(BD,{bidCode:l,customer:h,customerId:g,open:G,onClose:()=>{U(!1)},isCountdown:u,startTime:I,endTime:T,frequency:E,customerInstructions:D,trackingProperties:M,showPecGuidelineBeforeAccept:O}),(0,X.jsx)(ZD,{bidCode:l,open:$,onClose:()=>{F(!1)}}),(0,X.jsx)(Kv,{open:H,onClose:()=>W(!1)})]})}EO.propTypes={bid:qc.default.object};const NO=EO,kO=(0,Ge.default)(qe.default).withConfig({displayName:"second__Container",componentId:"sc-19npi10-0"})(["flex:1;background:",";",""],Qe.WHITE,({desktop:e})=>
2590e&&"\n    align-items: center; min-height: 100%\n  "),RO=(0,Ge.default)(Ae.KeyboardAwareScrollView).withConfig({displayName:"second__Content",componentId:"sc-19npi10-1"})(["flex:1;width:100%;background:",";padding:0px ","px;padding-bottom:","px;"],({contentBackgroundColor:e})=>e,({noContentMargin:e})=>e?0:16,({$paddingBottom:e})=>e),SO=(0,Ge.default)(qe.default).withConfig({displayName:"second__ContentWrapper",componentId:"sc-19npi10-2"})(["flex:1;width:100%;"]),AO={maxWidth:750,alignSelf:"center",width:"100%"},PO=({title:e,content:t,scrollEnabled:n=!0,contentBackgroundColor:i=Qe.WHITE,contentContainerStyle:o,centeredContent:a=!0,noContentMargin:s,hideTabMenu:r,onBackClick:l,keyboardShouldPersistTaps:d})=>{const{isDesktop:c}=uu(),u=!r&&!c,{insets:p,tabMenuHeight:m,contentPaddingBottom:f}=_f({tabMenuVisible:u}),{isConnected:g}=(0,ta.useNetInfo)(),h=(0,Ks.useHistory)();(0,K.useEffect)(()=>{const e=xf.default.addEventListener("hardwareBackPress",()=>(h.goBack(),!0));return()=>e.remove()},[]);return(0,X.jsxs)(kO,{desktop:c,children:[!g&&(0,X.jsx)(pm,{paddingTop:p.top}),c&&(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}),(0,X.jsx)(If,{title:e,handleBackButtonClick:l||(()=>h.goBack()),noContentBorderRadius:!0}),(0,X.jsx)(SO,{children:(0,X.jsxs)(RO,Object.assign({contentBackgroundColor:i,scrollEnabled:n,enabled:n,overScrollMode:"never",keyboardShouldPersistTaps:d,contentContainerStyle:Object.assign({flexGrow:1},o,a?AO:{}),$paddingBottom:f,noContentMargin:s,extraKeyboardSpace:-1*m},n?{}:{as:qe.default,style:o},{children:[(0,X.jsx)(pf,{noContentMargin:s}),t&&t()]}))}),u&&(0,X.jsx)(sf,{})]})},DO=(0,Ge.default)(qe.default).withConfig({displayName:"gone__Container",componentId:"sc-rp44b3-0"})(["align-items:center;"]),MO=(0,Ge.default)(qe.default).withConfig({displayName:"gone__IconContainer",componentId:"sc-rp44b3-1"})(["background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;"],Qe.CRIMSON_4),OO=(0,Ge.default)(Be.default).withConfig({displayName:"gone__Title",componentId:"sc-rp44b3-2"})(["font-size:24px;color:",";margin-top:12px;margin-bottom:24px;"],Qe.TEXT_DARK),zO=(0,Ge.default)(Be.default).withConfig({displayName:"gone__Description",componentId:"sc-rp44b3-3"})(["font-size:16px;color:",";margin-bottom:24px;text-align:center;"],Qe.TEXT_LIGHT),LO=(0,Ge.default)(ms).withConfig({displayName:"gone__StyledButton",componentId:"sc-rp44b3-4"})(["margin-top:32px;"]),qO=()=>{const e=lu();return(0,X.jsxs)(DO,{children:[(0,X.jsx)(MO,{children:(0,X.jsx)(Pa.default,{name:"exclamation-thick",size:24,color:Qe.CRIMSON_1,set:"MaterialCommunityIcons"})}),(0,X.jsx)(OO,{children:i18n.t("bid.gone.title")}),(0,X.jsx)(zO,{children:i18n.t("bid.gone.description")}),(0,X.jsx)(LO,{onPress:()=>{e(wi())},children:i18n.t("bid.gone.go_to_dashboard")})]})},BO=()=>(0,X.jsx)(PO,{title:i18n.t("bid.gone.title"),content:qO,contentBackgroundColor:Qe.WHITE,hideTabMenu:!0}),GO=(0,Ge.default)(xm.Text).withConfig({displayName:"bid__ErrorText",componentId:"sc-wa8uv5-0"})(["text-align:center;font-weight:300;color:",";"],Qe.CRIMSON_1);function UO(){return(0,X.jsx)(PO,{title:i18n.t("bid.title"),content:()=>(0,X.jsx)(GO,{children:i18n.t("provider.generic.error")})})}function $O(){return(0,X.jsx)(PO,{title:i18n.t("bid.title"),content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const FO=function(){const{code:e}=(0,Ks.useParams)(),{bid:t,loading:n,error:i}=(({code:e})=>{var t,n,i;const{data:o,error:a,loading:s,refetch:r}=(0,Is.useQuery)(GS,{variables:{code:e},context:{apiVersion:3},fetchPolicy:"no-cache"}),l="selection"===(null===o||void 0===o||null===(t=o.bid)||void 0===t?void 0:t.bidType)&&(null===o||void 0===o||null===(n=o.bid)||void 0===n?void 0:n.providerSelectedByCustomer)&&!(null!==o&&void 0!==o&&null!==(i=o.bid)&&void 0!==i&&i.isCountdown),d={};if(null!==o&&void 0!==o&&o.bid){d.asap="asap"===o.bid.bidType,o.bid.bidType&&!["selection","asap"].includes(o.bid.bidType)&&(d.providerType=o.bid.bidType),d.frequencyOption=o.bid.frequency,d.duration=o.bid.duration/3600,"once"===o.bid.frequency?d.oneoffPrice=Number((o.bid.payouts.providerTotalPayout/100).toFixed(2)):(d.first3CleanPrice=Number((o.bid.payoutsWithIntroFee.providerTotalPayout/100).toFixed(2)),d.after3CleanPrice=Number((o.bid.payouts.providerTotalPayout/100).toFixed(2)));const e=C.DateTime.fromISO(o.bid.starttime);
2590d.startTime=e.toLocaleString(C.DateTime.TIME_24_SIMPLE),d.day=e.toFormat("EEEE"),d.offerType=o.bid.providerSelectedByCustomer?Ol:zl,d.serviceType=Gl}return{bid:null!==o&&void 0!==o&&o.bid?Object.assign({},null===o||void 0===o?void 0:o.bid,{isSelectionOffer:l,trackingProperties:d}):null===o||void 0===o?void 0:o.bid,loading:s,error:a,refetch:r}})({code:e}),{analytics:{autoTrackEnhanced:o}}=lt();return(0,K.useEffect)(()=>{!n&&t&&o({userFlow:za,action:Xa.view,objectName:"offer details",properties:t.trackingProperties})},[n,t]),n?(0,X.jsx)($O,{}):i?(0,X.jsx)(UO,{}):t?(0,X.jsx)(PO,{title:i18n.t("bid.title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(NO,{bid:Object.assign({},t,{trackingProperties:AS()(t.trackingProperties,["serviceType","offerType","asap","providerType","frequencyOption"])})}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE}):(0,X.jsx)(BO,{})},HO=()=>(0,X.jsx)(FO,{}),WO=(0,Ge.default)(qe.default).withConfig({displayName:"details__Section",componentId:"sc-11xg0bv-0"})(["margin:12px 0;"]),VO=(0,Ge.default)(Be.default).withConfig({displayName:"details__Title",componentId:"sc-11xg0bv-1"})(["font-weight:600;font-size:15px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),KO=(0,Ge.default)(ts).withConfig({displayName:"details__Item",componentId:"sc-11xg0bv-2"})(["flex-direction:",";justify-content:space-between;padding:12px 10px;border:1px solid ",";"," ",""],({column:e})=>"row",Qe.GRAY_BORDER,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;",({seperate:e})=>e&&"margin-bottom: 8px;"),YO=(0,Ge.default)(Be.default).withConfig({displayName:"details__ItemLabel",componentId:"sc-11xg0bv-3"})(["color:",";padding-right:8px;flex:1;"],Qe.TEXT_DARK),XO=(0,Ge.default)(Be.default).withConfig({displayName:"details__ItemValue",componentId:"sc-11xg0bv-4"})(["",";",";margin-left:auto;flex:1;text-align:right;"],({color:e})=>e&&`color: ${e}`,({bold:e})=>e&&"font-weight: bold"),ZO=(0,Ge.default)(qe.default).withConfig({displayName:"details__Rating",componentId:"sc-11xg0bv-5"})(["flex-direction:row;align-items:center;align-self:flex-end;"]),QO=()=>(0,X.jsx)(qe.default,{style:{flex:1,height:"100%",justifyContent:"center",alignItems:"center"},children:(0,X.jsx)(xm.ActivityIndicator,{size:"small"})});const JO=(0,Te.observer)(function({newRequestId:e,storedTravelTime:t,customerId:n,averageCustomerRating:i,customerRatingsCount:o,durationInHour:a,address:s,previousAddress:r,providerAddressId:l,startTime:d,trackingProperties:c}){const{autoTrackEnhanced:u}=mt(),[p,m]=(0,K.useState)(!1),[f,g]=(0,K.useState)(!!t);let{fetchTravelTime:h,travelTime:_,loading:x}=(({newRequestId:e,originAddressId:t,destinationAddressId:n,arrivalTime:i})=>{const[o]=(0,js.useMutation)(cA,{context:{apiVersion:3}});return uA({originAddressId:t,destinationAddressId:n,arrivalTime:i,onStore:n=>o({variables:{travelTime:n,travelTimeFromId:t,newRequestId:e}})})})({newRequestId:e,originAddressId:r.id,destinationAddressId:s.id,arrivalTime:d});const y=!f&&!t,v=f&&x&&!t,b=f&&!x&&null==_&&!t,w=f&&!x&&null!=_||t,C=()=>{r&&r.latitude&&r.longitude&&s&&s.latitude&&s.longitude&&rA({startLat:r.latitude,startLng:r.longitude,endLat:s.latitude,endLng:s.longitude})},j=(0,K.useCallback)(()=>{u({userFlow:za,action:Xa.click,objectName:"customer ratings",properties:c}),m(!0)},[m,u]);return(0,X.jsxs)(WO,{children:[(0,X.jsx)(VO,{children:i18n.t("event.sections.booking_details.title")}),0!==o&&(0,X.jsxs)(KO,{showBottomBorder:!0,seperate:!0,onPress:j,children:[(0,X.jsx)(YO,{children:i18n.t("bid.booking_details.customer_ratings")}),(0,X.jsxs)(ZO,{children:[(0,X.jsx)(OS,{rating:i}),(0,X.jsx)(Be.default,{children:i}),(0,X.jsxs)(Be.default,{children:["(",o,")"]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,style:{marginRight:-8}})]})]}),(0,X.jsxs)(KO,{children:[(0,X.jsx)(YO,{children:i18n.t("event.sections.booking_details.duration")}),(0,X.jsx)(XO,{children:i18n.t("event.sections.booking_details.duration_value",{duration:a})})]}),(0,X.jsxs)(KO,{showBottomBorder:!0,column:f,onPress:async()=>
2590{if(f)u({userFlow:za,action:Xa.click,objectName:"view on map",properties:c}),C();else{try{u({userFlow:za,action:Xa.click,objectName:"show travel time",properties:c}),await h()}catch(e){le(e)}g(!0)}},testID:y?"TravelTime:getTime":"TravelTime:showDirections",children:[(0,X.jsx)(YO,{children:l!==r.id?i18n.t("notifications.new_customer_detail.travel_time_from_previous_job",{previous_job_address:r.address}):i18n.t("notifications.new_customer_detail.travel_time_from_home")}),(0,X.jsxs)(XO,{color:Qe.GREEN_SUMMER_GRASS,bold:!0,children:[y&&i18n.t("notifications.new_customer_detail.get_travel_time"),v&&(0,X.jsx)(QO,{}),b&&i18n.t("notifications.new_customer_detail.see_route"),w&&i18n.t("notifications.new_customer_detail.travel_time_on_public_transportation",{time:t?Math.round(t/60):Math.round(_/60)})]})]}),(0,X.jsx)(nA,{open:p,onClose:()=>m(!1),customerId:n})]})}),ez=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-ura3ug-0"})(["margin-top:20px;margin-bottom:60px;"]),tz=(0,Ge.default)(qe.default).withConfig({displayName:"content__DividerContainer",componentId:"sc-ura3ug-1"})(["flex-direction:row;align-items:center;margin-top:16px;"]),nz=(0,Ge.default)(qe.default).withConfig({displayName:"content__Divider",componentId:"sc-ura3ug-2"})(["flex:1;height:2px;background-color:",";"],Qe.GRAY_2),iz=(0,Ge.default)(Be.default).withConfig({displayName:"content__DividerTitle",componentId:"sc-ura3ug-3"})(["width:195px;font-weight:700;font-size:14px;text-align:center;"]),oz=(0,Ge.default)(qe.default).withConfig({displayName:"content__ButtonGroup",componentId:"sc-ura3ug-4"})(["flex-direction:",";justify-content:space-evenly;align-items:center;margin:32px 0px 0px 0px;"],({isDesktop:e})=>e?"row":"column"),az=(0,Ge.default)(ms).withConfig({displayName:"content__StyledButton",componentId:"sc-ura3ug-5"})(["margin:5px 0px;"]),sz=(0,Ge.default)(Be.default).withConfig({displayName:"content__ErrorMessage",componentId:"sc-ura3ug-6"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),rz=!0;const lz=(0,Te.observer)(function({newRequest:e}){var t,n,i,o;const{isDesktop:a}=uu(),s=lu(),{session:{currentUser:r,settings:{featureFlags:{hidePricesFromProvider:l}}},pages:{dashboard:{acceptNewRequest:d,rejectNewRequest:c,closeNewRequest:u}},analytics:{autoTrackEnhanced:p}}=lt(),{id:m,proposedStarttime:f,proposedDuration:g,frequency:h,previousAddress:_,payout:x,relationship:{customer:y,address:v}}=e,b=tM(g),w=C.DateTime.fromISO(f).plus({seconds:g}).toISO(),j="finite"===h,I={frequencyOption:h,offerType:Ol,serviceType:Gl,existingCustomer:!0},T=(0,Ng.useLocalObservable)(()=>({submitting:!1,success:null,error:null,action:rz,accept:(0,Ie.flow)(function*(){p({userFlow:za,action:Xa.click,objectName:"accept",properties:{requestType:"new request"}}),T.success=null,T.submitting=!0,T.action=rz;const e=yield d(m);T.success=e.success,T.error=e.error,T.submitting=!1}),reject:(0,Ie.flow)(function*(){p({userFlow:za,action:Xa.click,objectName:"decline",properties:{requestType:"new request"}}),T.success=null,T.submitting=!0,T.action=false;const e=yield c(m);T.success=e.success,T.error=e.error,T.submitting=!1}),closeSuccessMessage(){p({userFlow:za,action:Xa.click,objectName:"close success message",properties:{requestType:"new request"}}),u(m),s("/provider/offers")}}));return(0,X.jsxs)(X.Fragment,{children:[!0!==T.success&&(0,X.jsxs)(ez,{children:[(0,X.jsx)(QM,{latitude:null===v||void 0===v?void 0:v.latitude,longitude:null===v||void 0===v?void 0:v.longitude,fullAddress:null===v||void 0===v?void 0:v.address,startTime:f,endTime:w,frequency:h,isFinite:j,description:null,trackingProperties:I}),(0,X.jsx)(JO,{newRequestId:m,storedTravelTime:e.travelTime,customerId:y.id,averageCustomerRating:(null===(t=y.ratings)||void 0===t?void 0:t.average)||0,customerRatingsCount:(null===(n=y.ratings)||void 0===n?void 0:n.count)||0,durationInHour:b,address:v,previousAddress:_,providerAddressId:r.address.id,startTime:f,trackingProperties:I}),!l&&(0,X.jsx)(RM,{payouts:x,payoutsWithIntroFee:x,durationInHour:b,showPayoutsWithIntroFee:!1,trackingProperties:I}),(0,X.jsxs)(tz,{children:[(0,X.jsx)(nz,{}),(0,X.jsx)(iz,{children:i18n.t("bid.divider_title")}),(0,X.jsx)(nz,{})]}),!1===T.success&&(0,X.jsx)(sz,{children:null!==(i=T.error)&&void 0!==i&&null!==(o=i.message)&&void 0!==o&&o.includes("Network error")?i18n.t("ui.error.
2590network"):i18n.t("ui.error.generic")}),(0,X.jsxs)(oz,{isDesktop:a,children:[(0,X.jsx)(az,{icon:"check-circle-outline",textColor:Qe.WHITE,disabled:T.submitting,onPress:T.accept,children:i18n.t("bid.accept")}),(0,X.jsx)(az,{icon:"close",textColor:Qe.GREEN_SUMMER_GRASS,variant:"secondary",disabled:T.submitting,onPress:T.reject,children:i18n.t("bid.decline")})]})]}),(0,X.jsx)(gs,{isVisible:!0===T.success,children:(0,X.jsx)(Vc,{title:T.action===rz?i18n.t("new_request.success.accepted"):i18n.t("new_request.success.rejected"),cta:i18n.t("new_request.success.cta"),onClose:T.closeSuccessMessage})})]})}),dz=xt`
2591  query providerNewRequestOffers {
2592    notifications {
2593      newRequests {
2594        id
2595        proposedStarttime
2596        proposedDuration
2597        frequency
2598        travelTime
2599        previousAddress {
2600          latitude
2601          longitude
2602          id
2603          postcode
2604          town
2605          address
2606        }
2607        relationship {
2608          id
2609          customer {
2610            id
2611            name
2612            ratings {
2613              average
2614              count
2615            }
2616          }
2617          address {
2618            id
2619            address
2620            address1
2621            postcode
2622            town
2623            latitude
2624            longitude
2625          }
2626        }
2627        payout {
2628          pricePerHour
2629          commissionAmountPerHour
2630          providerPayoutPerHour
2631          providerTotalPayout
2632          commissionPercentage
2633        }
2634      }
2635    }
2636  }
2637`,cz=(0,Ge.default)(xm.Text).withConfig({displayName:"new_request__ErrorText",componentId:"sc-lwzhjg-0"})(["text-align:center;font-weight:300;color:",";"],Qe.CRIMSON_1),uz=()=>(0,X.jsx)(PO,{title:i18n.t("bid.title"),content:()=>(0,X.jsx)(cz,{children:i18n.t("provider.generic.error")})}),pz=()=>(0,X.jsx)(PO,{title:i18n.t("bid.title"),content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})}),mz=(0,Te.observer)(()=>{const{id:e}=(0,Ks.useParams)(),{newRequest:t,loading:n,error:i}=(({id:e})=>{var t;const{data:n,loading:i,error:o,refetch:a}=(0,Is.useQuery)(dz,{fetchPolicy:"no-cache",context:{apiVersion:3}}),s=((null===n||void 0===n||null===(t=n.notifications)||void 0===t?void 0:t.newRequests)??[]).find(t=>(null===t||void 0===t?void 0:t.id)===e)??null;return{newRequest:s,loading:i,error:o,refetch:a}})({id:e});return n?(0,X.jsx)(pz,{}):i?(0,X.jsx)(uz,{}):t?(0,X.jsx)(PO,{title:i18n.t("bid.title"),content:()=>(0,X.jsx)(lz,{newRequest:t}),contentBackgroundColor:Qe.WHITE}):(0,X.jsx)(BO,{})}),fz=()=>(0,X.jsx)(mz,{}),gz=(0,Ge.default)(ws.default).withConfig({displayName:"header__Container",componentId:"sc-ly0o4g-0"})(["flex:1;"]),hz=({event:e})=>{const t=lu(),{analytics:{autoTrack:n}}=lt(),{customer:{id:i,name:o,relationship:a}}=e;return(0,X.jsx)(gz,{onPress:()=>{n("User clicked on customer name to open customer details",`from event page - customerId: ${i}, relationshipId: ${null===a||void 0===a?void 0:a.id}`),t(Ri(i))},children:(0,X.jsx)(yf,{children:o})})},_z=(0,Ge.default)(Be.default).withConfig({displayName:"row__RowTitle",componentId:"sc-iel8ok-0"})(["font-size:20px;color:",";font-weight:bold;"],hf.HEADER.TEXT),xz=(0,Ge.default)(Be.default).withConfig({displayName:"row__RowText",componentId:"sc-iel8ok-1"})(["font-size:","px;font-weight:500;color:",";"],({large:e})=>e?20:15,hf.HEADER.TEXT),yz=(0,Ge.default)(qe.default).withConfig({displayName:"row__Container",componentId:"sc-iel8ok-2"})(["flex-direction:row;align-items:center;margin-top:",";"],({noMargin:e})=>e?0:"10px"),vz=(0,Ge.default)(Pa.default).attrs({color:Qe.GREEN_SUMMER_GRASS,size:20}).withConfig({displayName:"row__RowIcon",componentId:"sc-iel8ok-3"})(["margin-right:10px;"]),bz=({iconName:e=null,iconSet:t=Pa.SETS.MATERIAL_COMMUNITY_ICONS,noMargin:n=!1,children:i})=>(0,X.jsxs)(yz,{noMargin:n,children:[!!e&&(0,X.jsx)(vz,{name:e,set:t}),i]}),wz=(0,Ge.default)(Be.default).withConfig({displayName:"time__Dot",componentId:"sc-189f461-0"})(["font-size:9px;color:",";padding:0px 5px;"],hf.HEADER.TEXT),Cz=({event:e})=>{const{details:{startTime:t,endTime:n,period:i}}=e;return(0,X.jsxs)(bz,{noMargin:!0,children:[(0,X.jsx)(xz,{children:JD(t,n)}),(0,X.jsx)(wz,{children:"\u2b24"}),(0,X.jsx)(xz,{children:i18n.t(`frequency_names.${i||"once"}`)})]})},jz=({event:e})=>{const{details:{startTime:t}}=e,n=C.DateTime.fromISO(t);return(0,X.jsx)(bz,{children:(0,X.jsx)(xz,{large:!0,children:n.toLocaleStr
2637ing(C.DateTime.DATE_HUGE)})})},Iz=(0,Ge.default)(xz).withConfig({displayName:"address__Address",componentId:"sc-1aqtgul-0"})(["font-weight:600;text-decoration:underline;flex-wrap:wrap;flex:1;"]),Tz=({event:e})=>{const[t,n]=(0,K.useState)(!1),{session:{country:i}}=lt(),{details:{address:{address:o,latitude:a,longitude:s}}}=e;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ts,{onPress:()=>{"ie"!==i&&sA(`${a},${s}`)},eventAction:"open map",children:(0,X.jsx)(bz,{iconName:"location-pin",iconSet:Pa.SETS.MATERIAL_ICONS,children:(0,X.jsx)(Iz,{children:o})})}),!1]})},Ez=(0,Ge.default)(qe.default).withConfig({displayName:"event_subheader__Container",componentId:"sc-1py9kt5-0"})(["width:100%;margin-bottom:10px;"]),Nz=({event:e})=>(0,X.jsxs)(Ez,{children:[(0,X.jsx)(Tz,{event:e}),(0,X.jsx)(jz,{event:e}),(0,X.jsx)(Cz,{event:e})]}),kz=(0,Ge.default)(bz).withConfig({displayName:"pickup_event_subheader__DateRow",componentId:"sc-1kj07gf-0"})(["margin-top:14px;"]),Rz=(0,Ge.default)(bz).withConfig({displayName:"pickup_event_subheader__TimeRow",componentId:"sc-1kj07gf-1"})(["flex-direction:row;align-items:center;margin-top:6px;"]),Sz=({event:e})=>{const{details:{startTime:t,endTime:n},pickupAttempts:i}=e,o=i[0],{scheduledAt:a,duration:s}=o,r=C.DateTime.fromISO(a),l=r.plus({seconds:s}).toISO(),d=r.toLocaleString(C.DateTime.DATE_HUGE),c=C.DateTime.fromISO(t).toLocaleString(C.DateTime.DATE_HUGE);return(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(Tz,{event:e}),(0,X.jsxs)(kz,{children:[(0,X.jsxs)(_z,{children:[i18n.t("event.pickup")," : "]}),(0,X.jsx)(xz,{large:!0,children:d})]}),(0,X.jsx)(Rz,{children:(0,X.jsx)(xz,{children:JD(a,l)})}),(0,X.jsxs)(kz,{children:[(0,X.jsxs)(_z,{children:[i18n.t("event.dropoff")," : "]}),(0,X.jsx)(xz,{large:!0,children:c})]}),(0,X.jsx)(Rz,{children:(0,X.jsx)(xz,{children:JD(t,n)})})]})},Az=(0,Ge.default)(qe.default).withConfig({displayName:"invoices__Section",componentId:"sc-1oh47za-0"})(["margin:12px 0;"]),Pz=(0,Ge.default)(Be.default).withConfig({displayName:"invoices__Title",componentId:"sc-1oh47za-1"})(["font-weight:600;font-size:18px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),Dz=(0,Ge.default)(qe.default).withConfig({displayName:"invoices__Row",componentId:"sc-1oh47za-2"})(["flex-direction:row;align-items:center;justify-content:space-between;padding:12px 10px;",";",""],({hideBorder:e})=>!e&&`border: 1px solid ${Qe.GRAY_4}`,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),Mz=(0,Ge.default)(qe.default).withConfig({displayName:"invoices__Cell",componentId:"sc-1oh47za-3"})(["flex:1;align-self:stretch;"]),Oz=(0,Ge.default)(Be.default).withConfig({displayName:"invoices__InvoiceNumber",componentId:"sc-1oh47za-4"})(["color:",";font-weight:bold;"],Qe.GREEN_PINE_OIL),zz=(0,Ge.default)(Be.default).withConfig({displayName:"invoices__ColName",componentId:"sc-1oh47za-5"})(["font-weight:bold;"]);const Lz=function({invoices:e}){return null!==e&&void 0!==e&&e.length?(0,X.jsxs)(Az,{children:[(0,X.jsx)(Pz,{children:i18n.t("event.sections.invoices.title")}),(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(Dz,{hideBorder:!0,children:[(0,X.jsx)(Mz,{children:(0,X.jsx)(zz,{children:i18n.t("event.section.invoices.table.column.date")})}),(0,X.jsx)(Mz,{children:(0,X.jsxs)(zz,{children:[" ",i18n.t("event.section.invoices.table.column.type")]})}),(0,X.jsx)(Mz,{children:(0,X.jsx)(zz,{children:i18n.t("event.section.invoices.table.column.amount")})}),(0,X.jsx)(Mz,{children:(0,X.jsx)(zz,{children:i18n.t("event.section.invoices.table.column.number")})})]}),e.map(({id:t,invoiceDate:n,invoiceType:i,invoiceNumber:o,amount:a,path:s},r)=>(0,X.jsxs)(Dz,{showBottomBorder:e.length-1===r,children:[(0,X.jsx)(Mz,{children:(0,X.jsx)(Be.default,{children:n?C.DateTime.fromISO(n).toFormat("dd.MM.yy"):i18n.t("event.in_progress")})}),(0,X.jsx)(Mz,{children:(0,X.jsx)(Be.default,{children:i18n.t(`event.section.invoices.invoice_types.${i}`)})}),(0,X.jsx)(Mz,{children:(0,X.jsx)(Be.default,{children:fh(a,{withSymbol:!0})})}),(0,X.jsx)(Mz,{children:(0,X.jsx)(ts,{onPress:()=>(e=>ru(vi(e)))(s),eventAction:"load invoice",children:(0,X.jsx)(Oz,{numberOfLines:1,children:o})})})]},t))]})]}):null},qz=(0,Ge.default)(qe.default).withConfig({displayName:"payouts__Section",componentId:"sc-fz30ml-0"})(["margin:12px 0;"]),Bz=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__Title",componentId:"sc-fz30ml-1"})(["font-weight:600;font-size:18px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),Gz=(0,Ge.default)(qe.default).withConfig({displayName:"payouts__Item",componentId:"sc-fz30ml-2"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),Uz=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__ItemLabel",componentId:"sc-fz30ml-3"})(["color:",";"],Qe.TEXT_DARK),$z=(0,Ge.default)(Be.default).withConfig({displayName:"payouts__ItemValue",componentId:"sc-fz30ml-4"})(["",";",";"],({color:e})=>e&&`color: ${e}`,({bold:e})=>e&&"font-weight: bold");const Fz=function({payouts:e}){return(0,X.jsxs)(qz,{children:[(0,X.jsx)(Bz,{children:i18n.t("event.sections.payouts.title")}),e.length>0?e.map(({id:t,amount:n,estimatedPayDate:i},o)=>(0,X.jsxs)(Gz,{showBottomBorder:e.length-1===o,children:[(0,X.jsx)(Uz,{children:fh(n,{withSymbol:!0})}),(0,X.jsx)($z,{children:i?C.DateTime.fromISO(i).toFormat("dd.MM.yy"):i18n.t("event.in_progress")})]},t)):(0,X.jsx)(Gz,{showBottomBorder:!0,testID:"payouts-in-progress",children:(0,X.jsx)($z,{color:Qe.GREEN_PINE_OIL,children:i18n.t("event.in_progress")})})]})},Hz=(0,Ge.default)(qe.default).withConfig({displayName:"charges__Section",componentId:"sc-juq6bv-0"})(["margin:12px 0;"]),Wz=(0,Ge.default)(Be.default).withConfig({displayName:"charges__Title",componentId:"sc-juq6bv-1"})(["font-weight:600;font-size:18px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),Vz=(0,Ge.default)(qe.default).withConfig({displayName:"charges__Item",componentId:"sc-juq6bv-2"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),Kz=(0,Ge.default)(Be.default).withConfig({displayName:"charges__ItemLabel",componentId:"sc-juq6bv-3"})(["color:",";"],Qe.TEXT_DARK),Yz=(0,Ge.default)(Be.default).withConfig({displayName:"charges__ItemValue",componentId:"sc-juq6bv-4"})(["",";",";"],({color:e})=>e&&`color: ${e}`,({bold:e})=>e&&"font-weight: bold");const Xz=function({charges:e}){return e.length?(0,X.jsxs)(Hz,{children:[(0,X.jsx)(Wz,{children:i18n.t("event.sections.charges.title")}),e.map(({name:t,amount:n},i)=>(0,X.jsxs)(Vz,{showBottomBorder:e.length-1===i,testID:`charges-${t}`,children:[(0,X.jsx)(Kz,{children:i18n.t(`event.charges.names.${t}`)}),(0,X.jsx)(Yz,{children:fh(n,{withSymbol:!0})})]},i))]}):null},Zz=(0,Ge.default)(qe.default).withConfig({displayName:"booking_details__Section",componentId:"sc-dp77tk-0"})(["margin:12px 0;"]),Qz=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__Title",componentId:"sc-dp77tk-1"})(["font-weight:600;font-size:18px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),Jz=(0,Ge.default)(qe.default).withConfig({displayName:"booking_details__Item",componentId:"sc-dp77tk-2"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),eL=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__ItemLabel",componentId:"sc-dp77tk-3"})(["color:",";padding-right:8px;"],Qe.TEXT_DARK),tL=(0,Ge.default)(Be.default).withConfig({displayName:"booking_details__ItemValue",componentId:"sc-dp77tk-4"})(["",";",";text-align:right;max-width:80%;"],({color:e})=>e&&`color: ${e}`,({bold:e})=>e&&"font-weight: bold");const nL=function({durationInHour:e,additionalServices:t=[]}){const n=t.length>0;return(0,X.jsxs)(Zz,{children:[(0,X.jsx)(Qz,{children:i18n.t("event.sections.booking_details.title")}),(0,X.jsxs)(Jz,{showBottomBorder:!0,children:[(0,X.jsx)(eL,{children:i18n.t("event.sections.booking_details.duration")}),(0,X.jsx)(tL,{testID:"booking-details-duration",children:i18n.t("event.sections.booking_details.duration_value",{duration:e})})]}),n&&(0,X.jsxs)(Jz,{showBottomBorder:!0,children:[(0,X.jsx)(eL,{children:i18n.t("additional_services.label")}),(0,X.jsx)(tL,{children:t.map(e=>{const[t,n]=e.split(".");return`${i18n.t(`additional_services.${t}.included`)} (${i18n.t(`additional_services.${t}.variants.${n}`,{defaultValue:i18n.t(`additional_services.variants.${n}`)})})`}).join(", ")})]})]})},iL=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_modal__
2637Container",componentId:"sc-x03vwt-0"})(["background-color:white;margin:50px 16px 20px 16px;display:flex;flex:1;"]),oL=(0,Ge.default)(Be.default).withConfig({displayName:"confirm_modal__Title",componentId:"sc-x03vwt-1"})(["font-size:18px;font-weight:700;color:",";text-align:center;margin-bottom:20px;"],Qe.TEXT_DARK),aL=(0,Ge.default)(Be.default).withConfig({displayName:"confirm_modal__SubTitle",componentId:"sc-x03vwt-2"})(["color:",";font-size:16px;text-align:center;font-weight:300;margin-bottom:20px;margin-top:10px;flex:1;"],Qe.TEXT_DARK),sL=(0,Ge.default)(ms).withConfig({displayName:"confirm_modal__LastButton",componentId:"sc-x03vwt-3"})(["margin-top:8px;"]),rL=(0,Ge.default)(Be.default).withConfig({displayName:"confirm_modal__ErrorText",componentId:"sc-x03vwt-4"})(["color:",";font-size:13px;padding:5px;text-align:center;"],Qe.CRIMSON_1),lL=(0,Ge.default)(Be.default).withConfig({displayName:"confirm_modal__Purpose",componentId:"sc-x03vwt-5"})(["margin-top:-35px;margin-bottom:35px;text-align:center;font-size:14px;color:",";font-weight:700;"],Qe.TEXT_DARK);const dL=function({children:e,isOpen:t,onClose:n,purposeText:i,title:o,subtitle:a,onConfirm:s,confirmButtonText:r,closeButtonText:l,dangerous:d,hideConfirm:c,disableConfirmButton:u,confirmActionLoading:p,actionError:m,actionErrorText:f,testID:g,size:h="small",displayCloseButton:_=!0,otherThanCloseCta:x=null,style:y={}}){return(0,X.jsx)(zw,{isOpen:t,onClose:n,size:h,displayCloseButton:_,style:y,children:(0,X.jsx)(Ae.KeyboardAvoidingView,{style:{display:"flex",flex:1},keyboardVerticalOffset:void 0,behavior:"padding",enabled:!0,children:(0,X.jsxs)(iL,{children:[i&&(0,X.jsx)(lL,{children:i}),o&&(0,X.jsx)(oL,{children:o}),a&&(0,X.jsx)(aL,{children:a}),e,m&&(0,X.jsx)(rL,{children:f||i18n.t("shared.confirm_modal.default_error_text",{defaultValue:"Can't perform this action"})}),!c&&(0,X.jsx)(ms,{testID:`${g}:Confirm`,onPress:s,disabled:u||p,loading:p,color:d?Qe.CRIMSON_1:Qe.GREEN_SUMMER_GRASS,disabledColor:d?Qe.CRIMSON_3:Qe.GREEN_IRISH_BREEZE,centered:!0,children:r||i18n.t("shared.confirm_modal.default_confirm_action_text")}),(0,X.jsx)(sL,{onPress:(null===x||void 0===x?void 0:x.onPress)||n,disabled:(null===x||void 0===x?void 0:x.disabled)||p,variant:"secondary",centered:!0,children:(null===x||void 0===x?void 0:x.label)||l||i18n.t("shared.confirm_modal.default_cancel_action_text")})]})})})},cL=(0,Ge.default)(qe.default).withConfig({displayName:"warning_banner__Backgroun
2637d",componentId:"sc-8jrbk2-0"})(["background-color:#fbf4ee;border-radius:12px;align-items:center;margin-bottom:24px;"]),uL=()=>(0,X.jsx)(cL,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/178,maxWidth:343},children:[(0,X.jsx)(Wu.Path,{d:"M190.059 27H153.597C124.951 27 110.621 27 101.725 35.8966C92.8281 44.7932 92.8281 59.1226 92.8281 87.7692V209.308C92.8281 237.954 92.8281 252.272 101.725 261.18C110.621 270.089 124.951 270.077 153.597 270.077H190.059C218.706 270.077 233.023 270.077 241.932 261.18C250.828 252.272 250.828 237.954 250.828 209.308V87.7692C250.828 59.1226 250.828 44.7932 241.932 35.8966C233.023 27 218.706 27 190.059 27Z",fill:"#FBF4EE",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.138 27H147.523L153.6 39.1538H190.061L196.138 27Z",fill:"white",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Rect,{x:"132.828",y:"76",width:"79",height:"79",rx:"39.5",fill:"#FFE5CF"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M172.985 91.0215C172.072 91.0215 171.177 91.2554 170.398 91.6977C169.618 92.1399 168.986 92.7731 168.57 93.5278L168.563 93.5401L150.371 127.323C149.99 128.025 149.809 128.805 149.844 129.59C149.88 130.375 150.131 131.139 150.575 131.809C151.018 132.478 151.638 133.031 152.376 133.415C153.115 133.799 153.947 134.002 154.793 134.003H191.188C192.033 134 192.863 133.797 193.6 133.413C194.337 133.029 194.957 132.476 195.399 131.807C195.841 131.138 196.092 130.375 196.128 129.591C196.164 128.807 195.983 128.027 195.603 127.326V127.323L177.404 93.5401L177.401 93.5278C176.985 92.7731 176.352 92.1399 175.573 91.6977C174.794 91.2554 173.898 91.0215 172.985 91.0215Z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M175.469 105.977C175.469 105.366 175.208 104.781 174.743 104.349C174.277 103.917 173.646 103.674 172.988 103.674C172.331 103.674 171.7 103.917 171.234 104.349C170.769 104.781 170.508 105.366 170.508 105.977V115.96C170.508 116.57 170.769 117.156 171.234 117.588C171.7 118.02 172.331 118.263 172.988 118.263C173.646 118.263 174.277 118.02 174.743 117.588C175.208 117.156 175.469 116.57 175.469 115.96V105.977ZM172.988 127.477C173.866 127.477 174.707 127.154 175.327 126.578C175.948 126.002 176.296 125.221 176.296 124.406C176.296 123.591 175.948 122.81 175.327 122.234C174.707 121.658 173.866 121.335 172.988 121.335C172.111 121.335 171.27 121.658 170.65 122.234C170.029 122.81 169.681 123.591 169.681 124.406C169.681 125.221 170.029 126.002 170.65 126.578C171.27 127.154 172.111 127.477 172.988 127.477Z",fill:"#723219"}),(0,X.jsx)(Wu.Path,{d:"M157.328 33H186.828",stroke:"#2D2C25",strokeWidth:"9",strokeLinecap:"round"})]})}),pL=(0,Ge.default)(qe.default).withConfig({displayName:"check_banner__Backgroun
2637d",componentId:"sc-1irs2dg-0"})(["background-color:#eff4f3;border-radius:12px;align-items:center;margin-bottom:24px;"]),mL=()=>(0,X.jsx)(pL,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/178,maxWidth:343},children:[(0,X.jsx)(Wu.Path,{d:"M190.059 27H153.597C124.951 27 110.621 27 101.725 35.8966C92.8281 44.7932 92.8281 59.1226 92.8281 87.7692V209.308C92.8281 237.954 92.8281 252.272 101.725 261.18C110.621 270.089 124.951 270.077 153.597 270.077H190.059C218.706 270.077 233.023 270.077 241.932 261.18C250.828 252.272 250.828 237.954 250.828 209.308V87.7692C250.828 59.1226 250.828 44.7932 241.932 35.8966C233.023 27 218.706 27 190.059 27Z",fill:"#EFF4F3",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.138 27H147.523L153.6 39.1538H190.061L196.138 27Z",fill:"white",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M157.328 33H186.828",stroke:"#2D2C25",strokeWidth:"9",strokeLinecap:"round"}),(0,X.jsx)(Wu.Path,{d:"M282.94 159.61V146.348C295.822 146.348 306.266 135.904 306.266 123.022V102.217C306.266 88.2902 294.975 77 281.048 77H147.046C133.118 77 121.828 88.2902 121.828 102.217V121.13C121.828 135.058 133.118 146.348 147.046 146.348H247.285C249.998 146.348 252.668 147.021 255.056 148.307L267.809 155.174L279.147 161.788C280.828 162.768 282.94 161.556 282.94 159.61Z",fill:"white"}),(0,X.jsx)(Wu.Path,{d:"M252.786 112.933C252.786 108.613 254.502 104.471 257.556 101.417C260.61 98.3624 264.752 96.6465 269.072 96.6465C273.391 96.6465 277.534 98.3624 280.588 101.417C283.642 104.471 285.358 108.613 285.358 112.933C285.358 117.252 283.642 121.395 280.588 124.449C277.534 127.503 273.391 129.219 269.072 129.219C264.752 129.219 260.61 127.503 257.556 124.449C254.502 121.395 252.786 117.252 252.786 112.933ZM276.739 110.014C276.891 109.863 277.011 109.683 277.093 109.485C277.175 109.287 277.217 109.075 277.217 108.861C277.217 108.647 277.175 108.435 277.093 108.237C277.011 108.039 276.891 107.86 276.739 107.708C276.588 107.557 276.408 107.437 276.21 107.355C276.013 107.273 275.801 107.23 275.586 107.23C275.372 107.23 275.16 107.273 274.962 107.355C274.764 107.437 274.585 107.557 274.433 107.708L267.443 114.701L263.71 110.965C263.559 110.814 263.379 110.694 263.181 110.612C262.984 110.53 262.772 110.488 262.557 110.488C262.343 110.488 262.131 110.53 261.933 110.612C261.736 110.694 261.556 110.814 261.404 110.965C261.253 111.117 261.133 111.297 261.051 111.494C260.969 111.692 260.927 111.904 260.927 112.118C260.927 112.333 260.969 112.545 261.051 112.742C261.133 112.94 261.253 113.12 261.404 113.271L266.29 118.157C266.441 118.309 266.621 118.429 266.819 118.511C267.017 118.594 267.229 118.636 267.443 118.636C267.657 118.636 267.87 118.594 268.067 118.511C268.265 118.429 268.445 118.309 268.596 118.157L276.739 110.014Z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M145.828 103H233.828",stroke:"#DDDDDD",strokeWidth:"8.82609",strokeLinecap:"round"}),(0,X.jsx)(Wu.Path,{d:"M145.828 121.002H210.828",stroke:"#DDDDDD",strokeWidth:"8.82609",strokeLinecap:"round"})]})}),fL=(0,Ge.default)(qe.default).withConfig({displayName:"success_banner__Backgroun
2637d",componentId:"sc-170abz7-0"})(["background-color:#eff4f3;border-radius:12px;align-items:center;margin-bottom:24px;"]),gL=()=>(0,X.jsx)(fL,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/178,maxWidth:343},children:[(0,X.jsx)(Wu.Path,{d:"M190.059 27H153.597C124.951 27 110.621 27 101.725 35.8966C92.8281 44.7932 92.8281 59.1226 92.8281 87.7692V209.308C92.8281 237.954 92.8281 252.272 101.725 261.18C110.621 270.089 124.951 270.077 153.597 270.077H190.059C218.706 270.077 233.023 270.077 241.932 261.18C250.828 252.272 250.828 237.954 250.828 209.308V87.7692C250.828 59.1226 250.828 44.7932 241.932 35.8966C233.023 27 218.706 27 190.059 27Z",fill:"#EFF4F3",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.138 27H147.523L153.6 39.1538H190.061L196.138 27Z",fill:"white",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M157.328 33H186.828",stroke:"#2D2C25",strokeWidth:"9",strokeLinecap:"round"}),(0,X.jsx)(Wu.Rect,{x:"131.828",y:"74",width:"79",height:"79",rx:"39.5",fill:"#DFEAE8"}),(0,X.jsx)(Wu.Path,{d:"M150.828 114C150.828 102.403 160.231 93 171.828 93C183.425 93 192.828 102.403 192.828 114C192.828 125.597 183.425 135 171.828 135C160.231 135 150.828 125.597 150.828 114Z",fill:"#5C8E85",stroke:"#5C8E85",strokeWidth:"4.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M162.495 114L169.495 121L181.161 109.333",stroke:"white",strokeWidth:"4.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})}),hL=(0,Ge.default)(qe.default).withConfig({displayName:"failed_banner__Backgroun
2637d",componentId:"sc-1d5wogo-0"})(["background-color:#f6eced;border-radius:12px;align-items:center;margin-bottom:24px;"]),_L=()=>(0,X.jsx)(hL,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/178,maxWidth:343},children:[(0,X.jsx)(Wu.Path,{d:"M190.059 27H153.597C124.951 27 110.621 27 101.725 35.8966C92.8281 44.7932 92.8281 59.1226 92.8281 87.7692V209.308C92.8281 237.954 92.8281 252.272 101.725 261.18C110.621 270.089 124.951 270.077 153.597 270.077H190.059C218.706 270.077 233.023 270.077 241.932 261.18C250.828 252.272 250.828 237.954 250.828 209.308V87.7692C250.828 59.1226 250.828 44.7932 241.932 35.8966C233.023 27 218.706 27 190.059 27Z",fill:"#F6ECED",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.138 27H147.523L153.6 39.1538H190.061L196.138 27Z",fill:"white",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M157.328 33H186.828",stroke:"#2D2C25",strokeWidth:"9",strokeLinecap:"round"}),(0,X.jsx)(Wu.Circle,{cx:"171.328",cy:"113.5",r:"39.5",fill:"#E5C7C9"}),(0,X.jsx)(Wu.Circle,{cx:"171.328",cy:"113.5",r:"24",fill:"#BA6A6F"}),(0,X.jsx)(Wu.Path,{d:"M163.328 105.5 L179.328 121.5 M163.328 121.5 L179.328 105.5",stroke:"white",strokeWidth:"4.66667",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),xL=(0,Ge.default)(qe.default).withConfig({displayName:"question_banner__Backgroun
2637d",componentId:"sc-19s0214-0"})(["background-color:#fbf4ee;border-radius:12px;align-items:center;margin-bottom:24px;"]),yL=()=>(0,X.jsx)(xL,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/178,maxWidth:343},children:[(0,X.jsx)(Wu.Path,{d:"M190.231 27.0005H153.769C125.123 27.0005 110.793 27.0005 101.897 35.8971C93 44.7937 93 59.1231 93 87.7697V209.308C93 237.955 93 252.272 101.897 261.181C110.793 270.09 125.123 270.077 153.769 270.077H190.231C218.877 270.077 233.195 270.077 242.103 261.181C251 252.272 251 237.955 251 209.308V87.7697C251 59.1231 251 44.7937 242.103 35.8971C233.195 27.0005 218.877 27.0005 190.231 27.0005Z",fill:"#FBF4EE",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.311 27.0005H147.695L153.772 39.1543H190.234L196.311 27.0005Z",fill:"white",stroke:"#2D2C25",strokeWidth:"12.0784",strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Rect,{x:"133",y:"76",width:"79",height:"79",rx:"39.5",fill:"#FFE5CF"}),(0,X.jsx)(Wu.Rect,{width:"25",height:"28",transform:"translate(162 101)",fill:"#723219"}),(0,X.jsx)(Wu.Path,{d:"M191.539 107.362C190.544 104.926 189.068 102.715 187.199 100.862C185.342 99.0023 183.136 97.5271 180.708 96.5206C178.28 95.5141 175.677 94.9961 173.049 94.9961C170.421 94.9961 167.818 95.5141 165.39 96.5206C162.962 97.5271 160.757 99.0023 158.899 100.862C157.047 102.729 155.573 104.936 154.559 107.362C153.553 109.783 153.043 112.38 153.059 115.002C153.039 117.589 153.543 120.154 154.539 122.542L153.539 129.842C153.382 130.459 153.382 131.105 153.539 131.722C153.699 132.334 154.017 132.892 154.459 133.342C154.897 133.803 155.439 134.152 156.039 134.362C156.631 134.558 157.263 134.606 157.879 134.502L165.199 133.422C167.643 134.474 170.278 135.012 172.939 135.002C175.568 135.009 178.172 134.492 180.599 133.482C183.023 132.474 185.225 131 187.079 129.142C188.95 127.298 190.426 125.093 191.419 122.662C193.447 117.763 193.447 112.26 191.419 107.362H191.539ZM172.839 127.522C172.176 127.522 171.54 127.258 171.071 126.79C170.603 126.321 170.339 125.685 170.339 125.022C170.339 124.359 170.603 123.723 171.071 123.254C171.54 122.785 172.176 122.522 172.839 122.522C173.502 122.522 174.138 122.785 174.607 123.254C175.076 123.723 175.339 124.359 175.339 125.022C175.339 125.685 175.076 126.321 174.607 126.79C174.138 127.258 173.502 127.522 172.839 127.522ZM179.939 112.742C179.564 113.634 178.997 114.433 178.279 115.082C177.574 115.745 176.735 116.249 175.819 116.562C175.557 116.673 175.329 116.853 175.159 117.082C174.978 117.34 174.88 117.647 174.879 117.962V119.222C174.879 119.752 174.668 120.261 174.293 120.636C173.918 121.011 173.41 121.222 172.879 121.222C172.349 121.222 171.84 121.011 171.465 120.636C171.09 120.261 170.879 119.752 170.879 119.222V117.902C170.89 116.775 171.246 115.679 171.899 114.762C172.547 113.86 173.444 113.165 174.479 112.762C174.874 112.64 175.237 112.433 175.545 112.157C175.852 111.881 176.096 111.541 176.259 111.162C176.402 110.785 176.476 110.385 176.479 109.982C176.464 109.58 176.369 109.186 176.199 108.822C175.936 108.362 175.574 107.966 175.139 107.662C174.683 107.334 174.155 107.121 173.599 107.042C172.757 106.887 171.888 107.006 171.119 107.382C170.378 107.774 169.788 108.399 169.439 109.162C169.302 109.46 169.093 109.72 168.832 109.918C168.57 110.117 168.264 110.248 167.939 110.3C167.615 110.352 167.283 110.323 166.973 110.216C166.662 110.11 166.383 109.928 166.159 109.688C165.886 109.398 165.706 109.032 165.642 108.639C165.577 108.245 165.632 107.842 165.799 107.48C166.525 105.915 167.749 104.635 169.279 103.84C170.817 103.043 172.574 102.775 174.279 103.08C175.441 103.28 176.542 103.744 177.496 104.438C178.45 105.132 179.231 106.036 179.779 107.08C180.214 107.959 180.453 108.922 180.481 109.902C180.508 110.883 180.324 111.858 179.939 112.76V112.742Z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M157.328 33H186.828",stroke:"#2D2C25",strokeWidth:"9",strokeLinecap:"round"})]})}),vL=(0,Ge.default)(qe.default).withConfig({displayName:"reschedule_banner__Backgroun
2637d",componentId:"sc-hq4ih-0"})(["background-color:#eff4f3;border-radius:12px;align-items:center;margin-bottom:24px;"]);const bL=function(e){return(0,X.jsx)(vL,{children:(0,X.jsxs)(Wu.default,Object.assign({width:"100%",height:void 0,viewBox:"0 0 343 178",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{aspectRatio:343/178,maxWidth:343}},e,{children:[(0,X.jsx)(Wu.Rect,{width:343,height:178,rx:12,fill:"#EFF4F3"}),(0,X.jsx)(Wu.Path,{d:"M190.059 27h-36.462c-28.646 0-42.976 0-51.872 8.897-8.897 8.896-8.897 23.226-8.897 51.872v121.539c0 28.646 0 42.964 8.897 51.872 8.896 8.909 23.226 8.897 51.872 8.897h36.462c28.647 0 42.964 0 51.873-8.897 8.896-8.908 8.896-23.226 8.896-51.872V87.769c0-28.646 0-42.976-8.896-51.872C233.023 27 218.706 27 190.059 27z",fill:"#EFF4F3",stroke:"#2D2C25",strokeWidth:12.0784,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M196.138 27h-48.615l6.077 12.154h36.461L196.138 27z",fill:"#fff",stroke:"#2D2C25",strokeWidth:12.0784,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M157.328 33h29.5",stroke:"#2D2C25",strokeWidth:9,strokeLinecap:"round"}),(0,X.jsx)(Wu.Rect,{x:131.828,y:74,width:79,height:79,rx:39.5,fill:"#DCEAE8"}),(0,X.jsx)(Wu.Path,{transform:"translate(159 96)",fill:"#fff",d:"M0 0H29V33H0z"}),(0,X.jsx)(Wu.Path,{d:"M172 88.833c-13.34 0-24.167 10.827-24.167 24.167 0 13.34 10.827 24.166 24.167 24.166 13.34 0 24.167-10.826 24.167-24.166S185.34 88.833 172 88.833zm2.199 39.029a1.2 1.2 0 01-.615.323 1.202 1.202 0 01-1.23-.506 1.207 1.207 0 01-.209-.663v-1.933H172a12.137 12.137 0 01-8.555-3.528 12.088 12.088 0 01-2.755-12.809c.459-1.232 2.078-1.546 2.997-.604.531.532.652 1.305.411 1.982-1.112 2.997-.484 6.477 1.933 8.893 1.692 1.692 3.915 2.489 6.138 2.441v-2.272c0-1.087 1.305-1.619 2.054-.845l3.915 3.915a1.194 1.194 0 010 1.715l-3.939 3.891zm6.114-9.981a1.893 1.893 0 01-.494-.931 1.89 1.89 0 01.084-1.05c1.111-2.997.483-6.477-1.934-8.894a8.37 8.37 0 00-6.114-2.465v2.272c0 1.088-1.305 1.619-2.054.846l-3.939-3.891a1.195 1.195 0 010-1.716l3.915-3.915a1.206 1.206 0 011.845.184c.133.195.206.425.209.662v1.958c3.142-.049 6.307 1.087 8.7 3.504a12.085 12.085 0 012.755 12.808c-.459 1.257-2.054 1.571-2.973.628z",fill:"#5C8E85"})]}))})},wL=()=>(0,X.jsx)(bL,{width:"100%",height:void 0,aspectRatio:1.938}),CL=["title"],jL=["title"],IL=(0,Ge.default)(qe.default).withConfig({displayName:"generic_modal_content_v2__Wrapper",componentId:"sc-k2si8y-0"})(["flex-grow:1;flex-shrink:1;"]),TL=(0,Ge.default)(Vf.default).withConfig({displayName:"generic_modal_content_v2__ScrollContainer",componentId:"sc-k2si8y-1"})([""]),EL=(0,Ge.default)(qe.default).withConfig({displayName:"generic_modal_content_v2__StaticContainer",componentId:"sc-k2si8y-2"})(["justify-content:space-between;gap:24px;flex-grow:1;height:100%;"]),NL=(0,Ge.default)(Be.default).withConfig({displayName:"generic_modal_content_v2__Title",componentId:"sc-k2si8y-3"})(["color:",";font-weight:700;font-size:18px;margin-bottom:8px;"],Qe.TEXT_DARK),kL=(0,Ge.default)(Be.default).withConfig({displayName:"generic_modal_content_v2__Description",componentId:"sc-k2si8y-4"})(["color:",";font-weight:400;font-size:14px;margin-bottom:16px;"],Qe.GRAY_0),RL=(0,Ge.default)(qe.default).withConfig({displayName:"generic_modal_content_v2__ButtonGroup",componentId:"sc-k2si8y-5"})(["width:100%;flex-direction:",";justify-content:space-evenly;align-items:center;gap:12px;"],({isDesktop:e})=>e?"row":"column"),SL=(0,Ge.default)(ms).withConfig({displayName:"generic_modal_content_v2__StyledButton",componentId:"sc-k2si8y-6"})(["",""],({isDesktop:e})=>e?"flex: 1;":"width: 100%;"),AL="warning",PL="check",DL="success",ML="failed",OL="question",zL="reschedule",LL={[AL]:uL,[PL]:mL,[DL]:gL,[ML]:_L,[OL]:yL,[zL]:wL},qL=({testID:e,title:t,description:n,bannerComponent:i,children:o,viewTrackingProps:a,primaryButton:s={},secondaryButton:r={},hasFixedFooter:l=!1,scrollViewRef:d})=>{const{isDesktop:c}=uu(),u=ft(),p="string"===typeof i?LL[i]:()=>i||null,{title:m}=s,f=(0,A.default)(s,CL),{title:g}=r,h=(0,A.default)(r,jL);(0,K.useEffect)(()=>{a&&u(Object.assign({action:Xa.view},a,{properties:a.properties??{}}))},[]);const _=l?EL:TL,x=l?{}:{ref:d,contentContainerStyle:{justifyContent:"space-between",gap:24,flexGrow:1,paddingBottom:0},keyboardShouldPersistTaps:"handled",keyboardDismissMode:"on-drag"},y=l?Vf.default:qe.default;return(0,X.jsx)(IL,{children:(0,X.jsxs)(_,Object.assign({testID:e,hasFixedFooter:l},x,{children:[(0,X.jsxs)(y,{overScrollMode:"never",bounces:!1,children:[(0,X.jsx)(p,{}),t&&(0,X.jsx)(NL,{children:t}),n&&(0,X.jsx)(kL,{children:n}),o]}),(0,X.jsxs)(RL,{isDesktop:c,children:[m&&(0,X.jsx)(SL,Object.assign({isDesktop:c},f,{children:m})),g&&(0,X.jsx)(SL,Object.assign({textColor:Qe.GRAY_0,variant:"secondary",borderColor:Qe.GRAY_3,isDesktop:c},h,{children:g}))]})]}))})},BL=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_with_customer_modal__Divider",componentId:"sc-dpfi7l-0"}
2637)(["height:1px;background-color:",";margin-top:34px;"],Qe.GRAY_4),GL=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_with_customer_modal__Container",componentId:"sc-dpfi7l-1"})(["flex-grow:1;flex-shrink:1;padding:24px 16px 20px 16px;"]);const UL=function({isOpen:e,onClose:t,onConfirm:n,customerName:i,relationshipId:o,i18nNamespace:a,testIDPrefix:s,trackingUserFlow:r,trackingProperties:l}){const d=(0,Ks.useHistory)();return(0,X.jsxs)(zw,{isOpen:e,onClose:t,displayCloseButton:!0,size:"fit",testID:s,children:[(0,X.jsx)(BL,{}),(0,X.jsx)(GL,{children:(0,X.jsx)(qL,{testID:`${s}:content`,title:i18n.t(`${a}.confirmation_modal.title`,{customerName:i}),description:i18n.t(`${a}.confirmation_modal.description`),bannerComponent:PL,primaryButton:{title:i18n.t(`${a}.confirmation_modal.contact_customer_cta`),testID:`${s}:contactCustomer`,onPress:()=>d.push(Wi(o)),trackingUserFlow:r,trackingObjectName:"contact customer",trackingProperties:l},secondaryButton:{title:i18n.t(`${a}.confirmation_modal.confirmed_cta`),testID:`${s}:confirmedWithCustomer`,onPress:n,trackingUserFlow:r,trackingObjectName:"confirmed with customer",trackingProperties:l},viewTrackingProps:{userFlow:r,objectName:"did you confirm with customer",properties:l}})})]})},$L=(0,Ge.default)(ms).withConfig({displayName:"cta__ModifyEventButton",componentId:"sc-1vlc639-0"})(["margin-top:8px;margin-bottom:8px;"]),FL=(0,Ge.default)(qe.default).withConfig({displayName:"cta__Information",componentId:"sc-1vlc639-1"})(["margin-bottom:20px;margin-top:10px;flex:1;"]),HL=(0,Ge.default)(Be.default).withConfig({displayName:"cta__InformationText",componentId:"sc-1vlc639-2"})(["color:",";font-size:16px;font-weight:300;text-align:center;line-height:20px;"],Qe.TEXT_DARK);const WL=function({eventId:e,amendable:t,customerName:n,relationshipId:i,variant:o,copy:a=i18n.t("event.modify_event.cta_text")}){const s=(0,Ks.useHistory)(),[r,l]=(0,K.useState)(!1),d=()=>l(!1);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)($L,{disableWhenOffline:!0,onPress:()=>l(!0),eventAction:"modify event",stretched:!0,testID:"cta-modify-event",variant:o,children:a}),t?(0,X.jsx)(UL,{isOpen:r,onClose:d,onConfirm:()=>s.push(ki(e)),customerName:n,relationshipId:i,i18nNamespace:"event_provider_amendment",testIDPrefix:"event:reschedule:confirmation",trackingUserFlow:Ua,trackingProperties:{eventId:e}}):(0,X.jsx)(dL,{isOpen:r,purposeText:i18n.t("event.modify_event.amendable.modal_purpose"),onClose:d,hideConfirm:!0,children:(0,X.jsx)(FL,{children:(0,X.jsx)(HL,{children:i18n.t("event.modify_event.not_amendable.modal_subtitle")})})})]})},VL=e=>{const t=C.DateTime.now(),n=e.startOf("week"),i=e.endOf("week");return{fromDay:(n<=t&&t<=i?t.endOf("hour"):n).toISO(),untilDay:i.toISO()}},KL=_t.gql`
2638  mutation deleteEvent($eventId: ID!, $reasonCode: String!, $reasonExternal: String!) {
2639    cancelEvent(eventId: $eventId, reasonCode: $reasonCode, reasonExternal: $reasonExternal) {
2640      success
2641    }
2642  }
2643`,YL=_t.gql`
2644  mutation cancelRelationship(
2645    $relationshipId: ID!
2646    $reasonCode: String!
2647    $reasonExternal: String!
2648    $eventCategories: [String]
2649    $supportTipIntent: Boolean
2650    $lastLiveFutureEventId: ID
2651  ) {
2652    cancelRelationship(
2653      relationshipId: $relationshipId
2654      reasonCode: $reasonCode
2655      reasonExternal: $reasonExternal
2656      eventCategories: $eventCategories
2657      supportTipIntent: $supportTipIntent
2658      lastLiveFutureEventId: $lastLiveFutureEventId
2659    ) {
2660      success
2661    }
2662  }
2663`,XL=_t.gql`
2664  query legacyInvoices($id: ID!) {
2665    currentProvider {
2666      id
2667      event(id: $id) {
2668        id
2669        legacyInvoices {
2670          path
2671          type
2672        }
2673      }
2674    }
2675  }
2676`,ZL=_t.gql`
2677  query eventCancellationReasonCodes {
2678    currentProvider {
2679      id
2680      eventCancellationReasonCodes
2681    }
2682  }
2683`,QL=()=>{var e;const{data:t,error:n,loading:i}=(0,Is.useQuery)(ZL,{});return{reasonCodes:(null===t||void 0===t||null===(e=t.currentProvider)||void 0===e?void 0:e.eventCancellationReasonCodes)||[],loading:i,error:n}},JL=xt`
2684  query eventCancellationReasonCodesExperiment($id: ID!) {
2685    event(id: $id) {
2686      id
2687      cancellationReasonCodes
2688    }
2689  }
2690`,eq=_t.gql`
2691  query relationshipCancellationReasonCodes {
2692    currentProvider {
2693      id
2694      relationshipCancellationReasonCodes
2695    }
2696  }
2697`,tq=()=>{var e;const{data:t,error:n,loading:i}=(0,Is.useQuery)(eq);return{reasonCodes:(null===t||void 0===t||null===(e=t.currentProvider)||void 0===e?void 0:e.relationshipCancellationReasonCodes)||[],loading:i,error:n}},nq=xt`
2698  query relationshipCancellationReasonCodesExperiment($id: ID!) {
2699    event(id: $id) {
2700      relationshipReasonCodes
2701    }
2702  }
2703`,iq=xt`
2704  mutation createEventProviderAmendmentFromTimeSlot($eventId: ID!, $slot: EventProviderAmendmentTimeSlotInput!) {
2705    createEventProviderAmendmentFromTimeSlot(eventId: $eventId, slot: $slot) {
2706      success
2707      errors {
2708        code
2709        message
2710        path
2711      }
2712    }
2713  }
2714`,oq=xt`
2715  query eventProviderAmendmentAvailableSlots($eventId: ID!, $duration: Int!, $fromDay: DateTime!, $untilDay: DateTime!) {
2716    eventProviderAmendmentAvailableSlots(
2717      eventId: $eventId
2718      duration: $duration
2719      fromDay: $fromDay
2720      untilDay: $untilDay
2721    ) {
2722      date
2723      slots {
2724        startTime
2725        endTime
2726      }
2727    }
2728  }
2729`,aq=({eventId:e,duration:t,startTime:n,enabled:i=!0})=>{var o;const[a,s]=(0,K.useState)(),[r,l]=(0,K.useState)(),[d,c]=(0,K.useState)(),u=(0,K.useRef)(void 0),{fetchAvailableSlots:p,availableSlotsByDay:m,loading:f,error:g}=(()=>{const[e,{data:t,loading:n,error:i}]=(0,kn.useLazyQuery)(oq,{fetchPolicy:"network-only"});return{fetchAvailableSlots:({eventId:t,duration:n,fromDay:i,untilDay:o})=>e({context:{apiVersion:3},variables:{eventId:t,duration:n,fromDay:i,untilDay:o}}),availableSlotsByDay:(null===t||void 0===t?void 0:t.eventProviderAmendmentAvailableSlots)||[],loading:n,error:i}})(),h=n?C.DateTime.fromISO(n):void 0,_=a||h||C.DateTime.now(),x=n=>{if(!e||!t)return;const{fromDay:i,untilDay:o}=VL(n);p({eventId:e,duration:t,fromDay:i,untilDay:o})},y=()=>
2729{l(void 0),c(void 0),x(_)},v=i&&e&&t?`${e}:${t}`:void 0;(0,K.useEffect)(()=>{v&&u.current!==v&&(u.current=v,y())},[v]);const b=m.filter(e=>e.slots.length>0).map(e=>({date:e.date})),w=r&&(null===(o=m.find(e=>e.date===r))||void 0===o?void 0:o.slots)||[];return{handleWeekChange:e=>{s(e),l(void 0),c(void 0),x(e)},handleDaySelect:e=>{l(e),c(void 0)},handleSlotSelect:e=>{c(e.startTime===(null===d||void 0===d?void 0:d.startTime)?void 0:e)},refresh:y,selectedDay:r,selectedSlot:d,availableDays:b,slots:w,currentDate:_.toISO(),loading:f,error:g}},sq=(0,Ge.default)(qe.default).withConfig({displayName:"legacy_invoices__Section",componentId:"sc-1y5zbz1-0"})(["margin:12px 0;"]),rq=(0,Ge.default)(Be.default).withConfig({displayName:"legacy_invoices__Title",componentId:"sc-1y5zbz1-1"})(["font-weight:600;font-size:18px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),lq=(0,Ge.default)(ts).withConfig({displayName:"legacy_invoices__LegacyInvoiceItem",componentId:"sc-1y5zbz1-2"})(["display:flex;flex-direction:row;justify-content:space-between;border:0px solid ",";border-bottom-width:1px;padding:5px 0px;"],Qe.GRAY_4);const dq=function({eventId:e}){const{legacyInvoices:t}=(e=>{var t,n;const{data:i,error:o,loading:a}=(0,Is.useQuery)(XL,{variables:{id:e}});return{legacyInvoices:null===i||void 0===i||null===(t=i.currentProvider)||void 0===t||null===(n=t.event)||void 0===n?void 0:n.legacyInvoices,loading:a,error:o}})(e);return null!==t&&void 0!==t&&t.length?(0,X.jsxs)(sq,{children:[(0,X.jsx)(rq,{children:i18n.t("event.sections.invoices.title",{defaultValue:"Invoices"})}),null===t||void 0===t?void 0:t.map(({type:e,path:t},n)=>(0,X.jsxs)(lq,{onPress:()=>(e=>ru(vi(e)))(t),eventAction:"load pdf",eventLabel:"from invoices",children:[(0,X.jsx)(Be.default,{children:e}),(0,X.jsx)(Pa.default,{name:"file-link-outline",set:"MaterialCommunityIcons",color:Qe.TEXT_DARK})]},n))]}):null},cq="step_confirmation",uq="step_reliability_warning",pq="step_pec_guidelines",mq="step_stc_guidelines",fq="step_select_reason",gq="step_fee_warning",hq="step_success",_q="step_failed",xq="step_reschedule_over_cancel";const yq=function({relationshipId:e,eventId:t,onConfirm:n,customerName:i,showShortNoticeInfo:o,loading:a}){const s=(0,Ks.useHistory)();return(0,X.jsx)(qL,{testID:"event:cancel:customerConfirmation",title:i18n.t("event.cancel_v2.customer.confirmation.title",{customerName:i}),description:i18n.t("event.cancel_v2.customer.confirmation.description"),bannerComponent:PL,primaryButton:{title:i18n.t("event.cancel_v2.customer.confirmation.contact_customer"),testID:"event:cancel:customerConfirmation:contactCustomer",onPress:()=>{s.push(Wi(e))},trackingUserFlow:Ga,trackingObjectName:"contact customer",trackingProperties:{eventId:t}},secondaryButton:{title:i18n.t("event.cancel_v2.customer.confirmation.confirmed_with_customer"),testID:"event:cancel:customerConfirmation:confirmedWithCustomer",onPress:n,disabled:a,trackingUserFlow:Ga,trackingObjectName:"yes confirmed with customer",trackingProperties:{eventId:t}},viewTrackingProps:{userFlow:Ga,objectName:"did you confirm with customer",properties:{eventId:t}},children:o&&(0,X.jsx)(kL,{children:i18n.t("event.cancel_v2.customer.confirmation.short_notice_disclaimer")})})},vq=(0,Ge.default)(Aa.default).withConfig({displayName:"action_group__Spinner",componentId:"sc-87nisz-0"})(["margin-top:20px;"]),bq=(0,Ge.default)(qe.default).withConfig({displayName:"action_group__DividerContainer",componentId:"sc-87nisz-1"})(["flex-direction:row;align-items:center;margin-top:40px;"]),wq=(0,Ge.default)(qe.default).withConfig({displayName:"action_group__Divider",componentId:"sc-87nisz-2"})(["flex:1;height:2px;background-color:",";"],Qe.GRAY_2),Cq=(0,Ge.default)(Be.default).withConfig({displayName:"action_group__DividerTitle",componentId:"sc-87nisz-3"})(["width:195px;font-weight:700;font-size:14px;text-align:center;"]),jq=(0,Ge.default)(qe.default).withConfig({displayName:"action_group__ButtonGroup",componentId:"sc-87nisz-4"})(["",""],({horizontal:e})=>e?"flex-direction: row":"\n  margin-top: 25px;\n  margin-bottom: 15px;\n  justify-content: space-between;\n  align-self: center;\n  "),Iq=(0,Ge.default)(ms).withConfig({displayName:"action_group__CustomButton",componentId:"sc-87nisz-5"})(["",""],({horizontal:e})=>e&&"flex: 1;");function Tq({loading:e=!1,showContinueTitle:t="",primaryButtonTitle:n,primaryButtonClick:i,primaryButtonEventAction:o,primaryButtonEventLabel:a,primaryButtonDisabled:s,primaryButtonTestID:r,secondaryButtonTitle:l,secondaryButtonClick:d,secondaryButtonEventAction:c,secondaryButtonEventLabel:u,secondaryButtonDisabled:p,secondaryButtonTestID:m,horizontal:f}){const{isConnected:g}=(0,ta.useNetInfo)();return(0,X.jsxs)(X.Fragment,{children:[!!t&&(0,X.jsxs)(bq,{children:[(0,X.jsx)(wq,{}),(0,X.jsx)(Cq,{children:t}),(0,X.jsx)(wq,{})]}),e&&(0,X.jsx)(vq,{color:Qe.GREEN_SUMMER_GRASS}),(0,X.jsxs)(jq,{horizontal:f,children:[(0,X.jsx)(Iq,{horizontal:f,testID:r,onPress:i,disabled:e||s||!g,eventAction:o,eventLabel:a,children:n||i18n.t("shared.action_group.cta_yes")}),l&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(qe.default,{style:f?{paddingHorizontal:4}:{paddingVertical:3}}),(0,X.jsx)(Iq,{horizontal:f,testID:m,onPress:d,eventAction:c,eventLabel:u,disabled:e||p,variant:"secondary",children:l||i18n.t("shared.action_group.cta_no")})]})]})]})}Tq.propTypes={loading:qc.default.bool,showContinueTitle:qc.default.string,primaryButtonTitle:qc.default.string,primaryButtonClick:qc.default.func,primaryButtonEventAction:qc.default.string,primaryButtonEventLabel:qc.default.string,primaryButtonDisabled:qc.default.bool,primaryButtonTestID:qc.default.string,secondaryButtonTitle:qc.default.string,secondaryButtonClick:qc.default.func,secondaryButtonEventAction:qc.default.string,secondaryButtonEventLabel:qc.default.string,secondaryButtonDisabled:qc.default.bool,secondaryButtonTestID:qc.default.string,horizontal:qc.default.bool};const Eq=Tq;var Nq=n(57838);const kq=(0,Ge.default)(Nq.SafeAreaView).withConfig({displayName:"generic_modal_content__Container",componentId:"sc-oh1y72-0"})(["flex:1;"]),Rq=(0,Ge.default)(Vf.default).withConfig({displayName:"generic_modal_content__Content",componentId:"sc-oh1y72-1"})(["padding:0 0 24px;"]),Sq=(0,Ge.default)(Be.default).withConfig({displayName:"generic_modal_content__Title",componentId:"sc-oh1y72-2"})(["font-weight:600;font-size:20px;color:",";text-align:center;margin-bottom:32px;
2729"],Qe.GRAY_0),Aq=(0,Ge.default)(qe.default).withConfig({displayName:"generic_modal_content__IconContainer",componentId:"sc-oh1y72-3"})(["display:flex;align-items:center;"]),Pq=(0,Ge.default)(Be.default).withConfig({displayName:"generic_modal_content__Description",componentId:"sc-oh1y72-4"})(["font-size:15px;color:",";text-align:center;font-weight:400;margin-top:40px;margin-bottom:20px;"],Qe.GRAY_1),Dq=(0,Ge.default)(Be.default).withConfig({displayName:"generic_modal_content__Warning",componentId:"sc-oh1y72-5"})(["margin-top:35px;text-align:center;color:",";"],Qe.GRAY_1),Mq=({testID:e,title:t,icon:n,description:i,children:o,primaryButtonTitle:a,primaryButtonClick:s,primaryButtonEventAction:r,primaryButtonEventLabel:l,primaryButtonDisabled:d,primaryButtonTestID:c,secondaryButtonTitle:u,secondaryButtonClick:p,secondaryButtonEventAction:m,secondaryButtonEventLabel:f,secondaryButtonDisabled:g,secondaryButtonTestID:h,horizontalActionGroup:_,loading:x,warning:y,showContinueTitle:v})=>(0,X.jsxs)(kq,{children:[(0,X.jsxs)(Rq,{testID:e,contentContainerStyle:{flexGrow:1},children:[t&&(0,X.jsx)(Sq,{children:t}),n&&(0,X.jsx)(Aq,{children:n}),!!i&&(0,X.jsx)(Pq,{children:i}),o]}),y&&"string"===typeof y?(0,X.jsx)(Dq,{children:y}):y,(0,X.jsx)(Eq,{primaryButtonTitle:a,primaryButtonClick:s,primaryButtonEventAction:r,primaryButtonEventLabel:l,primaryButtonDisabled:d,primaryButtonTestID:c,secondaryButtonTitle:u,secondaryButtonClick:p,secondaryButtonEventAction:m,secondaryButtonEventLabel:f,secondaryButtonDisabled:g,secondaryButtonTestID:h,loading:x,showContinueTitle:v,horizontal:_})]}),Oq=(0,Ge.default)(Be.default).withConfig({displayName:"fee_warning__Heading",componentId:"sc-c1quf8-0"})(["font-weight:600;font-size:20px;text-align:center;line-height:36px;padding-bottom:60px;color:",";"],Qe.TEXT_DARK),zq=(0,Ge.default)(Be.default).withConfig({displayName:"fee_warning__Paragraph",componentId:"sc-c1quf8-1"})(["font-size:13px;line-height:16px;text-align:center;color:",";"],Qe.GRAY_1);const Lq=function({disableSubmit:e,onConfirm:t,event:n,trackingProps:i}){const{isConnected:o}=(0,ta.useNetInfo)(),{autoTrackEnhanced:a}=mt(),s=ft(),[r,l]=(0,K.useState)(null);(0,K.useEffect)(()=>{s({userFlow:Ga,action:Xa.view,objectName:"short notice fee",properties:i})},[]),(0,K.useEffect)(()=>{const e=n.cancellationFee;l(e)},[n.details.startTime]);const d=e||!o;return(0,X.jsx)(Mq,{testID:"event:cancel:feeWarning",primaryButtonTitle:i18n.t("event.cancel.fee.warning.confirmation"),primaryButtonClick:()=>{a({userFlow:Ga,action:Xa.click,objectName:"I understand on short notice fee",properties:i}),t()},primaryButtonDisabled:d,primaryButtonTestID:"event:cancel:feeWarning:confirm",children:(null===r||void 0===r?void 0:r.amount)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Oq,{children:"0"===r.hour?i18n.t("event.cancel.fee.warning.0hs.title"):i18n.t("event.cancel.fee.warning.without.hours.title",{amount:r.amount})}),(0,X.jsx)(zq,{children:"0"===r.hour?i18n.t("event.cancel.fee.warning.0hs.description"):i18n.t("event.cancel.fee.warning.description",{hour:r.hour,amount:r.amount})})]})})};const qq=function({success:e,onClose:t,customerName:n,eventDate:i,trackingProps:o}){const a=ft(),s=e?"success":"failed",r=`event.cancel_v2.result.${s}`;return(0,K.useEffect)(()=>{e&&a({userFlow:Ga,action:Xa.complete,objectName:"event cancellation",properties:o})},[]),(0,X.jsx)(qL,{testID:`event:cancel:result:${s}`,title:i18n.t(`${r}.title`,{eventDate:i,customerName:n}),description:i18n.lookup(`${r}.description`),bannerComponent:e?DL:ML,primaryButton:{title:i18n.t(`${r}.confirm_cta`),testID:`event:cancel:result:${s}:confirm`,onPress:t,trackingUserFlow:Ga,trackingObjectName:"confirm CTA on cancellation result",trackingProperties:Object.assign({result:s},o)},viewTrackingProps:e?null:{userFlow:Ga,objectName:"cancellation failed",properties:o}})},Bq=(0,Ge.default)(ts).withConfig({displayName:"radio_button__Container",componentId:"sc-8q79ek-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:10px 0;gap:8px;"]),Gq=(0,Ge.default)(rf.default).withConfig({displayName:"radio_button__ItemText",componentId:"sc-8q79ek-1"})(["font-weight:400;font-size:16px;color:",";flex:1;align-self:baseline;"],Qe.TEXT_DARK),Uq=(0,Ge.default)(qe.default).withConfig({displayName:"radio_button__InlineCircle",componentId:"sc-8q79ek-2"})(["width:20px;height:20px;border-radius:20px;border-width:2px;border-color:",";align-items:center;justify-content:center;"],({$color:e=Qe.GRAY_1})=>e),$q=(0,Ge.default)(qe.default).withConfig({displayName:"radio_button__InlineCircleSelected",componentId:"sc-8q79ek-3"})(["width:20px;height:20px;border-width:6px;border-radius:14px;border-color:",";"],({$selectedColor:e=Qe.VIOLET_1})=>e);function Fq({item:e,selected:t,onSelected:n,testID:i,color:o=Qe.GRAY_1,selectedColor:a=Qe.VIOLET_1}){return(0,X.jsxs)(Bq,{testID:i,onPress:()=>n(e),children:[(0,X.jsx)(Gq,{children:e.value}),t===e.id?(0,X.jsx)($q,{$selectedColor:a}):(0,X.jsx)(Uq,{$color:o})]})}Fq.propTypes={item:qc.default.object,selected:qc.default.string,onSelected:qc.default.func,testID:qc.default.string,color:qc.default.string,selectedColor:qc.default.string};const Hq=Fq;function Wq({items:e,selected:t,onSelected:n,testIDPrefix:i,color:o=Qe.GRAY_1,selectedColor:a=Qe.VIOLET_1}){return e.map(e=>(0,X.jsx)(Hq,{testID:`${i}:${e.id}`,item:e,selected:t,onSelected:n,color:o,selectedColor:a},e.id))}Wq.propTypes={items:qc.default.array,selected:qc.default.string,onSelected:qc.default.func,testIDPrefix:qc.default.string.isRequired,color:qc.default.string,selectedColor:qc.default.string};const Vq=Wq,Kq={DEACTIVATE_ACCOUNT:"deactivate_account",RELATIONSHIP_CANCELLATION:"relationship_cancellation",EVENT_CANCELLATION:"event_cancellation"},Yq=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection__Container",componentId:"sc-zrzf5b-0"})(["flex:1;justify-content:space-between;",";"],!1),Xq=(0,Ge.default)(rf.default).withConfig({displayName:"reason_selection__Heading",componentId:"sc-zrzf5b-1"})(["font-weight:600;font-size:18px;padding-bottom:20px;text-align:",";color:",";"],({$center:e})=>e?"center":"left",Qe.TEXT_DARK),Zq=(0,Ge.default)(rf.default).withConfig({displayName:"reason_selection__Paragraph",componentId:"sc-zrzf5b-2"})(["font-size:13px;line-height:16px;text-align:center;color:",";margin-bottom:12px;"],Qe.GRAY_1),Qq=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection__ReasonContainer",componentId:"sc-zrzf5b-3"})(["margin-bottom:10px;"]),Jq=(0,Ge.default)(Uc.default).attrs({placeholderTextColor:Qe.GRAY_2,textAlignVertical:void 0}).withConfig({displayName:"reason_selection__ReasonInput",componentId:"sc-zrzf5b-4"})(["border:",";padding:12px;border-radius:8px;font-size:","px;color:",";outline-style:none;margin-bottom:12px;
2729",""],({invalidInput:e})=>e?`1px solid ${Qe.CRIMSON_1}`:`1px solid ${Qe.GRAY_BORDER}`,13,Qe.TEXT_DARK,({numberOfLines:e})=>""),eB=(0,Ge.default)(ms).withConfig({displayName:"reason_selection__SecondaryButton",componentId:"sc-zrzf5b-5"})(["margin-top:8px;"]),tB=(0,Ge.default)(rf.default).withConfig({displayName:"reason_selection__Label",componentId:"sc-zrzf5b-6"})(["color:",";margin:12px 0;font-size:14px;font-weight:600;"],Qe.TEXT_DARK),nB=(0,Ge.default)(rf.default).withConfig({displayName:"reason_selection__ErrorText",componentId:"sc-zrzf5b-7"})(["font-size:14px;margin-left:10px;margin-bottom:20px;color:",";"],Qe.CRIMSON_1);const iB=function({type:e,disableSubmit:t,onConfirm:n,onClose:i,useCancellationCodes:o,otherReasonCode:a,heading:s,relatedObjectId:r}){const{analytics:{autoTrack:l,autoTrackEnhanced:d}}=lt(),{isConnected:c}=(0,ta.useNetInfo)(),[u,p]=(0,K.useState)({reasonCode:"",comment:""}),[m,f]=(0,K.useState)(!1),g=(0,K.useRef)(null),h=e===Kq.DEACTIVATE_ACCOUNT,_=e===Kq.RELATIONSHIP_CANCELLATION,x=[Kq.EVENT_CANCELLATION,Kq.RELATIONSHIP_CANCELLATION].includes(e),y=_?"relationshipId":"eventId",{reasonCodes:v,loading:b}=o(),w=(0,K.useMemo)(()=>v.map(t=>({id:t,value:i18n.t(`${e}.reason_selection.reason_code.${h?t.toLowerCase().replace(/[&/\\#,+()$~%.'":*?<>{}]/g,"").replace(/ /g,"_"):t}`)})),[v]),C=u.reasonCode===a||h,j=!u.reasonCode||C&&!u.comment||t||!c||h&&m,I=(0,K.useMemo)(()=>x?{trackingUserFlow:_?Fa:Ga,trackingObjectName:"cancel appointment on reasons choice",trackingProperties:{[y]:r,reasonCode:u.reasonCode}}:{eventAction:`save ${e} selected reason`,eventLabel:`reason: ${JSON.stringify(u)}`},[e,u.reasonCode,u.comment,r,x,_]),T=(0,K.useMemo)(()=>x?{trackingUserFlow:_?Fa:Ga,trackingObjectName:"keep appointment on reasons choice",trackingProperties:{[y]:r}}:{eventAction:h?"cancel account deactivation":"keep event"},[e,r,h,x]);return(0,K.useEffect)(()=>{x&&d({userFlow:_?Fa:Ga,action:Xa.view,objectName:"reasons choice",properties:{[y]:r}})},[]),(0,X.jsx)(Ae.KeyboardAvoidingView,{style:{flex:1},keyboardVerticalOffset:void 0,behavior:"padding",enabled:!0,children:(0,X.jsx)(Vf.default,{ref:g,contentContainerStyle:{flexGrow:1,paddingBottom:100},keyboardShouldPersistTaps:"handled",keyboardDismissMode:"on-drag",children:(0,X.jsxs)(Yq,{children:[b&&(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS}),!b&&w&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(qe.default,{style:{flexGrow:1},children:[!h&&(0,X.jsx)(yL,{}),(0,X.jsx)(Xq,{$center:h,children:s}),h&&(0,X.jsx)(Zq,{children:i18n.t(`${e}.reason_selection.description`)}),(0,X.jsxs)(Qq,{children:[(0,X.jsx)(Vq,{selected:u.reasonCode,onSelected:t=>{x?d({userFlow:_?Fa:Ga,action:Xa.click,objectName:"a reason",properties:{reasonCode:t.id,[y]:r}}):l("Resolution center - Provider selects reason for resolution",`on reason selection - type: ${e} - reason: ${t.value} - reasonCode: ${t.id}`),p({reasonLabel:t.value,reasonCode:t.id,comment:h||t.id===u.reasonCode?u.comment:""})},items:w,selectedColor:Qe.GREEN_SUMMER_GRASS,testIDPrefix:"reasonSelection:reason"}),(C||_||h)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(tB,{children:i18n.t(`${e}.reason_selection.input_label`)}),(0,X.jsx)(Jq,{onChangeText:e=>{h&&f(!tc(e)),p(Object.assign({},u,{comment:e}))},onFocus:()=>{g.current},multiline:!0,numberOfLines:3,placeholder:i18n.t(`${e}.reason_selection.input.placeholder`),value:u.comment,invalidInput:m})]})]}),m&&(0,X.jsx)(nB,{children:i18n.t("deactivate_account.reason_selection.invalid_input_error")})]}),(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(ms,Object.assign({testID:"reasonSelection:cta_yes",onPress:()=>n(_&&u.reasonCode!==a?{reasonCode:u.reasonCode,comment:u.comment||i18n.t(`${e}.reason_selection.reason_code.${u.reasonCode}`)}:u),disabled:j,stretched:!0},I,{children:i18n.t(`${e}.reason_selection.cta_yes`)})),(0,X.jsx)(eB,Object.assign({testID:"reasonSelection:cta_no",onPress:i,variant:"secondary",stretched:!0},T,{children:i18n.t(`${e}.reason_selection.cta_no`)}))]})]})]})})})},oB=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection_v2__Content",componentId:"sc-1vepm1w-0"})([""]),aB=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection_v2__ReasonContainer",componentId:"sc-1vepm1w-1"})(["margin-bottom:16px;"]),sB=(0,Ge.default)(Be.default).withConfig({displayName:"reason_selection_v2__Label",componentId:"sc-1vepm1w-2"})(["color:",";margin-bottom:8px;font-size:16px;font-weight:600;
2729"],Qe.GRAY_0),rB=(0,Ge.default)(Uc.default).withConfig({displayName:"reason_selection_v2__NotesInput",componentId:"sc-1vepm1w-3"})(["border:1px solid ",";text-align-vertical:top;padding:12px;border-radius:8px;font-weight:400;font-size:14px;min-height:80px;"],Qe.GRAY_BORDER),lB=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection_v2__LoadingContainer",componentId:"sc-1vepm1w-4"})(["flex:1;justify-content:center;align-items:center;"]),dB=({relatedObjectId:e,onConfirm:t,disableSubmit:n,type:i,title:o,useCancellationCodes:a})=>{const{analytics:{autoTrackEnhanced:s}}=lt(),[r,l]=(0,K.useState)(""),[d,c]=(0,K.useState)(""),u=(0,K.useRef)(null),p=i===Kq.RELATIONSHIP_CANCELLATION,m=p?"relationshipId":"eventId",{reasonCodes:f,loading:g}=a(),h=(0,K.useMemo)(()=>f.map(e=>({id:e,value:i18n.t(`${i}.reason_selection_v2.reason_code.${e}`)})),[f,i]),_=!r||!d.trim()||n;return g?(0,X.jsx)(lB,{children:(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS})}):(0,X.jsx)(Ae.KeyboardAvoidingView,{style:{flex:1},keyboardVerticalOffset:void 0,behavior:"padding",enabled:!0,children:(0,X.jsx)(qL,{bannerComponent:OL,testID:`${i}:reasonSelectionV2`,title:o,scrollViewRef:u,primaryButton:{title:i18n.t(`${i}.reason_selection_v2.cta_confirm`),testID:`${i}:reasonSelectionV2:confirm`,onPress:()=>{t({reasonCode:r,comment:d})},disabled:_,trackingUserFlow:p?Fa:Ga,trackingObjectName:"cancel appointment on reasons choice",trackingProperties:{[m]:e,reasonCode:r}},viewTrackingProps:{userFlow:p?Fa:Ga,objectName:"reasons choice",properties:{[m]:e}},children:(0,X.jsxs)(oB,{children:[(0,X.jsx)(aB,{children:(0,X.jsx)(Vq,{selected:r,onSelected:t=>{l(t.id),s({userFlow:p?Fa:Ga,action:Xa.click,objectName:"a reason",properties:{reasonCode:t.id,[m]:e}})},items:h,testIDPrefix:`${i}:reasonSelectionV2:reason`})}),(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(sB,{children:i18n.t(`${i}.reason_selection_v2.input.label`)}),(0,X.jsx)(rB,{onChangeText:c,onFocus:()=>{u.current,0},multiline:!0,numberOfLines:3,value:d,testID:`${i}:reasonSelectionV2:input`})]})]})})})},cB=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection__LoadingContainer",componentId:"sc-1ndn50o-0"})(["flex:1;justify-content:center;align-items:center;"]),uB=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection__ReasonSelectionContainer",componentId:"sc-1ndn50o-1"})(["padding-top:25px;flex:1;"]),pB=(0,Te.observer)(({event:e,disableSubmit:t,eventDate:n,customer:i,onConfirm:o,onClose:a})=>{const{session:{settings:s}}=lt(),[r,l]=(0,K.useState)(e.firstInRelationship),[d,c]=(0,K.useState)(!1);return(0,K.useEffect)(()=>{e.firstInRelationship&&(async()=>{try{await(null===s||void 0===s?void 0:s.assignProviderToEventCancellationReasonSelectionAbTest());const e=null===s||void 0===s?void 0:s.isProviderUnderEventCancellationReasonSelectionExperimentAbTest();c(!!e)}catch(ca){c(!1)}finally{l(!1)}})()},[e.firstInRelationship]),r?(0,X.jsx)(cB,{children:(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS})}):d?(0,X.jsx)(dB,{relatedObjectId:e.id,onConfirm:o,disableSubmit:t,title:i18n.t("event_cancellation.reason_selection_v2.title",{customer:i,eventDate:n}),type:Kq.EVENT_CANCELLATION,useCancellationCodes:()=>(e=>{var t;const{data:n,error:i,loading:o}=(0,Is.useQuery)(JL,{context:{apiVersion:3},variables:{id:e},skip:!e});return{reasonCodes:(null===n||void 0===n||null===(t=n.event)||void 0===t?void 0:t.cancellationReasonCodes)||[],loading:o,error:i}})(e.id)}):(0,X.jsx)(uB,{children:(0,X.jsx)(iB,{disableSubmit:t,onConfirm:o,onClose:a,useCancellationCodes:QL,otherReasonCode:"EC_99",heading:i18n.t("event.cancel.reason.selection.with.date.title",{customer:i,eventDate:n}),type:Kq.EVENT_CANCELLATION,relatedObjectId:e.id})})}),mB=(0,Ge.default)(lm).withConfig({displayName:"reliability_warning__Container",componentId:"sc-4nia15-0"})(["margin:25px 3px 3px 3px;padding:20px 16px;border-radius:12px;"]),fB=(0,Ge.default)(pu.default).attrs({source:n(78573)}).withConfig({displayName:"reliability_warning__ExclamationMark",componentId:"sc-4nia15-1"})(["width:40px;height:40px;align-self:center;margin-bottom:12px;"]),gB=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_warning__Paragraph",componentId:"sc-4nia15-2"})(["font-size:13px;line-height:16px;text-align:center;color:",";",";"],Qe.GRAY_1,({$paddingTop:e})=>e&&"padding-top: 16px;");const hB=function({relationshipId:e,eventId:t,onConfirm:n}){const i=(0,Ks.useHistory)(),{autoTrackEnhanced:o}=mt();return(0,K.useEffect)(()=>{o({userFlow:Ga,action:Xa.view,objectName:"reliability warning",properties:{eventId:t}})},[]),(0,X.jsx)(Mq,{testID:"event:cancel:reliabilityWarning",primaryButtonTitle:i18n.t("event.cancel.customer.confirmed.yes"),primaryButtonClick:()=>{o({userFlow:Ga,action:Xa.click,objectName:"confirms on reliability warning",properties:{eventId:t}}),n()},primaryButtonTestID:"event:cancel:reliabilityWarning:confirm",secondaryButtonTitle:i18n.t("event.cancel.customer.confirmed.contact.customer"),secondaryButtonClick:()=>{o({userFlow:Ga,action:Xa.click,objectName:"contact customer on reliability warning",properties:{eventId:t}}),i.push(Wi(e))},secondaryButtonTestID:"event:cancel:reliabilityWarning:contactCustomer",horizontalActionGroup:!0,children:(0,X.jsxs)(mB,{elevation:1,children:[(0,X.jsx)(fB,{}),(0,X.jsx)(gB,{$paddingTop:!0,children:i18n.t("event.cancel.customer.not.confirmed")})]})})},_B=()=>{const{session:{isSignedIn:e},toast:{showToastMessage:t},externalCalendar:{externalCalendarId:n}}=lt();return{unsyncEventByExternalCalendarEventId:async i=>{if(e&&n)try{const{status:e}=await Zs.getCalendarPermissionsAsync();if("granted"!==e)return;if(!await ur(n))return;await Zs.deleteEventAsync(i)}catch(ca){console.error("Calendar sync error:",ca),le(ca),t({message:i18n.t("connect_calendar.calender_sync.failed.sync_error")})}}}},xB=()=>(0,X.jsxs)(Wu.default,{width:21,height:20,viewBox:"0 0 21 20",fill:"none",children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2121)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M10.385.365c-.41 0-.811.105-1.16.303-.35.199-.634.483-.82.821l-.004.006-8.16 15.151a1.944 1.944 0 00.092 2.012c.2.3.477.549.809.72a2.36 2.36 0 001.083.264H18.55a2.36 2.36 0 001.082-.264c.33-.173.608-.42.806-.72a1.944 1.944 0 00.092-2.01v-.002L12.367 1.495l-.002-.006a2.136 2.136 0 00-.82-.82 2.355 2.355 0 00-1.16-.304z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M11.498 7.073a.997.997 0 00-.326-.73 1.157 1.157 0 00-.787-.303c-.295 0-.578.108-.787.302a.997.997 0 00-.326.73v4.478c0 .274.117.537.326.73.209.194.492.303.787.303.295 0 .578-.109.787-.303a.997.997 0 00.325-.73V7.073zm-1.113 9.643c.393 0 .77-.146 1.049-.404a1.33 1.33 0 00.434-.974 1.33 1.33 0 00-.434-.974 1.543 1.543 0 00-1.05-.404c-.393 0-.77.146-1.048.404a1.33 1.33 0 00-.435.974c0 .365.157.716.435.974s.655.404 1.049.404z",fill:"#723219"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2121",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(0 .357)",d:"M0 0H20.7693V19.2858H0z"})})})]}),yB=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Container",componentId:"sc-xemdqx-0"})(["background-color:#fbf4ee;padding:16px;border-radius:12px;flex-direction:row;align-items:center;gap:12px;margin-top:16px;"]),vB=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Content",componentId:"sc-xemdqx-1"})(["flex:1;"]),bB=(0,Ge.default)(Be.default).withConfig({displayName:"alert__Description",componentId:"sc-xemdqx-2"})(["font-weight:600;font-size:14px;color:",";"],Qe.TEXT_DARK),wB=(0,Ge.default)(Be.default).withConfig({displayName:"alert__GuidelinesLinkText",componentId:"sc-xemdqx-3"})(["font-weight:700;font-size:14px;color:#ff5713;text-decoration:underline;text-decoration-color:#ff5713;",""],""),CB=({eventId:e})=>{const{autoTrackEnhanced:t}=mt();return(0,X.jsxs)(yB,{children:[(0,X.jsx)(xB,{}),(0,X.jsx)(vB,{children:(0,X.jsxs)(bB,{children:[i18n.t("event.cancel_v2.pec_guidelines.alert.description"),(0,X.jsx)(wB,{onPress:()=>{t({userFlow:Ga,action:Xa.click,objectName:"PEC guidelines link",properties:{eventId:e}}),ru(i18n.t("event.cancel_v2.pec_guidelines.alert.link.url"),0,!0)},children:i18n.t("event.cancel_v2.pec_guidelines.alert.link.label")})]})})]})},jB=({eventId:e,onConfirm:t,onGoBack:n,loading:i})=>(0,X.jsx)(qL,{testID:"event:cancel:pecGuidelines",title:i18n.t("event.cancel_v2.pec_guidelines.title"),bannerComponent:AL,primaryButton:{title:i18n.t("event.cancel_v2.pec_guidelines.confirm_cta"),testID:"event:cancel:pecGuidelines:confirmCancellation",onPress:t,disabled:i,trackingUserFlow:Ga,trackingObjectName:"I still want to cancel",trackingProperties:{eventId:e}},secondaryButton:{title:i18n.t("event.cancel_v2.pec_guidelines.go_back_cta"),testID:"event:cancel:pecGuidelines:goBack",onPress:n,disabled:i,trackingUserFlow:Ga,trackingObjectName:"go back on you might be suspended",trackingProperties:{eventId:e}},viewTrackingProps:{userFlow:Ga,objectName:"you might be suspended",properties:{eventId:e}},children:(0,X.jsx)(CB,{eventId:e})});const IB=function({relationshipId:e,eventId:t,onContinueCancellation:n}){const i=(0,Ks.useHistory)(),o={eventId:t,relationshipId:e};return(0,X.jsx)(qL,{testID:"event:cancel:reschedule_over_cancel:event",title:i18n.t("event.cancel.reschedule_over_cancel.title"),description:i18n.t("event.cancel.reschedule_over_cancel.description"),bannerComponent:zL,primaryButton:{title:i18n.t("event.cancel.reschedule_over_cancel.reschedule_cta"),testID:"event:cancel:reschedule_over_cancel:event:reschedule",onPress:()=>{i.push(ki(t))},trackingUserFlow:Ga,trackingObjectName:"reschedule instead of cancel event",trackingProperties:o},secondaryButton:{title:i18n.t("event.cancel.reschedule_over_cancel.cancel_cta"),testID:"event:cancel:reschedule_over_cancel:event:cancel",onPress:n,trackingUserFlow:Ga,trackingObjectName:"continue with event cancellation",trackingProperties:o},viewTrackingProps:{userFlow:Ga,objectName:"event reschedule prompt shown",properties:o}})},TB=()=>(0,X.jsxs)(Wu.default,{width:21,height:20,viewBox:"0 0 21 20",fill:"none",children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2121)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M10.385.365c-.41 0-.811.105-1.16.303-.35.199-.634.483-.82.821l-.004.006-8.16 15.151a1.944 1.944 0 00.092 2.012c.2.3.477.549.809.72a2.36 2.36 0 001.083.264H18.55a2.36 2.36 0 001.082-.264c.33-.173.608-.42.806-.72a1.944 1.944 0 00.092-2.01v-.002L12.367 1.495l-.002-.006a2.136 2.136 0 00-.82-.82 2.355 2.355 0 00-1.16-.304z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M11.498 7.073a.997.997 0 00-.326-.73 1.157 1.157 0 00-.787-.303c-.295 0-.578.108-.787.302a.997.997 0 00-.326.73v4.478c0 .274.117.537.326.73.209.194.492.303.787.303.295 0 .578-.109.787-.303a.997.997 0 00.325-.73V7.073zm-1.113 9.643c.393 0 .77-.146 1.049-.404a1.33 1.33 0 00.434-.974 1.33 1.33 0 00-.434-.974 1.543 1.543 0 00-1.05-.404c-.393 0-.77.146-1.048.404a1.33 1.33 0 00-.435.974c0 .365.157.716.435.974s.655.404 1.049.404z",fill:"#723219"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2121",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(0 .357)",d:"M0 0H20.7693V19.2858H0z"})})})]}),EB=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Container",componentId:"sc-1q854ns-0"})(["background-color:#fbf4ee;padding:16px;border-radius:12px;flex-direction:row;align-items:center;gap:12px;margin-top:16px;"]),NB=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Content",componentId:"sc-1q854ns-1"})(["flex:1;"]),kB=(0,Ge.default)(Be.default).withConfig({displayName:"alert__Description",componentId:"sc-1q854ns-2"})(["font-weight:600;font-size:14px;color:",";"],Qe.TEXT_DARK),RB=(0,Ge.default)(Be.default).withConfig({displayName:"alert__GuidelinesLinkText",componentId:"sc-1q854ns-3"})(["font-weight:700;font-size:14px;color:#ff5713;text-decoration:underline;text-decoration-color:#ff5713;",""],""),SB=({eventId:e})=>{const{autoTrackEnhanced:t}=mt();return(0,X.jsxs)(EB,{children:[(0,X.jsx)(TB,{}),(0,X.jsx)(NB,{children:(0,X.jsxs)(kB,{children:[i18n.t("event.cancel_v2.stc_guidelines.alert.description"),(0,X.jsx)(RB,{onPress:()=>{t({userFlow:Ga,action:Xa.click,objectName:"PEC guidelines link",properties:{eventId:e}}),ru(i18n.t("event.cancel_v2.stc_guidelines.alert.link.url"),0,!0)},children:i18n.t("event.cancel_v2.stc_guidelines.alert.link.label")})]})})]})},AB=({eventId:e,onConfirm:t,onGoBack:n,loading:i})=>(0,X.jsx)(qL,{testID:"event:cancel:stcGuidelines",title:i18n.t("event.cancel_v2.stc_guidelines.title"),bannerComponent:AL,primaryButton:{title:i18n.t("event.cancel_v2.stc_guidelines.confirm_cta"),testID:"event:cancel:stcGuidelines:confirmCancellation",onPress:t,disabled:i,trackingUserFlow:Ga,trackingObjectName:"I still want to cancel",trackingProperties:{eventId:e}},secondaryButton:{title:i18n.t("event.cancel_v2.stc_guidelines.go_back_cta"),testID:"event:cancel:stcGuidelines:goBack",onPress:n,disabled:i,trackingUserFlow:Ga,trackingObjectName:"go back on you might be suspended",trackingProperties:{eventId:e}},viewTrackingProps:{userFlow:Ga,objectName:"you might be suspended",properties:{eventId:e}},children:(0,X.jsx)(SB,{eventId:e})}),PB=(0,Ge.default)(qe.default).withConfig({displayName:"cancellation_modal__Container",componentId:"sc-4f3cku-0"})(["background-color:white;margin:50px 16px 20px 16px;flex:1;"]),DB=(0,Ge.default)(Be.default).withConfig({displayName:"cancellation_modal__Title",componentId:"sc-4f3cku-1"})(["margin-top:-35px;margin-bottom:10px;text-align:center;font-size:14px;color:",";font-weight:700;"],Qe.TEXT_DARK);const MB=(0,Te.observer)(function({onClose:e,isOpen:t,event:n}){var i,o,a,s,r,l;const{session:{settings:d}}=lt(),{deleteEvent:c,loading:u}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(KL);return{deleteEvent:({eventId:t,reasonCode:n="EC_99",reasonExternal:i="Other"})=>e({variables:{eventId:t,reasonCode:n,reasonExternal:i}}),loading:t}})(),{unsyncEventByExternalCalendarEventId:p}=_B(),[m,f]=(0,K.useState)(cq),[g,h]=(0,K.useState)({reasonCode:"",comment:""}),_=null===d||void 0===d?void 0:d.isProviderUnderExperimentAbTest(Mo),x=async e=>{var t,i;const o=await c({eventId:n.id,reasonCode:e?e.reasonCode:g.reasonCode,reasonExternal:e?e.comment:g.comment});null!==o&&void 0!==o&&null!==(t=o.data)&&void 0!==t&&null!==(i=t.cancelEvent)&&void 0!==i&&i.success?(f(hq),_&&p(n.externalCalendarEventId)):f(_q)},y=()=>{f(fq)},v=()=>{f(fq)},b=()=>{f(cq)},w=()=>{e(m===hq)},j=C.DateTime.fromISO(null===n||void 0===n||null===(i=n.details)||void 0===i?void 0:i.startTime).toLocaleStr
2729ing(C.DateTime.DATE_HUGE);return(0,X.jsx)(zw,{size:"medium",isOpen:t,onClose:w,displayCloseButton:!0,children:(0,X.jsxs)(PB,{children:[(0,X.jsx)(DB,{children:i18n.t("event.cancel.event.title")}),m===cq&&(0,X.jsx)(yq,{eventId:null===n||void 0===n?void 0:n.id,customerName:null===n||void 0===n||null===(o=n.customer)||void 0===o?void 0:o.firstname,relationshipId:null===n||void 0===n||null===(a=n.details)||void 0===a?void 0:a.relationshipId,onConfirm:()=>{f(xq)},showShortNoticeInfo:!(null===n||void 0===n||!n.showFeeWarning),loading:u}),m===xq&&(0,X.jsx)(IB,{relationshipId:null===n||void 0===n||null===(s=n.details)||void 0===s?void 0:s.relationshipId,eventId:null===n||void 0===n?void 0:n.id,onContinueCancellation:()=>{(()=>{var e;n.showPecGuidelines?f(pq):n.showStcGuidelines?f(mq):rl(null===(e=n.details)||void 0===e?void 0:e.startTime)?f(uq):y()})()}}),m===pq&&(0,X.jsx)(jB,{eventId:n.id,loading:u,onConfirm:v,onGoBack:b}),m===mq&&(0,X.jsx)(AB,{eventId:n.id,loading:u,onConfirm:v,onGoBack:b}),m===uq&&(0,X.jsx)(hB,{eventId:n.id,relationshipId:null===n||void 0===n||null===(r=n.details)||void 0===r?void 0:r.relationshipId,onConfirm:y}),m===fq&&(0,X.jsx)(pB,{event:n,disableSubmit:u,eventDate:j,customer:n.customer.name,onConfirm:e=>{h(e),!n.showPecGuidelines&&null!==n&&void 0!==n&&n.showFeeWarning&&n.showFeeWarning?f(gq):x(e)},onClose:w}),m===gq&&(0,X.jsx)(Lq,{disableSubmit:u,event:n,onConfirm:x,trackingProps:{eventId:n.id,reasonCode:g.reasonCode,feeAmount:null===n||void 0===n||null===(l=n.cancellationFee)||void 0===l?void 0:l.amount}}),(m===hq||m===_q)&&(0,X.jsx)(qq,{eventDate:j,customerName:n.customer.firstname,success:m===hq,onClose:w,trackingProps:{eventId:n.id,reasonCode:g.reasonCode}})]})})}),OB=(0,Ge.default)(ms).withConfig({displayName:"cancel_cta__CancelEventButton",componentId:"sc-8dewwt-0"})(["margin-top:10px;margin-bottom:30px;"]);const zB=function({event:e,variant:t="secondary"}){const n=(0,Ks.useHistory)(),{isConnected:i}=(0,ta.useNetInfo)(),[o,a]=(0,K.useState)(!1),[s,r]=(0,K.useState)(!1),{events:{fetchEventCaseEligibleFlags:l}}=lt();return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(OB,{onPress:async()=>{r(!0),await l(e.id),r(!1),a(!0)},disabled:s||e.cancelled||!i,trackingUserFlow:Ga,trackingObjectName:"cancel event in the event page",trackingProperties:{eventId:e.id},stretched:!0,variant:t,testID:"event:cancel_cta",children:i18n.t("event.cancel_event.cta_text")}),o&&(0,X.jsx)(MB,{event:e,isOpen:o,onClose:e=>{e&&n.replace(Vi()),a(!1)}})]})};var LB=n(39229);const qB="year",BB="month",GB=(e,t)=>[...e,{name:"payment_breakdown",amount:t}];const UB=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e,{children:(0,X.jsx)(Wu.Path,{d:"M12.9328 5.21413H14.5994C15.5199 5.21413 16.2661 5.96032 16.2661 6.8808V11.8808C16.2661 12.8013 15.5199 13.5475 14.5994 13.5475H12.9328V16.8808L9.59945 13.5475H6.26611C5.80588 13.5475 5.38921 13.3609 5.0876 13.0593M5.0876 13.0593L7.93278 10.2141H11.2661C12.1866 10.2141 12.9328 9.46794 12.9328 8.54746V3.54746C12.9328 2.62699 12.1866 1.8808 11.2661 1.8808H2.93278C2.01231 1.8808 1.26611 2.62699 1.26611 3.54747V8.54746C1.26611 9.46794 2.01231 10.2141 2.93278 10.2141H4.59945V13.5475L5.0876 13.0593Z",stroke:"#C09551",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))},$B=(Iw.default.get("window").height,(0,Ge.default)(qe.default).withConfig({displayName:"welcome_message_in_modal__Container",componentId:"sc-1rfr8f3-0"})(["justify-content:space-between;flex-grow:1;min-height:",";"],"80%")),FB=(0,Ge.default)(Vf.default).withConfig({displayName:"welcome_message_in_modal__Wrapper",componentId:"sc-1rfr8f3-1"})([""]),HB=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_message_in_modal__Info",componentId:"sc-1rfr8f3-2"})(["font-size:14px;color:",";margin-top:8px;"],Qe.TEXT_DARK),WB=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_message_in_modal__MessageTo",componentId:"sc-1rfr8f3-3"})(["font-size:14px;color:",";font-weight:600;margin-top:16px;margin-bottom:10px;text-align:center;margin-top:32px;"],Qe.TEXT_DARK),VB=(0,Ge.default)($g).withConfig({displayName:"welcome_message_in_modal__Input",componentId:"sc-1rfr8f3-4"})(["padding:20px 15px;font-size:14px;border-radius:7px;"]),KB=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_message_in_modal__ButtonContainer",componentId:"sc-1rfr8f3-5"})(["gap:6px;margin-top:20px;justify-content:flex-end;"]),YB=(0,Te.observer)(({customerName:e,info:t,message:n,onSendMessage:i,onMaybeLater:o,loading:a,setMessage:s,hint:r})=>(0,X.jsxs)($B,{children:[(0,X.jsxs)(FB,{children:[(0,X.jsx)(HB,{children:t}),(0,X.jsx)(WB,{children:i18n.t("welcome_message.message_to",{customerName:e})}),(0,X.jsx)(VB,{value:n,multiline:!0,numberOfLines:8,onChangeText:s}),r&&(0,X.jsx)(HB,{children:r})]}),(0,X.jsxs)(KB,{children:[(0,X.jsx)(ms,{onPress:i,disabled:a,stretched:!0,children:i18n.t("welcome_message.send_message")}),(0,X.jsx)(ms,{variant:"secondary",onPress:o,disabled:a,stretched:!0,children:i18n.t("welcome_message.maybe_later")})]})]})),XB=(0,Ge.default)(ts).withConfig({displayName:"no_conversation_with_customer__Pill",componentId:"sc-73phmi-0"})(["width:100%;padding:10px;border:1px solid ",";border-radius:8px;flex-direction:row;background-color:",";"],Qe.GOLD_3,Qe.GOLD_5),ZB=(0,Ge.default)(Be.default).withConfig({displayName:"no_conversation_with_customer__NoMessageSentText",componentId:"sc-73phmi-1"})(["margin-left:5px;color:",";"],Qe.TEXT_DARK),QB=(0,Ge.default)(qe.default).withConfig({displayName:"no_conversation_with_customer__Wrapper",componentId:"sc-73phmi-2"})(["flex:1;flex-direction:row;justify-content:space-between;"]),JB=(0,Ge.default)(qe.default).withConfig({displayName:"no_conversation_with_customer__Container",componentId:"sc-73phmi-3"})(["background-color:",";margin:10px 16px 20px 16px;display:flex;flex:1;font-weight:600;"],Qe.WHITE),eG=(0,Ge.default)(Be.default).withConfig({displayName:"no_conversation_with_customer__PopupTitle",componentId:"sc-73phmi-4"})(["font-size:20px;color:",";margin-top:37px;text-align:center;max-width:60%;align-self:center;font-weight:500;"],Qe.TEXT_DARK);const tG=function({relationshipId:e,customer:t,hasCustomerInstru
2729ctions:n,refetch:i}){const{chat:{postMessage:o},analytics:{autoTrack:a},toast:{showToastMessage:s},session:{currentUser:r}}=lt(),[l,d]=(0,K.useState)(i18n.t(`events.no_conversation.modal.${n?"has":"no"}_instruction.message`,{providerName:r.firstname})),[c,u]=(0,K.useState)(!1);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(XB,{onPress:()=>{a("Provider clicked on You haven't messaged your customer",`from event page customerId: ${t.id}`),u(!c)},children:[(0,X.jsx)(UB,{}),(0,X.jsxs)(QB,{children:[(0,X.jsx)(ZB,{children:i18n.t("events.no_conversation.pill.text")}),(0,X.jsx)(Pa.default,{name:"arrow-forward-ios",size:14})]})]}),c&&(0,X.jsxs)(zw,{displayCloseButton:!0,isOpen:c,onClose:()=>{a("Provider clicked on close no conversation modal",`from event page customerId: ${t.id}`),u(!c)},children:[(0,X.jsx)(eG,{children:i18n.t("events.no_conversation.modal.title")}),(0,X.jsx)(JB,{children:(0,X.jsx)(YB,{customerName:t.name,info:i18n.t("events.no_conversation.modal.info"),message:l,hint:i18n.t("events.no_conversation.modal.hint"),onSendMessage:async()=>{a("Provider clicked on Send message button",`from event page customerId: ${t.id} customerInstructionsExist: ${n}`);(await o(e,t.id,l)).success?(u(!c),s({type:"success",message:i18n.t("event.no_conversation.message.sent.success")}),i(t.id)):s({message:i18n.t("provider.generic.error"),onlyPopup:!0})},onMaybeLater:()=>{a("Provider clicked on Maybe later button",`from event page customerId: ${t.id}`),u(!c)},loading:!1,setMessage:d})})]})]})},nG=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_instructions__Section",componentId:"sc-1imnlpf-0"})(["margin:12px 0;"]),iG=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_instructions__Title",componentId:"sc-1imnlpf-1"})(["font-weight:600;font-size:18px;line-height:25px;color:",";padding-bottom:16px;"],Qe.TEXT_DARK),oG=(0,Ge.default)(Cu).withConfig({displayName:"cleaning_instructions__Item",componentId:"sc-1imnlpf-2"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),aG=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_instructions__ItemLabel",componentId:"sc-1imnlpf-3"})(["color:",";padding-right:8px;"],Qe.TEXT_DARK),sG=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_instructions__ItemValue",componentId:"sc-1imnlpf-4"})(["text-align:right;max-width:80%;"]);const rG=function({id:e}){const t=lu();return(0,X.jsxs)(nG,{children:[(0,X.jsx)(iG,{children:i18n.t("event.sections.cleaning_instruction.title")}),(0,X.jsxs)(oG,{showBottomBorder:!0,action:"Provider clicked on view cleaning instruction",lable:"from event details page",onPress:()=>t(Di(e)),children:[(0,X.jsx)(aG,{children:i18n.t("event.sections.view_cleaning_instruction")}),(0,X.jsx)(sG,{children:(0,X.jsx)(Pa.default,{name:"arrow-forward-ios",size:14})})]})]})},lG=(0,Ge.default)(lm).withConfig({displayName:"badge__Container",componentId:"sc-nzha1s-0"})(["flex-direction:row;justify-content:center;background-color:",";padding:8px 12px;border-radius:8px;align-items:center;"],({color:e})=>e),dG=(0,Ge.default)(Be.default).withConfig({displayName:"badge__BadgeText",componentId:"sc-nzha1s-1"})(["font-size:14px;color:",";font-weight:500;"],({color:e})=>e),cG=({elevation:e=0,color:t=Qe.VIOLET_5,icon:n,text:i,textColor:o=Qe.GREEN_PINE_OIL,iconColor:a=Qe.GREEN_SUMMER_GRASS,style:s,iconSize:r=16})=>(0,X.jsxs)(lG,{elevation:e,color:t,style:s,children:[n?"string"===typeof n?(0,X.jsx)(Pa.default,{name:n,size:r,color:a,style:{marginRight:6}}):n:null,(0,X.jsx)(dG,{color:o,children:i})]}),uG=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-jearnv-0"})(["margin-top:20px;margin-bottom:60px;",""],({$reducedMarginTop:e})=>e&&"\n  margin-top: 0px;\n  "),pG=(0,Ge.default)(ts).withConfig({displayName:"content__ResolutionCenterLink",componentId:"sc-jearnv-1"})(["margin-top:20px;margin-bottom:20px;flex-direction:row;align-items:center;"]),mG=(0,Ge.default)(pu.default).attrs({source:n(20023)}).withConfig({displayName:"content__Handshake",componentId:"sc-jearnv-2"})(["width:24px;height:24px;margin-top:3px;"]),fG=(0,Ge.default)(Be.default).withConfig({displayName:"content__ResolutionCenterLinkText",componentId:"sc-jearnv-3"})(["color:",";margin-left:5px;font-weight:700;font-size:16px;line-height:16px;text-decoration-line:underline;
2729"],Qe.GREEN_SUMMER_GRASS),gG=(0,Ge.default)(cG).withConfig({displayName:"content__StyledBadge",componentId:"sc-jearnv-4"})(["align-self:flex-start;margin-top:8px;margin-bottom:8px;"]);const hG=function({event:e}){var t;const n=(0,Ks.useHistory)(),{id:i,customer:o,relationship:{id:a,haveUsersParticipatedInConversation:s,customerInstructions:r,bids:l},details:{durationInHour:d,isEventInFuture:c},invoices:u,charges:p,payouts:m,providerTotal:f,amendableByProvider:g,additionalServices:h}=e,{session:{settings:{featureFlags:{hidePricesFromProvider:_},viewPermissions:x},country:y,countryConfig:{makeCleaningInstructionAccessible:v}},analytics:{autoTrack:b}}=lt(),{getCustomer:w,hasUsersParticipatedInConversation:C}=Mn(),{topics:j}=mx(i),I=!c,T=["fr","ch"].includes(y)&&!c,E=GB(p,f),N=(null===x||void 0===x?void 0:x.canCancelEvents)&&c&&!e.cancelled,k=!!r.cleaningDetails||r.tasks.length>0,R=!s&&!C,S=!(null===l||void 0===l||null===(t=l[l.length-1])||void 0===t||!t.pets),A=c&&!e.cancelled,P=N;return(0,X.jsxs)(uG,{$reducedMarginTop:v,children:[v&&R&&(0,X.jsx)(tG,{customer:o,hasCustomerInstructions:k,relationshipId:a,refetch:w}),(0,X.jsx)(nL,{durationInHour:d,additionalServices:h}),S&&(0,X.jsx)(gG,{icon:"pets",text:i18n.t("event.content.pets_at_home")}),v&&(0,X.jsx)(rG,{id:o.id}),!_&&(0,X.jsx)(Xz,{charges:E}),!_&&(0,X.jsx)(Fz,{payouts:m}),I&&(0,X.jsx)(Lz,{invoices:u}),T&&(0,X.jsx)(dq,{eventId:i}),!(null===j||void 0===j||!j.length)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(pG,{onPress:()=>{b("User clicked on report problem",`from event page, event id: ${i}`),n.push(`/provider/resolution_center/report_problem/event/${i}`)},children:[(0,X.jsx)(mG,{}),(0,X.jsx)(fG,{children:i18n.t("event.content.actions.report_problem")})]}),(0,X.jsx)(LB.default,{title:i18n.t("event.content.tips.report_problem.title"),style:{backgroundColor:Qe.TEAL_5}})]}),A&&(0,X.jsx)(WL,{eventId:e.id,amendable:g,customerName:null===o||void 0===o?void 0:o.firstname,relationshipId:a,copy:i18n.t("event.reschedule_event.cta_text")}),P&&(0,X.jsx)(zB,{event:e,variant:"danger"})]})},_G=(0,Ge.default)(qe.default).withConfig({displayName:"customer_checklist__CustomerChecklistContainer",componentId:"sc-po4rky-0"})(["padding-top:20px;padding-bottom:35px;"]),xG=(0,Ge.default)(qe.default).withConfig({displayName:"customer_checklist__Row",componentId:"sc-po4rky-1"})(["flex-direction:row;align-items:center;"]),yG=(0,Ge.default)(xG).withConfig({displayName:"customer_checklist__HeadingContainer",componentId:"sc-po4rky-2"})(["margin-bottom:30px;"]),vG=(0,Ge.default)(Be.default).withConfig({displayName:"customer_checklist__Heading",componentId:"sc-po4rky-3"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),bG=(0,Ge.default)(lm).withConfig({displayName:"customer_checklist__Card",componentId:"sc-po4rky-4"})(["border-radius:16.8px;background-color:#fff;padding:30px 25px;margin:10px 2px 7px 2px;"]),wG=(0,Ge.default)(xG).withConfig({displayName:"customer_checklist__CardHeadingContainer",componentId:"sc-po4rky-5"})([""]),CG=(0,Ge.default)(Be.default).withConfig({displayName:"customer_checklist__CardHeading",componentId:"sc-po4rky-6"})(["font-weight:700;color:",";"],Qe.TEXT_DARK),jG=(0,Ge.default)(qe.default).withConfig({displayName:"customer_checklist__CardDescriptionContainer",componentId:"sc-po4rky-7"})(["margin-top:20px;"]),IG=(0,Ge.default)(xG).withConfig({displayName:"customer_checklist__CardDescriptionLineContainer",componentId:"sc-po4rky-8"})(["align-items:flex-start;margin-top:10px;"]),TG=(0,Ge.default)(qe.default).withConfig({displayName:"customer_checklist__CardDescriptionLineIcon",componentId:"sc-po4rky-9"})(["width:6px;height:6px;border-radius:3px;background:",";margin-top:6px;margin-right:8px;"],Qe.TEXT_DARK),EG=(0,Ge.default)(Be.default).withConfig({displayName:"customer_checklist__CardDescriptionLine",componentId:"sc-po4rky-10"})(["font-size:16px;color:",";font-weight:300;"],Qe.BLACK),NG=(0,Ge.default)(Be.default).withConfig({displayName:"customer_checklist__NotAvailable",componentId:"sc-po4rky-11"})(["text-align:center;font-weight:300;color:",";"],Qe.BLACK),kG=(0,Ge.default)(ts).withConfig({displayName:"customer_checklist__TranslateButton",componentId:"sc-po4rky-12"})(["display:flex;flex-direction:row;align-items:center;margin-left:5px;padding:0px 5px 5px 5px;"]),RG=(0,Ge.default)(Be.default).withConfig({displayName:"customer_checklist__TranslateButtonText",componentId:"sc-po4rky-13"})(["color:",";font-size:12px;"],e=>e.error?Qe.CRIMSON_1:Qe.BLACK),SG=(0,Ge.default)(Aa.default).attrs({size:11}).withConfig({displayName:"customer_checklist__Spinner",componentId:"sc-po4rky-14"})(["margin-left:15px;margin-top:3px;"]);function AG(){return(0,X.jsx)(yG,{children:(0,X.jsx)(vG,{children:i18n.t("event.customer_checklist.heading")})})}function PG(){return(0,X.jsxs)(_G,{children:[(0,X.jsx)(AG,{}),(0,X.jsx)(NG,{children:i18n.t("event.customer_checklist.no_checklist")})]})}const DG=function({customerChecklist:e}){const{events:{fetchTranslatedCustomerChecklist:t},session:{chatTranslationLanguage:n}}=lt(),[i,o]=(0,K.useState)(!1),[a,s]=(0,K.useState)([]),[r,l]=(0,K.useState)([]),[d,c]=(0,K.useState)(!1),[u,p]=(0,K.useState)(!1);if(!e)return(0,X.jsx)(PG,{});const m=(0,K.useMemo)(()=>(i?a:e.customerChecklistItems).reduce((e,{id:t,category:n,name:o,checked:a,translatedCategory:s,translatedName:r})=>{if(!i&&!a)return e;const l=i?s:n,d=i?r:o;return e[l]?Object.assign({},e,{[l]:[...e[l],{id:t,name:d}]}):Object.assign({},e,{[l]:[{id:t,name:d}]})},{}),[a]),f=tr().isEmpty(m);return(0,X.jsxs)(_G,{children:[(0,X.jsx)(AG,{}),f||(d?(0,X.jsx)(SG,{color:Qe.GREEN_SUMMER_GRASS}):(0,X.jsxs)(kG,{onPress:async()=>{c(!0);const{translatedCustomerChecklist:i}=await t(e.id,n||"EN-US");if(i){const{customerChecklistItems:e,translatedAdditionalInformation:t}=i;o(!0),s(e),l(t)}else p(!0);c(!1)},eventAction:"translate",children:[(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"translate",size:12,color:u?Qe.CRIMSON_1:Qe.BLACK}),(0,X.jsx)(RG,{error:u,children:u?i18n.t("event.customer_checklist.retry"):i18n.t("event.customer_checklist.translate")})]})),Object.entries(m).map(([e,t])=>(0,X.jsxs)(bG,{elevation:1,children:[(0,X.jsx)(wG,{children:(0,X.jsx)(CG,{children:i?e:i18n.t(`event.customer_checklist.cleaning_checklist.${e}.title`)})}),(0,X.jsx)(jG,{children:t.map(({id:t,name:n})=>(0,X.jsxs)(IG,{children:[(0,X.jsx)(TG,{}),(0,X.jsx)(EG,{children:i?n:i18n.t(`event.customer_checklist.cleaning_checklist.${e}.${n}`)})]},t))})]},e)),e.additionalInformation?(0,X.jsxs)(bG,{elevation:1,children:[(0,X.jsx)(wG,{children:(0,X.jsx)(CG,{children:i18n.t("event.customer_checklist.additional_info_heading")})}),(0,X.jsx)(jG,{children:(0,X.jsx)(IG,{children:(0,X.jsx)(EG,{children:i?r:e.additionalInformation})})})]}):null]})};var MG=n(55861);const OG=(0,Ge.default)(pu.default).withConfig({displayName:"image_preview_modal_content__FullPicture",componentId:"sc-1bma93f-0"})(["width:100%;height:100%;"]),zG=(0,Ge.default)(qe.default).withConfig({displayName:"image_preview_modal_content__ModalContainer",componentId:"sc-1bma93f-1"})(["align-items:center;width:100%;"]),LG=(0,Ge.default)(qe.default).withConfig({displayName:"image_preview_modal_content__ModalWrapper",componentId:"sc-1bma93f-2"})(["width:600px;max-width:100%;"]),qG=(0,Ge.default)(qe.default).withConfig({displayName:"image_preview_modal_content__CloseContainer",componentId:"sc-1bma93f-3"})(["padding:4px 0px;width:100%;align-items:flex-end;"]),BG=(0,Ge.default)(qe.default).withConfig({displayName:"image_preview_modal_content__ModalContent",componentId:"sc-1bma93f-4"})(["background:",";padding:24px;min-height:420px;"],Qe.WHITE);function GG({previewUrl:e,onClose:t}){return(0,X.jsx)(zG,{children:(0,X.jsxs)(LG,{children:[(0,X.jsx)(qG,{children:(0,X.jsx)(Da.default,{onPress:t,children:(0,X.jsx)(Pa.default,{name:"close",set:"MaterialCommunityIcons",size:24,color:Qe.WHITE})})}),(0,X.jsx)(BG,{children:e&&(0,X.jsx)(OG,{source:{uri:bi(e)},resizeMode:"contain"})})]})})}
2729GG.propTypes={previewUrl:qc.default.string,onClose:qc.default.func.isRequired};const UG=GG,$G="Quantity",FG="SingleSelection",HG="Number",WG="Checkbox",VG="TextArea";function KG(e,t,n){if(!n)return null;if(t===$G){const t=parseInt(n);return t?i18n.t(`offer.details.items.${e}.label`,{value:n,count:t}):null}return t===HG?i18n.t(`offer.details.items.${e}.label`,{value:n}):t===FG?i18n.t(`offer.details.items.${e}.${n}.label`):t===WG?"false"===n?null:i18n.t(`offer.details.items.${e}.label`):t===VG?`${i18n.t(`offer.details.items.${e}.label`)}: ${n}`:null}const YG={CART:"cart",QUOTE:"quote"},XG=(0,Ge.default)(qe.default).withConfig({displayName:"vertical_booking_details__CustomerChecklistContainer",componentId:"sc-17yjlke-0"})(["padding-top:20px;padding-bottom:35px;"]),ZG=(0,Ge.default)(qe.default).withConfig({displayName:"vertical_booking_details__Row",componentId:"sc-17yjlke-1"})(["flex-direction:row;align-items:center;"]),QG=(0,Ge.default)(ZG).withConfig({displayName:"vertical_booking_details__HeadingContainer",componentId:"sc-17yjlke-2"})(["margin-bottom:8px;"]),JG=(0,Ge.default)(Be.default).withConfig({displayName:"vertical_booking_details__Heading",componentId:"sc-17yjlke-3"})(["font-size:18px;font-weight:bold;color:",";"],Qe.TEXT_DARK),eU=(0,Ge.default)(qe.default).withConfig({displayName:"vertical_booking_details__Section",componentId:"sc-17yjlke-4"})(["margin:12px 0;"]),tU=(0,Ge.default)(qe.default).withConfig({displayName:"vertical_booking_details__Item",componentId:"sc-17yjlke-5"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),nU=(0,Ge.default)(Be.default).withConfig({displayName:"vertical_booking_details__ItemText",componentId:"sc-17yjlke-6"})(["flex:1;font-size:16px;"]),iU=(0,Ge.default)(ZG).withConfig({displayName:"vertical_booking_details__CardHeadingContainer",componentId:"sc-17yjlke-7"})(["flex:1;gap:16px;"]),oU=(0,Ge.default)(Be.default).withConfig({displayName:"vertical_booking_details__CardHeading",componentId:"sc-17yjlke-8"})(["flex:1;font-size:26px;font-weight:600;color:",";"],Qe.TEXT_DARK),aU=(0,Ge.default)(qe.default).withConfig({displayName:"vertical_booking_details__PicturesContainer",componentId:"sc-17yjlke-9"})(["flex-direction:row;gap:12px;flex-flow:wrap;width:100%;"]),sU=(0,Ge.default)(pu.default).withConfig({displayName:"vertical_booking_details__Picture",componentId:"sc-17yjlke-10"})(["width:220px;height:167px;"]),rU=()=>(0,X.jsx)(QG,{children:(0,X.jsx)(JG,{children:i18n.t("common.info")})});const lU=function({event:e}){var t,n,i;const[o,a]=(0,K.useState)(null),{charges:s,payouts:r,invoices:l,providerTotal:d,pricingItems:c}=e,{category:u,description:p,pictureUrls:m,pricingUnit:f,unitQuantity:g}=e.verticalRequest,{durationInHour:h,isEventInFuture:_}=e.details,{session:{settings:{featureFlags:{hidePricesFromProvider:x},viewPermissions:y}}}=lt(),v=(null===y||void 0===y?void 0:y.canCancelEvents)&&_&&!e.cancelled,b=!_,w=GB(s,d),C=(null===(t=e.verticalRequest)||void 0===t?void 0:t.items)||[];return(0,X.jsxs)(XG,{children:[(0,X.jsx)(rU,{}),(0,X.jsxs)(eU,{elevation:1,children:[(0,X.jsx)(tU,{children:(0,X.jsxs)(iU,{children:[(0,X.jsx)(MG.default,{name:u,size:40}),(0,X.jsx)(oU,{children:i18n.t(`verticals.categories.${u}.name`)})]})}),p&&(0,X.jsx)(tU,{children:(0,X.jsx)(nU,{children:p})}),!!C.length&&C.map(e=>(0,X.jsx)(tU,{children:(0,X.jsx)(nU,{children:KG(e.name,e.type,e.value)})},e.name)),m.length>0&&(0,X.jsx)(tU,{children:(0,X.jsx)(aU,{children:m.map(e=>(0,X.jsx)(Da.default,{onPress:()=>a(e),children:(0,X.jsx)(sU,{source:{uri:bi(e)}})},e))})}),g&&(0,X.jsx)(tU,{showBottomBorder:!0,children:(0,X.jsxs)(nU,{children:[g," x ",f]})}),c.map((e,t,n)=>(0,X.jsx)(tU,{showBottomBorder:t===n.length-1,children:(0,X.jsxs)(nU,{children:[e.quantity," x ",i18n.t(`verticals.cart_items.${e.name}.name`)]})},e.name))]},u),(0,X.jsx)(nL,{durationInHour:h}),!x&&(0,X.jsx)(Xz,{charges:w}),!x&&(0,X.jsx)(Fz,{payouts:r}),!x&&b&&(0,X.jsx)(Lz,{invoices:l}),_&&(0,X.jsx)(WL,{eventId:e.id,amendable:e.amendableByProvider,customerName:null===(n=e.customer)||void 0===n?void 0:n.firstname,relationshipId:null===(i=e.details)||void 0===i?void 0:i.relationshipId}),v&&(0,X.jsx)(zB,{event:e}),(0,X.jsx)(gs,{isVisible:!!o,style:{margin:24},onBackdropPress:()=>a(null),children:(0,X.jsx)(UG,{previewUrl:o,onClose:()=>a(!1)})})]})},dU=(0,Ge.default)(qe.default).withConfig({displayName:"care_booking_details__CustomerChecklistContainer",componentId:"sc-5g202s-0"})(["padding-top:20px;padding-bottom:35px;"]),cU=(0,Ge.default)(qe.default).withConfig({displayName:"care_booking_details__Row",componentId:"sc-5g202s-1"})(["flex-direction:row;align-items:center;"]),uU=(0,Ge.default)(cU).withConfig({displayName:"care_booking_details__HeadingContainer",componentId:"sc-5g202s-2"})(["margin-bottom:8px;"]),pU=(0,Ge.default)(Be.default).withConfig({displayName:"care_booking_details__Heading",componentId:"sc-5g202s-3"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),mU=(0,Ge.default)(qe.default).withConfig({displayName:"care_booking_details__Section",componentId:"sc-5g202s-4"})(["margin:12px 0;"]),fU=(0,Ge.default)(qe.default).withConfig({displayName:"care_booking_details__Item",componentId:"sc-5g202s-5"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:12px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),gU=(0,Ge.default)(Be.default).withConfig({displayName:"care_booking_details__ItemLabel",componentId:"sc-5g202s-6"})(["color:",";padding-right:8px;"],Qe.TEXT_DARK),hU=(0,Ge.default)(Be.default).withConfig({displayName:"care_booking_details__ItemText",componentId:"sc-5g202s-7"})(["flex:1;text-align:right;max-width:80%;"]),_U=(0,Ge.default)(cU).withConfig({displayName:"care_booking_details__CardHeadingContainer",componentId:"sc-5g202s-8"})(["flex:1;gap:16px;"]),xU=(0,Ge.default)(Be.default).withConfig({displayName:"care_booking_details__CardHeading",componentId:"sc-5g202s-9"})(["flex:1;font-size:26px;font-weight:600;color:",";"],Qe.TEXT_DARK);function yU(){return(0,X.jsx)(uU,{children:(0,X.jsx)(pU,{children:i18n.t("common.info")})})}const vU=function({event:e}){var t,n;const{category:i,careServiceDetails:o,charges:a,payouts:s,invoices:r,providerTotal:l}=e,{durationInHour:d,isEventInFuture:c}=e.details,{session:{settings:{featureFlags:{hidePricesFromProvider:u},viewPermissions:p}}}=lt(),m=(null===p||void 0===p?void 0:p.canCancelEvents)&&c&&!e.cancelled,f=!u,g=!c,h=GB(a,l);return(0,X.jsxs)(dU,{children:[(0,X.jsx)(yU,{}),(0,X.jsxs)(mU,{elevation:1,children:[(0,X.jsx)(fU,{children:(0,X.jsxs)(_U,{children:[(0,X.jsx)(MG.default,{name:i,size:40}),(0,X.jsx)(xU,{children:i18n.t(`verticals.categories.${i}.name`)})]})}),d&&(0,X.jsxs)(fU,{children:[(0,X.jsx)(gU,{children:i18n.t("event.sections.booking_details.duration")}),(0,X.jsx)(hU,{children:i18n.t("event.sections.booking_details.duration_value",{duration:d})})]}),o&&(0,X.jsxs)(fU,{showBottomBorder:!0,children:[(0,X.jsxs)(gU,{children:[i18n.t("event.sections.booking_details.service_details"),":"]}),(0,X.jsx)(hU,{children:o})]}),f&&(0,X.jsx)(Xz,{charges:h}),f&&(0,X.jsx)(Fz,{payouts:s}),f&&g&&(0,X.jsx)(Lz,{invoices:r})]},i),c&&(0,X.jsx)(WL,{eventId:e.id,amendable:e.amendableByProvider,customerName:null===(t=e.customer)||void 0===t?void 0:t.firstname,relationshipId:null===(n=e.details)||void 0===n?void 0:n.relationshipId}),m&&(0,X.jsx)(zB,{event:e})]})},bU=(0,Ge.default)(Be.default).withConfig({displayName:"events__NotAvailable",componentId:"sc-jdqqs9-0"})(["text-align:center;font-weight:300;color:",";"],Qe.TEXT_DARK);function wU(){return(0,X.jsx)(Rf,{page:"event",content:()=>(0,X.jsx)(bU,{children:i18n.t("event.no_event")})})}function CU(){return(0,X.jsx)(Rf,{page:"event",content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const jU=function(){const{isConnected:e}=(0,ta.useNetInfo)(),[t,n]=(0,K.useState)(!0),[i,o]=(0,K.useState)(),{events:{fetchEvent:a},session:{currentUser:s},analytics:{autoTrack:r}}=lt(),l=(0,Ks.useLocation)(),{id:d}=(0,Ks.useParams)();if((0,K.useEffect)(()=>{!async function(e){n(!0);const t=await a(e);o(t),n(!1)}(d)},[e]),(0,K.useEffect)(()=>{"true"===new URLSearchParams(null===l||void 0===l?void 0:l.search).get("fromExternalCalendar")&&r("User opened event details","from external 
2729calendar")},[]),t)return(0,X.jsx)(CU,{});if(!i)return(0,X.jsx)(wU,{});const c=null===s||void 0===s?void 0:s.premium;return(0,X.jsx)(Rf,{page:"event",header:()=>(0,X.jsx)(hz,{event:i}),subheader:()=>i.hasPickupDate?(0,X.jsx)(Sz,{event:i}):(0,X.jsx)(Nz,{event:i}),content:()=>null!==i&&void 0!==i&&i.isVertical?"care.elderly"===(null===i||void 0===i?void 0:i.category)?(0,X.jsx)(vU,{event:i}):(0,X.jsx)(lU,{event:i}):c?(0,X.jsx)(DG,{customerChecklist:i.customerChecklist}):(0,X.jsx)(hG,{event:i})})},IU=()=>(0,X.jsx)(jU,{});var TU=n(35721),EU=n(11490);const NU=["value","onChange","disabled","testID"],kU=(0,Ge.default)(EU.default).withConfig({displayName:"switch__StyledSwitch",componentId:"sc-r66iti-0"})(["",""],""),RU=e=>{let{value:t,onChange:n,disabled:i,testID:o}=e,a=(0,A.default)(e,NU);const s={activeTrackColor:Qe.GREEN_IRISH_BREEZE,activeThumbColor:Qe.GREEN_SUMMER_GRASS},r=t?{}:i?{thumbColor:Qe.GRAY_3}:{thumbColor:Qe.GRAY_4};return(0,X.jsx)(kU,Object.assign({value:t,onValueChange:n,disabled:i,testID:o},s,r,a))},SU=(0,Ge.default)(qe.default).withConfig({displayName:"filter__Container",componentId:"sc-m2lqdk-0"})(["margin:30px 20px 20px 20px;",""],({isDesktop:e})=>e&&"flex: 1;"),AU=(0,Ge.default)(qe.default).withConfig({displayName:"filter__Filters",componentId:"sc-m2lqdk-1"})(["",""],({isDesktop:e})=>e&&"flex: 1;"),PU=(0,Ge.default)(Be.default).withConfig({displayName:"filter__FilterTitle",componentId:"sc-m2lqdk-2"})(["font-size:16px;margin:10px 0;font-weight:500;color:",";"],Qe.TEXT_DARK),DU=(0,Ge.default)(qe.default).withConfig({displayName:"filter__FilterRow",componentId:"sc-m2lqdk-3"})(["flex-direction:row;justify-content:space-between;margin:5px 0;"]),MU=(0,Ge.default)(Be.default).withConfig({displayName:"filter__FilterLabel",componentId:"sc-m2lqdk-4"})(["color:",";font-size:14px;"],Qe.TEXT_DARK),OU=(0,Ge.default)(qe.default).withConfig({displayName:"filter__SliderContainer",componentId:"sc-m2lqdk-5"})(["width:100%;align-items:stretch;margin:0;padding:0;"]),zU=(0,Ge.default)(qe.default).withConfig({displayName:"filter__SliderValueContainer",componentId:"sc-m2lqdk-6"})(["width:100%;flex-direction:row;justify-content:center;align-items:center;margin:0;"]),LU=(0,Ge.default)(Be.default).withConfig({displayName:"filter__SliderValueBox",componentId:"sc-m2lqdk-7"})(["width:100px;display:flex;flex-direction:row;justify-content:center;margin:0 5px;padding:10px;border:1px solid ",";border-radius:10px;text-align:center;"],Qe.GREEN_SUMMER_GRASS),qU=(0,Ge.default)(ms).withConfig({displayName:"filter__StyledButton",componentId:"sc-m2lqdk-8"})(["margin-top:10px;"]),BU=({opened:e,setOpened:t,params:n,setParams:i,maxRadius:o})=>{const{analytics:{autoTrackEnhanced:a}}=lt(),{isDesktop:s}=uu(),[r,l]=(0,K.useState)(n.inPrice),[d,c]=(0,K.useState)(n.belowPrice),[u,p]=(0,K.useState)(n.minDuration),[m,f]=(0,K.useState)(n.maxDuration),[g,h]=(0,K.useState)([n.maxRadius]),[_,x]=(0,K.useState)(n.recurring),[y,v]=(0,K.useState)(n.oneOff),[b,w]=(0,K.useState)(null),C=dt(g,50),j=dt(u,50),I=dt(m,50),T=()=>t(!1);return(0,X.jsx)(zw,{isOpen:e,onClose:T,size:s?"normal":"fit",displayCloseButton:!0,children:(0,X.jsxs)(SU,{isDesktop:s,children:[(0,X.jsxs)(AU,{isDesktop:s,children:[(0,X.jsx)(PU,{children:i18n.t("offers.filter.prices.title")}),(0,X.jsxs)(DU,{children:[(0,X.jsx)(MU,{children:i18n.t("offers.filter.prices.at_my_price")}),(0,X.jsx)(RU,{onChange:()=>{l(!r),a({userFlow:za,action:Xa.toggle,objectName:"only at my price",properties:{onlyAtMyPrice:!r}}),w("only at my price")},value:r})]}),(0,X.jsxs)(DU,{children:[(0,X.jsx)(MU,{children:i18n.t("offers.filter.prices.below_my_price")}),(0,X.jsx)(RU,{onChange:()=>{c(!d),a({userFlow:za,action:Xa.toggle,objectName:"below my price",properties:{belowMyPrice:!d}}),w("below my price")},value:d})]}),(0,X.jsx)(PU,{children:i18n.t("offers.filter.frequency.title")}),(0,X.jsxs)(DU,{children:[(0,X.jsx)(MU,{children:i18n.t("offers.filter.frequency.one_off")}),(0,X.jsx)(RU,{onChange:()=>{v(!y),a({userFlow:za,action:Xa.toggle,objectName:"oneoff booking",properties:{oneoffBooking:!y}}),w("oneoff booking")},value:y})]}),(0,X.jsxs)(DU,{children:[(0,X.jsx)(MU,{children:i18n.t("offers.filter.frequency.recurring")}),(0,X.jsx)(RU,{onChange:()=>{x(!_),a({userFlow:za,action:Xa.toggle,objectName:"recurring booking",properties:{recurringBooking:!_}}),w("recurring booking")},value:_})]}),(0,X.jsx)(PU,{children:i18n.t("offers.filter.distance.title")}),(0,X.jsx)(DU,{children:(0,X.jsxs)(OU,{children:[(0,X.jsx)(zU,{children:(0,X.jsx)(LU,{children:i18n.t("formatted_distance",{distance:C})})}),(0,X.jsx)(TU.Slider,{value:C,onSlidingComplete:e=>{h(e),a({userFlow:za,action:Xa.input,objectName:"distance from home",properties:{distanceFromHome:e[0]}}),w("distance from home")},onValueChange:h,minimumValue:Fl,maximumValue:o,step:1,trackClickable:!0,thumbTintColor:Qe.GREEN_SUMMER_GRASS,minimumTrackTintColor:Qe.GREEN_SUMMER_GRASS,maximumTrackTintColor:Qe.VIOLET_5})]})}),(0,X.jsx)(PU,{children:i18n.t("offers.filter.duration.title")}),(0,X.jsx)(DU,{children:(0,X.jsxs)(OU,{children:[(0,X.jsxs)(zU,{children:[(0,X.jsx)(LU,{children:i18n.t("formatted_duration_short",{duration:j/3600})}),(0,X.jsx)(Be.default,{children:" - "}),(0,X.jsx)(LU,{children:i18n.t("formatted_duration_short",{duration:I/3600})})]}),(0,X.jsx)(TU.Slider,{value:[j,I],onSlidingComplete:e=>{p(e[0]),f(e[1]),a({userFlow:za,action:Xa.input,objectName:"duration of job",properties:{durationOfJobMin:e[0]/3600,durationOfJobMax:e[1]/3600}}),w("duration of job")},onValueChange:e=>{p(e[0]),f(e[1])},minimumValue:$l.minimum,maximumValue:$l.maximum,step:1800,trackClickable:!0,thumbTintColor:Qe.GREEN_SUMMER_GRASS,minimumTrackTintColor:Qe.GREEN_SUMMER_GRASS,maximumTrackTintColor:Qe.VIOLET_5})]})})]}),(0,X.jsx)(qU,{onPress:()=>{T();const e={inPrice:r,belowPrice:d,minDuration:u,maxDuration:m,maxRadius:g[0],recurring:_,oneOff:y};i(e),a({userFlow:za,action:Xa.click,objectName:"apply filters",properties:{latestFilterUsed:b}})},stretched:!0,children:i18n.t("offers.filter.submit")})]})})},GU=(0,Ge.default)(qe.default).withConfig({displayName:"no_offer__Container",componentId:"sc-a03fch-0"})(["align-items:center;width:100%;"]),UU=(0,Ge.default)(Be.default).withConfig({displayName:"no_offer__OfferNotSelected",componentId:"sc-a03fch-1"})(["font-size:18px;font-weight:bold;color:",";padding:10px 0;text-align:center;"],Qe.TEXT_DARK),$U=(0,Ge.default)(Be.default).withConfig({displayName:"no_offer__OfferYouWillGetNotified",componentId:"sc-a03fch-2"})(["font-size:14px;color:",";padding:10px 0;text-align:center;"],Qe.TEXT_DARK),FU=()=>(0,X.jsxs)(GU,{children:[(0,X.jsx)(UU,{children:i18n.t("offers.empty.not_selected_yet")}),(0,X.jsx)(Pa.default,{name:"emoticon-neutral-outline",set:"MaterialCommunityIcons",color:Qe.GREEN_SUMMER_GRASS,size:40}),(0,X.jsx)($U,{children:i18n.t("offers.empty.you_will_get_notified")})]}),HU=["width","height"];const WU=function(e){let{width:t=46,height:n=46}=e,i=(0,A.default)(e,HU);return(0,X.jsxs)(Wu.default,Object.assign({width:t,height:n,viewBox:"0 0 46 46",fill:"none"},i,{children:[(0,X.jsx)(Wu.Circle,{cx:22.969,cy:24.7092,r:20.8772,fill:"#D7D9E7"}),(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_10591_10459)",children:[(0,X.jsx)(Wu.Path,{d:"M23.138 39.273c-7.949 0-14.415-6.466-14.415-14.414 0-7.949 6.466-14.415 14.415-14.415 7.948 0 14.414 6.466 14.414 14.415 0 7.948-6.466 14.414-14.414 14.414z",fill:"#fff"}),(0,X.jsx)(Wu.Path,{d:"M23.137 11.555c7.337 0 13.305 5.969 13.305 13.305 0 7.336-5.968 13.305-13.305 13.305-7.336 0-13.304-5.969-13.304-13.305 0-7.336 5.968-13.305 13.304-13.305zm0-2.697c-8.837 0-16.001 7.165-16.001 16.002S14.3 40.862 23.137 40.862
2729c8.838 0 16.002-7.165 16.002-16.002S31.975 8.858 23.137 8.858z",fill:"#878BB0"}),(0,X.jsx)(Wu.Path,{d:"M23.138 26.052a1.166 1.166 0 01-1.166-1.166v-10.34a1.166 1.166 0 112.332 0v10.34c0 .644-.522 1.166-1.166 1.166z",fill:"#515759"}),(0,X.jsx)(Wu.Path,{d:"M31.001 20.317a1.166 1.166 0 00-1.593-.426l-5.822 3.363a1.665 1.665 0 00-2.115 1.606 1.667 1.667 0 003.283.414l5.82-3.363a1.166 1.166 0 00.427-1.594z",fill:"#1E2121"})]}),(0,X.jsx)(Wu.Path,{d:"M1 11.805v0a15.056 15.056 0 0111.046-10.23l.223-.05M33.924 1.524v0a15.056 15.056 0 0110.23 11.046l.05.223",stroke:"#000",strokeWidth:1.97702}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_10591_10459",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(7.004 8.743)",d:"M0 0H32.2806V32.2806H0z"})})})]}))};var VU=n(39030);const KU=["color","size"],YU=e=>{let{color:t="#515759",size:n=20}=e,i=(0,A.default)(e,KU);return(0,X.jsx)(Wu.Svg,Object.assign({width:n,height:n,viewBox:"0 0 20 20",fill:"none"},i,{children:(0,X.jsx)(Wu.Path,{d:"M6.85553 7.51337C7.31312 6.54237 8.54783 5.8467 9.99919 5.8467C11.8401 5.8467 13.3325 6.96599 13.3325 8.3467C13.3325 9.5129 12.2678 10.4926 10.8277 10.7689C10.3757 10.8556 9.99919 11.2198 9.99919 11.68M9.99914 14.18H10.0075M17.4991 10.0134C17.4991 14.1555 14.1413 17.5134 9.99914 17.5134C5.85701 17.5134 2.49915 14.1555 2.49915 10.0134C2.49915 5.87123 5.85701 2.51337 9.99914 2.51337C14.1413 2.51337 17.4991 5.87123 17.4991 10.0134Z",stroke:t,strokeWidth:"1.25026",strokeLinecap:"round",strokeLinejoin:"round"})}))},XU=["content","onOpenChange","showCloseIcon","testID"],ZU=(0,Ge.default)(qe.default).withConfig({displayName:"popover__PopoverContainer",componentId:"sc-1bawq27-0"})(["flex-direction:row;align-items:flex-start;background-color:",";border-radius:8px;padding:12px;margin:",";gap:12px;width:","px;max-width:360px;"],Qe.WHITE,({theme:e})=>e.isMobile?"8px 32px 0":"0",Iw.default.get("window").width-64),QU=(0,Ge.default)(rf.default).withConfig({displayName:"popover__PopoverText",componentId:"sc-1bawq27-1"})(["color:",";flex:1;width:100%;font-size:14px;line-height:20px;font-weight:500;"],Qe.TEXT_DARK),JU=e=>{let{content:t,onOpenChange:n=()=>{},showCloseIcon:i=!1,testID:o="Popover"}=e,a=(0,A.default)(e,XU);const[s,r]=K.useState(!1),{isMobile:l}=uu();return t?(0,X.jsxs)(VU.Popover,Object.assign({isOpen:s,onOpenChange:e=>{n&&n(e),r(e)},trigger:(0,X.jsx)(ws.default,{testID:`${o}:Trigger`,children:(0,X.jsx)(YU,{})}),on:l?"press":"hover",placement:l?"bottom":"bottom right"},a,{children:[l&&(0,X.jsx)(VU.Popover.Backdrop,{testID:`${o}:Backdrop`}),(0,X.jsx)(VU.Popover.Content,{children:(0,X.jsx)(Ma.default,{children:(0,X.jsxs)(ZU,{testID:`${o}:Content`,children:[(0,X.jsx)(QU,{children:t}),i&&(0,X.jsx)(Pa.default,{name:"close",set:"MaterialCommunityIcons",size:16,onPress:()=>r(!1)})]})})})]})):null};JU.propTypes={content:ze().string,onOpenChange:ze().func};const e$=JU,t$=Ge.default.View.withConfig({displayName:"exclusivity_timer__Container",componentId:"sc-g2cds3-0"})(["flex-direction:row;justify-content:space-between;align-items:center;background-color:#FFF4F0;padding:8px 12px;border-radius:8px;"]),n$=(0,Ge.default)(Be.default).withConfig({displayName:"exclusivity_timer__ExclusivityTimerText",componentId:"sc-g2cds3-1"})(["color:",";font-weight:600;font-size:13px;"],Qe.TEXT_DARK),i$=(0,Ge.default)(Be.default).withConfig({displayName:"exclusivity_timer__ExclusivityTimerDuration",componentId:"sc-g2cds3-2"})(["color:",";font-weight:700;font-size:13px;"],Qe.TEXT_DARK),o$=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60);return[t>0?i18n.t("time.hours.short",{count:t}):"",n>0?i18n.t("time.minutes.short",{count:n}):""].filter(Boolean).join(" ")},a$=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60);return t>0?i18n.t("hours",{count:t}):i18n.t("minutes",{count:n})},s$=({reverseOfferExclusivityEndTime:e})=>{const t=()=>e?(e.toMillis()-Date.now())/1e3:void 0,[n,i]=(0,K.useState)(t()),o=i18n.t("offers.exclusivity_timer.text"),a=i18n.t("offers.exclusivity_timer.popover_text",{duration:a$(n)});return(0,K.useEffect)(()=>{if(e){const e=setInterval(()=>{i(t())},1e4);return()=>clearInterval(e)}},[]),(0,X.jsxs)(t$,{children:[(0,X.jsxs)(n$,{children:[o," ",(0,X.jsx)(i$,{children:o$(n)})]}),(0,X.jsx)(e$,{content:a})]})},r$=(0,Ge.default)(ts).withConfig({displayName:"offer_item__Container",componentId:"sc-1q3tp48-0"})(["flex-direction:column;width:","%;background-color:",";border:1px solid ",";border-radius:10px;margin:5px 2px;padding:12px;box-shadow:0 1px 10px rgba(0,0,0,0.1);"],({large:e})=>e?100:49,Qe.WHITE,Qe.GRAY_BORDER),l$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__HeaderContainer",componentId:"sc-1q3tp48-1"})(["flex-direction:row;"]),d$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__BodyContainer",componentId:"sc-1q3tp48-2"})(["flex-direction:row;align-items:center;justify-content:space-between;"]),c$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__FooterContainer",componentId:"sc-1q3tp48-3"})(["flex-direction:row;"]),u$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__DetailsContainer",componentId:"sc-1q3tp48-4"})(["align-items:flex-start;justify-content:center;"]),p$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Date",componentId:"sc-1q3tp48-5"})(["font-weight:bold;font-size:14px;color:",";padding-bottom:5px;"],Qe.TEXT_DARK),m$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Time",componentId:"sc-1q3tp48-6"})(["font-size:14px;color:",";padding-bottom:4px;
2729"],Qe.TEXT_DARK),f$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__FrequencyPlace",componentId:"sc-1q3tp48-7"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),g$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__TextWrapper",componentId:"sc-1q3tp48-8"})(["padding:0 5px 0 0;"]),h$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Frequency",componentId:"sc-1q3tp48-9"})(["font-size:14px;color:",";"],Qe.GREEN_SUMMER_GRASS),_$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Postcode",componentId:"sc-1q3tp48-10"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),x$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__PriceContainer",componentId:"sc-1q3tp48-11"})(["justify-content:center;align-items:flex-end;padding:5px;"]),y$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Price",componentId:"sc-1q3tp48-12"})(["font-size:16px;color:",";"],Qe.GREEN_SUMMER_GRASS),v$=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__ExclusivityTimerContainer",componentId:"sc-1q3tp48-13"})(["margin-top:12px;"]),b$=({large:e,offer:t,showPrice:n,eventAction:i,eventLabel:o,trackingUserFlow:a,trackingObjectName:s,trackingProperties:r})=>{const l=(0,Ks.useHistory)();return(0,X.jsxs)(r$,{large:e,onPress:()=>{l.push(t.detailViewUrl)},eventAction:i,eventLabel:o,trackingUserFlow:a,trackingObjectName:s,trackingProperties:r,testID:`OfferItem:${t.id||t.code}`,children:[(0,X.jsx)(l$,{children:(0,X.jsx)(p$,{children:t.formattedDate})}),(0,X.jsxs)(d$,{children:[(0,X.jsx)(u$,{children:(0,X.jsx)(m$,{children:i18n.t("offers.offer.time_and_duration",{start:t.formattedStartTime,end:t.formattedEndTime,duration:t.duration/3600})})}),t.showClock&&(0,X.jsx)(WU,{width:24,height:24}),n&&(0,X.jsx)(x$,{children:(0,X.jsx)(y$,{children:i18n.t("offers.offer.formatted_price",{price:t.providerPrice})})})]}),(0,X.jsx)(c$,{children:(0,X.jsxs)(f$,{children:[(0,X.jsx)(g$,{children:(0,X.jsx)(h$,{children:i18n.t(`frequency_names.${t.frequency||"once"}`)})}),(0,X.jsx)(g$,{children:(0,X.jsx)(_$,{children:i18n.t("offers.offer.near_postcode",{postcode:t.address.postcode})})})]})}),t.showExclusivityTimer&&(0,X.jsx)(v$,{children:(0,X.jsx)(s$,{reverseOfferExclusivityEndTime:t.reverseOfferExclusivityEndTime})})]})},w$=(0,Ge.default)(ts).withConfig({displayName:"offer_type__Container",componentId:"sc-ph8xpp-0"})(["color:",";background-color:",";border-radius:20px;padding:10px 20px;margin-right:10px;"],({active:e})=>e?Qe.WHITE:Qe.TEXT_DARK,({active:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.WHITE),C$=(0,Ge.default)(Be.default).withConfig({displayName:"offer_type__Name",componentId:"sc-ph8xpp-1"})(["color:",";"],({active:e})=>e?Qe.WHITE:Qe.TEXT_DARK),j$=({name:e,active:t,selectOfferType:n,total:i,trackingUserFlow:o,trackingObjectName:a,trackingProperties:s})=>(0,X.jsx)(w$,{active:t,onPress:n,trackingUserFlow:o,trackingObjectName:a,trackingProperties:s,children:(0,X.jsxs)(C$,{active:t,children:[e," ",i&&`(${i})`]})}),I$=(0,Ge.default)(ts).withConfig({displayName:"service__Container",componentId:"sc-ufytcy-0"})(["flex-direction:row;justify-content:center;align-items:center;background-color:",";border-radius:15px;padding:10px 15px;width:50%;",""],Qe.WHITE,({active:e})=>e?`\n    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);\n    border: 1px solid ${Qe.GRAY_BORDER};\n    `:""),T$=(0,Ge.default)(Be.default).withConfig({displayName:"service__Name",componentId:"sc-ufytcy-1"})(["background-color:",";color:",";"],Qe.WHITE,({active:e})=>e?Qe.TEXT_DARK:Qe.TEXT_LIGHT),E$=(0,Ge.default)(Cm).withConfig({displayName:"service__StyledCounter",componentId:"sc-ufytcy-2"})(["position:static;margin-left:10px;background-color:",";"],({active:e})=>e?Qe.CRIMSON_2:Qe.CRIMSON_4),N$=({name:e,total:t,active:n,selectService:i,trackingUserFlow:o,trackingObjectName:a,trackingProperties:s})=>{const{isConnected:r}=(0,ta.useNetInfo)();return(0,X.jsxs)(I$,{active:n,onPress:i,disabled:!r,trackingUserFlow:o,trackingObjectName:a,trackingProperties:s,children:[(0,X.jsx)(T$,{active:n,children:e}),null!==t&&t>0&&(0,X.jsx)(E$,{active:n,children:t})]})},k$=(0,Ge.default)(qe.default).withConfig({displayName:"disclaimer__Container",componentId:"sc-1z0ti0g-0"})(["align-items:center;background-color:",";border-radius:10px;padding:10px;"],Qe.GOLD_4),R$=(0,Ge.default)(Be.default).withConfig({displayName:"disclaimer__BoldText",componentId:"sc-1z0ti0g-1"})(["font-weight:700;font-size:14px;color:",";margin:4px 0 10px 0;text-align:center;"],Qe.TEXT_DARK),S$=({message:e})=>(0,X.jsxs)(k$,{children:[(0,X.jsx)(Pa.default,{name:"alert",size:25,color:Qe.GOLD_2,set:"MaterialCommunityIcons"}),(0,X.jsx)(R$,{children:e})]});S$.propTypes={message:qc.default.string.isRequired};const A$=S$;
2729const P$=function(e){const t=e.color||"#406B60",n=e.size||20;return(0,X.jsx)(Wu.default,Object.assign({width:n,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M18.27 1.726l.397-.398-.398.398zM4.501 19.029v.563c.149 0 .292-.06.398-.165l-.398-.398zm-3.5 0H.439c0 .31.252.563.563.563v-.563zm0-3.57l-.398-.399a.563.563 0 00-.165.398h.563zm14.13-13.335a1.937 1.937 0 012.74 0l.795-.796a3.062 3.062 0 00-4.33 0l.795.796zm2.74 0a1.937 1.937 0 010 2.74l.795.795a3.062 3.062 0 000-4.33l-.795.795zm0 2.74L4.104 18.63l.796.796L18.667 5.659l-.795-.795zM4.502 18.466h-3.5v1.126h3.5v-1.125zm9.834-17.138L.604 15.06l.796.796L15.132 2.124l-.796-.796zM.44 15.458v3.571h1.125v-3.57H.44zM12.836 3.624l3.536 3.535.795-.795-3.535-3.536-.796.796z",fill:t})}))};const D$=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:21,height:19,viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsxs)(Wu.G,{fill:"#5C8E85",children:[(0,X.jsx)(Wu.Rect,{y:2,width:21,height:1.5,rx:.75}),(0,X.jsx)(Wu.Rect,{y:9,width:21,height:1.5,rx:.75}),(0,X.jsx)(Wu.Rect,{y:16,width:21,height:1.5,rx:.75}),(0,X.jsx)(Wu.Circle,{cx:5.5,cy:16.5,r:2.5}),(0,X.jsx)(Wu.Circle,{cx:14.5,cy:9.5,r:2.5}),(0,X.jsx)(Wu.Circle,{cx:2.5,cy:2.5,r:2.5})]})}))},M$=(0,Ge.default)(lm).withConfig({displayName:"keep_profile_updated_tooltip__Container",componentId:"sc-cnr04i-0"})(["display:flex;align-self:flex-end;padding:12px 12px 30px 12px;border-radius:16px;background-color:",";max-width:400px;margin:20px 0px 6px 16px;position:relative;"],Qe.GRAY_0),O$=(0,Ge.default)(qe.default).withConfig({displayName:"keep_profile_updated_tooltip__Header",componentId:"sc-cnr04i-1"})(["display:flex;flex-direction:row;align-items:center;"]),z$=(0,Ge.default)(Be.default).withConfig({displayName:"keep_profile_updated_tooltip__Title",componentId:"sc-cnr04i-2"})(["color:",";font-weight:bold;padding:0px 12px;flex-grow:1;text-align:left;"],Qe.WHITE),L$=(0,Ge.default)(qe.default).withConfig({displayName:"keep_profile_updated_tooltip__DescriptionContainer",componentId:"sc-cnr04i-3"})(["display:flex;flex-direction:column;padding-left:34px;"]),q$=(0,Ge.default)(Be.default).withConfig({displayName:"keep_profile_updated_tooltip__Description",componentId:"sc-cnr04i-4"})(["padding-top:8px;color:",";max-width:300px;"],Qe.WHITE),B$=(0,Ge.default)(qe.default).withConfig({displayName:"keep_profile_updated_tooltip__Arrow",componentId:"sc-cnr04i-5"})(["position:absolute;top:-6px;left:280px;width:24px;height:17px;background-color:",";transform:rotate(45deg);"],Qe.GRAY_0),G$=(0,Ge.default)(Pa.default).attrs({name:"information",set:"MaterialCommunityIcons",size:18,color:Qe.GRAY_0}).withConfig({displayName:"keep_profile_updated_tooltip__LightningIcon",componentId:"sc-cnr04i-6"})(["background-color:",";height:23px;width:23px;align-items:center;justify-content:center;border-radius:50px;"],Qe.WHITE),U$=(0,Ge.default)(ts).withConfig({displayName:"keep_profile_updated_tooltip__EditNowCTA",componentId:"sc-cnr04i-7"})(["display:flex;align-self:flex-end;"]),$$=(0,Ge.default)(Be.default).withConfig({displayName:"keep_profile_updated_tooltip__EditNowCTAText",componentId:"sc-cnr04i-8"})(["color:",";text-decoration:underline ",";"],Qe.WHITE,Qe.WHITE),F$=({navigateToKeepProfileUpdated:e,onClose:t})=>(0,X.jsxs)(M$,{elevation:4,children:[(0,X.jsx)(B$,{}),(0,X.jsxs)(O$,{children:[(0,X.jsx)(G$,{}),(0,X.jsx)(z$,{children:i18n.t("keep_profile_up_to_date_tooltip.title")}),(0,X.jsx)(ts,{onPress:t,children:(0,X.jsx)(Pa.default,{name:"close",size:22,color:Qe.WHITE})})]}),(0,X.jsx)(L$,{children:(0,X.jsx)(q$,{children:i18n.t("keep_profile_up_to_date_tooltip.description")})}),(0,X.jsx)(U$,{onPress:e,children:(0,X.jsx)($$,{children:i18n.t("keep_profile_up_to_date_tooltip.edit_now_cta")})})]}),H$=(0,Ge.default)(qe.default).withConfig({displayName:"content__Header",componentId:"sc-iu0vey-0"})(["flex-direction:row;align-items:center;"]),W$=(0,Ge.default)(Be.default).withConfig({displayName:"content__Title",componentId:"sc-iu0vey-1"})(["font-weight:bold;font-size:20px;color:",";flex:1;"],Qe.TEXT_DARK),V$=(0,Ge.default)(qe.default).withConfig({displayName:"content__Services",componentId:"sc-iu0vey-2"})(["flex-direction:row;justify-content:center;margin:20px 0 0;width:100%;"]),K$=(0,Ge.default)(qe.default).withConfig({displayName:"content__ServicePill",componentId:"sc-iu0vey-3"})(["flex-direction:row;justify-content:space-between;border-radius:20px;padding:5px;width:100%;background-color:white;box-shadow:0 1px 15px rgba(0,0,0,0.15);"]),Y$=(0,Ge.default)(qe.default).withConfig({displayName:"content__OfferTypes",componentId:"sc-iu0vey-4"})(["flex-direction:row;justify-content:flex-start;margin:20px 0;width:100%;"]),X$=(0,Ge.default)(qe.default).withConfig({displayName:"content__OfferList",componentId:"sc-iu0vey-5"})(["flex-direction:row;flex-wrap:wrap;width:100%;padding-top:20px;border-style:solid;border-top-width:1px;border-top-color:",";"],Qe.GRAY_BORDER),Z$=(0,Ge.default)(Be.default).withConfig({displayName:"content__ErrorMessage",componentId:"sc-iu0vey-6"})(["text-align:center;"]),Q$=((0,Ge.default)(ws.default).withConfig({displayName:"content__KeepProfileUpdatedButton",componentId:"sc-iu0vey-7"})(["width:32px;height:32px;border-radius:50px;background-color:",";margin-right:16px;justify-content:center;align-items:center;"],Qe.GREEN_SUMMER_GRASS),(0,Te.observer)(()=>{const{isConnected:e}=(0,ta.useNetInfo)(),{isMobile:t}=uu(),n=lu(),{pages:{offers:i,verticalOffers:o},session:{currentUser:a,settings:s,counters:r,countryConfig:{showOfferDisclaimer:l,offers:d},settings:{viewPermissions:{hasNewOffersBlocked:c}}},offers:{showKeepProfileUpdatedTooltip:u,setSeenKeepProfileUpdatedTooltip:p},analytics:{autoTrackEnhanced:m}}=lt(),[f,g]=(0,K.useState)(null),[h,_]=(0,K.useState)(!1),[x,y]=(0,K.useState)(Gl),[v,b]=(0,K.useState)(Ol),[w,C]=(0,K.useState)(!1),[j,I]=(0,K.useState)({inPrice:!0,belowPrice:!0,oneOff:!0,recurring:!0,maxRadius:null===a||void 0===a?void 0:a.maxRadius,minDuration:$l.minimum,maxDuration:$l.maximum}
2729),T=x===Gl,E=T?i.collection.filter(({selectedByCustomer:e})=>e).length:o.collection.filter(({selected:e})=>e).length,N=T?i.collection.filter(({selectedByCustomer:e})=>!e).length:o.collection.filter(({selected:e})=>!e).length,k=(0,K.useCallback)(e=>{p(),m({userFlow:za,action:Xa.click,objectName:"edit profile",properties:{serviceType:x,source:e}}),n("/provider/keep_profile_updated")},[n]),R=(0,K.useCallback)(()=>{m({userFlow:za,action:Xa.open,objectName:"filter",properties:{serviceType:x}}),_(e=>!e)},[m,_]);if((0,K.useEffect)(()=>{e&&(async()=>{g(null);try{T?(i.reset(),await i.fetch(j)):(o.reset(),await o.fetch()),C(!0)}catch(ca){g(!0)}})()},[j,x,e]),(0,K.useEffect)(()=>{0===E&&N>0&&b(zl)},[E,N]),(0,K.useEffect)(()=>{!w||i.loading&&T||o.loading&&!T||m({userFlow:za,action:Xa.view,objectName:`${v} tab`,properties:{serviceType:x,offerCount:v===Ol?E:N}})},[w,x,v,i.loading,T,o.loading,T]),f)return(0,X.jsx)(Z$,{children:T?i18n.t("offers.errors.load_offers"):i18n.t("offers.errors.load_vertical_offers")});if(i.loading&&T||o.loading&&!T)return(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS});const S=i.collection.length||null,A=o.collection.length||r.totalVerticals,P=d.showAllOffersWithoutFiltering?i.collection:i.collection.filter(({selectedByCustomer:e})=>e===(v===Ol)),D=o.collection.filter(({selected:e})=>e===(v===Ol)),M=t||["ios","android"].includes("web"),O=d.availableOfferTypes;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(H$,{children:[(0,X.jsx)(W$,{children:i18n.t("offers.title")}),!1,T&&d.showFilterButton&&(0,X.jsx)(ws.default,{onPress:R,children:(0,X.jsx)(D$,{})})]}),u&&(0,X.jsx)(F$,{navigateToKeepProfileUpdated:()=>k("Tooltip"),onClose:()=>{p(),m({userFlow:za,action:Xa.close,objectName:"edit profile Tooltip",properties:{serviceType:x}})}}),T&&(0,X.jsx)(BU,{opened:h,params:j,setOpened:_,setParams:I,maxRadius:null===a||void 0===a?void 0:a.maxRadius}),(null===s||void 0===s?void 0:s.featureFlags.verticalOffers)&&(0,X.jsx)(V$,{children:(0,X.jsx)(K$,{children:Ul.map(e=>(0,X.jsx)(N$,{name:i18n.t(`offers.service.${e}`),active:e===x,total:e===Gl?S:A,selectService:()=>(e=>{y(e),b(ql[0])})(e),trackingUserFlow:za,trackingObjectName:"service tab",trackingProperties:{serviceType:e,offerCount:e===Gl?S:A}},e))})}),(0,X.jsx)(Y$,{children:O.map(e=>(0,X.jsx)(j$,{name:i18n.t(`offers.offer_type.${e}`),active:e===v,selectOfferType:()=>b(e),total:e===Ol?E:N,trackingUserFlow:za,trackingObjectName:`${e} tab`,trackingProperties:{serviceType:x,offerCount:e===Ol?E:N}},e))}),l&&T&&P.length>0&&v===Ol&&(0,X.jsx)(A$,{message:i18n.t("selected_offer.action.warning")}),T&&(0,X.jsx)(X$,{children:P.length>0?P.map(e=>{var t;return(0,X.jsx)(b$,{large:M,offer:e,showPrice:!(null!==s&&void 0!==s&&null!==(t=s.featureFlags)&&void 0!==t&&t.hidePricesFromProvider),trackingUserFlow:za,trackingObjectName:"offer card",trackingProperties:e.trackingProperties},e.code)}):(0,X.jsx)(FU,{})}),!T&&(0,X.jsx)(X$,{children:D.length>0?D.map(e=>{var t;return(0,X.jsx)(b$,{large:M,offer:e,showPrice:!(null!==s&&void 0!==s&&null!==(t=s.featureFlags)&&void 0!==t&&t.hidePricesFromProvider),eventAction:`offer ${e.code}`,eventLabel:"from offers"},e.id)}):(0,X.jsx)(FU,{})}),c&&(0,X.jsx)(JC,{userFlow:za,showBanner:!1,forceModalOpen:!0})]})})),J$=(0,Ge.default)(ws.default).withConfig({displayName:"tags__ActionButton",componentId:"sc-1hlnu3z-0"})(["background-color:",";border-radius:8px;height:34px;justify-content:center;align-items:center;padding:0 12px;"],Qe.GREEN_WINTER_MIST),eF=(0,Ge.default)(Be.default).withConfig({displayName:"tags__ActionText",componentId:"sc-1hlnu3z-1"})(["color:",";font-weight:600;font-size:13px;"],Qe.TEXT_DARK),tF=(0,Ge.default)(Be.default).withConfig({displayName:"tags__DurationText",componentId:"sc-1hlnu3z-2"})(["color:",";font-size:12px;font-weight:bold;"],Qe.TEXT_DARK),nF=({})=>(0,X.jsx)(J$,{children:(0,X.jsx)(eF,{children:i18n.t("offers.offer.card.tag.new_customer")})}),iF=({})=>(0,X.jsx)(J$,{children:(0,X.jsx)(eF,{children:i18n.t("offers.offer.card.tag.old_customer")})}),oF=({offer:e})=>e.isCountdown?null:(0,X.jsx)(J$,{children:(0,X.jsx)(eF,{children:i18n.t("offers.offer.card.tag.accept_now")})}),aF=({offer:e})=>{const t=C.DateTime.fromISO(e.countdownEndTime).diffNow(),{hours:n,minutes:i}=t.shiftTo("hours","minutes").toObject(),o=[n&&i18n.t("time.hours.short",{count:Math.floor(n)}),i&&i18n.t("time.minutes.short",{count:Math.floor(i)}
2729)].filter(Boolean);return t.as("seconds")>0?(0,X.jsx)(J$,{children:(0,X.jsxs)(eF,{children:[i18n.t("offers.offer.card.tag.waiting_results"),(0,X.jsx)(tF,{children:` ${o.join(" ")} `})]})}):null},sF=(0,Ge.default)(ts).withConfig({displayName:"offer_item__Container",componentId:"sc-16fnb8v-0"})(["flex-direction:column;width:","%;background-color:",";border:1px solid ",";border-radius:10px;margin:5px 2px;padding:12px;box-shadow:0 1px 10px rgba(0,0,0,0.1);"],({large:e})=>e?100:49,Qe.WHITE,Qe.GRAY_BORDER),rF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__HeaderContainer",componentId:"sc-16fnb8v-1"})(["flex-direction:row;"]),lF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__BodyContainer",componentId:"sc-16fnb8v-2"})(["flex-direction:row;align-items:center;justify-content:space-between;"]),dF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__FooterContainer",componentId:"sc-16fnb8v-3"})(["flex-direction:row;"]),cF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__DetailsContainer",componentId:"sc-16fnb8v-4"})(["align-items:flex-start;justify-content:center;"]),uF=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Date",componentId:"sc-16fnb8v-5"})(["font-weight:bold;font-size:14px;color:",";padding-bottom:5px;"],Qe.TEXT_DARK),pF=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Time",componentId:"sc-16fnb8v-6"})(["font-size:14px;color:",";padding-bottom:4px;"],Qe.TEXT_DARK),mF=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__FrequencyPlace",componentId:"sc-16fnb8v-7"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),fF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__TextWrapper",componentId:"sc-16fnb8v-8"})(["padding:0 5px 0 0;"]),gF=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Frequency",componentId:"sc-16fnb8v-9"})(["font-size:14px;color:",";"],Qe.GREEN_SUMMER_GRASS),hF=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Postcode",componentId:"sc-16fnb8v-10"})(["font-size:14px;color:",";"],Qe.TEXT_DARK),_F=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__PriceContainer",componentId:"sc-16fnb8v-11"})(["justify-content:center;align-items:flex-end;padding:5px;"]),xF=(0,Ge.default)(Be.default).withConfig({displayName:"offer_item__Price",componentId:"sc-16fnb8v-12"})(["font-size:16px;color:",";"],Qe.GREEN_SUMMER_GRASS),yF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__TagsContainer",componentId:"sc-16fnb8v-13"})(["margin-top:10px;flex-direction:row;justify-content:flex-start;"]),vF=(0,Ge.default)(qe.default).withConfig({displayName:"offer_item__ExclusivityTimerContainer",componentId:"sc-16fnb8v-14"})(["margin-top:12px;"]),bF=({large:e,offer:t,offerType:n,showPrice:i,eventAction:o,eventLabel:a,trackingUserFlow:s,trackingObjectName:r,trackingProperties:l})=>{const d=(0,Ks.useHistory)();return(0,X.jsxs)(sF,{large:e,onPress:()=>{d.push(t.existingCustomer?`/provider/new_request/${t.code}`:t.detailViewUrl)},eventAction:o,eventLabel:a,trackingUserFlow:s,trackingObjectName:r,trackingProperties:l,testID:`OfferItem:${t.id||t.code}`,children:[(0,X.jsx)(rF,{children:(0,X.jsx)(uF,{children:t.formattedDate})}),(0,X.jsxs)(lF,{children:[(0,X.jsx)(cF,{children:(0,X.jsx)(pF,{children:i18n.t("offers.offer.time_and_duration",{start:t.formattedStartTime,end:t.formattedEndTime,duration:t.duration/3600})})}),i&&(0,X.jsx)(_F,{children:(0,X.jsx)(xF,{children:i18n.t("offers.offer.formatted_price",{price:t.providerPrice})})})]}),(0,X.jsx)(dF,{children:(0,X.jsxs)(mF,{children:[(0,X.jsx)(fF,{children:(0,X.jsx)(gF,{children:i18n.t(`frequency_names.${t.frequency||"once"}`)})}),(0,X.jsx)(fF,{children:(0,X.jsx)(hF,{children:i18n.t("offers.offer.near_postcode",{postcode:t.address.postcode})})})]})}),n===Ol&&t.showExclusivityTimer&&(0,X.jsx)(vF,{children:(0,X.jsx)(s$,{reverseOfferExclusivityEndTime:t.reverseOfferExclusivityEndTime})}),(0,X.jsxs)(yF,{children:[n===Ol&&(t.existingCustomer?(0,X.jsx)(iF,{offer:t}):(0,X.jsx)(nF,{offer:t})),n===zl&&(0,X.jsx)(oF,{offer:t}),n===Ll&&(0,X.jsx)(aF,{offer:t})]})]})},wF=(0,Ge.default)(qe.default).withConfig({displayName:"content__Header",componentId:"sc-1y2kxey-0"})(["flex-direction:row;align-items:center;"]),CF=(0,Ge.default)(Be.default).withConfig({displayName:"content__Title",componentId:"sc-1y2kxey-1"})(["font-weight:bold;font-size:20px;color:",";flex:1;"],Qe.TEXT_DARK),jF=(0,Ge.default)(qe.default).withConfig({displayName:"content__Services",componentId:"sc-1y2kxey-2"})(["flex-direction:row;justify-content:center;margin:20px 0 0;width:100%;"]),IF=(0,Ge.default)(qe.default).withConfig({displayName:"content__ServicePill",componentId:"sc-1y2kxey-3"})(["flex-direction:row;justify-content:space-between;border-radius:20px;padding:5px;width:100%;background-color:white;box-shadow:0 1px 15px rgba(0,0,0,0.15);"]),TF=(0,Ge.default)(Vf.default).attrs({horizontal:!0,showsHorizontalScrollIndicator:!1}).withConfig({displayName:"content__OfferTypes",componentId:"sc-1y2kxey-4"})(["margin:20px 0;width:100%;"]),EF=(0,Ge.default)(qe.default).withConfig({displayName:"content__OfferList",componentId:"sc-1y2kxey-5"})(["flex-direction:row;flex-wrap:wrap;width:100%;padding-top:20px;border-style:solid;border-top-width:1px;border-top-color:",";"],Qe.GRAY_BORDER),NF=(0,Ge.default)(Be.default).withConfig({displayName:"content__ErrorMessage",componentId:"sc-1y2kxey-6"})(["text-align:center;"]),kF=((0,Ge.default)(ws.default).withConfig({displayName:"content__KeepProfileUpdatedButton",componentId:"sc-1y2kxey-7"})(["width:32px;height:32px;border-radius:50px;background-color:",";margin-right:16px;justify-content:center;align-items:center;"],Qe.GREEN_SUMMER_GRASS),(0,Te.observer)(()=>{const{isConnected:e}=(0,ta.useNetInfo)(),{isMobile:t}=uu(),n=lu(),{pages:{offers:i,verticalOffers:o},session:{currentUser:a,settings:s,counters:r,countryConfig:{showOfferDisclaimer:l,offers:d},settings:{viewPermissions:{hasNewOffersBlocked:c}}},offers:{showKeepProfileUpdatedTooltip:u,setSeenKeepProfileUpdatedTooltip:p},analytics:{autoTrackEnhanced:m}}=lt(),[f,g]=(0,K.useState)(null),[h,_]=(0,K.useState)(!1),[x,y]=(0,K.useState)(Gl),[v,b]=(0,K.useState)(Ol),[w,C]=(0,K.useState)(!1),[j,I]=(0,K.useState)({inPrice:!0,belowPrice:!0,oneOff:!0,recurring:!0,maxRadius:null===a||void 0===a?void 0:a.maxRadius,minDuration:$l.minimum,maxDuration:$l.maximum}),T=x===Gl,E=i.collection.length||null,N=o.collection.length||r.totalVerticals,k=({countdownEndTime:e})=>e?new Date(e).getTime():0,R={[Ol]:i.collection.filter(({selectedByCustomer:e,optedIn:t})=>e&&!t).sort((e,t)=>
2729Number(e.existingCustomer)-Number(t.existingCustomer)),[zl]:i.collection.filter(({selectedByCustomer:e,optedIn:t})=>!e&&!t).sort((e,t)=>Number(e.isCountdown)-Number(t.isCountdown)),[Ll]:i.collection.filter(({optedIn:e})=>e).sort((e,t)=>k(t)-k(e))},S={[Ol]:T?R[Ol].length:o.collection.filter(({selected:e})=>e).length,[zl]:T?R[zl].length:o.collection.filter(({selected:e})=>!e).length,[Ll]:T?R[Ll].length:o.collection.filter(({optedIn:e})=>e).length},A=d.showAllOffersWithoutFiltering?i.collection:R[v],P=(0,K.useCallback)(e=>{p(),m({userFlow:za,action:Xa.click,objectName:"edit profile",properties:{serviceType:x,source:e}}),n("/provider/keep_profile_updated")},[n]),D=(0,K.useCallback)(()=>{m({userFlow:za,action:Xa.open,objectName:"filter",properties:{serviceType:x}}),_(e=>!e)},[m,_]);(0,K.useEffect)(()=>{e&&(async()=>{g(null);try{T?(i.reset(),await i.fetch(j)):(o.reset(),await o.fetch()),C(!0)}catch(ca){g(!0)}})()},[j,x,e]);const M=S[Ol],O=S[zl];if((0,K.useEffect)(()=>{0===M&&O>0&&b(zl)},[M,O]),(0,K.useEffect)(()=>{!w||i.loading&&T||o.loading&&!T||m({userFlow:za,action:Xa.view,objectName:`${v} tab`,properties:{serviceType:x,offerCount:S[v]}})},[w,x,v,i.loading,T,o.loading,T]),f)return(0,X.jsx)(NF,{children:T?i18n.t("offers.errors.load_offers"):i18n.t("offers.errors.load_vertical_offers")});if(i.loading&&T||o.loading&&!T)return(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS});const z=o.collection.filter(({selected:e})=>e===(v===Ol)),L=t||["ios","android"].includes("web"),q=Bl;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(wF,{children:[(0,X.jsx)(CF,{children:i18n.t("offers.title")}),!1,T&&d.showFilterButton&&(0,X.jsx)(ws.default,{onPress:D,children:(0,X.jsx)(D$,{})})]}),u&&(0,X.jsx)(F$,{navigateToKeepProfileUpdated:()=>P("Tooltip"),onClose:()=>{p(),m({userFlow:za,action:Xa.close,objectName:"edit profile Tooltip",properties:{serviceType:x}})}}),T&&(0,X.jsx)(BU,{opened:h,params:j,setOpened:_,setParams:I,maxRadius:null===a||void 0===a?void 0:a.maxRadius}),(null===s||void 0===s?void 0:s.featureFlags.verticalOffers)&&(0,X.jsx)(jF,{children:(0,X.jsx)(IF,{children:Ul.map(e=>(0,X.jsx)(N$,{name:i18n.t(`offers.service.${e}`),active:e===x,total:e===Gl?E:N,selectService:()=>(e=>{y(e),b(Bl[0])})(e),trackingUserFlow:za,trackingObjectName:"service tab",trackingProperties:{serviceType:e,offerCount:e===Gl?E:N}},e))})}),(0,X.jsx)(TF,{children:q.map(e=>(0,X.jsx)(j$,{name:i18n.t(`offers.offer_type.${e}`),active:e===v,selectOfferType:()=>b(e),total:S[e],trackingUserFlow:za,trackingObjectName:`${e} tab`,trackingProperties:{serviceType:x,offerCount:S[e]}},e))}),l&&T&&A.length>0&&v===Ol&&(0,X.jsx)(A$,{message:i18n.t("selected_offer.action.warning")}),T&&(0,X.jsx)(EF,{children:A.length>0?A.map(e=>{var t;return(0,X.jsx)(bF,{large:L,offer:e,offerType:v,showPrice:!(null!==s&&void 0!==s&&null!==(t=s.featureFlags)&&void 0!==t&&t.hidePricesFromProvider),trackingUserFlow:za,trackingObjectName:"offer card",trackingProperties:e.trackingProperties},e.code)}):(0,X.jsx)(FU,{})}),!T&&(0,X.jsx)(EF,{children:z.length>0?z.map(e=>{var t;return(0,X.jsx)(b$,{large:L,offer:e,showPrice:!(null!==s&&void 0!==s&&null!==(t=s.featureFlags)&&void 0!==t&&t.hidePricesFromProvider),eventAction:`offer ${e.code}`,eventLabel:"from offers"},e.id)}):(0,X.jsx)(FU,{})}),c&&(0,X.jsx)(JC,{userFlow:za,showBanner:!1,forceModalOpen:!0})]})})),RF=(0,Te.observer)(()=>{const{session:{settings:e}}=lt(),t=null===e||void 0===e?void 0:e.isProviderUnderExperimentAbTest(Lo);return(0,X.jsx)(Rf,{title:i18n.t("offers.header.title"),contentBackgroundColor:Qe.GRAY_4,content:()=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(pf,{}),t?(0,X.jsx)(kF,{}):(0,X.jsx)(Q$,{})]}),contentContainerStyle:{}})}),SF=(0,Ge.default)(qe.default).withConfig({displayName:"bubble__Container",componentId:"sc-h8fv7x-0"})(["align-items:center;"]),AF=(0,Ge.default)(qe.default).withConfig({displayName:"bubble__BubbleView",componentId:"sc-h8fv7x-1"})(["background-color:",";padding:6px 7px;border-radius:6px;align-items:center;justify-content:center;"],Qe.GREEN_PINE_OIL),PF=(0,Ge.default)(qe.default).withConfig({displayName:"bubble__Arrow",componentId:"sc-h8fv7x-2"})(["width:0;height:0;margin-top:-1px;border-left-width:5px;border-right-width:5px;border-top-width:7px;border-left-color:transparent;border-right-color:transparent;border-top-color:",";z-index:99;"],Qe.GREEN_PINE_OIL),DF=(0,Ge.default)(Be.default).withConfig({displayName:"bubble__Price",componentId:"sc-h8fv7x-3"})(["color:",";font-weight:bold;font-size:12px;line-height:16px;"],Qe.WHITE),MF=({price:e,style:t})=>(0,X.jsxs)(SF,{style:t,children:[(0,X.jsx)(AF,{children:(0,X.jsx)(DF,{children:e})}),(0,X.jsx)(PF,{})]});
2729MF.propTypes={price:ze().string.isRequired,style:ze().oneOfType([ze().object,ze().array])};const OF=MF,zF=e=>(0,cu.useMediaQuery)(e),LF=n(70584),qF=n(60535),BF=n(50154),GF=(0,Ge.default)(qe.default).withConfig({displayName:"map_image__Container",componentId:"sc-c6obn7-0"})(["position:relative;"]),UF=(0,Ge.default)(pu.default).attrs({source:LF}).withConfig({displayName:"map_image__Layer1Image",componentId:"sc-c6obn7-1"})(["width:100%;height:200px;position:absolute;max-width:718px;align-self:center;"]),$F=(0,Ge.default)(pu.default).attrs(({mobile:e})=>({source:e?BF:qF})).withConfig({displayName:"map_image__Layer2Image",componentId:"sc-c6obn7-2"})(["height:200px;width:","px;resize-mode:contain;"],({mobile:e})=>e?"375":"718"),FF=(0,Ge.default)(qe.default).withConfig({displayName:"map_image__Layer2Container",componentId:"sc-c6obn7-3"})(["position:relative;width:","px;height:200px;align-self:center;"],({mobile:e})=>e?"375":"718"),HF=(0,Ge.default)(OF).withConfig({displayName:"map_image__Bubble",componentId:"sc-c6obn7-4"})(["position:absolute;z-index:99;"]),WF=e=>oA().t(`fake_job_offers.map_image.bubbles.${e}.price`),VF=()=>{const e=zF({maxWidth:600}),t=(0,K.useMemo)(()=>(e?[{price:WF(1),top:84,left:45},{price:WF(2),top:107,left:96},{price:WF(3),top:95,left:256},{price:WF(4),top:76,left:307}]:[{price:WF(1),top:79,left:62},{price:WF(2),top:18,left:127},{price:WF(3),top:58,left:479},{price:WF(4),top:45,left:370},{price:WF(5),top:113,left:255},{price:WF(6),top:88,left:600}]).map(({price:e,top:t,left:n},i)=>(0,X.jsx)(HF,{price:e,style:{top:t,left:n}},i)),[e]);return(0,X.jsxs)(GF,{children:[(0,X.jsx)(UF,{}),(0,X.jsxs)(FF,{mobile:e,children:[(0,X.jsx)($F,{mobile:e}),t]})]})},KF=(0,Ge.default)(qe.default).withConfig({displayName:"container__Wrapper",componentId:"sc-d2p9hp-0"})(["flex-grow:1;"]),YF=({children:e,style:t})=>(0,X.jsx)(KF,{style:t,children:e});YF.propTypes={children:ze().node,style:ze().oneOfType([ze().object,ze().array])};const XF=YF,ZF=(0,Ge.default)(qe.default).withConfig({displayName:"content__ContentStatic",componentId:"sc-s7d55o-0"})(["flex:1;"]),QF=(0,Ge.default)(Vf.default).attrs({contentContainerStyle:{flexGrow:1}}).withConfig({displayName:"content__ContentScrollView",componentId:"sc-s7d55o-1"})(["flex:1;"]),JF=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}):null},eH=()=>{const{isDesktop:e}=uu();return e?null:(0,X.jsx)(sf,{})},tH=()=>{const e=(0,Re.useSafeAreaInsets)(),{isConnected:t}=(0,ta.useNetInfo)();return t?null:(0,X.jsx)(pm,{paddingTop:e.top})},nH=({children:e,style:t})=>(0,X.jsxs)(XF,{style:t,children:[(0,X.jsx)(tH,{}),(0,X.jsx)(JF,{}),(0,X.jsx)(ZF,{children:e}),(0,X.jsx)(eH,{})]});nH.propTypes={children:ze().node,style:ze().oneOfType([ze().object,ze().array])};const iH=nH,oH=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__Container",componentId:"sc-y7kn8b-0"})(["padding:16px;border:1px solid ",";border-radius:7px;flex-direction:row;width:100%;justify-content:space-between;align-items:center;background-color:",";"],Qe.GRAY_BORDER,Qe.WHITE),aH=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__CustomerName",componentId:"sc-y7kn8b-1"})(["font-size:14px;font-weight:700;line-height:19px;color:",";margin-bottom:8px;"],Qe.TEXT_DARK),sH=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__EventDate",componentId:"sc-y7kn8b-2"})(["font-size:13px;font-weight:400;line-height:18px;color:",";margin-bottom:4px;"],Qe.TEXT_DARK),rH=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__EventDetails",componentId:"sc-y7kn8b-3"})(["font-size:13px;font-weight:400;line-height:18px;color:",";"],Qe.TEXT_DARK),lH=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__Price",componentId:"sc-y7kn8b-4"})(["font-size:16px;font-weight:700;color:",";"],Qe.GREEN_SUMMER_GRASS),dH=({name:e,date:t,details:n,price:i})=>(0,X.jsxs)(oH,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(aH,{children:e}),(0,X.jsx)(sH,{children:t}),(0,X.jsx)(rH,{children:n})]}),(0,X.jsx)(lH,{children:i})]});dH.propTypes={name:ze().string,date:ze().string,details:ze().str
2729ing,price:ze().string};const cH=dH;const uH=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:54,height:54,viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsx)(Wu.Path,{fill:"#306C60",d:"M10 11H44V42H10z"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.794 7.794C4.5 11.092 4.5 16.394 4.5 27s0 15.91 3.294 19.204C11.092 49.5 16.394 49.5 27 49.5s15.91 0 19.204-3.296C49.5 42.912 49.5 37.606 49.5 27c0-10.607 0-15.91-3.296-19.206C42.912 4.5 37.606 4.5 27 4.5c-10.607 0-15.91 0-19.206 3.294zm15.93 9.12a1.686 1.686 0 00-.616-2.739 1.687 1.687 0 00-1.83.412l-5.206 5.467-1.35-1.417a1.69 1.69 0 00-2.415-.09 1.687 1.687 0 00-.029 2.416l2.572 2.7a1.685 1.685 0 002.444 0l6.43-6.75zm5.526 1.648a1.687 1.687 0 100 3.375H40.5a1.687 1.687 0 100-3.375H29.25zm-5.528 14.101a1.688 1.688 0 10-2.444-2.326l-5.206 5.467-1.35-1.417a1.69 1.69 0 00-1.849-.446 1.687 1.687 0 00-.595 2.772l2.572 2.7a1.685 1.685 0 002.444 0l6.428-6.75zm5.528 1.65a1.687 1.687 0 100 3.374H40.5a1.687 1.687 0 100-3.374H29.25z",fill:"#E1F2ED"})]}))},pH=(0,Ge.default)(qe.default).withConfig({displayName:"complete_onboarding_requirements_modal__Container",componentId:"sc-1ygn8z8-0"})(["align-items:center;background-color:",";padding:40px 16px;"," ",""],Qe.WHITE,({theme:e})=>e.isDesktop&&"\n      align-self: center;\n      max-width: 400px;\n      width: 100%;\n      border-radius: 12px;\n  ",({theme:e})=>!e.isDesktop&&`\n      position: absolute;\n      bottom: 0;\n      left: 0;\n      right: 0;\n      padding-bottom: ${40+e.insets.bottom}px;\n  `),mH=(0,Ge.default)(Be.default).withConfig({displayName:"complete_onboarding_requirements_modal__Title",componentId:"sc-1ygn8z8-1"})(["font-size:18px;font-weight:700;line-height:24px;margin-top:28px;margin-bottom:14px;color:",";"],Qe.TEXT_DARK),fH=(0,Ge.default)(Be.default).withConfig({displayName:"complete_onboarding_requirements_modal__Description",componentId:"sc-1ygn8z8-2"})(["font-size:15px;font-weight:400;line-height:20px;color:",";margin-bottom:39px;text-align:center;max-width:300px;"],Qe.TEXT_DARK),gH=(0,Ge.default)(ms).withConfig({displayName:"complete_onboarding_requirements_modal__GoToDashboardButton",componentId:"sc-1ygn8z8-3"})(["width:100%;"]),hH=()=>{const e=lu(),{autoTrack:t}=mt(),n=(0,K.useCallback)(()=>{t("User clicked on Go to Dashboard","fake offers page"),e(wi())},[]);return(0,X.jsx)(gs,{isVisible:!0,style:{margin:0},children:(0,X.jsxs)(pH,{children:[(0,X.jsx)(uH,{}),(0,X.jsx)(mH,{children:i18n.t("fake_job_offers.complete_onboarding_requirements_modal.title")}),(0,X.jsx)(fH,{children:i18n.t("fake_job_offers.complete_onboarding_requirements_modal.description")}),(0,X.jsx)(gH,{fontSize:"15px",onPress:n,children:i18n.t("fake_job_offers.complete_onboarding_requirements_modal.actions.go_to_dashboard")})]})})},_H=(0,Ge.default)(iH).withConfig({displayName:"fake_offers__StandardLayout",componentId:"sc-atc4d5-0"})(["background-color:",";"],({theme:e})=>e.isDesktop?Qe.GRAY_4:Qe.WHITE),xH=(0,Ge.default)(qe.default).withConfig({displayName:"fake_offers__Container",componentId:"sc-atc4d5-1"})(["padding:",";max-width:718px;align-self:center;width:100%;flex:1;"],({theme:e})=>e.isDesktop?"16px 0px":"16px"),yH=(0,Ge.default)(Be.default).withConfig({displayName:"fake_offers__Title",componentId:"sc-atc4d5-2"})(["font-size:18px;font-weight:600;color:",";margin-top:16px;margin-bottom:",";"],Qe.TEXT_DARK,({theme:e})=>e.isDesktop?"28px":"16px"),vH=(0,Ge.default)(qe.default).withConfig({displayName:"fake_offers__EventsList",componentId:"sc-atc4d5-3"})(["flex-direction:row;flex-wrap:wrap;justify-content:space-between;gap:12px;"]),bH=(0,Ge.default)(qe.default).withConfig({displayName:"fake_offers__EventCardContainer",componentId:"sc-atc4d5-4"})(["flex-basis:",";flex-grow:1;"],({theme:e})=>e.isDesktop?"48%":"100%"),wH=()=>{const e=i18n.t("fake_job_offers.offers",{defaultValue:{}});return(0,X.jsxs)(_H,{children:[(0,X.jsx)(VF,{}),(0,X.jsx)(QF,{children:(0,X.jsxs)(xH,{children:[(0,X.jsx)(yH,{children:i18n.t("fake_job_offers.title")}),(0,X.jsx)(vH,{children:Object.values(e).map((e,t)=>(0,X.jsx)(bH,{children:(0,X.jsx)(cH,Object.assign({},e))},t))})]})}),(0,X.jsx)(hH,{})]})},CH=()=>{const{session:{currentUser:e}}=lt();return(null===e||void 0===e?void 0:e.onboarded)?(0,X.jsx)(RF,{}):(0,X.jsx)(wH,{})},jH=_t.gql`
2730  query providerVerticalRequestCandidate($id: ID!) {
2731    providerVerticalRequestCandidate(id: $id) {
2732      id
2733      request {
2734        id
2735        customer {
2736          id
2737          receivedRatings {
2738            average
2739            count
2740          }
2741        }
2742        category
2743        description
2744        createdAt
2745        duration
2746        frequency
2747        starttime
2748        pictureUrls
2749        pricingUnit
2750        pricingModel
2751        unitQuantity
2752        address {
2753          id
2754          postcode
2755          address
2756          latitude
2757          longitude
2758        }
2759        fullAddress
2760        previousAddress {
2761          id
2762          address1
2763          latitude
2764          longitude
2765        }
2766        currentProviderCustomerPricePerHour
2767        currentProviderCommissionPerHour
2768        currentProviderPayoutPerHour
2769        currentProviderTotalPayout
2770        currentProviderTotalCustomerPrice
2771        currentProviderTotalCommission
2772        details {
2773          customerOwnsLadder
2774        }
2775        pickupAttempt {
2776          id
2777          scheduledAt
2778        }
2779        pricingItems {
2780          name
2781          quantity
2782        }
2783        items {
2784          name
2785          value
2786          type
2787        }
2788      }
2789    }
2790  }
2791`,IH=_t.gql`
2792  query verticalOptableRequest($id: ID!) {
2793    verticalOptableRequest(id: $id) {
2794      id
2795      customer {
2796        id
2797        receivedRatings {
2798          average
2799          count
2800        }
2801      }
2802      category
2803      description
2804      createdAt
2805      duration
2806      frequency
2807      starttime
2808      pictureUrls
2809      pricingUnit
2810      unitQuantity
2811      currentProviderTotalPayout
2812      address {
2813        id
2814        postcode
2815        address
2816        latitude
2817        longitude
2818      }
2819      fullAddress
2820      previousAddress {
2821        id
2822        address1
2823        latitude
2824        longitude
2825      }
2826      currentProviderCustomerPricePerHour
2827      currentProviderCommissionPerHour
2828      currentProviderPayoutPerHour
2829      currentProviderTotalPayout
2830      details {
2831        customerOwnsLadder
2832      }
2833      items {
2834        name
2835        value
2836        type
2837      }
2838      pricingItems {
2839        name
2840        quantity
2841      }
2842    }
2843  }
2844`,TH=_t.gql`
2845  mutation acceptProviderVerticalOffer($candidateId: ID!) {
2846    acceptProviderVerticalOffer(candidateId: $candidateId) {
2847      success
2848    }
2849  }
2850`,EH=_t.gql`
2851  mutation rejectProviderVerticalOffer($candidateId: ID!) {
2852    rejectProviderVerticalOffer(candidateId: $candidateId) {
2853      success
2854    }
2855  }
2856`,NH=_t.gql`
2857  mutation optInVerticalRequest($requestId: ID!) {
2858    optInVerticalRequest(requestId: $requestId) {
2859      success
2860    }
2861  }
2862`,kH=(0,Ge.default)(qe.default).withConfig({displayName:"heading__Container",componentId:"sc-9fan8j-0"})(["background-color:",";flex-direction:row;align-items:center;padding:20px;justify-content:space-between;",""],Qe.GREEN_FROSTY_GREEN,({isDesktop:e})=>e&&`width: ${Vj};`),RH=(0,Ge.default)(qe.default).withConfig({displayName:"heading__ContainerLeft",componentId:"sc-9fan8j-1"})(["flex-direction:row;align-items:center;flex-grow:1;",""],({isDesktop:e})=>!e&&"justify-content: space-between;"),SH=(0,Ge.default)(qe.default).withConfig({displayName:"heading__ContainerRight",componentId:"sc-9fan8j-2"})(["flex-direction:row;align-items:center;gap:10px;"]),AH=(0,Ge.default)(ws.default).withConfig({displayName:"heading__BackButton",componentId:"sc-9fan8j-3"})(["padding-right:10px;margin-left:-5px;"]),PH=(0,Ge.default)(qe.default).withConfig({displayName:"heading__Service",componentId:"sc-9fan8j-4"})(["padding-right:20px;",""],({isDesktop:e})=>!e&&"flex-grow: 1px;"),DH=(0,Ge.default)(qe.default).withConfig({displayName:"heading__Price",componentId:"sc-9fan8j-5"})(["width:100px;border-left-width:1px;border-color:",";padding-left:20px;"],Qe.GREEN_IRISH_BREEZE),MH=(0,Ge.default)(Be.default).withConfig({displayName:"heading__Label",componentId:"sc-9fan8j-6"})(["font-size:13px;color:",";padding-bottom:4px;font-weight:600;"],Qe.GRAY_1),OH=(0,Ge.default)(Be.default).withConfig({displayName:"heading__Value",componentId:"sc-9fan8j-7"})(["font-size:15px;font-weight:700;color:",";"],Qe.TEXT_DARK),zH=({service:e,price:t,actions:n=null})=>{const{isDesktop:i}=uu(),o=(0,Ks.useHistory)();return(0,X.jsxs)(kH,{isDesktop:i,children:[(0,X.jsxs)(RH,{isDesktop:i,children:[i&&(0,X.jsx)(AH,{onPress:()=>o.push("/provider/offers"),children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-left",size:22,color:Qe.TEXT_DARK})}),(0,X.jsxs)(PH,{isDesktop:i,children:[(0,X.jsx)(MH,{children:i18n.t("offer.heading.service_name")}),(0,X.jsx)(OH,{children:i18n.t(`services.details.${e}.title`)})]}),(0,X.jsxs)(DH,{children:[(0,X.jsx)(MH,{children:i18n.t("offer.heading.price")}),(0,X.jsx)(OH,{children:hh(t)})]})]}),!!n&&(0,X.jsx)(SH,{children:n})]})};zH.propTypes={service:ze().string,price:ze().number,actions:ze().node};const LH=(0,Te.observer)(zH),qH=(0,Ge.default)(qe.default).withConfig({displayName:"field__Container",componentId:"sc-1205da2-0"})(["padding:10px 0;border-color:",";",""],Qe.GRAY_4,({borderBottom:e})=>!!e&&"border-bottom-width: 1px;"),BH=(0,Ge.default)(qe.default).withConfig({displayName:"field__Heading",componentId:"sc-1205da2-1"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),GH=(0,Ge.default)(Be.default).withConfig({displayName:"field__Label",componentId:"sc-1205da2-2"})(["font-size:13px;color:",";padding-bottom:4px;font-weight:600;"],Qe.GRAY_2),UH=(0,Ge.default)(Be.default).withConfig({displayName:"field__Value",componentId:"sc-1205da2-3"})(["font-size:14px;color:",";",""],Qe.TEXT_DARK,({longText:e})=>!e&&"font-weight: 600;"),$H=({label:e,children:t=null,borderBottom:n=!1,longText:i=!1,headingRight:o=null})=>(0,X.jsxs)(qH,{borderBottom:n,children:[(0,X.jsxs)(BH,{children:[(0,X.jsx)(GH,{children:e}),o]}),t&&"string"===typeof t?(0,X.jsx)(UH,{longText:i,children:t}):t]});
2862$H.propTypes={label:ze().string.isRequired,headingRight:ze().node,borderBottom:ze().bool,longText:ze().bool,children:ze().oneOfType([ze().string,ze().node])};const FH=(0,Te.observer)($H),HH=(0,Ge.default)(Da.default).withConfig({displayName:"price_breakdown__SeeBreakdown",componentId:"sc-1lpzev1-0"})(["flex-direction:row;padding-bottom:4px;align-items:center;"]),WH=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__SeeBreakdownText",componentId:"sc-1lpzev1-1"})(["color:",";font-size:13px;font-weight:700;"],Qe.GREEN_SUMMER_GRASS),VH=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__Breakdown",componentId:"sc-1lpzev1-2"})(["padding:10px 0;"]),KH=(0,Ge.default)(Da.default).withConfig({displayName:"price_breakdown__Row",componentId:"sc-1lpzev1-3"})(["flex-direction:row;padding-bottom:4px;align-items:center;padding:5px 0;"]),YH=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__Label",componentId:"sc-1lpzev1-4"})(["color:",";font-size:14px;font-weight:",";flex:1;padding-right:20px;"],Qe.TEXT_DARK,({displayAsPrimary:e})=>e?600:400),XH=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__Value",componentId:"sc-1lpzev1-5"})(["color:",";font-size:14px;font-weight:",";"],Qe.TEXT_DARK,({displayAsPrimary:e})=>e?600:400),ZH=({priceBreakdown:e})=>{const[t,n]=(0,K.useState)(!1);return(0,X.jsx)(X.Fragment,{children:e.length>0&&(0,X.jsx)(FH,{label:i18n.t("offer.payouts.title"),headingRight:(0,X.jsxs)(HH,{onPress:()=>n(!t),children:[(0,X.jsx)(WH,{children:i18n.t("offer.payouts.see_breakdown")}),(0,X.jsx)(Pa.default,{name:t?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.GREEN_SUMMER_GRASS})]}),children:t&&(0,X.jsx)(VH,{children:e.map(({label:e,value:t,options:n},i)=>(0,X.jsxs)(KH,{children:[(0,X.jsx)(YH,{displayAsPrimary:null===n||void 0===n?void 0:n.displayAsPrimary,children:e}),(0,X.jsx)(XH,{displayAsPrimary:null===n||void 0===n?void 0:n.displayAsPrimary,children:t})]},i))})})})};ZH.propTypes={priceBreakdown:qc.default.arrayOf(qc.default.shape({label:qc.default.string,value:qc.default.string}))};const QH=(0,Te.observer)(ZH),JH=(0,Ge.default)(qe.default).withConfig({displayName:"pictures__Container",componentId:"sc-1bhi0n9-0"})(["flex-direction:row;gap:10px;flex-flow:wrap;width:100%;"]),eW=(0,Ge.default)(pu.default).withConfig({displayName:"pictures__Picture",componentId:"sc-1bhi0n9-1"})(["width:105px;height:105px;border-radius:5px;"]),tW=({pictureUrls:e})=>{const[t,n]=(0,K.useState)(null);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(JH,{children:e.map(e=>(0,X.jsx)(Da.default,{onPress:()=>n(e),children:(0,X.jsx)(eW,{source:{uri:bi(e)}})},e))}),(0,X.jsx)(gs,{isVisible:!!t,style:{margin:24},onBackdropPress:()=>n(null),children:(0,X.jsx)(UG,{previewUrl:t,onClose:()=>n(!1)})})]})};tW.propTypes={pictureUrls:qc.default.arrayOf(qc.default.string.isRequired)};const nW=(0,Te.observer)(tW),iW=(0,Ge.default)(qe.default).withConfig({displayName:"items__Container",componentId:"sc-1ayjdnl-0"})(["flex-direction:row;gap:6px;flex-flow:wrap;width:100%;"]),oW=(0,Ge.default)(qe.default).withConfig({displayName:"items__Item",componentId:"sc-1ayjdnl-1"})(["background-color:",";padding:6px 8px;border-radius:3px;"],Qe.GREEN_WINTER_MIST),aW=(0,Ge.default)(Be.default).withConfig({displayName:"items__ItemLabel",componentId:"sc-1ayjdnl-2"})(["color:",";font-weight:600;font-size:13px;"],Qe.TEXT_DARK),sW=({items:e})=>(0,X.jsx)(iW,{children:e.map(({name:e,label:t})=>(0,X.jsx)(oW,{children:(0,X.jsx)(aW,{children:t})},e))});sW.propTypes={items:qc.default.arrayOf(qc.default.object.isRequired)};const rW=(0,Te.observer)(sW),lW=(0,Ge.default)(qe.default).withConfig({displayName:"content__Section",componentId:"sc-193gyt9-0"})(["padding:10px 20px;background-color:",";",""],Qe.WHITE,({noMarginBottom:e})=>!e&&"margin-bottom: 10px;"),dW=(0,Ge.default)(qe.default).withConfig({displayName:"content__AddressRow",componentId:"sc-193gyt9-1"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),cW=(0,Ge.default)(qe.default).withConfig({displayName:"content__AddressContainer",componentId:"sc-193gyt9-2"})(["margin-right:10px;flex:2;"]),uW=(0,Ge.default)(Be.default).withConfig({displayName:"content__Address",componentId:"sc-193gyt9-3"})(["color:",";font-weight:600;"],Qe.TEXT_DARK),pW=(0,Ge.default)(ws.default).withConfig({displayName:"content__ViewOn
2862MapContainer",componentId:"sc-193gyt9-4"})(["flex:1;"]),mW=(0,Ge.default)(Be.default).withConfig({displayName:"content__ViewOnMap",componentId:"sc-193gyt9-5"})(["color:",";font-weight:900;text-align:right;"],Qe.GREEN_GROWN_UP_GREEN),fW=(0,Ge.default)(ws.default).withConfig({displayName:"content__ShowTravelTimeContainer",componentId:"sc-193gyt9-6"})([""]),gW=(0,Ge.default)(Be.default).withConfig({displayName:"content__ShowTravelTime",componentId:"sc-193gyt9-7"})(["color:",";font-weight:900;"],Qe.GREEN_GROWN_UP_GREEN),hW=({request:e})=>{const{isDesktop:t}=uu(),[n,i]=(0,K.useState)(!1),[o,a]=(0,K.useState)(!1),{category:s,currentProviderTotalPayout:r,address:l,previousAddress:d,fullAddress:c,starttime:u,duration:p,frequency:m,description:f,items:g,pricingItems:h,pictureUrls:_}=e,{session:{currentUser:{address:{id:x}}}}=lt(),y=C.DateTime.fromISO(u),v=y.plus({hours:p/3600}),b=v.diff(y,"days").as("days")>=1?`${y.toLocaleString(C.DateTime.DATE_HUGE)} - ${v.toLocaleString(C.DateTime.DATE_HUGE)}`:y.toLocaleString(C.DateTime.DATE_HUGE),w=y.toFormat("t"),j=v.toFormat("t"),I=w===j?w:`${w} - ${j}`,T=i18n.t("offer.details.duration_in_hours",{count:p/3600}),E=i18n.t(`frequency_names.${m||"once"}`),N=g&&g.length?g.map(({name:e,type:t,value:n})=>({name:e,label:KG(e,t,n)})).filter(({label:e})=>!!e):[],k=!(null===h||void 0===h||!h.length)&&h.map(({name:e,quantity:t})=>({name:e,label:KG(e,$G,t)})).filter(({label:e})=>!!e)||[],R=(({currentProviderTotalCustomerPrice:e,currentProviderTotalCommission:t,currentProviderTotalPayout:n,pricingModel:i,duration:o,currentProviderCustomerPricePerHour:a,currentProviderCommissionPerHour:s,currentProviderPayoutPerHour:r,pricingUnit:l,unitQuantity:d})=>{if([YG.CART,YG.QUOTE].includes(i))return[{label:i18n.t("offer.payouts.total_customer"),value:hh(e)},{label:i18n.t("offer.payouts.total_commission"),value:hh(t)},{label:i18n.t("offer.payouts.total_provider"),value:hh(n),options:{displayAsPrimary:!0}}];const c=l&&i18n.t(`services.units.${l}.name`),u=l&&i18n.t(`services.units.${l}.counted`,{count:d||1});return[{label:d?i18n.t("offer.payouts.price_per_unit",{unit:c}):i18n.t("offer.payouts.price_per_hour"),value:hh(a)},s?{label:i18n.t("offer.payouts.commission_amount_per_hour"),value:hh(s)}:null,{label:d?i18n.t("offer.payouts.provider_payout_per_unit",{unit:c}):i18n.t("offer.payouts.provider_payout_per_hour"),value:hh(r)},{label:d?i18n.t("offer.payouts.provider_total_payout_units",{unit:u}):i18n.t("offer.payouts.provider_total_payout",{hours:o/3600}),value:hh(n),options:{displayAsPrimary:!0}}].filter(e=>!!e)})(e),S=f&&f.length>0,{fetchTravelTime:A,travelTime:P,loading:D}=pA({originAddressId:null===d||void 0===d?void 0:d.id,destinationAddressId:null===l||void 0===l?void 0:l.id,arrivalTime:y.toISO()}),M=()=>{d&&d.latitude&&d.longitude&&l&&l.latitude&&l.longitude&&rA({startLat:d.latitude,startLng:d.longitude,endLat:l.latitude,endLng:l.longitude})};return(0,X.jsxs)(X.Fragment,{children:[!t&&(0,X.jsx)(LH,{service:s,price:r}),(0,X.jsxs)(lW,{children:[(0,X.jsx)(FH,{borderBottom:!0,label:i18n.t("offer.details.address"),children:(0,X.jsxs)(dW,{children:[(0,X.jsx)(cW,{children:(0,X.jsx)(uW,{children:c})}),(0,X.jsx)(pW,{onPress:()=>sA(`${l.latitude},${l.longitude}`),children:(0,X.jsx)(mW,{children:i18n.t("offer.details.view_on_map")})})]})}),(0,X.jsx)(FH,{borderBottom:!0,label:i18n.t("offer.details.date_and_time"),children:`${b} | ${I}`}),(0,X.jsx)(FH,{label:i18n.t("offer.details.duration_and_frequency"),children:`${T} | ${E}`}),(0,X.jsx)(FH,{label:d&&`${x}`!==`${d.id}`?i18n.t("notifications.new_customer_detail.travel_time_from_previous_job",{previous_job_address:d.address1}):i18n.t("notifications.new_customer_detail.travel_time_from_home"),children:(0,X.jsx)(fW,{onPress:async()=>{if(o)M();else{try{await A()}catch(e){le(e)}a(!0)}},testID:o?"TravelTime:showDirections":"TravelTime:getTime",children:(0,X.jsxs)(gW,{children:[!o&&i18n.t("notifications.new_customer_detail.get_travel_time"),o&&!D&&null==P&&i18n.t("offer.details.see_route"),o&&!D&&null!=P&&i18n.t("notifications.new_customer_detail.travel_time_on_public_transportation",{time:Math.round(P/60)})]})})})]}),(0,X.jsxs)(lW,{children:[!!N.length&&(0,X.jsx)(FH,{label:i18n.t("offer.details.items.title"),borderBottom:!k.length||S||
2862!!_.length,children:(0,X.jsx)(rW,{items:N})}),!!k.length&&(0,X.jsx)(FH,{label:i18n.t("offer.details.items.title"),borderBottom:S||!!_.length,children:(0,X.jsx)(rW,{items:k})}),S&&(0,X.jsx)(FH,{label:i18n.t("offer.details.description"),longText:!0,borderBottom:!!_.length,children:f}),_.length>0&&(0,X.jsx)(FH,{label:i18n.t("offer.details.pictures"),children:(0,X.jsx)(nW,{pictureUrls:_})})]}),(0,X.jsx)(lW,{noMarginBottom:!0,children:(0,X.jsx)(QH,{priceBreakdown:R})}),(0,X.jsx)(UM,{isOpen:n,onClose:()=>i(!1),onItemSelected:e=>sA(`${l.latitude},${l.longitude}`),items:aA.map(({key:e,value:t})=>({key:e,value:t})),title:i18n.t("map.options.title"),subTitle:i18n.t("map.options.subtitle"),showIcon:!1,centered:!0,bold:!0,selectedItem:null})]})};hW.propTypes={request:qc.default.object.isRequired};const _W=(0,Te.observer)(hW),xW=(0,Ge.default)(qe.default).withConfig({displayName:"shared_components__Actions",componentId:"sc-1rx0syu-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:20px;background-color:",";gap:10px;border-top-width:10px;border-color:",";"],Qe.WHITE,Qe.GRAY_4),yW=(0,Ge.default)(qe.default).withConfig({displayName:"shared_components__DesktopHeadingWrapper",componentId:"sc-1rx0syu-1"})(["max-width:750px;margin:0 auto;"]),vW=(0,Te.observer)(()=>{const{isDesktop:e}=uu(),t=(0,Ks.useHistory)(),{id:n}=(0,Ks.useParams)(),{toast:{showToastMessage:i}}=lt(),{loading:o,error:a,request:s}=(e=>{var t;const{data:n,error:i,loading:o}=(0,Is.useQuery)(jH,{variables:{id:e}});return{request:(null===n||void 0===n||null===(t=n.providerVerticalRequestCandidate)||void 0===t?void 0:t.request)||null,error:i,loading:o}})(n),{accept:r,loading:l}=(({candidateId:e})=>{const[t,{loading:n}]=(0,js.useMutation)(TH);return{accept:()=>t({variables:{candidateId:e}}),loading:n}})({candidateId:n}),{reject:d,loading:c}=(({candidateId:e})=>{const[t,{loading:n}]=(0,js.useMutation)(EH);return{reject:()=>t({variables:{candidateId:e}}),loading:n}})({candidateId:n}),u=async()=>{var e,n;const o=await r(),a=null!==o&&void 0!==o&&null!==(e=o.data)&&void 0!==e&&null!==(n=e.acceptProviderVerticalOffer)&&void 0!==n&&n.success?"success":"error";i({message:i18n.t(`offer.submission.accept.${a}`),type:a}),t.push("/provider/offers")},p=async()=>{var e,n;const o=await d(),a=null!==o&&void 0!==o&&null!==(e=o.data)&&void 0!==e&&null!==(n=e.rejectProviderVerticalOffer)&&void 0!==n&&n.success?"success":"error";i({message:i18n.t(`offer.submission.reject.${a}`),type:a}),t.push("/provider/offers")};if(o)return(0,X.jsx)(Aa.default,{});if(a)return(0,X.jsx)(Ks.Redirect,{path:"/provider/offers"});const{category:m,currentProviderTotalPayout:f}=s;return(0,X.jsx)(Rf,{title:e?null:i18n.t("offer.selected.title"),headerBackgroundColor:e?Qe.GRAY_4:Qe.WHITE,hideBackButton:e,noContentMargin:!0,scrollEnabled:!0,noContentBorderRadius:!0,contentCustomPaddingTop:0,hideTabMenu:!0,contentBackgroundColor:Qe.GRAY_4,header:e?()=>(0,X.jsx)(yW,{children:(0,X.jsx)(LH,{service:m,price:f,actions:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(oh.default,{small:!0,icon:"close",onPress:p,disabled:l||c,textColor:Qe.TEXT_DARK,color:Qe.WHITE,style:{borderRadius:6,minWidth:"140px"},children:i18n.t("offer.actions.reject")}),(0,X.jsx)(oh.default,{small:!0,icon:"check",onPress:u,disabled:l||c,textColor:Qe.WHITE,color:Qe.GREEN_SUMMER_GRASS,style:{borderRadius:6,minWidth:"140px"},children:i18n.t("offer.actions.accept")})]})})}):null,headerPaddingTop:e?0:null,headerPaddingBottom:e?0:20,customFooter:e?null:(0,X.jsxs)(xW,{children:[(0,X.jsx)(oh.default,{icon:"close",onPress:p,disabled:l||c,textColor:Qe.CRIMSON_1,borderColor:Qe.CRIMSON_3,color:Qe.CRIMSON_5,borderWidth:1,style:{borderRadius:6,flexGrow:1},children:i18n.t("offer.actions.reject")}),(0,X.jsx)(oh.default,{icon:"check",onPress:u,disabled:l||c,textColor:Qe.GREEN_GROWN_UP_GREEN,borderColor:Qe.GREEN_SAGE_TEA,color:Qe.GREEN_FROSTY_GREEN,borderWidth:1,style:{borderRadius:6,flexGrow:1},children:i18n.t("offer.actions.accept")})]}),content:()=>(0,X.jsx)(_W,{request:s})})}),bW=()=>(0,X.jsx)(vW,{});const wW=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:36,height:36,viewB
2862ox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M31.48 18.753a13.5 13.5 0 10-8.96 11.97M18 10.499v7.5l4.5 4.5m6 1.5v4.5m0 4.5v.015",stroke:"#1E2121",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})}))},CW=(0,Ge.default)(ws.default).withConfig({displayName:"banner__Container",componentId:"sc-1b023el-0"})(["background-color:",";flex-direction:row;align-items:center;padding:16px;",""],Qe.VIOLET_4,({isDesktop:e})=>e&&`width: ${Vj};`),jW=(0,Ge.default)(qe.default).withConfig({displayName:"banner__Content",componentId:"sc-1b023el-1"})(["padding:0 20px;flex-grow:1;"]),IW=(0,Ge.default)(Be.default).withConfig({displayName:"banner__Title",componentId:"sc-1b023el-2"})(["font-size:14px;font-weight:700;color:",";padding-bottom:2px;"],Qe.TEXT_DARK),TW=(0,Ge.default)(Be.default).withConfig({displayName:"banner__LearnMore",componentId:"sc-1b023el-3"})(["font-size:13px;font-weight:600;color:",";"],Qe.GRAY_1),EW=({onPress:e})=>{const{isDesktop:t}=uu();return(0,X.jsxs)(CW,{onPress:e,isDesktop:t,children:[(0,X.jsx)(wW,{}),(0,X.jsxs)(jW,{children:[(0,X.jsx)(IW,{children:i18n.t("offer.countdown.banner.title")}),(0,X.jsx)(TW,{children:i18n.t("offer.countdown.banner.learn_more")})]}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:22,color:Qe.TEXT_DARK})]})};EW.propTypes={onPress:ze().func.isRequired};const NW=EW,kW=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-1nw3xpj-0"})(["padding:0;align-items:center;"]),RW=(0,Ge.default)(qe.default).withConfig({displayName:"content__Heading",componentId:"sc-1nw3xpj-1"})(["align-items:center;padding:0 50px 30px;background-color:",";"],Qe.WHITE),SW=(0,Ge.default)(Be.default).withConfig({displayName:"content__Title",componentId:"sc-1nw3xpj-2"})(["font-size:19px;font-weight:700;color:",";padding-bottom:2px;padding:20px 0 10px;"],Qe.TEXT_DARK),AW=(0,Ge.default)(Be.default).withConfig({displayName:"content__Description",componentId:"sc-1nw3xpj-3"})(["font-size:15px;font-weight:600;color:",";text-align:center;"],Qe.TEXT_DARK),PW=(0,Ge.default)(qe.default).withConfig({displayName:"content__Steps",componentId:"sc-1nw3xpj-4"})(["padding:30px 30px 10px 30px;background-color:",";border-bottom-left-radius:9px;border-bottom-right-radius:9px;"],Qe.VIOLET_5),DW=(0,Ge.default)(qe.default).withConfig({displayName:"content__Step",componentId:"sc-1nw3xpj-5"})(["margin-bottom:20px;text-align:center;background-color:",";padding:20px 50px;border-radius:5px;align-items:center;"],Qe.WHITE),MW=(0,Ge.default)(qe.default).withConfig({displayName:"content__NumberWrapper",componentId:"sc-1nw3xpj-6"})(["background-color:",";width:20px;height:20px;align-items:center;justify-items:center;border-radius:10px;"],Qe.VIOLET_4),OW=(0,Ge.default)(Be.default).withConfig({displayName:"content__Number",componentId:"sc-1nw3xpj-7"})(["font-size:12px;font-weight:700;color:",";line-height:20px;"],Qe.TEXT_DARK),zW=(0,Ge.default)(Be.default).withConfig({displayName:"content__StepTitle",componentId:"sc-1nw3xpj-8"})(["padding-top:10px;font-size:14px;font-weight:600;color:",";"],Qe.TEXT_DARK),LW=(0,Ge.default)(Be.default).withConfig({displayName:"content__Note",componentId:"sc-1nw3xpj-9"})(["padding-top:10px;font-size:12px;font-weight:700;color:",";font-style:italic;"],Qe.GRAY_2),qW=()=>(0,X.jsxs)(kW,{children:[(0,X.jsxs)(RW,{children:[(0,X.jsx)(WU,{}),(0,X.jsx)(SW,{children:i18n.t("offer.countdown.content.title")}),(0,X.jsx)(AW,{children:i18n.t("offer.countdown.content.description")})]}),(0,X.jsxs)(PW,{children:[(0,X.jsxs)(DW,{children:[(0,X.jsx)(MW,{children:(0,X.jsx)(OW,{children:"1"})}),(0,X.jsx)(zW,{children:i18n.t("offer.countdown.content.steps.step_1")}),(0,X.jsx)(LW,{children:i18n.t("offer.countdown.content.steps.step_1_note")})]}),(0,X.jsxs)(DW,{children:[(0,X.jsx)(MW,{children:(0,X.jsx)(OW,{children:"2"})}),(0,X.jsx)(zW,{children:i18n.t("offer.countdown.content.steps.step_2")})]}),(0,X.jsxs)(DW,{children:[(0,X.jsx)(MW,{children:(0,X.jsx)(OW,{children:"3"})}),(0,X.jsx)(zW,{children:i18n.t("offer.countdown.content.steps.step_3")})]})]})]}),BW=(0,Ge.default)(gs).withConfig({displayName:"modal__StyledModal",componentId:"sc-l4dp70-0"})(["display:flex;align-items:center;justify-content:center;flex:1;"]),GW=(0,Ge.default)(qe.default).withConfig({displayName:"modal__
2862Container",componentId:"sc-l4dp70-1"})(["background-color:",";border-radius:9px;max-width:600px;"],Qe.WHITE),UW=(0,Ge.default)(qe.default).withConfig({displayName:"modal__Heading",componentId:"sc-l4dp70-2"})(["align-items:flex-end;padding:20px 20px 0;"]),$W=({isVisible:e,onClose:t})=>(0,X.jsx)(BW,{isVisible:e,onBackdropPress:t,children:(0,X.jsxs)(GW,{children:[(0,X.jsx)(UW,{children:(0,X.jsx)(ws.default,{onPress:t,children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.GRAY_2})})}),(0,X.jsx)(qW,{})]})});$W.propTypes={isVisible:ze().bool.isRequired,onClose:ze().func.isRequired};const FW=$W,HW=(0,Te.observer)(()=>{const[e,t]=(0,K.useState)(!1),{id:n}=(0,Ks.useParams)(),{toast:{showToastMessage:i}}=lt(),{isDesktop:o}=uu(),a=(0,Ks.useHistory)(),{loading:s,error:r,request:l}=(e=>{const{data:t,error:n,loading:i}=(0,Is.useQuery)(IH,{variables:{id:e}});return{request:(null===t||void 0===t?void 0:t.verticalOptableRequest)||null,error:n,loading:i}})(n),{optIn:d,loading:c}=(({requestId:e})=>{const[t,{loading:n}]=(0,js.useMutation)(NH);return{optIn:()=>t({variables:{requestId:e}}),loading:n}})({requestId:n}),u=async()=>{var e,t;const n=await d(),o=null!==n&&void 0!==n&&null!==(e=n.data)&&void 0!==e&&null!==(t=e.optInVerticalRequest)&&void 0!==t&&t.success?"success":"error";i({message:i18n.t(`offer.submission.opt_in.${o}`),type:o}),a.push("/provider/offers")};if(s)return(0,X.jsx)(Aa.default,{});if(r)return(0,X.jsx)(Ks.Redirect,{path:"/provider/offers"});const{category:p,currentProviderTotalPayout:m}=l;return(0,X.jsx)(Rf,{title:o?null:i18n.t("offer.optable.title"),headerBackgroundColor:o?Qe.GRAY_4:Qe.WHITE,hideBackButton:o,noContentMargin:!0,scrollEnabled:!0,noContentBorderRadius:!0,contentCustomPaddingTop:0,hideTabMenu:!0,contentBackgroundColor:Qe.GRAY_4,header:o?()=>(0,X.jsxs)(yW,{children:[(0,X.jsx)(NW,{onPress:()=>t(!0)}),(0,X.jsx)(FW,{isVisible:e,onClose:()=>t(!1)}),(0,X.jsx)(LH,{service:p,price:m,actions:(0,X.jsx)(oh.default,{small:!0,icon:"check",onPress:u,disabled:c,textColor:Qe.WHITE,color:Qe.GREEN_SUMMER_GRASS,style:{borderRadius:6,minWidth:"140px"},children:i18n.t("offer.actions.opt_in")})})]}):null,headerPaddingTop:o?0:null,headerPaddingBottom:o?0:20,customFooter:o?null:(0,X.jsx)(xW,{children:(0,X.jsx)(oh.default,{icon:"check",onPress:u,disabled:c,textColor:Qe.GREEN_GROWN_UP_GREEN,borderColor:Qe.GREEN_SAGE_TEA,color:Qe.GREEN_FROSTY_GREEN,borderWidth:1,style:{borderRadius:6,flexGrow:1},children:i18n.t("offer.actions.opt_in")})}),content:()=>(0,X.jsxs)(X.Fragment,{children:[!o&&(0,X.jsx)(NW,{onPress:()=>a.push("/provider/countdown")}),(0,X.jsx)(_W,{request:l})]})})}),WW=()=>(0,X.jsx)(HW,{}),VW="current",KW="recurring",YW=[KW,"one_off"],XW=(0,Ge.default)(ts).withConfig({displayName:"filter__Container",componentId:"sc-1jm3m80-0"})(["flex-direction:row;flex:1;justify-content:center;background-color:",";border-radius:30px;padding:10px 15px;",""],Qe.GRAY_4,({active:e})=>e?`background-color: ${Qe.WHITE};`:""),ZW=(0,Ge.default)(Be.default).withConfig({displayName:"filter__Name",componentId:"sc-1jm3m80-1"})(["color:",";font-size:14px;font-weight:600;"],({active:e})=>e?Qe.GRAY_0:Qe.GRAY_1),QW=({name:e,active:t,onSelect:n,eventAction:i,eventLabel:o})=>(0,X.jsx)(XW,{active:t,onPress:n,eventAction:i,eventLabel:o,children:(0,X.jsx)(ZW,{active:t,children:e})}),JW=(0,Ge.default)(qe.default).withConfig({displayName:"filters__Container",componentId:"sc-1qx003c-0"})(["flex-direction:row;justify-content:center;margin:10px 0 0;"]),eV=(0,Ge.default)(qe.default).withConfig({displayName:"filters__FilterPill",componentId:"sc-1qx003c-1"})(["flex-direction:row;justify-content:space-between;border-radius:30px;padding:5px;background-color:",";margin:0 20px;width:100%;max-width:420px;"],Qe.GRAY_4),tV=({filters:e,selectedTab:t,onSelect:n,page:i})=>(0,X.jsx)(JW,{children:(0,X.jsx)(eV,{children:e.map(e=>(0,X.jsx)(QW,{name:i18n.t(`${i}.header.filters.${e}`),eventAction:i18n.t(`${i}.header.filters.${e}`),eventLabel:`from ${i} page`,active:e===t,onSelect:()=>n(e)},e))})});tV.propTypes={filters:qc.default.arrayOf(qc.default.string).isRequired,selectedTab:qc.default.string.isRequired,onSelect:qc.default.func.isRequired,page:qc.default.string.isRequired};const nV=tV,iV=({customersFilter:e,onSelect:t})=>(0,X.jsx)(nV,{filters:YW,selectedTab:e,onSelect:t,page:"customers"}),oV=(0,Ge.default)(ts).withConfig({displayName:"customer_list_item__Container",componentId:"sc-1ctoda6-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:10px 0px 10px 10px;",""],e=>!e.borderless&&`\n    border-bottom-color: ${Qe.GRAY_4};\n    border-bottom-width: 1px;\n  `),aV=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list_item__CustomerDetails",componentId:"sc-1ctoda6-1"})([""]),sV=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list_item__CustomerName",componentId:"sc-1ctoda6-2"})(["font-weight:500;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),rV=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list_item__RightArea",componentId:"sc-1ctoda6-3"})(["flex-direction:row;align-items:center;"]),lV=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list_item__Price",componentId:"sc-1ctoda6-4"})(["font-weight:500;font-size:13px;line-height:16px;padding-bottom:3px;"]),dV=({customer:e,seePayouts:t,showPrice:n,isLastItem:i})=>{const o=(0,Ks.useHistory)(),a=e.relationship.customerRecurringPrice;return(0,X.jsxs)(oV,{borderless:i,onPress:()=>o.push(Ri(e.id)),eventAction:"customer name to open customer details",eventLabel:`from customers - customerId: ${e.id}, relationshipId: ${e.relationship.id}`,children:[(0,X.jsx)(aV,{children:(0,X.jsx)(sV,{children:e.name})}),(0,X.jsxs)(rV,{children:[t&&n&&e.relationship&&a>0&&(0,X.jsxs)(lV,{children:[fh(a,{withSymbol:!0})," ",i18n.t("customers.customers_content.hr")]}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:30,color:Qe.TEXT_DARK})]})]})},cV=(0,Ge.default)(qe.default).withConfig({displayName:"no_customer__Container",componentId:"sc-1srz6wo-0"})(["align-items:center;width:100%;margin-top:70px;"]),uV=(0,Ge.default)(rf.default).withConfig({displayName:"no_customer__EmptyListTitle",componentId:"sc-1srz6wo-1"})(["font-size:18px;font-weight:bold;color:",";padding:10px 0;text-align:center;"],Qe.TEXT_DARK),pV=(0,Ge.default)(rf.default).withConfig({displayName:"no_customer__EmptyListDescription",componentId:"sc-1srz6wo-2"})(["font-size:14px;color:",";padding:10px 0;text-align:center;"],Qe.TEXT_DARK),mV=()=>(0,X.jsxs)(cV,{children:[(0,X.jsx)(uV,{children:i18n.t("customer.empty_list.t
2862itle")}),(0,X.jsx)(Pa.default,{name:"emoticon-sad-outline",set:"MaterialCommunityIcons",color:Qe.GREEN_SUMMER_GRASS,size:40}),(0,X.jsx)(pV,{children:i18n.t("custome.empty_list.you_will_get_notified")})]}),fV=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-7a8txk-0"})(["padding:0px 4px 40px 4px;"]),gV=(0,Ge.default)(qe.default).withConfig({displayName:"content__YourPrice",componentId:"sc-7a8txk-1"})(["width:100%;flex-direction:row;justify-content:space-between;"]),hV=(0,Ge.default)(rf.default).withConfig({displayName:"content__YourPriceText",componentId:"sc-7a8txk-2"})(["font-size:16px;font-weight:500;color:",";"],Qe.TEXT_DARK),_V=(0,Ge.default)(qe.default).withConfig({displayName:"content__CustomerList",componentId:"sc-7a8txk-3"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4);const xV=function({customers:e,seePayouts:t,showPrice:n}){return(0,X.jsx)(fV,{children:(0,X.jsxs)(qe.default,{children:[n&&(0,X.jsx)(gV,{children:(0,X.jsx)(hV,{children:i18n.t("customers.customers_content.your_price")})}),e.length>0&&(0,X.jsx)(_V,{children:e.map((i,o)=>(0,X.jsx)(dV,{customer:i,seePayouts:t,showPrice:n,isLastItem:e.length-1===o},i.id))}),0===e.length&&(0,X.jsx)(mV,{})]})})};function yV(){return(0,X.jsx)(Rf,{page:"customers",content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const vV=function(){var e;const t=(0,Ks.useHistory)(),[n,i]=(0,K.useState)(!0),[o,a]=(0,K.useState)([]),[s,r]=(0,K.useState)(KW),{session:{settings:l,settings:{featureFlags:{hidePricesFromProvider:d}}},customers:{fetchCustomers:c}}=lt();if((0,K.useEffect)(()=>{!async function(){i(!0);const e=await c(s);a(e),i(!1)}()},[s]),n)return(0,X.jsx)(yV,{});const u=null===l||void 0===l||null===(e=l.viewPermissions)||void 0===e?void 0:e.seePayouts;return(0,X.jsx)(Rf,{title:i18n.t("customers.header.title"),subheader:()=>(0,X.jsx)(iV,{customersFilter:s,onSelect:r}),content:()=>(0,X.jsx)(xV,{customers:o,seePayouts:u,showPrice:s===KW&&!d}),handleBackButtonClick:()=>t.goBack()})},bV=()=>(0,X.jsx)(vV,{}),wV=["width","height"],CV=e=>{let{width:t=50,height:n=50}=e,i=(0,A.default)(e,wV);return(0,X.jsxs)(Wu.default,Object.assign({width:t,height:n,viewBox:"0 0 50 50",fill:"none"},i,{children:[(0,X.jsx)(Wu.Circle,{cx:25,cy:25,r:25,fill:"#DEE9E7"}),(0,X.jsx)(Wu.Path,{d:"M20.48 13.099a3 3 0 0 1 3.491 1.419l.113.223.991 2.207a3.745 3.745 0 0 1-.663 4.077l-.198.198-1.566 1.46c-.282.267-.07 1.3.951 3.067.916 1.59 1.665 2.332 2.031 2.373h.065l.079-.015 3.075-.94a2.25 2.25 0 0 1 2.346.661l.138.172 2.034 2.82a3 3 0 0 1-.186 3.746l-.183.189-.814.771a5.25 5.25 0 0 1-5.573 1.057c-2.902-1.17-5.54-3.843-7.935-7.992-2.4-4.159-3.397-7.784-2.952-10.89a5.25 5.25 0 0 1 3.393-4.183l.29-.096 1.073-.324z",fill:"#5C8E85"})]}))},jV=(0,Ge.default)(qe.default).withConfig({displayName:"premium__Container",componentId:"sc-hgeo3f-0"})(["flex:1;"]),IV=(0,Ge.default)(qe.default).withConfig({displayName:"premium__Row",componentId:"sc-hgeo3f-1"})(["flex-direction:row;align-items:center;justify-content:space-between;"]),TV=(0,Ge.default)(Be.default).withConfig({displayName:"premium__CustomerPhone",componentId:"sc-hgeo3f-2"})(["margin-top:5px;"]);const EV=function({customer:e}){var t;const{name:n,mobile:i,relationship:o}=e,a=i&&(null===o||void 0===o||null===(t=o.series[0])||void 0===t?void 0:t.nextEvent)&&C.DateTime.now()>=C.DateTime.fromISO(o.series[0].nextEvent.startTime).minus({hour:48});return(0,X.jsx)(jV,{children:(0,X.jsxs)(IV,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(yf,{children:n}),a&&(0,X.jsx)(TV,{selectable:!0,children:i})]}),a&&(0,X.jsx)(ts,{onPress:()=>Xp.openURL(`tel:${i}`),eventAction:`open tel:${i}`,eventLabel:"from customer details",children:(0,X.jsx)(CV,{})})]})})},NV=(0,Ge.default)(qe.default).withConfig({displayName:"rating_stars__StarsContainer",componentId:"sc-1ri9v4s-0"})(["flex-direction:row;align-items:center;margin-top:8px;"]),kV=(0,Ge.default)(Be.default).withConfig({displayName:"rating_stars__Star",componentId:"sc-1ri9v4s-1"})(["color:",";padding-right:1px;font-size:18px;"],e=>e.color),RV=(0,Ge.default)(Be.default).withConfig({displayName:"rating_stars__RatingStats",componentId:"sc-1ri9v4s-2"})(["font-size:13px;color:",";margin-left:4px;
2862"],Qe.GRAY_0),SV=({rating:e,count:t})=>{const n=Math.round(e);return(0,X.jsxs)(NV,{children:[Array.from(Array(5).keys()).map(e=>(0,X.jsx)(kV,{color:e<n?"#F1CB3D":Qe.GRAY_LIGHT,children:"\u2605"},e)),(0,X.jsxs)(RV,{children:[e," (",t,")"]})]})},AV=({fill:e,width:t=20,height:n=20})=>(0,X.jsxs)(Wu.default,{width:t,height:n,viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,X.jsx)(Wu.Path,{d:"M14.0606 0.895966C6.32763 0.895966 0.0817871 6.64612 0.0817871 13.6741C0.0817871 16.2297 0.899706 18.7055 2.46117 20.8618C2.53552 21.5805 2.68422 25.2543 1.12276 27.3307C0.899692 27.6502 0.825332 28.1293 1.0484 28.4488C1.19711 28.7682 1.49454 28.928 1.86631 28.928C1.94067 28.928 1.94068 28.928 2.01503 28.928C3.05601 28.7682 5.8815 28.1293 9.22749 25.6536C10.789 26.2126 12.4248 26.4522 14.135 26.4522C21.8679 26.4522 28.1138 20.702 28.1138 13.5942C28.1138 6.48639 21.7192 0.895966 14.0606 0.895966ZM14.0606 24.9348C12.4991 24.9348 10.9377 24.6952 9.45057 24.1362C9.0788 23.9764 8.70702 24.0563 8.4096 24.2959C6.25329 25.973 4.32004 26.6918 2.98164 27.0911C4.17133 24.5355 3.94827 21.2611 3.87392 20.5423C3.87392 20.3027 3.79955 20.0631 3.65084 19.9034C2.23808 18.0666 1.5689 15.9103 1.5689 13.6741C1.5689 7.44475 7.14554 2.41337 14.0606 2.41337C20.9756 2.41337 26.5523 7.44475 26.5523 13.6741C26.5523 19.9034 20.9013 24.9348 14.0606 24.9348Z",fill:e}),(0,X.jsx)(Wu.Path,{d:"M9.15283 13.9922C8.48363 13.9922 7.96313 14.5512 7.96313 15.27C7.96313 15.9887 8.48363 16.5478 9.15283 16.5478C9.82202 16.5478 10.3425 15.9887 10.3425 15.27C10.3425 14.5512 9.82202 13.9922 9.15283 13.9922Z",fill:e}),(0,X.jsx)(Wu.Path,{d:"M14.4333 13.9922C13.7641 13.9922 13.2437 14.5512 13.2437 15.27C13.2437 15.9887 13.7641 16.5478 14.4333 16.5478C15.1025 16.5478 15.623 15.9887 15.623 15.27C15.623 14.5512 15.1025 13.9922 14.4333 13.9922Z",fill:e}),(0,X.jsx)(Wu.Path,{d:"M19.7112 13.9922C19.042 13.9922 18.5215 14.5512 18.5215 15.27C18.5215 15.9887 19.042 16.5478 19.7112 16.5478C20.3804 16.5478 20.9009 15.9887 20.9009 15.27C20.9009 14.5512 20.3804 13.9922 19.7112 13.9922Z",fill:e})]});AV.propTypes={fill:ze().string,width:ze().number,height:ze().number};const PV=AV,DV=(0,Ge.default)(qe.default).withConfig({displayName:"header__Container",componentId:"sc-1jojghx-0"})(["width:100%;align-items:stretch;"]),MV=(0,Ge.default)(ts).withConfig({displayName:"header__AddressContainer",componentId:"sc-1jojghx-1"})(["flex-direction:row;align-items:center;margin-top:8px;"]),OV=(0,Ge.default)(Pa.default).attrs({name:"location-pin",color:Qe.GREEN_SUMMER_GRASS,size:32}).withConfig({displayName:"header__AddressIcon",componentId:"sc-1jojghx-2"})(["margin-right:10px;"]),zV=(0,Ge.default)(Be.default).withConfig({displayName:"header__Address",componentId:"sc-1jojghx-3"})(["font-size:14px;font-weight:600;color:",";text-decoration:underline;flex-wrap:wrap;flex:1;"],Qe.TEXT_MEDIUM),LV=(0,Ge.default)(qe.default).withConfig({displayName:"header__Actions",componentId:"sc-1jojghx-4"})(["flex-direction:row;margin-top:18px;align-self:center;"]),qV=(0,Ge.default)(ts).withConfig({displayName:"header__ActionButton",componentId:"sc-1jojghx-5"})(["padding:8px 20px;border-radius:20px;background-color:",";flex-direction:row;align-items:center;"],Qe.GREEN_FROSTY_GREEN),BV=(0,Ge.default)(Be.default).withConfig({displayName:"header__ActionButtonText",componentId:"sc-1jojghx-6"})(["font-size:13px;font-weight:700;color:",";margin-left:10px;"],({disabled:e})=>e?Qe.GRAY_3:Qe.GREEN_GROWN_UP_GREEN),GV=(0,Ge.default)(Pa.default).attrs(({disabled:e})=>({name:"call",size:25,color:e?Qe.GRAY_3:Qe.GREEN_GROWN_UP_GREEN})).withConfig({displayName:"header__PhoneIcon",componentId:"sc-1jojghx-7"})([""]);const UV=function({customer:e,from:t}){const{id:n,mobile:i,addresses:o,ratings:a,relationship:s}=e,{session:{country:r}}=lt(),l=(0,Ks.useHistory)(),d=1===(null===o||void 0===o?void 0:o.length),c=!i,u=`${o[0].latitude},${o[0].longitude}`;return(0,X.jsxs)(DV,{children:[!(null===a||void 0===a||!a.average)&&(0,X.jsx)(SV,{rating:null===a||void 0===a?void 0:a.average,count:null===a||void 0===a?void 0:a.count}),d&&(0,X.jsxs)(MV,{onPress:()=>{"ie"!==r&&sA(u)},eventAction:"open map",children:[(0,X.jsx)(OV,{}),(0,X.jsx)(zV,{children:o[0].address})]}),(0,X.jsxs)(LV,{children:[(0,X.jsxs)(qV,{onPress:()=>bs.default.openURL(`tel:${i}
2862`),disabled:c,children:[(0,X.jsx)(GV,{disabled:c}),(0,X.jsx)(BV,{disabled:c,children:i18n.t("customer.actions.call")})]}),(0,X.jsxs)(qV,{style:{marginLeft:27},onPress:()=>l.push(Wi(e.relationship.id)),eventAction:"chat button from customer profile header",eventLabel:`on ${t} page - customerId: ${n} relationshipId: ${null===s||void 0===s?void 0:s.id}`,children:[(0,X.jsx)(PV,{fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(BV,{children:i18n.t("customer.actions.chat")})]})]})]})},$V=(0,Ge.default)(qe.default).withConfig({displayName:"item__Row",componentId:"sc-1e2qozi-0"})(["flex-direction:row;align-items:center;"]),FV=(0,Ge.default)($V).withConfig({displayName:"item__SeriesItemContainer",componentId:"sc-1e2qozi-1"})(["padding:20px;justify-content:space-between;"]),HV=(0,Ge.default)(xm.Text).withConfig({displayName:"item__Date",componentId:"sc-1e2qozi-2"})(["font-weight:",";color:",";"],({selected:e})=>e?"bold":"normal",({selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK),WV=(0,Ge.default)($V).withConfig({displayName:"item__FrequencyRow",componentId:"sc-1e2qozi-3"})(["margin-top:4px;"]),VV=(0,Ge.default)(xm.Text).withConfig({displayName:"item__Frequency",componentId:"sc-1e2qozi-4"})(["margin-top:5px;font-size:12px;font-weight:200;color:",";"],Qe.BLACK),KV=(0,Ge.default)(Pa.default).attrs({name:"calendar-clock",set:"MaterialCommunityIcons",color:Qe.BLACK,size:16}).withConfig({displayName:"item__CalendarIcon",componentId:"sc-1e2qozi-5"})(["margin:5px 5px 0 0;"]);function YV({series:e,selected:t,chevron:n,onPress:i}){var o;const a=C.DateTime.fromISO((null===(o=e.nextEvent)||void 0===o?void 0:o.startTime)||e.startTime).toFormat("cccc, t");return(0,X.jsx)(ts,{onPress:i,withoutFeedback:!0,children:(0,X.jsxs)(FV,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(HV,{selected:t,children:a}),(0,X.jsxs)(WV,{children:[(0,X.jsx)(KV,{}),(0,X.jsx)(VV,{children:i18n.t(`frequency_names.${e.period||"once"}`)})]})]}),n&&(0,X.jsx)(qe.default,{children:(0,X.jsx)(Pa.default,{name:n,set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,size:20})})]})})}YV.propTypes={series:qc.default.object,selected:qc.default.bool,chevron:qc.default.string,onPress:qc.default.func};const XV=YV,ZV=(0,Ge.default)(lm).withConfig({displayName:"series_picker__Paper",componentId:"sc-wpfhdp-0"})(["margin:15px 0 30px;border-radius:16px;padding:0;"]),QV=(0,Ge.default)(qe.default).withConfig({displayName:"series_picker__Divider",componentId:"sc-wpfhdp-1"})(["height:1px;background:",";margin:0 20px;"],Qe.GRAY_BORDER);function JV({series:e,selectedSeries:t,onChange:n}){const[i,o]=(0,K.useState)(!1);return(0,X.jsxs)(ZV,{elevation:1,children:[(0,X.jsx)(XV,{selected:!0,chevron:i?"chevron-up":"chevron-down",series:t,onPress:()=>o(!i)}),i&&e.filter(e=>e.id!==t.id).map((t,i)=>(0,X.jsxs)(X.Fragment,{children:[i<e.length-1&&(0,X.jsx)(QV,{}),(0,X.jsx)(XV,{series:t,onPress:()=>{n(t),o(!1)}},e.id)]}))]})}JV.propTypes={series:qc.default.arrayOf(qc.default.object),selectedSeries:qc.default.object,onChange:qc.default.func};const eK=JV,tK=["startTime","endTime","onPress","eventAction","eventLabel"],nK=(0,Ge.default)(qe.default).withConfig({displayName:"next_appointment__Row",componentId:"sc-b2h50n-0"})(["flex-direction:row;align-items:center;"]),iK=(0,Ge.default)(lm).withConfig({displayName:"next_appointment__NextAppointmentContainer",componentId:"sc-b2h50n-1"})(["flex-direction:row;align-items:center;border-radius:16px;background:",";padding:25px;margin-bottom:30px;"],Qe.GREEN_IRISH_BREEZE),oK=(0,Ge.default)(qe.default).withConfig({displayName:"next_appointment__CalendarIconContainer",componentId:"sc-b2h50n-2"})(["margin-right:13px;"]),aK=(0,Ge.default)(pu.default).attrs({source:n(24463)}).withConfig({displayName:"next_appointment__CalendarIcon",componentId:"sc-b2h50n-3"})(["width:48px;height:48px;"]),sK=(0,Ge.default)(qe.default).withConfig({displayName:"next_appointment__NextAppointmentContent",componentId:"sc-b2h50n-4"})(["flex:1;"]),rK=(0,Ge.default)(nK).withConfig({displayName:"next_appointment__NextAppointmentContentDateRow",componentId:"sc-b2h50n-5"})(["margin-top:12px;"]),lK=(0,Ge.default)(Pa.default).attrs({name:"chevron-right",color:Qe.CTA_DARK}
2862).withConfig({displayName:"next_appointment__ChevronRightIcon",componentId:"sc-b2h50n-6"})([""]),dK=(0,Ge.default)(xm.Text).withConfig({displayName:"next_appointment__StyledText",componentId:"sc-b2h50n-7"})(["font-size:16px;color:",";"],Qe.TEXT_DARK),cK=(0,Ge.default)(xm.Text).withConfig({displayName:"next_appointment__EventTimeText",componentId:"sc-b2h50n-8"})(["color:",";font-size:12px;letter-spacing:1;margin-top:2px;"],Qe.TEXT_DARK);function uK(e){let{startTime:t,endTime:n,onPress:i,eventAction:o,eventLabel:a}=e,s=(0,A.default)(e,tK);const{isConnected:r}=(0,ta.useNetInfo)(),l=C.DateTime.fromISO(t).toFormat("cccc dd LLL yyyy");return(0,X.jsx)(ts,{onPress:i,disabled:!r,withoutFeedback:!0,eventAction:o,eventLabel:a,children:(0,X.jsxs)(iK,Object.assign({},s,{children:[(0,X.jsx)(oK,{children:(0,X.jsx)(aK,{})}),(0,X.jsxs)(sK,{children:[(0,X.jsx)(nK,{children:(0,X.jsx)(dK,{children:i18n.t("customer.next_appointment")})}),(0,X.jsx)(rK,{children:(0,X.jsx)(dK,{children:l})}),(0,X.jsx)(cK,{children:JD(t,n)})]}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(lK,{})})]}))})}uK.propTypes={startTime:qc.default.string.isRequired,endTime:qc.default.string.isRequired,onPress:qc.default.func.isRequired,eventAction:qc.default.string,eventLabel:qc.default.string};const pK=uK;var mK=n(4581);const fK=async(e,t)=>{await mK.setStringAsync(e),t&&t()},gK=["address"],hK=(0,Ge.default)(qe.default).withConfig({displayName:"address__Row",componentId:"sc-1c4hbx1-0"})(["flex-direction:row;align-items:center;"]),_K=(0,Ge.default)(hK).withConfig({displayName:"address__AddressContainer",componentId:"sc-1c4hbx1-1"})(["margin-bottom:30px;padding-right:25px;"]),xK=(0,Ge.default)(qe.default).withConfig({displayName:"address__IconContainer",componentId:"sc-1c4hbx1-2"})(["margin-right:13px;background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN),yK=(0,Ge.default)(qe.default).withConfig({displayName:"address__AddressContent",componentId:"sc-1c4hbx1-3"})(["flex:1;"]),vK=(0,Ge.default)(Pa.default).withConfig({displayName:"address__CopyContentIcon",componentId:"sc-1c4hbx1-4"})(["margin-left:auto;"]),bK=(0,Ge.default)(xm.Text).withConfig({displayName:"address__StyledText",componentId:"sc-1c4hbx1-5"})(["font-size:16px;color:",";"],Qe.TEXT_DARK);function wK(e){let{address:t}=e,n=(0,A.default)(e,gK);const{toast:{showToastMessage:i}}=lt();return(0,X.jsxs)(_K,Object.assign({},n,{children:[(0,X.jsx)(xK,{children:(0,X.jsx)(Pa.default,{name:"location-on",size:30,color:Qe.GREEN_SUMMER_GRASS})}),(0,X.jsx)(yK,{children:(0,X.jsx)(bK,{children:t})}),(0,X.jsx)(ts,{eventAction:"copy address",eventLabel:"from customer details",onPress:()=>fK(t,()=>i({message:i18n.t("customer.content.address.address_copied"),type:"success"})),children:(0,X.jsx)(vK,{name:"content-copy",color:Qe.CTA_DARK})})]}))}wK.propTypes={address:qc.default.string};const CK=wK,jK=(0,Ge.default)(ms).withConfig({displayName:"cta__RescheduleSeriesButton",componentId:"sc-fj8hzr-0"})(["margin:10px 0px;"]);const IK=function({customerId:e,seriesId:t,customerName:n,relationshipId:i}){const o=(0,Ks.useHistory)(),[a,s]=(0,K.useState)(!1);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(jK,{disableWhenOffline:!0,onPress:()=>s(!0),trackingUserFlow:$a,trackingObjectName:"reschedule booking button",trackingProperties:{relationshipId:i,seriesId:t},testID:"cta-reschedule-series",fontSize:"14px",centered:!0,children:i18n.t("customer.actions.reschedule_booking")}),(0,X.jsx)(UL,{isOpen:a,onClose:()=>s(!1),onConfirm:()=>o.push(Ai(e),{seriesId:t}),customerName:n,relationshipId:i,i18nNamespace:"series_change_request",testIDPrefix:"series:reschedule:confirmation",trackingUserFlow:$a,trackingProperties:{relationshipId:i,seriesId:t}})]})};const TK=function({relationshipId:e,onConfirm:t,customerName:n}){const i=(0,Ks.useHistory)();return(0,X.jsx)(qL,{testID:"relationship:cancel:customerConfirmation",title:i18n.t("relationship.cancel_v2.customer.confirmation.title",{customerName:n}),description:i18n.t("relationship.cancel_v2.customer.confirmation.description"),bannerComponent:PL,primaryButton:{title:i18n.t("relationship.cancel_v2.customer.confirmation.contact_customer"),testID:"relationship:cancel:customerConfirmation:contactCustomer",onPress:()=>i.push(Wi(e)),trackingUserFlow:Fa,trackingObjectName:"contact customer",trackingProperties:{relationshipId:e}},secondaryButton:{title:i18n.t("relationship.cancel_v2.customer.confirmation.confirmed_with_customer"),testID:"relationship:cancel:customerConfirmation:confirmedWithCustomer",onPress:t,trackingUserFlow:Fa,trackingObjectName:"yes confirmed with customer",trackingProperties:{relationshipId:e}}
2862,viewTrackingProps:{userFlow:Fa,objectName:"did you confirm with customer",properties:{relationshipId:e}}})},EK=(0,Ge.default)(Be.default).withConfig({displayName:"fee_warning__Heading",componentId:"sc-1tbpqki-0"})(["font-weight:600;font-size:20px;text-align:center;line-height:36px;padding-bottom:60px;color:",";"],Qe.TEXT_DARK),NK=(0,Ge.default)(Be.default).withConfig({displayName:"fee_warning__Paragraph",componentId:"sc-1tbpqki-1"})(["font-size:13px;line-height:16px;text-align:center;color:",";"],Qe.GRAY_1);const kK=function({disableSubmit:e,onConfirm:t,event:n,trackingProps:i}){const{isConnected:o}=(0,ta.useNetInfo)(),{autoTrackEnhanced:a}=mt(),s=(0,K.useMemo)(()=>sl(n.startTime),[n.startTime]),r=e||!o;return(0,K.useEffect)(()=>{a({userFlow:Fa,action:Xa.view,objectName:"short notice fee",properties:i})},[]),(0,X.jsx)(Mq,{testID:"relationship:cancel:feeWarning",primaryButtonTitle:i18n.t("event.cancel.fee.warning.confirmation"),primaryButtonClick:()=>{a({userFlow:Fa,action:Xa.click,objectName:"I understand on short notice fee",properties:i}),t()},primaryButtonDisabled:r,primaryButtonTestID:"relationship:cancel:feeWarning:confirm",children:(null===s||void 0===s?void 0:s.amount)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(EK,{children:"0"===(null===s||void 0===s?void 0:s.hour)?i18n.t("event.cancel.fee.warning.0hs.title"):i18n.t("event.cancel.fee.warning.title",{hour:`${null===s||void 0===s?void 0:s.hour} hs`,amount:null===s||void 0===s?void 0:s.amount})}),(0,X.jsx)(NK,{children:"0"===(null===s||void 0===s?void 0:s.hour)?i18n.t("event.cancel.fee.warning.0hs.description"):i18n.t("event.cancel.fee.warning.description",{hour:`${null===s||void 0===s?void 0:s.hour} hours`,amount:null===s||void 0===s?void 0:s.amount})})]})})};const RK=function({success:e,onClose:t,customerName:n,trackingProps:i}){const{autoTrackEnhanced:o}=mt(),a=e?"success":"failed",s=`relationship.cancel_v2.result.${a}`;return(0,K.useEffect)(()=>{e&&o({userFlow:Fa,action:Xa.complete,objectName:"relationship cancellation",properties:i})},[]),(0,X.jsx)(qL,{testID:`relationship:cancel:result:${a}`,title:i18n.t(`${s}.title`,{customerName:n}),description:i18n.lookup(`${s}.description`),bannerComponent:e?DL:ML,primaryButton:{title:i18n.t(`${s}.confirm_cta`),testID:`relationship:cancel:result:${a}:confirm`,onPress:t,trackingUserFlow:Fa,trackingObjectName:"confirm CTA on cancellation result",trackingProperties:Object.assign({result:a},i)},viewTrackingProps:e?null:{userFlow:Fa,objectName:"cancellation failed",properties:i}})},SK=(0,Ge.default)(qe.default).withConfig({displayName:"reason_selection__LoadingContainer",componentId:"sc-17o4ymj-0"})(["flex:1;justify-content:center;align-items:center;"]),AK=(0,Te.observer)(({relationshipId:e,event:t,firstInRelationship:n,disableSubmit:i,onConfirm:o,onClose:a,customer:s})=>{const{session:{settings:r}}=lt(),[l,d]=(0,K.useState)(n),[c,u]=(0,K.useState)(!1);return(0,K.useEffect)(()=>{n&&(async()=>{try{await(null===r||void 0===r?void 0:r.assignProviderToEventCancellationReasonSelectionAbTest());const e=null===r||void 0===r?void 0:r.isProviderUnderEventCancellationReasonSelectionExperimentAbTest();u(!!e)}catch(ca){u(!1)}finally{d(!1)}})()},[n]),l?(0,X.jsx)(SK,{children:(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS})}):c?(0,X.jsx)(dB,{relatedObjectId:e,onConfirm:o,disableSubmit:i,title:i18n.t("relationship_cancellation.reason_selection_v2.title",{customer:s}),type:Kq.RELATIONSHIP_CANCELLATION,useCancellationCodes:()=>(e=>{var t;const{data:n,error:i,loading:o}=(0,Is.useQuery)(nq,{context:{apiVersion:3},variables:{id:e},skip:!e});return{reasonCodes:(null===n||void 0===n||null===(t=n.event)||void 0===t?void 0:t.relationshipReasonCodes)||[],loading:o,error:i}})(t.id)}):(0,X.jsx)(iB,{disableSubmit:i,onConfirm:o,onClose:a,useCancellationCodes:tq,otherReasonCode:"RC_27",heading:i18n.t("relationship.cancel_v2.reason.selection.title",{customer:s}),type:Kq.RELATIONSHIP_CANCELLATION,relatedObjectId:e})}),PK=(0,Ge.default)(lm).withConfig({displayName:"reliability_warning__Container",componentId:"sc-1tqxmlg-0"})(["margin:3px;padding:20px 16px;border-radius:12px;"]),DK=(0,Ge.default)(pu.default).attrs({source:n(78573)}).withConfig({displayName:"reliability_warning__ExclamationMark",componentId:"sc-1tqxmlg-1"})(["width:40px;height:40px;align-self:center;margin-bottom:12px;"]),MK=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_warning__Paragraph",componentId:"sc-1tqxmlg-2"})(["font-size:13px;line-height:16px;text-align:center;color:",";",";"],Qe.GRAY_1,({$paddingTop:e})=>e&&"padding-top: 16px;");const OK=function({relationshipId:e,onConfirm:t}){const n=(0,Ks.useHistory)(),{autoTrackEnhanced:i}=mt();return(0,K.useEffect)(()=>{i({userFlow:Fa,action:Xa.view,objectName:"reliability warning",properties:{relationshipId:e}})},[]),(0,X.jsx)(Mq,{testID:"relationship:cancel:reliabilityWarning",title:i18n.t("rs.c
2862ancel.customer.confirmation.title"),primaryButtonTitle:i18n.t("event.cancel.customer.confirmed.yes"),primaryButtonClick:()=>{i({userFlow:Fa,action:Xa.click,objectName:"confirms on reliability warning",properties:{relationshipId:e}}),t()},primaryButtonTestID:"relationship:cancel:reliabilityWarning:confirm",secondaryButtonTitle:i18n.t("event.cancel.customer.confirmed.contact.customer"),secondaryButtonClick:()=>{i({userFlow:Fa,action:Xa.click,objectName:"contact customer on reliability warning",properties:{relationshipId:e}}),n.push(Wi(e))},secondaryButtonTestID:"relationship:cancel:reliabilityWarning:contactCustomer",horizontalActionGroup:!0,children:(0,X.jsxs)(PK,{elevation:1,children:[(0,X.jsx)(DK,{}),(0,X.jsx)(MK,{$paddingTop:!0,children:i18n.t("event.cancel.customer.not.confirmed")})]})})},zK=()=>(0,X.jsxs)(Wu.default,{width:21,height:20,viewBox:"0 0 21 20",fill:"none",children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2121)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M10.385.365c-.41 0-.811.105-1.16.303-.35.199-.634.483-.82.821l-.004.006-8.16 15.151a1.944 1.944 0 00.092 2.012c.2.3.477.549.809.72a2.36 2.36 0 001.083.264H18.55a2.36 2.36 0 001.082-.264c.33-.173.608-.42.806-.72a1.944 1.944 0 00.092-2.01v-.002L12.367 1.495l-.002-.006a2.136 2.136 0 00-.82-.82 2.355 2.355 0 00-1.16-.304z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M11.498 7.073a.997.997 0 00-.326-.73 1.157 1.157 0 00-.787-.303c-.295 0-.578.108-.787.302a.997.997 0 00-.326.73v4.478c0 .274.117.537.326.73.209.194.492.303.787.303.295 0 .578-.109.787-.303a.997.997 0 00.325-.73V7.073zm-1.113 9.643c.393 0 .77-.146 1.049-.404a1.33 1.33 0 00.434-.974 1.33 1.33 0 00-.434-.974 1.543 1.543 0 00-1.05-.404c-.393 0-.77.146-1.048.404a1.33 1.33 0 00-.435.974c0 .365.157.716.435.974s.655.404 1.049.404z",fill:"#723219"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2121",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(0 .357)",d:"M0 0H20.7693V19.2858H0z"})})})]}),LK=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Container",componentId:"sc-2lhfh1-0"})(["background-color:#fbf4ee;padding:16px;border-radius:12px;flex-direction:row;align-items:center;gap:12px;margin-top:16px;"]),qK=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Content",componentId:"sc-2lhfh1-1"})(["flex:1;"]),BK=(0,Ge.default)(Be.default).withConfig({displayName:"alert__Description",componentId:"sc-2lhfh1-2"})(["font-weight:600;font-size:14px;color:",";"],Qe.TEXT_DARK),GK=(0,Ge.default)(Be.default).withConfig({displayName:"alert__GuidelinesLinkText",componentId:"sc-2lhfh1-3"})(["font-weight:700;font-size:14px;color:#ff5713;text-decoration:underline;text-decoration-color:#ff5713;",""],""),UK=({relationshipId:e})=>{const{autoTrackEnhanced:t}=mt();return(0,X.jsxs)(LK,{children:[(0,X.jsx)(zK,{}),(0,X.jsx)(qK,{children:(0,X.jsxs)(BK,{children:[i18n.t("relationship.cancel_v2.pec_guidelines.alert.description"),(0,X.jsx)(GK,{onPress:()=>{t({userFlow:Fa,action:Xa.click,objectName:"PEC guidelines link",properties:{relationshipId:e}}),ru(i18n.t("relationship.cancel_v2.pec_guidelines.alert.link.url"),0,!0)},children:i18n.t("relationship.cancel_v2.pec_guidelines.alert.link.label")})]})})]})},$K=({relationshipId:e,onConfirm:t,onGoBack:n})=>(0,X.jsx)(qL,{testID:"relationship:cancel:pecGuidelines",title:i18n.t("relationship.cancel_v2.pec_guidelines.title"),bannerComponent:AL,primaryButton:{title:i18n.t("relationship.cancel_v2.pec_guidelines.confirm_cta"),testID:"relationship:cancel:pecGuidelines:confirmCancellation",onPress:t,trackingUserFlow:Fa,trackingObjectName:"I still want to cancel",trackingProperties:{relationshipId:e}},secondaryButton:{title:i18n.t("relationship.cancel_v2.pec_guidelines.go_back_cta"),testID:"relationship:cancel:pecGuidelines:goBack",onPress:n,trackingUserFlow:Fa,trackingObjectName:"go back on you might be suspended",trackingProperties:{relationshipId:e}},viewTrackingProps:{userFlow:Fa,objectName:"you might be suspended",properties:{relationshipId:e}},children:(0,X.jsx)(UK,{relationshipId:e})});const FK=function({relationshipId:e,customerId:t,onContinueCancellation:n}){const i=(0,Ks.useHistory)(),o={relationshipId:e,customerId:t};return(0,X.jsx)(qL,{testID:"relationship:cancel:reschedule_over_cancel:booking",title:i18n.t("relationship.cancel.reschedule_over_cancel.title"),description:i18n.t("relationship.cancel.reschedule_over_cancel.description"),bannerComponent:zL,primaryButton:{title:i18n.t("relationship.cancel.reschedule_over_cancel.reschedule_cta"),testID:"relationship:cancel:reschedule_over_cancel:booking:reschedule",onPress:()=>{i.push(Ai(t))},trackingUserFlow:Fa,trackingObjectName:"reschedule instead of cancel booking",trackingProperties:o},secondaryButton:{title:i18n.t("relationship.cancel.reschedule_over_cancel.cancel_cta"),testID:"relationship:cancel:reschedule_over_cancel:booking:cancel",onPress:n,trackingUserFlow:Fa,trackingObjectName:"continue with booking cancellation",trackingProperties:o},viewTrackingProps:{userFlow:Fa,objectName:"booking reschedule prompt shown",properties:o}})},HK=()=>(0,X.jsxs)(Wu.default,{width:21,height:20,viewBox:"0 0 21 20",fill:"none",children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1109_2121)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,X.jsx)(Wu.Path,{d:"M10.385.365c-.41 0-.811.105-1.16.303-.35.199-.634.483-.82.821l-.004.006-8.16 15.151a1.944 1.944 0 00.092 2.012c.2.3.477.549.809.72a2.36 2.36 0 001.083.264H18.55a2.36 2.36 0 001.082-.264c.33-.173.608-.42.806-.72a1.944 1.944 0 00.092-2.01v-.002L12.367 1.495l-.002-.006a2.136 2.136 0 00-.82-.82 2.355 2.355 0 00-1.16-.304z",fill:"#FF9970"}),(0,X.jsx)(Wu.Path,{d:"M11.498 7.073a.997.997 0 00-.326-.73 1.157 1.157 0 00-.787-.303c-.295 0-.578.108-.787.302a.997.997 0 00-.326.73v4.478c0 .274.117.537.326.73.209.194.492.303.787.303.295 0 .578-.109.787-.303a.997.997 0 00.325-.73V7.073zm-1.113 9.643c.393 0 .77-.146 1.049-.404a1.33 1.33 0 00.434-.974 1.33 1.33 0 00-.434-.974 1.543 1.543 0 00-1.05-.404c-.393 0-.77.146-1.048.404a1.33 1.33 0 00-.435.974c0 .365.157.716.435.974s.655.404 1.049.404z",fill:"#723219"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1109_2121",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(0 .357)",d:"M0 0H20.7693V19.2858H0z"})})})]}),WK=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Container",componentId:"sc-xjvnqh-0"})(["background-color:#fbf4ee;padding:16px;border-radius:12px;flex-direction:row;align-items:center;gap:12px;margin-top:16px;"]),VK=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Content",componentId:"sc-xjvnqh-1"})(["flex:1;"]),KK=(0,Ge.default)(Be.default).withConfig({displayName:"alert__Description",componentId:"sc-xjvnqh-2"})(["font-weight:600;font-size:14px;color:",";"],Qe.TEXT_DARK),YK=(0,Ge.default)(Be.default).withConfig({displayName:"alert__GuidelinesLinkText",componentId:"sc-xjvnqh-3"})(["font-weight:700;font-size:14px;color:#ff5713;text-decoration:underline;text-decoration-color:#ff5713;",""],""),XK=({relationshipId:e})=>{const{autoTrackEnhanced:t}=mt();return(0,X.jsxs)(WK,{children:[(0,X.jsx)(HK,{}),(0,X.jsx)(VK,{children:(0,X.jsxs)(KK,{children:[i18n.t("relationship.cancel_v2.stc_guidelines.alert.description"),(0,X.jsx)(YK,{onPress:()=>{t({userFlow:Fa,action:Xa.click,objectName:"PEC guidelines link",properties:{relationshipId:e}}),ru(i18n.t("relationship.cancel_v2.stc_guidelines.alert.link.url"),0,!0)},children:i18n.t("relationship.cancel_v2.stc_guidelines.alert.link.label")})]})})]})},ZK=({relationshipId:e,onConfirm:t,onGoBack:n})=>(0,X.jsx)(qL,{testID:"relationship:cancel:stcGuidelines",title:i18n.t("relationship.cancel_v2.stc_guidelines.title"),bannerComponent:AL,primaryButton:{title:i18n.t("relationship.cancel_v2.stc_guidelines.confirm_cta"),testID:"relationship:cancel:stcGuidelines:confirmCancellation",onPress:t,trackingUserFlow:Fa,trackingObjectName:"I still want to cancel",trackingProperties:{relationshipId:e}},secondaryButton:{title:i18n.t("relationship.cancel_v2.stc_guidelines.go_back_cta"),testID:"relationship:cancel:stcGuidelines:goBack",onPress:n,trackingUserFlow:Fa,trackingObjectName:"go back on you might be suspended",trackingProperties:{relationshipId:e}},viewTrackingProps:{userFlow:Fa,objectName:"you might be suspended",properties:{relationshipId:e}},children:(0,X.jsx)(XK,{relationshipId:e})}),QK=(0,Ge.default)(qe.default).withConfig({displayName:"cancellation_modal__Container",componentId:"sc-dtklfb-0"})(["background-color:",";margin:50px 16px 20px 16px;display:flex;flex:1;"],Qe.WHITE),JK=(0,Ge.default)(Be.default).withConfig({displayName:"cancellation_modal__Title",componentId:"sc-dtklfb-1"})(["margin-top:-35px;margin-bottom:10px;text-align:center;font-size:14px;color:",";font-weight:700;"],Qe.TEXT_DARK);const eY=function({onClose:e,lastLiveFutureEventId:t,event:n,pecEligible:i,stcEligible:o,firstInRelationship:a,customer:s}){const{session:{settings:r}}=lt(),{deleteRelationship:l,loading:d}=(()=>{const[e,{data:t,loading:n,error:i}]=(0,js.useMutation)(YL);return{deleteRelationship:({relationshipId:t,reasonCode:n="EC_99",reasonExternal:i="Other",supportTipIntent:o=!1,eventCategories:a=null,lastLiveFutureEventId:s=null})=>e({variables:{relationshipId:t,reasonCode:n,reasonExternal:i,eventCategories:a,supportTipIntent:o,lastLiveFutureEventId:s}}),loading:n,error:i,data:t}})(),{unsyncEventByRelationshipId:c}=(()=>{const{session:{isSignedIn:e},toast:{showToastMessage:t},externalCalendar:{externalCalendarId:n}}=lt(),{getFutureEvents:i}=Ev(),{unsyncEventByExternalCalendarEventId:o}=_B();return{unsyncEventByRelationshipId:async(a,s)=>{if(e&&n)try{var r;const{status:e}=await Zs.getCalendarPermissionsAsync();if("granted"!==e)return;if(!await ur(n))return;const t=await i(a),l=null===t||void 0===t||null===(r=t.data)||void 0===r?void 0:r.relationshipFutureEvents;if(0===l.length)return;let d;if(s){const e=l.findIndex(e=>e.id===s);d=-1!==e?l.slice(e+1):[]}else d=l;for(const n of d)n.externalCalendarEventId&&await o(n.externalCalendarEventId)}catch(ca){console.error("Calendar sync error:",ca),le(ca),t({message:i18n.t("connect_calendar.calender_sync.failed.sync_error")})}}}})(),u=s.relationship.id,[p,m]=(0,K.useState)(cq),[f,g]=(0,K.useState)({reasonCode:"",comment:""}),h=sl(null===n||void 0===n?void 0:n.startTime),_=i,x=!i&&o,y=!_&&!x&&!!h,v=async e=>{var n,i;const o=await l({relationshipId:u,lastLiveFutureEventId:t,reasonCode:e?e.reasonCode:f.reasonCode,reasonExternal:e?e.comment:f.comment});null!==o&&void 0!==o&&null!==(n=o.data)&&void 0!==n&&null!==(i=n.cancelRelationship
2862)&&void 0!==i&&i.success?(m(hq),null!==r&&void 0!==r&&r.isProviderUnderExperimentAbTest(Mo)&&c(u,t)):m(_q)},b=()=>{C()},w=()=>{m(cq)},C=()=>{m(fq)},j=()=>{e(p===hq)};return(0,X.jsx)(zw,{size:"medium",isOpen:!0,onClose:j,displayCloseButton:!0,children:(0,X.jsxs)(QK,{children:[(0,X.jsx)(JK,{children:i18n.t("rs.cancel_rs.title")}),p===cq&&(0,X.jsx)(TK,{relationshipId:u,customerName:s.firstname,onConfirm:()=>{m(xq)}}),p===xq&&(0,X.jsx)(FK,{relationshipId:u,customerId:s.id,onContinueCancellation:()=>{(()=>{var e;_?m(pq):x?m(mq):0===(null===s||void 0===s||null===(e=s.relationship)||void 0===e?void 0:e.pastBookingCount)?m(uq):C()})()}}),p===uq&&(0,X.jsx)(OK,{relationshipId:u,onConfirm:C}),p===pq&&(0,X.jsx)($K,{relationshipId:u,onConfirm:b,onGoBack:w}),p===mq&&(0,X.jsx)(ZK,{relationshipId:u,onConfirm:b,onGoBack:w}),p===fq&&(0,X.jsx)(AK,{relationshipId:u,event:n,firstInRelationship:a,disableSubmit:d,onConfirm:e=>{g(e),y?m(gq):v(e)},onClose:j,customer:s.name}),p===gq&&(0,X.jsx)(kK,{disableSubmit:d,event:n,onConfirm:v,trackingProps:{relationshipId:u,reasonCode:f.reasonCode,feeAmount:null===h||void 0===h?void 0:h.amount}}),(p===hq||p===_q)&&(0,X.jsx)(RK,{customerName:s.firstname,success:p===hq,onClose:j,trackingProps:{relationshipId:u,reasonCode:f.reasonCode}})]})})},tY=(0,Ge.default)(ts).withConfig({displayName:"check_box__Checkbox",componentId:"sc-1hh7l5w-0"})(["flex-direction:row;align-items:center;"]),nY=(0,Ge.default)(qe.default).withConfig({displayName:"check_box__IconContainer",componentId:"sc-1hh7l5w-1"})(["justify-content:center;align-items:center;width:",";height:",";background-color:",";border:1px solid ",";border-radius:5px;"],({size:e})=>Number.isInteger(e)?`${e}px`:e,({size:e})=>Number.isInteger(e)?`${e}px`:e,({disabled:e,checked:t,color:n})=>e?Qe.GRAY_4:t?n||Qe.GREEN_SUMMER_GRASS:Qe.WHITE,({disabled:e,checked:t})=>e||!t?Qe.GRAY_3:Qe.GREEN_SUMMER_GRASS),iY=(0,Ge.default)(Be.default).withConfig({displayName:"check_box__Label",componentId:"sc-1hh7l5w-2"})(["font-weight:600;font-size:",";line-height:19px;margin-left:8px;color:",";flex:1;"],({small:e})=>e?"14px":"16px",({color:e})=>e||Qe.TEXT_DARK),oY=({checked:e=!1,label:t,small:n=!1,style:i,iconStyle:o,color:a,iconColor:s,onChange:r=()=>{},eventAction:l,eventLabel:d,size:c=24,disabled:u,readonly:p,labelColor:m,labelStyle:f,trackingUserFlow:g,trackingObjectName:h,trackingProperties:_,testID:x="Checkbox"})=>(0,X.jsxs)(tY,{testID:x,onPress:p?void 0:r,style:i,eventAction:l,eventLabel:d,trackingUserFlow:g,trackingAction:Xa.check,trackingObjectName:h,trackingProperties:_,disabled:u,children:[(0,X.jsx)(nY,{disabled:u,size:c,checked:e,color:a,children:e&&(0,X.jsx)(Pa.default,{name:"check",set:"MaterialCommunityIcons",size:c,color:s||Qe.WHITE,style:o})}),"string"===typeof t?(0,X.jsx)(iY,{small:n,color:m,style:f,children:t}):t]}),aY=(0,Ge.default)(qe.default).withConfig({displayName:"event__Row",componentId:"sc-ktl15x-0"})(["flex-direction:row;align-items:center;"]),sY=(0,Ge.default)(ts).withConfig({displayName:"event__SelectableItem",componentId:"sc-ktl15x-1"})(["flex-direction:row;align-items:center;margin-left:2px;"]),rY=(0,Ge.default)(Be.default).withConfig({displayName:"event__Date",componentId:"sc-ktl15x-2"})(["color:",";font-weight:",";font-size:12px;line-height:16px;"],({selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK,({isSerie:e})=>e?"bold":"normal"),lY=(0,Ge.default)(aY).withConfig({displayName:"event__FrequencyRow",componentId:"sc-ktl15x-3"})(["margin-top:4px;"]),dY=(0,Ge.default)(Be.default).withConfig({displayName:"event__Frequency",componentId:"sc-ktl15x-4"})(["margin-top:5px;font-size:12px;font-weight:200;color:",";"],({selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_MEDIUM),cY=(0,Ge.default)(Pa.default).attrs(({selected:e})=>({name:"calendar-sync-outline",set:"MaterialCommunityIcons",color:e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK,size:14})).withConfig({displayName:"event__CalendarIcon",componentId:"sc-ktl15x-5"})(["margin:5px 3px 0 0;"]),uY=(0,Ge.default)(qe.default).withConfig({displayName:"event__InlineCircle",componentId:"sc-ktl15x-6"})(["width:24px;height:24px;border-radius:24px;border-width:2px;border-color:",";align-items:center;justify-content:center;margin-left:2px;"],Qe.GRAY_1),pY=(0,Ge.default)(qe.default).withConfig({displayName:"event__InlineCircleSelected",componentId:"sc-ktl15x-7"})(["width:24px;height:24px border-width:6px;border-radius:14px;border-color:"," margin-left:2px;"],Qe.GREEN_SUMMER_GRASS),mY=(0,Ge.default)(qe.default).withConfig({displayName:"event__EventDetails",componentId:"sc-ktl15x-8"})(["margin-left:10px;padding:20px 0;"]);const fY=function({event:e,relationshipId:t,onSelect:n,selected:i,testID:o}
2862){const a=C.DateTime.fromISO(e.startTime).toLocaleString(Object.assign({},C.DateTime.DATE_HUGE,C.DateTime.TIME_SIMPLE));return(0,X.jsxs)(sY,{testID:o,onPress:n,trackingUserFlow:Fa,trackingObjectName:"from when do you want to cancel",trackingProperties:{relationshipId:t,eventId:e.id},children:[i?(0,X.jsx)(pY,{}):(0,X.jsx)(uY,{}),(0,X.jsxs)(mY,{children:[(0,X.jsx)(rY,{selected:i,children:a}),(0,X.jsxs)(lY,{children:[(0,X.jsx)(cY,{selected:i}),(0,X.jsx)(dY,{selected:i,children:i18n.t(`frequency_names.${e.period||"once"}`)})]})]})]})},gY=(0,Ge.default)(lm).withConfig({displayName:"event_picker__Container",componentId:"sc-fis6be-0"})(["border-radius:15px;padding:13px 20px;flex:1;margin-bottom:25px;"]),hY=(0,Ge.default)(qe.default).withConfig({displayName:"event_picker__CheckboxContainer",componentId:"sc-fis6be-1"})(["margin:18px 0 18px 4px;"]),_Y=(0,Ge.default)(qe.default).withConfig({displayName:"event_picker__Divider",componentId:"sc-fis6be-2"})(["height:1px;background:",";",""],Qe.GRAY_BORDER,({small:e})=>e&&"margin-left: 40px;"),xY=(0,Ge.default)(Be.default).withConfig({displayName:"event_picker__LastAppointmentText",componentId:"sc-fis6be-3"})(["",";font-size:12px;line-height:16px;color:",";"],({date:e})=>!e&&"padding: 30px 0 16px 4px",({date:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_MEDIUM);const yY=function({events:e,relationshipId:t,customerName:n,onChange:i}){var o;const[a,s]=(0,K.useState)(),r=t=>{var n;a===t?(s(void 0),i(void 0,void 0)):(s(t),i(null===(n=e[t-1])||void 0===n?void 0:n.id,e[t]))},l=0===a,d=!l&&a?C.DateTime.fromISO(null===(o=e[a-1])||void 0===o?void 0:o.startTime).toLocaleString(Object.assign({},C.DateTime.DATE_HUGE,C.DateTime.TIME_SIMPLE)):null;return(0,X.jsxs)(gY,{elevation:1,children:[(0,X.jsx)(hY,{children:(0,X.jsx)(oY,{testID:"relationship:cancel:event_selection:cancel_all",checked:l,onChange:()=>r(0),color:l?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_3,trackingUserFlow:Fa,trackingObjectName:"all events on from when do you want to cancel",trackingProperties:{relationshipId:t,allEvents:!l},label:i18n.t("customer.cancel_relationship.event_selection_modal.event_picker.cancell_all_appointments"),labelColor:l?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_MEDIUM})}),(0,X.jsx)(_Y,{}),(0,X.jsx)(Lj.default,{data:e,renderItem:({item:e,index:n})=>(0,X.jsxs)(X.Fragment,{children:[n>0&&(0,X.jsx)(_Y,{small:!0}),(0,X.jsx)(fY,{testID:`relationship:cancel:event_selection:event_${e.id}`,relationshipId:t,selected:n>=a,event:e,onSelect:()=>r(n)},e.id)]}),keyExtractor:e=>e.id}),l&&(0,X.jsx)(xY,{children:i18n.t("customer.cancel_relationship.event_selection_modal.no_more_appointments",{customerName:n})}),!l&&(0,X.jsxs)(xY,{children:[a&&i18n.t("customer.cancel_relationship.event_selection_modal.event_picker.last_appointment")," ",a&&(0,X.jsx)(xY,{date:!0,children:d})]})]})},vY=(0,Ge.default)(qe.default).withConfig({displayName:"event_selection_modal__Container",componentId:"sc-jf564m-0"})(["margin:15px 16px 20px 16px;flex:1;"]),bY=(0,Ge.default)(Be.default).withConfig({displayName:"event_selection_modal__Title",componentId:"sc-jf564m-1"})(["margin-bottom:35px;text-align:center;font-size:14px;color:",";font-weight:600;"],Qe.TEXT_DARK),wY=(0,Ge.default)(Be.default).withConfig({displayName:"event_selection_modal__Question",componentId:"sc-jf564m-2"})(["margin-bottom:35px;text-align:center;font-size:20px;color:",";font-weight:600;line-height:26px;"],Qe.TEXT_DARK);const CY=function({isOpen:e,onClose:t,navigateToCancellationModal:n,customer:i}){var o;const{customers:{fetchCustomerFutureEvents:a},analytics:{autoTrackEnhanced:s}}=lt(),r=null===i||void 0===i||null===(o=i.relationship)||void 0===o?void 0:o.id,[l,d]=(0,K.useState)(!0),[c,u]=(0,K.useState)([]),[p,m]=(0,K.useState)(),[f,g]=(0,K.useState)(),{id:h}=(0,Ks.useParams)();return(0,K.useEffect)(()=>{!async function(){d(!0);const e=await a(h,!1);u(e),d(!1)}()},[]),(0,K.useEffect)(()=>{s({userFlow:Fa,action:Xa.view,objectName:"from when do you want to cancel",properties:{relationshipId:r}})},[]),(0,X.jsx)(zw,{isOpen:e,onClose:t,displayCloseButton:!0,children:(0,X.jsxs)(vY,{elevation:1,testID:"relationship:cancel:event_selection:modal",children:[(0,X.jsx)(bY,{children:i18n.t("customer.cancel_relationship.event_selection_modal.title")}),(0,X.jsx)(wY,{children:i18n.t("customer.cancel_relationship.event_selection_modal.question")}),l&&(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS}),(null===c||void 0===c?void 0:c.length)>0&&(0,X.jsx)(yY,{events:c,relationshipId:r,customerName:null===i||void 0===i?void 0:i.name,onChange:(e,t)=>
2862{m(t),g(e)}}),!l&&(0,X.jsx)(ms,{onPress:()=>n(f,p),disabled:!p,centered:!0,variant:"main",testID:"relationship:cancel:event_selection:confirm_cta",children:i18n.t("customer.cancel_relationship.event_selection_modal.cta_text")})]})})},jY=({customer:e,variant:t="main",copy:n=i18n.t("customer.cancel_customer_cta")})=>{const i=(0,Ks.useHistory)(),{events:{fetchEventCaseEligibleFlags:o}}=lt(),[a,s]=(0,K.useState)(!1),[r,l]=(0,K.useState)(!1),[d,c]=(0,K.useState)(),[u,p]=(0,K.useState)(null),[m,f]=(0,K.useState)(!1),[g,h]=(0,K.useState)(!1),[_,x]=(0,K.useState)(!1);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ms,{onPress:()=>l(!0),variant:t,centered:!0,fontSize:"14px",trackingUserFlow:Fa,trackingObjectName:"Cancel relationship",trackingProperties:{relationshipId:e.relationship.id},testID:"relationship:cancel_cta",children:n}),r&&(0,X.jsx)(CY,{isOpen:r,navigateToCancellationModal:async(e,t)=>{p(t),c(e),l(!1);const{pecEligible:n,stcEligible:i,firstInRelationship:a}=await o(t.id);f(n),h(i),x(a),setTimeout(()=>s(!0),300)},onClose:()=>l(!1),customer:e}),a&&(0,X.jsx)(eY,{onClose:e=>{s(!1),e&&i.push(Vi())},event:u,pecEligible:m,stcEligible:g,firstInRelationship:_,lastLiveFutureEventId:d,customer:e})]})},IY=(0,Ge.default)(qe.default).withConfig({displayName:"price_change__Row",componentId:"sc-vmdpoe-0"})(["flex-direction:row;align-items:center;"]),TY=(0,Ge.default)(IY).withConfig({displayName:"price_change__Container",componentId:"sc-vmdpoe-1"})(["margin-bottom:30px;padding-right:25px;"]),EY=(0,Ge.default)(qe.default).withConfig({displayName:"price_change__IconContainer",componentId:"sc-vmdpoe-2"})(["margin-right:13px;background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;cursor:pointer;"],Qe.GREEN_FROSTY_GREEN),NY=(0,Ge.default)(qe.default).withConfig({displayName:"price_change__Content",componentId:"sc-vmdpoe-3"})(["flex:1;cursor:pointer;"]),kY=(0,Ge.default)(Pa.default).withConfig({displayName:"price_change__ArrowRightIcon",componentId:"sc-vmdpoe-4"})(["margin-left:auto;cursor:pointer;"]),RY=(0,Ge.default)(Be.default).withConfig({displayName:"price_change__TitleText",componentId:"sc-vmdpoe-5"})(["font-size:16px;color:",";"],Qe.TEXT_DARK);function SY({customerId:e,customerName:t,requestThroughForm:n,setShowRequestPriceChangeModal:i}){const o=(0,Ks.useHistory)(),{analytics:{autoTrack:a}}=lt();return(0,X.jsx)(ts,{disableWhenOffline:!0,onPress:()=>{n?(a('Provider clicked on "Check your prices with..." for a vertical repeat relationship HIT-35842'),i(!0)):o.push(Pi(e))},withoutFeedback:!0,eventAction:"adjust customer price",children:(0,X.jsxs)(TY,{children:[(0,X.jsx)(EY,{children:(0,X.jsx)(Pa.default,{name:"cash",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsx)(NY,{children:(0,X.jsx)(RY,{children:i18n.t("customer.view_price",{customer:t})})}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(kY,{name:"keyboard-arrow-right",color:Qe.CTA_DARK})})]})})}SY.propTypes={customerId:qc.default.string.isRequired,customerName:qc.default.string.isRequired,requestThroughForm:qc.default.bool,setShowRequestPriceChangeModal:qc.default.func.isRequired};const AY=SY,PY=(0,Ge.default)(qe.default).withConfig({displayName:"home_details__Row",componentId:"sc-9c7b9l-0"})(["flex-direction:row;align-items:center;"]),DY=(0,Ge.default)(PY).withConfig({displayName:"home_details__Container",componentId:"sc-9c7b9l-1"})(["margin-bottom:30px;padding-right:25px;"]),MY=(0,Ge.default)(qe.default).withConfig({displayName:"home_details__IconContainer",componentId:"sc-9c7b9l-2"})(["margin-right:13px;background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN),OY=(0,Ge.default)(qe.default).withConfig({displayName:"home_details__Content",componentId:"sc-9c7b9l-3"})(["flex:1;"]),zY=(0,Ge.default)(Pa.default).withConfig({displayName:"home_details__ArrowRightIcon",componentId:"sc-9c7b9l-4"})(["margin-left:auto;"]),LY=(0,Ge.default)(Be.default).withConfig({displayName:"home_details__TitleText",componentId:"sc-9c7b9l-5"})(["font-size:16px;color:",";"],Qe.TEXT_DARK);function qY({customerId:e,relationshipId:t}){const n=lu(),{autoTrack:i}=mt();return(0,X.jsx)(ts,{disableWhenOffline:!0,onPress:()=>{i("User clicked on Home Details",`on customer detail page - customer id: ${e}, relationshipId: ${t} `),n(Di(e))},withoutFeedback:!0,eventAction:"view home details",children:(0,X.jsxs)(DY,{children:[(0,X.jsx)(MY,{children:(0,X.jsx)(Pa.default,{name:"home",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsx)(OY,{children:(0,X.jsx)(LY,{children:i18n.t("customer.view_home_details",{defaultValue:"View home details"})})}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(zY,{name:"keyboard-arrow-right",color:Qe.CTA_DARK}
2862)})]})})}qY.propTypes={customerId:qc.default.string.isRequired,relationshipId:qc.default.string};const BY=qY;const GY=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-11pnvpc-0"})(["flex-grow:1;"]),UY=(0,Ge.default)(qe.default).withConfig({displayName:"content__Row",componentId:"sc-11pnvpc-1"})(["flex-direction:row;align-items:center;"]),$Y=(0,Ge.default)(Be.default).withConfig({displayName:"content__Heading",componentId:"sc-11pnvpc-2"})(["font-size:16px;color:",";"],Qe.BLACK),FY=((0,Ge.default)(Be.default).withConfig({displayName:"content__NotAvailable",componentId:"sc-11pnvpc-3"})(["text-align:center;font-weight:300;color:",";"],Qe.BLACK),(0,Ge.default)(qe.default).withConfig({displayName:"content__CancelationInfo",componentId:"sc-11pnvpc-4"})(["flex-direction:row;align-items:center;margin-bottom:32px;border-radius:64px;background-color:",";box-shadow:",";padding:6px;"],Qe.WHITE,({elevation:e})=>`0px 24px 44px rgba(22, 22, 22, ${.1*e})`)),HY=(0,Ge.default)(Be.default).withConfig({displayName:"content__CancelationInfoText",componentId:"sc-11pnvpc-5"})(["font-size:14px;line-height:18px;color:",";margin:0 30px 0 12px;flex:1;"],Qe.GRAY_0),WY=(0,Ge.default)(pu.default).attrs({source:n(75176)}).withConfig({displayName:"content__InfoIcon",componentId:"sc-11pnvpc-6"})(["width:52px;height:52px;"]),VY=(0,Ge.default)(qe.default).withConfig({displayName:"content__Actions",componentId:"sc-11pnvpc-7"})(["margin-bottom:50px;"]);function KY({customer:e}){var t,n;const{relationship:i}=e,{session:{settings:o},analytics:{autoTrack:a},toast:{showToastMessage:s}}=lt(),r=null===o||void 0===o||null===(t=o.viewPermissions)||void 0===t?void 0:t.seeRelationshipCancellation,l=null===o||void 0===o||null===(n=o.viewPermissions)||void 0===n?void 0:n.canRescheduleSeries,d=!i.canRequestPriceChange&&i.canRequestPriceChangeWithForm,[c,u]=(0,K.useState)(!1),p=(0,K.useMemo)(()=>i.series.filter(e=>!!e.nextEvent),[i]),[m,f]=(0,K.useState)(p[0]),g=(0,Ks.useHistory)(),h=
2862p.length<1;return(0,K.useEffect)(()=>{h&&s({message:i18n.t(i.cancelled?"relationship.cancelled_info.has_no_future_events":"relationship.details.has_no_future_events")})},[h,i.cancelled,s]),h?(0,X.jsx)(Ks.Redirect,{to:Vi()}):(0,X.jsxs)(GY,{children:[(0,X.jsxs)(qe.default,{style:{flexGrow:1},children:[i.cancelled&&(0,X.jsxs)(FY,{elevation:1,children:[(0,X.jsx)(WY,{}),(0,X.jsx)(HY,{children:i18n.t("relationship.cancelled_info.has_only_few_events_left")})]}),p.length>1&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(UY,{children:(0,X.jsx)($Y,{children:i18n.t("customer.your_bookings")})}),(0,X.jsx)(eK,{selectedSeries:m,series:p,onChange:e=>{a("User clicked on your bookings from customer details",`selected booking (serie): ${null===e||void 0===e?void 0:e.id}`),f(e)}})]}),(null===m||void 0===m?void 0:m.nextEvent)&&(0,X.jsx)(X.Fragment,{children:(0,X.jsx)(pK,{startTime:m.nextEvent.startTime,endTime:m.nextEvent.endTime,onPress:()=>{g.push(Ni(m.nextEvent.id))},eventAction:"next appointment",eventLabel:"from customer details"})}),m&&(0,X.jsx)(CK,{address:m.address.address}),m&&m.nextEvent&&(0,X.jsx)(BY,{customerId:e.id,relationshipId:null===i||void 0===i?void 0:i.id}),i.canRequestPriceChangeWithForm&&(0,X.jsx)(AY,{customerId:e.id,customerName:e.name,requestThroughForm:!i.canRequestPriceChange,setShowRequestPriceChangeModal:u})]}),(0,X.jsxs)(VY,{children:[l&&m.changeRequestable&&m.period!==ed&&(0,X.jsx)(IK,{customerId:e.id,seriesId:m.id,customerName:e.name,relationshipId:e.relationship.id}),r&&!i.cancelled&&(0,X.jsx)(jY,{customer:e,variant:"danger",copy:i18n.t("booking.cancel_booking.cta_text")})]}),d&&(0,X.jsx)(gs,{isVisible:c,onBackdropPress:()=>u(!1),children:(0,X.jsx)($c.default,{buttons:[{color:Qe.CRIMSON_1,onPress:()=>u(!1),text:i18n.t("customer.request_price_change_with_form_modal.cta.cancel"),icon:{name:"close"}},{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>g.push("/provider/faq/contact_form"),text:i18n.t("customer.request_price_change_with_form_modal.cta.go_to_contact_form"),icon:{name:"done"}}],children:(0,X.jsx)(Hg,{children:(0,X.jsx)(Wg,{fontSize:14,children:i18n.t("customer.request_price_change_with_form_modal.text")})})})})]})}KY.propTypes={customer:qc.default.object};const YY=KY,XY=(0,Ge.default)(qe.default).withConfig({displayName:"item__Row",componentId:"sc-qrra09-0"})(["flex-direction:row;align-items:center;"]),ZY=(0,Ge.default)(XY).withConfig({displayName:"item__SeriesItemContainer",componentId:"sc-qrra09-1"})(["padding:20px;justify-content:space-between;"]),QY=(0,Ge.default)(Be.default).withConfig({displayName:"item__Date",componentId:"sc-qrra09-2"})(["font-weight:",";color:",";"],({selected:e})=>e?"bold":"normal",({selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK),JY=(0,Ge.default)(XY).withConfig({displayName:"item__FrequencyRow",componentId:"sc-qrra09-3"})(["margin-top:4px;"]),eX=(0,Ge.default)(Be.default).withConfig({displayName:"item__Frequency",componentId:"sc-qrra09-4"})(["margin-top:5px;font-size:12px;font-weight:200;color:",";"],Qe.BLACK),tX=(0,Ge.default)(Pa.default).attrs({name:"calendar-clock",set:"MaterialCommunityIcons",color:Qe.BLACK,size:16}).withConfig({displayName:"item__CalendarIcon",componentId:"sc-qrra09-5"})(["margin:5px 5px 0 0;"]);function nX({series:e,selected:t,chevron:n,onPress:i}){var o;const a=C.DateTime.fromISO((null===(o=e.nextEvent)||void 0===o?void 0:o.startTime)||e.startTime).toFormat("cccc, t");return(0,X.jsx)(ts,{onPress:i,withoutFeedback:!0,children:(0,X.jsxs)(ZY,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(QY,{selected:t,children:a}),(0,X.jsxs)(JY,{children:[(0,X.jsx)(tX,{}),(0,X.jsx)(eX,{children:i18n.t(`frequency_names.${e.period||"once"}`)})]})]}),n&&(0,X.jsx)(qe.default,{children:(0,X.jsx)(Pa.default,{name:n,set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,size:20})})]})})}nX.propTypes={series:qc.default.object};const iX=nX,oX=(0,Ge.default)(lm).withConfig({displayName:"series_picker__Paper",componentId:"sc-k7heb4-0"})(["margin:15px 0 30px;border-radius:16px;padding:0;"]),aX=(0,Ge.default)(qe.default).withConfig({displayName:"series_picker__Divider",componentId:"sc-k7heb4-1"}
2862)(["height:1px;background:",";margin:0 20px;"],Qe.GRAY_BORDER);const sX=function({series:e,selectedSeries:t,onChange:n}){const[i,o]=(0,K.useState)(!1);return(0,X.jsxs)(oX,{elevation:1,children:[(0,X.jsx)(iX,{selected:!0,chevron:i?"chevron-up":"chevron-down",series:t,onPress:()=>o(!i)}),i&&e.filter(e=>e.id!==t.id).map((t,i)=>(0,X.jsxs)(X.Fragment,{children:[i<e.length-1&&(0,X.jsx)(aX,{}),(0,X.jsx)(iX,{series:t,onPress:()=>{n(t),o(!1)}},t.id)]}))]})},rX=["startTime","endTime"],lX=(0,Ge.default)(qe.default).withConfig({displayName:"event_time__Row",componentId:"sc-1dv9o8z-0"})(["flex-direction:row;align-items:center;"]),dX=(0,Ge.default)(lX).withConfig({displayName:"event_time__EventTimeContainer",componentId:"sc-1dv9o8z-1"})(["margin-top:10px;"]),cX=(0,Ge.default)(Be.default).withConfig({displayName:"event_time__StyledText",componentId:"sc-1dv9o8z-2"})(["font-weight:500;font-size:14px;line-height:16px;color:",";"],Qe.TEXT_DARK);const uX=function(e){let{startTime:t,endTime:n}=e,i=(0,A.default)(e,rX);const o=C.DateTime.fromISO(t),a=C.DateTime.fromISO(n),s=o.toLocaleString(C.DateTime.TIME_SIMPLE),r=a.toLocaleString(C.DateTime.TIME_SIMPLE);return(0,X.jsx)(dX,Object.assign({},i,{children:(0,X.jsxs)(cX,{children:[s," - ",r]})}))},pX=["width","height"],mX=e=>{let{width:t=48,height:n=48}=e,i=(0,A.default)(e,pX);return(0,X.jsxs)(Wu.default,Object.assign({width:t,height:n,viewBox:"0 0 48 48",fill:"none"},i,{children:[(0,X.jsx)(Wu.Rect,{width:48,height:48,rx:12,fill:"#DEE9E7"}),(0,X.jsx)(Wu.Path,{opacity:.4,fillRule:"evenodd",clipRule:"evenodd",d:"M20.184 15.352h7.678v-1.788h-7.678v1.788zm-1.747-1.714v.008c-.6.055-1.192.174-1.77.353v-.007c-.016.008-.032.013-.048.018a.459.459 0 0 0-.058.024.643.643 0 0 0-.134.049 4.82 4.82 0 0 0-.372.14c-.032.012-.064.026-.095.04a1.929 1.929 0 0 1-.095.04l-.134.067c-.046.022-.09.045-.134.065l-.215.124c-.04.02-.076.044-.114.068a5.116 5.116 0 0 0-.96.772l-.016.016-.106.121c-.059.067-.116.133-.17.2l-.017.015a6.623 6.623 0 0 0-1.24 4.214v.48h1.731v-.484c0-2.107.671-3.419 2.165-4.09a5.928 5.928 0 0 1 1.786-.446h.016v-1.78l-.02-.007zm15.56 2.091.008.016a6.628 6.628 0 0 1 1.236 4.216v.484h-1.73v-.496a5.515 5.515 0 0 0-.523-2.582 3.292 3.292 0 0 0-1.652-1.509 5.723 5.723 0 0 0-1.76-.445v-1.771a8.69 8.69 0 0 1 1.77.353v-.01c.032.016.057.024.1.04l.007.002.056.02c.026.01.05.02.078.029.119.039.23.085.344.132l.02.008c.052.019.102.042.146.062l.042.02a3.943 3.943 0 0 1 .417.213l.073.041c.039.021.072.044.104.066l.07.045c.324.21.626.454.9.729l.01.017c.1.1.195.208.285.32z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M29.625 12.396v3.94a.899.899 0 0 1-1.8 0v-3.93a.898.898 0 0 1 .893-.906.899.899 0 0 1 .907.892v.004zM20.175 12.41v3.93a.9.9 0 1 1-1.8 0v-3.93a.9.9 0 1 1 1.8 0",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.75 30.138v-9.693h22.5v9.693c0 4.226-2.36 6.362-7.039 6.362h-8.433c-4.667 0-7.028-2.136-7.028-6.362zm5.075-4.305c0 .587.462 1.063 1.03 1.063.58 0 1.04-.487 1.03-1.074 0-.586-.461-1.062-1.02-1.062h-.01c-.569 0-1.03.487-1.03 1.073zm5.14 0c0 .587.472 1.063 1.04 1.063.569 0 1.03-.476 1.03-1.074 0-.575-.461-1.05-1.03-1.062h-.01a1.064 1.064 0 0 0-1.03 1.073zm6.18 1.063c-.569 0-1.03-.476-1.03-1.063 0-.586.45-1.062 1.03-1.062.569 0 1.03.476 1.03 
28621.063 0 .586-.462 1.062-1.03 1.062zm0 4.536c-.569 0-1.03-.476-1.04-1.062 0-.586.46-1.062 1.03-1.062h.01c.569 0 1.03.476 1.03 1.062 0 .586-.462 1.062-1.03 1.062zm-5.14 0c-.568 0-1.04-.476-1.04-1.062 0-.586.461-1.062 1.03-1.073h.01c.569.01 1.02.487 1.03 1.062 0 .597-.461 1.073-1.03 1.073zm-5.15 0c-.569 0-1.03-.476-1.03-1.062a1.043 1.043 0 0 1 1.03-1.073c.569 0 1.03.476 1.03 1.062 0 .586-.461 1.073-1.03 1.073z",fill:"#5C8E85"})]}))},fX=["startTime","endTime","onPress","eventAction","eventLabel"],gX=(0,Ge.default)(qe.default).withConfig({displayName:"next_appointment__Row",componentId:"sc-c7foej-0"})(["flex-direction:row;align-items:center;"]),hX=(0,Ge.default)(lm).withConfig({displayName:"next_appointment__NextAppointmentContainer",componentId:"sc-c7foej-1"})(["flex-direction:row;align-items:center;border-radius:16px;background:",";padding:25px;margin-bottom:30px;"],Qe.GREEN_IRISH_BREEZE),_X=(0,Ge.default)(qe.default).withConfig({displayName:"next_appointment__CalendarIconContainer",componentId:"sc-c7foej-2"})(["margin-right:13px;"]),xX=(0,Ge.default)(qe.default).withConfig({displayName:"next_appointment__NextAppointmentContent",componentId:"sc-c7foej-3"})(["flex:1;"]),yX=(0,Ge.default)(gX).withConfig({displayName:"next_appointment__NextAppointmentContentDateRow",componentId:"sc-c7foej-4"})(["margin-top:10px;"]),vX=(0,Ge.default)(Pa.default).attrs({name:"chevron-right",color:Qe.TEXT_DARK}).withConfig({displayName:"next_appointment__ChevronRightIcon",componentId:"sc-c7foej-5"})([""]),bX=(0,Ge.default)(Be.default).withConfig({displayName:"next_appointment__StyledText",componentId:"sc-c7foej-6"})(["font-size:16px;color:",";"],Qe.TEXT_DARK);const wX=function(e){let{startTime:t,endTime:n,onPress:i,eventAction:o,eventLabel:a}=e,s=(0,A.default)(e,fX);const{isConnected:r}=(0,ta.useNetInfo)(),l=C.DateTime.fromISO(t).toFormat("cccc dd LLL yyyy");return(0,X.jsx)(ts,{onPress:i,disabled:!r,withoutFeedback:!0,eventAction:o,eventLabel:a,children:(0,X.jsxs)(hX,Object.assign({},s,{children:[(0,X.jsx)(_X,{children:(0,X.jsx)(mX,{})}),(0,X.jsxs)(xX,{children:[(0,X.jsx)(gX,{children:(0,X.jsx)(bX,{children:i18n.t("customer.next_appointment")})}),(0,X.jsx)(yX,{children:(0,X.jsx)(bX,{children:l})}),(0,X.jsx)(uX,{startTime:t,endTime:n})]}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(vX,{})})]}))})},CX=({width:e=48,height:t=48})=>(0,X.jsxs)(Wu.default,{width:e,height:t,viewBox:"0 0 48 48",fill:"none",children:[(0,X.jsx)(Wu.Rect,{width:48,height:48,rx:12,fill:"#DEE9E7"}),(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.665 12.671a8.612 8.612 0 0 1 8.793.073c2.679 1.665 4.307 4.636 4.292 7.833-.063 3.175-1.808 6.16-3.99 8.468a23.404 23.404 0 0 1-4.199 3.525 1.47 1.47 0 0 1-.51.18 1.025 1.025 0 0 1-.488-.148 23.146 23.146 0 0 1-6.048-5.684 11.6 11.6 0 0 1-2.265-6.5c-.002-3.203 1.683-6.16 4.415-7.747zm1.578 9.072a2.972 2.972 0 0 0 2.747 1.872 2.924 2.924 0 0 0 2.104-.877c.558-.567.87-1.337.868-2.14a3.029 3.029 0 0 0-1.828-2.805 2.933 2.933 0 0 0-3.242.65 3.069 3.069 0 0 0-.65 3.3z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{opacity:.4,d:"M24 36.5c3.452 0 6.25-.56 6.25-1.25S27.452 34 24 34s-6.25.56-6.25 1.25S20.548 36.5 24 36.5z",fill:"#5C8E85"})]}),jX=["address"],IX=(0,Ge.default)(qe.default).withConfig({displayName:"address__Row",componentId:"sc-py5q9m-0"})(["flex-direction:row;align-items:center;"]),TX=(0,Ge.default)(IX).withConfig({displayName:"address__AddressContainer",componentId:"sc-py5q9m-1"})(["margin-bottom:30px;"]),EX=(0,Ge.default)(qe.default).withConfig({displayName:"address__IconContainer",componentId:"sc-py5q9m-2"})(["margin-right:13px;"]),NX=(0,Ge.default)(qe.default).withConfig({displayName:"address__AddressContent",componentId:"sc-py5q9m-3"})(["flex:1;"]),kX=((0,Ge.default)(Pa.default).attrs({name:"arrow-forward",color:Qe.TEXT_DARK}).withConfig({displayName:"address__ArrowRightIcon",componentId:"sc-py5q9m-4"})(["margin-left:auto;"]),(0,Ge.default)(Be.default).withConfig({displayName:"address__StyledText",componentId:"sc-py5q9m-5"})(["font-size:16px;color:",";"],Qe.TEXT_DARK));const RX=function(e){let{address:t}=e,n=(0,A.default)(e,jX);return(0,X.jsxs)(TX,Object.assign({},n,{children:[(0,X.jsx)(EX,{children:(0,X.jsx)(CX,{})}),(0,X.jsx)(NX,{children:(0,X.jsx)(kX,{children:t})}),!1]}
2862))},SX=(0,Ge.default)(qe.default).withConfig({displayName:"header__HeaderContainer",componentId:"sc-1s4km10-0"})(["display:flex;flex-direction:row;justify-content:flex-end;"]);function AX({onClose:e,eventAction:t}){return(0,X.jsx)(SX,{children:(0,X.jsx)(ts,{onPress:e,eventAction:t,children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.BLACK})})})}const PX=(0,Ge.default)(qe.default).withConfig({displayName:"modal__Overlay",componentId:"sc-1ladlxg-0"})(["flex:1;display:flex;justify-content:center;align-items:center;"]),DX=(0,Ge.default)(qe.default).withConfig({displayName:"modal__Container",componentId:"sc-1ladlxg-1"})(["padding:16px 16px 45px 45px;align-self:center;background-color:",";max-width:600px;height:600px;width:100%;"],Qe.WHITE),MX=(0,Ge.default)(qe.default).withConfig({displayName:"modal__SectionContainer",componentId:"sc-1ladlxg-2"})(["margin-top:30px;"]),OX=(0,Ge.default)(Be.default).withConfig({displayName:"modal__SectionText",componentId:"sc-1ladlxg-3"})(["color:",";font-size:16px;"],Qe.BLACK),zX=(0,Ge.default)(Be.default).withConfig({displayName:"modal__ItemText",componentId:"sc-1ladlxg-4"})(["margin-left:5px;margin-top:16px;font-size:12px;",""],e=>e.lineThrough&&"text-decoration: line-through;"),LX=oA().t("customer.home_details.modal.customer_info"),qX=oA().t("customer.home_details.modal.general_info"),BX=oA().t("customer.home_details.modal.additional_service"),GX=oA().t("customer.home_details.modal.preferred_language"),UX=oA().t("customer.home_details.modal.name_on_the_bell"),$X=oA().t("customer.home_details.modal.customer_has_pets"),FX=oA().t("customer.home_details.modal.customer_has_no_pets"),HX=oA().t("customer.home_details.modal.floor_types"),WX=oA().t("customer.home_details.modal.with_elevator"),VX=oA().t("customer.home_details.modal.no_elevator"),KX=" --",YX={parket:"parket",hard_wood:"hard wood",laminate:"laminate",natural_stone:"natural stone",tiles:"tiles",carpet:"carpet",veneer:"veneer"};function XX({details:e,onClose:t,isOpen:n}){const{preferredLanguage:i,nameOnBell:o,rooms:a,bathrooms:s,size:r,floor:l,floorType:d,pets:c,laundry:u,ironing:p,elevator:m}=e,f=d.map(e=>YX[e]).filter(e=>!!e).join(", ");let g=[];return a>0&&g.push(`${a} ${a>1?"rooms":"room"}`),s>0&&g.push(`${s} ${s>1?"bathrooms":"bathroom"}`),r>0&&g.push(`(${r} m2)`),(0,X.jsx)(gs,{isVisible:n,children:(0,X.jsx)(ts,{onPress:t,withoutFeedback:!0,eventAction:"close from home details",children:(0,X.jsx)(PX,{children:(0,X.jsx)(ts,{onPress:()=>{},withoutFeedback:!0,children:(0,X.jsxs)(DX,{children:[(0,X.jsx)(AX,{onClose:t,eventAction:"close from home details"}),(0,X.jsxs)(MX,{children:[(0,X.jsx)(OX,{children:LX}),(0,X.jsxs)(zX,{children:[". ",GX,": ",i||KX]}),(0,X.jsxs)(zX,{children:[". ",UX,": ",o||KX]})]}),(0,X.jsxs)(MX,{children:[(0,X.jsx)(OX,{children:qX}),(0,X.jsxs)(zX,{children:[". ","Space",": ",g.join(" , ")||KX]}),l?(0,X.jsxs)(zX,{children:[". ",0===Number(l)?"Ground floor":`Floor ${l}`,Number(l)>1&&" "+(m?WX:VX)]}):null,(0,X.jsxs)(zX,{children:[". ",HX,": ",f||KX]}),(0,X.jsxs)(zX,{children:[". ",c&&"none"!==c?$X:FX]})]}),(0,X.jsxs)(MX,{children:[(0,X.jsx)(OX,{children:BX}),(0,X.jsxs)(zX,{lineThrough:!p,children:[". ","Ironing"]}),(0,X.jsxs)(zX,{lineThrough:!u,children:[". ","Laundry"]})]})]})})})})})}const ZX=(0,Ge.default)(qe.default).withConfig({displayName:"home_details__Row",componentId:"sc-h7nq4v-0"})(["flex-direction:row;align-items:center;"]),QX=(0,Ge.default)(ZX).withConfig({displayName:"home_details__Container",componentId:"sc-h7nq4v-1"})(["margin-bottom:30px;"]),JX=(0,Ge.default)(qe.default).withConfig({displayName:"home_details__IconContainer",componentId:"sc-h7nq4v-2"})(["margin-right:13px;background-color:",";width:48px;height:48px;border-radius:12px;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN),eZ=(0,Ge.default)(qe.default).withConfig({displayName:"home_details__Content",componentId:"sc-h7nq4v-3"})(["flex:1;"]),tZ=(0,Ge.default)(Pa.default).withConfig({displayName:"home_details__ArrowRightIcon",componentId:"sc-h7nq4v-4"})(["margin-left:auto;"]),nZ=(0,Ge.default)(Be.default).withConfig({displayName:"home_details__TitleText",componentId:"sc-h7nq4v-5"})(["font-size:16px;color:",";"],Qe.TEXT_DARK),iZ=(0,Ge.default)(Be.default).withConfig({displayName:"home_details__DescText",componentId:"sc-h7nq4v-6"})(["font-size:12px;margin-top:3px;"]);const oZ=function({details:e}){const[t,n]=(0,K.useState)(!1);let i=[];if(e){const{rooms:t,bathrooms:n,size:o}=e;t>0&&i.push(`${t} ${t>1?"rooms":"room"}`),n>0&&i.push(`${n} ${n>1?"bathrooms":"bathroom"}`),o>0&&i.push(`(${o} m2)`)}return(0,X.jsx)(ts,{onPress:()=>n(!0),withoutFeedback:!0,eventAction:"view home details",children:(0,X.jsxs)(QX,{children:[(0,X.jsx)(JX,{children:(0,X.jsx)(Pa.default,{name:"home",size:30,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsxs)(eZ,{children:[(0,X.jsx)(nZ,{children:i18n.t("customer.view_home_details")}),e?i.length>0&&(0,X.jsx)(iZ,{children:i.join(" , ")}
2862):(0,X.jsx)(iZ,{children:i18n.t("customer.home_details.no_details")})]}),e&&(0,X.jsx)(qe.default,{children:(0,X.jsx)(tZ,{name:"keyboard-arrow-right",size:18,color:"gray"})}),e&&(0,X.jsx)(XX,{isOpen:t,onClose:()=>n(!1),details:e})]})})},aZ=({width:e=40,height:t=40})=>(0,X.jsx)(Wu.default,{width:e,height:t,viewBox:"0 0 40 40",fill:"none",children:(0,X.jsx)(Wu.Path,{d:"M40 20c0 9.665-8.955 17.5-20 17.5a22.648 22.648 0 0 1-5.867-.765c-1.46.74-4.813 2.16-10.453 3.085-.5.08-.88-.44-.683-.905.885-2.09 1.686-4.875 1.926-7.415C1.86 28.425 0 24.4 0 20 0 10.335 8.955 2.5 20 2.5S40 10.335 40 20zm-27.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0zm10 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0zm7.5 2.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z",fill:"#BED2CE"})}),sZ=["disabled","displayIndicator","onPress","eventAction","eventLabel"],rZ=(0,Ge.default)(lm).withConfig({displayName:"chat_button__ButtonContainer",componentId:"sc-1pwl00r-0"})(["flex-direction:row;align-items:center;border-radius:16px;background:",";padding:10px;justify-content:center;position:relative;width:100%;max-width:300px;align-self:center;"],Qe.GREEN_SUMMER_GRASS),lZ=(0,Ge.default)(qe.default).withConfig({displayName:"chat_button__ChatIconContainer",componentId:"sc-1pwl00r-1"})(["margin-right:12px;"]),dZ=(0,Ge.default)(Be.default).withConfig({displayName:"chat_button__StyledText",componentId:"sc-1pwl00r-2"})(["font-size:20px;font-weight:bold;color:",";"],Qe.VIOLET_5),cZ=(0,Ge.default)(wj).withConfig({displayName:"chat_button__DotIndicator",componentId:"sc-1pwl00r-3"})(["position:absolute;top:-3px;right:-3px;"]);const uZ=function(e){let{disabled:t,displayIndicator:n,onPress:i,eventAction:o,eventLabel:a}=e,s=(0,A.default)(e,sZ);return(0,X.jsx)(ts,{onPress:i,disabled:t,withoutFeedback:!0,eventAction:o,eventLabel:a,children:(0,X.jsxs)(rZ,Object.assign({},s,{children:[(0,X.jsx)(lZ,{children:(0,X.jsx)(aZ,{width:40,height:37})}),(0,X.jsx)(dZ,{children:i18n.t("customer.chat_cta")}),n&&(0,X.jsx)(cZ,{})]}))})},pZ=(0,Ge.default)(qe.default).withConfig({displayName:"premium_content__Container",componentId:"sc-qkleb1-0"})(["flex:1;padding-bottom:16px;"]),mZ=(0,Ge.default)(Vf.default).withConfig({displayName:"premium_content__ScrollView",componentId:"sc-qkleb1-1"})(["padding:32px 16px 0px 16px;"]),fZ=(0,Ge.default)(qe.default).withConfig({displayName:"premium_content__Row",componentId:"sc-qkleb1-2"})(["flex-direction:row;align-items:center;"]),gZ=(0,Ge.default)(Be.default).withConfig({displayName:"premium_content__Heading",componentId:"sc-qkleb1-3"})(["font-size:16px;color:",";"],Qe.BLACK),hZ=(0,Ge.default)(Be.default).withConfig({displayName:"premium_content__NotAvailable",componentId:"sc-qkleb1-4"})(["text-align:center;font-weight:300;color:",";"],Qe.BLACK),_Z=(0,Ge.default)(qe.default).withConfig({displayName:"premium_content__Footer",componentId:"sc-qkleb1-5"})(["margin-top:10px;"]);function xZ(){return(0,X.jsx)(qe.default,{children:(0,X.jsx)(hZ,{children:i18n.t("customer.no_relationship")})})}const yZ=function({customer:e}){const{relationship:t}=e,{session:{counters:{unreadMessages:n}},analytics:{autoTrack:i}}=lt(),{isConnected:o}=(0,ta.useNetInfo)();if(!t)return(0,X.jsx)(xZ,{});const{series:a}=t,[s,r]=(0,K.useState)(a[0]),l=(0,Ks.useHistory)();return(0,X.jsxs)(pZ,{children:[(0,X.jsxs)(mZ,{children:[a.length>1&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(fZ,{children:(0,X.jsx)(gZ,{children:i18n.t("customer.your_bookings")})}),(0,X.jsx)(sX,{selectedSeries:s,series:a,onChange:e=>{i("User clicked on your bookings from customer details",`selected booking (serie): ${null===e||void 0===e?void 0:e.id}`),r(e)}})]}),(null===s||void 0===s?void 0:s.nextEvent)&&(0,X.jsx)(X.Fragment,{children:(0,X.jsx)(wX,{startTime:s.nextEvent.startTime,endTime:s.nextEvent.endTime,onPress:()=>{l.push(Ni(s.nextEvent.id))},eventAction:"next appointment",eventLabel:"from customer details"})}),(0,X.jsx)(RX,{address:s.address.address}),s&&s.nextEvent&&(0,X.jsx)(oZ,{details:s.nextEvent.customerHomeDetails})]}),(0,X.jsx)(_Z,{children:(0,X.jsx)(uZ,{disabled:!o,displayIndicator:n>0,onPress:()=>l.push(Hi(e.relationship.id)),eventAction:"chat button",eventLabel:"from customer details"})})]})},vZ=(0,Ge.default)(Be.default).withConfig({displayName:"customer__NotAvailable",componentId:"sc-1x187mg-0"})(["text-align:center;font-weight:300;color:",";"],Qe.BLACK);function bZ(){return(0,X.jsx)(Rf,{page:"customer",content:()=>(0,X.jsx)(vZ,{children:i18n.t("customer.no_customer")})})}function wZ(){return(0,X.jsx)(Rf,{page:"customer",content:()=>(0,X.jsx)(Aa.default,{testID:"customer-loading",color:Qe.GREEN_SUMMER_GRASS})})}const CZ=()=>{const{id:e}=(0,Ks.useParams)(),[t,n]=(0,K.useState)(!0),[i,o]=(0,K.useState)(null),{isConnected:a}=(0,ta.useNetInfo)(),{session:{fetchUnreadMessagesCount:s,currentUser:{premium:r}},customers:{fetchCustomer:l}}=lt();if((0,K.useEffect)(()=>{!async function(e){n(!0);const t=await l(e);o(t),n(!1)}(e),s()},[a]),t)return(0,X.jsx)(wZ,{});
2862if(!i||null===i||void 0===i||!i.relationship)return(0,X.jsx)(bZ,{});const{name:d}=i;return r?(0,X.jsx)(Rf,{page:"customer",header:()=>(0,X.jsx)(EV,{customer:i}),content:()=>(0,X.jsx)(yZ,{customer:i}),noContentMargin:!0,scrollEnabled:!1,contentContainerStyle:{flex:1}}):(0,X.jsx)(Rf,{title:d,page:"customer",subheader:()=>(0,X.jsx)(UV,{customer:i,from:"customer"}),content:()=>i.relationship?(0,X.jsx)(YY,{customer:i}):(0,X.jsx)(bZ,{}),contentContainerStyle:{flexGrow:1}})},jZ=()=>(0,X.jsx)(CZ,{}),IZ=(0,Ge.default)(Uc.default).withConfig({displayName:"message_popup__StyledTextInput",componentId:"sc-btnw2k-0"})(["padding:15px;font-size:16px;border-radius:4px;border:1px solid ",";margin:30px 40px;min-width:80%;max-width:",";height:156px;"],Qe.GRAY_BORDER,Vj),TZ=(0,Ge.default)(ms).withConfig({displayName:"message_popup__Cta",componentId:"sc-btnw2k-1"})(["align-self:center;"]),EZ=(0,Ge.default)(qe.default).withConfig({displayName:"message_popup__PriceChange",componentId:"sc-btnw2k-2"})(["align-items:center;flex-direction:row;margin:20px 0px;"]),NZ=(0,Ge.default)(Be.default).withConfig({displayName:"message_popup__PriceChangeText",componentId:"sc-btnw2k-3"})(["text-align:center;font-size:14px;color:",";"],Qe.TEXT_DARK),kZ=(0,Ge.default)(Be.default).withConfig({displayName:"message_popup__Description",componentId:"sc-btnw2k-4"})(["margin-bottom:","px;text-align:center;font-size:14px;color:",";max-width:80%;"],35,Qe.TEXT_DARK),RZ=(0,Ge.default)(qe.default).withConfig({displayName:"message_popup__Wrapper",componentId:"sc-btnw2k-5"})(["align-items:center;"]),SZ=(0,Ge.default)(Pa.default).attrs(()=>({name:"arrow-right-thin",set:"MaterialCommunityIcons",color:Qe.GREEN_SUMMER_GRASS,size:22})).withConfig({displayName:"message_popup__ArrowIcon",componentId:"sc-btnw2k-6"})([""]);function AZ({customer:e,futurePrice:t,onPriceChangeSuccess:n,closeModal:i}){const{relationship:o}=e,{analytics:{autoTrack:a},toast:{showToastMessage:s}}=lt(),[r,l]=(0,K.useState)(""),{createRelationshipPriceChangeRequest:d,saving:c}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(TD);return{createRelationshipPriceChangeRequest:({relationshipId:t,futurePrice:n,message:i})=>e({variables:{relationshipId:t,futurePrice:n,message:i},context:{apiVersion:3}}),saving:t}})(),u=!(p=r)||!/\S/.test(p)||c;var p;return(0,X.jsx)(zw,{title:i18n.t("customer.price_change_message_title"),isOpen:!0,displayCloseButton:!0,onClose:i,children:(0,X.jsxs)(RZ,{children:[(0,X.jsxs)(EZ,{children:[(0,X.jsx)(NZ,{children:fh(o.customerRecurringPrice,{withSymbol:!0})}),(0,X.jsx)(SZ,{}),(0,X.jsx)(NZ,{children:fh(t,{withSymbol:!0})})]}),(0,X.jsx)(kZ,{children:i18n.t("customer.price_change_message_description")}),(0,X.jsx)(IZ,{autoFocus:!0,multiline:!0,numberOfLines:7,textAlignVertical:"top",value:r,onChangeText:l}),(0,X.jsx)(TZ,{disabled:u,onPress:async()=>{var i;a("Price update - Provider sends price change request to customer",`from customer price update page - customer: ${e.id} - message: ${r} - price: ${t}`);const l=await d({relationshipId:o.id,futurePrice:t,message:r});null!==l&&void 0!==l&&null!==(i=l.data)&&void 0!==i&&i.createRelationshipPriceChangeRequest.success?n():s({message:i18n.t("provider.generic.error"),onlyPopup:!0})},children:i18n.t("customer.price_adjustment.send_request")})]})})}AZ.propTypes={customer:qc.default.object,futurePrice:qc.default.number,onPriceChangeSuccess:qc.default.func,closeModal:qc.default.func};const PZ=AZ;var DZ=n(82170);const MZ=(0,Ge.default)(DZ.default).withConfig({displayName:"price_input_simple__PriceTextInput",componentId:"sc-advq19-0"})(["color:",";font-size:14px;padding-bottom:16px;margin-bottom:-16px;font-weight:600;text-align:",";width:",";"," flex:1;"],Qe.GRAY_0,({align:e})=>e||"right",({width:e})=>e||"64px","outline-style: none;"),OZ=(0,K.forwardRef)(({value:e,onChange:t,onFocus:n=()=>null,onBlur:i=()=>null,testID:o=null},a)=>(0,X.jsx)(MZ,{testID:o,ref:a,value:e/100,onChangeValue:e=>t(null==e?0:Math.round(100*e)),separator:".",precision:2,onBlur:i,onFocus:n})),zZ=xt`
2863  query getServices {
2864    services {
2865      id
2866      enabled
2867    }
2868  }
2869`,LZ=()=>{const{data:e,error:t,refetch:n,loading:i}=(0,Is.useQuery)(zZ,{context:{apiVersion:3}});return{refetch:n,services:(null===e||void 0===e?void 0:e.services)||[],loading:i,error:t}},qZ=xt`
2870  query getServiceSettings($id: ID!) {
2871    service(id: $id) {
2872      id
2873      enabled
2874      editableRecurringPricing
2875      priceSetting {
2876        pricingUnit
2877        providerAdhocPrice
2878        providerRepeatPrice
2879        suggestedPrice
2880        limits {
2881          oneOffMinPrice
2882          oneOffMaxPrice
2883          recurringMinPrice
2884          recurringMaxPrice
2885        }
2886      }
2887      cartPriceSettings {
2888        adhocPrice
2889        enabled
2890        group
2891        key
2892        repeatPrice
2893        sectionName
2894        type
2895      }
2896      pictures {
2897        id
2898        filename
2899        url
2900      }
2901      settings {
2902        key
2903        required
2904        sectionName
2905        type
2906        maxSize
2907        hint
2908        value
2909        suggestion {
2910          fromServiceId
2911          value
2912        }
2913        options {
2914          key
2915        }
2916      }
2917    }
2918  }
2919`,BZ=xt`
2920  mutation updateServiceSettings(
2921    $settings: [ServiceSettingAttributes!]!
2922    $id: ID!
2923    $pictures: [Upload!]
2924    $priceSetting: PriceSettingAttributes
2925    $priceSettings: [PriceSettingAttributes!]
2926  ) {
2927    updateServiceSettings(
2928      settings: $settings,
2929      id: $id,
2930      pictures: $pictures,
2931      priceSetting: $priceSetting,
2932      priceSettings: $priceSettings
2933    ) {
2934      success
2935      errors {
2936        code
2937        message
2938      }
2939    }
2940  }
2941`,GZ=xt`
2942  query getServiceCommissions($id: ID!, $commissionType: RepeatOrOneOffEnum!, $price: Int!
2942) {
2943    service(id: $id) {
2944      commissions(price: $price, type: $commissionType) {
2945        customerPrice
2946        helplingCommission
2947        providerCommission
2948      }
2949    }
2950  }
2951`,UZ=()=>{var e;const[t,{loading:n,data:i}]=(0,kn.useLazyQuery)(GZ);return{getServiceCommissions:(e,n,i)=>i?t({variables:{id:e,commissionType:n,price:i},context:{apiVersion:3}}):null,loadingCommissions:n,commissions:(null===i||void 0===i||null===(e=i.service)||void 0===e?void 0:e.commissions)||null}},$Z=xt`
2952  mutation disableService($id: ID!) {
2953    disableService(id: $id) {
2954      success
2955      errors {
2956        code
2957        message
2958      }
2959    }
2960  }
2961`,FZ=xt`
2962  mutation enableService($id: ID!) {
2963    enableService(id: $id) {
2964      success
2965      errors {
2966        code
2967        message
2968      }
2969    }
2970  }
2971`,HZ=xt`
2972  mutation deleteServicePictures($pictureIds: [ID!]!) {
2973    deleteServicePictures(pictureIds: $pictureIds) {
2974      success
2975      errors {
2976        code
2977        message
2978      }
2979    }
2980  }
2981`,WZ="TextArea",VZ="YesNo",KZ="SingleSelection",YZ="MultipleSelection",XZ="one_off",ZZ="repeat",QZ=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__Container",componentId:"sc-t6kq6u-0"})(["width:100%;gap:6px;"]),JZ=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__HeaderTitleContainer",componentId:"sc-t6kq6u-1"})(["flex-direction:row;align-items:center;gap:4px;"]),eQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__HeaderTitle",componentId:"sc-t6kq6u-2"})(["color:",";font-size:14px;font-weight:700;"],Qe.GRAY_0),tQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__HeaderDescription",componentId:"sc-t6kq6u-3"})(["color:",";font-size:12px;font-weight:400;"],Qe.GRAY_2),nQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__PriceTextInputContainer",componentId:"sc-t6kq6u-4"})(["background:",";flex-direction:row;align-items:center;padding:12px 8px;border:1px solid ",";border-radius:7px;"],Qe.WHITE,Qe.VIOLET_4),iQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__PriceLabel",componentId:"sc-t6kq6u-5"})(["color:",";font-size:13px;font-weight:600;"],Qe.GRAY_2),oQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__ErrorMessage",componentId:"sc-t6kq6u-6"})(["color:",";font-size:13px;"],Qe.CRIMSON_2),aQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__AfterCommissions",componentId:"sc-t6kq6u-7"})(["font-size:13px;text-align:right;",""],({loading:e})=>e&&`\n    color: ${Qe.TEXT_LIGHT};\n  `),sQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__PopoverContainer",componentId:"sc-t6kq6u-8"})(["background:",";border:1px solid ",";flex-direction:row;max-width:300px;padding:12px;padding-right:8px;border-radius:8px;gap:4px;margin:0 8px;"],Qe.WHITE,Qe.GREEN_IRISH_BREEZE),rQ=({service:e=null,testID:t="PriceChangeField",value:n,setValue:i,min:o=0,max:a=Number.MAX_VALUE,minErrorMessage:s=i18n.t("my_prices.price_field.error.min",{price:fh(o,{withSymbol:!0})}),maxErrorMessage:r=i18n.t("my_prices.price_field.error.max",{price:fh(a,{withSymbol:!0})}),title:l,description:d,popoverContent:c=null,unit:u=i18n.t("currency_per_hour")})=>{const[p,m]=(0,K.useState)(null),[f,g]=(0,K.useState)(!1),h=(0,K.useRef)(null),{getServiceCommissions:_,commissions:x,loadingCommissions:y}=UZ(),v=(0,K.useCallback)(Me()(_,400),[]);(0,K.useEffect)(()=>{if(e)return v(e,XZ,n)},[n]);return(0,K.useEffect)(()=>{m(null!==o&&n<o?s:null!==a&&n>a?r:null)},[n,o,a]),null===n?null:(0,X.jsxs)(QZ,{children:[!!l&&(0,X.jsxs)(JZ,{children:[(0,X.jsx)(eQ,{ref:h,children:l}),c&&(0,X.jsxs)(VU.Popover,{isOpen:f,onOpenChange:e=>g(e),trigger:(0,X.jsx)(ws.default,{children:(0,X.jsx)(Pa.default,{name:"help-circle-outline",set:"MaterialCommunityIcons",size:20,color:Qe.CTA_PURPLE})}),children:[(0,X.jsx)(VU.Popover.Backdrop,{}),(0,X.jsx)(VU.Popover.Content,{children:(0,X.jsxs)(sQ,{children:[(0,X.jsx)(Be.default,{children:c}),(0,X.jsx)(Pa.default,{name:"close",set:"MaterialCommunityIcons",size:16,color:Qe.CTA_PURPLE,onPress:()=>g(!1)})]})})]})]}),!!d&&(0,X.jsx)(tQ,{children:d}),(0,X.jsxs)(nQ,{children:[(0,X.jsx)(iQ,{children:u}),(0,X.jsx)(OZ,{value:n,onChange:e=>{i(e)},min:o,max:a,testID:t})]}),!!e&&(0,X.jsx)(aQ,{loading:y,children:null!==x&&void 0!==x&&x.providerCommission?i18n.t("services.details.price_section.commissions.earning_after_commissions",{amount:fh(x.providerCommission,{withSymbol:!0})}):" "}),p&&(0,X.jsx)(oQ,{children:p})]})},lQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__SmallText",componentId:"sc-xt6qss-0"})(["font-size:13px;font-weight:600;line-height:18px;"]),dQ=(0,Ge.default)(ws.default).withConfig({displayName:"price_breakdown__PriceBreakdownContainer",componentId:"sc-xt6qss-1"})(["background-color:",";border-radius:7px;padding:0 16px;"],Qe.GRAY_4),cQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__PriceBreakdownHeader",componentId:"sc-xt6qss-2"})(["flex-direction:row;justify-content:space-between;align-items:center;height:50px;",""],({showPriceBreakdown:e})=>e&&"padding-bottom: 0;"),uQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__PriceBreakdownIconContainer",componentId:"sc-xt6qss-3"})([""]),pQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__PriceBreakdownTitle",componentId:"sc-xt6qss-4"})(["color:",";"],Qe.GRAY_1),mQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__PriceBreakdownBody",componentId:"sc-xt6qss-5"})(["border-top-width:1px;border-top-color:",";padding:8px 0;"],Qe.GRAY_3),fQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__PriceBreakdownLine",componentId:"sc-xt6qss-6"})(["flex-direction:row;justify-content:space-between;align-items:center;height:30px;"]),gQ=(0,Ge.default)(lQ).withConfig({displayName:"price_breakdown__PriceBreakdownLabel",componentId:"sc-xt6qss-7"})(["color:",";font-weight:",";"],({color:e})=>e||Qe.TEXT_MEDIUM,({weight:e})=>e||400),hQ=(0,Ge.default)(lQ).withConfig({displayName:"price_breakdown__PriceBreakdownValue",componentId:"sc-xt6qss-8"})(["color:",";font-weight:",";"," ",""],({color:e,isBlurred:t})=>t?Qe.TRANSPARENT:e||Qe.TEXT_MEDIUM,({weight:e})=>e||400,({isBlurred:e})=>e&&`text-shadow: 0 0 8px ${Qe.TEXT_MEDIUM};`,({isBlurred:e})=>e&&!1),_Q=({customerPrice:e,priceBreakdown:t,peakTimePriceBreakdown:n,travelPriceBreakdown:i,breakdownLabel:o,blurringPrice:a=!1,style:s={}})=>{const{autoTrack:r}=mt(),[l,d]=(0,K.useState)(!1),{icon:c={}}=s,u=(0,K.useCallback)(()=>{r("User toggled price breakdown","from my prices page"),d(e=>!e)},[d,r]);return null===e?null:(0,X.jsxs)(dQ,{onPress:u,children:[(0,X.jsxs)(cQ,{children:[(0,X.jsx)(pQ,{children:o}),(0,X.jsx)(uQ,{children:(0,X.jsx)(Pa.default,{name:l?"chevron-up":"chevron-down",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,size:24,color:c.color||Qe.GRAY_1})})]}),l&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(mQ,{children:t.map(({label:e,formattedPrice:t,color:n},i)=>(0,X.jsxs)(fQ,{children:[(0,X.jsx)(gQ,{color:n,weight:0===i?700:400,children:e}),(0,X.jsx)(hQ,{color:n,weight:0===i?700:400,isBlurred:a,children:t})]},i))}),n&&(0,X.jsx)(mQ,{children:n.map(({label:e,formattedPrice:t,color:n},i)=>(0,X.jsxs)(fQ,{children:[(0,X.jsx)(gQ,{color:n,weight:0===i?700:400,children:e}),(0,X.jsx)(hQ,{color:n,weight:0===i?700:400,isBlurred:a,children:t})]},i))}),i&&(0,X.jsx)(mQ,{children:i.map(({label:e,formattedPrice:t,color:n},i)=>(0,X.jsxs)(fQ,{children:[(0,X.jsx)(gQ,{color:n,weight:0===i?700:400,children:e}),(0,X.jsx)(hQ,{color:n,weight:0===i?700:400,isBlurred:a,children:t})]},i))})]})]})},xQ=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_hint__SmallText",componentId:"sc-kq452h-0"})(["font-size:13px;font-weight:600;line-height:18px;"]),yQ=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_hint__PriceHintContainer",componentId:"sc-kq452h-1"})(["background-color:",";align-items:center;padding:10px;border-radius:7px;position:relative;"],Qe.GREEN_WINTER_MIST),vQ=(0,Ge.default)(xQ).withConfig({displayName:"price_change_hint__PriceHint",componentId:"sc-kq452h-2"})(["color:",";text-align:center;"],Qe.GREEN_SUMMER_GRASS),bQ=({hint:e=null})=>e?(0,X.jsx)(yQ,{children:(0,X.jsx)(vQ,{children:e})}):null;bQ.propTypes={hint:ze().node};const wQ=bQ,CQ=(0,Ge.default)(ms).withConfig({displayName:"content__Cta",componentId:"sc-11rsgox-0"})(["width:100%;"]),jQ=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-11rsgox-1"})(["flex:1;align-items:center;"]),IQ=(0,Ge.default)(qe.default).withConfig({displayName:"content__Content",componentId:"sc-11rsgox-2"})(["flex:1;max-width:420px;width:100%;gap:12px;"]),TQ=(0,Ge.default)(Be.default).withConfig({displayName:"content__Disclaimer",componentId:"sc-11rsgox-3"})(["margin-top:12px;margin-bottom:30px;text-align:center;"]),EQ=(0,Ge.default)(Be.default).withConfig({displayName:"content__DisclaimerText",componentId:"sc-11rsgox-4"})(["color:",";font-size:10px;"],Qe.BLACK),NQ=(0,Ge.default)(Be.default).withConfig({displayName:"content__ContactForm",componentId:"sc-11rsgox-5"})(["color:",";font-size:10px;font-weight:600;text-decoration:underline;"],Qe.BLACK),kQ=(0,Ge.default)(qe.default).withConfig({displayName:"content__InfoMessageContainer",componentId:"sc-11rsgox-6"})(["background-color:",";padding:6px;border-radius:4px;"],Qe.TEAL_5),RQ=(0,Ge.default)(Be.default).withConfig({displayName:"content__InfoMessageText",componentId:"sc-11rsgox-7"})(["color:",";font-size:12px;font-weight:400;text-align:center;"],Qe.TEAL_1);const SQ=function({customer:e,fetchCustomer:t}){const n=e.relationship,{session:{currentUser:{priceLimits:{recurringMinPrice:i,recurringMaxPrice:o}},country:a}}=lt(),s=hO(),r=Number(s.get("prefillPrice")),l=n.hasOnlyOneOffEvents?n.customerAdhocPrice:n.customerRecurringPrice,d=(0,Ks.useHistory)(),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),[f,g]=(0,K.useState)(l??null),{priceRecommendations:h,enhancedPriceRecommendations:_,loading:x,refetch:y}=sw(),{fetchPriceWithCommissions:v,priceWithCommissions:b}=lw(),[w,C]=(0,K.useState)(!1),[j,I]=(0,K.useState)(_h()),T=(_||h||{}).repeatPrice,E=T?i18n.t(`services.details.price_section.${_?"enhanced_price":"price"}.hint`,{price:fh(T,{withSymbol:!0})}):null,N=n.hasPendingPriceChangeRequest,k=Math.max(3-n.successfulEventsCount,0),R=0===k,S=(null===b||void 0===b?void 0:b.customerPrice)!==n.customerRecurringPrice,A=N,P=!R,D=n.hasOnlyOneOffEvents||A||P||!S||null!=f&&f<i||null!=f&&f>o||c;(0,K.useEffect)(()=>
2981{!x&&b&&(I(_h(gh(b.customerPrice),gh(b.helplingCommission),gh(b.providerCommission),!0)),C(!1))},[b,x]),(0,K.useEffect)(()=>{v(n.customerRecurringPrice,uw)},[]);const M=e=>{g(e),C(!0),v(e,uw)},O=()=>{r&&d.replace(Pi(e.id))},z=()=>{O(),m(!1)};(0,K.useEffect)(()=>{r&&r!==f&&!D?(M(r),m(!0)):O()},[]);const L="fr"!==a&&"sg"!==a;return(0,X.jsx)(jQ,{children:(0,X.jsxs)(IQ,{children:[(0,X.jsx)(rQ,{value:f,setValue:M,min:i,max:o}),(0,X.jsx)(wQ,{hint:E}),(0,X.jsx)(_Q,{customerPrice:f,blurringPrice:w,breakdownLabel:i18n.t("services.details.price_section.price_breakdown.title"),priceBreakdown:j}),(0,X.jsx)(qe.default,{style:{flex:1}}),!n.hasOnlyOneOffEvents&&(0,X.jsx)(CQ,{disabled:D,onPress:()=>{D||m(!0)},children:i18n.t("customer.request_price_change")}),P&&(0,X.jsx)(kQ,{children:(0,X.jsx)(RQ,{children:i18n.t("customer.price_change.insufficient_events_count",{count:k})})}),A&&(0,X.jsx)(kQ,{children:(0,X.jsx)(RQ,{children:i18n.t("customer.price_change.request_pending")})}),L&&(0,X.jsxs)(TQ,{children:[(0,X.jsx)(EQ,{children:i18n.t("customer.price_change.contact_support")}),(0,X.jsx)(NQ,{onPress:()=>d.push("/provider/faq/contact_form"),children:i18n.t("customer.price_change.contact_us_link")})]}),p&&(0,X.jsx)(PZ,{customer:e,futurePrice:f,closeModal:z,onPriceChangeSuccess:()=>{O(),u(!0),y(),t(e.id),z(),d.push(Wi(n.id))}})]})})},AQ=(0,Ge.default)(xm.Text).withConfig({displayName:"customer_price_update__NotAvailable",componentId:"sc-1029jxv-0"})(["text-align:center;font-weight:300;color:",";"],Qe.BLACK);function PQ(){return(0,X.jsx)(Rf,{page:"customer price update",content:()=>(0,X.jsx)(AQ,{children:i18n.t("customer.no_customer")})})}function DQ(){return(0,X.jsx)(Rf,{page:"customer price update",content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const MQ=function(){const[e,t]=(0,K.useState)(!0),[n,i]=(0,K.useState)(),{isConnected:o}=(0,ta.useNetInfo)(),{customers:{fetchCustomer:a}}=lt(),{id:s}=(0,Ks.useParams)();(0,K.useEffect)(()=>{r(s)},[o]);const r=async e=>{t(!0);const n=await a(e);i(n),t(!1)};return e?(0,X.jsx)(DQ,{}):n?(0,X.jsx)(Rf,{title:n.name,page:"customer price update",subheader:()=>(0,X.jsx)(UV,{customer:n,from:"customer_price_update"}),content:()=>(0,X.jsx)(SQ,{customer:n,fetchCustomer:r}),contentContainerStyle:{flexGrow:1}}):(0,X.jsx)(PQ,{})},OQ=()=>{var e;const t=(0,Ks.useHistory)(),{session:{settings:n}}=lt();return null!==n&&void 0!==n&&null!==(e=n.viewPermissions)&&void 0!==e&&e.seePayouts?(0,X.jsx)(MQ,{}):t.goBack()},zQ={currentDate:"",calendarOpened:!1,showAvailabilityModal:!1,selectedAvailabilityId:null,calendarMonth:C.DateTime.now(),events:[],loadingEvents:!1,calendarMarks:{},timeTravels:[],absence:null,holidays:null,isOverlap:!1,eventCount:0};function LQ(e,t){switch(t.type){case aO:return Object.assign({},e,{currentDate:t.value});case sO:return Object.assign({},e,{calendarOpened:t.value});case"SET_SHOW_AVALABILITY_MODAL":return Object.assign({},e,{showAvailabilityModal:t.value});case"SET_SELECTED_AVAILABILITY_ID":return Object.assign({},e,{selectedAvailabilityId:t.value});case rO:return Object.assign({},e,{calendarMonth:t.value});case lO:return Object.assign({},e,{events:t.value});case dO:return Object.assign({},e,{loadingEvents:t.value,isOverlap:!t.value&&e.isOverlap,events:t.value?[]:e.events});case cO:return Object.assign({},e,{calendarMarks:t.value});case uO:return Object.assign({},e,{timeTravels:t.value});case pO:return Object.assign({},e,{absence:t.value});case mO:return Object.assign({},e,{holidays:t.value});case fO:return Object.assign({},e,{isOverlap:t.value});case gO:return Object.assign({},e,{eventCount:t.value});default:throw new Error}}const qQ=K.createContext(null),BQ=()=>K.useContext(qQ),GQ=({children:e,initialState:t})=>{const[n,i]=(e=>{const t=Object.assign({},zQ,e);return(0,K.useReducer)(LQ,t)})(t);return(0,X.jsx)(qQ.Provider,{value:{state:n,dispatch:i},children:e})};GQ.propTypes={children:qc.default.node.isRequired,initialState:qc.default.object.isRequired};const UQ=_t.gql`
2982  query fetchActiveHolidays($since: DateTime!, $till: DateTime!) {
2983    currentProvider {
2984      id
2985      activeHolidays(since: $since, till: $till) {
2986        nodes {
2987          active
2988          id
2989          finish
2990          start
2991        }
2992      }
2993    }
2994  }
2995`,$Q=()=>{var e,t;const[n,{loading:i,data:o}]=(0,kn.useLazyQuery)(UQ,{fetchPolicy:"network-only"});return{getActiveHolidays:(e,t)=>n({variables:{since:e,till:t}}),fetchingHolidays:i,holidays:null===o||void 0===o||null===(e=o.currentProvider)||void 0===e||null===(t=e.activeHolidays)||void 0===t?void 0:t.nodes}},FQ=_t.gql`
2996  mutation previewHoliday($start: DateTime!, $finish: DateTime!) {
2997    previewHoliday(start: $start, finish: $finish) {
2998      success
2999      holiday {
3000        start
3001        finish
3002      }
3003      impactedEvents {
3004        id
3005        startDateWithSlashes
3006        startTime
3007        endTime
3008        customer {
3009          initials
3010          firstname
3011          lastname
3012        }
3013      }
3014      errors
3015    }
3016  }
3017`,HQ=_t.gql`
3018  mutation createHoliday($start: DateTime!, $finish: DateTime!) {
3019    createHoliday(start: $start, finish: $finish) {
3020      success
3021      holiday {
3022        start
3023        finish
3024      }
3025      errors
3026    }
3027  }
3028`,WQ=_t.gql`
3029  mutation deleteHoliday($id: ID!) {
3030    deleteHoliday(holidayId: $id) {
3031      success
3032      errors {
3033        code
3034        message
3035      }
3036    }
3037  }
3038`,VQ=(0,Ge.default)(qe.default).withConfig({displayName:"date_navigator__Container",componentId:"sc-j1zga7-0"})(["flex-direction:row;align-items:center;justify-content:space-between;width:100%;max-width:700px;padding:",";margin:auto;"],({isDesktop:e})=>e?"20px 16px":"10px 22px"),KQ=(0,Ge.default)(qe.default).withConfig({displayName:"date_navigator__Button",componentId:"sc-j1zga7-1"})(["width:40px;height:40px;border-radius:5px;
3038display:flex;justify-content:center;align-items:center;border:1px solid ",";"],hf.HEADER.TEXT),YQ=(0,Ge.default)(rf.default).withConfig({displayName:"date_navigator__DateText",componentId:"sc-j1zga7-2"})(["font-size:18px;font-weight:500;color:",";"],hf.HEADER.TEXT),XQ=({currentDate:e,onPrevDate:t,onNextDate:n,isDesktop:i,unit:o="day",testID:a="dateNavigator",style:s={}})=>(0,X.jsxs)(VQ,{isDesktop:i,testID:a,style:s,children:[(0,X.jsx)(ts,{eventAction:`previous ${o}`,eventLabel:"on calendar",onPress:t,testID:`${a}-previous-${o}`,children:(0,X.jsx)(KQ,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-left",size:18,color:hf.HEADER.TEXT})})}),(0,X.jsx)(YQ,{children:e}),(0,X.jsx)(ts,{eventAction:`next ${o}`,eventLabel:"on calendar",onPress:n,testID:`${a}-next-${o}`,children:(0,X.jsx)(KQ,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:hf.HEADER.TEXT})})})]});XQ.propTypes={currentDate:qc.default.any.isRequired,onPrevDate:qc.default.func.isRequired,onNextDate:qc.default.func.isRequired,isDesktop:qc.default.bool.isRequired,unit:qc.default.string,testID:qc.default.string,style:qc.default.object};const ZQ=XQ,QQ=({currentDate:e,onDateChange:t,isDesktop:n,testID:i})=>(0,X.jsx)(ZQ,{currentDate:e.toFormat("cccc dd"),onPrevDate:()=>t(e.minus({day:1})),onNextDate:()=>t(e.plus({day:1})),isDesktop:n,testID:i});QQ.propTypes={onDateChange:qc.default.func.isRequired,currentDate:qc.default.any.isRequired,isDesktop:qc.default.bool,testID:qc.default.string};const JQ=QQ;var eJ=n(31371);const tJ=function(e){"de_en"===e?eJ.LocaleConfig.defaultLocale="":(eJ.LocaleConfig.locales.i18n={monthNames:[i18n.t("calendar.month.january"),i18n.t("calendar.month.february"),i18n.t("calendar.month.march"),i18n.t("calendar.month.april"),i18n.t("calendar.month.may"),i18n.t("calendar.month.june"),i18n.t("calendar.month.july"),i18n.t("calendar.month.august"),i18n.t("calendar.month.september"),i18n.t("calendar.month.october"),i18n.t("calendar.month.november"),i18n.t("calendar.month.december")],monthNamesShort:[i18n.t("calendar.month.january_short"),i18n.t("calendar.month.february_short"),i18n.t("calendar.month.march_short"),i18n.t("calendar.month.april_short"),i18n.t("calendar.month.may_short"),i18n.t("calendar.month.june_short"),i18n.t("calendar.month.july_short"),i18n.t("calendar.month.august_short"),i18n.t("calendar.month.september_short"),i18n.t("calendar.month.october_short"),i18n.t("calendar.month.november_short"),i18n.t("calendar.month.december_short")],dayNames:[i18n.t("calendar.day.sunday"),i18n.t("calendar.day.monday"),i18n.t("calendar.day.tuesday"),i18n.t("calendar.day.wednesday"),i18n.t("calendar.day.thursday"),i18n.t("calendar.day.friday"),i18n.t("calendar.day.saturday")],dayNamesShort:[i18n.t("calendar.day.sunday_short"),i18n.t("calendar.day.monday_short"),i18n.t("calendar.day.tuesday_short"),i18n.t("calendar.day.wednesday_short"),i18n.t("calendar.day.thursday_short"),i18n.t("calendar.day.friday_short"),i18n.t("calendar.day.saturday_short")]},eJ.LocaleConfig.defaultLocale="i18n")},{width:nJ}=Iw.default.get("screen"),iJ=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_calendar__DayContainer",componentId:"sc-nhwbze-0"})(["width:40px;height:50px;border-radius:8px;background-color:",";display:flex;align-items:center;"],e=>e.selected?Qe.BLACK:Qe.TRANSPARENT),oJ=(0,Ge.default)(Be.default).withConfig({displayName:"monthly_calendar__DayText",componentId:"sc-nhwbze-1"})(["color:",";text-align:center;font-size:20px;margin-top:5px;"],e=>e.selected?Qe.WHITE:Qe.BLACK),aJ=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_calendar__Dot",componentId:"sc-nhwbze-2"})(["width:5px;height:5px;background-color:",";border-radius:50px;margin-top:5px;margin-left:2px;margin-right:2px;"],e=>e.black?Qe.BLACK:Qe.GREEN_FROSTY_GREEN),sJ=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_calendar__DotContainer",componentId:"sc-nhwbze-3"})(["display:flex;flex-direction:row;"]),rJ=(0,Ge.default)(ts).withConfig({displayName:"monthly_calendar__Button",componentId:"sc-nhwbze-4"})(["width:40px;height:40px;background-color:",";border-radius:5px;
3038display:flex;justify-content:center;align-items:center;border:1px solid ",";"],hf.HEADER.BACKGROUND,hf.HEADER.TEXT),lJ=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_calendar__ConfirmedEvent",componentId:"sc-nhwbze-5"})(["align-items:center;padding:16px 0;"]),dJ=(0,Ge.default)(Be.default).withConfig({displayName:"monthly_calendar__ConfirmedEventText",componentId:"sc-nhwbze-6"})(["font-size:12px;color:",";"],Qe.TEXT_DARK),cJ=e=>{const{date:t,marking:n,onPress:i}=e,o=n&&n.selected;return(0,X.jsx)(ts,{eventAction:`day ${t.day}`,eventLabel:"on calendar",withoutFeedback:!0,onPress:()=>i(t),children:(0,X.jsxs)(iJ,{selected:o,children:[(0,X.jsx)(oJ,{selected:o,allowFontScaling:!1,children:t.day}),(0,X.jsx)(sJ,{children:n&&n.marked&&Array(n.marked).fill(null).slice(0,3).map((e,t)=>(0,X.jsx)(aJ,{black:!o,testID:"calendar-dot"+(o?"-selected":"")},t))||(0,X.jsx)(Be.default,{children:" "})})]})})};cJ.propTypes={date:qc.default.any.isRequired,marking:qc.default.object,onPress:qc.default.func.isRequired};const uJ=({onDateChange:e,onMonthChange:t,currentDate:n,marks:i,isDesktop:o,showConfirmedEventsPerMonth:a,eventCount:s})=>{tJ(i18n.locale);const r=n.toFormat("yyyy-MM-dd"),l=Object.assign({},i,{[r]:Object.assign({selected:!0},i[r])}),d=o?{width:Vj,paddingLeft:16,paddingRight:16}:{width:nJ,height:400,paddingLeft:16,paddingRight:16};return(0,X.jsx)(eJ.Calendar,{style:d,horizontal:!0,markedDates:l,hideExtraDays:!0,renderArrow:e=>(0,X.jsx)(rJ,{children:(0,X.jsx)(Pa.default,{name:"right"===e?"keyboard-arrow-right":"keyboard-arrow-left",size:24,color:hf.HEADER.TEXT})}),onMonthChange:e=>t(C.DateTime.fromFormat(e.dateString,"yyyy-MM-dd")),dayComponent:cJ,enableSwipeMonths:!0,current:n.toFormat("yyyy-MM-dd"),onDayPress:t=>{e(C.DateTime.fromFormat(t.dateString,"yyyy-MM-dd"))}
3038,theme:{backgroundColor:hf.HEADER.BACKGROUND,calendarBackground:hf.HEADER.BACKGROUND,textSectionTitleColor:hf.HEADER.TEXT,monthTextColor:hf.HEADER.TEXT,textDayFontWeight:"500",textMonthFontWeight:"500",textDayHeaderFontWeight:"600"},customHeader:({month:e,addMonth:t})=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ZQ,{currentDate:null===e||void 0===e?void 0:e.toString("MMMM yyyy"),onPrevDate:()=>t(-1),onNextDate:()=>t(1),isDesktop:o,unit:"month",testID:"calendar",style:{marginBottom:20,paddingLeft:6,paddingRight:6}}),a&&s>0&&(0,X.jsx)(lJ,{children:(0,X.jsx)(dJ,{children:i18n.t("planner.event_count",{count:s})})})]})})};uJ.propTypes={onDateChange:qc.default.func.isRequired,onMonthChange:qc.default.func.isRequired,currentDate:qc.default.any.isRequired,marks:qc.default.object.isRequired,isDesktop:qc.default.bool,showConfirmedEventsPerMonth:qc.default.bool,eventCount:qc.default.number};const pJ=uJ,mJ=(e,t)=>{const n=t.reduce((t,{date:n,confirmedEvents:i,unconfirmedEvents:o})=>(e.toFormat("yyyy-MM")===C.DateTime.fromFormat(n,"yyyy-MM-dd").toFormat("yyyy-MM")&&(t+=i+o),t),0);return n},fJ=(0,Ge.default)(qe.default).withConfig({displayName:"weekday_navigator__DaysContainer",componentId:"sc-1hs5l21-0"})(["width:100%;max-width:600px;flex-direction:row;justify-content:space-around;align-items:center;padding:10px 16px;margin:auto;"]),gJ=(0,Ge.default)(ws.default).withConfig({displayName:"weekday_navigator__DayContainer",componentId:"sc-1hs5l21-1"})(["width:","px;border-radius:25px;height:80px;align-items:stretch;background-color:",";padding:5px 0;",""],({isDesktop:e})=>e?50:45,({active:e})=>e?hf.HEADER.CTA.ACTIVE.BACKGROUND:hf.HEADER.CTA.INACTIVE.BACKGROUND,({disabled:e})=>e&&"cursor: default;"),hJ=(0,Ge.default)(qe.default).withConfig({displayName:"weekday_navigator__DateTextContainer",componentId:"sc-1hs5l21-2"})(["height:30px;width:100%;justify-content:center;align-items:center;"]),_J=(0,Ge.default)(Be.default).withConfig({displayName:"weekday_navigator__DateText",componentId:"sc-1hs5l21-3"})(["font-size:20px;font-weight:600;color:",";"],({active:e,disabled:t})=>e?hf.HEADER.CTA.ACTIVE.TEXT:t?hf.HEADER.CTA.DISABLED.TEXT:hf.HEADER.CTA.INACTIVE.TEXT),xJ=(0,Ge.default)(qe.default).withConfig({displayName:"weekday_navigator__DotsContainer",componentId:"sc-1hs5l21-4"})(["flex-direction:row;height:10px;justify-content:center;align-items:center;"]),yJ=(0,Ge.default)(Be.default).withConfig({displayName:"weekday_navigator__Dot",componentId:"sc-1hs5l21-5"})(["font-size:5px;font-weight:700;color:",";margin:0 1px;"],({active:e,disabled:t})=>e?hf.HEADER.CTA.ACTIVE.TEXT:t?hf.HEADER.CTA.DISABLED.TEXT:hf.HEADER.CTA.INACTIVE.TEXT),vJ=({currentDate:e,changeCurrentDate:t,calendarMarks:n,loadingEvents:i})=>{const o=e.toFormat("yyyy-MM-dd"),{isDesktop:a}=uu(),s=(e=>{let t=C.DateTime.fromISO(e.toFormat("yyyy-MM-dd"),{zone:"utc"}).startOf("week"),n=[];for(let i=0;i<7;i++)n[i]=t,t=t.plus({days:1});return n})(e);return(0,X.jsx)(fJ,{children:s.map(e=>{var s;const r=e.toFormat("yyyy-MM-dd"),l=o===r,d=!(null===n||void 0===n||null===(s=n[r])||void 0===s||!s.marked),c=l||i;return(0,X.jsxs)(gJ,{active:l,disabled:c,isDesktop:a,onPress:()=>{c||t(e)},children:[(0,X.jsx)(hJ,{children:(0,X.jsx)(_J,{active:l,disabled:c,children:e.toLocaleString({weekday:"short"}).slice(0,1).toUpperCase()})}),(0,X.jsx)(hJ,{children:(0,X.jsx)(_J,{active:l,disabled:c,children:e.toLocaleString({day:"2-digit"})})}),(0,X.jsx)(xJ,{children:d&&(0,X.jsx)(yJ,{active:l,disabled:c,children:"\u2b24"})})]},r)})})};vJ.propTypes={currentDate:qc.default.object.isRequired,changeCurrentDate:qc.default.func.isRequired,loadingEvents:qc.default.bool.isRequired,calendarMarks:qc.default.object};const bJ=vJ,wJ=(0,Ge.default)(qe.default).withConfig({displayName:"header__Container",componentId:"sc-81v2b0-0"})(["margin-bottom:12px;padding-top:","px;"],({insetTop:e})=>Fu+e),CJ=(0,Ge.default)(ts).withConfig({displayName:"header__MontlyCalendarButton",componentId:"sc-81v2b0-1"})(["flex-direction:row;align-items:center;"]),jJ=(0,Ge.default)(Be.default).withConfig({displayName:"header__CurrentMonthText",componentId:"sc-81v2b0-2"})(["color:",";font-size:16px;padding:0 4px;"],hf.HEADER.TEXT),IJ=(0,Ge.default)(qe.default).withConfig({displayName:"header__CalendarContainer",componentId:"sc-81v2b0-3"})(["margin-top:10px;align-items:center;flex:1;"]),TJ=(0,Ge.default)(qe.default).withConfig({displayName:"header__DaySwitcherContainer",componentId:"sc-81v2b0-4"})(["margin-top:10px;align-items:center;"]),EJ=(0,Ge.default)(qe.default).withConfig({displayName:"header__ConfirmedEvent",componentId:"sc-81v2b0-5"})(["align-items:center;margin-top:16px;"]),NJ=(0,Ge.default)(Be.default).withConfig({displayName:"header__ConfirmedEventText",componentId:"sc-81v2b0-6"})(["font-size:12px;color:",";"],Qe.TEXT_DARK),kJ=(0,Ge.default)(qe.default).withConfig({displayName:"header__HeaderTitleContainer",componentId:"sc-81v2b0-7"})(["flex-direction:row;justify-content:space-between;align-items:center;max-width:900px;width:100%;",";padding:0 16px;margin:0 auto;"],e=>e.desktop&&"align-self: center"),RJ=()=>{var e;const{events:{fetchEventsCounts:t},pages:{planner:n},session:{settings:i},analytics:{autoTrack:o}}=lt(),{state:{currentDate:a,calendarOpened:s,calendarMarks:r,eventCount:l,calendarMonth:d,loadingEvents:c},dispatch:u}=BQ(),{isDesktop:p}=uu(),{isConnected:m}=(0,ta.useNetInfo)(),f=(0,Re.useSafeAreaInsets)(),g=null===i||void 0===i||null===(e=i.featureFlags)||void 0===e?void 0:e.showConfirmedEventsPerMonth,h=async e=>{const n=await t(e,0,1);if(g){const t=mJ(e,n);u({type:gO,value:t})}(e=>{const t=Object.assign({},r,e.reduce((e,{date:t,confirmedEvents:n,unconfirmedEvents:i})=>(e[t]={marked:n+i},e),{}));u({type:cO,value:t})})(n)};(0,K.useEffect)(()=>{h(d)},[d,m]),(0,K.useEffect)(()=>{h(a)},[a,m]);const _=e=>{u({type:aO,value:e}),u({type:sO,value:!1}),n.setSelectedDate(e)};return(0,X.jsxs)(wJ,{showConfirmedEventsPerMonth:g,insetTop:f.top,children:[(0,X.jsxs)(kJ,{desktop:p,children:[(0,X.jsx)(yf,{children:oA().translate("planner.title",{defaultValue:"Your calendar"})}),(0,X.jsxs)(CJ,{onPress:()=>{o("User clicked toggle calendar","on planner"),u({type:sO,value:!s})},testID:"toggle-calendar",children:[(0,X.jsx)(Pa.default,{name:"calendar",set:"MaterialCommunityIcons",size:18,color:hf.HEADER.TEXT}),(0,X.jsx)(jJ,{children:a.toFormat("LLL yyyy")}),(0,X.jsx)(Pa.default,{name:s?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:26,color:hf.HEADER.TEXT})]})]}),s?(0,X.jsx)(IJ,{children:(0,X.jsx)(pJ,{currentDate:a,onDateChange:_,onMonthChange:e=>
3038{o(`User change month ${e}`,"on calendar"),u({type:rO,value:e})},marks:r,desktop:p,showConfirmedEventsPerMonth:g,eventCount:l})}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(TJ,{children:(0,X.jsx)(JQ,{currentDate:a,onDateChange:_,isDesktop:p,testID:"day-switcher"})}),(0,X.jsx)(bJ,{currentDate:a,changeCurrentDate:e=>{o("User clicked on day",`day: ${e}`),_(e)},calendarMarks:r,loadingEvents:c}),g&&l>0&&(0,X.jsx)(EJ,{children:(0,X.jsx)(NJ,{children:oA().t("planner.event_count",{count:l})})})]})]})},SJ=(0,Ge.default)(qe.default).withConfig({displayName:"Lines__AbsolutePosition",componentId:"sc-1gr7l1g-0"})(["position:absolute;display:flex;justify-content:center;top:",";left:",";right:",";"],e=>e.top,e=>e.left?e.left:0,e=>e.right?e.right:0),AJ=(0,Ge.default)(rf.default).withConfig({displayName:"Lines__HourText",componentId:"sc-1gr7l1g-1"})(["color:",";"],e=>e.passed?Qe.GRAY_2:Qe.BLACK),PJ=({hour:e,top:t,passed:n})=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(SJ,{top:t-10,left:20,children:(0,X.jsxs)(AJ,{passed:n,children:[e," "]})}),(0,X.jsx)(SJ,{top:t-10,left:70,right:20,children:(0,X.jsx)(rf.default,{ellipsizeMode:"clip",numberOfLines:1,style:{color:"gray",opacity:.4},children:"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"})})]});function DJ({start:e,end:t,currentDate:n}){return Array.from(new Array(t-e+1),(t,n)=>e+n).map(t=>{const i=C.DateTime.fromFormat(`${t}`,"h").setLocale("en").toFormat("hh a"),o=n.set({hour:t})<C.DateTime.local();return(0,X.jsx)(PJ,{hour:i&&i.toLocaleUpperCase(),top:(t-e)*iO+oO,passed:o},t)})}PJ.propTypes={hour:qc.default.string.isRequired,top:qc.default.number.isRequired,passed:qc.default.bool},DJ.propTypes={start:qc.default.number.isRequired,end:qc.default.number.isRequired,currentDate:qc.default.any.isRequired};const MJ=DJ,OJ=(0,Ge.default)(qe.default).withConfig({displayName:"TimeLineNow__Circle",componentId:"sc-1kiato5-0"})([""," width:10px;height:10px;background-color:black;border-radius:50;"],e=>e.elevation&&`box-shadow: 0 ${e.elevation}px 10px rgba(0, 0, 0, ${.1*e.elevation})`);function zJ({start:e}){const[t,n]=(0,K.useState)(0);return(0,K.useEffect)(()=>{const t=()=>{const t=C.DateTime.local().hour,i=C.DateTime.local().minute;n((60*(t-e)+i)/60*iO+oO)};t();const i=setInterval(t,6e4);return()=>clearInterval(i)},[e]),(0,X.jsxs)(qe.default,{style:{right:20,left:70,position:"absolute",top:t-5,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,X.jsx)(OJ,{elevation:5}),(0,X.jsx)(qe.default,{style:{flex:1,height:2,backgroundColor:"gray"}})]})}zJ.propTypes={start:qc.default.number.isRequired};const LJ=zJ,qJ=(0,Ge.default)(qe.default).withConfig({displayName:"premium_event_card__CardContainer",componentId:"sc-lks8h7-0"})(["position:absolute;top:",";left:100;right:30;height:"," background-color:",";padding:16px;",";border-radius:16.8px;display:flex;",";max-width:700px;"],e=>e.$top+1,e=>e.$height-2,Qe.WHITE,e=>e.isSmall&&"padding-top: 3px",e=>e.elevation&&"box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)"),BJ=(0,Ge.default)(qe.default).withConfig({displayName:"premium_event_card__Labels",componentId:"sc-lks8h7-1"})(["height:",";align-items:flex-start;"],e=>e.isSmall?e.noLabel?"12px":"22px":"30px"),GJ=(0,Ge.default)(Be.default).withConfig({displayName:"premium_event_card__UnconfirmedEventLabel",componentId:"sc-lks8h7-2"})(["color:",";font-size:",";border:1px solid ",";padding:3px 8px;border-radius:12px;"],Qe.CRIMSON_1,e=>e.isSmall?"10px":"12px",Qe.CRIMSON_1),UJ=(0,Ge.default)(Be.default).withConfig({displayName:"premium_event_card__CustomerName",componentId:"sc-lks8h7-3"})(["font-size:",";color:",";margin-bottom:",";font-weight:600;"],e=>e.isSmall?"14px":"16px",Qe.TEXT_DARK,e=>e.isSmall?"3px":"10px"),$J=(0,Ge.default)(qe.default).withConfig({displayName:"premium_event_card__InfoItemContainer",componentId:"sc-lks8h7-4"})(["",";"],e=>e.isSmall&&"\n    flex-direction: row;\n  "),FJ=(0,Ge.default)(qe.default).withConfig({displayName:"premium_event_card__InfoItem",componentId:"sc-lks8h7-5"})(["display:flex;flex-direction:row;align-items:center;margin-top:",";"],e=>e.isSmall?"3px":"9px"),HJ=(0,Ge.default)(Be.default).withConfig({displayName:"premium_event_card__InfoText",componentId:"sc-lks8h7-6"})(["font-size:",";font-weight:300;color:",";opacity:0.8;margin-left:5px;"],e=>e.isSmall?"12px":"13px",Qe.TEXT_DARK),WJ=(0,Ge.default)(qe.default).withConfig({displayName:"premium_event_card__DetailsButton",componentId:"sc-lks8h7-7"})(["width:146px;height:",";margin-top:",";padding:3px 8px 3px 12px;border-radius:18px;background-color:",";display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:20px;"],e=>e.isSmall?"20px":"24px",e=>e.isSmall?"10px":"15px",Qe.GREEN_SUMMER_GRASS),VJ=(0,Ge.default)(Be.default).withConfig({displayName:"premium_event_card__DetailsButtonText",componentId:"sc-lks8h7-8"})(["font-size:",";font-weight:200;color:",";opacity:0.8;"],e=>e.isSmall?"10px":"12px",Qe.WHITE),KJ=(0,Ge.default)(pu.default).attrs({source:n(35859)}).withConfig({displayName:"premium_event_card__BroomIcon",componentId:"sc-lks8h7-9"})(["width:",";height:",";"],e=>e.isSmall?"10px":"15px",e=>e.isSmall?"10px":"15px");function YJ({position:e,customer:{id:t,firstname:n,lastname:i}={},duration:o,period:a,onPressDetail:s=()=>{},eventType:r,eventID:l,country:d}){const c=(0,Ks.useHistory)(),{isDesktop:u}=uu(),p=[n,i].join(" "),m=o<1.5;return(0,X.jsx)(qJ,{elevation:3,$top:e+oO,$height:o*iO,isSmall:m,testID:"premium-event-card",children:(0,X.jsxs)(ts,{eventAction:"premium event card",onPress:s,style:{flex:1}
3038,testID:`premium-event-card-details-${l}`,children:[(0,X.jsxs)(qe.default,{style:{flex:u?1:null},children:[(0,X.jsx)(BJ,{isSmall:m,noLabel:"unconfirmed"!==r,children:"unconfirmed"===r&&(0,X.jsx)(GJ,{isSmall:m,children:oA().t("planner.labels.event_unconfirmed",{defaultValue:"unconfirmed"})})}),(0,X.jsx)(ts,{eventAction:"customer name",eventLabel:"on premium event card",onPress:"sg"===d?s:()=>c.push(Ri(t)),children:(0,X.jsx)(UJ,{isSmall:m,children:p})}),(0,X.jsxs)($J,{isSmall:m,children:[(0,X.jsxs)(FJ,{isSmall:m,children:[(0,X.jsx)(KJ,{isSmall:m}),(0,X.jsx)(HJ,{isSmall:m,children:oA().translate(`frequency_names.${a||"once"}`)})]}),(0,X.jsxs)(FJ,{isSmall:m,style:m&&{marginLeft:6},children:[(0,X.jsx)(Pa.default,{name:"av-timer",size:m?14:18,color:Qe.TEXT_DARK,set:"MaterialCommunityIcons"}),(0,X.jsxs)(HJ,{isSmall:m,numberOfLines:1,testID:"premium-event-duration",children:[o," hours"]})]})]})]}),(0,X.jsxs)(WJ,{isSmall:m,children:[(0,X.jsx)(VJ,{isSmall:m,children:oA().translate("planner.details",{defaultValue:"Details"})}),(0,X.jsx)(Pa.default,{name:"arrow-right",size:m?14:18,color:Qe.WHITE,set:"MaterialCommunityIcons"})]})]})})}YJ.propTypes={position:qc.default.number.isRequired,customer:qc.default.shape({id:qc.default.string.isRequired,firstname:qc.default.string,lastname:qc.default.string}),duration:qc.default.number.isRequired,period:qc.default.string.isRequired,onPressDetail:qc.default.func.isRequired,eventType:qc.default.string,eventID:qc.default.string,country:qc.default.string};const XJ=YJ,ZJ=["color"];const QJ=function(e){let{color:t}=e,n=(0,A.default)(e,ZJ);return(0,X.jsxs)(Wu.default,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n,{children:[(0,X.jsx)(Wu.Path,{d:"M8.00013 6.7273H6.18195C5.1778 6.7273 4.36377 7.54133 4.36377 8.54548V19.4546C4.36377 20.4587 5.1778 21.2728 6.18195 21.2728H15.2729C16.277 21.2728 17.091 20.4587 17.091 19.4546V8.54548C17.091 7.54133 16.277 6.7273 15.2729 6.7273H13.4547M8.00013 6.7273C8.00013 7.73145 8.81416 8.54548 9.81832 8.54548H11.6365C12.6407 8.54548 13.4547 7.73145 13.4547 6.7273M8.00013 6.7273C8.00013 5.72315 8.81416 4.90912 9.81832 4.90912H11.6365C12.6407 4.90912 13.4547 5.72315 13.4547 6.7273M10.7274 13.0909H13.4547M10.7274 16.7273H13.4547M8.00013 13.0909H8.00922M8.00013 16.7273H8.00922",stroke:t,strokeWidth:"1.5",strokeLinecap:"round"}),(0,X.jsx)(Wu.Path,{d:"M20.1174 6.396C19.9334 6.396 19.7894 6.34 19.6854 6.228C19.5814 6.116 19.5174 5.952 19.4934 5.736L19.1094 1.632C19.0694 1.272 19.1374 0.983999 19.3134 0.767999C19.4894 0.543999 19.7574 0.431999 20.1174 0.431999C20.4614 0.431999 20.7214 0.543999 20.8974 0.767999C21.0734 0.983999 21.1414 1.272 21.1014 1.632L20.7174 5.736C20.6934 5.952 20.6294 6.116 20.5254 6.228C20.4294 6.34 20.2934 6.396 20.1174 6.396ZM20.1174 9.06C19.7974 9.06 19.5414 8.964 19.3494 8.772C19.1654 8.58 19.0734 8.332 19.0734 8.028C19.0734 7.732 19.1654 7.492 19.3494 7.308C19.5414 7.116 19.7974 7.02 20.1174 7.02C20.4374 7.02 20.6854 7.116 20.8614 7.308C21.0454 7.492 21.1374 7.732 21.1374 8.028C21.1374 8.332 21.0454 8.58 20.8614 8.772C20.6854 8.964 20.4374 9.06 20.1174 9.06Z",fill:t})]}))},JJ=["color"];const e0=function(e){let{color:t}=e,n=(0,A.default)(e,JJ);return(0,X.jsxs)(Wu.default,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n,{children:[(0,X.jsx)(Wu.Path,{d:"M20.572 6.396C20.388 6.396 20.244 6.34 20.14 6.228C20.036 6.116 19.972 5.952 19.948 5.736L19.564 1.632C19.524 1.272 19.592 0.983999 19.768 0.767999C19.944 0.543999 20.212 0.431999 20.572 0.431999C20.916 0.431999 21.176 0.543999 21.352 0.767999C21.528 0.983999 21.596 1.272 21.556 1.632L21.172 5.736C21.148 5.952 21.084 6.116 20.98 6.228C20.884 6.34 20.748 6.396 20.572 6.396ZM20.572 9.06C20.252 9.06 19.996 8.964 19.804 8.772C19.62 8.58 19.528 8.332 19.528 8.028C19.528 7.732 19.62 7.492 19.804 7.308C19.996 7.116 20.252 7.02 20.572 7.02C20.892 7.02 21.14 7.116 21.316 7.308C21.5 7.492 21.592 7.732 21.592 8.028C21.592 8.332 21.5 8.58 21.316 8.772C21.14 8.964 20.892 9.06 20.572 9.06Z",fill:t}),(0,X.jsx)(Wu.Path,{d:"M15.4543 9.45454H17.2725C18.2767 9.45454 19.0907 10.2686 19.0907 11.2727V16.7273C19.0907 17.7314 18.2767 18.5454 17.2725 18.5454H15.4543V22.1818L11.818 18.5454H8.1816C7.67952 18.5454 7.22497 18.3419 6.89595 18.0129M6.89595 18.0129L9.99978 14.9091H13.6361C14.6403 14.9091 15.4543 14.0951 15.4543 13.0909V7.63636C15.4543 6.6322 14.6403 5.81818 13.6361 5.81818H4.54523C3.54108 5.81818 2.72705 6.6322 2.72705 7.63636V13.0909C2.72705 14.0951 3.54108 14.9091 4.54523 14.9091H6.36341V18.5454L6.89595 18.0129Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},t0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__CardContainer",componentId:"sc-5cx2nu-0"}
3038)(["height:"," background-color:",";padding:16px 20px;border-radius:16.8px;",";max-width:700px;background-color:",";",";"],e=>e.height-2,Qe.WHITE,e=>e.elevation&&"box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)",({isOverlap:e})=>e?Qe.CRIMSON_5:Qe.WHITE,({isOverlapTimeline:e})=>e&&"flex: 1;"),n0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__Labels",componentId:"sc-5cx2nu-1"})(["align-items:flex-start;"]),i0=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__EventLabel",componentId:"sc-5cx2nu-2"})(["color:",";font-size:16px;font-weight:bold;"],({type:e})=>x0[e]),o0=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__CustomerName",componentId:"sc-5cx2nu-3"})(["font-size:16px;color:",";font-weight:600;"],Qe.TEXT_DARK),a0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__InfoItemContainer",componentId:"sc-5cx2nu-4"})(["",";"],e=>e.isSmall&&"\n    flex-direction: row;\n  "),s0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__InfoItem",componentId:"sc-5cx2nu-5"})(["flex-direction:row;align-items:center;"]),r0=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__InfoText",componentId:"sc-5cx2nu-6"})(["font-size:13px;font-weight:300;color:",";margin-left:5px;"],Qe.TEXT_DARK),l0=(0,Ge.default)(r0).withConfig({displayName:"event_card__InfoTextGreen",componentId:"sc-5cx2nu-7"})(["font-weight:700;margin-left:20px;color:",";"],({isOverlap:e})=>e?Qe.CRIMSON_1:Qe.GREEN_SUMMER_GRASS),d0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__DetailsButton",componentId:"sc-5cx2nu-8"})(["width:120px;padding:2px 20px;border-radius:5px;flex-direction:row;justify-content:center;align-items:center;border:1px solid ",";"],({isOverlap:e})=>e?Qe.CRIMSON_1:Qe.GREEN_SAGE_TEA),c0=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__DetailsButtonText",componentId:"sc-5cx2nu-9"})(["font-size:13px;font-weight:700;color:",";padding-left:5px;"],({isOverlap:e})=>e?Qe.CRIMSON_1:Qe.GREEN_SUMMER_GRASS),u0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__DetailsArrow",componentId:"sc-5cx2nu-10"})(["position:absolute;right:0;top:20px;"]),p0=(0,Ge.default)(Pa.default).attrs({name:"location-pin",size:16}).withConfig({displayName:"event_card__AddressIcon",componentId:"sc-5cx2nu-11"})([""]),m0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__LabelsContainer",componentId:"sc-5cx2nu-12"})(["flex-direction:row;"]),f0=(0,Ge.default)(Be.default).withConfig({displayName:"event_card__BusyTimeNotes",componentId:"sc-5cx2nu-13"})(["font-weight:500;font-size:16px;line-height:16px;"]),g0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__LabelWrapper",componentId:"sc-5cx2nu-14"})(["flex-direction:row;width:100%;justify-content:space-between;"]),h0=(0,Ge.default)(qe.default).withConfig({displayName:"event_card__IconContainer",componentId:"sc-5cx2nu-15"})(["flex-direction:row;"]),_0=(0,Ge.default)(e0).withConfig({displayName:"event_card__StyledMessageAlertIcon",componentId:"sc-5cx2nu-16"})(["",""],({$addmarginleft:e})=>e&&"\n  margin-left: 10px;\n  "),x0={confirmed:Qe.GREEN_GROWN_UP_GREEN,unconfirmed:Qe.CRIMSON_2,change_request:Qe.GREEN_GROWN_UP_GREEN,new_request:Qe.VIOLET_1,new_customer:Qe.VIOLET_1,pickup_attempt:Qe.GOLD_1,overlap:Qe.CRIMSON_1};function y0({customer:e={},duration:t,onPressDetail:n=()=>{},eventType:i,postcode:o,providerTotal:a,country:s,isOverlap:r,isOverlapTimeline:l,isCountdown:d,notes:c,hidePricesFromProvider:u,relationship:p,testID:m}){const{session:{countryConfig:{showUnconfirmedLabel:f,makeCleaningInstructionAccessible:g}}}=lt(),h="new_customer"!==i&&[e.firstname,e.lastname].join(" "),_=t<1.5,x="busy_time"===i,y=f||"unconfirmed"!==i,v=!1===(null===p||void 0===p?void 0:p.cleaningDetailsActioned),b=!!p&&!1===(null===p||void 0===p?void 0:p.haveUsersParticipatedInConversation);return(0,X.jsx)(t0,{elevation:3,height:(l?2:t)*iO,isOverlap:r,isOverlapTimeline:l,testID:m,children:(0,X.jsx)(ts,{eventAction:"event card",onPress:x?void 0:n,style:{flex:1},testID:`${m}-event-details`,children:(0,X.jsxs)(qe.default,{style:{flex:1,justifyContent:"space-between",maxHeight:200},children:[(0,X.jsxs)(m0,{children:[d&&(0,X.jsx)(Pa.default,{name:"clock-outline",size:20,color:Qe.GRAY_1,set
3038:"MaterialCommunityIcons"}),(0,X.jsxs)(g0,{isCountdown:d,children:[(0,X.jsxs)(qe.default,{style:d&&{marginLeft:2},children:[r&&(0,X.jsx)(n0,{isSmall:_,children:(0,X.jsx)(i0,{type:"overlap",children:oA().t("planner.labels.event_overlap")})}),y&&(0,X.jsx)(n0,{isSmall:_,children:(0,X.jsx)(i0,{type:i,testID:`${m}-type-${i}`,children:oA().t(`planner.labels.event_type_${i}`)})})]}),g&&(v||b)&&(0,X.jsxs)(h0,{children:[v&&(0,X.jsx)(ts,{eventAction:"cleaning instruction not actioned icon",eventLabel:"on event card from planner",onPress:x?void 0:n,children:(0,X.jsx)(QJ,{color:r?x0.overlap:Qe.GREEN_GROWN_UP_GREEN})}),b&&(0,X.jsx)(ts,{eventAction:"no conversation with customer icon",eventLabel:"on event card from planner",onPress:x?void 0:n,children:(0,X.jsx)(_0,{$addmarginleft:v.toString(),color:r?x0.overlap:Qe.GOLD_1})})]})]})]}),(l||!_)&&"new_customer"!==i&&(0,X.jsx)(o0,{numberOfLines:1,children:h}),x&&(0,X.jsx)(f0,{numberOfLines:2,children:c}),(0,X.jsxs)(a0,{isSmall:_,children:[o&&(0,X.jsxs)(s0,{isSmall:_,children:[(0,X.jsx)(p0,{}),(0,X.jsx)(r0,{children:o})]}),"sg"!==s&&!u&&a?(0,X.jsx)(s0,{isSmall:_,testID:"bid-price",children:(0,X.jsx)(l0,{isOverlap:r,children:fh(a,{withSymbol:!0})})}):null]}),x?null:l||t>1.5?(0,X.jsxs)(d0,{isOverlap:r,children:[(0,X.jsx)(c0,{isOverlap:r,children:oA().translate("planner.details",{defaultValue:"Details"})}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:32,color:r?Qe.CRIMSON_1:Qe.GREEN_SUMMER_GRASS})]}):(0,X.jsx)(u0,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:32,color:r?Qe.CRIMSON_1:Qe.GREEN_SUMMER_GRASS})})]})})})}y0.propTypes={customer:qc.default.shape({id:qc.default.string.isRequired,firstname:qc.default.string,lastname:qc.default.string,abTests:qc.default.arrayOf(qc.default.shape({experimentKey:qc.default.string,experiment:qc.default.bool}))}),relationship:qc.default.shape({cleaningDetailsActioned:qc.default.bool,haveUsersParticipatedInConversation:qc.default.bool}),duration:qc.default.number.isRequired,onPressDetail:qc.default.func.isRequired,postcode:qc.default.string,providerTotal:qc.default.number,eventType:qc.default.string,country:qc.default.string,isOverlap:qc.default.bool,isOverlapTimeline:qc.default.bool,isCountdown:qc.default.bool,notes:qc.default.string,hidePricesFromProvider:qc.default.bool,testID:qc.default.string};const v0=y0,b0=(0,Ge.default)(qe.default).withConfig({displayName:"TravelTimeCard__Container",componentId:"sc-17epqzj-0"})(["display:flex;flex-direction:row;position:absolute;top:",";left:100;right:30;height:42;max-width:700px;border-radius:16.8px;background-color:white;",";"],e=>e.top||0,e=>e.elevation&&"box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)"),w0=(0,Ge.default)(qe.default).withConfig({displayName:"TravelTimeCard__IconContainer",componentId:"sc-17epqzj-1"})(["background-color:",";width:42;border-radius:12px;display:flex;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN),C0=(0,Ge.default)(qe.default).withConfig({displayName:"TravelTimeCard__InfoContainer",componentId:"sc-17epqzj-2"})(["flex:1;padding:0px 10px;"]),j0=(0,Ge.default)(qe.default).withConfig({displayName:"TravelTimeCard__DistanceContainer",componentId:"sc-17epqzj-3"})(["flex:1;display:flex;flex-direction:row;align-items:center;"]),I0=(0,Ge.default)(rf.default).withConfig({displayName:"TravelTimeCard__DistanceText",componentId:"sc-17epqzj-4"})(["font-size:12px;font-weight:700;"]),T0=(0,Ge.default)(rf.default).withConfig({displayName:"TravelTimeCard__DistanceDesc",componentId:"sc-17epqzj-5"})(["font-size:12px;color:gray;padding-left:3px;"]),E0=(0,Ge.default)(qe.default).withConfig({displayName:"TravelTimeCard__TimeContainer",componentId:"sc-17epqzj-6"})(["flex:1;display:flex;flex-direction:row;align-items:center;"]),N0=(0,Ge.default)(rf.default).withConfig({displayName:"TravelTimeCard__TimeText",componentId:"sc-17epqzj-7"})(["font-size:10px;color:gray;margin-top:2px;"]),k0=(0,Ge.default)(qe.default).withConfig({displayName:"TravelTimeCard__Column",componentId:"sc-17epqzj-8"})(["display:flex;flex-direction:row;flex:1;"]);function R0({travel:e,backhome:t,position:n,onPress:i,fromHome:o}){const{walkingDistance:a,transitTime:s,walkingTime:r}=e,l="----",d=a?(a/1e3).toFixed(1):l,c=s?QD(s):l,u=r?QD(r):l;return(0,X.jsx)(ts,{eventAction:"travel time card",eventLabel:"on planner",withoutFeedback:!0,onPress:i,testID:"travel-card",children:(0,X.jsxs)(b0,{top:n,elevation:3,children:[(0,X.jsx)(w0,{children:(0,X.jsx)(Pa.default,{name:"map-marker-radius",size:18,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"})}),(0,X.jsxs)(C0,{children:[(0,X.jsxs)(j0,{children:[(0,X.jsxs)(I0,{children:[d,"km"]}),(0,X.jsx)(T0,{numberOfLines:1,children:t?oA().translate("planner.time_travel_back_home",{defaultValue:"to get back home"}):o?oA().translate("planner.time_travel_from_home",{defaultValue:"from home"}):oA().translate("planner.time_travel_appoint",{defaultValue:"from your next appoint"})})]}),(0,X.jsxs)(E0,{children:[(0,X.jsxs)(k0,{children:[(0,X.jsx)(Pa.default,{name:"directions-bus",size:14,color:Qe.BLACK}),(0,X.jsxs)(N0,{children:[" ",c," "]})]}),(0,X.jsxs)(k0,{children:[(0,X.jsx)(Pa.default,{name:"directions-walk",size:14,color:Qe.BLACK}),(0,X.jsxs)(N0,{children:[" ",u]})]})]})]})]})})}
3038R0.propTypes={travel:qc.default.shape({fromEvent:qc.default.number,toEvent:qc.default.number,walkingDistance:qc.default.number,walkingTime:qc.default.number,transitTime:qc.default.number}).isRequired,position:qc.default.number.isRequired,backhome:qc.default.bool,onPress:qc.default.func,fromHome:qc.default.bool};const S0=R0,A0=(0,Ge.default)(qe.default).withConfig({displayName:"Events__EventCardContainer",componentId:"sc-1cnq7rz-0"})(["",";"],({isOverlapTimeline:e,topSpace:t})=>e?"\n      flexDirection: row;\n      align-items: center;\n      padding: 8px 16px;\n      ":`\n      position: absolute;\n      ${t&&`top: ${t+1};`};\n      left: 100;\n      right: 18;\n  `),P0=(0,Ge.default)(qe.default).withConfig({displayName:"Events__HourOverlapEvent",componentId:"sc-1cnq7rz-1"})(["margin-right:20px;width:60px;"]),D0=(0,Ge.default)(rf.default).withConfig({displayName:"Events__HourOverlapEventText",componentId:"sc-1cnq7rz-2"})(["padding:4px 0;color:",";font-size:13px;text-align:right;"],Qe.TEXT_DARK);function M0(e,t){return(60*(C.DateTime.fromISO(e).hour-t)+C.DateTime.fromISO(e).minute)/60*iO}const O0=e=>C.DateTime.fromISO(e).toLocaleString(C.DateTime.TIME_SIMPLE);function z0({events:e=[],timeTravels:t=[],start:n=6,isOverlapTimeline:i}){const{isConnected:o}=(0,ta.useNetInfo)(),a=(0,Ks.useHistory)(),[s,r]=(0,K.useState)(!1),[l,d]=(0,K.useState)(!1),{session:{currentUser:c,country:u,settings:p}}=lt();return e.map((s,r)=>{var l;const{customer:d,startTime:m,endTime:f,period:g,address:h,eventType:_,providerTotal:x,isOverlap:y,isCountdown:v,notes:b,isVertical:w,relationship:j}=s,I=M0(m,n),T=(C.DateTime.fromISO(f)-C.DateTime.fromISO(m))/1e3/3600,E=null===c||void 0===c?void 0:c.premium,N=()=>{if(E||"confirmed"===_&&!w)a.push(Ni(s.id));else if("change_request"===_||"new_request"===_||"cancelled"===_)a.push(wi());else if("pickup_attempt"===_&&o){var e;a.push(Ni(null===s||void 0===s||null===(e=s.event)||void 0===e?void 0:e.id))}else o&&a.push(Ni(s.id))},k=[O0(m),O0(f)];if(E){var R,S;const i=`${null===c||void 0===c||null===(R=c.address)||void 0===R?void 0:R.latitude},${null===c||void 0===c||null===(S=c.address)||void 0===S?void 0:S.longitude}`,o=`${null===h||void 0===h?void 0:h.latitude},${null===h||void 0===h?void 0:h.longitude}`,a=()=>{sA(o)},l=()=>sA(i),p=t.find(e=>String(e.toEvent)===s.id),m=t.find(e=>!e.toEvent&&String(e.fromEvent)===s.id),f=e[r-1],x=p&&(!f||I>M0(f.endTime,n)+45);return(0,X.jsxs)(K.Fragment,{children:[x&&(0,X.jsx)(S0,{fromHome:!p.fromEvent,travel:p,position:I-48+oO,onPress:a}),(0,X.jsx)(XJ,{customer:d,duration:T,position:I,period:g,onPressDetail:N,eventType:_,eventID:s.id,country:u}),m&&(0,X.jsx)(S0,{backhome:!0,travel:m,position:I+T*iO+5+oO,onPress:l}),!1]},s.id)}return(0,X.jsxs)(A0,{topSpace:I+oO,isOverlapTimeline:i,testID:"event-card",children:[i&&(0,X.jsx)(P0,{children:k.map(e=>(0,X.jsx)(D0,{children:e},`${s.id}${e}`))}),(0,X.jsx)(v0,{customer:d,duration:T,position:I,onPressDetail:"new_customer"===_?()=>o?a.push(Xi(s.code)):null:N,eventType:_,postcode:null===h||void 0===h?void 0:h.postcode,providerTotal:x,country:u,startTime:m,endTime:f,isOverlap:y,isOverlapTimeline:i,isCountdown:v,notes:b,hidePricesFromProvider:null===p||void 0===p||null===(l=p.featureFlags)||void 0===l?void 0:l.hidePricesFromProvider,relationship:j,testID:`event-card-${s.id}`})]},s.id)})}z0.propTypes={events:qc.default.arrayOf(qc.default.shape({startTime:qc.default.any,endTime:qc.default.any,period:qc.default.string,customer:qc.default.shape({firstname:qc.default.string,lastname:qc.default.string}),relationship:qc.default.shape({cleaningDetailsActioned:qc.default.bool,haveUsersParticipatedInConversation:qc.default.bool}),address:qc.default.shape({address1:qc.default.string})})).isRequired,timeTravels:qc.default.arrayOf(qc.default.shape({fromEvent:qc.default.number,toEvent:qc.default.number,walkingDistance:qc.default.number,walkingTime:qc.default.number,transitTime:qc.default.number})).isRequired,start:qc.default.number};const L0=z0,q0=_t.default`
3039  query fetchBusyTimes($since: DateTime, $till: DateTime) {
3040    currentProvider {
3041      id
3042      busyTimes(since: $since, till: $till) {
3043        edges {
3044          node {
3045            id
3046            busySeriesId
3047            name
3048            starttime
3049            endtime
3050            duration
3051            notes
3052            location
3053            facilityServicesCustomer {
3054              id
3055              name
3056            }
3057          }
3058        }
3059      }
3060    }
3061  }
3062`,B0=e=>isNaN(e)?0:Math.floor(e),{width:G0}=Iw.default.get("screen"),U0=(0,Ge.default)(qe.default).withConfig({displayName:"planner_time_line__Container",componentId:"sc-qfnbuk-0"})(["width:",";max-width:900px;",""],({isDesktop:e})=>e?`${G0}px`:"100%",e=>e.isOverlap&&"margin-bottom: 30px;"),$0=(0,Ge.default)(qe.default).withConfig({displayName:"planner_time_line__BusyHours",componentId:"sc-qfnbuk-1"})(["width:",";max-width:900px;position:absolute;display:flex;justify-content:center;background-color:",";height:","px;top:","px;",""],({isDesktop:e})=>e?`${G0}px`:"100%",Qe.GRAY_4,e=>e.$height,e=>e.$top,({$top:e})=>0===e&&"\n  border-top-right-radius: 32px;\n  border-top-left-radius: 32px;\n  ");function F0({loading:e,events:t,timeTravels:n,start:i,end:o,displayTimeLineBar:a,currentDate:s,isOverlap:r}){const{isDesktop:l}=uu(),{fetchBusyTimes:d,busyTimes:c}=(()=>{var e,t;const[n,{data:i}]=(0,kn.useLazyQuery)(q0);return{fetchBusyTimes:(e,t)=>n({variables:{since:e,till:t}}),busyTimes:((null===i||void 0===i||null===(e=i.currentProvider)||void 0===e||null===(t=e.busyTimes)||void 0===t?void 0:t.edges)||[]).map(({node:e})=>Object.assign({},e,{starttime:{hour:C.DateTime.fromISO(e.starttime).hour,minute:C.DateTime.fromISO(e.starttime).minute},endtime:{hour:C.DateTime.fromISO(e.endtime).hour,minute:C.DateTime.fromISO(e.endtime).minute}}))}})();if((0,K.useEffect)(()=>{const e=s.set({hour:0,minute:0}
3062),t=s.set({hour:23,minute:59});d(e,t)},[s]),e)return null;const u=((e,t)=>e.length>0?e.map(e=>{const n=e.starttime.hour+e.starttime.minute/60,i=e.endtime.hour+e.endtime.minute/60,o=(n-t)*iO+oO;return{height:B0((i-n)*iO),positionTop:o>0?B0(o):0}}):[])(c,i);return(0,X.jsxs)(U0,{height:r?void 0:(o-i+2)*iO,isOverlap:r,isDesktop:l,children:[u.length>0&&u.map(({height:e,positionTop:t})=>(0,X.jsx)($0,{$height:e,$top:t,isDesktop:l},`busy-times-${t}`)),!r&&(0,X.jsx)(MJ,{start:i,end:o,currentDate:s}),!r&&a&&(0,X.jsx)(LJ,{start:i}),(0,X.jsx)(L0,{events:t,timeTravels:n,start:i,isOverlapTimeline:r})]})}F0.propTypes={loading:qc.default.bool,events:qc.default.arrayOf(Object),timeTravels:qc.default.array.isRequired,start:qc.default.number.isRequired,end:qc.default.number.isRequired,displayTimeLineBar:qc.default.bool,currentDate:qc.default.any.isRequired,isOverlap:qc.default.bool};const H0=F0,W0=(0,Ge.default)(qe.default).withConfig({displayName:"label__Container",componentId:"sc-1168n1h-0"})(["border-radius:18px;padding:5px 10px;margin-bottom:15px;background:",";align-self:flex-start;"],({color:e})=>e),V0=(0,Ge.default)(xm.Text).withConfig({displayName:"label__StyledText",componentId:"sc-1168n1h-1"})(["font-size:12px;color:",";"],({textColor:e})=>e);function K0({status:e,absenceStyle:t,children:n}){const{color:i,textColor:o}=t&&t.label?t.label:(e=>{const t=hd[e];return t?t.label:{color:Qe.BLACK,textColor:Qe.WHITE}})(e);return(0,X.jsx)(qe.default,{children:(0,X.jsx)(W0,{color:i,children:(0,X.jsx)(V0,{textColor:o,children:n})})})}K0.propTypes={children:ze().string.isRequired,absenceStyle:ze().object,status:ze().string};const Y0=K0,X0=(0,Ge.default)(lm).withConfig({displayName:"absence_banner__Container",componentId:"sc-1qcgsjv-0"})(["border-radius:16px;padding:20px 25px;margin-top:20px;margin-bottom:20px;background:",";width:99%;align-self:center;"],({color:e})=>e),Z0=(0,Ge.default)(rf.default).withConfig({displayName:"absence_banner__StyledText",componentId:"sc-1qcgsjv-1"})(["color:",";font-size:14px;font-weight:bold;"],Qe.BLACK),Q0=(0,Ge.default)(rf.default).withConfig({displayName:"absence_banner__Description",componentId:"sc-1qcgsjv-2"})(["color:",";margin-top:6px;font-weight:300;"],Qe.BLACK);function J0({absence:{startDate:e,category:t,status:n,durationInDays:i},absenceStyle:o}){var a;const{session:{settings:{viewPermissions:{seeAbsenceStatus:s}}}}=lt(),r=o?o.banner.color:(null===(a=hd[n])||void 0===a?void 0:a.banner.color)||Qe.CRIMSON_4;return(0,X.jsxs)(X0,{color:r,elevation:1,children:[s&&n&&(0,X.jsx)(Y0,{status:n,absenceStyle:o,children:i18n.t(`absence_label.${n}`)}),(0,X.jsxs)(Z0,{children:[i18n.t("absence_banner.heading")," (",i18n.t(`absence.categories.${t}`),")"]}),(0,X.jsx)(Q0,{children:(()=>{const t=C.DateTime.fromISO(e).toLocaleString(C.DateTime.DATE_FULL);return i<=1?i18n.t("absence_banner.description.single_day_absence_new",{day:i,date:t}):i18n.t("absence_banner.description.multi_day_absence",{days:i,date:t})})()})]})}J0.propTypes={absence:ze().object,absenceStyle:ze().object};const e1=J0,t1=(0,Ge.default)(lm).withConfig({displayName:"holiday_banner__Container",componentId:"sc-1c5r7a5-0"})(["border-radius:16px;padding:20px 25px;margin-top:20px;margin-bottom:20px;background:",";width:100%;align-self:center;"],({color:e})=>e),n1=(0,Ge.default)(rf.default).withConfig({displayName:"holiday_banner__Description",componentId:"sc-1c5r7a5-1"})(["color:",";margin-top:6px;font-weight:300;"],Qe.BLACK),i1=(0,Ge.default)(qe.default).withConfig({displayName:"holiday_banner__LabelContainer",componentId:"sc-1c5r7a5-2"})(["border-radius:18px;padding:5px 10px;margin-bottom:15px;background:",";align-self:center;"],({color:e})=>e),o1=(0,Ge.default)(rf.default).withConfig({displayName:"holiday_banner__LableStyledText",componentId:"sc-1c5r7a5-3"})(["font-size:12px;color:",";"],({textColor:e})=>e);function a1({holidays:e}){const{start:t,finish:n}=e[0],i=C.DateTime.fromISO(t),o=C.DateTime.fromISO(n),a=Math.round(o.diff(i,"days").days);return(0,X.jsxs)(t1,{color:Qe.GRAY_BORDER,elevation:1,children:[(0,X.jsx)(qe.default,{children:(0,X.jsx)(i1,{color:Qe.GREEN_SAGE_TEA,children:(0,X.jsx)(o1,{textColor:Qe.WHITE,children:i18n.t("holiday_card.title")})})}),(0,X.jsx)(n1,{children:i18n.t("holiday_card.description",{duration:a,startDate:i.toFormat("cccc dd"),endDate:o.toFormat("cccc dd")})})]})}a1.propTypes={holidays:ze().array};const s1=a1,r1=(0,Ge.default)(Vf.default).withConfig({displayName:"content__TimeLineContainer",componentId:"sc-1nxlw36-0"})(["border-top-right-radius:",";border-top-left-radius:",";background-color:white;"],Hu,Hu),l1=(0,Ge.default)(Aa.default).withConfig({displayName:"content__Spinner",componentId:"sc-1nxlw36-1"})(["margin-top:5px;"]),d1=(0,Ge.default)(Be.default).withConfig({displayName:"content__NoAppointmentsMessage",componentId:"sc-1nxlw36-2"})(["margin-top:20px;padding:10px;text-align:center;"]),c1=(0,Ge.default)(qe.default).withConfig({displayName:"content__EventCount",componentId:"sc-1nxlw36-3"})(["width:100%;max-width:900px;padding:20px 18px;flex-direction:row;"]),u1=(0,Ge.default)(Be.default).withConfig({displayName:"content__EventCountText",componentId:"sc-1nxlw36-4"})(["flex:1;font-size:16px;color:",";font-weight:600;text-align:right;"],Qe.TEXT_DARK),p1=(0,Ge.default)(qe.default).withConfig({displayName:"content__OverlapWarningContainer",componentId:"sc-1nxlw36-5"})(["flex-direction:row;width:100%;max-width:900px;margin-left:28px;margin-bottom:16px;padding-right:20px;"]),m1=(0,Ge.default)(qe.default).withConfig({displayName:"content__OverlapWarning",componentId:"sc-1nxlw36-6"})(["padding-left:8px;padding-right:8px;flex-shrink:1;"]),f1=(0,Ge.default)(Be.default).withConfig({displayName:"content__OverlapWarningHeading",componentId:"sc-1nxlw36-7"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),g1=(0,Ge.default)(Be.default).withConfig({displayName:"content__OverlapWarningDesc",componentId:"sc-1nxlw36-8"})(["margin-top:5px;color:",";"],Qe.TEXT_DARK),h1=(0,Ge.default)(qe.default).withConfig({displayName:"content__AbsenceBannerContainer",componentId:"sc-1nxlw36-9"})(["width:",";max-width:750px;"],({isDesktop:e})=>e?"750px":"300px"),_1=(0,Ge.default)(qe.default).withConfig({displayName:"content__HolidayBannerContainer",componentId:"sc-1nxlw36-10"})(["width:",";max-width:750px;"],({isDesktop:e})=>e?"750px":"330px"),x1=({scrollViewRef:e})=>{const{session:{currentUser:t}}=lt(),{state:{currentDate:n,calendarOpened:i,events:o,loadingEvents:a,timeTravels:s,absence:r,holidays:l,isOverlap:d}}=BQ(),{isDesktop:c}=uu(),u=null===t||void 0===t?void 0:t.premium,p=o.filter(e=>"confirmed"===e.eventType||"change_request"===e.eventType).length,m=C.DateTime.now().toFormat("yyyy LLL dd")===n.toFormat("yyyy LLL dd"),[f,g]=(e=>{if((null===e||void 0===e?void 0:e.length)<1)return[6,21];const t=[...e].sort((e,t)=>
3062{const n=C.DateTime.fromISO(null===e||void 0===e?void 0:e.endTime),i=C.DateTime.fromISO(null===t||void 0===t?void 0:t.endTime);return n===i?0:n>i?1:-1}),n=t[0],i=1===t.length?t[0]:t[t.length-1];let o=C.DateTime.fromISO(null===n||void 0===n?void 0:n.startTime),a=C.DateTime.fromISO(null===i||void 0===i?void 0:i.endTime);const s=o.hour-1;return[s,s>a.hour+1?o.endOf("day").hour:a.hour+1]})(o);return(0,X.jsxs)(r1,{ref:e,desktop:c,overScrollMode:"never",contentContainerStyle:{display:"flex",alignItems:"center"},children:[(0,X.jsx)(pf,{$marginTop:12,noContentMargin:!0}),!a&&!u&&!i&&p>0&&(0,X.jsx)(c1,{children:(0,X.jsx)(u1,{children:oA().t("calendar.events",{count:p})})}),l&&(0,X.jsx)(_1,{isDesktop:c,children:(0,X.jsx)(s1,{holidays:l})}),!a&&!u&&!i&&d&&p>0&&(0,X.jsxs)(p1,{children:[(0,X.jsx)(Pa.default,{name:"info",size:32,color:Qe.CRIMSON_1}),(0,X.jsxs)(m1,{children:[(0,X.jsx)(f1,{children:oA().t("planner.overlapping_events_warning_header")}),(0,X.jsx)(g1,{children:oA().t("planner.overlapping_events_warning_desc")})]})]}),r&&(0,X.jsx)(h1,{isDesktop:c,children:(0,X.jsx)(e1,{absence:r})}),a&&(0,X.jsx)(l1,{size:"large",color:Qe.GREEN_SUMMER_GRASS,style:{marginTop:50}}),!a&&o.length<1&&(0,X.jsx)(d1,{children:i18n.t("planner.no_appointments_message")}),(0,X.jsx)(H0,{loading:a,events:o,timeTravels:s,start:f,end:g,displayTimeLineBar:m,currentDate:n,isOverlap:d})]})};x1.propTypes={scrollViewRef:qc.default.object};const y1=x1,v1=(0,Ge.default)(qe.default).withConfig({displayName:"planner_component__Container",componentId:"sc-clqy5g-0"})(["background-color:",";flex:1;"],hf.HEADER.BACKGROUND),b1=(0,Ge.default)(qe.default).withConfig({displayName:"planner_component__EstimatedPayout",componentId:"sc-clqy5g-1"})(["padding:5px;background-color:",";",""],Qe.GREEN_FROSTY_GREEN,({isDesktop:e})=>e&&"\n      position: fixed;\n      bottom: 0;\n      left: 0;\n      right: 0;\n  "),w1=(0,Ge.default)(Be.default).withConfig({displayName:"planner_component__EstimatedPayoutText",componentId:"sc-clqy5g-2"})(["font-size:12px;color:",";text-align:center;"],Qe.TEXT_DARK),C1=(0,Ge.default)(Be.default).withConfig({displayName:"planner_component__EstimatedPayoutAmount",componentId:"sc-clqy5g-3"})(["font-size:12px;font-weight:bold;"]);const j1=function(){var e;const{events:{fetchEvents:t,fetchTimeTravels:n},pages:{planner:i},absences:{fetchAbsence:o},session:{currentUser:a,country:s,settings:r}}=lt(),{getActiveHolidays:l,holidays:d,fetchingHolidays:c}=$Q(),u=hO().get("selectedDate"),{state:{currentDate:p,calendarOpened:m,events:f},dispatch:g}=BQ(),{isDesktop:h}=uu(),_=(0,Re.useSafeAreaInsets)(),{isConnected:x}=(0,ta.useNetInfo)(),y=(0,K.useRef)(null),v=null===a||void 0===a?void 0:a.premium;(0,K.useEffect)(()=>{(async()=>{g({type:dO,value:!0}),y.current&&y.current.scrollTo({x:0,y:0,animated:!1});const e=await t(p,v);if(!v&&(null===e||void 0===e?void 0:e.length)>1?(({country:e,events:t,dispatch:n})=>{const i=t.map((e,n)=>Object.assign({},e,{isOverlap:_O(e,t[n-1],t[n+1])})),o=!!i.find(e=>e.isOverlap);if("sg"===e&&o){const e=i.filter(e=>"confirmed"===e.eventType||"unconfirmed"===e.eventType||"pickup_attempt"===e.eventType),t=e.map((t,n)=>Object.assign({},t,{isOverlap:_O(t,e[n-1],e[n+1])})),o=!!t.find(e=>e.isOverlap);n({type:fO,value:o}),n({type:lO,value:t})}else n({type:fO,value:o}),n({type:lO,value:i})})({country:s,events:e,dispatch:g}):g({type:lO,value:e}),g({type:dO,value:!1}),v){const{eventIds:t,shouldLoadTimeTravels:i,pendingTimeTravels:o}=(({events:e,currentDate:t,dispatch:n})=>{const i=e.filter(e=>C.DateTime.local()<C.DateTime.fromISO(e.startTime)).map(e=>Number(e.id)),o=C.DateTime.now().set({hour:0}).minus({hour:1}),a=t>=o,s=a&&t<=o.plus({day:2}),r=(e=>{const t=e.map((t,n)=>({fromEvent:e[n-1]||null,toEvent:t}));return t.push({fromEvent:e[e.length-1],toEvent:null}),t})(i);return n({type:uO,value:a?r:[]}),{eventIds:i,shouldLoadTimeTravels:s,pendingTimeTravels:r}})({events:e,currentDate:p,dispatch:g});if(i){const e=await n(t);g({type:uO,value:e.length>0?e:o})}}})()},[p,x]),(0,K.useEffect)(()=>{a.isFreelance?(g({type:mO,value:null}),l(p.startOf("day"),p.endOf("day"))):(async()=>{const e=await o(p);!1===(null===e||void 0===e?void 0:e.success)?g({type:pO,value:null}):g({type:pO,value:e})})()},[p,x]),(0,K.useEffect)(()=>{!c&&(null===d||void 0===d?void 0:d.length)>0&&g({type:mO,value:d})},[c,d]),(0,K.useEffect)(()=>{var e;u&&(e=C.DateTime.fromISO(u),g({type:aO,value:e}),g({type:sO,value:!1}),i.setSelectedDate(e))},[u]);const b=(0,K.useMemo)(()=>f.reduce((e,t)=>
3062"confirmed"===t.eventType?e+t.providerTotal:e,0),[f]),w=!v&&"sg"!==s&&!(null!==r&&void 0!==r&&null!==(e=r.featureFlags)&&void 0!==e&&e.hidePricesFromProvider)&&b>0&&!m;return(0,X.jsxs)(qe.default,{style:{flex:1},children:[(0,X.jsxs)(v1,{desktop:h,children:[!x&&(0,X.jsx)(pm,{paddingTop:_.top}),h&&(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}),(0,X.jsx)(RJ,{}),!m&&(0,X.jsx)(y1,{scrollViewRef:y}),w&&(0,X.jsx)(b1,{isDesktop:h,children:(0,X.jsxs)(w1,{children:[oA().t("calendar.day_earnings")," ",(0,X.jsx)(C1,{children:fh(b,{withSymbol:!0})})]})})]}),!h&&(0,X.jsx)(sf,{web:true})]})};const I1=function(){var e,t;const{pages:{planner:n}}=lt(),i=(0,Ks.useHistory)(),o={currentDate:(null===i||void 0===i||null===(e=i.location)||void 0===e||null===(t=e.state)||void 0===t?void 0:t.showAvailabilityModal)||!1?C.DateTime.now():n.selectedDate};return(0,X.jsx)(GQ,{initialState:o,children:(0,X.jsx)(j1,{})})},T1=()=>(0,X.jsx)(I1,{}),E1=(0,Ge.default)(rf.default).withConfig({displayName:"header__HeaderTitle",componentId:"sc-hcaxr4-0"})(["color:",";font-weight:700;font-size:25px;margin-top:40px;margin-left:20px;"],Qe.WHITE),N1=()=>(0,X.jsx)(qe.default,{children:(0,X.jsx)(E1,{children:i18n.t("menu.more")})}),k1=(0,Ge.default)(pu.default).attrs({source:n(6752)}).withConfig({displayName:"content__SupportIcon",componentId:"sc-1hkh5bn-0"})(["width:48px;height:48px;"]),R1=(0,Ge.default)(pu.default).attrs({source:n(36433)}).withConfig({displayName:"content__LanguageIcon",componentId:"sc-1hkh5bn-1"})(["width:48px;height:48px;"]),S1=(0,Ge.default)(pu.default).attrs({source:n(8954)}).withConfig({displayName:"content__HrRequestsIcon",componentId:"sc-1hkh5bn-2"})(["width:48px;height:48px;"]),A1=(0,Ge.default)(qe.default).withConfig({displayName:"content__NotificationIconContainer",componentId:"sc-1hkh5bn-3"})(["width:48px;height:48px;background-color:",";border-radius:11px;align-items:center;justify-content:center;"],Qe.GREEN_FROSTY_GREEN),P1=()=>(0,X.jsx)(A1,{children:(0,X.jsx)(Pa.default,{name:"notifications-none",size:25,color:Qe.GREEN_SUMMER_GRASS})}),D1=(0,Ge.default)(Pa.default).withConfig({displayName:"content__ArrowRightIcon",componentId:"sc-1hkh5bn-4"})(["margin-left:auto;"]),M1=(0,Ge.default)(ts).withConfig({displayName:"content__MenuListItem",componentId:"sc-1hkh5bn-5"})(["display:flex;flex-direction:row;width:80%;max-width:400px;align-items:center;margin-top:20px;"]),O1=(0,Ge.default)(qe.default).withConfig({displayName:"content__MenuListItemDetails",componentId:"sc-1hkh5bn-6"})(["flex:1;"]),z1=(0,Ge.default)(Be.default).withConfig({displayName:"content__MenuTitle",componentId:"sc-1hkh5bn-7"})(["font-size:16px;color:",";opacity:0.84;margin-left:10px;"],Qe.TEXT_DARK),L1=(0,Ge.default)(Be.default).withConfig({displayName:"content__MenuDesc",componentId:"sc-1hkh5bn-8"})(["font-size:12px;color:",";opacity:0.84;margin-left:10px;margin-top:5px;"],Qe.VIOLET_2),q1=(0,Ge.default)(qe.default).withConfig({displayName:"content__MenuList",componentId:"sc-1hkh5bn-9"})(["display:flex;align-items:center;"]),B1=(0,Ge.default)(ts).withConfig({displayName:"content__LogoutButton",componentId:"sc-1hkh5bn-10"})(["border:1px solid ",";border-radius:16px;min-width:300px;padding:15px;display:flex;justify-content:center;align-items:center;align-self:center;margin-top:40px;"],Qe.TEXT_DARK),G1=(0,Ge.default)(Be.default).withConfig({displayName:"content__LogoutButtonText",componentId:"sc-1hkh5bn-11"})(["color:",";font-size:19px;font-weight:700;"],Qe.TEXT_DARK);const U1=function(){var e,t;const n=(0,Ks.useHistory)(),{session:{signOut:i,settings:o}}=lt(),[a,s]=(0,K.useState)(!1),r=null===o||void 0===o||null===(e=o.viewPermissions)||void 0===e?void 0:e.seeAbsenceOverview,l=null===o||void 0===o||null===(t=o.viewPermissions)||void 0===t?void 0:t.editNotificationPreferences,d=[{title:i18n.t("more.menu.support_title"),desc:null,icon:(0,X.jsx)(k1,{}),onPress:()=>n.push("/provider/contact_us")},{title:i18n.t("more.menu.language_settings_title"),desc:i18n.t("more.menu.language_settings_sub_title"),icon:(0,X.jsx)(R1,{}),onPress:()=>n.push("/provider/language_settings")},{title:i18n.t("more.menu.hr_requests_title"),desc:i18n.t("more.menu.hr_requests_sub_title"),icon:(0,X.jsx)(S1,{}),onPress:()=>n.push(r?"/provider/hr_requests":"/provider/hr_requests/history")}];return l&&d.push({title:i18n.t("more.notifications_settings.title"),desc:null,icon:(0,X.jsx)(P1,{}),eventAction:"notification settings",onPress:()=>n.push("/provider/notification_settings")}),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(q1,{children:d.map(({title:e,desc:t,icon:n,onPress:i,eventAction:o})=>(0,X.jsxs)(M1,{onPress:i,eventAction:o,eventLabel:"on more (premium)",children:[n,(0,X.jsxs)(O1,{children:[(0,X.jsx)(z1,{children:e}),t&&(0,X.jsx)(L1,{children:t})]}),(0,X.jsx)(D1,{name:"keyboard-arrow-right",size:18,color:"gray"})]},e))}),(0,X.jsx)(B1,{onPress:async()=>{s(!0),await i(),n.push(Ii())},disabled:a,eventAction:"logout",eventLabel:"on more (premium)",children:(0,X.jsx)(G1,{children:i18n.t("more.button_logout")})})]})};const $1=function(){return(0,X.jsx)(Rf,{page:"more",header:N1,content:U1,hideBackButton:!0})},F1={"EN-GB":"en_gb","EN-US":"en_us",DE:"de",FR:"fr",IT:"it",JA:"ja",ES:"es",PL:"pl","PT-PT":"pt_pt","PT-BR":"pt_br",RU:"ru",ZH:"zh"},H1=["color"],W1=e=>{let{color:t}=e,n=(0,A.default)(e,H1);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M10.6667 9.33333V4M21.3333 9.33333V4M9.33333 14.6667H22.6667M6.66667 28H25.3333C26.8061 28 28 26.8061 28 25.3333V9.33333C28 7.86057 26.8061 6.66667 25.3333 6.66667H6.66667C5.19391 6.66667 4 7.86057 4 9.33333V25.3333C4 26.8061 5.19391 28 6.66667 28Z",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))};
3062W1.propTypes={color:ze().string.isRequired};const V1=W1,K1=["color"],Y1=e=>{let{color:t}=e,n=(0,A.default)(e,K1);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M22.6667 10.6666H25.3333C26.8061 10.6666 28 11.8606 28 13.3333V21.3333C28 22.8061 26.8061 24 25.3333 24H22.6667V29.3333L17.3333 24H12C11.2636 24 10.597 23.7015 10.1144 23.2189M10.1144 23.2189L14.6667 18.6666H20C21.4728 18.6666 22.6667 17.4727 22.6667 16V7.99998C22.6667 6.52722 21.4728 5.33331 20 5.33331H6.66667C5.19391 5.33331 4 6.52722 4 7.99998V16C4 17.4727 5.19391 18.6666 6.66667 18.6666H9.33333V24L10.1144 23.2189Z",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))};Y1.propTypes={color:ze().string.isRequired};const X1=Y1,Z1=["color"],Q1=e=>{let{color:t}=e,n=(0,A.default)(e,Z1);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M18.7096 12.6554C19.0715 13.0725 19.7031 13.1173 20.1202 12.7553C20.5374 12.3933 20.5821 11.7618 20.2202 11.3446L18.7096 12.6554ZM13.2905 19.3446C12.9285 18.9275 12.2969 18.8827 11.8798 19.2447C11.4626 19.6067 11.4179 20.2382 11.7799 20.6554L13.2905 19.3446ZM17 9.33333C17 8.78105 16.5523 8.33333 16 8.33333C15.4477 8.33333 15 8.78105 15 9.33333H17ZM15 22.6666C15 23.2189 15.4477 23.6667 16 23.6667C16.5523 23.6667 17 23.219 17 22.6667L15 22.6666ZM27 16C27 22.0751 22.0751 27 16 27V29C23.1797 29 29 23.1797 29 16H27ZM16 27C9.92487 27 5 22.0751 5 16H3C3 23.1797 8.8203 29 16 29V27ZM5 16C5 9.92487 9.92487 5 16 5V3C8.8203 3 3 8.8203 3 16H5ZM16 5C22.0751 5 27 9.92487 27 16H29C29 8.8203 23.1797 3 16 3V5ZM16 15C15.0653 15 14.2644 14.7456 13.7263 14.3869C13.1812 14.0235 13 13.6313 13 13.3333H11C11 14.5081 11.7142 15.4492 12.6169 16.051C13.5265 16.6574 14.7255 17 16 17V15ZM13 13.3333C13 13.0353 13.1812 12.6431 13.7263 12.2798C14.2644 11.921 15.0653 11.6667 16 11.6667V9.66667C14.7255 9.66667 13.5265 10.0092 12.6169 10.6157C11.7142 11.2174 11 12.1586 11 13.3333H13ZM16 11.6667C17.2739 11.6667 18.2563 12.133 18.7096 12.6554L20.2202 11.3446C19.2902 10.2728 17.6872 9.66667 16 9.66667V11.6667ZM16 17C16.9347 17 17.7357 17.2544 18.2737 17.6131C18.8188 17.9765 19 18.3687 19 18.6667H21C21 17.4919 20.2858 16.5508 19.3831 15.949C18.4735 15.3426 17.2745 15 16 15V17ZM15 9.33333V10.6667H17V9.33333H15ZM15 21.3333L15 22.6666L17 22.6667L17 21.3334L15 21.3333ZM16 20.3333C14.7261 20.3333 13.7437 19.8669 13.2905 19.3446L11.7799 20.6554C12.7099 21.7272 14.3128 22.3333 16 22.3333L16 20.3333ZM19 18.6667C19 18.9647 18.8188 19.3569 18.2738 19.7202C17.7357 20.079 16.9347 20.3333 16 20.3333V22.3333C17.2745 22.3333 18.4735 21.9908 19.3832 21.3843C20.2858 20.7826 21 19.8414 21 18.6667H19ZM15 10.6667L15 21.3333L17 21.3333L17 10.6667L15 10.6667Z",fill:t})}))};Q1.propTypes={color:ze().string.isRequired};const J1=Q1,e2=["color"],t2=e=>{let{color:t}=e,n=(0,A.default)(e,e2);return(0,X.jsxs)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,X.jsx)(Wu.Path,{d:"M21.3337 9.33333C21.3337 12.2789 18.9458 14.6667 16.0003 14.6667C13.0548 14.6667 10.667 12.2789 10.667 9.33333C10.667 6.38781 13.0548 4 16.0003 4C18.9458 4 21.3337 6.38781 21.3337 9.33333Z",stroke:"#1E2121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M16.0003 18.6667C10.8457 18.6667 6.66699 22.8453 6.66699 28H25.3337C25.3337 22.8453 21.155 18.6667 16.0003 18.6667Z",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}))};t2.propTypes={color:ze().string.isRequired};const n2=t2,i2=["color"],o2=e=>{let{color:t}=e,n=(0,A.default)(e,i2);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M16 5.80557C16.9773 4.69834 18.4071 4 20 4C22.9455 4 25.3333 6.38781 25.3333 9.33333C25.3333 12.2789 22.9455 14.6667 20 14.6667C18.4071 14.6667 16.9773 13.9683 16 12.8611M20 28H4V26.6667C4 22.2484 7.58172 18.6667 12 18.6667C16.4183 18.6667 20 22.2484 20 26.6667V28ZM20 28H28V26.6667C28 22.2484 24.4183 18.6667 20 18.6667C18.5429 18.6667 17.1767 19.0562 16 19.7369M17.3333 9.33333C17.3333 12.2789 14.9455 14.6667 12 14.6667C9.05448 14.6667 6.66667 12.2789 6.66667 9.33333C6.66667 6.38781 9.05448 4 12 4C14.9455 4 17.3333 6.38781 17.3333 9.33333Z",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))};
3062o2.propTypes={color:ze().string.isRequired};const a2=o2,s2=["color"],r2=e=>{let{color:t}=e,n=(0,A.default)(e,s2);return(0,X.jsxs)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,X.jsx)(Wu.Path,{d:"M13.7662 5.75641C14.3347 3.41453 17.6653 3.41453 18.2338 5.75641C18.6011 7.26924 20.3343 7.98717 21.6638 7.17713C23.7217 5.92319 26.0768 8.27827 24.8229 10.3362C24.0128 11.6657 24.7308 13.3989 26.2436 13.7662C28.5855 14.3347 28.5855 17.6653 26.2436 18.2338C24.7308 18.6011 24.0128 20.3343 24.8229 21.6638C26.0768 23.7217 23.7217 26.0768 21.6638 24.8229C20.3343 24.0128 18.6011 24.7308 18.2338 26.2436C17.6653 28.5855 14.3347 28.5855 13.7662 26.2436C13.3989 24.7308 11.6657 24.0128 10.3362 24.8229C8.27827 26.0768 5.92319 23.7217 7.17713 21.6638C7.98717 20.3343 7.26924 18.6011 5.75641 18.2338C3.41453 17.6653 3.41453 14.3347 5.75641 13.7662C7.26924 13.3989 7.98717 11.6657 7.17713 10.3362C5.92319 8.27827 8.27827 5.92319 10.3362 7.17713C11.6657 7.98717 13.3989 7.26924 13.7662 5.75641Z",stroke:"#1E2121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M20 16C20 18.2091 18.2091 20 16 20C13.7909 20 12 18.2091 12 16C12 13.7909 13.7909 12 16 12C18.2091 12 20 13.7909 20 16Z",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}))};r2.propTypes={color:ze().string.isRequired};const l2=r2,d2=["color"],c2=e=>{let{color:t}=e,n=(0,A.default)(e,d2);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M5.33333 5.33331V4.33331H4.33333V5.33331H5.33333ZM26.6667 5.33331H27.6667V4.33331H26.6667V5.33331ZM8.62623 15.2929C8.2357 15.6834 8.2357 16.3166 8.62623 16.7071C9.01675 17.0976 9.64992 17.0976 10.0404 16.7071L8.62623 15.2929ZM13.3333 12L14.0404 11.2929C13.6499 10.9023 13.0168 10.9023 12.6262 11.2929L13.3333 12ZM17.3333 16L16.6262 16.7071C17.0168 17.0976 17.6499 17.0976 18.0404 16.7071L17.3333 16ZM23.3738 11.3738C23.7643 10.9832 23.7643 10.3501 23.3738 9.95954C22.9832 9.56901 22.3501 9.56901 21.9596 9.95954L23.3738 11.3738ZM9.95956 27.2929C9.56904 27.6834 9.56904 28.3166 9.95956 28.7071C10.3501 29.0976 10.9832 29.0976 11.3738 28.7071L9.95956 27.2929ZM16 22.6666L16.7071 21.9595C16.3166 21.569 15.6834 21.569 15.2929 21.9595L16 22.6666ZM20.6262 28.7071C21.0167 29.0976 21.6499 29.0976 22.0404 28.7071C22.431 28.3166 22.431 27.6834 22.0404 27.2929L20.6262 28.7071ZM4 4.33331C3.44772 4.33331 3 4.78103 3 5.33331C3 5.8856 3.44772 6.33331 4 6.33331V4.33331ZM28 6.33331C28.5523 6.33331 29 5.8856 29 5.33331C29 4.78103 28.5523 4.33331 28 4.33331V6.33331ZM5.33333 6.33331H26.6667V4.33331H5.33333V6.33331ZM25.6667 5.33331V21.3333H27.6667V5.33331H25.6667ZM25.3333 21.6666H6.66667V23.6666H25.3333V21.6666ZM6.33333 21.3333V5.33331H4.33333V21.3333H6.33333ZM6.66667 21.6666C6.48257 21.6666 6.33333 21.5174 6.33333 21.3333H4.33333C4.33333 22.622 5.378 23.6666 6.66667 23.6666V21.6666ZM25.6667 21.3333C25.6667 21.5174 25.5174 21.6666 25.3333 21.6666V23.6666C26.622 23.6666 27.6667 22.622 27.6667 21.3333H25.6667ZM10.0404 16.7071L14.0404 12.7071L12.6262 11.2929L8.62623 15.2929L10.0404 16.7071ZM12.6262 12.7071L16.6262 16.7071L18.0404 15.2929L14.0404 11.2929L12.6262 12.7071ZM18.0404 16.7071L23.3738 11.3738L21.9596 9.95954L16.6262 15.2929L18.0404 16.7071ZM11.3738 28.7071L16.7071 23.3738L15.2929 21.9595L9.95956 27.2929L11.3738 28.7071ZM15.2929 23.3738L20.6262 28.7071L22.0404 27.2929L16.7071 21.9595L15.2929 23.3738ZM4 6.33331H28V4.33331H4V6.33331Z",fill:t})}))};c2.propTypes={color:ze().string.isRequired};const u2=c2,p2=["color"],m2=e=>{let{color:t}=e,n=(0,A.default)(e,p2);return(0,X.jsxs)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:[(0,X.jsx)(Wu.Path,{d:"M14.5 27.9998C7.87258 27.9998 2.5 22.6272 2.5 15.9998C2.5 9.3724 7.87258 3.99982 14.5 3.99982M10.8333 15.8331L13.5 18.4998L18.8333 13.1665",stroke:"#1E2121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M26.498 15.9999C26.498 22.6273 21.1255 27.9999 14.498 27.9999C7.87063 27.9999 2.49805 22.6273 2.49805 15.9999C2.49805 9.37246 7.87063 3.99988 14.498 3.99988
3062C21.1255 3.99988 26.498 9.37246 26.498 15.9999Z",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"2 5"})]}))};m2.propTypes={color:ze().string.isRequired};const f2=m2,g2=["color"],h2=e=>{let{color:t}=e,n=(0,A.default)(e,g2);return(0,X.jsx)(Wu.default,Object.assign({width:24,height:24,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{children:(0,X.jsx)(Wu.Path,{d:"M5.33301 21.3334L5.33301 22.6667C5.33301 24.8758 7.12387 26.6667 9.33301 26.6667L22.6663 26.6667C24.8755 26.6667 26.6663 24.8758 26.6663 22.6667L26.6663 21.3334M21.333 10.6667L15.9997 5.33335M15.9997 5.33335L10.6663 10.6667M15.9997 5.33335L15.9997 21.3334",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}))};h2.propTypes={color:ze().string.isRequired};const _2=h2,x2=(0,Ge.default)(qe.default).withConfig({displayName:"raf_pill__PillContainer",componentId:"sc-zhrzs4-0"})(["align-self:flex-start;justify-content:center;align-items:center;background-color:",";padding:4px 10px;border-radius:16px;margin:-3px 0;margin-left:8px;"],Qe.GREEN_IRISH_BREEZE),y2=(0,Ge.default)(Be.default).withConfig({displayName:"raf_pill__PillLabel",componentId:"sc-zhrzs4-1"})(["font-size:12px;font-weight:600;color:",";"],Qe.TEXT_DARK),v2=({label:e=i18n.t("more.refer_a_friend.try_it")})=>(0,X.jsx)(x2,{testID:"more:rafPill",children:(0,X.jsx)(y2,{children:e})}),b2=({history:e,disabledOnboardingRequirements:t,requirement:n,path:i})=>()=>null!==t&&void 0!==t&&t.includes(n)?e.push(wi()):e.push(i),w2=({viewPermissions:e,country:t,history:n,canSeeWorkingLocationSetup:i,disabledOnboardingRequirements:o})=>{const{editProfile:a}=e,s="de"===t,r=[];return a&&r.push({key:"edit_public_profile",onClick:b2({history:n,disabledOnboardingRequirements:o,requirement:wc,path:"/provider/edit_public_profile"}),label:i18n.t("more.edit_public_profile.link")}),s&&a&&r.push({key:"edit_address",onClick:()=>n.push("/provider/edit_profile/address"),label:i18n.t("more.edit_location.link")}),i&&r.push({key:"update_work_area",onClick:b2({history:n,disabledOnboardingRequirements:o,requirement:Tc,path:"/provider/work_location"}),label:i18n.t("more.update_work_area.title")}),a&&r.push({key:"account_settings",onClick:()=>n.push("/provider/edit_profile"),label:i18n.t("more.account_settings.link")}),r},C2=({viewPermissions:e,featureFlags:t,country:n,history:i,onboarded:o,disabledOnboardingRequirements:a})=>{const{seePayouts:s,canSeeExpectedMonthlyIncome:r}=e,{verticalServices:l}=t,d="uk"===n,c=l,u=[];if(u.push({key:"customers",onClick:()=>i.push("/provider/customers"),label:i18n.t("more.customers.title")}),s){const e=r&&!o;u.push({key:"prices",onClick:b2({history:i,disabledOnboardingRequirements:a,requirement:Cc,path:e?"/provider/setup_my_prices":Ui()}),label:i18n.t("more.my_prices.link")})}return c&&u.push({key:"verticals",onClick:b2({history:i,disabledOnboardingRequirements:a,requirement:Ic,path:"/provider/services"}),label:i18n.t("services.title")}),d||u.push({key:"invoices",onClick:()=>i.push("/provider/invoices"),label:i18n.t("more.invoices")}),u},j2=({viewPermissions:e,history:t,handleOpenDisconnectExternalCalendarModal:n,handleOpenConnectExternalCalendarModal:i,handleOpenLearnExternalCalendarModal:o,shouldRenderConnectExternalCalendarEntry:a,shouldRenderDisconnectExternalCalendarEntry:s,providerCanSetAvailability:r,disabledOnboardingRequirements:l})=>{const{editWorkingHours:d,createHolidays:c}=e,u=[];return d&&u.push({key:"working_hours",onClick:b2({history:t,disabledOnboardingRequirements:l,requirement:jc,path:r?"/provider/working_hours":"/provider/faq/contact_form"}),label:i18n.t("working_hours.set_your_availability")}),c&&u.push({key:"holidays",onClick:()=>t.push("/provider/holidays"),label:i18n.t("holidays.title")}),u},I2=({country:e,history:t,isFreelance:n})=>{const i=[];return n&&["de","ie","it","uk"].includes(e)&&i.push({key:"reliability_metrics",onClick:()=>t.push("/provider/reliability_metrics"),label:i18n.t("more.reliability_metrics")}),i.push({key:"ratings",onClick:()=>t.push("/provider/ratings"),label:i18n.t("ratings.menu")}),i},T2=(e,t,n)=>{var i,o,a;const{settings:s,locale:r,chatTranslationLanguage:l,country:d,countryConfig:c,currentUser:u,history:p,hideDeactivateOption:m,setAppLanguageModalOpened:f,setChatTranslationModalOpened:g,setShowDeactivateAccountModal:h,setShowDeleteAccountModal:_,handleOpenDisconnectExternalCalendarModal:x,handleOpenConnectExternalCalendarModal:y,handleOpenLearnExternalCalendarModal:v,shouldRenderConnectExternalCalendarEntry:b,shouldRenderDisconnectExternalCalendarEntry:w,disabledOnboardingRequirements:C}=e,j=null===s||void 0===s||null===(i=s.viewPermissions)||void 0===i?void 0:i.canSeeWorkingLocationSetup,I=null===s||void 0===s||null===(o=s.viewPermissions)||void 0===o?void 0:o.canSeeResolutionCenter,T=null===s||void 0===s||null===(a=s.viewPermissions)||void 0===a?void 0:a.canSeeReferAFriend,{canChangePrices:E,editProfile:N,editWorkingHours:k,seeTransfers:R}=(null===s||void 0===s?void 0:s.viewPermissions)||{},S=!E&&!N,{limitAppPendingDeletion:A,isFreelance:P,onboarded:D}=u,{canDeactivateAccount:M,providerCanSetAvailability:O,country:{multiLanguage:z}}=c,L=(e=>{const{workStatus:t,isAgencyCleaner:n,viewPermissions:{editNotificationPreferences:i,seeTermsLink:o},multiLanguage:a,locale:s,chatTranslationLanguage:r,setAppLanguageModalOpened:l,setChatTranslationModalOpened:d,setShowDeactivateAccountModal:c,canDeactivateAccount:u,hideDeactivateOption:p,setShowDeleteAccountModal:m,limitAp
3062pPendingDeletion:f}=e,g=[];return a&&g.push({key:"app-language",onClick:()=>l(!0),rightLabel:s?i18n.t(`language_list.${s}`):"",label:i18n.t("more.change_language")}),g.push({key:"chat-language",onClick:()=>d(!0),rightLabel:F1[r]?i18n.t(`language_settings.chat_languages.${F1[r]}`):i18n.t("language_settings.select_empty_value"),label:i18n.t("more.message_translation_language.heading")}),i&&g.push({key:"notifications-settings",url:"/provider/notification_settings",label:i18n.t("more.notifications_settings.title")}),o&&(g.push({key:"privacy",urlExternal:i18n.t("privacy.url"),label:i18n.t("privacy.title")}),g.push({key:"provider_terms",urlExternal:i18n.lookup("provider_terms.url")?i18n.t("provider_terms.url"):bi("provider_terms"),label:i18n.t("provider_terms.title")})),n||!u||!t||[xo.leaver,xo.trial].includes(t)||p||g.push({key:"deactivate_account",onClick:()=>c(!0),label:i18n.t("more.account.deactivate")}),n||f||!t||t===xo.trial||g.push({key:"delete_account",onClick:()=>m(!0),label:i18n.t("more.account.delete_account")}),g})({workStatus:t,isAgencyCleaner:S,viewPermissions:(null===s||void 0===s?void 0:s.viewPermissions)||{},country:d,multiLanguage:z,locale:r,chatTranslationLanguage:l,setAppLanguageModalOpened:f,setChatTranslationModalOpened:g,setShowDeactivateAccountModal:h,canDeactivateAccount:M,hideDeactivateOption:m,setShowDeleteAccountModal:_,limitAppPendingDeletion:A}),q={viewPermissions:(null===s||void 0===s?void 0:s.viewPermissions)||{},featureFlags:null===s||void 0===s?void 0:s.featureFlags,country:d,history:p,canSeeWorkingLocationSetup:j,isFreelance:P,handleOpenDisconnectExternalCalendarModal:x,handleOpenConnectExternalCalendarModal:y,handleOpenLearnExternalCalendarModal:v,shouldRenderConnectExternalCalendarEntry:b,shouldRenderDisconnectExternalCalendarEntry:w,onboarded:D,providerCanSetAvailability:O,disabledOnboardingRequirements:C},B=[],G=n||t;S||A||-1===["active","full"].indexOf(t)||B.push({title:i18n.t("more.work_status.title"),icon:(0,X.jsx)(f2,{color:Qe.TEXT_DARK}),items:[{key:"work_status",onClick:()=>p.push("/provider/work_status"),label:i18n.t(`more.work_status.status.${G}`)}]});if(S&&k&&!A&&B.push({title:i18n.t("more.profile"),icon:(0,X.jsx)(n2,{color:Qe.TEXT_DARK}),items:[{key:"working_hours",onClick:b2({history:p,disabledOnboardingRequirements:C,requirement:jc,path:O?"/provider/working_hours":"/provider/faq/contact_form"}),label:i18n.t("working_hours.set_your_availability")}]}),T){const e=fh(s.referralProgram.schemeTotalAmount,{withSymbol:!0,precision:0});B.push({title:i18n.t("more.referral_with_amount.title",{amount:e}),icon:(0,X.jsx)(a2,{color:Qe.TEXT_DARK}),items:[{key:"refer-a-friend",onClick:()=>p.push("/provider/refer_a_friend"),label:i18n.t("more.referral_with_amount.item.title",{amount:e}),tag:(0,X.jsx)(v2,{})}]})}if(E&&!A&&(B.push({title:i18n.t("more.profile"),icon:(0,X.jsx)(n2,{color:Qe.TEXT_DARK}),items:w2(q)}),B.push({title:i18n.t("more.income"),icon:(0,X.jsx)(J1,{color:Qe.TEXT_DARK}),items:C2(q)}),B.push({title:i18n.t("more.availabilities"),icon:(0,X.jsx)(V1,{color:Qe.TEXT_DARK}),items:j2(q)}),B.push({title:i18n.t("more.statistics"),icon:(0,X.jsx)(u2,{color:Qe.TEXT_DARK}),items:I2(q)})),R&&B.push({title:i18n.t("more.bank_transfers.title"),icon:(0,X.jsx)(_2,{color:Qe.TEXT_DARK}),items:[{key:"bank_transfers",onClick:()=>p.push("/provider/bank_transfers"),label:i18n.t("more.bank_transfers.title")},{key:"bank_details",onClick:b2({history:p,disabledOnboardingRequirements:C,requirement:bc,path:"/provider/bank_details"}),label:i18n.t("more.bank_details.title")}].filter(e=>e)}),"ch"===d)B.push({title:i18n.t("more.help.title"),icon:(0,X.jsx)(X1,{color:Qe.TEXT_DARK}),items:[{key:"provider-faq",onClick:()=>p.push("/provider/faq/contact_form"),label:i18n.t("more.contact_helpling.menu")}],isVisible:!0});else if(!u.agency&&I){const e=[{key:"resolution_center",onClick:()=>p.push(Mi()),label:i18n.t("resolution_center.report_a_problem")}];c.showCommunityGuidelinesMenuItem&&e.push({key:"community_guidelines",urlExternal:i18n.t("more.community_guidelines.url"),label:i18n.t("more.community_guidelines.title")}),B.push({title:i18n.t("more.help.title"),icon:(0,X.jsx)(X1,{color:Qe.TEXT_DARK}),items:e,isVisible:!0})}return L.length&&B.push({title:i18n.t("more.settings"),icon:(0,X.jsx)(l2,{color:Qe.TEXT_DARK}),items:L}),B},E2=xt`
3063  mutation providerUpdateEmail($email: String!, $otp: String!) {
3064    updateEmail(email: $email, otp: $otp) {
3065      success
3066      errors {
3067        email {
3068          code
3069          message
3070        }
3071      }
3072    }
3073  }
3074`,N2=xt`
3075  mutation providerUpdateMobile($mobile: String!, $otp: String!) {
3076    updateMobile(mobile: $mobile, otp: $otp) {
3077      success
3078      mobile
3079      extendedErrors {
3080        code
3081        message
3082      }
3083      errors {
3084        mobile
3085      }
3086    }
3087  }
3088`,k2=_t.gql`
3089  mutation providerUpdateAddress($town: String!, $postcode: String!, $street: String!) {
3090    providerUpdateAddress(town: $town, postcode: $postcode, street: $street) {
3091      success
3092      errors {
3093        code
3094      }
3095    }
3096  }
3097`,R2=()=>{var e;const[t,{data:n}]=(0,js.useMutation)(k2);return{providerUpdateAddress:({town:e,postcode:n,street:i})=>t({variables:{town:e,postcode:n,street:i}}),error:null===n||void 0===n||null===(e=n.providerUpdateAddress)||void 0===e?void 0:e.errors,data:n}},S2=_t.gql`
3098  query eventShortNoticeCancellationFeeDetails {
3099    currentProvider {
3100      id
3101      eventsShortNoticeCancellationFeeDetails {
3102        customerName
3103        fee
3104        starttime
3105      }
3106    }
3107  }
3108`,A2=()=>{var e;const{data:t,loading:n}=(0,Is.useQuery)(S2);return{cancellationFee:null===t||void 0===t||null===(e=t.currentProvider)||void 0===e?void 0:e.eventsShortNoticeCancellationFeeDetails,loading:n}},P2=_t.gql`
3109  query postcodeIsInNewMetro($postcode: String!) {
3110    currentProvider {
3111      id
3112      postcodeIsInNewMetro(postcode: $postcode)
3113    }
3114  }
3115`,D2=xt`
3116  query canChangeMetro($postcode: String!) {
3117    canChangeMetro(postcode: $postcode) {
3118      allowed
3119      message
3120    }
3121  }
3122`,M2=_t.gql`
3123  query countries {
3124    countries {
3125      flag
3126      name
3127      value
3128    }
3129  }
3130`,O2=()=>{const{data:e,error:t,loading:n}=(0,Is.useQuery)(M2);return{countries:null===e||void 0===e?void 0:e.countries.map(e=>({label:e.name,value:e.value,flag:e.flag})),error:t,loading:n}},z2=xt`
3131  mutation updateBirthplace($birthCountry: String!, $birthPlace: String!) {
3132    updateBirthplace(birthCountry: $birthCountry, birthPlace: $birthPlace) {
3133      success
3134      errors {
3135        code
3136        message
3137      }
3138    }
3139  }
3140`,L2=xt`
3141  mutation updateDob($dob: Date!) {
3142    updateDob(dob: $dob) {
3143      success
3144      errors {
3145        code
3146        message
3147      }
3148    }
3149  }
3150`,q2=xt`
3151  mutation updatePassword($currentPassword: String!, $password: String!, $passwordConfirmation: String!) {
3152    updatePassword(
3153      currentPassword: $currentPassword
3154      password: $password
3155      passwordConfirmation: $passwordConfirmation
3156    ) {
3157      success
3158      errors {
3159        code
3160        message
3161        path
3162      }
3163    }
3164  }
3165`,B2=_t.gql`
3166  query deactivateAccountReasonCodes {
3167    currentProvider {
3168      id
3169      leaveReasons
3170    }
3171  }
3172`,G2=()=>{var e;const{data:t,error:n,loading:i}=(0,Is.useQuery)(B2);return{reasonCodes:(null===t||void 0===t||null===(e=t.currentProvider)||void 0===e?void 0:e.leaveReasons)||[],loading:i,error:n}},U2=_t.gql`
3173  mutation providerSetAsLeaver($reason: String!, $reasonText: String!) {
3174    providerSetAsLeaver(reason: $reason, reasonText: $reasonText) {
3175      success
3176      errors {
3177        code
3178        message
3179      }
3180    }
3181  }
3182`,$2="step_outstanding_nonconfirmed_past_events",F2="step_reason_selection",H2="step_download_invoices",W2="step_returned_keys",V2="step_active_customers",K2="step_short_notice_cancellation_fee",Y2="step_success",X2="step_failed",Z2=(0,Ge.default)(ts).withConfig({displayName:"customer_list_with_fee__ItemContainer",componentId:"sc-1upamb2-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:10px 0px 10px 10px;",""],e=>!e.borderless&&`\n    border-bottom-color: ${Qe.GRAY_4};\n    border-bottom-width: 1px;\n  `),Q2=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list_with_fee__CustomerDetails",componentId:"sc-1upamb2-1"})(["flex-direction:column;align-items:flex-start;"]),J2=(0,Ge.default)(Be.default).withConfig({displayName:"customer_list_with_fee__CustomerName",componentId:"sc-1upamb2-2"})(["font-weight:600;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),e3=(0,Ge.default)(Be.default).withConfig({displayName:"customer_list_with_fee__EventDetails",componentId:"sc-1upamb2-3"})(["font-weight:400;font-size:12px;line-height:16px;margin-top:4px;color:",";"],Qe.TEXT_MEDIUM),t3=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list_with_fee__RightArea",componentId:"sc-1upamb2-4"})(["flex-direction:row;align-items:center;padding:0 10px;"]),n3=(0,Ge.default)(Be.default).withConfig({displayName:"customer_list_with_fee__Price",componentId:"sc-1upamb2-5"})(["font-weight:500;font-size:13px;line-height:16px;padding-bottom:3px;"]);const i3=function({event:e,isLastItem:t,showPerHour:n,seePayouts:i,showPrice:o}){return(0,X.jsxs)(Z2,{borderless:t,children:[(0,X.jsxs)(Q2,{children:[(0,X.jsx)(J2,{children:e.customerName}),(0,X.jsx)(e3,{children:(a=e.starttime,`${C.DateTime.fromISO(a).toFormat("dd.MM.yyyy")}
3182 - ${C.DateTime.fromISO(a).toLocaleString(C.DateTime.TIME_SIMPLE)}`)})]}),i&&o&&e.fee&&(0,X.jsx)(t3,{children:(0,X.jsxs)(n3,{children:[fh(e.fee,{withSymbol:!0})," ",n&&i18n.t("customers.customers_content.hr")]})})]});var a},o3=(0,Ge.default)(qe.default).withConfig({displayName:"outstanding_nonconfirmed_past_events__CustomerList",componentId:"sc-wxqinz-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4);function a3({unconfirmedEvents:e,handleContinue:t,onClose:n}){var i,o;const{session:{settings:a}}=lt(),s=null===a||void 0===a||null===(i=a.viewPermissions)||void 0===i?void 0:i.seePayouts,r=null===a||void 0===a||null===(o=a.featureFlags)||void 0===o?void 0:o.hidePricesFromProvider,l=[...e].map(e=>{var t,n;return{starttime:null===e||void 0===e||null===(t=e.details)||void 0===t?void 0:t.startTime,customerName:null===e||void 0===e||null===(n=e.customer)||void 0===n?void 0:n.name,fee:null===e||void 0===e?void 0:e.relationship.customerRecurringPrice}});return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.outstanding.events.title"),primaryButtonTitle:i18n.t("account.deactivate.go.to.dashboard"),primaryButtonClick:t,secondaryButtonTitle:i18n.t("account.deactivate.confirmation.no"),secondaryButtonClick:n,warning:i18n.t("account.deactivate.cancel.outstanding.events.warning"),children:(0,X.jsx)(o3,{children:l.map((e,t)=>(0,X.jsx)(i3,{event:e,isLastItem:l.length-1===t,seePayouts:s,showPerHour:!0,showPrice:!r},e.customerName))})})}a3.propTypes={unconfirmedEvents:qc.default.array,handleContinue:qc.default.func,onClose:qc.default.func};const s3=a3,r3=e=>(0,X.jsxs)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 44 44"},e,{children:[(0,X.jsx)(Wu.Circle,{cx:22,cy:22,r:20,fill:Qe.GREEN_FROSTY_GREEN,stroke:Qe.WHITE,strokeWidth:3.504}),(0,X.jsxs)(Wu.G,{clipPath:"url(#prefix__a)",children:[(0,X.jsx)(Wu.Path,{fill:Qe.GREEN_SUMMER_GRASS,d:"M27.76 28.252a.371.371 0 0 0-.516 0l-.837.815v-4.12a.36.36 0 0 0-.365-.355.36.36 0 0 0-.365.355v4.12l-.837-.816a.371.371 0 0 0-.515 0 .349.349 0 0 0 0 .503l1.46 1.422a.369.369 0 0 0 .515 0l1.46-1.422a.349.349 0 0 0 0-.503Z"}),(0,X.jsx)(Wu.Path,{fill:Qe.GRAY_0,d:"M26.042 22.103c-3.018 0-5.474 2.392-5.474 5.333 0 2.941 2.456 5.334 5.474 5.334 3.018 0 5.474-2.393 5.474-5.334 0-2.94-2.456-5.333-5.474-5.333Zm0 9.955c-2.616 0-4.744-2.073-4.744-4.622s2.128-4.622 4.744-4.622c2.616 0 4.744 2.073 4.744 4.622s-2.128 4.622-4.744 4.622Z"}),(0,X.jsx)(Wu.Path,{fill:Qe.GREEN_SUMMER_GRASS,d:"M20.933 30.992h-7.298v-2.49a.36.36 0 0 0-.365-.355.36.36 0 0 0-.365.356v2.844a.36.36 0 0 0 .365.356h7.663a.36.36 0 0 0 .365-.356.36.36 0 0 0-.365-.355Z"}),(0,X.jsx)(Wu.Path,{fill:Qe.GRAY_0,d:"M13.27 26.725a.36.36 0 0 0-.365.356.36.36 0 0 0 .365.355h.004c.201 0 .363-.16.363-.355a.362.362 0 0 0-.367-.356Z"}),(0,X.jsx)(Wu.Path,{fill:Qe.GREEN_SUMMER_GRASS,d:"m28.125 17.23-5.839-5.69a.37.37 0 0 0-.258-.104H13.27a.36.36 0 0 0-.365.356v13.866a.36.36 0 0 0 .365.356.36.36 0 0 0 .365-.356v-13.51h8.028v5.332a.36.36 0 0 0 .365.356h5.474v3.2a.36.36 0 0 0 .365.356.36.36 0 0 0 .364-.356V17.48a.35.35 0 0 0-.106-.25Zm-5.732-.105V12.65l4.593 4.475h-4.593Z"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"prefix__a",children:(0,X.jsx)(Wu.Path,{fill:Qe.WHITE,d:"M11.263 11.436h21.895V32.77H11.263z"})})})]}));const l3=function({handleContinue:e,onClose:t}){return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.downloaded.invoice.title"),icon:(0,X.jsx)(r3,{width:95,height:95}),description:i18n.t("account.deactivate.downloaded.invoice.description"),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:e,primaryButtonTestID:"continue-from-invoice-dowloaded",secondaryButtonTitle:i18n.t("account.deactivate.go.to.download.invoices"),secondaryButtonClick:t,secondaryButtonEventAction:"contact customer",secondaryButtonTestID:"go-to-download-invoice"})},d3=({width:e=95,height:t=95})=>(0,X.jsxs)(Wu.default,{width:e,height:t,viewBox:"0 0 99 102",fill:"none",children:[(0,X.jsx)(Wu.Ellipse,{cx:"49.5",cy:"50.7496",rx:"47.5",ry:"48.7496",fill:"#E0E9E7",stroke:"white",strokeWidth:"3.50355"}),(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1586_5116)",children:[(0,X.jsx)(Wu.Path,{d:"M44.287 42.5431C44.2323 43.3655 44.1995 44.2453 44.1995 45.2001C44.1995 49.6245 45.5201 52.2666 47.7328 52.2666C50.5214 52.2666 51.266 48.9347 51.266 46.9667C51.266 46.4783 50.8712 46.0835 50.3827 46.0835C49.8952 46.0835 49.4994 46.4783 49.4994 46.9667C49.4994 47.002 49.4235 50.5 47.7328 50.5C46.709 50.5 45.9661 48.2705 45.9661 45.2001C45.9661 34.9015 49.5806 33.7285 49.6937 33.6949C50.1602 33.5898 50.4595 33.1313 50.365 32.6596C50.2696 32.1817 49.8068 31.8709 49.3253 31.9671C49.1486 32.0024 48.5091 32.1711 47.7389 32.8301C47.7397 32.6791 47.7521 32.5271 47.7928 32.3761C47.9147 31.9203 48.2071 31.5396 48.6161 31.3029C49.025 31.0679 49.5003 31.0043 49.956 31.1271C50.4118 31.2491 50.7935 31.5414 51.0283 31.9504C51.5159 32.7931 51.2253 33.876 50.3818 34.3636C49.9596 34.6073 49.8156 35.148 50.0593 35.5702C50.2228 35.8537 50.5196 36.0119 50.8251 36.0119C50.9753 36.0119 51.1272 35.9739 51.2659 35.8936C52.9521 34.9184 53.5316 32.7534 52.5591 31.0672C52.0865 30.2492 51.3251 29.6654 50.4136 29.4207C49.4993 29.176 48.5489 29.3024 47.7327 29.7732C46.9147 30.2457 46.33 31.0071 46.0862 31.9196C45.8574 32.7729 45.9652 33.658 46.3812 34.4653C45.6233 35.6985 44.9149 37.5348 44.521 40.2652C43.1977 38.6814 42.4328 36.6648 42.4328 34.6005C42.4328 29.7299 46.3954 25.7674 51.2659 25.7674C56.1356 25.7674 60.099 29.73 60.099 34.6005C60.099 39.471 56.1356 43.4336 51.2659 43.4336C50.3057 43.4336 49.3632 43.2808 48.4622 42.9804C48.0003 42.8267 47.5003 43.0749 47.3448 43.5379C47.1903 44.0007 47.4402 44.5006 47.9031 44.6553C48.9843 45.016
31825 50.1158 45.2003 51.2658 45.2003C57.1107 45.2003 61.8656 40.4446 61.8656 34.6005C61.8656 28.7556 57.1107 24.0007 51.2658 24.0007C45.4209 24.0007 40.666 28.7556 40.666 34.6005C40.6663 37.6124 42.0186 40.5389 44.287 42.5431Z",fill:"#406B60"}),(0,X.jsx)(Wu.Path,{d:"M34.4829 57.5666H41.5494C42.5794 57.5666 44.3319 58.881 45.8776 60.0398C47.8156 61.4938 49.6458 62.8665 51.2658 62.8665H56.5657C57.9066 62.8665 58.5735 63.475 58.5912 63.491C58.7634 63.6632 58.9896 63.7498 59.2157 63.7498C59.4418 63.7498 59.6671 63.6632 59.8402 63.491C60.1846 63.1456 60.1846 62.5865 59.8402 62.242C59.7236 62.1245 58.6379 61.0998 56.5657 61.0998H51.2658C50.235 61.0998 48.4834 59.7854 46.9376 58.6266C44.9996 57.1726 43.1685 55.7999 41.5494 55.7999H34.4829C33.9953 55.7999 33.5996 56.1947 33.5996 56.6832C33.5996 57.1709 33.9953 57.5666 34.4829 57.5666Z",fill:"#406B60"}),(0,X.jsx)(Wu.Path,{d:"M61.7835 41.9505L70.6988 50.8658V54.0334H67.5312L67.1655 53.6677V51.3835C67.1655 50.895 66.7707 50.5002 66.2822 50.5002H65.399V49.6169C65.399 49.1284 65.0042 48.7336 64.5157 48.7336H62.2323L61.8657 48.3671V46.0837C61.8657 45.5952 61.4709 45.2004 60.9825 45.2004H58.6982L58.6125 45.1147C58.268 44.7693 57.7088 44.7693 57.3635 45.1147C57.0182 45.4601 57.0181 46.0184 57.3635 46.3637L57.708 46.7082C57.8732 46.8734 58.0975 46.967 58.3325 46.967H60.0991V48.7319C60.0991 48.9659 60.1918 49.1903 60.357 49.3564L61.2403 50.2406C61.4055 50.4066 61.6308 50.5003 61.8657 50.5003H63.6324V51.3836C63.6324 51.8711 64.0272 52.2669 64.5157 52.2669H65.399V54.0335C65.399 54.2676 65.4917 54.492 65.6577 54.658L66.541 55.5413C66.7062 55.7065 66.9305 55.8001 67.1655 55.8001H71.5821C72.0706 55.8001 72.4654 55.4044 72.4654 54.9168V50.5002C72.4654 50.2662 72.3717 50.0409 72.2066 49.8757L63.0325 40.7016C62.6871 40.3563 62.1289 40.3563 61.7835 40.7016C61.4382 41.0468 61.4382 41.6051 61.7835 41.9505Z",fill:"black"}),(0,X.jsx)(Wu.Path,{d:"M27.4165 71.258C27.4165 70.5275 26.8221 69.933 26.0916 69.933C25.3611 69.933 24.7666 70.5275 24.7666 71.258C24.7666 71.9884 25.3611 72.5829 26.0916 72.5829C26.8221 72.5829 27.4165 71.9884 27.4165 71.258Z",fill:"#406B60"}),(0,X.jsx)(Wu.Path,{d:"M29.1832 52.2666H23.8833C23.3957 52.2666 23 52.6614 23 53.1499C23 53.6374 23.3957 54.0332 23.8833 54.0332H29.1832C29.6699 54.0332 30.0664 54.4289 30.0664 54.9164V74.3493C30.0664 74.836 29.6699 75.2326 29.1832 75.2326H23.8833C23.3957 75.2326 23 75.6274 23 76.1159C23 76.6034 23.3957 76.9992 23.8833 76.9992H29.1832C30.6442 76.9992 31.8331 75.8102 31.8331 74.3492V54.9165C31.8331 53.4547 30.6442 52.2666 29.1832 52.2666Z",fill:"black"}),(0,X.jsx)(Wu.Path,{d:"M75.5252 61.0999C74.551 59.4119 72.3824 58.8342 70.7536 59.7776L60.5875 64.726C59.0064 65.5165 57.412 65.5165 53.9159 65.5165C50.4984 65.5165 45.2798 64.6535 45.2276 64.6447C44.7426 64.5643 44.2913 64.8902 44.2109 65.3708C44.1314 65.8522 44.4564 66.307 44.9369 66.3875C45.1569 66.4245 50.3508 67.2832 53.9158 67.2832C57.5833 67.2832 59.4241 67.2832 61.3683 66.3107L71.5821 61.3367C71.9901 61.1009 72.4663 61.0382 72.9221 61.16C73.3778 61.2819 73.7595 61.5743 73.9944 61.9833C74.2311 62.3923 74.2938 62.8683 74.1711 63.3242C74.0501 63.7791 73.7576 64.1607 73.3231 64.4116L61.3806 71.8447C61.3559 71.8606 58.8075 73.4664 53.0325 73.4664C48.025 73.4664 40.289 69.2035 40.1776 69.1426C40.0981 69.1028 38.1821 68.1666 34.4829 68.1666C33.9953 68.1666 33.5996 68.5614 33.5996 69.0498C33.5996 69.5374 33.9953 69.9331 34.4829 69.9331C37.6955 69.9331 39.3508 70.7051 39.3535 70.7051C39.6874 70.8906 47.5666 75.233 53.0325 75.233C59.4091 75.233 62.2384 73.3957 62.332 73.333L74.232 65.9264C75.0491 65.4547 75.6338 64.6924 75.8777 63.7809C76.1224 62.8691 75.9969 61.9169 75.5252 61.0999Z",fill:"#406B60"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1586_5116",children:(0,X.jsx)(Wu.Rect,{width:"53",height:"53",fill:"white",transform:"translate(23 24)"})})})]});const c3=function({handleContinue:e,onClose:t}){return(0,X.jsx)(Mq,{testID:"returned-key-checklist-container",title:i18n.t("account.deactivate.keys.returned.title"),icon:(0,X.jsx)(d3,{}),description:i18n.t("account.deactivate.keys.returned.description"),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:e,primaryButtonTestID:"continue-from-keys-returned",secondaryButtonTitle:i18n.t("account.deactivate.confirmation.no"),secondaryButtonClick:t,secondaryButtonEventAction:"close-modal",secondaryButtonTestID:"close-modal"})},u3=(0,Ge.default)(qe.default).withConfig({displayName:"active_customers_list__CustomerList",componentId:"sc-1kjx8me-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4);const p3=function({activeCustomers:e,loading:t,handleContinue:n,onClose:i}){var o,a;const{session:{settings:s}}=lt(),r=null===s||void 0===s||null===(o=s.viewPermissions)||void 0===o?void 0:o.seePayouts,l=null===s||void 0===s||null===(a=s.featureFlags)||void 0===a?void 0:a.hidePricesFromProvider;return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.active.customer.title"),warning:i18n.t("account.deactivate.active.customer.description"),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:n,secondaryButtonTitle:i18n.t("account.deactivate.confirmation.no"),secondaryButtonClick:i,showContinueTitle:i18n.t("account.deactivate.confirmation.title"),loading:t,children:(0,X.jsx)(u3,{children:e.map((t,n)=>(0,X.jsx)(dV,{customer:t,seePayouts:r,showPrice:!l,isLastItem:e.length-1===n},t.id))})})},m3=(0,Ge.default)(qe.default).withConfig({displayName:"fee_warning__CustomerList",componentId:"sc-12xgsih-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4),f3=(0,Ge.default)(Be.default).withConfig({displayName:"fee_warning__FeeTotal",componentId:"sc-12xgsih-1"})(["margin-top:20px;text-align:center;font-size:18px;color:",";font-weight:500;
3182"],Qe.GRAY_0);const g3=function({cancellationFee:e,loading:t,handleContinue:n,onClose:i}){var o,a;const{session:{settings:s}}=lt(),r=null===s||void 0===s||null===(o=s.viewPermissions)||void 0===o?void 0:o.seePayouts,l=null===s||void 0===s||null===(a=s.featureFlags)||void 0===a?void 0:a.hidePricesFromProvider,d=e.reduce((e,t)=>e+=t.fee,0),c=[...e].sort((e,t)=>new Date(e.starttime).getTime()-new Date(t.starttime).getTime());return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.cancellation.fee.title"),description:i18n.t("account.deactivate.cancellation.fee.description"),warning:(0,X.jsx)(f3,{children:i18n.t("account.deactivate.short.notice.fee.total",{total:fh(d,{withSymbol:!0})})}),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:n,secondaryButtonTitle:i18n.t("account.deactivate.confirmation.no"),secondaryButtonClick:i,showContinueTitle:i18n.t("account.deactivate.confirmation.title"),loading:t,children:(0,X.jsx)(m3,{children:c.map((e,t)=>(0,X.jsx)(i3,{event:e,isLastItem:c.length-1===t,seePayouts:r,showPrice:!l},e.customerName))})})},h3=(0,Ge.default)(pu.default).attrs({source:n(62290)}).withConfig({displayName:"success_screen__FailureInCircle",componentId:"sc-1xpo8nw-0"})(["width:95px;height:95px;"]),_3=({title:e,description:t,children:n,primaryButtonTitle:i,primaryButtonClick:o,primaryButtonEventAction:a,loading:s,success:r})=>(0,X.jsx)(Mq,{title:e,description:t,primaryButtonTitle:i,primaryButtonClick:o,primaryButtonEventAction:a,loading:s,icon:r?(0,X.jsx)(GD,{width:95,height:95}):(0,X.jsx)(h3,{}),children:n}),x3=(0,Ge.default)(qe.default).withConfig({displayName:"deactivate_account__Container",componentId:"sc-1lohiz0-0"})(["background-color:",";margin:50px 16px 20px 16px;flex:1;"],Qe.WHITE),y3=(0,Ge.default)(Be.default).withConfig({displayName:"deactivate_account__Title",componentId:"sc-1lohiz0-1"})(["margin-top:-35px;margin-bottom:35px;text-align:center;font-size:14px;color:",";font-weight:700;"],Qe.TEXT_DARK);function v3({onClose:e,isOpen:t}){const n=(0,Ks.useHistory)(),{isDesktop:i}=uu(),{isConnected:o}=(0,ta.useNetInfo)(),[a,s]=(0,K.useState)($2),[r,l]=(0,K.useState)([]),[d,c]=(0,K.useState)(!1),[u,p]=(0,K.useState)({reason:"",reasonText:""}),{events:{fetchUnconfirmedEvents:m,unconfirmedEvents:f,loading:g},customers:{fetchCustomers:h},analytics:{autoTrack:_},session:{currentUser:x}}=lt(),{loading:y,cancellationFee:v}=A2(),{saving:b,providerSetAsLeaver:w}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(U2);return{providerSetAsLeaver:({reason:t,reasonText:n})=>e({variables:{reason:t,reasonText:n}}),saving:t}})();(0,K.useEffect)(()=>{if(!o||!t)return;(async()=>{c(!0);const e=await m(),t=await h(VW);0===e.length&&s(H2),l(t),c(!1)})()},[o,t]);const C=async e=>{var t,n;const i=await w(e);null!==i&&void 0!==i&&null!==(t=i.data)&&void 0!==t&&null!==(n=t.providerSetAsLeaver)&&void 0!==n&&n.success?(_("Deactivated account successfully"),x.setWorkStatus(xo.leaver),s(Y2)):(_("Could not deactivate account successfully"),s(X2))},j=()=>{C(u)},I=()=>{e(a===Y2),s(0===f.length?H2:$2)},T=d&&y&&g;return(0,X.jsx)(zw,{isOpen:t,onClose:I,size:i?"normal":"big",displayCloseButton:!0,children:(0,X.jsxs)(x3,{children:[a!==Y2&&(0,X.jsx)(y3,{children:i18n.t("account.deactivate.title")}),T&&(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS}),!T&&f.length>0&&a===$2&&(0,X.jsx)(s3,{unconfirmedEvents:f,handleContinue:()=>{_("User clicked on go to dashboard","from deactivate account - oustanding non-confirmed events list"),n.push(wi())},onClose:()=>{_("User clicked on cancel deactivation","from deactivate account - oustanding non-confirmed events list"),I()}}),!T&&a===H2&&(0,X.jsx)(l3,{handleContinue:()=>{_("User clicked on continue","from deactivate account - download invoices screen"),s(W2),_("User is redirect to keys returned step")},onClose:()=>{_("User clicked on go to dowload ivoices","from deactivate account - download invoices screen"),n.push("/provider/invoices")}}),!T&&a===W2&&(0,X.jsx)(c3,{handleContinue:()=>{_("User clicked on continue","from deactivate account - keys returned screen"),s(F2),_("User is redirect to reasons selection step")},onClose:()=>{_("User clicked on cancel deactivation","from deactivate account - keys returned screen"),I()}}),!T&&a===F2&&(0,X.jsx)(iB,{disableSubmit:b,onConfirm:e=>{const t={reason:e.reasonCode,reasonText:e.comment};p(t),_("User clicked on continue","from deactivate account - reason screen"),r.length?(s(V2),_("User is redirect to active customers list step")):(_("Submit account deactivation"),C(t))},onClose:()=>{_("User clicked on cancel deactivation","from deactivate account - reason screen"),I()},useCancellationCodes:G2,type:Kq.DEACTIVATE_ACCOUNT,heading:i18n.t("account.deactivate.reason.selection.title")}),!T&&a===V2&&(0,X.jsx)(p3,{activeCustomers:r,loading:b,handleContinue:()=>{_("User clicked on continue","from deactivate account - active customers list screen"),v.length?(s(K2),_("User is redirect to short notice cancellation fee warning step")):(_("Submit account deactivation"),j())},onClose:()=>{_("User clicked on cancel deactivation","from deactivate account - active customers list screen"),I()}}),!T&&a===K2&&(0,X.jsx)(g3,{cancellationFee:v,loading:b,handleContinue:()=>{_("User clicked on continue","from deactivate account - fee warning screen"),_("Submit account deactivation"),j()},onClose:()=>{_("User clicked on cancel deactivation","from deactivate account - fee warning screen"),I()}}),a===X2&&(0,X.jsx)(_3,{title:i18n.t("account.deactivated.unsuccess.title"),description:i18n.t("account.deactivated.unsuccess.message"),primaryButtonEventAction:"close decative account modal from error screen",primaryButtonTitle:i18n.t("account.deactivated.result.confirmation"),primaryButtonClick:I}),a===Y2&&(0,X.jsx)(_3,{title:i18n.t("account.deactivated.success.title"),description:i18n.t("account.deactivated.success.description"),primaryButtonEventAction:"close deactivate account modal from success screen",primaryButtonTitle:i18n.t("account.deactivated.result.confirmation"),primaryButtonClick:I,success:!0})]})})}v3.propTypes={onClose:qc.default.func.isRequired,isOpen:qc.default.bool};const b3=v3,w3=xt`
3183  query fetchProviderDetailsForPreview {
3184    provider {
3185      documents
3186    }
3187    ratings(live: true, dateTimeOrder: DESC) {
3188      totalCount
3189      edges {
3190        node {
3191          customer
3192          total(precision: 1)
3193          comment
3194        }
3195      }
3196    }
3197    avgRating {
3198      total
3199    }
3200    stats {
3201      jobsDone
3202    }
3203  }     
3204`,C3=_t.default`
3205  query providerProfile {
3206    experience {
3207      experienceHeadline
3208      experienceDescription
3209    }
3210    currentProvider {
3211      id
3212      profile {
3213        ironingOk
3214        laundryOk
3215        petsOk
3216        windowsOk
3217      }
3218      slug
3219    }
3220  }
3221`,j3=()=>{const{data:e,error:t,loading:n,refetch:i}=(0,Is.useQuery)(C3,{notifyOnNetworkStatusChange:!0}),{experience:o,currentProvider:a}=e||{},{profile:s={},slug:r}=a||{};return{data:Object.assign({},s,{experience:{experienceHeadline:(null===o||void 0===o?void 0:o.experienceHeadline)||"",experienceDescription:(null===o||void 0===o?void 0:o.experienceDescription)||""},slug:r}),error:t,loading:n,refetch:i}},I3=_t.default`
3222  mutation providerUpdateProfile(
3223    $experienceHeadline: String
3224    $experienceDescription: String
3225    $windowsOk: Boolean
3226    $laundryOk: Boolean
3227    $ironingOk: Boolean
3228    $petsOk: Boolean
3229  ) {
3230    updateProfile(experienceHeadline: $experienceHeadline, experienceDescription: $experienceDescription) {
3231      success
3232      errors {
3233        experienceHeadline
3234        experienceDescription
3235        picture
3236      }
3237    }
3238    updateUserProfileAbilities(
3239      abilities: { windowsOk: $windowsOk, laundryOk: $laundryOk, ironingOk: $ironingOk, petsOk: $petsOk }
3240    ) {
3241      ironingOk
3242      laundryOk
3243      windowsOk
3244      petsOk
3245    }
3246  }
3247`,T3=_t.default`
3248  mutation providerUpdateProfilePicture($picture: Upload) {
3249    updateProfile(picture: $picture) {
3250      pictureUrl
3251      success
3252      errors {
3253        picture
3254      }
3255    }
3256  }
3257`,E3=(0,Ge.default)(qe.default).withConfig({displayName:"search__InputWrapper",componentId:"sc-j7u282-0"})(["flex-direction:row;align-items:center;border-radius:8px;background-color:",";padding:0 15px;"],Qe.WHITE),N3=(0,Ge.default)(Uc.default).withConfig({displayName:"search__Input",componentId:"sc-j7u282-1"})(["flex-grow:1;color:",";height:55px;font-size:13px;padding:0 40px;margin:0 -30px;"],Qe.TEXT_DARK),k3=({menuList:e,setResults:t,searchText:n,setSearchText:i})=>{const o=(0,Ks.useHistory)(),{data:a}=j3(),s=n=>{i(n),t(""===n?void 0:((e,t,n,i)=>{const o=[{key:"edit_your_public_profile",label:i18n.t("edit_profile.menu.edit_your_public_profile"),onClick:()=>n.push("/provider/edit_public_profile")},{key:"preview_public_profile",label:i18n.t("edit_profile.preview_public_profile_action"),onClick:()=>ru(Qi(i))},{key:"compare_profile",label:i18n.t("edit_profile.compaire_profile.action_button_text"),onClick:()=>n.push("/provider/compare_profile")},{key:"request_references",label:i18n.t("ratings.request.reference"),onClick:()=>n.push(Ki())},{key:"resolve_an_issue",label:i18n.t("resolution_center.faq.card.description"),onClick:()=>n.push(Mi())},{key:"annual_overview",label:i18n.t("edit_profile.menu.annual_overview"),onClick:()=>n.push("/provider/edit_profile/annual_overview")},{key:"long_term_relationship",label:i18n.t("reliability_metrics.content.long_term_relationship"),onClick:()=>n.push("/provider/long_term_relationships")},{key:"cancellation_with_reliability_impact",label:i18n.t("reliability_metrics.content.view_provider_driven_cancellations"),onClick:()=>n.push("/provider/provider_driven_cancellation")}],a=t.reduce((e,{title:t,items:n})=>[...e,...n.map(e=>Object.assign({},e,{title:t}))],[]);return[...a,...o].filter(({key:t,label:n,title:i})=>i18n.t(`more.search.item.${t}.keywords`).toLowerCase().includes(e.toLowerCase())||n.toLowerCase().includes(e.toLowerCase())||i&&i.toLowerCase().includes(e.toLowerCase()))})(n,e,o,a.slug))};return(0,X.jsxs)(E3,{children:[(0,X.jsx)(Pa.default,{name:"search",size:18}),(0,X.jsx)(N3,{placeholder:i18n.t("more.search.placeholder"),value:n,onChangeText:s,placeholderTextColor:Qe.GRAY_0}),!!n&&(0,X.jsx)(Da.default,{onPress:()=>s(""),children:(0,X.jsx)(Pa.default,{name:"close",size:18})})]})},R3=xt`
3258  query workStatus {
3259    workStatus {
3260      limitedToBidType
3261      workStatus
3262      workStatusBeforeFull
3263    }
3264  }
3265`,S3=()=>{const{data:e,error:t,refetch:n,loading:i}=(0,Is.useQuery)(R3,{context:{apiVersion:3}}),{limitedToBidType:o,workStatus:a,workStatusBeforeFull:s}=(null===e||void 0===e?void 0:e.workStatus)||{};return{limitedToBidType:o,workStatus:a,workStatusBeforeFull:s,error:t,refetch:n,loading:i}},A3=xt`
3266  mutation updateWorkStatus($limitedToBidType: BidTypeLimitations, $workStatus: WorkStatuses) {
3267    updateWorkStatus(limitedToBidType: $limitedToBidType, workStatus: $workStatus) {
3268      success
3269      errors {
3270        code
3271        message
3272      }
3273    }
3274  }
3275`,P3=(0,Ge.default)(Da.default).withConfig({displayName:"intercom_banner__Container",componentId:"sc-jbbthq-0"})(["background-color:",";flex-direction:row;padding:20px 16px;align-items:center;justify-content:space-between;margin-bottom:30px;boredr"],Qe.WHITE),D3=(0,Ge.default)(qe.default).withConfig({displayName:"intercom_banner__Content",componentId:"sc-jbbthq-1"})(["flex:1;"]),M3=(0,Ge.default)(Be.default).withConfig({displayName:"intercom_banner__Title",componentId:"sc-jbbthq-2"})(["font-size:15px;font-weight:700;line-height:20px;color:",";margin-bottom:5px;
3275"],Qe.GRAY_0),O3=(0,Ge.default)(Be.default).withConfig({displayName:"intercom_banner__Description",componentId:"sc-jbbthq-3"})(["font-size:13px;font-weight:600;line-height:18px;color:",";"],Qe.TEXT_MEDIUM),z3=(0,Ge.default)(Pa.default).withConfig({displayName:"intercom_banner__ArrowRightIcon",componentId:"sc-jbbthq-4"})(["margin-left:auto;"]),L3=(0,Ge.default)(qe.default).withConfig({displayName:"intercom_banner__IconWrapper",componentId:"sc-jbbthq-5"})(["margin-right:10px;background-color:",";align-items:center;justify-content:center;height:38px;width:38px;border-radius:19px;"],Qe.GREEN_FROSTY_GREEN),q3=()=>{const{session:{countryConfig:{shouldSeeIntercom:e}}}=lt(),{openIntercomPage:t}=Dm();return e?(0,X.jsxs)(P3,{onPress:t,children:[(0,X.jsx)(L3,{children:(0,X.jsx)(PV,{fill:Qe.GREEN_SUMMER_GRASS,width:20,height:20})}),(0,X.jsxs)(D3,{children:[(0,X.jsx)(M3,{children:i18n.t("intercom.chat_name")}),(0,X.jsx)(O3,{children:i18n.t("intercom.chat_description")})]}),(0,X.jsx)(z3,{name:"keyboard-arrow-right",size:18,color:Qe.CTA_DARK})]}):null},B3="step_contact_support",G3="step_download_invoices",U3="step_returned_keys",$3="step_active_customers",F3="step_short_notice_cancellation_fee",H3="step_confirm_deletion",W3="step_success",V3="step_failure";const K3=function({handleContinue:e,onClose:t}){return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.downloaded.invoice.title"),icon:(0,X.jsx)(r3,{width:95,height:95}),description:i18n.t("account.deactivate.downloaded.invoice.description"),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:e,primaryButtonTestID:"continue-from-invoice-dowloaded",secondaryButtonTitle:i18n.t("account.deactivate.go.to.download.invoices"),secondaryButtonClick:t,secondaryButtonEventAction:"contact customer",secondaryButtonTestID:"go-to-download-invoice"})};const Y3=function({handleContinue:e,onClose:t,loading:n}){return(0,X.jsx)(Mq,{testID:"returned-key-checklist-container",title:i18n.t("account.deactivate.keys.returned.title"),icon:(0,X.jsx)(d3,{}),description:i18n.t("delete_account.checklist_returned_keys.description"),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:e,primaryButtonTestID:"continue-from-keys-returned",secondaryButtonTitle:i18n.t("delete_account.returned_keys.no"),secondaryButtonClick:t,secondaryButtonEventAction:"close-modal",secondaryButtonTestID:"close-modal",loading:n})},X3=(0,Ge.default)(qe.default).withConfig({displayName:"active_customers_list__CustomerList",componentId:"sc-clspp7-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4);const Z3=function({activeCustomers:e,loading:t,handleContinue:n,onClose:i}){var o,a;const{session:{settings:s}}=lt(),r=null===s||void 0===s||null===(o=s.viewPermissions)||void 0===o?void 0:o.seePayouts,l=null===s||void 0===s||null===(a=s.featureFlags)||void 0===a?void 0:a.hidePricesFromProvider;return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.active.customer.title"),warning:i18n.t("delete_account.active_customers_list.warning"),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:n,secondaryButtonTitle:i18n.t("delete_account.active_customers_list.no"),secondaryButtonClick:i,showContinueTitle:i18n.t("account.deactivate.confirmation.title"),loading:t,children:(0,X.jsx)(X3,{children:e.map((t,n)=>(0,X.jsx)(dV,{customer:t,seePayouts:r,showPrice:!l,isLastItem:e.length-1===n},t.id))})})},Q3=(0,Ge.default)(ts).withConfig({displayName:"customer_list_with_fee__ItemContainer",componentId:"sc-irx153-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:10px 0px 10px 10px;",""],e=>!e.borderless&&`\n    border-bottom-color: ${Qe.GRAY_4};\n    border-bottom-width: 1px;\n  `),J3=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list_with_fee__CustomerDetails",componentId:"sc-irx153-1"})(["flex-direction:column;align-items:flex-start;"]),e8=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list_with_fee__CustomerName",componentId:"sc-irx153-2"})(["font-weight:600;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),t8=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list_with_fee__EventDetails",componentId:"sc-irx153-3"})(["font-weight:400;font-size:12px;line-height:16px;margin-top:4px;color:",";"],Qe.TEXT_MEDIUM),n8=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list_with_fee__RightArea",componentId:"sc-irx153-4"})(["flex-direction:row;align-items:center;padding:0 10px;"]),i8=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list_with_fee__Price",componentId:"sc-irx153-5"})(["font-weight:500;font-size:13px;line-height:16px;padding-bottom:3px;"]);const o8=function({event:e,isLastItem:t,showPerHour:n,seePayouts:i,showPrice:o}){return(0,X.jsxs)(Q3,{borderless:t,children:[(0,X.jsxs)(J3,{children:[(0,X.jsx)(e8,{children:e.customerName}),(0,X.jsx)(t8,{children:(a=e.starttime,`${C.DateTime.fromISO(a).toFormat("dd.MM.yyyy")}
3275 - ${C.DateTime.fromISO(a).toLocaleString(C.DateTime.TIME_SIMPLE)}`)})]}),i&&o&&e.fee&&(0,X.jsx)(n8,{children:(0,X.jsxs)(i8,{children:[fh(e.fee,{withSymbol:!0})," ",n&&i18n.t("customers.customers_content.hr")]})})]});var a},a8=(0,Ge.default)(qe.default).withConfig({displayName:"fee_warning__CustomerList",componentId:"sc-1xeupck-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4),s8=(0,Ge.default)(rf.default).withConfig({displayName:"fee_warning__FeeTotal",componentId:"sc-1xeupck-1"})(["margin-top:20px;text-align:center;font-size:18px;color:",";font-weight:500;"],Qe.GRAY_0);const r8=function({cancellationFee:e,handleContinue:t,onClose:n}){var i,o;const{session:{settings:a}}=lt(),s=null===a||void 0===a||null===(i=a.viewPermissions)||void 0===i?void 0:i.seePayouts,r=null===a||void 0===a||null===(o=a.featureFlags)||void 0===o?void 0:o.hidePricesFromProvider,l=e.reduce((e,t)=>e+=t.fee,0),d=[...e].sort((e,t)=>new Date(e.starttime).getTime()-new Date(t.starttime).getTime());return(0,X.jsx)(Mq,{title:i18n.t("account.deactivate.cancellation.fee.title"),description:i18n.t("account.deactivate.cancellation.fee.description"),warning:(0,X.jsx)(s8,{children:i18n.t("account.deactivate.short.notice.fee.total",{total:fh(l,{withSymbol:!0})})}),primaryButtonTitle:i18n.t("account.deactivate.confirmation.yes"),primaryButtonClick:t,secondaryButtonTitle:i18n.t("delete_account.fee_warning.no"),secondaryButtonClick:n,showContinueTitle:i18n.t("account.deactivate.confirmation.title"),children:(0,X.jsx)(a8,{children:d.map((e,t)=>(0,X.jsx)(o8,{event:e,isLastItem:d.length-1===t,seePayouts:s,showPrice:!r},e.customerName))})})},l8=(0,Ge.default)(Pa.default).attrs({color:Qe.CTA_GREEN,size:20}).withConfig({displayName:"contact_support_content__CustomIcon",componentId:"sc-i477q-0"})([""]),d8=(0,Ge.default)(Be.default).withConfig({displayName:"contact_support_content__Title",componentId:"sc-i477q-1"})(["font-weight:600;color:",";font-size:16px;align-self:center;margin-bottom:20px;text-align:center;"],Qe.TEXT_DARK),c8=(0,Ge.default)(qe.default).withConfig({displayName:"contact_support_content__Bar",componentId:"sc-i477q-2"})(["height:1px;background-color:gray;flex:1;margin:0px 20px;opacity:0.3;"]),u8=(0,Ge.default)(qe.default).withConfig({displayName:"contact_support_content__Row",componentId:"sc-i477q-3"})(["display:flex;flex-direction:row;align-items:center;"]),p8=(0,Ge.default)(ts).withConfig({displayName:"contact_support_content__ContactButton",componentId:"sc-i477q-4"})(["border:1px solid ",";border-radius:45px;padding:15px;width:70%;max-width:300px;margin:16px 20px 30px 20px;display:flex;align-items:center;justify-content:center;align-self:center;"],Qe.GREEN_IRISH_BREEZE),m8=(0,Ge.default)(Be.default).withConfig({displayName:"contact_support_content__ContactButtonText",componentId:"sc-i477q-5"})(["color:",";"],Qe.GREEN_GROWN_UP_GREEN),f8=(0,Ge.default)(Be.default).withConfig({displayName:"contact_support_content__Paragraph",componentId:"sc-i477q-6"})(["margin:16px;text-align:center;"]),g8=(0,Te.observer)(({title:e})=>{const{session:{providerBelongsToHMG:t,countryConfig:{showEmailSupport:n}}}=lt(),i=t?i18n.t("support.phone.bat_number"):i18n.t("support.phone.number"),o=t?i18n.t("support.email.bat_address"):i18n.t("support.email.address");return(0,X.jsxs)(X.Fragment,{children:[e&&(0,X.jsx)(d8,{children:e}),(0,X.jsxs)(u8,{children:[(0,X.jsx)(c8,{}),(0,X.jsx)(l8,{name:"call"}),(0,X.jsx)(c8,{})]}),(0,X.jsx)(f8,{children:t?i18n.t("support.phone.bat_text"):i18n.t("support.phone.text")}),(0,X.jsx)(p8,{onPress:()=>bs.default.openURL(`tel:${i}`),children:(0,X.jsx)(m8,{children:i})}),n&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(u8,{children:[(0,X.jsx)(c8,{}),(0,X.jsx)(l8,{name:"email-outline",set:"MaterialCommunityIcons"}),(0,X.jsx)(c8,{})]}),(0,X.jsx)(f8,{children:i18n.t("support.email.text")}),(0,X.jsx)(p8,{onPress:()=>{const e="mailto:"+o;bs.default.openURL(e)},children:(0,X.jsx)(m8,{children:i18n.t("support.email.cta")})})]})]})}),h8=({handleContinue:e,onClose:t,loading:n})=>(0,X.jsx)(Mq,{primaryButtonTitle:i18n.t("delete_account.contact_support.primary_button"),primaryButtonClick:e,secondaryButtonTitle:i18n.t("delete_account.contact_support.secondary_button"),secondaryButtonClick:()=>t(!1),showContinueTitle:i18n.t("delete_account.contact_support.continue_title"),loading:n,children:(0,X.jsx)(g8,{title:i18n.t("delete_account.contact_support.title")})}),_8=(0,Ge.default)(oY).attrs(e=>Object.assign({size:20,labelStyle:{fontSize:14,fontWeight:400,color:e.labelColor}}
3275,e)).withConfig({displayName:"confirm_deletion__CheckBox",componentId:"sc-13ll7t6-0"})(["margin-top:16px;"]),x8=({handleSubmit:e,onClose:t,loading:n})=>{const[i,o]=(0,K.useState)(!1);return(0,X.jsx)(Mq,{title:i18n.t("delete_account.confirm_deletion.title"),icon:(0,X.jsx)(Pa.default,{name:"alert-circle",set:"MaterialCommunityIcons",color:Qe.CRIMSON_1,size:95}),description:i18n.t("delete_account.confirm_deletion.description"),primaryButtonTitle:i18n.t("delete_account.confirm_deletion.primary_button"),primaryButtonClick:e,primaryButtonDisabled:!i,secondaryButtonTitle:i18n.t("delete_account.confirm_deletion.secondary_button"),secondaryButtonClick:t,showContinueTitle:i18n.t("delete_account.confirm_deletion.continue_title"),loading:n,children:(0,X.jsx)(_8,{label:i18n.t("delete_account.confirm_deletion.checkbox_label"),checked:i,onChange:()=>o(!i),labelColor:i?Qe.CRIMSON_1:Qe.GRAY_2})})},y8=(0,Ge.default)(pu.default).attrs({source:n(62290)}).withConfig({displayName:"failure__FailureInCircle",componentId:"sc-1yp6xdf-0"})(["width:95px;height:95px;"]),v8=({primaryButtonClick:e,primaryButtonEventAction:t})=>(0,X.jsx)(Mq,{title:i18n.t("delete_account.failure.title"),description:i18n.t("delete_account.failure.description"),primaryButtonTitle:i18n.t("delete_account.failure.primary_button"),primaryButtonClick:e,primaryButtonEventAction:t,icon:(0,X.jsx)(y8,{}),children:(0,X.jsx)(g8,{})}),b8=xt`
3276  mutation createDeletionRequest {
3277    createDeletionRequest {
3278      success
3279      errors {
3280        code
3281        message
3282      }
3283    }
3284  }
3285`,w8=(0,Ge.default)(qe.default).withConfig({displayName:"delete_account__Container",componentId:"sc-19wdfy7-0"})(["background-color:",";margin:50px 16px 20px 16px;flex:1;"],Qe.WHITE),C8=(0,Ge.default)(Be.default).withConfig({displayName:"delete_account__Title",componentId:"sc-19wdfy7-1"})(["margin-top:-35px;margin-bottom:35px;text-align:center;font-size:14px;color:",";font-weight:700;"],Qe.TEXT_DARK),j8=({onClose:e,isOpen:t})=>{const n=lu(),{isDesktop:i}=uu(),{customers:{fetchCustomers:o},analytics:{autoTrack:a},session:{fetchCurrentUserLimitAppPendingDeletion:s}}=lt(),{loading:r,cancellationFee:l}=A2(),{createDeletionRequest:d,loading:c}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(b8,{context:{apiVersion:3}});return{createDeletionRequest:()=>e(),loading:t}})(),[u,p]=(0,K.useState)(B3),[m,f]=(0,K.useState)([]),[g,h]=(0,K.useState)(!1),_=()=>{a("User clicked on close",`from delete account - on ${u}`),e(),u===W3&&n(wi())},x=g&&r;return(0,X.jsx)(zw,{isOpen:t,onClose:_,size:i?"normal":"big",displayCloseButton:!0,children:(0,X.jsxs)(w8,{children:[u!==W3&&(0,X.jsx)(C8,{children:i18n.t("delete_account.title")}),x&&(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS}),u===B3&&(0,X.jsx)(h8,{handleContinue:()=>{a("User clicked on continue","from delete account - contact support screen"),p(G3)},onClose:e,loading:g}),!x&&u===G3&&(0,X.jsx)(K3,{handleContinue:()=>{a("User clicked on yes, please proceed","from delete account - download invoices screen"),p(U3)},onClose:()=>{a("User clicked on go to dowload ivoices","from delete account - download invoices screen"),n("/provider/invoices")}}),!x&&u===U3&&(0,X.jsx)(Y3,{handleContinue:async()=>{a("User clicked on yes, please proceed","from delete account - keys returned screen"),h(!0);const e=await o(VW);null!==e&&void 0!==e&&e.length?(f(e),p($3)):null!==l&&void 0!==l&&l.length?p(F3):p(H3),h(!1)},onClose:()=>{a("User clicked on no, abort profile deletion","from delete account - keys returned screen"),_()},loading:g}),!x&&u===$3&&(0,X.jsx)(Z3,{activeCustomers:m,loading:r,handleContinue:()=>{a("User clicked on yes, please proceed","from delete account - active customers list screen"),null!==l&&void 0!==l&&l.length?p(F3):(a("Submit account deactivation"),p(H3))},onClose:()=>{a("User clicked on no, abort profile deletion","from delete account - active customers list screen"),_()}}),!x&&u===F3&&(0,X.jsx)(r8,{cancellationFee:l,handleContinue:()=>{a("User clicked on yes, please proceed","from delete account - fee warning screen"),p(H3)},onClose:()=>
3285{a("User clicked on no, abort profile deletion","from delete account - fee warning screen"),_()}}),!x&&u===H3&&(0,X.jsx)(x8,{handleSubmit:async()=>{var e;a("User clicked on delete","from delete account - confirm deletion screen");null!==(e=(await d()).data)&&void 0!==e&&e.createDeletionRequest.success?(a("Account deletion request created successfully","from delete account - confirm deletion screen"),await s(),p(W3)):(a("Account deletion request failed","from delete account - confirm deletion screen"),p(V3))},onClose:_,loading:c}),u===V3&&(0,X.jsx)(v8,{primaryButtonClick:_,primaryButtonEventAction:"Alright! on account deletion failure screen"}),u===W3&&(0,X.jsx)(_3,{title:i18n.t("delete_account.success.title"),description:i18n.t("delete_account.success.description"),primaryButtonTitle:i18n.t("account.deactivated.result.confirmation"),primaryButtonClick:_,loading:c,success:!0})]})})},I8=()=>{const{externalCalendar:{externalCalendarId:e,setExternalCalendarId:t}}=lt(),{destroyExternalCalendarSync:n}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(ar,{context:{apiVersion:3}});return{destroyExternalCalendarSync:e,loading:t}})();return{unsyncCalendar:async()=>{if(!e)return!1;try{var i,o;const a=await ur(e);
3285a&&await Zs.deleteCalendarAsync(a);const s=await n();return!(null===s||void 0===s||null===(i=s.data)||void 0===i||null===(o=i.destroyExternalCalendarSync)||void 0===o||!o.success)&&(t(""),await Ne.default.removeItem(rr),!0)}catch(ca){return console.log("Error unsyncing calendar",ca),le(ca),!1}}}},T8=(0,Ge.default)(qe.default).withConfig({displayName:"disconnect_external_calendar__Container",componentId:"sc-17k0qti-0"})(["padding:40px 20px 16px 20px;"]),E8=(0,Ge.default)(Be.default).withConfig({displayName:"disconnect_external_calendar__Title",componentId:"sc-17k0qti-1"})(["font-size:18px;font-weight:700;color:",";"],Qe.TEXT_DARK),N8=(0,Ge.default)(Be.default).withConfig({displayName:"disconnect_external_calendar__Description",componentId:"sc-17k0qti-2"})(["font-size:14px;font-weight:500;color:",";margin-top:16px;"],Qe.TEXT_DARK),k8=(0,Ge.default)(qe.default).withConfig({displayName:"disconnect_external_calendar__ButtonSection",componentId:"sc-17k0qti-3"})(["margin-top:25px;margin-bottom:15px;justify-content:space-between;align-self:center;"]),R8=(0,Ge.default)(Be.default).withConfig({displayName:"disconnect_external_calendar__Hint",componentId:"sc-17k0qti-4"})(["color:",";font-size:14px;margin:8px auto;"],Qe.TEXT_LIGHT);const S8=function({isOpen:e,handleClose:t}){const{toast:{showToastMessage:n},analytics:{autoTrack:i}}=lt(),{unsyncCalendar:o}=I8();return(0,X.jsx)(zw,{size:"xsmall",displayCloseButton:!0,testID:"disconnect-external-calendar-modal",isOpen:e,onClose:()=>{i("User closed disconnect personal calendar modal","from disconnect personal calendar modal"),t()},children:(0,X.jsxs)(T8,{children:[(0,X.jsx)(E8,{children:i18n.t("connect_calendar.disconnect_calendar_modal.title")}),(0,X.jsx)(N8,{children:i18n.t("connect_calendar.disconnect_calendar_modal.description")}),(0,X.jsx)(k8,{children:(0,X.jsx)(ms,{onPress:async()=>{const e=await o();n(e?{message:i18n.t("connect_calendar.disconnect_calendar_modal.success"),type:"success"}:{message:i18n.t("provider.generic.error"),type:"error"}),t()},eventAction:"disconnect personal calendar button",eventLabel:"from disconnect personal calendar modal",children:i18n.t("connect_calendar.disconnect_calendar_modal.cta_disconnect")})}),(0,X.jsx)(R8,{children:i18n.t("connect_calendar.disconnect_calendar_modal.hint")})]})})},A8=["width","height"],P8=e=>{let{width:t=343,height:n=127}=e,i=(0,A.default)(e,A8);return(0,X.jsxs)(Wu.default,Object.assign({width:t,height:n,viewBox:"0 0 343 127",fill:"none"},i,{children:[(0,X.jsx)(Wu.Rect,{width:"343",height:"127",rx:"10",fill:"#EFF4F3"}),(0,X.jsx)(Wu.Path,{d:"M196 52.0004V79.3337C196 81.6323 195.087 83.8367 193.462 85.462C191.836 87.0873 189.632 88.0004 187.333 88.0004H156.667C154.368 88.0004 152.164 87.0873 150.538 85.462C148.913 83.8367 148 81.6323 148 79.3337V52.0004L172 49.3337L196 52.0004Z",fill:"#BED2CE"}),(0,X.jsx)(Wu.Path,{d:"M187.333 40C189.632 40 191.836 40.9131 193.462 42.5384C195.087 44.1637 196 46.3681 196 48.6667V53.3333H148V48.6667C148 46.3681 148.913 44.1637 150.538 42.5384C152.164 40.9131 154.368 40 156.667 40H187.333Z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M186.667 64C190.557 64 194.287 65.5452 197.038 68.2958C199.788 71.0463 201.333 74.7768 201.333 78.6667C201.333 82.5565 199.788 86.287 197.038 89.0376C194.287 91.7881 190.557 93.3333 186.667 93.3333C182.777 93.3333 179.046 91.7881 176.296 89.0376C173.545 86.287 172 82.5565 172 78.6667C172 74.7768 173.545 71.0463 176.296 68.2958C179.046 65.5452 182.777 64 186.667 64Z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M187 76.6667C186.691 76.6667 186.394 76.7896 186.175 77.0084C185.957 77.2272 185.834 77.5239 185.834 77.8333V84.8333C185.834 85.1428 185.957 85.4395 186.175 85.6583C186.394 85.8771 186.691 86 187 86C187.31 86 187.606 85.8771 187.825 85.6583C188.044 85.4395 188.167 85.1428 188.167 84.8333V77.8333C188.167 77.5239 188.044 77.2272 187.825 77.0084C187.606 76.7896 187.31 76.6667 187 76.6667ZM187 72C186.712 72 186.43 72.0855 186.19 72.2458C185.95 72.406 185.763 72.6338 185.653 72.9003C185.543 73.1667 185.514 73.46 185.57 73.7428C185.626 74.0257 185.765 74.2856 185.969 74.4895C186.173 74.6935 186.433 74.8324 186.716 74.8886C186.999 74.9449 187.292 74.916 187.558 74.8057C187.825 74.6953 188.053 74.5084 188.213 74.2685C188.373 74.0287 188.459 73.7468 188.459 73.4583C188.459 73.0716 188.305 72.7006 188.032 72.4271C187.758 72.1536 187.387 72 187 72Z",fill:"#EFF4F3"})]}))},D8=(0,Ge.default)(qe.default).withConfig({displayName:"learn_connect_calendar__Container",componentId:"sc-qpfipr-0"})(["padding:20px 20px 0 20px;"]),M8=(0,Ge.default)(qe.default).withConfig({displayName:"learn_connect_calendar__IconContainer",componentId:"sc-qpfipr-1"})(["width:100%;margin-bottom:32px;align-items:center;background-color:",";border-radius:10px;"],Qe.GREEN_WINTER_MIST),O8=(0,Ge.default)(Be.default).withConfig({displayName:"learn_connect_calendar__Title",componentId:"sc-qpfipr-2"})(["margin:0;font-size:18px;font-weight:700;color:",";"],Qe.TEXT_DARK),z8=(0,Ge.default)(Be.default).withConfig({displayName:"learn_connect_calendar__TextBold",componentId:"sc-qpfipr-3"})(["font-weight:700;"]),L8=(0,Ge.default)(qe.default).withConfig({displayName:"learn_connect_calendar__InfoBox",componentId:"sc-qpfipr-4"})(["margin-top:16px;background-color:",";padding:9px 10px;flex-direction:row;align-items:center;border-radius:6px;"],Qe.GOLD_5),q8=(0,Ge.default)(Be.default).withConfig({displayName:"learn_connect_calendar__InfoBoxText",componentId:"sc-qpfipr-5"})(["color:",";font-size:15px;margin-left:10px;flex-shrink:1;
3285"],Qe.GRAY_0),B8=(0,Ge.default)(Be.default).withConfig({displayName:"learn_connect_calendar__Description",componentId:"sc-qpfipr-6"})(["font-size:14px;font-weight:500;color:",";margin-top:16px;"],Qe.TEXT_DARK),G8=(0,Ge.default)(qe.default).withConfig({displayName:"learn_connect_calendar__ButtonSection",componentId:"sc-qpfipr-7"})(["margin-top:25px;margin-bottom:15px;justify-content:space-between;align-self:center;"]),U8=(0,Ge.default)(qe.default).withConfig({displayName:"learn_connect_calendar__DividedSection",componentId:"sc-qpfipr-8"})(["margin-top:22px;padding-top:22px;border-top-color:",";border-top-width:1px;"],Qe.GRAY_BORDER),$8=({isOpen:e,handleClose:t})=>(0,X.jsx)(zw,{size:"xsmall",testID:"disconnect-external-calendar-modal",isOpen:e,onClose:t,children:(0,X.jsxs)(D8,{children:[(0,X.jsx)(M8,{children:(0,X.jsx)(P8,{})}),(0,X.jsx)(O8,{children:i18n.t("connect_calendar.learn_calendar_modal.title_1")}),(0,X.jsx)(B8,{children:i18n.t("connect_calendar.learn_calendar_modal.description_1")}),(0,X.jsxs)(U8,{children:[(0,X.jsx)(O8,{children:i18n.t("connect_calendar.learn_calendar_modal.title_2")}),(0,X.jsx)(B8,{children:i18n.t("connect_calendar.learn_calendar_modal.description_2")}),(0,X.jsxs)(L8,{children:[(0,X.jsx)(Pa.default,{set:Pa.SETS.MATERIAL_ICONS,name:"info-outline",size:16,color:Qe.GRAY_0}),(0,X.jsx)(q8,{children:(0,X.jsxs)(Be.default,{children:[i18n.t("connect_calendar.learn_calendar_modal.info")," - ",(0,X.jsx)(z8,{children:i18n.t("connect_calendar.learn_calendar_modal.info_emphasized")})]})})]})]}),(0,X.jsxs)(U8,{children:[(0,X.jsx)(O8,{children:i18n.t("connect_calendar.learn_calendar_modal.title_3")}),(0,X.jsx)(B8,{children:i18n.t("connect_calendar.learn_calendar_modal.description_3")})]}),(0,X.jsx)(G8,{children:(0,X.jsx)(ms,{onPress:t,eventAction:"understood personal calendar button",eventLabel:"from learn personal calendar modal",children:i18n.t("connect_calendar.learn_calendar_modal.cta_content")})})]})}),F8=e=>{var t;const{session:{currentUser:n}}=lt(),i=!n||n.onboarded,{onboardingRequirements:o,loading:a}=hE({skip:i});if(i)return{loading:a,status:mc,blocked:!1,requirements:[]};const s=null===(t=o.find(t=>t.name===e))||void 0===t?void 0:t.status;return{loading:a,status:s,blocked:!n.onboarded&&s===_c,requirements:o}},H8=(0,Ge.default)(qe.default).withConfig({displayName:"content__ContentWrapper",componentId:"sc-bpkfzv-0"})(["margin:0 16px 30px 16px;"]),W8=(0,Ge.default)(qe.default).withConfig({displayName:"content__MenuList",componentId:"sc-bpkfzv-1"})(["",""],({firstItem:e})=>e?"margin-bottom: 15px;":"margin: 15px 0;"),V8=(0,Ge.default)(qe.default).withConfig({displayName:"content__MenuListHeader",componentId:"sc-bpkfzv-2"})(["flex-direction:row;justify-content:flex-start;align-items:center;padding-bottom:5px;"]),K8=(0,Ge.default)(Be.default).withConfig({displayName:"content__MenuTitle",componentId:"sc-bpkfzv-3"})(["padding:5px;flex-direction:row;font-weight:700;font-size:18px;color:",";"],Qe.TEXT_DARK),Y8=(0,Ge.default)(ts).withConfig({displayName:"content__MenuListItem",componentId:"sc-bpkfzv-4"})(["flex-direction:row;width:100%;align-items:center;background-color:",";padding:15px 10px;border:1px solid ",";"],Qe.WHITE,Qe.GRAY_4),X8=(0,Ge.default)(qe.default).withConfig({displayName:"content__LeftElementContainer",componentId:"sc-bpkfzv-5"})(["flex:4;flex-direction:row;"]),Z8=(0,Ge.default)(qe.default).withConfig({displayName:"content__RightElementContainer",componentId:"sc-bpkfzv-6"})(["text-align:right;flex:1;"]),Q8=(0,Ge.default)(Be.default).withConfig({displayName:"content__MenuListItemTitle",componentId:"sc-bpkfzv-7"})(["font-size:13px;color:",";margin-left:5px;"],Qe.GRAY_0),J8=(0,Ge.default)(Pa.default).withConfig({displayName:"content__ArrowRightIcon",componentId:"sc-bpkfzv-8"})(["margin-left:auto;"]),e4=(0,Ge.default)(Be.default).withConfig({displayName:"content__MenuListItemRighLabel",componentId:"sc-bpkfzv-9"})(["color:",";font-size:13px;margin-right:5px;"],Qe.GREEN_SUMMER_GRASS),t4=(0,Ge.default)(ms).withConfig({displayName:"content__LogoutButton",componentId:"sc-bpkfzv-10"})(["margin-top:65px;margin-bottom:15px;"]),n4=(0,Ge.default)(qe.default).withConfig({displayName:"content__NoResults",componentId:"sc-bpkfzv-11"})(["margin:16px 16px 30px 16px;align-items:center;"]);const i4=(0,Te.observer)(function(){const{isConnected:e}=(0,ta.useNetInfo)(),t=(0,Ks.useHistory)(),{session:{signOut:n,settings:i,updateLocale:o,availableLocales:a,updateChatTranslationLanguage:s,locale:r,chatTranslationLanguage:l,country:d,countryConfig:c,currentUser:u},analytics:{autoTrack:p},externalCalendar:{setOpenConnectCalendarModal:m,externalCalendarId:f}}=lt(),{updateLanguage:g}=Dm(),[h,_]=(0,K.useState)(!1),[x,y]=(0,K.useState)(!1),[v,b]=(0,K.useState)(!1),[w,C]=(0,K.useState)(null),[j,I]=(0,K.useState)(),[T,E]=(0,K.useState)(!1),[N,k]=(0,K.useState)(!1),[R,S]=(0,K.useState)(!1),[A,P]=(0,K.useState)(!1),[D,M]=(0,K.useState)(!1),{limitedToBidType:O,workStatus:z,loading:L}=S3(),[q,B]=(0,K.useState)(void 0),[G,U]=(0,K.useState)(""),{loading:$,disabledOnboardingRequirements:F}=(()=>{const{session:{currentUser:e}}=lt(),t=!e||e.onboarded,{onboardingRequirements:n,loading:i}=hE({skip:t});return t?{loading:i,disabledOnboardingRequirements:[]}:{loading:i,disabledOnboardingRequirements:n.filter(e=>[_c].includes(e.status)).map(e=>e.name)}
3285})(),H=null===i||void 0===i?void 0:i.isProviderUnderExperimentAbTest(Mo),W={settings:i,locale:r,chatTranslationLanguage:l,country:d,countryConfig:c,currentUser:u,history:t,hideDeactivateOption:T,setAppLanguageModalOpened:y,setChatTranslationModalOpened:b,setShowDeactivateAccountModal:S,setShowDeleteAccountModal:k,handleOpenDisconnectExternalCalendarModal:()=>{p("User clicked on disconnect external calendar","from more page"),P(!0)},handleOpenConnectExternalCalendarModal:()=>{p("User clicked on connect external calendar","from more page"),m(!0)},handleOpenLearnExternalCalendarModal:()=>{p("User clicked on learn about external calendar","from more page"),M(!0)},shouldRenderConnectExternalCalendarEntry:H&&!f,shouldRenderDisconnectExternalCalendarEntry:H&&!!f,disabledOnboardingRequirements:F},V=(0,K.useMemo)(()=>T2(W,z,O),[T,r,L,$,f]),Y=Me()(e=>{p(`User Searched for term '${e}'`,"from more page",!1)},600),Z=Me()(()=>{p("User got empty search results",`for term '${G}' from more page`,!1)},600);return(0,K.useEffect)(()=>(G&&Y(G),()=>Y.cancel()),[G]),(0,K.useEffect)(()=>{if(G&&(null===q||void 0===q||!q.length))return Z(),()=>Z.cancel()},[q]),L||$?null:(0,X.jsxs)(X.Fragment,{children:[c.enableSearch&&(0,X.jsx)(k3,{menuList:V,setResults:B,searchText:G,setSearchText:U}),q&&(q.length>0?q.map(({key:n,url:i,urlExternal:o,label:a,tag:s=null,rightLabel:r,onClick:l,style:d,labelStyle:c})=>(0,X.jsxs)(Y8,{disabled:!l&&!e,onPress:l||(()=>o?bs.default.openURL(o):t.push(i)),eventAction:n,eventLabel:`for term '${G}' on more page`,style:d,children:[(0,X.jsxs)(X8,{children:[(0,X.jsx)(Q8,{style:c,children:a}),s]}),(0,X.jsx)(Z8,{children:r?(0,X.jsx)(e4,{children:r}):(0,X.jsx)(J8,{name:"keyboard-arrow-right",size:18,color:Qe.CTA_DARK})})]},n)):(0,X.jsx)(n4,{children:(0,X.jsx)(Be.default,{children:i18n.t("more.search.no_results")})})),!q&&(0,X.jsxs)(X.Fragment,{children:[!!c.shouldSeeIntercom&&(0,X.jsx)(q3,{}),(0,X.jsxs)(H8,{children:[V.map(({title:n,icon:i,items:o},a)=>(0,X.jsxs)(W8,{firstItem:0===a,children:[(0,X.jsxs)(V8,{children:[i,(0,X.jsx)(K8,{children:n})]}),o.map(({key:n,url:i,urlExternal:o,label:a,tag:s=null,rightLabel:r,onClick:l,icon:d,style:c,labelStyle:u})=>(0,X.jsx)(K.Fragment,{children:(0,X.jsxs)(Y8,{disabled:!l&&!e,onPress:l||(()=>o?bs.default.openURL(o):t.push(i)),eventAction:n,eventLabel:"from menu items on more",style:c,children:[(0,X.jsxs)(X8,{children:[d,(0,X.jsx)(Q8,{style:u,children:a}),s]}),(0,X.jsx)(Z8,{children:r?(0,X.jsx)(e4,{children:r}):(0,X.jsx)(J8,{name:"keyboard-arrow-right",size:18,color:Qe.CTA_DARK})})]})},n))]},n)),(0,X.jsx)(t4,{onPress:async()=>{_(!0),await n(),t.push(Ii())},disabled:h,eventAction:"logout",eventLabel:"on more",color:Qe.WHITE,borderWidth:1,borderColor:Qe.TEXT_DARK,textColor:Qe.TEXT_DARK,disabledColor:Qe.GRAY_LIGHT,fontSize:"19px",centered:!0,loading:h,testID:"logout-button",children:i18n.t("more.button_logout")})]})]}),(0,X.jsx)(UM,{isOpen:x,onClose:()=>y(!1),onItemSelected:async e=>{p(`User clicked on language:${e}`,"on app language settings"),C(e),await o(e),g(e),C(null),y(!1),B(void 0),U("")},items:a.map(e=>({key:e,value:i18n.t(`language_list.${e}`)})),title:i18n.t("language_settings.modal_app_language_title"),subTitle:i18n.t("language_settings.modal_app_language_sub_title"),selectedItem:r,displaySpinnerforItem:w}),(0,X.jsx)(UM,{isOpen:v,onClose:()=>b(!1),onItemSelected:async e=>{p(`User clicked on language:${e}`,"on chat language settings"),I(e),await s(e),I(null),b(!1),B(void 0),U("")},items:Object.entries(F1).map(([e,t])=>({key:e,value:i18n.t(`language_settings.chat_languages.${t}`)})),title:i18n.t("language_settings.modal_chat_translation_title"),subTitle:i18n.t("language_settings.modal_chat_translation_sub_title"),selectedItem:l,displaySpinnerforItem:j}),(0,X.jsx)(b3,{isOpen:R,onClose:async e=>{E(e),S(!1)}}),(0,X.jsx)(j8,{isOpen:N,onClose:()=>{k(!1)}}),(0,X.jsx)(S8,{isOpen:A,handleClose:async()=>{P(!1)}}),(0,X.jsx)(Yw,{}),(0,X.jsx)($8,{isOpen:D,handleClose:()=>M(!1)})]})});var o4=n(90970),a4=n.n(o4),s4=n(30864),r4=n.n(s4);n(63747);const l4=(0,Ge.default)(Vf.default).withConfig({displayName:"indexweb__ScrollWrapper",componentId:"sc-f8ukti-0"})(["max-height:600px;"]),d4=(0,Ge.default)(lm).withConfig({displayName:"indexweb__ModalContentWrapper",componentId:"sc-f8ukti-1"})(["max-width:500px;width:100%;"]),c4=(0,Ge.default)(lm).withConfig({displayName:"indexweb__ModalContent",componentId:"sc-f8ukti-2"})(["padding:12px;"]),u4=(0,Ge.default)(ts).withConfig({displayName:"indexweb__Close",componentId:"sc-f8ukti-3"})(["align-self:flex-end;margin-bottom:16px;"]),p4=(0,Ge.default)(qe.default).withConfig({displayName:"indexweb__EditorArea",componentId:"sc-f8ukti-4"})(["align-self:center;"]),m4=Iw.default.get("window").width,f4={3:180,6:90,8:270};const g4=function({picture:e,isVisible:t=!0,onClose:n=()=>{},onConfirm:i=()=>{},loading:o,onError:a=()=>{}}){const{isDesktop:s}=uu(),r=(0,K.useRef)(null),[l,d]=(0,K.useState)(1),[c,u]=(0,K.useState)(0),[p,m]=(0,K.useState)(e);(0,K.useEffect)(()=>{e&&(m(e),f(e))},[e]);const f=e=>new Promise(t=>{r4().getData(e,()=>{const n=r4().getTag(e,"Orientation"),i=f4[n]||0;d(1),u(i),t(i)})});return(0,X.jsx)(gs,{isVisible:t,onBackdropPress:n,children:(0,X.jsx)(l4,{contentContainerStyle:{display:"flex",alignItems:"center"},children:(0,X.jsx)(d4,{children:(0,X.jsxs)(c4,{children:[(0,X.jsx)(u4,{onPress:n,eventAction:"close profile image cropping modal",children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.BLACK})}),(0,X.jsxs)(p4,{children:[(0,X.jsx)(a4(),{ref:r,image:p,width:s?380:m4-80,height:s?380:m4-80,border:10,scale:l,borderRadius:m4,rotate:c}),(0,X.jsx)(TU.Slider,{value:l,onSlidingComplete:e=>d(e),onValueChange:e=>d(e),minimumValue:1,maximumValue:5,step:.1,trackClickable:!0,thumbTintColor:Qe.GREEN_SUMMER_GRASS,minimumTrackTintColor:Qe.GREEN_SUMMER_GRASS,maximumTrackTintColor:Qe.VIOLET_5})]}),(0,X.jsx)(ms,{onPress:()=>{const e=r.current.getImageScaledToCanvas();try{e.toBlob(e=>
3285{e.size/1024/1024<5?(e.name=`avatar-${Date.now()}.png`,i(e)):a(i18n.t("image_upload_modal.file_size_exceeded"))})}catch(ca){a()}},variant:"primary",stretched:!0,disabled:o,testID:"EditPublicProfile::AvatarCroppingModal::Submit",children:i18n.t("edit_public_profile.avatar.cropping_modal.submit")})]})})})})},h4=(0,Ge.default)(qe.default).withConfig({displayName:"avatar__Background",componentId:"sc-5uppp5-0"})(["background-color:#eff4f3;border-radius:12px;align-items:center;margin-bottom:24px;"]);const _4=function(){return(0,X.jsx)(h4,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 132",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/132,maxWidth:343},children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1648_41748)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:132,rx:12,fill:"#EFF4F3"}),(0,X.jsxs)(Wu.G,{clipPath:"url(#clip1_1648_41748)",children:[(0,X.jsx)(Wu.Rect,{x:94,y:29,width:156,height:128.186,rx:14.5366,fill:"#fff"}),(0,X.jsx)(Wu.Rect,{x:107,y:45,width:60.3571,height:60.3571,rx:8.125,fill:"#EFF4F3"}),(0,X.jsx)(Wu.Path,{d:"M156.652 75.283a19.372 19.372 0 01-33.073 13.699 19.373 19.373 0 1133.073-13.7z",fill:"#EFF4F3"}),(0,X.jsx)(Wu.Path,{d:"M137.274 54.286a20.988 20.988 0 1020.989 20.988 21.01 21.01 0 00-20.989-20.988zm0 38.747a17.758 17.758 0 01-12.557-30.316 17.76 17.76 0 0130.317 12.557 17.784 17.784 0 01-17.76 17.76zm-9.686-21.795a2.423 2.423 0 114.845 0 2.423 2.423 0 01-4.845 0zm20.988 0a1.613 1.613 0 01-1.615 1.615h-4.843a1.616 1.616 0 01-1.142-2.757 1.616 1.616 0 011.142-.472h4.843a1.616 1.616 0 011.615 1.614zm-1.833 9.687c-2.076 3.59-5.527 5.65-9.469 5.65-3.941 0-7.392-2.058-9.468-5.65a1.606 1.606 0 01-.206-1.25c.052-.212.146-.41.276-.585a1.625 1.625 0 011.097-.634 1.616 1.616 0 011.626.854c1.507 2.606 3.876 4.037 6.675 4.037 2.8 0 5.169-1.433 6.676-4.037a1.611 1.611 0 01.981-.802 1.616 1.616 0 012.043 1.813c-.035.215-.114.42-.231.604z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Rect,{x:175.355,y:45,width:60.3571,height:60.3571,rx:8.125,fill:"#E9E9E9"}),(0,X.jsx)(Wu.Rect,{x:175.355,y:113.355,width:60.3571,height:60.3571,rx:8.125,fill:"#E9E9E9"}),(0,X.jsx)(Wu.Rect,{x:107,y:113.355,width:60.3571,height:60.3571,rx:8.125,fill:"#E9E9E9"})]})]}),(0,X.jsxs)(Wu.Defs,{children:[(0,X.jsx)(Wu.ClipPath,{id:"clip0_1648_41748",children:(0,X.jsx)(Wu.Rect,{width:343,height:132,rx:12,fill:"#fff"})}),(0,X.jsx)(Wu.ClipPath,{id:"clip1_1648_41748",children:(0,X.jsx)(Wu.Rect,{x:94,y:29,width:156,height:128.186,rx:14.5366,fill:"#fff"})})]})]})})};var x4=n(43654);const y4=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M8 1.333a6.667 6.667 0 100 13.334A6.667 6.667 0 008 1.334zm2.866 5.074l-3.046 4a.667.667 0 01-1.054.007L5.14 8.34a.667.667 0 111.053-.82L7.28 8.907 9.8 5.574a.67.67 0 111.066.813v.02z",fill:"#5C8E85"})}))};const v4=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1674_41969)",children:[(0,X.jsxs)(Wu.Mask,{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:16,height:16,children:[(0,X.jsx)(Wu.Path,{d:"M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z",fill:"#fff",stroke:"#fff",strokeWidth:1.33333,strokeLinejoin:"round"}),(0,X.jsx)(Wu.Path,{d:"M9.886 6.114L6.114 9.886m0-3.772l3.772 3.772",stroke:"#000",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,X.jsx)(Wu.G,{mask:"url(#a)",children:(0,X.jsx)(Wu.Path,{d:"M0 0h16v16H0V0z",fill:"#BA6A6F"})})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1674_41969",children:(0,X.jsx)(Wu.Path,{fill:"#fff",d:"M0 0H16V16H0z"})})})]}))},b4=(0,Ge.default)(qe.default).withConfig({displayName:"avatar_guidelines__Card",componentId:"sc-uqnno7-0"})(["background-color:",";border-radius:12px;padding:0 12px;border:1px solid ",";"],Qe.WHITE,x4.COLOR_BORDER),w4=(0,Ge.default)(qe.default).withConfig({displayName:"avatar_guidelines__GuidelineItem",componentId:"sc-uqnno7-1"})(["flex-direction:row;align-items:center;padding:12px 0;gap:12px;",""],({isLast:e})=>!e&&`border-bottom-width: 1px; border-bottom-color: ${x4.COLOR_BORDER};`),C4=(0,Ge.default)(Be.default).withConfig({displayName:"avatar_guidelines__GuidelineText",componentId:"sc-uqnno7-2"})(["font-size:13px;font-weight:400;color:",";flex:1;"],Qe.TEXT_DARK),j4=()=>{const e=[i18n.t("edit_profile.v2.avatar.guidelines.dos.1"),i18n.t("edit_profile.v2.avatar.guidelines.dos.2")],t=[i18n.t("edit_profile.v2.avatar.guidelines.donts.1"),i18n.t("edit_profile.v2.avatar.guidelines.donts.2"),i18n.t("edit_profile.v2.avatar.guidelines.donts.3")];return(0,X.jsxs)(b4,{children:[e.map((e,t)=>(0,X.jsxs)(w4,{children:[(0,X.jsx)(y4,{}),(0,X.jsx)(C4,{children:e})]},t)),t.map((e,n)=>(0,X.jsxs)(w4,{isLast:n===t.length-1,children:[(0,X.jsx)(v4,{}),(0,X.jsx)(C4,{children:e})]},n))]})},I4=n(27585),T4=n(54173),E4=n(72966),N4=(0,Ge.default)(qe.default).withConfig({displayName:"examples__Container",componentId:"sc-1p7wba4-0"})(["flex-direction:row;gap:20px;"]),k4=(0,Ge.default)(qe.default).withConfig({displayName:"examples__GoodCard",componentId:"sc-1p7wba4-1"})(["border-color:",";border-width:1px;flex-direction:row;padding:20px;gap:20px;border-radius:12px;flex:1;"],Qe.GREEN_GROWN_UP_GREEN),R4=(0,Ge.default)(k4).withConfig({displayName:"examples__BadCard",componentId:"sc-1p7wba4-2"})(["border-color:",";flex:2;"],Qe.CRIMSON_2),S4=(0,Ge.default)(qe.default).withConfig({displayName:"examples__ImageContainer",componentId:"sc-1p7wba4-3"})(["flex:1;aspect-ratio:74 / 72;border-radius:8px;overflow:hidden;"]),A4=(0,Ge.default)(pu.default).withConfig({displayName:"examples__StyledImage",componentId:"sc-1p7wba4-4"})(["width:100%;height:100%;resize-mode:cover;"]),P4=(0,Ge.default)(qe.default).withConfig({displayName:"examples__IconContainer",componentId:"sc-1p7wba4-5"})(["background-color:",";position:absolute;bottom:-16px;right:12px;padding:0 4px;"],Qe.WHITE),D4=()=>(0,X.jsxs)(N4,{children:[(0,X.jsxs)(k4,{children:[(0,X.jsx)(S4,{children:(0,X.jsx)(A4,{source:I4})}),(0,X.jsx)(P4,{children:(0,X.jsx)(y4,{width:28,height:28})})]}),(0,X.jsxs)(R4,{children:[(0,X.jsx)(S4,{children:(0,X.jsx)(A4,{source:T4})}),(0,X.jsx)(S4,{children:(0,X.jsx)(A4,{source:E4})}),(0,X.jsx)(P4,{children:(0,X.jsx)(v4,{width:28,height:28})})]})]}),M4=(0,Ge.default)(qe.default).withConfig({displayName:"infos_modal__Container",componentId:"sc-6wy0gz-0"})(["margin:50px 16px 20px 16px;flex:1;"]),O4=(0,Ge.default)(qe.default).withConfig({displayName:"infos_modal__Content",componentId:"sc-6wy0gz-1"})(["gap:16px;padding:8px 0 16px;"]);const z4=function({isVisible:e=!0,onClose:t=()=>{},onSubmit:n=()=>{}}){return(0,X.jsx)(zw,{isOpen:e,onClose:t,displayCloseButton:!0,size:"big",children:(0,X.jsx)(M4,{children:(0,X.jsx)(qL,{hasFixedFooter:!0,testID:"EditPublicProfile::AvatarGuidelines",title:i18n.t("edit_profile.v2.avatar.guidelines.title"),bannerComponent:(0,X.jsx)(_4,{}),primaryButton:{title:i18n.t("edit_profile.v2.avatar.guidelines.upload.label"),testID:"EditPublicProfile::AvatarGuidelines::Upload",onPress:n,trackingUserFlow:Oa,trackingObjectName:"Upload button in avatar guidelines"},viewTrackingProps:{userFlow:Oa,objectName:"Avatar guidelines modal"},children:(0,X.jsxs)(O4,{children:[(0,X.jsx)(j4,{}),(0,X.jsx)(D4,{})]})})})})};var L4=n(76862),q4=n(12217);const B4=({currentUser:e,setProfilePicture:t,showToastMessage:n,autoTrack:i,referrer:o})=>{const[a,s]=(0,K.useState)(!1),[r,l]=(0,K.useState)(void 0),{avatar:d}=e,c=vi(d);(0,K.useEffect)(()=>
3285{l(c)},[c]);const{loading:u,updateProfilePicture:p}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(T3);return{updateProfilePicture:({picture:t})=>e({variables:{picture:t}}),loading:t}})(),m=(0,K.useCallback)(async e=>{var a,r;s(!1);const l=await p({picture:e});null!==l&&void 0!==l&&null!==(a=l.data)&&void 0!==a&&null!==(r=a.updateProfile)&&void 0!==r&&r.success?(i("Profile picture successfully updated",`on ${o}`),t(l.data.updateProfile.pictureUrl)):(i("Profile picture could not be updated",`on ${o}`),n({message:i18n.t("edit_public_profile.avatar.generic_error")}))},[p,i,n,t]),f=(0,K.useCallback)(e=>{s(!1),n({message:e||i18n.t("edit_public_profile.avatar.generic_error")})},[s,n]),g=(0,K.useCallback)(e=>{l(e),s(!0)},[l,s]),h=(0,K.useCallback)(async e=>{const t=e.assets[0].uri;return new Promise(e=>{setTimeout(()=>{g(t),e(!0)},600)})},[g]);return{croppingModalOpen:a,picture:r,openImagePickerAsync:(0,K.useCallback)(async()=>{const e=await L4.launchImageLibraryAsync({mediaTypes:q4.MediaTypeOptions.Images,allowsEditing:!0,aspect:[4,4],quality:.1});if(null===e||void 0===e||!e.canceled)return h(e)},[h]),onConfirm:m,onCroppingError:f,validateAndSetImage:h,loading:u,avatar:d,setCroppingModalOpen:s}},G4=(0,Ge.default)(qe.default).withConfig({displayName:"provider_with_avatar__HeaderContent",componentId:"sc-1haty1-0"})(["flex-direction:row;align-items:center;"]),U4=(0,Ge.default)(ts).withConfig({displayName:"provider_with_avatar__ProfilePicEdit",componentId:"sc-1haty1-1"})(["position:relative;align-self:center;"]),$4=(0,Ge.default)(pu.default).withConfig({displayName:"provider_with_avatar__ProfileImage",componentId:"sc-1haty1-2"})(["border-radius:40px;width:40px;height:40px;margin-right:12px;"]),F4=(0,Ge.default)(qe.default).withConfig({displayName:"provider_with_avatar__EditCircle",componentId:"sc-1haty1-3"})(["position:absolute;right:7px;bottom:-4px;background-color:",";padding:3px;border-radius:50px;"],Qe.GREEN_SUMMER_GRASS),H4=(0,Ge.default)(Aa.default).withConfig({displayName:"provider_with_avatar__Loading",componentId:"sc-1haty1-4"})(["position:absolute;z-index:1;top:10px;left:10px;"]),W4=(0,Te.observer)(({allowEditImage:e=!1,referrer:t})=>{const{session:{currentUser:n,setProfilePicture:i},toast:{showToastMessage:o},analytics:{autoTrack:a}}=lt(),[s,r]=(0,K.useState)(!1),{fullName:l}=n,{croppingModalOpen:d,picture:c,openImagePickerAsync:u,onConfirm:p,onCroppingError:m,loading:f,avatar:g,setCroppingModalOpen:h}=B4({currentUser:n,setProfilePicture:i,showToastMessage:o,autoTrack:a,referrer:t}),_=e?U4:qe.default;return(0,X.jsxs)(G4,{children:[e?(0,X.jsxs)(_,{disableWhenOffline:!0,onPress:e?()=>{r(!0)}:null,children:[f&&(0,X.jsx)(H4,{size:"small",color:Qe.GREEN_SUMMER_GRASS}),(0,X.jsx)($4,{source:{uri:vi(g)}}),(0,X.jsx)(F4,{children:(0,X.jsx)(Pa.default,{name:"edit",size:14,color:Qe.WHITE})})]}):(0,X.jsx)($4,{source:{uri:vi(g)}}),(0,X.jsx)(yf,{children:l}),d&&(0,X.jsx)(g4,{isVisible:d,picture:c,onConfirm:p,onClose:()=>h(!1),loading:f,onError:m}),s&&(0,X.jsx)(z4,{isVisible:s,onSubmit:()=>{r(!1),setTimeout(()=>{u()},450)},onClose:()=>r(!1)})]})});const V4=function(){const{session:{countryConfig:e}}=lt();return(0,X.jsx)(Rf,{page:"more",header:()=>(0,X.jsx)(W4,{allowEditImage:!0,referrer:"More page"}),content:()=>(0,X.jsx)(i4,{}),noContentMargin:!0,contentCustomPaddingTop:null!==e&&void 0!==e&&e.shouldSeeIntercom?0:void 0,restoreScrollPositionEnabled:!0})},K4=()=>{const{session:{currentUser:e}}=lt(),{premium:t}=e;return t?(0,X.jsx)($1,{}):(0,X.jsx)(V4,{})},Y4=(0,Ge.default)(rf.default).withConfig({displayName:"menu__Title",componentId:"sc-1omsyw4-0"})(["font-weight:700;font-size:18px;line-height:25px;margin-bottom:12px;color:",";"],Qe.TEXT_DARK),X4=(0,Ge.default)(ts).withConfig({displayName:"menu__Item",componentId:"sc-1omsyw4-1"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:20px 3px 20px 10px;border:1px solid ",";",""],Qe.GRAY_4,({showBottomBorder:e})=>!e&&"border-bottom-width: 0px;"),Z4=(0,Ge.default)(rf.default).withConfig({displayName:"menu__ItemLabel",componentId:"sc-1omsyw4-2"})(["flex:1;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),Q4=(0,Ge.default)(rf.default).withConfig({displayName:"menu__ItemValue",componentId:"sc-1omsyw4-3"})(["font-weight:700;font-size:13px;line-height:16px;text-align:right;color:",";
3285max-width:200px;",""],({disabled:e})=>e?Qe.TEXT_LIGHT:Qe.TEXT_DARK,({disabled:e})=>e&&"padding-right: 10px;");const J4=(0,Te.observer)(function(){const e=(0,Ks.useHistory)(),{session:{settings:{featureFlags:t},currentUser:n,country:i,countryConfig:{showAnnualOverview:o}}}=lt(),{isConnected:a}=(0,ta.useNetInfo)(),{email:s,mobile:r,fullAddress:l,birthdate:d,birthPlaceDetails:c,isFreelance:u,vatId:p,personalTaxId:m}=n,f=o&&u,g=!!d||!a,h=!!c||!a,_=!!m||!a;return(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(Y4,{children:i18n.t("edit_profile.menu.title")}),(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/edit_profile/email"),eventAction:"edit email in edit profile page",disabled:!a,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.email")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:!a,children:s}),a&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/edit_profile/mobile"),eventAction:"edit mobile number in edit profile page",disabled:!a,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.mobile")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:!a,children:r}),a&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/edit_profile/address"),eventAction:"edit address in edit profile page",disabled:!a||"de"!==i,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.address")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:!a||"de"!==i,children:l}),a&&"de"===i&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/edit_profile/date_of_birth"),eventAction:"edit date of birth in edit profile page",disabled:g,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.date_of_birth")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:g,children:d&&C.DateTime.fromISO(d).toFormat("dd MMM y")}),!g&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(0,X.jsxs)(X4,{showBottomBorder:!f,onPress:()=>e.push("/provider/edit_profile/place_of_birth"),eventAction:"edit place of birth in edit profile page",disabled:h,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.place_of_birth")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:h,children:c}),!h&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/edit_profile/change_password"),eventAction:"change password in edit profile page",disabled:!a,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.change_password")}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(null===t||void 0===t?void 0:t.vatIdInProfileForm)&&(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/edit_profile/vat_id"),eventAction:"edit vat number in edit profile page",disabled:!a,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profil.menu.vat_id")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:!a,children:p}),a&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),(null===t||void 0===t?void 0:t.personalTaxIdInProfileForm)&&(0,X.jsxs)(X4,{onPress:()=>e.push("/provider/personal_tax_id"),eventAction:"edit personal tax id in edit profile page",disabled:_,testID:"EditProfileMenu:PersonalTaxId",children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.personal_tax_id")}),(0,X.jsx)(Q4,{numberOfLines:1,ellipsizeMode:"tail",disabled:_,children:m}),!_&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]}),f&&(0,X.jsxs)(X4,{showBottomBorder:!0,onPress:()=>e.push("/provider/edit_profile/annual_overview"),eventAction:"annual overview page in edit profile page",disabled:!a,children:[(0,X.jsx)(Z4,{children:i18n.t("edit_profile.menu.annual_overview")}),a&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:28,color:Qe.TEXT_DARK})]})]})}),e6=xt`
3286  mutation requestOtp($action: requestOtpActionEnum!) {
3287    requestOtp(action: $action) {
3288      success
3289      errors {
3290        code
3291        message
3292        path
3293      }
3294    }
3295  }
3296`,t6=()=>{const[e,{loading:t,data:n}]=(0,js.useMutation)(e6);return{requestOtp:(0,K.useCallback)(t=>e({variables:{action:t},context:{apiVersion:3}}).then(({data:e})=>null===e||void 0===e?void 0:e.requestOtp),[]),loading:t,data:(null===n||void 0===n?void 0:n.requestOtp)||null}},n6=(0,Ge.default)(Uc.default).withConfig({displayName:"otp_modal__TextInput",componentId:"sc-k9nxo1-0"})(["padding:10px 10px 10px 10px;border:1px solid ",";margin:20px 0px 10px;"],Qe.GRAY_LIGHT),i6=(0,Ge.default)(Be.default).withConfig({displayName:"otp_modal__ErrorText",componentId:"sc-k9nxo1-1"})(["color:",";font-size:13px;padding:5px;"],Qe.CRIMSON_1),o6=(0,Ge.default)(Be.default).withConfig({displayName:"otp_modal__SuccessfulText",componentId:"sc-k9nxo1-2"})(["color:",";font-size:13px;padding:5px;"],Qe.GREEN_SUMMER_GRASS),a6=0,s6=1,r6=2,l6=({isOpen:e,onClose:t,title:n,save:i,saving:o,error:a,setError:s,otpAction:r,resendOtp:l})=>{const[d,c]=(0,K.useState)(""),[u,p]=(0,K.useState)(s6),{isDesktop:m}=uu(),f=m?{height:400}:{};return(0,K.useEffect)(()=>{setTimeout(()=>p(a6),6e4)},[]),(0,X.jsx)(dL,{isOpen:e,onClose:t,size:"normal",onConfirm:async()=>{try{await i(d)||c("")}catch{c("")}},title:n,testID:"OtpValidationModal",confirmActionLoading:o,disableConfirmButton:!d,style:f,otherThanCloseCta:{label:i18n.t("otp_modal.resend_otp.label"),disabled:u!==a6,onPress:async()=>{const{success:e,errors:t}=await l(r);e?(p(r6),setTimeout(()=>p(a6),6e4)):s((null===t||void 0===t?void 0:t.map(e=>e.message).join("; "))||i18n.t("otp_modal.resend_otp.error"))}},children:(0,X.jsxs)(qe.default,{style:{flexGrow:1},children:[(0,X.jsx)(n6,{placeholder:i18n.t("otp_modal.otp_input.placeholder"),value:d,testID:"password_input",onChangeText:c,autoFocus:!0}),!!a&&(0,X.jsx)(i6,{children:a}),u===r6&&(0,X.jsx)(o6,{children:i18n.t("otp_modal.resend_otp.success")})]})})};(function(e){e.Approved="approved",e.Declined="declined",e.Requested="requested"})({}),function(e){e.FirstHalf="first_half",e.HalfFirstAndLastDay="half_first_and_last_day",e.HalfFirstDay="half_first_day",e.HalfLastDay="half_last_day",e.SecondHalf="second_half"}({}),function(e){e.AgencyProviderApp="AgencyProviderApp",e.ProviderApp="ProviderApp"}({}
3296),function(e){e.AddBankDetails="add_bank_details",e.IdentityVerification="identity_verification",e.OnfidoWorkflow="onfido_workflow",e.PersonalTaxId="personal_tax_id",e.RegistrationFee="registration_fee",e.SetServices="set_services",e.SetWorkingHours="set_working_hours",e.SetYourPrice="set_your_price",e.SetYourProfile="set_your_profile",e.SetYourWorkLocation="set_your_work_location",e.UploadDocuments="upload_documents",e.VideoInterview="video_interview",e.WelcomeSession="welcome_session"}({}),function(e){e.Blocked="blocked",e.Complete="complete",e.Failed="failed",e.InProgress="in_progress",e.NotApplicable="not_applicable",e.Pending="pending",e.Started="started"}({}),function(e){e.GenericError="generic_error",e.WorkflowNotStartable="workflow_not_startable"}({}),function(e){e.Finite="finite",e.Fortnight="fortnight",e.Month="month",e.Once="once",e.Quarter="quarter",e.Repeat="repeat",e.Semiannual="semiannual",e.Triannual="triannual",e.Week="week"}({}),function(e){e.OneOff="one_off",e.Repeat="repeat"}({}),function(e){e.Current="current",e.Old="old",e.OneOff="one_off",e.Recurring="recurring"}({});let d6=function(e){return e.EventNotAmendable="event_not_amendable",e.EventNotFound="event_not_found",e.InvalidSlot="invalid_slot",e.SlotUnavailable="slot_unavailable",e}({}),c6=(function(e){e.Cancelled="CANCELLED",e.Future="FUTURE",e.Live="LIVE"}({}),function(e){e.Google="google",e.Icloud="icloud",e.Local="local"}({}),function(e){e.All="ALL",e.Read="READ",e.Unread="UNREAD"}({}),function(e){e.Asc="ASC",e.Desc="DESC"}({}),function(e){e.Customer="customer",e.Provider="provider"}({}),function(e){e.Base="base",e.CommunityGuidelinesIncident="community_guidelines_incident"}({}),function(e){e.ResponseRequired="response_required",e.UnderReview="under_review"}({}),function(e){e.Closed="closed",e.Draft="draft",e.Open="open"}({}),function(e){e.CaseAlreadyClosed="case_already_closed",e.GenericError="generic_error",e.ProviderCannotCloseCase="provider_cannot_close_case"}({}),function(e){e.GenericError="generic_error",e.RequiredEvidenceNotUploaded="required_evidence_not_uploaded"}({}),function(e){e.GenericError="generic_error",e.InvalidCaseTopic="invalid_case_topic"}({}),function(e){e.FirstEvent="FIRST_EVENT",e.PassedTrial="PASSED_TRIAL"}({}),function(e){e.Autopromote="AUTOPROMOTE",e.Base="BASE",e.Manual="MANUAL"}({}),function(e){return e.FirstEvent="FIRST_EVENT",e.PassedTrial="PASSED_TRIAL",e.ShareCode="SHARE_CODE",e.SignedUp="SIGNED_UP",e}({})),u6=function(e){return e.Info="INFO",e.Milestone="MILESTONE",e.Payout="PAYOUT",e}({}),p6=(function(e){e.OneOff="one_off",e.Repeat="repeat"}({}),function(e){e.Event="Event",e.User="User"}({}),function(e){e.CustomerNoShow="customer_no_show",e.DisputeFee="dispute_fee"}({}),function(e){return e.Fortnight="fortnight",e.Week="week",e}({})),m6=function(e){return e.InvalidSlot="invalid_slot",e.SeriesNotChangeable="series_not_changeable",e.SeriesNotFound="series_not_found",e.SlotUnavailable="slot_unavailable",e}({}),f6=(function(e){e.CartItemPrice="CartItemPrice"}({}),function(e){e.CartItemPrice="CartItemPrice",e.MultipleSelection="MultipleSelection",e.SingleSelection="SingleSelection",e.TextArea="TextArea",e.YesNo="YesNo"}({}),function(e){e.Deepl="deepl"}({}),function(e){e.Redirected="redirected",e.Timeout="timeout"}({}),function(e){e.Active="active",e.Full="full",e.Trial="trial"}({}),function(e){return e.UpdateBankAccount="UPDATE_BANK_ACCOUNT",e.UpdateEmail="UPDATE_EMAIL",e.UpdateMobile="UPDATE_MOBILE",e}({}));!function(e){e.Dummy="dummy"}({});const g6="INVALID_OTP",h6="OTP_ATTEMPTS_EXCEEDED",_6=(0,Ge.default)(qe.default).withConfig({displayName:"edit_email__Container",componentId:"sc-jk9go4-0"})(["flex:1;"]),x6=(0,Ge.default)(rf.default).withConfig({displayName:"edit_email__Title",componentId:"sc-jk9go4-1"})(["font-weight:700;font-size:18px;line-height:25px;margin-bottom:32px;color:",";"],Qe.TEXT_DARK),y6=(0,Ge.default)(ms).withConfig({displayName:"edit_email__SaveButton",componentId:"sc-jk9go4-2"})(["margin-top:auto;"]);const v6=function(){const e=(0,Ks.useHistory)(),{isConnected:t}=(0,ta.useNetInfo)(),{session:{currentUser:n,setUserEmail:i},analytics:{autoTrack:o},toast:{showToastMessage:a}}=lt(),[s,r]=(0,K.useState)(n.email),[l,d]=(0,K.useState)(""),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(""),{requestOtp:f,loading:g}
3296=t6(),{providerUpdateEmail:h,loading:_}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(E2);return{providerUpdateEmail:(0,K.useCallback)(t=>e({variables:t,context:{apiVersion:3}}).then(({data:e})=>null===e||void 0===e?void 0:e.updateEmail),[]),loading:t}})(),x=(0,K.useCallback)(async t=>{try{var n;o("User clicked on save on edit email page"),d(void 0),m("");const{success:a,errors:r}=await h({email:s,otp:t});if(a)return i(s),o("Email has been saved successfully"),e.goBack(),!0;if(null!==r&&void 0!==r&&null!==(n=r.email)&&void 0!==n&&n[0]){const e=null===r||void 0===r?void 0:r.email[0];return e.code===g6||e.code===h6?m(e.message):(d(i18n.t(`provider.update.email.error.${e.code}`)),o(`Email has not beed saved, error: ${e.code}`),u(!1)),!1}}catch(l){return console.error(l),a({message:i18n.t("provider.generic.error")}),!1}},[h,i,o,e,s,d]),y=(0,K.useCallback)(async()=>{if(!g)try{const{success:t,errors:n}=await f(f6.UpdateEmail);if(t)u(!0);else{var e;const t=null===n||void 0===n||null===(e=n[0])||void 0===e?void 0:e.message;a({message:t||i18n.t("provider.generic.error")})}}catch(l){console.error(l),a({message:i18n.t("provider.generic.error")})}},[f,a,g]),v=(0,K.useCallback)(()=>{u(!1),m("")},[]),b=!t||g||_||!Jd(s)||!!l||s===n.email;return(0,X.jsxs)(_6,{children:[(0,X.jsx)(x6,{children:i18n.t("edit_profile.content.edit_email.title")}),(0,X.jsx)(wp,{label:i18n.t("edit_profile.content.edit_email.email"),value:s,onChange:e=>{d(void 0),r(e.trim())},error:Jd(s)?l||"":i18n.t("edit_profile.content.edit_email.invalid")}),(0,X.jsx)(y6,{onPress:y,disabled:b,centered:!0,loading:g,children:i18n.t("edit_profile.content.edit_email.save_changes")}),c&&(0,X.jsx)(l6,{title:i18n.t("edit_profile.content.edit_email.otp_modal.title"),isOpen:!0,onClose:v,save:x,resendOtp:f,otpAction:f6.UpdateEmail,saving:_,error:p,setError:m})]})},b6=[{callingCode:"+376",cca2:"AD",flag:"\ud83c\udde6\ud83c\udde9",name:{de:"Andorra",en:"Andorra",fr:"Andorre",it:"Andorra"},phoneMasks:["### ### ###"]},{callingCode:"+971",cca2:"AE",flag:"\ud83c\udde6\ud83c\uddea",name:{de:"Vereinigte Arabische Emirate",en:"United Arab Emirates",fr:"Emirats Arabes Unis",it:"Emirati Arabi Uniti",ua:"\u041e\u0431'\u0454\u0434\u043d\u0430\u043d\u0456 \u0410\u0440\u0430\u0431\u0441\u044c\u043a\u0456 \u0415\u043c\u0456\u0440\u0430\u0442\u0438"},phoneMasks:["# ### ####","## ### ####"]},{callingCode:"+93",cca2:"AF",flag:"\ud83c\udde6\ud83c\uddeb",name:{de:"Afghanistan",en:"Afghanistan",fr:"L'Afghanistan",it:"Afghanistan"},phoneMasks:["## ### ####"]},{callingCode:"+1",cca2:"AG",flag:"\ud83c\udde6\ud83c\uddec",name:{de:"Antigua und Barbuda",en:"Antigua and Barbuda",fr:"Antigua-et-Barbuda",it:"Antigua e Barbuda"},phoneMasks:["268 ### ####"]},{callingCode:"+1",cca2:"AI",flag:"\ud83c\udde6\ud83c\uddee",name:{de:"Anguilla",en:"Anguilla",fr:"Anguilla",it:"Anguilla"},phoneMasks:["264 ### ####"]},{callingCode:"+355",cca2:"AL",flag:"\ud83c\udde6\ud83c\uddf1",name:{de:"Albanien",en:"Albania",fr:"Albanie",it:"Albania"},phoneMasks:["### ### ###"]},{callingCode:"+374",cca2:"AM",flag:"\ud83c\udde6\ud83c\uddf2",name:{de:"Armenien",en:"Armenia",fr:"Arm\xe9nie",it:"Armenia"},phoneMasks:["## ### ###"]},{callingCode:"+599",cca2:"AN",flag:"\ud83c\udde6\ud83c\uddf3",name:{de:"Niederl\xe4ndische Antillen",en:"Netherlands Antilles",fr:"Antilles n\xe9erlandaises",it:"Antille Olandesi"},phoneMasks:["### ####"]},{callingCode:"+244",cca2:"AO",flag:"\ud83c\udde6\ud83c\uddf4",name:{de:"Angola",en:"Angola",fr:"L'Angola",it:"Angola"},phoneMasks:["### ### ###"]},{callingCode:"+672",cca2:"AQ",flag:"\ud83c\udde6\ud83c\uddf6",name:{de:"Antarktis",en:"Antarctica",fr:"Antarctique",it:"Antartide"},phoneMasks:["10 ####","11 ####","12 ####","13 ####","14 ####"]},{callingCode:"+54",cca2:"AR",flag:"\ud83c\udde6\ud83c\uddf7",name:{de:"Argentinien",en:"Argentina",fr:"Argentine",it:"Argentina"},phoneMasks:["### ### ####"]},{callingCode:"+1",cca2:"AS",flag:"\ud83c\udde6\ud83c\uddf8",name:{de:"Amerikanischen Samoa-Inseln",en:"American Samoa",fr:"Samoa am\xe9ricaines",it:"Samoa americane"},phoneMasks:["684 ### ####"]},{callingCode:"+43",cca2:"AT",flag:"\ud83c\udde6\ud83c\uddf9",name:{de:"\xd6sterreich",en:"Austria",fr:"L'Autriche",it:"Austria"},phoneMasks:["### ### ####"]},{callingCode:"+61",cca2:"AU",flag:"\ud83c\udde6\ud83c\uddfa",name:{de:"Australien",en:"Australia",fr:"Australie",it:"Australia"},phoneMasks:["2 #### ####","3 #### ####","4## ### ###","7 #### ####"]},{callingCode:"+297",cca2:"AW",flag:"\ud83c\udde6\ud83c\uddfc",name:{de:"Aruba",en:"Aruba",fr:"Aruba",it:"Aruba"},phoneMasks:["## ### ###"]},{callingCode:"+358",cca2:"AX",flag:"\ud83c\udde6\ud83c\uddfd",name:{de:"Aland Islands",en:"\xc5land Islands",fr:"Iles Aland",it:"Isole Aland"},phoneMasks:["18 ### ##","18 ## ## ##"]},{callingCode:"+994",cca2:"AZ",flag:"\ud83c\udde6\ud83c\uddff",name:{de:"Aserbaidschan",en:"Azerbaijan",fr:"Azerba\xefdjan",it:"Azerbaigian"},phoneMasks:["## ### ## ##"]},{callingCode:"+387",cca2:"BA",flag:"\ud83c\udde7\ud83c\udde6",name:{de:"Bosnien und Herzegowina",en:"Bosnia and Herzegovina",fr:"Bosnie Herz\xe9govine",it:"Bosnia Erzegovina"},phoneMasks:["## ####","## #####"]}
3296,{callingCode:"+1",cca2:"BB",flag:"\ud83c\udde7\ud83c\udde7",name:{de:"Barbados",en:"Barbados",fr:"Barbade",it:"Barbados"},phoneMasks:["246 ### ####"]},{callingCode:"+880",cca2:"BD",flag:"\ud83c\udde7\ud83c\udde9",name:{de:"Bangladesch",en:"Bangladesh",fr:"Bangladesh",it:"Bangladesh"},phoneMasks:["## ### ###"]},{callingCode:"+32",cca2:"BE",flag:"\ud83c\udde7\ud83c\uddea",name:{de:"Belgien",en:"Belgium",fr:"Belgique",it:"Belgio"},phoneMasks:["### ### ###"]},{callingCode:"+226",cca2:"BF",flag:"\ud83c\udde7\ud83c\uddeb",name:{de:"Burkina Faso",en:"Burkina Faso",fr:"Burkina Faso",it:"Burkina Faso"},phoneMasks:["## ## ####"]},{callingCode:"+359",cca2:"BG",flag:"\ud83c\udde7\ud83c\uddec",name:{de:"Bulgarien",en:"Bulgaria",fr:"Bulgarie",it:"Bulgaria"},phoneMasks:["### ### ###"]},{callingCode:"+973",cca2:"BH",flag:"\ud83c\udde7\ud83c\udded",name:{de:"Bahrain",en:"Bahrain",fr:"Bahre\xefn",it:"Bahrein"},phoneMasks:["#### ####"]},{callingCode:"+257",cca2:"BI",flag:"\ud83c\udde7\ud83c\uddee",name:{de:"Burundi",en:"Burundi",fr:"Burundi",it:"Burundi"},phoneMasks:["## ## ####"]},{callingCode:"+229",cca2:"BJ",flag:"\ud83c\udde7\ud83c\uddef",name:{de:"Benin",en:"Benin",fr:"B\xe9nin",it:"Benin"},phoneMasks:["## ## ####"]},{callingCode:"+590",cca2:"BL",flag:"\ud83c\udde7\ud83c\uddf1",name:{de:"Heiliger Barthelemy",en:"Saint Barth\xe9lemy",fr:"Saint Barth\xe9lemy",it:"Saint Barthelemy"},phoneMasks:["690 ## ## ##"]},{callingCode:"+1",cca2:"BM",flag:"\ud83c\udde7\ud83c\uddf2",name:{de:"Bermuda",en:"Bermuda",fr:"Bermudes",it:"Bermuda"},phoneMasks:["441 ### ####"]},{callingCode:"+673",cca2:"BN",flag:"\ud83c\udde7\ud83c\uddf3",name:{de:"Brunei Darussalam",en:"Brunei Darussalam",fr:"Brunei Darussalam",it:"Brunei Darussalam"},phoneMasks:["### ####"]},{callingCode:"+591",cca2:"BO",flag:"\ud83c\udde7\ud83c\uddf4",name:{de:"Bolivien",en:"Bolivia",fr:"Bolivie",it:"Bolivia"},phoneMasks:["# ### ####"]},{callingCode:"+55",cca2:"BR",flag:"\ud83c\udde7\ud83c\uddf7",name:{de:"Brasilien",en:"Brazil",fr:"Br\xe9sil",it:"Brasile"},phoneMasks:["## ##### ####"]},{callingCode:"+1",cca2:"BS",flag:"\ud83c\udde7\ud83c\uddf8",name:{de:"Bahamas",en:"Bahamas",fr:"Bahamas",it:"Bahamas"},phoneMasks:["242 ### ####"]},{callingCode:"+975",cca2:"BT",flag:"\ud83c\udde7\ud83c\uddf9",name:{de:"Bhutan",en:"Bhutan",fr:"Bhoutan",it:"Bhutan"},phoneMasks:["# ### ###"]},{callingCode:"+267",cca2:"BW",flag:"\ud83c\udde7\ud83c\uddfc",name:{de:"Botswana",en:"Botswana",fr:"Botswana",it:"Botswana"},phoneMasks:["## ### ###"]},{callingCode:"+375",cca2:"BY",flag:"\ud83c\udde7\ud83c\uddfe",name:{de:"Wei\xdfrussland",en:"Belarus",fr:"Bi\xe9lorussie",it:"Bielorussia"},phoneMasks:["## ### ## ##"]},{callingCode:"+501",cca2:"BZ",flag:"\ud83c\udde7\ud83c\uddff",name:{de:"Belize",en:"Belize",fr:"Belize",it:"Belize"},phoneMasks:["### ####"]},{callingCode:"+1",cca2:"CA",flag:"\ud83c\udde8\ud83c\udde6",name:{de:"Kanada",en:"Canada",fr:"Canada",it:"Canada"},phoneMasks:["204 ### ####","226 ### ####","236 ### ####","249 ### ####","250 ### ####","263 ### ####","289 ### ####","306 ### ####","343 ### ####","354 ### ####","365 ### ####","367 ### ####","368 ### ####","403 ### ####","416 ### ####","418 ### ####","431 ### ####","437 ### ####","438 ### ####","450 ### ####","468 ### ####","474 ### ####","506 ### ####","514 ### ####","519 ### ####","548 ### ####","579 ### ####","581 ### ####","584 ### ####","587 ### ####","604 ### ####","613 ### ####","639 ### ####","647 ### ####","672 ### ####","683 ### ####","705 ### ####","709 ### ####","742 ### ####","753 ### ####","778 ### ####","780 ### ####","782 ### ####","807 ### ####","819 ### ####","825 ### ####","867 ### ####","873 ### ####","902 ### ####","905 ### ####"]},{callingCode:"+61",cca2:"CC",flag:"\ud83c\udde8\ud83c\udde8",name:{de:"Kokosinseln (Keelinginseln)",en:"Cocos (Keeling) Islands",fr:"\xceles Cocos (Keeling)",it:"Isole Cocos (Keeling)"},phoneMasks:["8 9162 ####"]},{callingCode:"+243",cca2:"CD",flag:"\ud83c\udde8\ud83c\udde9",name:{de:"Kongo, Demokratische Republik Kongo",en:"Congo, The Democratic Republic of the",fr:"Congo, R\xe9publique d\xe9mocratique du Congo",it:"Congo, Repubblica Democratica del Congo"},phoneMasks:["### ### ###"]},{callingCode:"+236",cca2:"CF",flag:"\ud83c\udde8\ud83c\uddeb",name:{de:"Zentralafrikanische Republik",en:"Central African Republic",fr:"R\xe9publique centrafricaine",it:"Repubblica Centrafricana"},phoneMasks:["## ## ####"]},{callingCode:"+242",cca2:"CG",flag:"\ud83c\udde8\ud83c\uddec",name:{de:"Kongo",en:"Congo",fr:"Congo",it:"Congo"},phoneMasks:["## ### ####"]},{callingCode:"+41",cca2:"CH",flag:"\ud83c\udde8\ud83c\udded",name:{de:"Schweiz",en:"Switzerland",fr:"la Suisse",it:"Svizzera"},phoneMasks:["## ### ####"]},{callingCode:"+225",cca2:"CI",flag:"\ud83c\udde8\ud83c\uddee",name:{de:"Elfenbeink\xfcste",en:"Cote d'Ivoire",fr:"C\xf4te d'Ivoire",it:"Costa d'Avorio"},phoneMasks:["## ### ###","## ## ## ####"]},{callingCode:"+682",cca2:"CK",flag:"\ud83c\udde8\ud83c\uddf0",name:{de:"Cookinseln",en:"Cook Islands",fr:"les \xceles Cook",it:"Isole Cook"},phoneMasks:["## ###"]},{callingCode:"+56",cca2:"CL",flag:"\ud83c\udde8\ud83c\uddf1",name:{de:"Chile",en:"Chile",fr:"Chili",it:"Chile"},phoneMasks:["# #### ####"]},{callingCode:"+237",cca2:"CM",flag:"\ud83c\udde8\ud83c\uddf2",name:{de:"Kamerun",en:"Cameroon",fr:"Cameroun",
3296it:"Camerun"},phoneMasks:["#### ####","### ### ###"]},{callingCode:"+86",cca2:"CN",flag:"\ud83c\udde8\ud83c\uddf3",name:{de:"China",en:"China",fr:"Chine",it:"Cina"},phoneMasks:["### #### ###","### #### ####","## ##### #####"]},{callingCode:"+57",cca2:"CO",flag:"\ud83c\udde8\ud83c\uddf4",name:{de:"Kolumbien",en:"Colombia",fr:"Colombie",it:"Colombia"},phoneMasks:["### ### ####"]},{callingCode:"+506",cca2:"CR",flag:"\ud83c\udde8\ud83c\uddf7",name:{de:"Costa Rica",en:"Costa Rica",fr:"Costa Rica",it:"Costa Rica"},phoneMasks:["#### ####"]},{callingCode:"+53",cca2:"CU",flag:"\ud83c\udde8\ud83c\uddfa",name:{de:"Kuba",en:"Cuba",fr:"Cuba",it:"Cuba"},phoneMasks:["# ### ####"]},{callingCode:"+238",cca2:"CV",flag:"\ud83c\udde8\ud83c\uddfb",name:{de:"Kap Verde",en:"Cape Verde",fr:"Cap-Vert",it:"capo Verde"},phoneMasks:["### ## ##"]},{callingCode:"+61",cca2:"CX",flag:"\ud83c\udde8\ud83c\uddfd",name:{de:"Weihnachtsinsel",en:"Christmas Island",fr:"L'\xeele de no\xebl",it:"Isola di Natale"},phoneMasks:["8 9164 ####"]},{callingCode:"+357",cca2:"CY",flag:"\ud83c\udde8\ud83c\uddfe",name:{de:"Zypern",en:"Cyprus",fr:"Chypre",it:"Cipro"},phoneMasks:["## ### ###"]},{callingCode:"+420",cca2:"CZ",flag:"\ud83c\udde8\ud83c\uddff",name:{de:"Tschechien",en:"Czech Republic",fr:"R\xe9publique Tch\xe8que",it:"Repubblica Ceca"},phoneMasks:["### ### ###"]},{callingCode:"+49",cca2:"DE",flag:"\ud83c\udde9\ud83c\uddea",name:{de:"Deutschland",en:"Germany",fr:"Allemagne",it:"Germania"},phoneMasks:["### ###","### ## ##","### ## ###","### ## ####","### ### ####","#### ### ####"]},{callingCode:"+253",cca2:"DJ",flag:"\ud83c\udde9\ud83c\uddef",name:{de:"Dschibuti",en:"Djibouti",fr:"Djibouti",it:"Gibuti"},phoneMasks:["## ## ## ##"]},{callingCode:"+45",cca2:"DK",flag:"\ud83c\udde9\ud83c\uddf0",name:{de:"D\xe4nemark",en:"Denmark",fr:"Danemark",it:"Danimarca"},phoneMasks:["## ## ## ##"]},{callingCode:"+1",cca2:"DM",flag:"\ud83c\udde9\ud83c\uddf2",name:{de:"Dominica",en:"Dominica",fr:"Dominique",it:"Dominica"},phoneMasks:["767 ### ####"]},{callingCode:"+1",cca2:"DO",flag:"\ud83c\udde9\ud83c\uddf4",name:{de:"Dominikanische Republik",en:"Dominican Republic",fr:"R\xe9publique dominicaine",it:"Repubblica Dominicana"},phoneMasks:["809 ### ####"]},{callingCode:"+213",cca2:"DZ",flag:"\ud83c\udde9\ud83c\uddff",name:{de:"Algerien",en:"Algeria",fr:"Alg\xe9rie",it:"Algeria"},phoneMasks:["## ### ####"]},{callingCode:"+593",cca2:"EC",flag:"\ud83c\uddea\ud83c\udde8",name:{de:"Ecuador",en:"Ecuador",fr:"Equateur",it:"Ecuador"},phoneMasks:["# ### ####","## ### ####"]},{callingCode:"+372",cca2:"EE",flag:"\ud83c\uddea\ud83c\uddea",name:{de:"Estland",en:"Estonia",fr:"Estonie",it:"Estonia"},phoneMasks:["#### ####","### ####"]},{callingCode:"+20",cca2:"EG",flag:"\ud83c\uddea\ud83c\uddec",name:{de:"\xc4gypten",en:"Egypt",fr:"Egypte",it:"Egitto"},phoneMasks:["### ### ####"]},{callingCode:"+291",cca2:"ER",flag:"\ud83c\uddea\ud83c\uddf7",name:{de:"Eritrea",en:"Eritrea",fr:"\xc9rythr\xe9e",it:"Eritrea"},phoneMasks:["# ### ###"]},{callingCode:"+34",cca2:"ES",flag:"\ud83c\uddea\ud83c\uddf8",name:{de:"Spanien",en:"Spain",fr:"Espagne",it:"Spagna"},phoneMasks:["### ### ###"]},{callingCode:"+251",cca2:"ET",flag:"\ud83c\uddea\ud83c\uddf9",name:{de:"\xc4thiopien",en:"Ethiopia",fr:"Ethiopie",it:"Etiopia"},phoneMasks:["## ### ####"]},{callingCode:"+358",cca2:"FI",flag:"\ud83c\uddeb\ud83c\uddee",name:{de:"Finnland",en:"Finland",fr:"Finlande",it:"Finlandia"},phoneMasks:["4## ### ## ##","5## ### ## ##"]},{callingCode:"+679",cca2:"FJ",flag:"\ud83c\uddeb\ud83c\uddef",name:{de:"Fidschi",en:"Fiji",fr:"Fidji",it:"Figi"},phoneMasks:["## #####"]},{callingCode:"+500",cca2:"FK",flag:"\ud83c\uddeb\ud83c\uddf0",name:{de:"Falklandinseln (Malvinas)",en:"Falkland Islands (Malvinas)",fr:"\xceles Falkland (Malvinas)",it:"Isole Falkland (Malvinas)"},phoneMasks:["5# ###","6# ###"]},{callingCode:"+691",cca2:"FM",flag:"\ud83c\uddeb\ud83c\uddf2",name:{de:"Mikronesien, F\xf6derierte Staaten von",en:"Micronesia, Federated States of",fr:"Micron\xe9sie, \xc9tats f\xe9d\xe9r\xe9s de",it:"Micronesia, Stati federati di"},phoneMasks:["### ####"]},{callingCode:"+298",cca2:"FO",flag:"\ud83c\uddeb\ud83c\uddf4",name:{de:"F\xe4r\xf6er Inseln",en:"Faroe Islands",fr:"\xceles F\xe9ro\xe9",it:"Isole Faroe"},phoneMasks:["### ###"]},{callingCode:"+33",cca2:"FR",flag:"\ud83c\uddeb\ud83c\uddf7",name:{de:"Frankreich",en:"France",fr:"France",it:"Francia"},phoneMasks:["# ## ## ## ##","## ## ## ## ##"]},{callingCode:"+241",cca2:"GA",flag:"\ud83c\uddec\ud83c\udde6",name:{de:"Gabun",en:"Gabon",fr:"Gabon",it:"Gabon"},phoneMasks:["# ## ## ##"]}
3296,{callingCode:"+44",cca2:"UK",flag:"\ud83c\uddec\ud83c\udde7",name:{de:"Vereinigtes K\xf6nigreich",en:"United Kingdom",fr:"Royaume-Uni",it:"Regno Unito",ua:"\u041e\u0431'\u0454\u0434\u043d\u0430\u043d\u0435 \u041a\u043e\u0440\u043e\u043b\u0456\u0432\u0441\u0442\u0432\u043e"},phoneMasks:["999","112","100","101","105","111","119","123","141","155","159","1470","1471","1472","1474","1475","1476","1477","1478","1479","1571","1572","17070","116 ###","118 ###","800 ## ##","845 ## ##","160## ####","169## ####","160## #####","169## #####","1## ## ####","800 ### ###","2# #### ####","55 #### ####","56 #### ####","7# #### ####","11# ### ####","12# ### ####","13# ### ####","141 ### ####","151 ### ####","161 ### ####","3## ### ####","8## ### ####","9## ### ####","12## ## ####","13## ## ####","1642 ## ####","17## ## ####","18## ## ####","19## ## ####","1539# ## ###"]},{callingCode:"+1",cca2:"GD",flag:"\ud83c\uddec\ud83c\udde9",name:{de:"Grenada",en:"Grenada",fr:"Grenade",it:"Grenada"},phoneMasks:["473 ### ####"]},{callingCode:"+995",cca2:"GE",flag:"\ud83c\uddec\ud83c\uddea",name:{de:"Georgia",en:"Georgia",fr:"G\xe9orgie",it:"Georgia"},phoneMasks:["### ### ###"]},{callingCode:"+594",cca2:"GF",flag:"\ud83c\uddec\ud83c\uddeb",name:{de:"Franz\xf6sisch-Guayana",en:"French Guiana",fr:"Guyane Fran\xe7aise",it:"Guiana francese"},phoneMasks:["### ## ## ##"]},{callingCode:"+44",cca2:"GG",flag:"\ud83c\uddec\ud83c\uddec",name:{de:"Guernsey",en:"Guernsey",fr:"Guernesey",it:"Guernsey"},phoneMasks:["1481 ######"]},{callingCode:"+233",cca2:"GH",flag:"\ud83c\uddec\ud83c\udded",name:{de:"Ghana",en:"Ghana",fr:"Ghana",it:"Ghana"},phoneMasks:["### ### ###"]},{callingCode:"+350",cca2:"GI",flag:"\ud83c\uddec\ud83c\uddee",name:{de:"Gibraltar",en:"Gibraltar",fr:"Gibraltar",it:"Gibilterra"},phoneMasks:["#### ####"]},{callingCode:"+299",cca2:"GL",flag:"\ud83c\uddec\ud83c\uddf1",name:{de:"Gr\xf6nland",en:"Greenland",fr:"Groenland",it:"Groenlandia"},phoneMasks:["## ## ##"]},{callingCode:"+220",cca2:"GM",flag:"\ud83c\uddec\ud83c\uddf2",name:{de:"Gambia",en:"Gambia",fr:"Gambie",it:"Gambia"},phoneMasks:["### ## ##"]},{callingCode:"+224",cca2:"GN",flag:"\ud83c\uddec\ud83c\uddf3",name:{de:"Guinea",en:"Guinea",fr:"Guin\xe9e",it:"Guinea"},phoneMasks:["## ### ###"]},{callingCode:"+590",cca2:"GP",flag:"\ud83c\uddec\ud83c\uddf5",name:{de:"Guadeloupe",en:"Guadeloupe",fr:"Guadeloupe",it:"Guadalupa"},phoneMasks:["69# ## ## ##"]},{callingCode:"+240",cca2:"GQ",flag:"\ud83c\uddec\ud83c\uddf6",name:{de:"\xc4quatorialguinea",en:"Equatorial Guinea",fr:"Guin\xe9e \xc9quatoriale",it:"Guinea Equatoriale"},phoneMasks:["## ### ####"]},{callingCode:"+30",cca2:"GR",flag:"\ud83c\uddec\ud83c\uddf7",name:{de:"Griechenland",en:"Greece",fr:"Gr\xe8ce",it:"Grecia"},phoneMasks:["### ### ####"]},{callingCode:"+500",cca2:"GS",flag:"\ud83c\uddec\ud83c\uddf8",name:{de:"S\xfcd-Georgien und die s\xfcdlichen Sandwich-Inseln",en:"South Georgia and the South Sandwich Islands",fr:"G\xe9orgie du Sud et \xeeles Sandwich du Sud",it:"Georgia del Sud e isole Sandwich meridionali"},phoneMasks:["4####"]},{callingCode:"+502",cca2:"GT",flag:"\ud83c\uddec\ud83c\uddf9",name:{de:"Guatemala",en:"Guatemala",fr:"Guatemala",it:"Guatemala"},phoneMasks:["### ####"]},{callingCode:"+1",cca2:"GU",flag:"\ud83c\uddec\ud83c\uddfa",name:{de:"Guam",en:"Guam",fr:"Guam",it:"Guam"},phoneMasks:["671 ### ####"]},{callingCode:"+245",cca2:"GW",flag:"\ud83c\uddec\ud83c\uddfc",name:{de:"Guinea-Bissau",en:"Guinea-Bissau",fr:"Guin\xe9e-Bissau",it:"Guinea-Bissau"},phoneMasks:["# ######"]},{callingCode:"+592",cca2:"GY",flag:"\ud83c\uddec\ud83c\uddfe",name:{de:"Guyana",en:"Guyana",fr:"Guyane",it:"Guyana"},phoneMasks:["### ####"]},{callingCode:"+852",cca2:"HK",flag:"\ud83c\udded\ud83c\uddf0",name:{de:"Hongkong",en:"Hong Kong",fr:"Hong Kong",it:"Hong Kong"},phoneMasks:["#### ####"]},{callingCode:"+504",cca2:"HN",flag:"\ud83c\udded\ud83c\uddf3",name:{de:"Honduras",en:"Honduras",fr:"Honduras",it:"Honduras"},phoneMasks:["#### ####"]},{callingCode:"+385",cca2:"HR",flag:"\ud83c\udded\ud83c\uddf7",name:{de:"Kroatien",en:"Croatia",fr:"Croatie",it:"Croazia"},phoneMasks:["## ### ###"]},{callingCode:"+509",cca2:"HT",flag:"\ud83c\udded\ud83c\uddf9",name:{de:"Haiti",en:"Haiti",fr:"Ha\xefti",it:"Haiti"},phoneMasks:["## ## ####"]},{callingCode:"+36",cca2:"HU",flag:"\ud83c\udded\ud83c\uddfa",name:{de:"Ungarn",en:"Hungary",fr:"Hongrie",it:"Ungheria"},phoneMasks:["### ### ###"]},{callingCode:"+62",cca2:"ID",flag:"\ud83c\uddee\ud83c\udde9",name:{de:"Indonesien",en:"Indonesia",fr:"Indon\xe9sie",it:"Indonesia"},phoneMasks:["## ### ##","## ### ###","## ### ####","### ### ####","### ### ## ###"]},{callingCode:"+353",cca2:"IE",flag:"\ud83c\uddee\ud83c\uddea",name:{de:"Irland",en:"Ireland",fr:"Irlande",it:"Irlanda"},phoneMasks:["### ### ###"]},{callingCode:"+972",cca2:"IL",flag:"\ud83c\uddee\ud83c\uddf1",name:{de:"Israel",en:"Israel",fr:"Isra\xebl",it:"Israele"},phoneMasks:["# ### ####","## ### ####"]},{callingCode:"+44",cca2:"IM",flag:"\ud83c\uddee\ud83c\uddf2",name:{de:"Isle of Man",en:"Isle of Man",fr:"\xeele de Man",it:"Isola di Man"},phoneMasks:["1624 ######"]},{callingCode:"+91",cca2:"IN",flag:"\ud83c\uddee\ud83c\uddf3",name:{de:"Indien",en:"India",fr:"Inde",it:"India"},phoneMasks:["#### ### ###"]},{callingCode:"+246",cca2:"IO",flag:"\ud83c\uddee\ud83c\uddf4",name:{de:"Britisches Territorium des Indischen Ozeans",en:"British Indian Ocean Territory",fr:"Territoire britannique de l'oc\xe9an Indien",it:"Territorio britannico dell'Oceano Indiano"},phoneMasks:["## ##### ####"]},{callingCode:"+964",cca2:"IQ",flag:"\ud83c\uddee\ud83c\uddf6",name:{de:"Irak",en:"Iraq",fr:"Irak",it:"Iraq"},phoneMasks:["### ### ####"]},{callingCode:"+98",cca2:"IR",flag:"\ud83c\uddee\ud83c\uddf7",name:{de:"Iran, Islam
3296ische Republik",en:"Iran, Islamic Republic of",fr:"Iran (R\xe9publique islamique d",it:"Iran (Repubblica Islamica del"},phoneMasks:["### ### ####"]},{callingCode:"+354",cca2:"IS",flag:"\ud83c\uddee\ud83c\uddf8",name:{de:"Island",en:"Iceland",fr:"Islande",it:"Islanda"},phoneMasks:["### ####"]},{callingCode:"+39",cca2:"IT",flag:"\ud83c\uddee\ud83c\uddf9",name:{de:"Italien",en:"Italy",fr:"Italie",it:"Italia"},phoneMasks:["# ### #####","### #### ###"]},{callingCode:"+44",cca2:"JE",flag:"\ud83c\uddef\ud83c\uddea",name:{de:"Jersey",en:"Jersey",fr:"Jersey",it:"Jersey"},phoneMasks:["1534 ######"]},{callingCode:"+1",cca2:"JM",flag:"\ud83c\uddef\ud83c\uddf2",name:{de:"Jamaika",en:"Jamaica",fr:"Jama\xefque",it:"Giamaica"},phoneMasks:["876 ### ####"]},{callingCode:"+962",cca2:"JO",flag:"\ud83c\uddef\ud83c\uddf4",name:{de:"Jordanien",en:"Jordan",fr:"Jordan",it:"Giordania"},phoneMasks:["# #### ####"]},{callingCode:"+81",cca2:"JP",flag:"\ud83c\uddef\ud83c\uddf5",name:{de:"Japan",en:"Japan",fr:"Japon",it:"Giappone"},phoneMasks:["### ### ###","## #### ####"]},{callingCode:"+254",cca2:"KE",flag:"\ud83c\uddf0\ud83c\uddea",name:{de:"Kenia",en:"Kenya",fr:"Kenya",it:"Kenya"},phoneMasks:["### ######"]},{callingCode:"+996",cca2:"KG",flag:"\ud83c\uddf0\ud83c\uddec",name:{de:"Kirgisistan",en:"Kyrgyzstan",fr:"Kirghizistan",it:"Kirghizistan"},phoneMasks:["### ### ###"]},{callingCode:"+855",cca2:"KH",flag:"\ud83c\uddf0\ud83c\udded",name:{de:"Kambodscha",en:"Cambodia",fr:"Cambodge",it:"Cambogia"},phoneMasks:["## ### ###","## ### ####"]},{callingCode:"+686",cca2:"KI",flag:"\ud83c\uddf0\ud83c\uddee",name:{de:"Kiribati",en:"Kiribati",fr:"Kiribati",it:"Kiribati"},phoneMasks:["## ###"]},{callingCode:"+269",cca2:"KM",flag:"\ud83c\uddf0\ud83c\uddf2",name:{de:"Komoren",en:"Comoros",fr:"Comores",it:"Comore"},phoneMasks:["## #####"]},{callingCode:"+1",cca2:"KN",flag:"\ud83c\uddf0\ud83c\uddf3",name:{de:"St. Kitts und Nevis",en:"Saint Kitts and Nevis",fr:"Saint-Christophe-et-Ni\xe9v\xe8s",it:"Saint Kitts e Nevis"},phoneMasks:["869 ### ####"]},{callingCode:"+850",cca2:"KP",flag:"\ud83c\uddf0\ud83c\uddf5",name:{de:"Korea, Demokratische Volksrepublik",en:"Korea, Democratic People's Republic of",fr:"R\xe9publique populaire d\xe9mocratique de Cor\xe9e",it:"Corea, Repubblica Popolare Democratica di"},phoneMasks:["### ###","#### ####","## ### ###","### #### ###","#### #############"]},{callingCode:"+82",cca2:"KR",flag:"\ud83c\uddf0\ud83c\uddf7",name:{de:"Korea, Republik von",en:"Korea, Republic of",fr:"Cor\xe9e, R\xe9publique de",it:"Corea, Repubblica di"},phoneMasks:["## ### ####"]},{callingCode:"+965",cca2:"KW",flag:"\ud83c\uddf0\ud83c\uddfc",name:{de:"Kuwait",en:"Kuwait",fr:"Koweit",it:"Kuwait"},phoneMasks:["#### ####"]},{callingCode:"+345",cca2:"KY",flag:"\ud83c\uddf0\ud83c\uddfe",name:{de:"Cayman Inseln",en:"Cayman Islands",fr:"\xceles Ca\xefmans",it:"Isole Cayman"},phoneMasks:["### ####"]},{callingCode:"+77",cca2:"KZ",flag:"\ud83c\uddf0\ud83c\uddff",name:{de:"Kasachstan",en:"Kazakhstan",fr:"Kazakhstan",it:"Kazakistan"},phoneMasks:["## ### ## ##"]},{callingCode:"+856",cca2:"LA",flag:"\ud83c\uddf1\ud83c\udde6",name:{de:"Demokratische Volksrepublik Laos",en:"Lao People's Democratic Republic",fr:"R\xe9publique d\xe9mocratique populaire lao",it:"Repubblica Democratica Popolare del Laos"},phoneMasks:["## ### ###","#### ### ###"]},{callingCode:"+961",cca2:"LB",flag:"\ud83c\uddf1\ud83c\udde7",name:{de:"Libanon",en:"Lebanon",fr:"Liban",it:"Libano"},phoneMasks:["## ### ###","# ### ###"]},{callingCode:"+1",cca2:"LC",flag:"\ud83c\uddf1\ud83c\udde8",name:{de:"St. Lucia",en:"Saint Lucia",fr:"Sainte-Lucie",it:"Santa Lucia"},phoneMasks:["758 ### ####"]},{callingCode:"+423",cca2:"LI",flag:"\ud83c\uddf1\ud83c\uddee",name:{de:"Liechtenstein",en:"Liechtenstein",fr:"Liechtenstein",it:"Liechtenstein"},phoneMasks:["### ### ####"]},{callingCode:"+94",cca2:"LK",flag:"\ud83c\uddf1\ud83c\uddf0",name:{de:"Sri Lanka",en:"Sri Lanka",fr:"Sri Lanka",it:"Sri Lanka"},phoneMasks:["## ### ####"]},{callingCode:"+231",cca2:"LR",flag:"\ud83c\uddf1\ud83c\uddf7",name:{de:"Liberia",en:"Liberia",fr:"Lib\xe9ria",it:"Liberia"},phoneMasks:["## ### ###"]},{callingCode:"+266",cca2:"LS",flag:"\ud83c\uddf1\ud83c\uddf8",name:{de:"Lesotho",en:"Lesotho",fr:"Lesotho",it:"Lesotho"},phoneMasks:["# ### ####"]},{callingCode:"+370",cca2:"LT",flag:"\ud83c\uddf1\ud83c\uddf9",name:{de:"Litauen",en:"Lithuania",fr:"Lituanie",it:"Lituania"},phoneMasks:["### ## ###"]},{callingCode:"+352",cca2:"LU",flag:"\ud83c\uddf1\ud83c\uddfa",name:{de:"Luxemburg",en:"Luxembourg",fr:"Luxembourg",it:"Lussemburgo"},phoneMasks:["### ### ###"]},{callingCode:"+371",cca2:"LV",flag:"\ud83c\uddf1\ud83c\uddfb",name:{de:"Lettland",en:"Latvia",fr:"Lettonie",it:"Lettonia"},phoneMasks:["## ### ###"]},{callingCode:"+218",cca2:"LY",flag:"\ud83c\uddf1\ud83c\uddfe",name:{de:"Libyscher arabischer Jamahiriya",en:"Libyan Arab Jamahiriya",fr:"Jamahiriya arabe libyenne",it:"Giamahiria araba libica"},phoneMasks:["## ### ###","## ### ####"]},{callingCode:"+212",cca2:"MA",flag:"\ud83c\uddf2\ud83c\udde6",name:{de:"Marokko",en:"Morocco",fr:"Maroc",it:"Marocco"},phoneMasks:["## #### ###"]},{callingCode:"+377",cca2:"MC",flag:"\ud83c\uddf2\ud83c\udde8",name:{de:"Monaco",en:"Monaco",fr:"Monaco",it:"Monaco"},phoneMasks:["## ### ###","### ### ###"]},{callingCode:"+373",cca2:"MD",flag:"\ud83c\uddf2\ud83c\udde9",name:{de:"Moldawien, Republik",en:"Moldova, Republic of",fr:"Moldova, R\xe9publique de",it:"Moldova, Repubblica di"},phoneMasks:["#### ####"]},{callingCode:"+382",cca2:"ME",flag:"\ud83c\uddf2\ud83c\uddea",name:{de:"Montenegro",en:"Montenegro",fr:"Mont\xe9n\xe9gro",it:"Montenegro"},phoneMasks:["## ### ###"]},{callingCode:"+590",cca2:"MF",flag:"\ud83c\uddf2\ud83c\uddeb",name:{de:"Sankt Martin",en:"Saint Martin",fr:"Saint Martin",it:"Saint Martin"},phoneMasks:["690 ## ## ##"]},{callingCode:"+261",cca2:"MG",flag:"\ud83c\uddf2\ud83c\uddec",name:{de:"Madagaskar",en:"Madagascar",fr:"Madagascar",it:"Madagascar"},phoneMasks:["## ## ### ##"]},{callingCode:"+692",cca2:"MH",flag:"\ud83c\uddf2\ud83c\udded",name:{de:"Marshallinseln",en:"Marshall Islands",fr:"Iles Marshall",it:"Isole Marshall"},phoneMasks:["### ####"]},{callingCode:"+389",cca2:"MK",flag:"\ud83c\uddf2\ud83c\uddf0",name:{de:"Mazedonien, die ehemalige jugoslawische Republik",en:"Macedonia, The Former Yugoslav Republic of",fr:"Mac\xe9doine, ancienne R\xe9publique yougoslave de",it:"Macedonia, ex Repubblica iugoslava di"},phoneMasks:["## ### ###"]},{callingCode:"+223",cca2:"ML",flag:"\ud83c\uddf2\ud83c\uddf1",name:{de:"Mali",en:"Mali",fr:"Mali",it:"Mali"},phoneMasks:["## ## ####"]},{callingCode:"+95",cca2:"MM",flag:"\ud83c\uddf2\ud83c\uddf2",name:{de:"Myanmar",en:"Myanmar",fr:"Myanmar",it:"Myanmar",ua:"\u041c'\u044f\u043d\u043c\u0430"},phoneMasks:["### ###","# ### ###","## ### ###"]},{callingCode:"+976",cca2:"MN",flag:"\ud83c\uddf2\ud83c\uddf3",name:{de:"Mongolei",en:"Mongolia",fr:"Mongolie",it:"Mongolia"},phoneMasks:["## ## ####"]},{callingCode:"+853",cca2:"MO",flag:"\ud83c\uddf2\ud83c\uddf4",name:{de:"Macao",en:"Macao",fr:"Macao",it:"Macao"},phoneMasks:["#### ####"]},{callingCode:"+1",cca2:"MP",flag:"\ud83c\uddf2\ud83c\uddf5",name:{de:"N\xf6rdliche Marianneninseln",en:"Northern Mariana Islands",fr:"\xceles Mariannes du Nord",it:"Isole Marianne settentrionali"},phoneMasks:["670 ### ####"]},{callingCode:"+596",cca2:"MQ",flag:"\ud83c\uddf2\ud83c\uddf6",name:{de:"Martinique",en:"Martinique",fr:"Martinique",it:"Martinica"},phoneMasks:["### ## ## ##"]},{callingCode:"+222",cca2:"MR",flag:"\ud83c\uddf2\ud83c\uddf7",name:{de:"Mauretanien",en:"Mauritania",fr:"Mauritanie",it:"Mauritania"},phoneMasks:["## ## ####"]},{callingCode:"+1",cca2:"MS",flag:"\ud83c\uddf2\ud83c\uddf8",name:{de:"Montserrat",en:"Montserrat",fr:"Montserrat",it:"Montserrat"},phoneMasks:["664 ### ####"]},{callingCode:"+356",cca2:"MT",flag:"\ud83c\uddf2\ud83c\uddf9",name:{de:"Malta",en:"Malta",fr:"Malte",it:"Malta"},phoneMasks:["#### ####"]},{callingCode:"+230",cca2:"MU",flag:"\ud83c\uddf2\ud83c\uddfa",name:{de:"Mauritius",en:"Mauritius",fr:"Ile Maurice",it:"Maurizio"},phoneMasks:["### ####"]},{callingCode:"+960",cca2:"MV",flag:"\ud83c\uddf2\ud83c\uddfb",name:{de:"Malediven",en:"Maldives",fr:"Maldives",it:"Maldive"},phoneMasks:["### ####"]},{callingCode:"+265",cca2:"MW",flag:"\ud83c\uddf2\ud83c\uddfc",name:{de:"Malawi",en:"Malawi",fr:"Malawi",it:"Malawi"},phoneMasks:["# ### ###","# #### ####"]},{callingCode:"+52",cca2:"MX",flag:"\ud83c\uddf2\ud83c\uddfd",name:{de:"Mexiko",en:"Mexico",fr:"Mexique",it:"Messico"},phoneMasks:["### ### ####"]},{callingCode:"+60",cca2:"MY",flag:"\ud83c\uddf2\ud83c\uddfe",name:{de:"Malaysia",en:"Malaysia",fr:"Malaisie",it:"Malaysia"},phoneMasks:["# ### ###","## ### ###","## ### ####"]},{callingCode:"+258",cca2:"MZ",flag:"\ud83c\uddf2\ud83c\uddff",name:{de:"Mosambik",en:"Mozambique",fr:"Mozambique",it:"Mozambico"},phoneMasks:["## ### ###"]},{callingCode:"+264",cca2:"NA",flag:"\ud83c\uddf3\ud83c\udde6",name:{de:"Namibia",en:"Namibia",fr:"Namibie",it:"Namibia"},phoneMasks:["## ### ####"]},{callingCode:"+687",cca2:"NC",flag:"\ud83c\uddf3\ud83c\udde8",name:{de:"Neu-Kaledonien",en:"New Caledonia",fr:"Nouvelle Cal\xe9donie",it:"Nuova Caledonia"},phoneMasks:["### ###"]},{callingCode:"+227",cca2:"NE",flag:"\ud83c\uddf3\ud83c\uddea",name:{de:"Niger",en:"Niger",fr:"Niger",it:"Niger"},phoneMasks:["## ## ####"]},{callingCode:"+672",cca2:"NF",flag:"\ud83c\uddf3\ud83c\uddeb",name:{de:"Norfolkinsel",en:"Norfolk Island",fr:"l'ile de Norfolk",it:"Isola Norfolk"},phoneMasks:["3 2# ###","3 5# ###"]},{callingCode:"+234",cca2:"NG",flag:"\ud83c\uddf3\ud83c\uddec",name:{de:"Nigeria",en:"Nigeria",fr:"Nigeria",
3296it:"Nigeria"},phoneMasks:["## ### ##","## ### ###","### ### ####"]},{callingCode:"+505",cca2:"NI",flag:"\ud83c\uddf3\ud83c\uddee",name:{de:"Nicaragua",en:"Nicaragua",fr:"Nicaragua",it:"Nicaragua"},phoneMasks:["#### ####"]},{callingCode:"+31",cca2:"NL",flag:"\ud83c\uddf3\ud83c\uddf1",name:{de:"Niederlande",en:"Netherlands",fr:"Pays-Bas",it:"Olanda"},phoneMasks:["## ### ####"]},{callingCode:"+47",cca2:"NO",flag:"\ud83c\uddf3\ud83c\uddf4",name:{de:"Norwegen",en:"Norway",fr:"Norv\xe8ge",it:"Norvegia"},phoneMasks:["4## ## ###","9## ## ###","2# ## ## ##","3# ## ## ##","5# ## ## ##","6# ## ## ##","7# ## ## ##","2# ## ## ##"]},{callingCode:"+977",cca2:"NP",flag:"\ud83c\uddf3\ud83c\uddf5",name:{de:"Nepal",en:"Nepal",fr:"N\xe9pal",it:"Nepal"},phoneMasks:["##### #####"]},{callingCode:"+674",cca2:"NR",flag:"\ud83c\uddf3\ud83c\uddf7",name:{de:"Nauru",en:"Nauru",fr:"Nauru",it:"Nauru"},phoneMasks:["### ####"]},{callingCode:"+683",cca2:"NU",flag:"\ud83c\uddf3\ud83c\uddfa",name:{de:"Niue",en:"Niue",fr:"Niue",it:"Niue"},phoneMasks:["####"]},{callingCode:"+64",cca2:"NZ",flag:"\ud83c\uddf3\ud83c\uddff",name:{de:"Neuseeland",en:"New Zealand",fr:"Nouvelle-Z\xe9lande",it:"Nuova Zelanda"},phoneMasks:["## ### ###","### ### ###","### ### ####"]},{callingCode:"+968",cca2:"OM",flag:"\ud83c\uddf4\ud83c\uddf2",name:{de:"Oman",en:"Oman",fr:"Oman",it:"Oman"},phoneMasks:["## ### ###"]},{callingCode:"+507",cca2:"PA",flag:"\ud83c\uddf5\ud83c\udde6",name:{de:"Panama",en:"Panama",fr:"Panama",it:"Panama"},phoneMasks:["### ####"]},{callingCode:"+51",cca2:"PE",flag:"\ud83c\uddf5\ud83c\uddea",name:{de:"Peru",en:"Peru",fr:"P\xe9rou",it:"Per\xf9"},phoneMasks:["### ### ###"]},{callingCode:"+689",cca2:"PF",flag:"\ud83c\uddf5\ud83c\uddeb",name:{de:"Franz\xf6sisch Polynesien",en:"French Polynesia",fr:"Polyn\xe9sie fran\xe7aise",it:"Polinesia francese"},phoneMasks:["## ## ## ##"]},{callingCode:"+675",cca2:"PG",flag:"\ud83c\uddf5\ud83c\uddec",name:{de:"Papua Neu-Guinea",en:"Papua New Guinea",fr:"Papouasie Nouvelle Guin\xe9e",it:"Papua Nuova Guinea"},phoneMasks:["### ## ###"]},{callingCode:"+63",cca2:"PH",flag:"\ud83c\uddf5\ud83c\udded",name:{de:"Philippinen",en:"Philippines",fr:"Philippines",it:"Filippine"},phoneMasks:["### ### ####"]},{callingCode:"+92",cca2:"PK",flag:"\ud83c\uddf5\ud83c\uddf0",name:{de:"Pakistan",en:"Pakistan",fr:"Pakistan",it:"Pakistan"},phoneMasks:["### ### ####"]},{callingCode:"+48",cca2:"PL",flag:"\ud83c\uddf5\ud83c\uddf1",name:{de:"Polen",en:"Poland",fr:"Pologne",it:"Polonia"},phoneMasks:["### ### ###"]},{callingCode:"+508",cca2:"PM",flag:"\ud83c\uddf5\ud83c\uddf2",name:{de:"Saint Pierre und Miquelon",en:"Saint Pierre and Miquelon",fr:"Saint-Pierre-et-Miquelon",it:"Saint Pierre e Miquelon"},phoneMasks:["## ## ##","708 ## ## ##"]},{callingCode:"+872",cca2:"PN",flag:"\ud83c\uddf5\ud83c\uddf3",name:{de:"Pitcairn",en:"Pitcairn",fr:"Pitcairn",it:"Pitcairn"},phoneMasks:["#########"]},{callingCode:"+1",cca2:"PR",flag:"\ud83c\uddf5\ud83c\uddf7",name:{de:"Puerto Rico",en:"Puerto Rico",fr:"Porto Rico",it:"Porto Rico"},phoneMasks:["787 ### ####","939 ### ####"]},{callingCode:"+970",cca2:"PS",flag:"\ud83c\uddf5\ud83c\uddf8",name:{de:"Besetzte pal\xe4stinensische Gebiete",en:"Palestinian Territory, Occupied",fr:"Territoire palestinien, occup\xe9",it:"Territori palestinesi occupati"},phoneMasks:["## ### ####"]},{callingCode:"+351",cca2:"PT",flag:"\ud83c\uddf5\ud83c\uddf9",name:{de:"Portugal",en:"Portugal",fr:"Le Portugal",it:"Portogallo"},phoneMasks:["## ### ####"]},{callingCode:"+680",cca2:"PW",flag:"\ud83c\uddf5\ud83c\uddfc",name:{de:"Palau",en:"Palau",fr:"Palau",it:"Palau"},phoneMasks:["### ####"]},{callingCode:"+595",cca2:"PY",flag:"\ud83c\uddf5\ud83c\uddfe",name:{de:"Paraguay",en:"Paraguay",fr:"Paraguay",it:"Paraguay"},phoneMasks:["### ### ###"]},{callingCode:"+974",cca2:"QA",flag:"\ud83c\uddf6\ud83c\udde6",name:{de:"Katar",en:"Qatar",fr:"Qatar",it:"Qatar"},phoneMasks:["#### ####"]},{callingCode:"+262",cca2:"RE",flag:"\ud83c\uddf7\ud83c\uddea",name:{de:"Wiedervereinigung",en:"R\xe9union",fr:"R\xe9union",it:"Riunione"},phoneMasks:["6## ## ## ##"]},{callingCode:"+40",cca2:"RO",flag:"\ud83c\uddf7\ud83c\uddf4",name:{de:"Rum\xe4nien",en:"Romania",fr:"Roumanie",it:"Romania"},phoneMasks:["## ### ####"]},{callingCode:"+381",cca2:"RS",flag:"\ud83c\uddf7\ud83c\uddf8",name:{de:"Serbien",en:"Serbia",fr:"Serbie",it:"Serbia"},phoneMasks:["## ### ####"]},{callingCode:"+7",cca2:"RU",flag:"\ud83c\uddf7\ud83c\uddfa",name:{de:"Russische F\xf6deration",en:"Russia",fr:"F\xe9d\xe9ration Russe",it:"Federazione Russa"},phoneMasks:["### ### ## ##"]},{callingCode:"+250",cca2:"RW",flag:"\ud83c\uddf7\ud83c\uddfc",name:{de:"Ruanda",en:"Rwanda",fr:"Rwanda",it:"Ruanda"},phoneMasks:["### ### ###"]},{callingCode:"+966",cca2:"SA",flag:"\ud83c\uddf8\ud83c\udde6",name:{de:"Saudi-Arabien",en:"Saudi Arabia",fr:"Arabie Saoudite",it:"Arabia Saudita"},phoneMasks:["# ### ####","# #### ####"]}
3296,{callingCode:"+677",cca2:"SB",flag:"\ud83c\uddf8\ud83c\udde7",name:{de:"Salomon-Inseln",en:"Solomon Islands",fr:"Les \xeeles Salomon",it:"Isole Salomone"},phoneMasks:["#####","### ####"]},{callingCode:"+248",cca2:"SC",flag:"\ud83c\uddf8\ud83c\udde8",name:{de:"Seychellen",en:"Seychelles",fr:"les Seychelles",it:"Seychelles"},phoneMasks:["# ### ###"]},{callingCode:"+249",cca2:"SD",flag:"\ud83c\uddf8\ud83c\udde9",name:{de:"Sudan",en:"Sudan",fr:"Soudan",it:"Sudan"},phoneMasks:["## ### ####"]},{callingCode:"+46",cca2:"SE",flag:"\ud83c\uddf8\ud83c\uddea",name:{de:"Schweden",en:"Sweden",fr:"Su\xe8de",it:"Svezia"},phoneMasks:["## ### ####"]},{callingCode:"+65",cca2:"SG",flag:"\ud83c\uddf8\ud83c\uddec",name:{de:"Singapur",en:"Singapore",fr:"Singapour",it:"Singapore"},phoneMasks:["#### ####"]},{callingCode:"+290",cca2:"SH",flag:"\ud83c\uddf8\ud83c\udded",name:{de:"Heilige Helena",en:"Saint Helena, Ascension and Tristan Da Cunha",fr:"Sainte-H\xe9l\xe8ne",it:"Sant'Elena"},phoneMasks:["#####"]},{callingCode:"+386",cca2:"SI",flag:"\ud83c\uddf8\ud83c\uddee",name:{de:"Slowenien",en:"Slovenia",fr:"Slov\xe9nie",it:"Slovenia"},phoneMasks:["## ### ###"]},{callingCode:"+47",cca2:"SJ",flag:"\ud83c\uddf8\ud83c\uddef",name:{de:"Spitzbergen und Jan Mayen",en:"Svalbard and Jan Mayen",fr:"Svalbard et Jan Mayen",it:"Svalbard e Jan Mayen"},phoneMasks:["79 ## ## ##"]},{callingCode:"+421",cca2:"SK",flag:"\ud83c\uddf8\ud83c\uddf0",name:{de:"Slowakei",en:"Slovakia",fr:"Slovaquie",it:"Slovacchia"},phoneMasks:["### ### ###"]},{callingCode:"+232",cca2:"SL",flag:"\ud83c\uddf8\ud83c\uddf1",name:{de:"Sierra Leone",en:"Sierra Leone",fr:"Sierra Leone",it:"Sierra Leone"},phoneMasks:["## ######"]},{callingCode:"+378",cca2:"SM",flag:"\ud83c\uddf8\ud83c\uddf2",name:{de:"San Marino",en:"San Marino",fr:"Saint Marin",it:"San Marino"},phoneMasks:["#### ######"]},{callingCode:"+221",cca2:"SN",flag:"\ud83c\uddf8\ud83c\uddf3",name:{de:"Senegal",en:"Senegal",fr:"S\xe9n\xe9gal",it:"Senegal"},phoneMasks:["## ### ####"]},{callingCode:"+252",cca2:"SO",flag:"\ud83c\uddf8\ud83c\uddf4",name:{de:"Somalia",en:"Somalia",fr:"Somalie",it:"Somalia"},phoneMasks:["## ### ###","# ### ###"]},{callingCode:"+597",cca2:"SR",flag:"\ud83c\uddf8\ud83c\uddf7",name:{de:"Suriname",en:"Suriname",fr:"Suriname",it:"Suriname"},phoneMasks:["### ###","### ####"]},{callingCode:"+239",cca2:"ST",flag:"\ud83c\uddf8\ud83c\uddf9",name:{de:"Sao Tome und Principe",en:"Sao Tome and Principe",fr:"Sao Tom\xe9 et Principe",it:"Sao Tome e Principe"},phoneMasks:["## #####"]},{callingCode:"+503",cca2:"SV",flag:"\ud83c\uddf8\ud83c\uddfb",name:{de:"El Salvador",en:"El Salvador",fr:"Le Salvador",it:"El Salvador"},phoneMasks:["## ## ####"]},{callingCode:"+1721",cca2:"SX",flag:"\ud83c\uddf8\ud83c\uddfd",name:{en:"Saint Martin",de:"Sankt Martin",fr:"Saint Martin",it:"Saint Martin"},phoneMasks:["721 ### ####"]},{callingCode:"+963",cca2:"SY",flag:"\ud83c\uddf8\ud83c\uddfe",name:{de:"Syrische Arabische Republik",en:"Syrian Arab Republic",fr:"R\xe9publique arabe syrienne",it:"Repubblica Araba Siriana"},phoneMasks:["## #### ###"]},{callingCode:"+268",cca2:"SZ",flag:"\ud83c\uddf8\ud83c\uddff",name:{de:"Swasiland",en:"Swaziland",fr:"Swaziland",it:"Swaziland"},phoneMasks:["## ## ####"]},{callingCode:"+1",cca2:"TC",flag:"\ud83c\uddf9\ud83c\udde8",name:{de:"Turks- und Caicosinseln",en:"Turks and Caicos Islands",fr:"\xeeles Turques-et-Ca\xefques",it:"Isole Turks e Caicos"},phoneMasks:["649 ### ####"]},{callingCode:"+235",cca2:"TD",flag:"\ud83c\uddf9\ud83c\udde9",name:{de:"Tschad",en:"Chad",fr:"Tchad",it:"Chad"},phoneMasks:["## ## ## ##"]},{callingCode:"+228",cca2:"TG",flag:"\ud83c\uddf9\ud83c\uddec",name:{de:"Gehen",en:"Togo",fr:"Aller",it:"Andare"},phoneMasks:["## ### ###"]},{callingCode:"+66",cca2:"TH",flag:"\ud83c\uddf9\ud83c\udded",name:{de:"Thailand",en:"Thailand",fr:"Tha\xeflande",it:"Tailandia"},phoneMasks:["## ### ####"]},{callingCode:"+992",cca2:"TJ",flag:"\ud83c\uddf9\ud83c\uddef",name:{de:"Tadschikistan",en:"Tajikistan",fr:"Tadjikistan",it:"Tagikistan"},phoneMasks:["## ### ####"]},{callingCode:"+690",cca2:"TK",flag:"\ud83c\uddf9\ud83c\uddf0",name:{de:"Tokelau",en:"Tokelau",fr:"Tokelau",it:"Tokelau"},phoneMasks:["####"]},{callingCode:"+670",cca2:"TL",flag:"\ud83c\uddf9\ud83c\uddf1",name:{de:"Timor-Leste",en:"Timor-Leste",fr:"Timor-Leste",it:"Timor-Leste"},phoneMasks:["### ####","### #####"]},{callingCode:"+993",cca2:"TM",flag:"\ud83c\uddf9\ud83c\uddf2",name:{de:"Turkmenistan",en:"Turkmenistan",fr:"Turkm\xe9nistan",it:"Turkmenistan"},phoneMasks:["# ### ####"]},{callingCode:"+216",cca2:"TN",flag:"\ud83c\uddf9\ud83c\uddf3",name:{de:"Tunesien",en:"Tunisia",fr:"Tunisie",it:"Tunisia"},phoneMasks:["## ### ###"]},{callingCode:"+676",cca2:"TO",flag:"\ud83c\uddf9\ud83c\uddf4",name:{de:"Tonga",en:"Tonga",fr:"Tonga",it:"Tonga"},phoneMasks:["#####"]},{callingCode:"+90",cca2:"TR",flag:"\ud83c\uddf9\ud83c\uddf7",name:{de:"T\xfcrkei",en:"Turkey",fr:"dinde",it:"tacchino"},phoneMasks:["### ### ####"]},{callingCode:"+1",cca2:"TT",flag:"\ud83c\uddf9\ud83c\uddf9",name:{de:"Trinidad und Tobago",en:"Trinidad and Tobago",fr:"Trinit\xe9-et-Tobago",it:"Trinidad e Tobago"},phoneMasks:["868 ### ####"]},{callingCode:"+688",cca2:"TV",flag:"\ud83c\uddf9\ud83c\uddfb",name:{de:"Tuvalu",en:"Tuvalu",fr:"Tuvalu",it:"Tuvalu"},phoneMasks:["#####","######"]},{callingCode:"+886",cca2:"TW",flag:"\ud83c\uddf9\ud83c\uddfc",name:{de:"Taiwan, Provinz Chinas",en:"Taiwan, Province of China",fr:"Taiwan, Province de Chine",it:"Taiwan, provincia della Cina"},phoneMasks:["### #### ##"]},{callingCode:"+255",cca2:"TZ",flag:"\ud83c\uddf9\ud83c\uddff",name:{de:"Tansania, Vereinigte Republik",en:"Tanzania, United Republic of",fr:"Tanzanie, R\xe9publique-Unie de",it:"Tanzania, Repubblica Unita di",ua:"\u0422\u0430\u043d\u0437\u0430\u043d\u0456\u044f, \u041e\u0431'\u0454\u0434\u043d\u0430\u043d\u0430 \u0440\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430"},phoneMasks:["## ### ####"]},{callingCode:"+380",cca2:"UA",flag:"\ud83c\uddfa\ud83c\udde6",name:{de:"Ukraine",en:"Ukraine",fr:"Ukraine",it:"Ucraina"},phoneMasks:["## ### ## ##"]},{callingCode:"+256",cca2:"UG",flag:"\ud83c\uddfa\ud83c\uddec",name:{de:"Uganda",en:"Uganda",fr:"Ouganda",it:"Uganda"},phoneMasks:["### ### ###"]},{callingCode:"+1",cca2:"US",flag:"\ud83c\uddfa\ud83c\uddf8",name:{de:"Vereinigte Staaten",en:"United States",fr:"\xc9tats-Unis",it:"stati Uniti"},phoneMasks:["201 ### ####","202 ### ####","203 ### ####","205 ### ####","206 ### ####","207 ### ####","208 ### ####","209 ### ####","210 ### ####","212 ### ####","213 ### ####","214 ### ####","215 ### ####","216 ### ####","217 ### ####","218 ### ####","219 ### ####","220 ### ####","223 ### ####","224 ### ####","225 ### ####","228 ### ####","229 ### ####","231 ### ####","234 ### ####","239 ### ####","240 ### ####","248 ### ####","251 ### ####","252 ### ####","253 ### ####","254 ### ####","256 ### ####","260 ### ####","262 ### ####","267 ### ####","269 ### ####","270 ### ####","272 ### ####","276 ### ####","279 ### ####","281 ### ####","301 ### ####","302 ### ####","303 ### ####","304 ### ####","305 ### ####","307 ### ####","308 ### ####","309 ### ####","310 ### ####","312 ### ####","313 ### ####","314 ### ####","315 ### ####","316 ### ####","317 ### ####","318 ### ####","319 ### ####","320 ### ####","321 ### ####","323 ### ####","325 ### ####","326 ### ####","330 ### ####","331 ### ####","332 ### ####","334 ### ####","336 ### ####","337 ### ####","339 ### ####","341 ### ####","346 ### ####","347 ### ####","350 ### ####","351 ### ####","352 ### ####","360 ### ####","361 ### ####","363 ### ####","364 ### ####","380 ### ####","385 ### ####","386 ### ####","401 ### ####","402 ### ####","404 ### ####","405 ### ####","406 ### ####","407 ### ####","408 ### ####","409 ### ####","410 ### ####","412 ### ####","413 ### ####","414 ### ####","415 ### ####","417 ### ####","419 ### ####","423 ### ####","424 ### ####","425 ### ####","430 ### ####","432 ### ####","434 ### ####","435 ### ####","440 ### ####","442 ### ####","443 ### ####","445 ### ####","447 ### ####","448 ### ####","458 ### ####","463 ### ####","464 ### ####","469 ### ####","470 ### ####","472 ### ####","475 ### ####","478 ### ####","479 ### ####","480 ### ####","484 ### ####","501 ### ####","502 ### ####","503 ### ####","504 ### ####","505 ### ####","507 ### ####","508 ### ####","509 ### ####","510 ### ####","512 ### ####","513 ### ####","515 ### ####","516 ### ####","517 ### ####","518 ### ####","520 ### ####","530 ### ####","531 ### ####","534 ### ####","539 ### ####","540 ### ####","541 ### ####","551 ### ####","557 ### ####","559 ### ####","561 ### ####","562 ### ####","563 ### ####","564 ### ####","567 ### ####","570 ### ####","571 ### ####","572 ### ####","573 ### ####","574 ### ####","575 ### ####","580 ### ####","582 ### ####","585 ### ####","586 ### ####","601 ### ####","602 ### ####","603 ### ####","605 ### ####","606 ### ####","607 ### ####","608 ### ####","609 ### ####","610 ### ####","612 ### ####","614 ### ####","615 ### ####","616 ### ####","617 ### ####","618 ### ####","619 ### ####","620 ### ####","623 ### ####","626 ### ####","628 ### ####","629 ### ####","630 ### ####","631 ### ####","636 ### ####","640 ### ####","641 ### ####","646 ### ####","650 ### ####","651 ### ####","656 ### ####","657 ### ####","659 ### ####","660 ### ####","661 ### ####","662 ### ####","667 ### ####","669 ### ####","678 ### ####","680 ### ####","681 ### ####","682 ### ####","689 ### ####","701 ### ####","702 ### ####","703 ### ####","704 ### ####","706 ### ####","707 ### ####","708 ### ####","712 ### ####","713 ### ####","714 ### ####","715 ### ####","716 ### ####","717 ### ####","718 ### ####","719 ### ####","720 ### ####","724 ### ####","725 ### ####","726 ### ####","727 ### ####","731 ### ####","732 ### ####","734 ### ####","737 ### ####","740 ### ####","743 ### ####","747 ### ####","754 ### ####","757 ### ####","760 ### ####","762 ### ####","763 ### ####","765 ### ####","769 ### ####","770 ### ####","771 ### ####","772 ### ####","773 ### ####","774 ### ####","775 ### ####","779 ### ####","781 ### ####","785 ### ####","786 ### ####","801 ### ####","802 ### ####","803 ### ####","804 ### ####","805 ### ####","806 ### ####","808 ### ####","8
329610 ### ####","812 ### ####","813 ### ####","814 ### ####","815 ### ####","816 ### ####","817 ### ####","818 ### ####","820 ### ####","826 ### ####","828 ### ####","830 ### ####","831 ### ####","832 ### ####","835 ### ####","838 ### ####","839 ### ####","840 ### ####","843 ### ####","845 ### ####","847 ### ####","848 ### ####","850 ### ####","854 ### ####","856 ### ####","857 ### ####","858 ### ####","859 ### ####","860 ### ####","862 ### ####","863 ### ####","864 ### ####","865 ### ####","870 ### ####","872 ### ####","878 ### ####","901 ### ####","903 ### ####","904 ### ####","906 ### ####","907 ### ####","908 ### ####","909 ### ####","910 ### ####","912 ### ####","913 ### ####","914 ### ####","915 ### ####","916 ### ####","917 ### ####","918 ### ####","919 ### ####","920 ### ####","925 ### ####","928 ### ####","929 ### ####","930 ### ####","931 ### ####","934 ### ####","936 ### ####","937 ### ####","938 ### ####","940 ### ####","941 ### ####","943 ### ####","945 ### ####","947 ### ####","948 ### ####","949 ### ####","951 ### ####","952 ### ####","954 ### ####","956 ### ####","959 ### ####","970 ### ####","971 ### ####","972 ### ####","973 ### ####","978 ### ####","979 ### ####","980 ### ####","983 ### ####","984 ### ####","985 ### ####","986 ### ####","989 ### ####"]},{callingCode:"+598",cca2:"UY",flag:"\ud83c\uddfa\ud83c\uddfe",name:{de:"Uruguay",en:"Uruguay",fr:"Uruguay",it:"Uruguay"},phoneMasks:["# ### ## ##"]},{callingCode:"+998",cca2:"UZ",flag:"\ud83c\uddfa\ud83c\uddff",name:{de:"Usbekistan",en:"Uzbekistan",fr:"Ouzb\xe9kistan",it:"Uzbekistan"},phoneMasks:["## ### ####"]},{callingCode:"+379",cca2:"VA",flag:"\ud83c\uddfb\ud83c\udde6",name:{de:"Heiliger Stuhl (Staat der Vatikanstadt)",en:"Holy See (Vatican City State)",fr:"Saint-Si\xe8ge (\xc9tat de la Cit\xe9 du Vatican)",it:"Santa Sede (Stato della Citt\xe0 del Vaticano)"},phoneMasks:["06 698#####"]},{callingCode:"+1",cca2:"VC",flag:"\ud83c\uddfb\ud83c\udde8",name:{de:"St. Vincent und die Grenadinen",en:"Saint Vincent and the Grenadines",fr:"Saint-Vincent-et-les-Grenadines",it:"Saint Vincent e Grenadine"},phoneMasks:["784 ### ####"]},{callingCode:"+58",cca2:"VE",flag:"\ud83c\uddfb\ud83c\uddea",name:{de:"Venezuela",en:"Venezuela, Bolivarian Republic of",fr:"Venezuela",it:"Venezuela"},phoneMasks:["### ### ####"]},{callingCode:"+1",cca2:"VG",flag:"\ud83c\uddfb\ud83c\uddec",name:{de:"Virgin Inseln, Britisch",en:"Virgin Islands, British",fr:"\xceles Vierges britanniques",it:"Isole Vergini britanniche"},phoneMasks:["284 ### ####"]},{callingCode:"+1",cca2:"VI",flag:"\ud83c\uddfb\ud83c\uddee",name:{de:"Jungferninseln, USA",en:"Virgin Islands, U.S.",fr:"\xceles Vierges am\xe9ricaines, \xc9tats-Unis",it:"Isole Vergini, Stati Uniti"},phoneMasks:["340 ### ####"]},{callingCode:"+84",cca2:"VN",flag:"\ud83c\uddfb\ud83c\uddf3",name:{de:"Vietnam",en:"Viet Nam",fr:"Viet Nam",it:"Viet Nam",ua:"\u0412'\u0454\u0442\u043d\u0430\u043c"},phoneMasks:["### #### ###"]},{callingCode:"+678",cca2:"VU",flag:"\ud83c\uddfb\ud83c\uddfa",name:{de:"Vanuatu",en:"Vanuatu",fr:"Vanuatu",it:"Vanuatu"},phoneMasks:["#####","## #####"]},{callingCode:"+681",cca2:"WF",flag:"\ud83c\uddfc\ud83c\uddeb",name:{de:"Wallis und Futuna",en:"Wallis and Futuna",fr:"Wallis et Futuna",it:"Wallis e Futuna"},phoneMasks:["### ###"]},{callingCode:"+685",cca2:"WS",flag:"\ud83c\uddfc\ud83c\uddf8",name:{de:"Samoa",en:"Samoa",fr:"Samoa",it:"Samoa"},phoneMasks:["## ####"]},{callingCode:"+967",cca2:"YE",flag:"\ud83c\uddfe\ud83c\uddea",name:{de:"Jemen",en:"Yemen",fr:"Y\xe9men",it:"Yemen"},phoneMasks:["# ### ###","## ### ###","### ### ###"]},{callingCode:"+262",cca2:"YT",flag:"\ud83c\uddfe\ud83c\uddf9",name:{de:"Mayotte",en:"Mayotte",fr:"Mayotte",it:"Mayotte"},phoneMasks:["269 ### ###","639 ### ###"]},{callingCode:"+27",cca2:"ZA",flag:"\ud83c\uddff\ud83c\udde6",name:{de:"S\xfcdafrika",en:"South Africa",fr:"Afrique du Sud",it:"Sud Africa"},phoneMasks:["## ### ####"]},{callingCode:"+260",cca2:"ZM",flag:"\ud83c\uddff\ud83c\uddf2",name:{de:"Sambia",en:"Zambia",fr:"Zambie",it:"Zambia"},phoneMasks:["## ### ####"]},{callingCode:"+263",cca2:"ZW",flag:"\ud83c\uddff\ud83c\uddfc",name:{de:"Zimbabwe",en:"Zimbabwe",fr:"Zimbabwe",it:"Zimbabwe"},phoneMasks:["# ######"]}],w6=(0,Ge.default)(Uc.default).withConfig({displayName:"country_selector_input__SearchInput",componentId:"sc-y20lzc-0"})(["border-radius:8px;border:1px solid ",";padding:12px 16px;margin:16px;",";"],Qe.GRAY_BORDER,"outline-width: 0;"),C6=(0,Ge.default)(Da.default).withConfig({displayName:"country_selector_input__CountrySelector",componentId:"sc-y20lzc-1"})(["border-radius:8px;border:1px solid ",";padding:12px 16px;margin-right:8px;align-items:center;justify-content:center;flex-direction:row;"],({$error:e,$focused:t})=>e?Qe.CRIMSON_2:t?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER),j6=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__CountryCode",componentId:"sc-y20lzc-2"})(["color:",";"],Qe.TEXT_DARK),I6=(0,Ge.default)(Da.default).withConfig({displayName:"country_selector_input__CountryItem",componentId:"sc-y20lzc-3"})(["padding:8px;margin:0px 16px;flex-direction:row;align-items:center;background-color:",";"],({selected:e})=>e?Qe.GRAY_4:"transparent"),T6=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__Flag",componentId:"sc-y20lzc-4"})(["font-size:24px;margin-right:8px;"]),E6=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__CountryName",componentId:"sc-y20lzc-5"})(["font-size:16px;color:",";
3296"],Qe.TEXT_DARK),N6=({focused:e,error:t,countryCode:n,onCountryCodeChange:i,locale:o})=>{const[a,s]=(0,K.useState)(!1),[r,l]=(0,K.useState)(""),d=(0,K.useMemo)(()=>b6.filter(e=>e.name[o].toLowerCase().includes(r.toLowerCase())).sort((e,t)=>e.name[o].localeCompare(t.name[o],o)),[r,o]),c=(0,K.useMemo)(()=>{const e=b6.find(e=>e.cca2===n);if(!e)return"";const{flag:t,callingCode:i}=e;return`${t} ${i}`},[n]),u=(0,K.useCallback)(()=>{l(""),s(!1)},[]),p=(0,K.useCallback)(()=>{s(!0)},[d,n]),m=(0,K.useCallback)(e=>{i(e),u()},[i,u]),f=(0,K.useCallback)(({item:e})=>(0,X.jsxs)(I6,{selected:e.cca2===n,onPress:()=>m(e.cca2),children:[(0,X.jsx)(T6,{children:e.flag}),(0,X.jsx)(E6,{children:e.name[o]})]}),[m,n,o]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(C6,{onPress:p,$focused:e,$error:t,children:[(0,X.jsx)(j6,{children:c}),(0,X.jsx)(Pa.default,{name:"chevron-down",size:18,set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,color:Qe.TEXT_DARK})]}),a&&(0,X.jsxs)(zw,{title:"Select country",isOpen:a,onClose:u,onModalHide:u,displayCloseButton:!0,children:[(0,X.jsx)(w6,{placeholder:"Search for country...",value:r,onChangeText:l}),(0,X.jsx)(Lj.default,{data:d,keyExtractor:e=>e.cca2,renderItem:f})]})]})};N6.propTypes={focused:ze().bool,error:ze().bool,countryCode:ze().string,onCountryCodeChange:ze().func,locale:ze().string.isRequired};const k6=N6;const R6=["en","de","it","fr"],S6=(0,Ge.default)(qe.default).withConfig({displayName:"phone_number_input__Container",componentId:"sc-sf30du-0"})(["flex-direction:row;margin-top:20px;"]),A6=(0,Ge.default)(ap.default).withConfig({displayName:"phone_number_input__StyledInput",componentId:"sc-sf30du-1"}
3296)(["height:28px;flex:1;min-height:67px;font-size:14px;line-height:19px;color:","};padding:12px 16px;border-radius:8px;border:1px solid ",";",";"],Qe.TEXT_DARK,({$error:e,$focused:t})=>e?Qe.CRIMSON_2:t?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER,"outline-width: 0;"),P6=(0,Ge.default)(Be.default).withConfig({displayName:"phone_number_input__ErrorText",componentId:"sc-sf30du-2"})(["color:",";font-size:12px;flex-wrap:wrap;flex-shrink:1;margin-top:4px;"],Qe.CRIMSON_1),D6=({value:e,defaultValue:t,defaultCountryCode:n="DE",error:i,testID:o,onChange:a,locale:s="en"})=>{const[r,l]=(0,K.useState)(!1),[d,c]=(0,K.useState)(n),u=(0,K.useMemo)(()=>(e=>{const t=b6.find(t=>t.cca2===e);if(!t)throw new Error("Country code is not valid: "+e);return t})(d),[d]),p=(0,K.useMemo)(()=>((e,t)=>e.startsWith(t)?e.slice(t.length):e)(e,u.callingCode),[e,u]),m=(0,K.useMemo)(()=>R6.includes(s)?s:"en",[s]);(0,K.useEffect)(()=>{if(!t)return;const e=function(e){var t;const n=[],i=e.replace(/\s/g,"");b6.forEach(e=>{i.startsWith(e.callingCode.replace(/[\s#]/g,""))&&n.push(e)});let o=n[0];if(n.length>1){o=null;const e=n[0].callingCode;for(let t=0;t<n.length;t++)n[t].phoneMasks.map(a=>{const s=i.substring(e.length,a.replace(/\D/g,"").length+e.length);s&&a.replace(/\D/g,"")&&s===a.replace(/\D/g,"")&&(o="CA"===n[t].cca2||"US"===n[t].cca2?Object.assign({},n[t],{phoneMasks:[a.replace(/\d/g,"#").trim()]}):Object.assign({},n[t],{phoneMasks:[a.replace(/[0-9]/g,"").trim()]}))})}return null===(t=o)||void 0===t?void 0:t.cca2}(t);e&&(c(e),a(t))},[t]);const f=(0,K.useCallback)(()=>l(!0),[]),g=(0,K.useCallback)(()=>l(!1),[]),h=(0,K.useCallback)(e=>{c(e),a("")},[c,a]),_=(0,K.useCallback)((e,t)=>{a(u.callingCode+t)},[u,a]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(S6,{children:[(0,X.jsx)(k6,{error:!!i,focused:r,countryCode:d,onCountryCodeChange:h,locale:m}),(0,X.jsx)(A6,{autoFocus:!0,value:p,$focused:r,$error:!!i,onChangeText:_,onFocus:f,showObfuscatedValue:!0,onBlur:g,placeholder:"",keyboardType:"phone-pad",testID:o})]}),!!i&&(0,X.jsx)(P6,{children:i})]})};D6.propTypes={value:ze().string,defaultValue:ze().string,defaultCountryCode:ze().string,error:ze().string,testID:ze().string,onChange:ze().func,locale:ze().string};const M6=D6,O6=(0,Ge.default)(qe.default).withConfig({displayName:"edit_mobile__Container",componentId:"sc-2vyaiw-0"})(["flex:1;"]),z6=(0,Ge.default)(rf.default).withConfig({displayName:"edit_mobile__Title",componentId:"sc-2vyaiw-1"})(["font-weight:700;font-size:18px;line-height:25px;margin-bottom:32px;color:",";"],Qe.TEXT_DARK),L6=(0,Ge.default)(rf.default).withConfig({displayName:"edit_mobile__Label",componentId:"sc-2vyaiw-2"})(["font-size:12px;color:",";margin-bottom:8px;"],Qe.TEXT_DARK),q6=(0,Ge.default)(ms).withConfig({displayName:"edit_mobile__SaveButton",componentId:"sc-2vyaiw-3"})(["margin-top:auto;"]);const B6=function(){const e=(0,Ks.useHistory)(),{isConnected:t}=(0,ta.useNetInfo)(),{session:{currentUser:n,setUserMobile:i,locale:o,countryCCA2:a},analytics:{autoTrack:s},toast:{showToastMessage:r}}=lt(),[l,d]=(0,K.useState)(n.mobile),[c,u]=(0,K.useState)(),[p,m]=(0,K.useState)(!1),{requestOtp:f,loading:g}=t6(),[h,_]=(0,K.useState)(""),{providerUpdateMobile:x,loading:y}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(N2);return{providerUpdateMobile:(0,K.useCallback)(t=>e({variables:t,context:{apiVersion:3}}).then(({data:e})=>null===e||void 0===e?void 0:e.updateMobile),[]),loading:t}})(),v=(0,K.useCallback)(async t=>{try{s("User clicked on save on edit mobile page"),u(void 0),_("");const{success:n,mobile:o,extendedErrors:a}=await x({mobile:l,otp:t});if(n)return d(o),i(o),s("Mobile phone has been saved successfully"),e.goBack(),!0;if(null!==a&&void 0!==a&&a[0]){const e=null===a||void 0===a?void 0:a[0];return e.code===g6||e.code===h6?_(e.message):(m(!1),u(i18n.t(`provider.update.mobile.error.${e.code}`)),s(`Mobile phone has not beed saved, error: ${e.code}`)),!1}}catch(c){return console.error(c),r({message:i18n.t("provider.generic.error")}),!1}},[x,i,s,e,l,u]),b=(0,K.useCallback)(async()=>{if(!g)try{const{success:t,errors:n}=await f(f6.UpdateMobile);if(t)m(!0);else{var e;const t=null===n||void 0===n||null===(e=n[0])||void 0===e?void 0:e.message;r({message:t||i18n.t("provider.generic.error")})}}catch(c){console.error(c),r({message:i18n.t("provider.generic.error")})}},[f,r,g]),w=(0,K.useCallback)(()=>{m(!1),_("")},[]),C=sc(l),j=l===n.mobile,I=!t||g||y||!C||!!c||j,T=C?c:i18n.t("edit_profile.content.edit_mobile.invali
3296d");return(0,X.jsxs)(O6,{children:[(0,X.jsx)(z6,{children:i18n.t("edit_profile.content.edit_mobile.title")}),(0,X.jsx)(L6,{children:i18n.t("edit_profile.content.edit_mobile.mobile_number")}),(0,X.jsx)(M6,{defaultValue:n.mobile,defaultCountryCode:a,value:l,onChange:e=>{u(void 0),d(e.trim())},error:T||"",locale:o,testID:"EditMobile:mobile"}),(0,X.jsx)(q6,{onPress:b,disabled:I,centered:!0,loading:g,children:i18n.t("edit_profile.content.edit_mobile.save_changes")}),p&&(0,X.jsx)(l6,{title:i18n.t("edit_profile.content.edit_mobile.otp_modal.title"),isOpen:!0,onClose:w,save:v,resendOtp:f,otpAction:f6.UpdateMobile,saving:y,error:h,setError:_})]})},G6=(0,Ge.default)(qe.default).withConfig({displayName:"confirm_customer_cancellation__CustomerList",componentId:"sc-f5g7lv-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4),U6=(0,Ge.default)(rf.default).withConfig({displayName:"confirm_customer_cancellation__MetroChangeWarning",componentId:"sc-f5g7lv-1"})(["margin-top:35px;text-align:center;color:",";"],Qe.GRAY_1),$6=(0,Ge.default)(rf.default).withConfig({displayName:"confirm_customer_cancellation__WarningText",componentId:"sc-f5g7lv-2"})(["font-weight:300;font-size:16px;color:",";"],Qe.TEXT_MEDIUM),F6=(0,Ge.default)($6).withConfig({displayName:"confirm_customer_cancellation__WarningTextBold",componentId:"sc-f5g7lv-3"})(["font-weight:700;color:",";"],Qe.BLACK);const H6=function({customers:e,seePayouts:t,showPrice:n,oldPostcode:i,newPostcode:o,loading:a,handleContinue:s,onClose:r}){return(0,X.jsx)(Mq,{title:i18n.t("address.change.active.customer.title",{count:e.length}),primaryButtonTitle:i18n.t("address.change.relationship.cancellation.yes.continue"),primaryButtonClick:s,secondaryButtonTitle:i18n.t("address.change.relationship.cancellation.no.cancel"),secondaryButtonClick:r,warning:(0,X.jsx)(U6,{children:ee(i18n.t("address.change.metro.change.warning",{oldPostcode:i,newPostcode:o}),[i,o],$6,F6)}),showContinueTitle:i18n.t("address.change.relationship.cancellation.confirmation.title"),loading:a,children:(0,X.jsx)(G6,{children:e.map((i,o)=>(0,X.jsx)(dV,{customer:i,seePayouts:t,showPrice:n,isLastItem:e.length-1===o},i.id))})})},W6=(0,Ge.default)(ts).withConfig({displayName:"customer_list__ItemContainer",componentId:"sc-1qhmzxj-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:10px 0px 10px 10px;",""],e=>!e.borderless&&`\n    border-bottom-color: ${Qe.GRAY_4};\n    border-bottom-width: 1px;\n  `),V6=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list__CustomerDetails",componentId:"sc-1qhmzxj-1"})(["flex-direction:column;align-items:flex-start;"]),K6=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list__CustomerName",componentId:"sc-1qhmzxj-2"})(["font-weight:600;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),Y6=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list__EventDetails",componentId:"sc-1qhmzxj-3"})(["font-weight:400;font-size:12px;line-height:16px;margin-top:4px;color:",";"],Qe.TEXT_MEDIUM),X6=(0,Ge.default)(qe.default).withConfig({displayName:"customer_list__RightArea",componentId:"sc-1qhmzxj-4"})(["flex-direction:row;align-items:center;padding:0 10px;"]),Z6=(0,Ge.default)(rf.default).withConfig({displayName:"customer_list__Price",componentId:"sc-1qhmzxj-5"})(["font-weight:500;font-size:13px;line-height:16px;padding-bottom:3px;"]);const Q6=function({event:e,isLastItem:t}){return(0,X.jsxs)(W6,{borderless:t,children:[(0,X.jsxs)(V6,{children:[(0,X.jsx)(K6,{children:e.customerName}),(0,X.jsx)(Y6,{children:(n=e.starttime,`${C.DateTime.fromISO(n).toFormat("dd.MM.yyyy")} - ${C.DateTime.fromISO(n).toLocaleString(C.DateTime.TIME_SIMPLE)}`)})]}),(0,X.jsx)(X6,{children:(0,X.jsx)(Z6,{children:fh(e.fee,{withSymbol:!0})})})]});var n},J6=(0,Ge.default)(qe.default).withConfig({displayName:"fee_warning__CustomerList",componentId:"sc-1wdcsfo-0"})(["margin-top:32px;border:1px solid ",";border-radius:12px;"],Qe.GRAY_4),e5=(0,Ge.default)(rf.default).withConfig({displayName:"fee_warning__FeeTotal",componentId:"sc-1wdcsfo-1"})(["margin-top:20px;text-align:center;font-size:18px;color:",";font-weight:500;
3296"],Qe.GRAY_0);const t5=function({cancellationFee:e,handleContinue:t,onClose:n,loading:i}){const o=e.reduce((e,t)=>e+=t.fee,0),a=[...e].sort((e,t)=>new Date(e.starttime).getTime()-new Date(t.starttime).getTime());return(0,X.jsx)(Mq,{title:i18n.t("address.change.fee.warning.title"),description:i18n.t("address.change.fee.warning.description"),primaryButtonTitle:i18n.t("address.change.relationship.cancellation.yes.continue"),primaryButtonClick:t,secondaryButtonTitle:i18n.t("address.change.relationship.cancellation.no.cancel"),secondaryButtonClick:n,warning:(0,X.jsx)(e5,{children:i18n.t("address.change.fee.total",{total:fh(o,{withSymbol:!0})})}),showContinueTitle:i18n.t("address.change.relationship.cancellation.confirmation.title"),loading:i,children:(0,X.jsx)(J6,{children:a.map((e,t)=>(0,X.jsx)(Q6,{event:e,isLastItem:a.length-1===t},e.customerName))})})},n5="step_relationship_cancellation_confirmation",i5="step_fee_warning",o5="step_success",a5="step_error",s5=(0,Ge.default)(qe.default).withConfig({displayName:"next_steps__Container",componentId:"sc-173hck0-0"})(["background-color:",";margin:50px 16px 20px 16px;display:flex;flex:1;"],Qe.WHITE),r5={[n5]:"address.change.confirm.customer.cancellation",[i5]:"address.change.relationships.cancellation.fee.warning",[o5]:"address.updated",[a5]:"address.not.updated"};const l5=function({onClose:e,isOpen:t,oldPostcode:n,errorOnSave:i,customers:o,street:a,postcode:s,town:r,metroChanged:l,cancelAddressChanges:d}){var c,u;const[p,m]=(0,K.useState)(0!==(null===o||void 0===o?void 0:o.length)&&l?n5:o5),[f,g]=(0,K.useState)(!1),{isDesktop:h}=uu(),{session:{settings:_,fetchUserAddress:x},analytics:{autoTrack:y}}=lt();(0,K.useEffect)(()=>{m(0!==(null===o||void 0===o?void 0:o.length)&&l?n5:o5),i&&m(a5)},[null===o||void 0===o?void 0:o.length,i,l]);const{providerUpdateAddress:v}=R2(),{loading:b,cancellationFee:w}=A2();if(b)return(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS});const C=async()=>{var e,t;g(!0);const n=await v({street:a,postcode:s,town:r});null!==n&&void 0!==n&&null!==(e=n.data)&&void 0!==e&&null!==(t=e.providerUpdateAddress)&&void 0!==t&&t.success?(y("User saved address successfully"),m(o5),await x()):(y("Could not save changed address successfully"),m(a5)),g(!1)},j=()=>{d(),e(),y("User clicked on cancel address changes button")},I=()=>{y("User clicked on alright button from the result screen"),e()},T=null===_||void 0===_||null===(c=_.viewPermissions)||void 0===c?void 0:c.seePayouts,E=null===_||void 0===_||null===(u=_.featureFlags)||void 0===u?void 0:u.hidePricesFromProvider;return(0,X.jsx)(zw,{isOpen:t,onClose:j,displayCloseButton:!0,size:h?"normal":"big",title:i18n.t(r5[p]),children:(0,X.jsxs)(s5,{children:[p===n5&&(0,X.jsx)(H6,{customers:o,seePayouts:T,showPrice:!E,oldPostcode:n,newPostcode:s,loading:f,handleContinue:()=>{y("User clicked on confirm cancel active relationship button"),null!==w&&void 0!==w&&w.length?(m(i5),y("User visited the fee warning screen")):C()},onClose:j}),p===i5&&(0,X.jsx)(t5,{cancellationFee:w,handleContinue:()=>{y("User clicked on confirm cancel relationship cancellation fee button"),C()},onClose:j,loading:f}),p===a5&&(0,X.jsx)(_3,{title:i18n.t("address.change.unsuccess.title"),description:i18n.t("address.change.unsuccess.message"),primaryButtonTitle:i18n.t("address.change.result.confirmation"),primaryButtonClick:I,primaryButtonEventAction:"close address changed from error screen"}),p===o5&&(0,X.jsx)(_3,{title:i18n.t("address.change.success.title"),description:l?i18n.t("address.change.success.message"):"",primaryButtonTitle:i18n.t("address.change.result.confirmation"),primaryButtonClick:I,primaryButtonEventAction:"close adress changed success screen",success:!0})]})})},d5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_address__Container",componentId:"sc-tmhicx-0"})(["flex:1;"]),c5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_address__Title",componentId:"sc-tmhicx-1"})(["font-weight:700;font-size:18px;line-height:25px;margin-bottom:32px;color:",";"],Qe.TEXT_DARK),u5=(0,Ge.default)(ms).withConfig({displayName:"edit_address__SaveButton",componentId:"sc-tmhicx-2"})(["margin-top:auto;"]),p5=(0,Ge.default)(wp).withConfig({displayName:"edit_address__Input",componentId:"sc-tmhicx-3"})(["margin-bottom:10px;"]);const m5=function(){const{session:{currentUser:e,fetchUserAddress:t},customers:{fetchCustomers:n},analytics:{autoTrack:i}}=lt(),{isConnected:o}=(0,ta.useNetInfo)(),{address:a}=e,s=a.address1,r=a.postcode,l=a.town,[d,c]=(0,K.useState)(!0),[u,p]=(0,K.useState)(!1),[m,f]=(0,K.useState)(!1),[g,h]=(0,K.useState)([]),[_,x]=(0,K.useState)(s),[y,v]=(0,K.useState)(r),[b,w]=(0,K.useState)(null===a||void 0===a?void 0:a.town),[C,j]=(0,K.useState)(!1),[I,T]=(0,K.useState)(""),[E,N]=(0,K.useState)(!1),{providerUpd
3296ateAddress:k,error:R}=R2(),{postcodeIsInNewMetro:S,loading:A}=((e,t)=>{const[n,{loading:i}]=(0,kn.useLazyQuery)(P2,{fetchPolicy:"no-cache"});return{postcodeIsInNewMetro:async i=>{const{data:o,error:a}=await n({variables:{postcode:i}});return a?t(a):o&&e(o),o},loading:i}})(({currentProvider:{postcodeIsInNewMetro:e}})=>{j(e),e?P(y):(N(!1),M())},e=>{N(!1),T(e?i18n.t("edit_profile.content.edit_postcode.invalid"):"")}),{canChangeMetro:P,loading:D}=((e,t)=>{const[n,{loading:i}]=(0,kn.useLazyQuery)(D2,{fetchPolicy:"no-cache"});return{canChangeMetro:async i=>{const{data:o,error:a}=await n({variables:{postcode:i},context:{apiVersion:3}});return a?t(a):o&&e(o),o},loading:i}})(({canChangeMetro:e})=>{N(!1),e.allowed?0===(null===g||void 0===g?void 0:g.length)?M():f(!0):T(e.message||i18n.t("edit_profile.content.edit_postcode.invalid"))},e=>{N(!1),T((null===e||void 0===e?void 0:e.message)||i18n.t("edit_profile.content.edit_postcode.invalid"))});if((0,K.useEffect)(()=>{!async function(){c(!0);const e=await n(VW);h(e),c(!1)}()},[]),(0,K.useEffect)(()=>{R&&(m||f(!0),p(!1))},[R]),d)return(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS});const M=async()=>{var e,n;p(!0);const o=await k({street:_,postcode:y,town:b});null!==o&&void 0!==o&&null!==(e=o.data)&&void 0!==e&&null!==(n=e.providerUpdateAddress)&&void 0!==n&&n.success&&(await t(),m||f(!0),i("User saved address successfully")),p(!1)},O=A||D||E,z=u||!_||!y||!b||_===s&&y===r&&b===l||O||!ec(y)||!!I;return(0,X.jsxs)(d5,{children:[(0,X.jsx)(c5,{children:i18n.t("edit_profile.content.edit_address.title")}),(0,X.jsx)(p5,{label:i18n.t("edit_profile.content.edit_address.street"),value:_,onChange:x}),(0,X.jsx)(p5,{label:i18n.t("edit_profile.content.edit_address.postcode"),value:y,onChange:e=>{v(e),I&&T("")},error:ec(y)?I:i18n.t("edit_profile.content.edit_postcode.invalid")}),(0,X.jsx)(p5,{label:i18n.t("edit_profile.content.edit_address.metro"),value:b,onChange:w}),(0,X.jsx)(u5,{onPress:()=>{N(!0),S(y)},disabled:z||!o,loading:u||O,centered:!0,children:i18n.t("edit_profile.content.edit_address.save_changes")}),(0,X.jsx)(l5,{isOpen:m&&!O,oldPostcode:r,street:_,postcode:y,town:b,metroChanged:C,customers:g,onClose:()=>{f(!1)},cancelAddressChanges:()=>{w(l),v(r),x(s),j(!1)},errorOnSave:R})]})};var f5=n(90745);const g5=["render","value","onDateChange"],h5=(0,Ge.default)(qe.default).withConfig({displayName:"date_picker__CalendarContainer",componentId:"sc-1hvlnb8-0"})(["flex:1;"]),_5=e=>{let{render:t,value:n,onDateChange:i}=e,o=(0,A.default)(e,g5);const[a,s]=(0,K.useState)(!1),r=null!==n&&void 0!==n&&n.isValid?n.toISODate():null,[l,d]=(0,K.useState)(r),c=(0,K.useMemo)(()=>r?C.DateTime.fromISO(r).set({hour:12}).toJSDate():new Date,[r]),u=()=>{s(!1)};return(0,X.jsxs)(X.Fragment,{children:[t&&t({openCalendar:()=>s(!0)}),a&&(0,X.jsx)(dL,{isOpen:a,onConfirm:()=>{i(l),u()},onClose:u,size:"normal",disableConfirmButton:!l,children:(0,X.jsx)(h5,{children:(0,X.jsx)(f5.default,Object.assign({onDateChange:e=>{d(e?C.DateTime.fromJSDate(e).toISODate():null)},initialDate:c,selectedStartDate:c,selectedDayStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS},height:400,width:400,textStyle:{fontSize:14}},o))})})]})},x5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_date_of_birth__Container",componentId:"sc-1yk0oq3-0"})(["flex:1;"]),y5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_date_of_birth__Wrapper",componentId:"sc-1yk0oq3-1"})(["flex:1;"]),v5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_date_of_birth__Title",componentId:"sc-1yk0oq3-2"})(["font-weight:700;font-size:18px;margin-bottom:","px;color:",";"],32,Qe.TEXT_DARK),b5=(0,Ge.default)(ms).withConfig({displayName:"edit_date_of_birth__SaveButton",componentId:"sc-1yk0oq3-3"})(["margin-top:auto;"]),w5=(0,Ge.default)(ts).withConfig({displayName:"edit_date_of_birth__InputContainer",componentId:"sc-1yk0oq3-4"})(["flex-direction:row;min-width:150px;"]),C5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_date_of_birth__Date",componentId:"sc-1yk0oq3-5"})(["flex:1;padding:15px 10px;border:1px solid ",";border-top-left-radius:8px border-bottom-left-radius:8px;border-right-width:0px;"],Qe.GRAY_BORDER),j5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_date_of_birth__DateText",componentId:"sc-1yk0oq3-6"})(["color:",";font-size:13px;"],Qe.TEXT_LIGHT),I5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_date_of_birth__CalendarIconContainer",componentId:"sc-1yk0oq3-7"})(["background-color:",";align-items:center;justify-content:center;padding:0px 10px;border-top-right-radius:8px;border-bottom-right-radius:8px;"],Qe.GREEN_SUMMER_GRASS),T5=(0,Ge.default)(Pa.default).attrs({set:"MaterialCommunityIcons",name:"calendar-outline",size:20,color:Qe.WHITE}).withConfig({displayName:"edit_date_of_birth__CalendarIcon",componentId:"sc-1yk0oq3-8"})(["opacity:0.7;"]),E5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_date_of_birth__ButtonText",componentId:"sc-1yk0oq3-9"})(["color:",";font-weight:bold;text-align:center;font-size:16px;max-width:100%;"],Qe.WHITE);const N5=function(){const e=lu(),t=(0,Ks.useHistory)(),{isConnected:n}=(0,ta.useNetInfo)(),{session:{currentUser:i,setUserBirthDate:o},analytics:{autoTrack:a},toast:{showToastMessage:s}}=lt(),[r,l]=(0,K.useState)(i.birthdate?C.DateTime.fromISO(i.birthdate):C.DateTime.now()),[d,c]=(0,K.useState)(""),{updateBirthplace:u,saving:p}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(L2);return{updateBirthplace:({dob:t})=>e({variables:{dob:t},context:{apiVersion:3}}),saving:t}})();i.birthdate&&e("/provider/edit_profile");const m=0===Math.floor(r.diff(C.DateTime.fromISO(i.birthdate),"days").days);return(0,X.jsxs)(x5,{children:[(0,X.jsx)(_5,{onDateChange:e=>{c(void 0),l(C.DateTime.fromISO(e))},value:r,render:({openCalendar:e})=>(0,X.jsxs)(y5,{children:[(0,X.jsx)(v5,{children:i18n.t("edit_profile.content.edit_date_of_birth.title")}),(0,X.jsxs)(w5,{onPress:e,children:[(0,X.jsx)(C5,{children:(0,X.jsx)(j5,{children:r.toFormat("dd/LL/yyyy")})}),(0,X.jsx)(I5,{children:(0,X.jsx)(T5,{})})]})]})}),(0,X.jsxs)(b5,{onPress:async()=>{var e,n;a("User clicked on save on edit birthdate page"),c(void 0);const i=await u({dob:r});if(null!==i&&void 0!==i&&null!==(e=i.data)&&void 0!==e&&null!==(n=e.updateDob)&&void 0!==n&&n.success)s({message:i18n.t("provider.update.birthdate.success"),type:"success"}),o(r.toISODate()),a("Date of birth has been saved successfully"),t.goBack();else{var l,d,p,m;const e=null===i||void 0===i||null===(l=i.data)||void 0===l||null===(d=l.updateDob)||void 0===d||null===(p=d.errors)||void 0===p||null===(m=p[0])||void 0===m?void 0:m.code;e&&c(i18n.t("provider.update.birthdate.error")),a(`Date of birth has not beed saved, error: ${e}`)}},disabled:!n||p||d||m,centered:!0,children:[p&&(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS,style:{marginRight:5}}),(0,X.jsx)(E5,{children:i18n.t("edit_profile.content.edit_date_of_birth.save_changes")}
3296)]})]})},k5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_place_of_birth__Container",componentId:"sc-1p7j19p-0"})(["flex:1;"]),R5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_place_of_birth__Title",componentId:"sc-1p7j19p-1"})(["font-weight:700;font-size:18px;line-height:25px;margin-bottom:","px;color:",";"],32,Qe.TEXT_DARK),S5=(0,Ge.default)(ms).withConfig({displayName:"edit_place_of_birth__SaveButton",componentId:"sc-1p7j19p-2"})(["margin-top:auto;"]),A5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_place_of_birth__ButtonText",componentId:"sc-1p7j19p-3"})(["color:",";font-weight:bold;text-align:center;font-size:16px;max-width:100%;"],Qe.WHITE),P5=sp.default.create({pickerStyle:{borderWidth:1,borderColor:Qe.GRAY_3,borderRadius:8,paddingLeft:10,marginTop:15,backgroundColor:Qe.GRAY_4,fontWeight:400,fontSize:14,lineHeight:16,color:Qe.TEXT_DARK},pickerItemStyle:{color:Qe.TEXT_DARK,fontSize:13,marginTop:5,marginBottom:5}});const D5=function(){const e=lu(),t=(0,Ks.useHistory)(),{isConnected:n}=(0,ta.useNetInfo)(),{session:{currentUser:i,setUserBirthCountry:o,setUserBirthPlace:a},analytics:{autoTrack:s},toast:{showToastMessage:r}}=lt(),{countries:l,loading:d}=O2(),[c,u]=(0,K.useState)(i.birthPlace||""),[p,m]=(0,K.useState)(i.birthCountry||""),[f,g]=(0,K.useState)(!1),{updateBirthplace:h,saving:_}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(z2);return{updateBirthplace:({birthCountry:t,birthPlace:n})=>e({variables:{birthCountry:t,birthPlace:n},context:{apiVersion:3}}),saving:t}})();return i.birthPlace&&e("/provider/edit_profile"),d?(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS}):(0,X.jsxs)(k5,{children:[(0,X.jsx)(R5,{children:i18n.t("edit_profile.content.edit_place_of_birth.title")}),(0,X.jsx)(wp,{label:i18n.t("edit_profile.content.edit_place_of_birth.label"),value:c,onChange:e=>{g(!0),u(e)},error:!tc(c)&&f?i18n.t("edit_profile.content.edit_place_of_birth.invalid"):""}),(0,X.jsx)(pp,{selectedValue:p,onValueChange:m,options:[{label:"",value:""},...l],style:P5.pickerStyle,itemStyle:P5.pickerItemStyle,dropdownIconColor:Qe.TEXT_LIGHT}),(0,X.jsxs)(S5,{onPress:async()=>{var e,n;s("User clicked on save on edit place of birth page");const i=await h({birthCountry:p,birthPlace:c});if(null!==i&&void 0!==i&&null!==(e=i.data)&&void 0!==e&&null!==(n=e.updateBirthplace)&&void 0!==n&&n.success)r({message:i18n.t("provider.update.birthplace.success"),type:"success"}),o(p),a(c),s("Place of birth has been saved successfully"),t.goBack();else{var l,d,u;const e=null===i||void 0===i||null===(l=i.data)||void 0===l||null===(d=l.updateBirthplace)||void 0===d||null===(u=d.errors)||void 0===u?void 0:u[0].code;e&&r({message:i18n.t("provider.update.birthplace.error")}),s(`Birth place has not beed saved, error: ${e}`)}},disabled:!n||d||!tc(c)||!p||c===i.birthPlace&&p===i.birthCountry||_,centered:!0,children:[_&&(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS,style:{marginRight:5}}),(0,X.jsx)(A5,{children:i18n.t("edit_profile.content.edit_place_of_birth.save_changes")})]})]})};var M5=n(61982);const O5=(0,Ge.default)(Be.default).withConfig({displayName:"change_password__Title",componentId:"sc-15zj9a2-0"})(["font-weight:700;font-size:18px;line-height:25px;margin-bottom:32px;color:",";"],Qe.TEXT_DARK),z5=(0,Ge.default)(wp).withConfig({displayName:"change_password__Input",componentId:"sc-15zj9a2-1"})(["margin-bottom:10px;"]),L5=(0,Ge.default)(ms).withConfig({displayName:"change_password__SubmitButton",componentId:"sc-15zj9a2-2"})(["margin-top:40px;"]),q5=()=>{const{session:{signInRequest:e,currentUser:t},toast:{showToastMessage:n}}=lt(),i=(0,Ks.useHistory)(),{executeRecaptcha:o}=rm(),[a,s]=(0,K.useState)(!1),{updatePassword:r}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(q2);return{updatePassword:(t,n,i)=>e({variables:{currentPassword:t,password:n,passwordConfirmation:i},context:{apiVersion:3}}).then(({data:e})=>null===e||void 0===e?void 0:e.updatePassword),loading:t}})(),l=null===t||void 0===t?void 0:t.email,{control:d,handleSubmit:c,setError:u,formState:{errors:p,isValid:m}}=(0,M5.useForm)({defaultValues:{currentPassword:"",password:"",passwordConfirmation:""}}),f=a||!m,g=i18n.t("edit_profile.change_password.current_password"),h=i18n.t("edit_profile.change_password.new_password"),_=i18n.t("edit_profile.change_password.confirm_new_password");return(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(O5,{children:i18n.t("edit_profile.change_password.title")}
3296),(0,X.jsx)(M5.Controller,{control:d,name:"currentPassword",rules:{required:!0},render:({field:{onChange:e,value:t}})=>{var n;return(0,X.jsx)(z5,{testID:"ChangePassword:CurrentPassword",label:g,value:t,onChange:e,error:null===(n=p.currentPassword)||void 0===n?void 0:n.message,secure:!0})}}),(0,X.jsx)(M5.Controller,{control:d,name:"password",rules:{required:!0},render:({field:{onChange:e,value:t}})=>{var n;return(0,X.jsx)(z5,{testID:"ChangePassword:NewPassword",label:h,value:t,onChange:e,error:null===(n=p.password)||void 0===n?void 0:n.message,secure:!0})}}),(0,X.jsx)(M5.Controller,{control:d,name:"passwordConfirmation",rules:{required:!0},render:({field:{onChange:e,value:t}})=>{var n;return(0,X.jsx)(z5,{testID:"ChangePassword:ConfirmNewPassword",label:_,value:t,onChange:e,error:null===(n=p.passwordConfirmation)||void 0===n?void 0:n.message,secure:!0})}}),(0,X.jsx)(L5,{testID:"ChangePassword:Submit",onPress:c(async t=>{try{s(!0);const{currentPassword:d,password:c,passwordConfirmation:p}=t,{success:m,errors:f}=await r(d,c,p);if(m){let t=null;if(o)try{t=await o("provider_sign_in")}catch(a){return console.error("reCAPTCHA verification failed",a),n({message:i18n.t("applicant_funnel.register.form.errors.recaptcha.error")}),void i.push(Ii())}const{success:s}=await e(l,c,t);s?(n({message:i18n.t("edit_profile.change_password.success"),type:"success"}),i.push("/provider/edit_profile")):i.push(Ii())}else{const e=(null===f||void 0===f?void 0:f.filter(e=>{var t;return null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t[0]}))??[],t=null===f||void 0===f?void 0:f.find(e=>{var t;return(null===e||void 0===e?void 0:e.message)&&!(null!==e&&void 0!==e&&null!==(t=e.path)&&void 0!==t&&t[0])});e.forEach(e=>{var t;const n=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t[0];"currentPassword"!==n&&"password"!==n&&"passwordConfirmation"!==n||u(n,{message:(null===e||void 0===e?void 0:e.message)??void 0})}),t&&n({message:t.message})}}catch(ca){console.error(ca),n({message:i18n.t("provider.generic.error")})}finally{s(!1)}}),loading:a,disabled:f,centered:!0,children:i18n.t("edit_profile.change_password.confirm")})]})},B5=xt`
3297  mutation updateVatId($vatId: String!) {
3298    updateVatId(vatId: $vatId) {
3299      success
3300      errors {
3301        code
3302        message
3303      }
3304    }
3305  }
3306`,G5=(0,Ge.default)(qe.default).withConfig({displayName:"edit_vat_id__Container",componentId:"sc-6mi8ip-0"})(["flex:1;gap:16px;"]),U5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_vat_id__Title",componentId:"sc-6mi8ip-1"})(["font-weight:700;font-size:18px;line-height:25px;color:",";"],Qe.TEXT_DARK),$5=(0,Ge.default)(rf.default).withConfig({displayName:"edit_vat_id__Content",componentId:"sc-6mi8ip-2"})(["font-size:13px;color:",";line-height:14px;"],Qe.TEXT_DARK),F5=(0,Ge.default)(ms).withConfig({displayName:"edit_vat_id__SaveButton",componentId:"sc-6mi8ip-3"})(["margin-top:auto;"]);const H5=function(){const e=(0,Ks.useHistory)(),{isConnected:t}=(0,ta.useNetInfo)(),{session:{currentUser:n,setUserVatId:i,countryConfig:o},toast:{showToastMessage:a}}=lt(),[s,r]=(0,K.useState)(n.vatId),[l,d]=(0,K.useState)(),{updateVatId:c,loading:u}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(B5);return{updateVatId:t=>e({variables:t,context:{apiVersion:3}}).then(({data:e})=>null===e||void 0===e?void 0:e.updateVatId),loading:t}})(),p=(0,K.useCallback)(async()=>{try{const{success:n,errors:o}=await c({vatId:s});if(n)r(s),i(s),e.goBack();else{var t;const e=null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.message;a({message:e||i18n.t("provider.generic.error")})}}catch(l){console.error(l),a({message:i18n.t("provider.generic.error")})}},[s,a]),m=!t||l||s===n.vatId;return(0,X.jsxs)(G5,{children:[(0,X.jsx)(U5,{children:i18n.t("edit_profile.content.edit_vat_id.title")}),o.showVATInfo&&(0,X.jsx)($5,{children:i18n.t("edit_profile.vat.info_content")}),(0,X.jsx)(wp,{label:i18n.t("edit_profile.content.edit_vat_id.vat_id"),value:s,onChange:e=>{d(void 0),r(e.trim())},testID:"VatId:Input"}),(0,X.jsx)(F5,{onPress:p,disabled:m,centered:!0,loading:u,testID:"VatId:SaveButton",children:i18n.t("edit_profile.content.edit_vat_id.save_changes")}
3306)]})};const W5=function(){let{path:e}=(0,Ks.useRouteMatch)();return(0,X.jsxs)(Ks.Switch,{children:[(0,X.jsx)(Ks.Route,{exact:!0,path:e,children:(0,X.jsx)(J4,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/email`,children:(0,X.jsx)(v6,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/mobile`,children:(0,X.jsx)(B6,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/address`,children:(0,X.jsx)(m5,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/date_of_birth`,children:(0,X.jsx)(N5,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/place_of_birth`,children:(0,X.jsx)(D5,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/change_password`,children:(0,X.jsx)(q5,{})}),(0,X.jsx)(Ks.Route,{path:`${e}/vat_id`,children:(0,X.jsx)(H5,{})})]})};const V5=function(){return(0,X.jsx)(Rf,{page:"edit profile",header:()=>(0,X.jsx)(W4,{}),content:()=>(0,X.jsx)(W5,{}),contentContainerStyle:{flexGrow:1,paddingBottom:50}})},K5=()=>{const{session:{currentUser:e}}=lt();return null!==e&&void 0!==e&&e.premium?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(V5,{})},Y5=(0,Ge.default)(qj.default).withConfig({displayName:"content__ScrollView",componentId:"sc-1qjkh1r-0"})(["padding-bottom:30px;"]),X5=(0,Ge.default)(Pa.default).attrs({color:Qe.CTA_GREEN,size:20}).withConfig({displayName:"content__CustomIcon",componentId:"sc-1qjkh1r-1"})([""]),Z5=(0,Ge.default)(Be.default).withConfig({displayName:"content__Title",componentId:"sc-1qjkh1r-2"})(["font-weight:700;color:",";font-size:16px;align-self:center;margin-bottom:50px;margin-top:30px;"],Qe.BLACK),Q5=(0,Ge.default)(qe.default).withConfig({displayName:"content__Bar",componentId:"sc-1qjkh1r-3"})(["height:1px;background-color:gray;flex:1;margin:0px 20px;opacity:0.3;"]),J5=(0,Ge.default)(qe.default).withConfig({displayName:"content__Row",componentId:"sc-1qjkh1r-4"})(["display:flex;flex-direction:row;align-items:center;"]),e7=(0,Ge.default)(ts).withConfig({displayName:"content__ContactButton",componentId:"sc-1qjkh1r-5"})(["border:1px solid ",";border-radius:45px;padding:15px;width:70%;max-width:300px;margin:16px 20px 30px 20px;display:flex;align-items:center;justify-content:center;align-self:center;"],Qe.GREEN_IRISH_BREEZE),t7=(0,Ge.default)(Be.default).withConfig({displayName:"content__ContactButtonText",componentId:"sc-1qjkh1r-6"})(["color:",";"],Qe.GREEN_GROWN_UP_GREEN),n7=(0,Ge.default)(Be.default).withConfig({displayName:"content__Paragraph",componentId:"sc-1qjkh1r-7"})(["margin:16px;text-align:center;"]);const i7=(0,Te.observer)(function(){const{session:{providerBelongsToHMG:e,countryConfig:{showEmailSupport:t}}}=lt(),n=e?i18n.t("support.phone.bat_number"):i18n.t("support.phone.number"),i=e?i18n.t("support.email.bat_address"):i18n.t("support.email.address");return(0,X.jsxs)(Y5,{overScrollMode:"never",children:[(0,X.jsx)(Z5,{children:i18n.t("support.question")}),(0,X.jsxs)(J5,{children:[(0,X.jsx)(Q5,{}),(0,X.jsx)(X5,{name:"call"}),(0,X.jsx)(Q5,{})]}),(0,X.jsx)(n7,{children:e?i18n.t("support.phone.bat_text"):i18n.t("support.phone.text")}),(0,X.jsx)(e7,{onPress:()=>bs.default.openURL(`tel:${n}`),children:(0,X.jsx)(t7,{children:n})}),t&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(J5,{children:[(0,X.jsx)(Q5,{}),(0,X.jsx)(X5,{name:"email-outline",set:"MaterialCommunityIcons"}),(0,X.jsx)(Q5,{})]}),(0,X.jsx)(n7,{children:i18n.t("support.email.text")}),(0,X.jsx)(e7,{onPress:()=>{const e="mailto:"+i;bs.default.openURL(e)},children:(0,X.jsx)(t7,{children:i18n.t("support.email.cta")})})]})]})}),o7=(0,Ge.default)(Be.default).withConfig({displayName:"support__HeaderTitle",componentId:"sc-rbkgx1-0"})(["color:",";font-weight:700;font-size:25px;margin-top:10px;margin-left:25px;"],Qe.BLACK);const a7=(0,Te.observer)(function(){return(0,X.jsxs)(tS,{disableTabMenu:!0,children:[(0,X.jsx)(cS,{children:(0,X.jsx)(o7,{children:oA().t("support.page_title")})}),(0,X.jsx)(aS,{children:(0,X.jsx)(i7,{})})]})}),s7=()=>(0,X.jsx)(a7,{}),r7=()=>(0,X.jsx)(Wu.default,{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:(0,X.jsx)(Wu.Path,{d:"M6.5 9.75L2.6794 11.7586L3.40907 7.50431L0.318133 4.49139L4.5897 3.87069L6.5 0L8.4103 3.87069L12.6819 4.49139L9.59093 7.50431L10.3206 11.7586L6.5 9.75Z",fill:"#F1CB3D"})}),l7=()=>(0,X.jsxs)(Wu.default,{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:[(0,X.jsx)(Wu.Path,{d:"M6.5 9.75L10.3206 11.7586L9.59093 7.50431L12.6819 4.49139L8.4103 3.87069L6.5 0L4.5897 3.87069L0.318132 4.49139L3.40907 7.50431L2.6794 11.7586L6.5 9.75Z",fill:"url(#paint0_linear_1157_6076)"}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsxs)(Wu.LinearGradient,{id:"paint0_linear_1157_6076",x1:"13",y1:"5.5",x2:"0",y2:"5.5",gradientUnits:"userSpaceOnUse",children:[(0,X.jsx)(Wu.Stop,{offset:"0.5",stopColor:"#979797"}),(0,X.jsx)(Wu.Stop,{offset:"0.5001",stopColor:"#F1CB3D"})]})})]}),d7=()=>(0,X.jsx)(Wu.default,{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",children:(0,X.jsx)(Wu.Path,{d:"M6.5 9.75L2.6794 11.7586L3.40907 7.50431L0.318133 4.49139L4.5897 3.87069L6.5 0L8.4103 3.87069L12.6819 4.49139L9.59093 7.50431L10.3206 11.7586L6.5 9.75Z",fill:"#989898"})}),c7=(0,Ge.default)(qe.default).withConfig({displayName:"stars__StarsContainer",componentId:"sc-9mkerk-0"})(["display:flex;flex-direction:row;margin-top:3px;margin-right:4px;"]),u7=({rating:e})=>
3306(0,X.jsx)(c7,{children:[1,2,3,4,5].map(t=>{const n=t===Math.ceil(e)&&e%1!==0;return t<=e&&!n?(0,X.jsx)(r7,{},t):t===Math.ceil(e)&&n?(0,X.jsx)(l7,{},t):(0,X.jsx)(d7,{},t)})}),p7=["quality","communication","reliability"],m7=e=>p7.map(t=>({title:oA().t(`ratings.${t}`),showStarIcon:!0,rating:e[t]})),f7=(e,t)=>{const n=t?e:100;return 0===t?oA().t("ratings.total_cleanings_zero"):e>80?oA().t("ratings.total_cleanings_comparison_top",{percent:n}):e<=80&&e>=50?oA().t("ratings.total_cleanings_comparison_above_average"):e<50?oA().t("ratings.total_cleanings_comparison_below_average"):oA().t("ratings.total_cleanings_zero")},g7=e=>Math.round(10*e)/10,h7=(0,Ge.default)(qe.default).withConfig({displayName:"info_section__Section",componentId:"sc-1qhn7g6-0"})(["flex-direction:row;align-items:center;"]),_7=(0,Ge.default)(rf.default).withConfig({displayName:"info_section__Number",componentId:"sc-1qhn7g6-1"})(["color:",";font-weight:700;font-size:16px;padding-left:4px;"],Qe.TEXT_DARK),x7=(0,Ge.default)(Pa.default).attrs(({open:e})=>({name:e?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:25,color:Qe.GRAY_0})).withConfig({displayName:"info_section__ChevronIcon",componentId:"sc-1qhn7g6-2"})(["margin-left:10px;"]),y7=(0,Ge.default)(ts).withConfig({displayName:"info_section__Button",componentId:"sc-1qhn7g6-3"})([""]),v7=(0,Ge.default)(rf.default).withConfig({displayName:"info_section__ButtonText",componentId:"sc-1qhn7g6-4"})(["color:",";font-weight:700;font-size:13px;"],Qe.GREEN_SUMMER_GRASS),b7=({showCollapsableIcon:e,collapsed:t=!0,rating:n,showStarIcon:i,isCustomerReview:o,showButton:a})=>{const s=(0,Ks.useHistory)();return(0,X.jsxs)(h7,{children:[a&&(0,X.jsx)(y7,{disableWhenOffline:!0,onPress:()=>s.push(Ki()),children:(0,X.jsx)(v7,{children:i18n.t("ratings.request.reference")})}),o&&i&&(0,X.jsx)(u7,{rating:g7(n)}),!o&&i&&(0,X.jsx)(r7,{}),!!n&&(0,X.jsx)(_7,{children:g7(n)}),e&&(0,X.jsx)(x7,{open:!t})]})},w7=(0,Ge.default)(qe.default).withConfig({displayName:"respond_modal__Container",componentId:"sc-1wdfczm-0"})(["background-color:",";margin:50px 16px 20px 16px;flex:1;"],Qe.WHITE),C7=(0,Ge.default)(qe.default).withConfig({displayName:"respond_modal__Content",componentId:"sc-1wdfczm-1"})(["flex:1;"]),j7=(0,Ge.default)(Be.default).withConfig({displayName:"respond_modal__Customer",componentId:"sc-1wdfczm-2"})(["color:",";"],Qe.TEXT_DARK),I7=(0,Ge.default)(Be.default).withConfig({displayName:"respond_modal__Description",componentId:"sc-1wdfczm-3"})(["background-color:",";padding:10px;border-radius:5px;margin-top:10px;color:",";font-style:italic;"],Qe.GREEN_FROSTY_GREEN,Qe.TEXT_DARK),T7=(0,Ge.default)(Uc.default).withConfig({displayName:"respond_modal__ReplyInput",componentId:"sc-1wdfczm-4"})(["margin-top:10px;border-radius:5px;border:1px solid ",";padding:10px;min-height:100px;margin-bottom:30px;"],Qe.GRAY_LIGHT),E7=(0,Ge.default)(Be.default).withConfig({displayName:"respond_modal__Error",componentId:"sc-1wdfczm-5"})(["color:",";"],Qe.CRIMSON_1),N7=(0,Ge.default)(Be.default).withConfig({displayName:"respond_modal__Info",componentId:"sc-1wdfczm-6"})(["font-size:14px;text-align:center;color:",";"],Qe.TEXT_DARK),k7=({isOpen:e,onClose:t,ratingId:n,customer:i,description:o,rating:a,refetchReviews:s})=>{const{toast:{showToastMessage:r}}=lt(),[l,d]=(0,K.useState)(""),{respondToRatingComment:c,loading:u,error:p}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(Xb,{context:{apiVersion:3}});return{respondToRatingComment:({ratingId:t,response:n})=>e({variables:{ratingId:t,response:n}}),loading:t,error:n}})();return(0,X.jsx)(zw,{isOpen:e,onClose:t,displayCloseButton:!0,title:i18n.t("ratings.reviews.respond_modal.title"),children:(0,X.jsx)(w7,{children:(0,X.jsxs)(Mq,{primaryButtonTitle:i18n.t("ratings.reviews.respond_modal.reply"),primaryButtonClick:async()=>{var e;const i=await c({ratingId:n,response:null===l||void 0===l?void 0:l.trim()}),{success:o,errors:a}=(null===i||void 0===i||null===(e=i.data)||void 0===e?void 0:e.respondToRatingComment)||{};o?(s(),t()):(null===a||void 0===a?void 0:a.length)>0?r({onlyPopup:!0,message:a[0].message}):r({onlyPopup:!0,message:i18n.t("ratings.reviews.respond_modal.error_generic")})},secondaryButtonTitle:i18n.t("ratings.reviews.respond_modal.cancel"),secondaryButtonClick:t,horizontalActionGroup:!0,primaryButtonDisabled:u||!(null!==l&&void 0!==l&&l.trim()),secondaryButtonDisabled:u,children:[(0,X.jsxs)(C7,{children:[(0,X.jsx)(j7,{children:i}),(0,X.jsx)(u7,{rating:g7(a)}),(0,X.jsx)(I7,{children:o}
3306),(0,X.jsx)(T7,{multiline:!0,numberOfLines:3,value:l,onChangeText:d,maxLength:1e3}),p&&(0,X.jsx)(E7,{children:i18n.t("ratings.reviews.respond_modal.error_generic")})]}),(0,X.jsx)(N7,{children:i18n.t("ratings.reviews.respond_modal.info")})]})})})},R7=(0,Ge.default)(qe.default).withConfig({displayName:"list_items__Container",componentId:"sc-ev15a8-0"})(["",""],({isLastItem:e})=>!e&&`\n  border-bottom-color: ${Qe.GRAY_4};\n  border-bottom-width: 1px;\n`),S7=(0,Ge.default)(ts).withConfig({displayName:"list_items__Wrapper",componentId:"sc-ev15a8-1"})(["display:flex;flex-direction:row;justify-content:space-between;padding:12px;"]),A7=(0,Ge.default)(qe.default).withConfig({displayName:"list_items__DescriptionListWrapper",componentId:"sc-ev15a8-2"})(["display:flex;flex-direction:row;justify-content:space-between;color:",";background-color:",";padding:10px;",""],Qe.GRAY_0,({backgroundColor:e})=>e||Qe.GREEN_FROSTY_GREEN,({isLastItem:e})=>!e&&`border: 1px solid ${Qe.GRAY_4};`),P7=(0,Ge.default)(qe.default).withConfig({displayName:"list_items__DescriptionWrapper",componentId:"sc-ev15a8-3"})(["padding:20px 10px;background-color:",";"],({backgroundColor:e})=>e||Qe.GREEN_FROSTY_GREEN),D7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__Description",componentId:"sc-ev15a8-4"})(["color:",";"],Qe.TEXT_DARK),M7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__NoComment",componentId:"sc-ev15a8-5"})(["color:",";font-style:italic;"],Qe.TEXT_LIGHT),O7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__StyledText",componentId:"sc-ev15a8-6"})(["color:",";font-weight:400;font-size:14px;"],Qe.TEXT_DARK),z7=(0,Ge.default)(qe.default).withConfig({displayName:"list_items__Status",componentId:"sc-ev15a8-7"})(["align-self:flex-end;border:1px solid ",";border-left-width:5px;background-color:",";padding:2px 8px;border-radius:5px;margin-bottom:4px;"],({color:e})=>e,Qe.WHITE),L7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__StatusText",componentId:"sc-ev15a8-8"})(["color:",";"],({color:e})=>e),q7=(0,Ge.default)(qe.default).withConfig({displayName:"list_items__ProviderResponse",componentId:"sc-ev15a8-9"})(["margin-left:16px;padding:8px 16px;background-color:",";border-radius:4px;"],Qe.GRAY_4),B7=(0,Ge.default)(qe.default).withConfig({displayName:"list_items__ResponseDetails",componentId:"sc-ev15a8-10"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),G7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__SubmittedAt",componentId:"sc-ev15a8-11"})(["font-size:12px;"]),U7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__Message",componentId:"sc-ev15a8-12"})(["margin-top:10px;font-style:italic;color:",";"],Qe.TEXT_DARK),$7=(0,Ge.default)(Be.default).withConfig({displayName:"list_items__ReplyText",componentId:"sc-ev15a8-13"})(["color:",";font-weight:600;"],Qe.TEXT_DARK),F7={live:Qe.GREEN_GROWN_UP_GREEN,pending:Qe.GOLD_1,rejected:Qe.CRIMSON_1},H7=({title:e,rating:t,showStarIcon:n,descriptionText:i,descriptionList:o,descriptionListColor:a,isLastItem:s,isCustomerReview:r,ratingId:l,commentResponse:d,commentResponseStatus:c,commentResponseSubmittedAt:u,refetchReviews:p})=>{const[m,f]=(0,K.useState)(!0),[g,h]=(0,K.useState)(!1);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(R7,{isLastItem:s,children:[(0,X.jsxs)(S7,{onPress:()=>f(!m),children:[(0,X.jsx)(O7,{children:e}),(0,X.jsx)(b7,{showCollapsableIcon:!0,collapsed:m,rating:t,showStarIcon:n})]}),!m&&(0,X.jsxs)(X.Fragment,{children:[(r||i)&&(0,X.jsxs)(A7,{children:[r&&!i&&(0,X.jsx)(M7,{children:i18n.t("ratings.reviews.empty")}),!!i&&(0,X.jsx)(D7,{children:i}),r&&!d&&(0,X.jsx)(ts,{onPress:()=>h(!0),children:(0,X.jsx)($7,{children:i18n.t("ratings.reviews.reply")})})]}),r&&d&&(0,X.jsx)(P7,{backgroundColor:Qe.WHITE,children:(0,X.jsxs)(q7,{children:[(0,X.jsxs)(B7,{children:[(0,X.jsx)(z7,{color:F7[c],children:(0,X.jsx)(L7,{color:F7[c],children:i18n.t(`ratings.reviews.status_${c}`)})}),(0,X.jsx)(G7,{children:u})]}),(0,X.jsx)(U7,{children:d})]})}),o&&o.map((e,t)=>(0,X.jsxs)(A7,{backgroundColor:a,isLastItem:t===o.length-1,children:[(0,X.jsx)(O7,{children:e.title}),(0,X.jsx)(b7,{rating:e.rating,showButton:e.showButton,showStarIcon:e.showStarIcon,isCustomerReview:r})]},e.title))]})]}),(0,X.jsx)(k7,{isOpen:g,onClose:()=>h(!1),customer:e,rating:t,description:i,ratingId:l,refetchReviews:p})]})},W7=(0,Ge.default)(qe.default).withConfig({displayName:"content__List",componentId:"sc-sihdmz-0"})(["border:1px solid ",";margin-bottom:30px;"],Qe.GRAY_4),V7=(0,Ge.default)(rf.default).withConfig({displayName:"content__SectionTitle",componentId:"sc-sihdmz-1"})(["color:",";font-weight:700;font-size:16px;margin-bottom:5px;"],Qe.TEXT_DARK),K7=(0,Ge.default)(rf.default).withConfig({displayName:"content__SectionSubtitle",componentId:"sc-sihdmz-2"})(["color:",";font-weight:400;font-size:14px;margin-bottom:16px;"],Qe.TEXT_MEDIUM),Y7=(0,Ge.default)(V7).withConfig({displayName:"content__ReferenceTitle",componentId:"sc-sihdmz-3"})(["margin-bottom:16px;"]),X7=(0,Ge.default)(qe.default).withConfig({displayName:"content__ReferenceInfoBox",componentId:"sc-sihdmz-4"})(["background-color:",";padding:20px;margin-bottom:70px;border-radius:8px;"],Qe.GREEN_FROSTY_GREEN),Z7=(0,Ge.default)(rf.default).withConfig({displayName:"content__ReferenceInfo",componentId:"sc-sihdmz-5"})(["color:",";font-weight:400;font-size:13px;margin-bottom:20px;"],Qe.TEXT_DARK),Q7=(0,Ge.default)(rf.default).withConfig({displayName:"content__ErrorMessage",componentId:"sc-sihdmz-6"})(["text-align:center;margin-top:30px;"]),J7=()=>{const{isConnected:e}=(0,ta.useNetInfo)(),t=(0,Ks.useHistory)(),{data:n,loading:i,error:o,refetch:a}=(()=>{const{data:e,error:t,loading:n,refetch:i}=(0,Is.useQuery)(Vb);return{data:Object.assign({},null===e||void 0===e?void 0:e.currentProvider,{unratedRelationships:null===e||void 0===e?void 0:e.unratedRelationships}),loading:n,error:t,refetch:i}})(),s=(0,K.useMemo)(()=>i?[]:((e,t)=>{return[{title:oA().t("ratings.overall"),showStarIcon:!0,rating:e.total,descriptionText:(n=e.total,0===n?oA().t("ratings.overall_zero"):n>=4.85?oA().t("ratings.overall_comparison_top"):n<4.85&&n>=4.5?oA().t("ratings.overall_comparison_above_average"):n<4.5?oA().t("ratings.overall_comparison_below_average"):oA().t("ratings.overall_zero"))},{title:oA().t("ratings.breakdown"),showStarIcon:!1,descriptionText:"",descriptionList:m7(e)},{title:oA().t("ratings.total_cleanings"),showStarIcon:!1,rating:t.jobsDone,descriptionText:f7(t.jobsDonePercentage,t.jobsDone)}];var n})(null===n||void 0===n?void 0:n.avgRating,null===n||void 0===n?void 0:n.stats),[null===n||void 0===n?void 0:n.avgRating,null===n||void 0===n?void 0:n.stats,i]),r=(0,K.useMemo)(()=>i?[]:(e=>e.edges.length?e.edges.map(e=>({title:e.node.customer,showStarIcon:!0,rating:e.node.total,descriptionText:e.node.comment?`\u201c${e.node.comment}\u201d \u2014 ${e.node.createdAtFormatted}.`:"",descriptionList:m7(e.node),id:e.node.id,commentResponse:e.node.commentResponse,commentResponseStatus:e.node.commentResponseStatus,commentResponseSubmittedAt:C.DateTime.fromISO(e.node.commentResponseSubmittedAt).toFormat("LLL dd, y")})):[])(null===n||void 0===n?void 0:n.ratings),[null===n||void 0===n?void 0:n.ratings,i]),l=(0,K.useMemo)(()=>i?null:(e=>{return e.length?{title:oA().t("ratings.unrated.title"),showStarIcon:!1,descriptionText:oA().t("ratings.unrated.desc"),descriptionList:(t=e,t.map(e=>({title:e.customer.name,showStarIcon:!1,showButton:!0})))}:null;var t})(null===n||void 0===n?void 0:n.unratedRelationships),[null===n||void 0===n?void 0:n.unratedRelationships,i]);if((0,K.useEffect)(()=>{e&&!i&&a()},[e]),i)return(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS});if(o||null===n||void 0===n||!n.ratings||null===n||void 0===n||!n.unratedRelationships)return(0,X.jsx)(Q7,{children:i18n.t("ratings.errors.load_ratings")});const{ratings:d,unratedRelationships:c}=n;return(0,X.jsxs)(qe.default,{children:[(null===s||void 0===s?void 0:s.length)>0&&(0,X.jsx)(W7,{children:null===s||void 0===s?void 0:s.map((e,t)=>(0,X.jsx)(H7,{isLastItem:t===s.length-1,title:e.title,showStarIcon:e.showStarIcon,rating:e.rating,descriptionText:e.descriptionText,descriptionList:e.descriptionList},e.title))}),c.length>0&&(0,X.jsx)(W7,{children:(0,X.jsx)(H7,{isLastItem:!0,title:l.title,showStarIcon:l.showStarIcon,rating:l.rating,descriptionText:l.descriptionText,descriptionList:l.descriptionList,descriptionListColor:Qe.WHITE},l.title)}),(0,X.jsx)(V7,{children:i18n.t("ratings.reviews.title")}),(0,X.jsx)(K7,{children:d.edges.length>0?i18n.t("ratings.reviews.most_recents"):i18n.t("ratings.reviews.none")}),(0,X.jsx)(W7,{children:r.map((e,t)=>(0,X.jsx)(H7,{isLastItem:t===r.length-1,title:e.title,showStarIcon:e.showStarIcon,rating:e.rating,descriptionText:e.descriptionText,descriptionList:e.descriptionList,ratingId:e.id,commentResponse:e.commentResponse,commentResponseStatus:e.commentResponseStatus,commentResponseSubmittedAt:e.commentResponseSubmittedAt,refetchReviews:a,isCustomerReview:!0},`${e.title} ${t}`))}),(0,X.jsx)(Y7,{children:i18n.t("ratings.references.title")}),(0,X.jsxs)(X7,{children:[(0,X.jsx)(Z7,{children:i18n.t("ratings.reference.info")}),(0,X.jsx)(ms,{disabled:!e,onPress:()=>t.push(Ki()),stretched:!0,children:i18n.t("ratings.request.reference")})]})]})};const e9=function(){return(0,X.jsx)(Rf,{page:"ratings",title:i18n.t("my.ratings"),content:()=>(0,X.jsx)(J7,{})})},t9=()=>(0,X.jsx)(e9,{}),n9=(0,Ge.default)(Be.default).withConfig({displayName:"language_settings__HeaderTitle",componentId:"sc-6ii1j5-0"})(["color:",";font-weight:700;font-size:25px;margin-top:10px;margin-left:25px;"],Qe.BLACK),i9=(0,Ge.default)(qe.default).withConfig({displayName:"language_settings__Section",componentId:"sc-6ii1j5-1"})(["align-self:center;width:80%;max-width:400px;margin-top:20px;margin-bottom:20px;margin-left:20px;margin-right:20px;"]),o9=(0,Ge.default)(Be.default).withConfig({displayName:"language_settings__Title",componentId:"sc-6ii1j5-2"})(["font-size:16px;color:",";font-weight:700;"],Qe.BLACK),a9=(0,Ge.default)(qe.default).withConfig({displayName:"language_settings__SelectButton",componentId:"sc-6ii1j5-3"})(["",";padding:22px;border-radius:16px;display:flex;flex-direction:row;align-items:center;margin-top:15px;background-color:",";"],e=>e.elevation&&"box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)",Qe.WHITE),s9=(0,Ge.default)(Pa.default).withConfig({displayName:"language_settings__ArrowRightIcon",componentId:"sc-6ii1j5-4"})(["margin-left:auto;"]);const r9=(0,Te.observer)(function(){const{session:{updateLocale:e,availableLocales:t,updateChatTranslationLanguage:n,locale:i,chatTranslationLanguage:o}}=lt(),[a,s]=(0,K.useState)(!1),[r,l]=(0,K.useState)(!1),[d,c]=(0,K.useState)(null),[u,p]=(0,K.useState)(null),[m,f]=(0,K.useState)(null);return(0,X.jsxs)(tS,{disableTabMenu:!0,children:[(0,X.jsx)(cS,{children:(0,X.jsx)(n9,{children:oA().t("language_settings.page_title")})}),(0,X.jsxs)(aS,{children:[(0,X.jsxs)(i9,{children:[(0,X.jsx)(o9,{children:oA().t("language_settings.app_language_label")}),(0,X.jsx)(ts,{eventAction:"open app language settings",eventLabel:"from more",withoutFeedback:!0,onPress:()=>s(!0),children:(0,X.jsxs)(a9,{elevation:3,children:[(0,X.jsx)(Be.default,{children:oA().t(`language_list.${i}`)}),(0,X.jsx)(s9,{name:"keyboard-arrow-right",size:18,color:"gray"})]})})]}),(0,X.jsxs)(i9,{children:[(0,X.jsx)(o9,{children:oA().t("language_settings.translation_language_label")}),(0,X.jsx)(ts,{eventAction:"open chat language settings",eventLabel:"from more",withoutFeedback:!0,onPress:()=>l(!0),children:(0,X.jsxs)(a9,{elevation:3,children:[(0,X.jsx)(Be.default,{children:F1[o]?oA().t(`language_settings.chat_languages.${F1[o]}`):oA().t("language_settings.select_empty_value")}),(0,X.jsx)(s9,{name:"keyboard-arrow-right",size:18,color:"gray"})]})})]}),(0,X.jsx)(UM,{isOpen:a,onClose:()=>s(!1),onItemSelected:async t=>{c(t),await e(t),c(null),s(!1)},items:t.map(e=>({key:e,value:oA().t(`language_list.${e}`)})),title:oA().t("language_settings.modal_app_language_title"),subTitle:oA().t("language_settings.modal_app_language_sub_title"),selectedItem:i,displaySpinnerforItem:d}),(0,X.jsx)(UM,{isOpen:r,onClose:()=>l(!1),onItemSelected:async e=>{p(e),f(null);const{success:t}=await n(e);t?l(!1):f(i18n.t("provider.generic.error")),p(null)},items:Object.entries(F1).map(([e,t])=>({key:e,value:oA().t(`language_settings.chat_languages.${t}`)})),title:oA().t("language_settings.modal_chat_translation_title"),subTitle:oA().t("language_settings.modal_chat_translation_sub_title"),selectedItem:o,displaySpinnerforItem:u,error:m})]})]})}),l9=()=>(0,X.jsx)(r9,{});var d9=n(31477);const c9=(0,Ge.default)(qe.default).withConfig({displayName:"content__Section",componentId:"sc-anzbla-0"})(["margin-bottom:24px;"]),u9=(0,Ge.default)(Be.default).withConfig({displayName:"content__SectionTitle",componentId:"sc-anzbla-1"})(["font-size:15px;font-weight:700;color:",";"],Qe.TEXT_DARK),p9=(0,Ge.default)(Be.default).withConfig({displayName:"content__SectionDescription",componentId:"sc-anzbla-2"})(["font-size:13px;line-height:22px;color:",";margin-top:8px;"],Qe.GRAY_1),m9=(0,Ge.default)(qe.default).withConfig({displayName:"content__SettingCardsContainer",componentId:"sc-anzbla-3"})(["gap:16px;margin-top:20px;"]),f9=(0,Ge.default)(qe.default).withConfig({displayName:"content__SettingCard",componentId:"sc-anzbla-4"})(["flex-direction:row;align-items:center;justify-content:space-between;background-color:",";border:1px solid ",";border-radius:8px;padding:16px;"],Qe.WHITE,Qe.GRAY_BORDER),g9=(0,Ge.default)(Be.default).withConfig({displayName:"content__SettingLabel",componentId:"sc-anzbla-5"})(["font-size:13px;font-weight:700;color:",";flex:1;margin-right:16px;"],Qe.TEXT_DARK);const h9=(0,Te.observer)(function(){const{notificationPreferences:e,analytics:{autoTrack:t}}=lt(),{push:n,pushMarketing:i,sms:o}=e,[a,s]=(0,K.useState)(!1),r=[{key:"bookings",title:i18n.t("more.notifications_settings.bookings_section.title"),description:i18n.t("more.notifications_settings.bookings_section.description"),settings:[{key:"push",label:i18n.t("more.notifications_settings.push_notifications"),value:n,testID:"push-notification-setting",trackingLabel:"User clicked on push app"},{key:"sms",label:i18n.t("more.notifications_settings.sms"),value:o,testID:"sms-free-notification-setting",trackingLabel:"User clicked SMS"}]},{key:"news",title:i18n.t("more.notifications_settings.news_section.title"),description:i18n.t("more.notifications_settings.news_section.description"),settings:[{key:"pushMarketing",label:i18n.t("more.notifications_settings.push_notifications"),value:i,testID:"push-marketing-notification-setting",trackingLabel:"User clicked on marketing push"}]}];return(0,X.jsx)(qe.default,{testID:"notification-settings-content",children:r.map(n=>(0,X.jsxs)(c9,{children:[(0,X.jsx)(u9,{children:n.title}),(0,X.jsx)(p9,{children:n.description}),(0,X.jsx)(m9,{children:n.settings.map(i=>(0,X.jsxs)(f9,{children:[(0,X.jsx)(g9,{children:i.label}),(0,X.jsx)(d9.default,{testID:i.testID,isEnabled:i.value,onPress:()=>!a&&(async({key:n,trackingLabel:i},o)=>{t(`${i}: ${o}`,"in notification settings"),s(!0),await e.update({[n]:o}),s(!1)}
3306)(i,!i.value)})]},`${n.key}-${i.key}`))})]},n.key))})}),_9=()=>(0,X.jsx)(Rf,{title:i18n.t("more.notifications_settings.title"),page:"notification settings",content:()=>(0,X.jsx)(h9,{}),scrollEnabled:!0,testID:"notification-settings-page"}),x9=()=>{var e;const{session:{settings:t}}=lt();return null!==t&&void 0!==t&&null!==(e=t.viewPermissions)&&void 0!==e&&e.editNotificationPreferences?(0,X.jsx)(_9,{}):(0,X.jsx)(Ks.Redirect,{to:wi()})},y9=(0,Ge.default)(rf.default).withConfig({displayName:"header__HeaderTitle",componentId:"sc-1ijbryx-0"})(["color:",";font-weight:700;font-size:25px;"],Qe.BLACK),v9=()=>(0,X.jsx)(qe.default,{children:(0,X.jsx)(y9,{children:i18n.t("hr_requests.title")})});var b9=n(24129),w9=n.n(b9);const C9=(0,Ge.default)(qe.default).withConfig({displayName:"tab__TabContainer",componentId:"sc-m368zn-0"})(["flex:1;padding:20px 20px 11px;justify-content:center;align-items:center;border-bottom-width:5px;border-bottom-color:",";",""],({selected:e})=>e?`${Qe.CRIMSON_1}`:`${Qe.WHITE}`,"cursor: pointer"),j9=(0,Ge.default)(xm.Text).withConfig({displayName:"tab__TabText",componentId:"sc-m368zn-1"})(["font-size:16px;text-transform:uppercase;",""],({selected:e})=>e&&"font-weight: bold;");function I9({selected:e,onPress:t,children:n,eventAction:i,eventLabel:o}){return(0,X.jsx)(ts,{eventAction:i,eventLabel:o,withoutFeedback:!0,onPress:t,children:(0,X.jsx)(C9,{selected:e,children:(0,X.jsx)(j9,{selected:e,children:n})})})}I9.propTypes={selected:ze().bool,onPress:ze().func,children:ze().string,eventAction:ze().string,eventLabel:ze().str
3306ing};const T9=I9,E9="pending",N9="past",k9=(0,Ge.default)(Aa.default).withConfig({displayName:"content__Loading",componentId:"sc-wpugzt-0"})(["align-self:center;"]),R9=(0,Ge.default)(qj.default).withConfig({displayName:"content__ListContainer",componentId:"sc-wpugzt-1"})(["background:",";margin-bottom:10px;"],Qe.WHITE),S9=(0,Ge.default)(qe.default).withConfig({displayName:"content__Tabs",componentId:"sc-wpugzt-2"})(["flex-direction:row;"]),A9=(0,Ge.default)(qe.default).withConfig({displayName:"content__RequestedAtContainer",componentId:"sc-wpugzt-3"})(["margin-top:20px;"]),P9=(0,Ge.default)(xm.Text).withConfig({displayName:"content__RequestedAt",componentId:"sc-wpugzt-4"})(["color:",";font-weight:300;"],Qe.TEXT_DARK),D9=(0,Ge.default)(qe.default).withConfig({displayName:"content__EmptyContainer",componentId:"sc-wpugzt-5"})(["justify-content:center;align-items:center;margin-top:25px;"]),M9=(0,Ge.default)(xm.Text).withConfig({displayName:"content__EmptyText",componentId:"sc-wpugzt-6"})(["font-weight:300;color:",";"],Qe.BLACK);function O9(){return(0,X.jsx)(D9,{children:(0,X.jsx)(M9,{children:i18n.t("hr_requests.no_data")})})}const z9=(0,Te.observer)(function(){const[e,t]=(0,K.useState)(),[n,i]=(0,K.useState)(E9),{absences:{fetchAbsences:o,pendingAbsences:a,pastAbsence
3306s:s}}=lt(),[r,l]=(0,K.useMemo)(()=>{const e=({createdAt:e})=>C.DateTime.fromISO(e).toLocaleString(C.DateTime.DATE_SHORT);return[w9()(a,e),w9()(s,e)]},[a,s]);return(0,K.useEffect)(()=>{!async function(){t(!0),await o(),t(!1)}()},[]),(0,X.jsxs)(X.Fragment,{children:[e&&(0,X.jsx)(k9,{}),(0,X.jsxs)(S9,{children:[(0,X.jsx)(T9,{selected:n===E9,onPress:()=>i(E9),eventAction:"tab pending",eventLabel:"from hr requests",children:i18n.t("hr_requests.tabs.pending")}),(0,X.jsx)(T9,{selected:n===N9,onPress:()=>i(N9),eventAction:"tab past",eventLabel:"from hr requests",children:i18n.t("hr_requests.tabs.past")})]}),(0,X.jsxs)(R9,{children:[Object.entries(n===E9?r:l).map(([e,t])=>(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(A9,{children:(0,X.jsx)(P9,{children:i18n.t("hr_requests.requested_at",{date:e})})}),t.map(e=>(0,X.jsx)(e1,{absence:e,absenceStyle:Object.assign({},gd,{label:Object.assign({},gd.label,{color:e.status?hd[e.status].banner.color:gd.banner.color,textColor:Qe.TEXT_DARK})})},e.id))]},e)),(n===E9&&Br()(r)||n===N9&&Br()(l))&&(0,X.jsx)(O9,{})]})]})});const L9=(0,Te.observer)(function(){return(0,X.jsx)(Rf,{page:"hr requests",header:v9,content:()=>(0,X.jsx)(z9,{})})}),q9=()=>{const{session:{currentUser:e}}=lt();return e.premium?(0,X.jsx)(L9,{}):(0,X.jsx)(Ks.Redirect,{to:wi()})},B9=(0,Ge.default)(rf.default).withConfig({displayName:"header__HeaderTitle",componentId:"sc-pllez5-0"})(["color:",";font-weight:700;font-size:25px;"],Qe.BLACK),G9=()=>(0,X.jsx)(qe.default,{children:(0,X.jsx)(B9,{children:i18n.t("hr_requests.title")})}),U9=(0,Ge.default)(lm).withConfig({displayName:"history_card__Container",componentId:"sc-1w4n3yp-0"})(["padding:30px 20px;margin-bottom:25px;flex-direction:row;border-radius:16px;",""],!1),$9=(0,Ge.default)(pu.default).attrs({source:n(79828)}).withConfig({displayName:"history_card__HistoryIcon",componentId:"sc-1w4n3yp-1"})(["width:50px;height:50px;margin-right:10px;"]),F9=(0,Ge.default)(qe.default).withConfig({displayName:"history_card__DetailsContainer",componentId:"sc-1w4n3yp-2"})(["flex:1;justify-content:center;"]),H9=(0,Ge.default)(xm.Text).withConfig({displayName:"history_card__Title",componentId:"sc-1w4n3yp-3"})(["color:",";font-size:16px;"],Qe.BLACK),W9=(0,Ge.default)(Pa.default).attrs({name:"chevron-right",color:Qe.GRAY_3}).withConfig({displayName:"history_card__ChevronRightIcon",componentId:"sc-1w4n3yp-4"})(["margin-left:auto;align-self:center;"]);function V9({onPress:e}){return(0,X.jsx)(ts,{eventAction:"hr request history card",eventLabel:"from hr requests",withoutFeedback:!0,onPress:e,children:(0,X.jsxs)(U9,{elevation:1,children:[(0,X.jsx)($9,{}),(0,X.jsx)(F9,{children:(0,X.jsx)(H9,{children:i18n.t("hr_requests.history_card.title")})}),(0,X.jsx)(W9,{})]})})}V9.propTypes={onPress:ze().func};const K9=V9,Y9=(0,Ge.default)(qe.default).withConfig({displayName:"absences_header__HeaderContainer",componentId:"sc-1mg49pt-0"})(["flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:25px;"]),X9=(0,Ge.default)(xm.Text).withConfig({displayName:"absences_header__HeadingText",componentId:"sc-1mg49pt-1"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),Z9=(0,Ge.default)(lm).withConfig({displayName:"absences_header__YearPicker",componentId:"sc-1mg49pt-2"})(["flex-direction:row;align-items:center;border-radius:16px;padding:15px;margin:0;width:110px;"]),Q9=(0,Ge.default)(Pa.default).attrs({name:"calendar",set:"MaterialCommunityIcons",color:Qe.GREEN_SUMMER_GRASS,size:22}).withConfig({displayName:"absences_header__CalendarIcon",componentId:"sc-1mg49pt-3"})(["margin-right:8px;"]),J9=((0,Ge.default)(Pa.default).attrs({name:"chevron-down",set:"MaterialCommunityIcons",color:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"absences_header__ChevronDown",componentId:"sc-1mg49pt-4"})(["margin-left:auto;"]),(0,Ge.default)(qe.default).withConfig({displayName:"absences_header__YearContainer",componentId:"sc-1mg49pt-5"})(["flex:1;"])),eee=(0,Ge.default)(xm.Text).withConfig({displayName:"absences_header__Year",componentId:"sc-1mg49pt-6"})(["font-size:16px;font-weight:bold;color:",";"],Qe.GREEN_SUMMER_GRASS);const tee=function(){return(0,X.jsxs)(Y9,{children:[(0,X.jsx)(X9,{children:i18n.t("hr_requests.overview.absences_header_title")}),(0,X.jsxs)(Z9,{elevation:1,children:[(0,X.jsx)(Q9,{}),(0,X.jsx)(J9,{children:(0,X.jsx)(eee,{children:"2022"})}),!1]})]})},nee=["label","value","tooltip"],iee=(0,Ge.default)(lm).withConfig({displayName:"absences_details__Section",componentId:"sc-15a2g5r-0"})(["border-radius:16px;padding:40px 25px;margin-bottom:25px;",""],!1),oee=(0,Ge.default)(qe.default).withConfig({displayName:"absences_details__SectionItemRow",componentId:"sc-15a2g5r-1"})(["flex-direction:row;justify-content:space-between;margin-bottom:15px;margin-left:10px;"]),aee=(0,Ge.default)(rf.default).withConfig({displayName:"absences_details__StyleText",componentId:"sc-15a2g5r-2"})(["font-size:16px;color:",";font-weight:300;"],Qe.BLACK),see=(0,Ge.default)(aee).withConfig({displayName:"absences_details__BoldText",componentId:"sc-15a2g5r-3"})(["font-weight:bold;"]),ree=(0,Ge.default)(aee).withConfig({displayName:"absences_details__RedText",componentId:"sc-15a2g5r-4"})(["color:",";"],Qe.CRIMSON_1);function lee(e){let{label:t,value:n}=e,i=(0,A.default)(e,nee);return(0,X.jsxs)(oee,Object.assign({},i,{children:[(0,X.jsx)(qe.default,{children:"string"===typeof t?(0,X.jsxs)(aee,{children:["\u2022 ",t]}):t}),(0,X.jsx)(qe.default,{children:"string"===typeof t?(0,X.jsx)(aee,{children:n}):n})]}))}
3306lee.propTypes={label:ze().node,value:ze().node,tooltip:ze().string};const dee=(0,Ge.default)(lee).withConfig({displayName:"absences_details__HeaderSectionItem",componentId:"sc-15a2g5r-5"})(["margin-bottom:25px;margin-left:0;"]);function cee({overview:e,displayEntitlement:t,canSeeAbsenceStatus:n}){const i=e=>(Number(e)||0===e)&&` ${e} ${i18n.t("constants.days",{defaultValue:"days"})}`;return(0,X.jsxs)(iee,{elevation:1,children:[(0,X.jsx)(dee,{label:(0,X.jsx)(see,{children:i18n.t(`absence.categories.${e.category}`)}),value:(0,X.jsx)(see,{children:i(null===e||void 0===e?void 0:e.overallBalance)})}),t&&(0,X.jsx)(lee,{label:i18n.t("hr_requests.overview.label_entitlement"),value:i(null===e||void 0===e?void 0:e.entitledDays)}),(0,X.jsx)(lee,{label:i18n.t("hr_requests.overview.label_taken"),value:i(null===e||void 0===e?void 0:e.takenDays)}),(0,X.jsx)(lee,{label:i18n.t("hr_requests.overview.label_carry_over"),value:i(null===e||void 0===e?void 0:e.plannedDays)}),n&&(0,X.jsx)(lee,{label:(0,X.jsxs)(ree,{children:["\u2022 ",i18n.t("hr_requests.overview.label_pending_approval")]}),value:(0,X.jsx)(ree,{children:i(null===e||void 0===e?void 0:e.pendingDays)})})]})}cee.propTypes={overview:ze().shape({overallBalance:ze().number,entitledDays:ze().number,takenDays:ze().number,plannedDays:ze().number,pendingDays:ze().number,category:ze().string.isRequired}),displayEntitlement:ze().bool,canSeeAbsenceStatus:ze().bool};const uee=cee,pee=(0,Ge.default)(qe.default).withConfig({displayName:"request_absence_form__Container",componentId:"sc-16cisp8-0"})(["margin-bottom:10px;display:flex;max-width:600px;align-self:center;width:100%;flex:1;padding-top:45px;"]),mee=(0,Ge.default)(Vf.default).withConfig({displayName:"request_absence_form__Content",componentId:"sc-16cisp8-1"})(["flex:1;display:flex;padding:0px 20px 30px 20px;"]),fee=(0,Ge.default)(lm).withConfig({displayName:"request_absence_form__Paper",componentId:"sc-16cisp8-2"})(["margin:15px 0 30px;border-radius:16px;padding:0;"]),gee=(0,Ge.default)(qe.default).withConfig({displayName:"request_absence_form__Notice",componentId:"sc-16cisp8-3"})(["padding:15px 20px;background-color:",";border-radius:16px;margin-bottom:30px;display:flex;flex-direction:row;align-items:center;"],Qe.GREEN_FROSTY_GREEN),hee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__HintImage",componentId:"sc-16cisp8-4"})(["font-size:24px;flex:1;"]),_ee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__NoticeText",componentId:"sc-16cisp8-5"})(["font-size:14px;flex:6;"]),xee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__Label",componentId:"sc-16cisp8-6"})(["font-size:16px;color:",";margin-top:10px;font-weight:700;opacity:0.8;"],Qe.BLACK),yee=(0,Ge.default)(ts).withConfig({displayName:"request_absence_form__FakeInput",componentId:"sc-16cisp8-7"})(["padding:19px 30px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),vee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__FakeInputText",componentId:"sc-16cisp8-8"})(["font-size:14px;"]),bee=(0,Ge.default)(ts).withConfig({displayName:"request_absence_form__SubmitButton",componentId:"sc-16cisp8-9"})(["background-color:",";border-radius:16px;"," max-width:300px;align-self:center;width:80%;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:14px;"],Qe.BLACK,e=>e.disabled&&"opacity: 0.4;"),wee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__SubmitButtonText",componentId:"sc-16cisp8-10"})(["color:",";font-size:16px;font-weight:700;text-align:center;margin-right:5px;"],Qe.WHITE),Cee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__RulesText",componentId:"sc-16cisp8-11"})(["font-size:12px;text-align:center;"]),jee=(0,Ge.default)(Be.default).withConfig({displayName:"request_absence_form__ErrorText",componentId:"sc-16cisp8-12"})(["margin-top:5px;color ",";text-align:center;font-size:12px;text-transform:capitalize;margin-bottom:10px;"],Qe.CRIMSON_1);function Iee({openDatePicker:e,openSelectReason:t,submitRequestAbsence:n,selectedCategory:i,selectedSubCategory:o,selectedStartDate:a,selectedEndDate:s,isRequesting:r,errors:l}){const d=i18n.t(`request_absence.form.reasons.${i}_${o}`,{defaultValue:`${i||""} ${o||""}`}).trim(),c=[a,s].filter(e=>!!e).map(e=>e.toFormat("dd/MM/yyyy")).join(" - ");return(0,X.jsxs)(pee,{children:[(0,X.jsxs)(mee,{overScrollMode:"never",children:[(0,X.jsxs)(gee,{children:[(0,X.jsx)(hee,{children:"\ud83d\udca1"}),(0,X.jsx)(_ee,{children:i18n.t("hr_request_absence.form.hint_half_day_text")})]}),l.length>0&&(0,X.jsxs)(jee,{children:["* ",l[0]," "]}),(0,X.jsx)(xee,{children:i18n.t("hr_request_absence.form.label_pick_dates")}),(0,X.jsx)(fee,{elevation:1,children:(0,X.jsxs)(yee,{onPress:e,children:[(0,X.jsx)(vee,{children:c||i18n.t("hr_request_absence.form.label_pick_dates")}),(0,X.jsx)(Pa.default,{name:"calendar",set:"MaterialCommunityIcons",size:18,color:Qe.BLACK})]})}),(0,X.jsx)(xee,{children:i18n.t("hr_request_absence.form.label_absence_reason")}),(0,X.jsx)(fee,{elevation:1,children:(0,X.jsxs)(yee,{onPress:t,children:[(0,X.jsx)(vee,{children:d||i18n.t("hr_request_absence.form.label_absence_reason")}),(0,X.jsx)(Pa.default,{name:"chevron-down",set:"MaterialCommunityIcons",size:16,color:"gray"})]})}),i&&(0,X.jsxs)(Cee,{children:["\u270b ",i18n.t(`hr_request_absence.form.notice_guide_text_${i}`)]})]}),(0,X.jsxs)(bee,{onPress:n,disabled:!a||!i,children:[(0,X.jsx)(wee,{children:i18n.t("hr_request_absence.form.submit_cta_text")}),r&&(0,X.jsx)(Aa.default,{color:Qe.WHITE})]})]})}Iee.propTypes={openDatePicker:qc.default.func.isRequired,openSelectReason:qc.default.func.isRequired,submitRequestAbsence:qc.default.func.isRequired,selectedCategory:qc.default.string,selectedSubCategory:qc.default.string,selectedStartDate:qc.default.any,selectedEndDate:qc.default.any,isRequesting:qc.default.bool,errors:qc.default.arrayOf(String)};const Tee=Iee,Eee=(0,Ge.default)(qe.default).withConfig({displayName:"day__Container",componentId:"sc-1m5obfo-0"})(["width:100%;height:30px;background-color:",";display:flex;align-items:center;justify-content:center;"],e=>e.selected?Qe.GREEN_SUMMER_GRASS:Qe.TRANSPARENT),Nee=(0,Ge.default)(Be.default).withConfig({displayName:"day__DayText",componentId:"sc-1m5obfo-1"})(["color:",";text-align:center;font-size:16px;"],({selected:e,disabled:t})=>t?"gray":e?Qe.WHITE:Qe.BLACK),kee=e=>{const{date:t,marking:n,onPress:i,minDate:o}=e,a=null===n||void 0===n?void 0:n.selected,s=C.DateTime.fromFormat(t.dateString,"yyyy-MM-dd").startOf("day")<o.startOf("day");return(0,X.jsx)(ts,{eventAction:"select day",eventLabel:"from hr request absence",withoutFeedback:!0,onPress:()=>i(t),disabled:s,children:(0,X.jsx)(Eee,{selected:a,children:(0,X.jsx)(Nee,{selected:a,disabled:s,children:t.day})})})};kee.propTypes={date:qc.default.any.isRequired,marking:qc.default.object,onPress:qc.default.func.isRequired,minDate:qc.default.luxon};const Ree=kee,See=(0,Ge.default)(Vf.default).withConfig({displayName:"date_picker__Container",componentId:"sc-1w8xk92-0"})(["max-width:500px;width:100%;align-self:center;display:flex;flex:1;padding:20px 16px 16px 20px;"]),Aee=(0,Ge.default)(qe.default).withConfig({displayName:"date_picker__Content",componentId:"sc-1w8xk92-1"})([""]),Pee=(0,Ge.default)(ts).withConfig({displayName:"date_picker__SubumitButton",componentId:"sc-1w8xk92-2"})(["border:1px solid ",";padding:10px 20px;border-radius:16px;margin-top:40px;max-width:300px;align-self:center;width:80%;margin-bottom:10px;"],Qe.BLACK),Dee=(0,Ge.default)(Be.default).withConfig({displayName:"date_picker__SubumitButtonText",componentId:"sc-1w8xk92-3"})(["color:",";font-size:16px;font-weight:700;align-self:center;"],Qe.BLACK),Mee=(0,Ge.default)(ts).withConfig({displayName:"date_picker__CancelButton",componentId:"sc-1w8xk92-4"})(["padding:10px 20px;align-self:center;"]),Oee=(0,Ge.default)(Be.default).withConfig({displayName:"date_picker__CancelButtonText",componentId:"sc-1w8xk92-5"})(["color:",";font-size:16px;font-weight:700;align-self:center;"],Qe.BLACK),zee=(0,Ge.default)(Be.default).withConfig({displayName:"date_picker__ErrorText",componentId:"sc-1w8xk92-6"})(["margin-top:5px;color ",";text-align:center;font-size:12px;text-transform:capitalize;margin-bottom:10px;"],Qe.CRIMSON_1);function Lee({saveDates:e,selectedStartDate:t,selectedEndDate:n,
3306cancel:i,minDate:o,errors:a}){tJ(i18n.locale);const[s,r]=(0,K.useState)(t),[l,d]=(0,K.useState)(n),c=function(e,t){const n={};for(;e<=t;)n[e.toFormat("yyyy-MM-dd")]={selected:!0},e=e.plus({day:1});return n}(s,l||s);return(0,X.jsxs)(See,{contentContainerStyle:{flex:1,display:"flex",justifyContent:"center"},children:[(0,X.jsxs)(Aee,{children:[(null===a||void 0===a?void 0:a.length)>0&&(0,X.jsxs)(zee,{children:["* ",a[0]," "]}),(0,X.jsx)(eJ.Calendar,{minDate:o.toFormat("yyyy-MM-dd"),markedDates:c,dayComponent:e=>(0,X.jsx)(Ree,Object.assign({minDate:o},e)),hideExtraDays:!0,onDayPress:({dateString:e})=>{const t=C.DateTime.fromFormat(e,"yyyy-MM-dd");s&&l?(r(t),d(null)):s?d(t):r(t)},renderArrow:e=>(0,X.jsx)(Pa.default,{name:"right"===e?"keyboard-arrow-right":"keyboard-arrow-left",size:24,color:Qe.BLACK})})]}),(0,X.jsx)(Pee,{onPress:()=>e(s,l||s),children:(0,X.jsx)(Dee,{children:i18n.t("hr_request_absence.date_picker.submit_cta")})}),(0,X.jsx)(Mee,{onPress:i,children:(0,X.jsx)(Oee,{children:i18n.t("hr_request_absence.date_picker.cancel_cta")})})]})}Lee.propTypes={saveDates:qc.default.func.isRequired,cancel:qc.default.func.isRequired,selectedStartDate:qc.default.any,selectedEndDate:qc.default.any,minDate:qc.default.any.isRequired,errors:qc.default.arrayOf(String)};const qee=Lee,Bee=(0,Ge.default)(qe.default).withConfig({displayName:"warning_affected_customers__Container",componentId:"sc-5q76gy-0"})(["flex:1;padding:20px;width:100%;"]),Gee=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__HintImage",componentId:"sc-5q76gy-1"})(["font-size:40px;align-self:center;margin-bottom:10px;"]),Uee=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__Title",componentId:"sc-5q76gy-2"})(["font-size:16px;font-weight:700;color:",";text-align:center;"],Qe.TEXT_DARK),$ee=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__SubTitle",componentId:"sc-5q76gy-3"})(["color:",";font-size:14px;text-align:center;font-weight:300;margin-top:10px;"],Qe.TEXT_DARK),Fee=(0,Ge.default)(Vf.default).withConfig({displayName:"warning_affected_customers__List",componentId:"sc-5q76gy-4"})(["",""],({isDesktop:e})=>e&&"align-self: center;"),Hee=(0,Ge.default)(qe.default).withConfig({displayName:"warning_affected_customers__Item",componentId:"sc-5q76gy-5"})(["flex-direction:row;margin-top:15px;"]),Wee=(0,Ge.default)(qe.default).withConfig({displayName:"warning_affected_customers__Avatar",componentId:"sc-5q76gy-6"})(["background-color:",";border-radius:30px;width:75px;height:75px;justify-content:center;align-items:center;"],Qe.GREEN_FROSTY_GREEN),Vee=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__AvatarText",componentId:"sc-5q76gy-7"})(["font-size:24px;font-weight:700;color:",";text-transform:uppercase;"],Qe.TEXT_DARK),Kee=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__CustomerName",componentId:"sc-5q76gy-8"})(["font-size:14px;color:",";margin-top:5px;letter-spacing:0.16px;"],Qe.TEXT_DARK),Yee=(0,Ge.default)(qe.default).withConfig({displayName:"warning_affected_customers__Column",componentId:"sc-5q76gy-9"})(["flex:1;padding:3px 10px;"]),Xee=(0,Ge.default)(qe.default).withConfig({displayName:"warning_affected_customers__Row",componentId:"sc-5q76gy-10"})(["flex-direction:row;margin-top:5px;align-items:center;"]),Zee=(0,Ge.default)(ms).withConfig({displayName:"warning_affected_customers__SubmitButton",componentId:"sc-5q76gy-11"})(["background-color:",";margin-top:20px;",""],Qe.TEXT_DARK,({stretched:e})=>!e&&"align-self: center;"),Qee=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__SubmitButtonText",componentId:"sc-5q76gy-12"})(["color:",";font-size:16px;font-weight:700;align-self:center;margin-right:5px;"],Qe.WHITE),Jee=(0,Ge.default)(pu.default).attrs({source:n(35859)}).withConfig({displayName:"warning_affected_customers__BroomIcon",componentId:"sc-5q76gy-13"})(["width:12px;height:12px;"]),ete=(0,Ge.default)(Be.default).withConfig({displayName:"warning_affected_customers__TextSmall",componentId:"sc-5q76gy-14"})(["font-size:12px;margin-left:5px;"]);function tte({confirm:e,isRequesting:t,customers:n,title:i,subtitle:o,subtitle2:a}){const{isDesktop:s}=uu();return(0,X.jsxs)(Bee,{children:[(0,X.jsx)(Gee,{children:"\u270b"}),(0,X.jsx)(Uee,{children:i}),(0,X.jsx)($ee,{children:o}),a&&(0,X.jsx)($ee,{children:a}),(0,X.jsx)(Fee,{showsVerticalScrollIndicator:!0,isDesktop:s,children:n.map(({customerInitials:e,customerName:t,eventStartTime:n,eventEndTime:i},o)=>(0,X.jsxs)(Hee,{children:[(0,X.jsx)(Wee,{children:(0,X.jsx)(Vee,{children:e})}),(0,X.jsxs)(Yee,{children:[(0,X.jsx)(Kee,{children:t}),(0,X.jsxs)(Xee,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month-outline",set:"MaterialCommunityIcons",size:14,color:Qe.BLACK}),(0,X.jsx)(ete,{children:C.DateTime.fromISO(n).toFormat("cccc dd/LL/yy")})]}),(0,X.jsxs)(Xee,{children:[(0,X.jsx)(Jee,{}
3306),(0,X.jsx)(ete,{children:`${C.DateTime.fromISO(n).toLocaleString(C.DateTime.TIME_SIMPLE)} - ${C.DateTime.fromISO(i).toLocaleString(C.DateTime.TIME_SIMPLE)}`})]})]})]},o))}),(0,X.jsxs)(Zee,{onPress:e,stretched:!s,children:[(0,X.jsx)(Qee,{children:i18n.t("hr_request_absence.warning_affected_customers.confirm_cta")}),t&&(0,X.jsx)(Aa.default,{color:Qe.WHITE})]})]})}tte.propTypes={title:qc.default.string.isRequired,subtitle:qc.default.string.isRequired,subtitle2:qc.default.string,confirm:qc.default.func.isRequired,isRequesting:qc.default.bool,customers:qc.default.arrayOf(Object).isRequired};const nte=tte,ite=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you__Container",componentId:"sc-1bkh6vg-0"})(["display:flex;flex:1;padding:20px;"]),ote=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you__Content",componentId:"sc-1bkh6vg-1"})(["flex:1;"]),ate=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you__TitleContainer",componentId:"sc-1bkh6vg-2"})(["padding:30px;"]),ste=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__HintImage",componentId:"sc-1bkh6vg-3"})(["font-size:48px;align-self:center;margin-bottom:10px;"]),rte=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__Title",componentId:"sc-1bkh6vg-4"})(["font-size:16px;font-weight:700;color:",";text-align:center;"],Qe.TEXT_DARK),lte=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__SubTitle",componentId:"sc-1bkh6vg-5"})(["color:",";font-size:14px;text-align:center;font-weight:300;margin-top:20px;"],Qe.TEXT_DARK),dte=(0,Ge.default)(ts).withConfig({displayName:"thank_you__DimissButton",componentId:"sc-1bkh6vg-6"})(["border:1px solid ",";padding:10px 20px;border-radius:16px;margin-top:30px;max-width:300px;align-self:center;width:100%;"],Qe.BLACK),cte=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__DimissButtonText",componentId:"sc-1bkh6vg-7"})(["color:",";font-size:16px;font-weight:700;align-self:center;"],Qe.BLACK);function ute({dimiss:e}){return(0,X.jsxs)(ite,{children:[(0,X.jsx)(ote,{children:(0,X.jsxs)(ate,{children:[(0,X.jsx)(ste,{children:"\ud83d\udc4d"}),(0,X.jsx)(rte,{children:i18n.t("hr_request_absence.success_page.title")}),(0,X.jsx)(lte,{children:i18n.t("hr_request_absence.success_page.subtitle")})]})}),(0,X.jsx)(dte,{onPress:e,children:(0,X.jsx)(cte,{children:i18n.t("hr_request_absence.success_page.dimiss_cta")})})]})}ute.propTypes={dimiss:qc.default.func.isRequired};const pte=ute,mte=(0,Ge.default)(qe.default).withConfig({displayName:"select_absence_reason__Container",componentId:"sc-ybqdsf-0"})(["flex:1;margin-bottom:20px;padding-top:40px;"]),fte=(0,Ge.default)(qe.default).withConfig({displayName:"select_absence_reason__TitleContainer",componentId:"sc-ybqdsf-1"})(["padding:10px;"]),gte=(0,Ge.default)(rf.default).withConfig({displayName:"select_absence_reason__Title",componentId:"sc-ybqdsf-2"})(["font-size:16px;font-weight:500;color:",";text-align:center;"],Qe.TEXT_DARK),hte=(0,Ge.default)(qe.default).withConfig({displayName:"select_absence_reason__Item",componentId:"sc-ybqdsf-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:50px;padding:0px 25px;border-bottom-width:1px;border-bottom-color:",";"],Qe.GRAY_BORDER),_te=(0,Ge.default)(rf.default).withConfig({displayName:"select_absence_reason__ItemText",componentId:"sc-ybqdsf-4"})(["color:",";text-transform:capitalize;"],({disabled:e})=>e?Qe.GRAY_2:Qe.BLACK);function xte({selectedCategory:e,selectedSubCategory:t,saveCategory:n,selectedStartDate:i}){const{session:{currentUser:{vacationProbationPeriodEnd:o},settings:{absenceCategories:a}}}=lt(),s=i&&o&&i<=C.DateTime.fromFormat(o,"yyyy-MM-dd");return(0,X.jsxs)(mte,{children:[(0,X.jsx)(fte,{children:(0,X.jsx)(gte,{children:i18n.t("request_absence.select_absence_reason.title")})}),(0,X.jsx)(Vf.default,{overScrollMode:"never",children:a.map(({category:i,subCategory:o},a)=>{const r="holidays"===i&&s;return(0,X.jsx)(ts,{eventAction:`reason ${i} ${o}`,eventLabel:"from hr request absence",onPress:()=>n(i,o),disabled:r,children:(0,X.jsxs)(hte,{children:[(0,X.jsx)(_te,{disabled:r,children:i18n.t(`request_absence.form.reasons.${i}_${o}`,{defaultValue:`${i} ${o}`})}),e===i&&t===o&&(0,X.jsx)(Pa.default,{name:"check",size:20,color:Qe.GREEN_SUMMER_GRASS})]})},a)})})]})}xte.propTypes={saveCategory:qc.default.func.isRequired,selectedCategory:qc.default.string,selectedSubCategory:qc.default.string,selectedStartDate:qc.default.any};const yte=(0,Te.observer)(xte),vte="step_form",bte="step_date_picker",wte="step_select_absence_reason",Cte="step_affected_customers",jte="step_thank_you";function Ite({onClose:e,isOpen:t}
3306){const{absences:{requestAbsence:n,fetchAffectedCustomers:i}}=lt(),[o,a]=(0,K.useState)(vte),[s,r]=(0,K.useState)(),[l,d]=(0,K.useState)(),[c,u]=(0,K.useState)(),[p,m]=(0,K.useState)(),[f,g]=(0,K.useState)(!1),[h,_]=(0,K.useState)([]),[x,y]=(0,K.useState)([]),v=(0,Ks.useHistory)(),b=()=>{o===vte?e():o===jte?(e(),v.push("/provider/hr_requests/history")):a(vte)},w=async()=>{g(!0);const{success:e,errors:t}=await n({startDate:s,endDate:l||s,category:c,subCategory:p});e?a(jte):(y(t),a(vte)),g(!1)};return(0,X.jsxs)(zw,{isOpen:t,onClose:b,displayCloseButton:o!==bte,children:[o===vte&&(0,X.jsx)(Tee,{openDatePicker:()=>a(bte),openSelectReason:()=>a(wte),submitRequestAbsence:async()=>{g(!0);if(s&&s.minus({day:1})<C.DateTime.local()){const e=await i(C.DateTime.local(),C.DateTime.now().plus({day:1}));if(e.length>0)return g(!1),_(e),void a(Cte)}await w()},selectedCategory:c,selectedSubCategory:p,selectedStartDate:s,selectedEndDate:l,isRequesting:f,errors:x}),o===bte&&(0,X.jsx)(qee,{saveDates:(e,t)=>{r(e),d(t),b()},selectedStartDate:s,selectedEndDate:l,cancel:b,minDate:"holidays"===c?C.DateTime.now().plus({day:15}):C.DateTime.now()}),o===wte&&(0,X.jsx)(yte,{selectedCategory:c,selectedSubCategory:p,saveCategory:(e,t)=>{const n=s&&s.minus({day:15})<C.DateTime.local();"holidays"===e&&n&&(r(),d()),u(e),m(t),b()},selectedStartDate:s}),o===Cte&&(0,X.jsx)(nte,{title:i18n.t("hr_request_absence.warning_affected_customers.title"),subtitle:i18n.t("hr_request_absence.warning_affected_customers.subtitle_1"),subtitle2:i18n.t("hr_request_absence.warning_affected_customers.subtitle_2"),confirm:w,isRequesting:f,customers:h}),o===jte&&(0,X.jsx)(pte,{dimiss:b})]})}Ite.propTypes={onClose:qc.default.func.isRequired,isOpen:qc.default.bool};const Tte=(0,Te.observer)(Ite),Ete=(0,Ge.default)(Aa.default).withConfig({displayName:"content__Loading",componentId:"sc-fcm26z-0"})(["align-self:center;"]),Nte=(0,Ge.default)(ts).withConfig({displayName:"content__RequestAbsenceButton",componentId:"sc-fcm26z-1"})(["background-color:",";padding:16px 10px;max-width:300px;width:80%;align-self:center;border-radius:16px;margin:12px 0 20px;"],Qe.GREEN_SUMMER_GRASS),kte=(0,Ge.default)(xm.Text).withConfig({displayName:"content__RequestAbsenceButtonText",componentId:"sc-fcm26z-2"})(["color:",";font-weight:700;font-size:16px;align-self:center;"],Qe.WHITE);const Rte=(0,Te.observer)(function(){const{absences:{fetchAbsences:e,fetchAbsencesOverview:t},session:{settings:{viewPermissions:n}}}=lt(),[i,o]=(0,K.useState)(),[a,s]=(0,K.useState)(),[r,l]=(0,K.useState)(!1),d=(0,Ks.useHistory)(),c=null===n||void 0===n?void 0:n.requestAbsence,u=null===n||void 0===n?void 0:n.seeAbsenceStatus;return(0,K.useEffect)(()=>{!async function(){o(!0),await e(),o(!1)}(),async function(){const{success:e,overview:n}=await t();e&&s(n.filter(e=>e.category))}()},[]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(K9,{onPress:()=>{d.push("/provider/hr_requests/history")}}),(0,X.jsx)(tee,{}),i&&(0,X.jsx)(Ete,{}),(null===a||void 0===a?void 0:a.length)>0&&a.map(e=>(0,X.jsx)(uee,{overview:e,displayEntitlement:"holidays"===e.category,canSeeAbsenceStatus:u},e.category))]}),c&&(0,X.jsx)(Nte,{onPress:()=>l(!0),children:(0,X.jsx)(kte,{children:i18n.t("hr_requests.overview.request_absence_cta")})}),r&&(0,X.jsx)(Tte,{isOpen:r,onClose:()=>l(!1)})]})});const Ste=function(){return(0,X.jsx)(Rf,{page:"hr request overview",premium:!0,header:G9,content:()=>(0,X.jsx)(Rte,{})})},Ate=()=>{const{session:{currentUser:e}}=lt();return e.premium?(0,X.jsx)(Ste,{}):(0,X.jsx)(Ks.Redirect,{to:wi()})},Pte=e=>{const t=C.DateTime.local(),n=C.DateTime.fromISO(e),i=n.hasSame(t,"day"),o=n.hasSame(t.plus({days:1}),"day");if(i)return i18n.t("chat_message.appointment.today");if(o)return i18n.t("chat_message.appointment.tomorrow");const a=n.toFormat("cccc"),s=n.startOf("day").diff(t.startOf("day"),"days").days;return s<=7?i18n.t("chat_message.appointment.this",{day:a}):s<=14?i18n.t("chat_message.appointment.next",{day:a}):n.toFormat("LLLL dd")},Dte=(0,Ge.default)(ts).withConfig({displayName:"customer_contact__Container",componentId:"sc-rkaun9-0"})(["display:flex;flex-direction:row;margin-top:8px;"]),Mte=(0,Ge.default)(qe.default).withConfig({displayName:"customer_contact__Avatar",componentId:"sc-rkaun9-1"})(["border-radius:22px;display:flex;justify-content:center;align-items:center;background-color:",";
3306width:64px height:64px;"],Qe.GREEN_FROSTY_GREEN),Ote=(0,Ge.default)(Be.default).withConfig({displayName:"customer_contact__AvatarText",componentId:"sc-rkaun9-2"})(["font-size:25px;font-weight:700;color:",";"],Qe.BLACK),zte=(0,Ge.default)(Be.default).withConfig({displayName:"customer_contact__ContactName",componentId:"sc-rkaun9-3"})(["color:",";margin-top:0px;letter-spacing:0.16px;font-size:16px;"],Qe.BLACK),Lte=(0,Ge.default)(Be.default).withConfig({displayName:"customer_contact__PreviewMessage",componentId:"sc-rkaun9-4"})(["font-size:12px;font-weight:",";color:",";margin-top:5px;flex-wrap:wrap;"],e=>e.active?"700":"200",e=>e.active?Qe.BLACK:Qe.GRAY_2),qte=(0,Ge.default)(Be.default).withConfig({displayName:"customer_contact__MessageTime",componentId:"sc-rkaun9-5"})(["font-size:10px;color:",";margin-bottom:3px;"],Qe.GRAY_2),Bte=(0,Ge.default)(qe.default).withConfig({displayName:"customer_contact__Column",componentId:"sc-rkaun9-6"})(["padding:3px 10px;display:flex;justify-content:center;flex:1;"]),Gte=(0,Ge.default)(qe.default).withConfig({displayName:"customer_contact__CenterView",componentId:"sc-rkaun9-7"})(["display:flex;justify-content:center;align-items:center;margin-left:auto;",""],({isDesktop:e})=>e&&"margin-right: 10px;"),Ute=(0,Ge.default)(Gte).withConfig({displayName:"customer_contact__MessageCount",componentId:"sc-rkaun9-8"})(["background-color:",";border-radius:50px;width:25px;height:25px;margin-bottom:10px;"],Qe.GREEN_SUMMER_GRASS),$te=(0,Ge.default)(Be.default).withConfig({displayName:"customer_contact__MessageCountText",componentId:"sc-rkaun9-9"})(["font-size:12px;color:",";font-weight:700;"],Qe.WHITE),Fte=(0,Ge.default)(qe.default).withConfig({displayName:"customer_contact__Pill",componentId:"sc-rkaun9-10"})(["flex-direction:row;border-radius:34px;padding:4px 8px;background-color:",";align-items:center;align-self:flex-start;margin-top:8px;"," ",""],Qe.GRAY_4,({$repeat:e})=>e&&`\n  background-color: ${Qe.TEAL_5};\n  `,({$space:e})=>e&&"\n  margin-left: 4px;\n  "),Hte=(0,Ge.default)(Be.default).withConfig({displayName:"customer_contact__PillText",componentId:"sc-rkaun9-11"})(["font-weight:700;font-size:11px;"," padding:4px 0;"],({$repeat:e})=>e&&"\n  margin-left: 3px;\n  "),Wte=(0,Ge.default)(qe.default).withConfig({displayName:"customer_contact__Row",componentId:"sc-rkaun9-12"})(["flex-direction:row;"]),Vte=(0,Ge.default)(qe.default).withConfig({displayName:"customer_contact__Content",componentId:"sc-rkaun9-13"})(["flex-direction:row;flex:1;padding-bottom:12px;border-bottom-width:1px;border-bottom-color:",";"],Qe.GRAY_4);const Kte=function({isPremium:e,conversation:{relationshipId:t,customerName:n,initials:i,lastMessagePreview:o,unreadMessagesCount:a,lastMessageAt:s,frequency:r,nextOccurrenceStarttime:l},eventAction:d,eventLabel:c}){const u=(0,Ks.useHistory)(),{isDesktop:p}=uu(),m=r&&"once"!==r,f=C.DateTime.fromISO(l);return(0,X.jsxs)(Dte,{isPremium:e,onPress:()=>u.push(Hi(t)),eventAction:d,eventLabel:c,children:[(0,X.jsx)(Mte,{isPremium:e,children:(0,X.jsx)(Ote,{isPremium:e,children:null===i||void 0===i?void 0:i.toUpperCase()})}),(0,X.jsxs)(Vte,{children:[(0,X.jsxs)(Bte,{children:[(0,X.jsx)(zte,{isPremium:e,children:n}),o&&(0,X.jsx)(Lte,{numberOfLines:1,active:a>0,children:o}),m&&(0,X.jsxs)(Wte,{children:[(0,X.jsx)(Fte,{$repeat:m,children:(0,X.jsxs)(Hte,{$repeat:m,children:["\ud83d\udd01 ",i18n.t(`chat_message.frequency_names.${r}`)]})}),l&&(0,X.jsx)(Fte,{$space:!0,children:(0,X.jsxs)(Hte,{$repeat:m,children:["\u27a1\ufe0f ",Pte(f)]})})]}),!m&&(0,X.jsxs)(Wte,{children:[(0,X.jsx)(Fte,{children:(0,X.jsx)(Hte,{children:i18n.t("frequency_names.once")})}),l&&(0,X.jsx)(Fte,{$space:!0,children:(0,X.jsx)(Hte,{children:`${Pte(f)}`})})]})]}),(0,X.jsxs)(Gte,{isDesktop:p,children:[o&&(0,X.jsx)(qte,{children:C.DateTime.fromISO(s).toFormat("LLL dd")}),a>0?(0,X.jsx)(Ute,{children:(0,X.jsx)($te,{children:a})}):(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:Qe.GRAY_2})]})]})]})},Yte=(0,Ge.default)(ts).withConfig({displayName:"intercom_chat__Container",componentId:"sc-113931p-0"})(["display:flex;flex-direction:row;margin-top:15px;"]),Xte=(0,Ge.default)(Be.default).withConfig({displayName:"intercom_chat__ContactName",componentId:"sc-113931p-1"})(["color:",";margin-top:0px;letter-spacing:0.16px;font-size:16px;"],Qe.BLACK),Zte=(0,Ge.default)(Be.default).withConfig({displayName:"intercom_chat__PreviewMessage",componentId:"sc-113931p-2"})(["font-size:12px;font-weight:",";color:",";margin-top:5px;flex-wrap:wrap;"],e=>e.active?"700":"200",e=>e.active?Qe.BLACK:Qe.GRAY_2),Qte=(0,Ge.default)(qe.default).withConfig({displayName:"intercom_chat__Column",componentId:"sc-113931p-3"})(["padding:3px 10px;display:flex;justify-content:center;flex:1;"]),Jte=(0,Ge.default)(qe.default).withConfig({displayName:"intercom_chat__CenterView",componentId:"sc-113931p-4"})(["display:flex;justify-content:center;align-items:center;margin-left:auto;",""],({isDesktop:e})=>e&&"margin-right: 10px;"),ene=(0,Ge.default)(Jte).withConfig({displayName:"intercom_chat__MessageCount",componentId:"sc-113931p-5"})(["background-color:",";border-radius:50px;width:25px;height:25px;margin-bottom:10px;"],Qe.GREEN_SUMMER_GRASS),tne=(0,Ge.default)(Be.default).withConfig({displayName:"intercom_chat__MessageCountText",componentId:"sc-113931p-6"})(["font-size:12px;color:",";font-weight:700;"],Qe.WHITE);const nne=function({eventAction:e,eventLabel:t}){const{isDesktop:n}=uu(),{unreadConversationCount:i,openIntercomPage:o}=Dm();return(0,X.jsxs)(Yte,{onPress:o,eventAction:e,eventLabel:t,children:[(0,X.jsx)(pj.Icon,{image:"chatbotAvatar",size:55}),(0,X.jsxs)(Qte,{children:[(0,X.jsx)(Xte,{children:i18n.t("intercom.chat_name")}
3306),0===i&&(0,X.jsx)(Zte,{numberOfLines:2,children:i18n.t("chats.list_item.no_message.intercom")})]}),(0,X.jsxs)(Jte,{isDesktop:n,children:[i>0&&(0,X.jsx)(ene,{children:(0,X.jsx)(tne,{children:i})}),0===i&&(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:Qe.GRAY_2})]})]})},ine=(0,Ge.default)(qe.default).withConfig({displayName:"conversation__Section",componentId:"sc-1b76m7b-0"})(["border:0;"," ",""],({isDesktop:e})=>`\n    margin: ${e?"40px 10px 0":"40px 0"};\n    padding-bottom: 40px;\n  `,({$isActiveChat:e})=>`\n    margin-top: 40px;\n    margin-bottom: ${e?40:0}px;\n    padding-bottom: ${e?40:0}px;\n    `),one=(0,Ge.default)(qe.default).withConfig({displayName:"conversation__SupportChatSection",componentId:"sc-1b76m7b-1"})(["border:0;"]),ane=(0,Ge.default)(rf.default).withConfig({displayName:"conversation__SectionTitle",componentId:"sc-1b76m7b-2"})(["font-size:16px;font-weight:700;color:",";letter-spacing:0.16px;text-transform:uppercase;"],Qe.BLACK),sne=(0,Ge.default)(Aa.default).withConfig({displayName:"conversation__Spinner",componentId:"sc-1b76m7b-3"})(["margin-top:20px;"]),rne=(0,Ge.default)(qe.default).withConfig({displayName:"conversation__NoContactMessage",componentId:"sc-1b76m7b-4"})(["margin-top:50px;"]),lne=(0,Ge.default)(rf.default).withConfig({displayName:"conversation__NoContactMessageText",componentId:"sc-1b76m7b-5"})(["text-align:center;"]);const dne=(0,Te.observer)(function(){const{session:{countryConfig:{shouldSeeIntercom:e}},chat:{fetchConversations:t,activeCustomerConversations:n,newCustomerConversations:i}}=lt(),[o,a]=(0,K.useState)(!1),{isConnected:s}=(0,ta.useNetInfo)(),{isDesktop:r}=uu();return(0,K.useEffect)(()=>{(async()=>{a(!0),await t(),a(!1)})()},[s]),(0,Om.useSubscription)(Yn,{onData:()=>{t()}}),!o&&n.length<1&&i.length<1?e?(0,X.jsx)(one,{children:(0,X.jsx)(nne,{eventAction:"intercom conversation",eventLabel:"from chat"})}):(0,X.jsx)(rne,{children:(0,X.jsx)(lne,{children:oA().t("chat.no_messages_text")})}):(0,X.jsxs)(qe.default,{children:[e&&(0,X.jsx)(one,{children:(0,X.jsx)(nne,{eventAction:"intercom conversation",eventLabel:"from chat"})}),o&&(0,X.jsx)(sne,{size:14,color:Qe.GREEN_SUMMER_GRASS}),i.length>0&&(0,X.jsxs)(ine,{isDesktop:r,children:[(0,X.jsx)(ane,{children:oA().t("chat.section_title_new_chats").toLowerCase()}),i.map((e,t)=>(0,X.jsx)(Kte,{conversation:e,eventAction:"new customer conversation",eventLabel:"from chat"},t))]}),n.length>0&&(0,X.jsxs)(ine,{isDesktop:r,$isActiveChat:!0,children:[(0,X.jsx)(ane,{children:oA().t("chat.section_title_active_chats").toLowerCase()}),n.map((e,t)=>(0,X.jsx)(Kte,{conversation:e,eventAction:"active customer conversation",eventLabel:"from chat"},t))]})]})}),cne=(0,Te.observer)(()=>(0,X.jsx)(Rf,{title:i18n.t("menu.chat"),content:()=>(0,X.jsx)(dne,{}),hideBackButton:!0}));(0,Ge.default)(ts).withConfig({displayName:"tab__Container",componentId:"sc-1ww9x9i-0"})(["flex:1;display:flex;flex-direction:row;max-width:120px;padding:5px 0px;border-bottom-width:3px;border-bottom-color:",";"],({active:e})=>e?Qe.CRIMSON_1:Qe.WHITE),(0,Ge.default)(Be.default).withConfig({displayName:"tab__Title",componentId:"sc-1ww9x9i-1"})(["font-weight:",";color:",";text-align:center;font-size:16px;letter-spacing:0.16px;width:100%;text-transform:uppercase;"],({active:e})=>e?"700":"300",Qe.BLACK),(0,Ge.default)(qe.default).withConfig({displayName:"tab__Dot",componentId:"sc-1ww9x9i-2"})(["width:6px;height:6px;border-radius:50px;background-color:",";margin-left:2px;margin-top:3px;"],Qe.CRIMSON_1);(0,Ge.default)(qe.default).withConfig({displayName:"content__TabsContainer",componentId:"sc-148q6ws-0"})(["display:flex;flex-direction:row;justify-content:space-around;max-width:300px;align-self:center;width:100%;margin-top:15px;"]);const une="customers",pne=()=>{const{chat:{hasUnreadCustomersChat:e}}=lt(),[t,n]=(0,K.useState)(une);i18n.t("chat.tabs.squad"),i18n.t("chat.tabs.customers");return(0,X.jsxs)(X.Fragment,{children:[!1,t===une&&(0,X.jsx)(dne,{})]})},mne=(0,Ge.default)(qe.default).withConfig({displayName:"premium_chat__Header",componentId:"sc-17zjjpu-0"})(["flex:1;min-height:100px;width:",";",""],({isDesktop:e})=>e?Vj:"100%",({isDesktop:e})=>e&&"align-self: center;"),fne=(0,Ge.default)(rf.default).withConfig({displayName:"premium_chat__HeaderTitle",componentId:"sc-17zjjpu-1"})(["color:",";font-weight:700;font-size:25px;margin-top:8px;margin-left:20px;"],Qe.WHITE),gne=()=>{const{isDesktop:e}=uu();return(0,X.jsx)(mne,{isDesktop:e,children:(0,X.jsx)(fne,{children:i18n.t("menu.chat")}
3306)})};const hne=(0,Te.observer)(function(){return(0,X.jsx)(Rf,{page:"premium chat",hideBackButton:!0,header:gne,content:()=>(0,X.jsx)(pne,{})})}),_ne=()=>{const{session:{currentUser:e}}=lt();return null!==e&&void 0!==e&&e.premium?(0,X.jsx)(hne,{}):(0,X.jsx)(cne,{})};var xne=n(40530);const yne=({postMessage:e,setDraft:t,sending:n})=>{const{isConnected:i}=(0,ta.useNetInfo)();return(0,X.jsx)(xne.default,{style:{marginLeft:10,marginRight:10},borderColor:null,borderWidth:null,small:!0,onChange:e=>t(e),onSubmit:e,disabled:!i||n,promptColor:i?Qe.BLACK:Qe.GRAY_LIGHT,iconColor:i?Qe.BLACK:Qe.GRAY_LIGHT})},vne="cleaning_details_updated",bne="cleaning_details_confirmed",wne="cleaning_details_clarify";var Cne=n(15093);const jne=(0,Ge.default)(qe.default).withConfig({displayName:"cleaning_details_action__Action",componentId:"sc-1mkekjg-0"})(["margin:18px 0 10px;gap:6px;"]),Ine=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_details_action__StyledText",componentId:"sc-1mkekjg-1"})(["color:",";text-align:center;align-items:center;margin:0px 15px;"],Qe.GRAY_2),Tne=(0,Ge.default)(ts).withConfig({displayName:"cleaning_details_action__Link",componentId:"sc-1mkekjg-2"})(["align-items:center;"]),Ene=(0,Ge.default)(Be.default).withConfig({displayName:"cleaning_details_action__LinkText",componentId:"sc-1mkekjg-3"})(["color:",";font-size:13px;text-decoration-line:underline;font-weight:700;"],Qe.GREEN_SUMMER_GRASS),Nne={[bne]:"confirmed",[vne]:"updated",[wne]:"clarify"},kne=(0,Te.observer)(({type:e,customerId:t,name:n,relationshipId:i})=>{const o=lu(),a=Nne[e];return(0,X.jsxs)(jne,{children:[(0,X.jsx)(Ine,{children:i18n.t(`chat_messages.action.cleaning_details.${a}`,{name:n})}),(0,X.jsx)(Tne,{onPress:()=>o(Di(t)),eventAction:`cleaning details ${a} action to redirect home details page`,eventLabel:`from chat messages - customerId: ${t}, relationshipId: ${i}`,children:(0,X.jsx)(Ene,{children:i18n.t("chat_messages.action.view_it_here")})})]})}),Rne=(0,Ge.default)(Be.default).withConfig({displayName:"message_body__MessageContent",componentId:"sc-vdi4ga-0"})(["",""],"word-break: break-word;"),Sne=(0,Ge.default)(Be.default).withConfig({displayName:"message_body__MessageText",componentId:"sc-vdi4ga-1"})(["color:",";"],Qe.TEXT_DARK),Ane=(0,Te.observer)(({message:e,titleKey:t,customerId:n})=>{const i=lu(),{toast:{showToastMessage:o}}=lt(),a=e=>{fK(e,()=>o({message:i18n.t("chat_messages.message.copied"),type:"success"}))};return t===vne?(0,X.jsx)(ts,{onLongPress:()=>a(e),onPress:()=>i(Di(n)),eventAction:"cleaning details message to redirect home details page",eventLabel:`from chat messages - customerId: ${n}`,children:(0,X.jsx)(Sne,{children:e})}):(0,X.jsx)(Ma.default,{onLongPress:()=>a(e),children:(0,X.jsx)(Rne,{children:e.split("\n").map((e,t)=>(0,X.jsxs)(Sne,{children:[e.trim(),"\n"]},t))})})}),Pne=(0,Ge.default)(Be.default).withConfig({displayName:"message__TranslationText",componentId:"sc-17r1xy1-0"})(["font-size:13px;padding-top:5px;color:",";"],Qe.TEXT_DARK),Dne=(0,Ge.default)(qe.default).withConfig({displayName:"message__Bar",componentId:"sc-17r1xy1-1"})(["height:1px;background-color:",";margin-top:5px;opacity:0.3;"],Qe.GRAY_2);const Mne=(0,Te.observer)(function({message:e,translateMessage:t,chatTranslationLanguage:n,relationshipId:i,customerId:o,makeCleaningInstructionAccessible:a}){const{analytics:{autoTrack:s}}=lt(),{id:r,createdAt:l,isSender:d,translation:c,payload:{title_key:u}}=e,p=a&&[vne,bne,wne].includes(u),{translationVisible:m,loadingTranslation:f,error:g,translate:h}=((e,t,n)=>{const[i,o]=(0,K.useState)(!1),[a,s]=(0,K.useState)(!1),[r,l]=(0,K.useState)("");return{translationVisible:i,loadingTranslation:a,error:r,translate:async()=>{s(!0);const{success:i}=await n(e,t);i?o(!0):l(i18n.t("ui.error.generic")),s(!1)}}})(r,n,t),_=function(e){const t=C.DateTime.now().diff(e,"days").as("days"),n=C.DateTime.now().diff(e,"minutes").as("minutes");return n<2?"just now":n<300?e.toRelative():t<2?`${e.toRelativeCalendar()} at ${e.toLocaleString(C.DateTime.TIME_SIMPLE)}`:e.toLocaleString(C.DateTime.DATETIME_SHORT)}(C.DateTime.fromISO(l));return p?(0,X.jsx)(kne,{type:u,customerId:o,name:e.senderName,relationshipId:i}
3306):(0,X.jsxs)(Cne.default,{small:!0,position:d?"right":"left",showAvatar:!1,createdAt:{time:_},color:d?Qe.GREEN_FROSTY_GREEN:Qe.GRAY_4,textColor:Qe.TEXT_DARK,timeColor:Qe.GRAY_2,translationButton:!d&&!m&&(0,X.jsx)(aD.default,{onPress:()=>{s("User clicked on translate",`on chat message page - customerId: ${o}`),h()},translateText:i18n.t("chat_messages.message.translate"),loading:f,error:g}),children:[(0,X.jsx)(Ane,{message:e.body,titleKey:u,customerId:o}),m&&!!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Dne,{}),(0,X.jsx)(Pne,{children:c})]})]})}),One=(0,Ge.default)(qe.default).withConfig({displayName:"input_wrapper__Wrapper",componentId:"sc-50gxr4-0"})(["",""],({theme:e,$backgroundColor:t})=>e.isDesktop?`\n      width: ${Vj}px;\n      align-self: center;\n      padding-bottom: 20px;\n    `:`\n      background-color: ${t};\n      padding: 10px 20px ${e.insets.bottom+10}px 20px;\n    `),zne=({children:e,backgroundColor:t})=>(0,X.jsx)(One,{$backgroundColor:t,children:e}),Lne=(0,Ge.default)(qe.default).withConfig({displayName:"chat_messages__EmptyListPlaceholder",componentId:"sc-n7r10q-0"})(["display:flex;align-items:center;margin-top:20px;"]),qne=(0,Ge.default)(qe.default).withConfig({displayName:"chat_messages__MessageTranslationLanguageNotice",componentId:"sc-n7r10q-1"})(["display:flex;align-items:center;margin:20px 0px;"]),Bne=(0,Ge.default)(Be.default).withConfig({displayName:"chat_messages__LinkToSettingsText",componentId:"sc-n7r10q-2"})(["font-weight:700;"]),Gne=(0,Ge.default)(qe.default).withConfig({displayName:"chat_messages__ActivityIndicatorWrapper",componentId:"sc-n7r10q-3"})(["padding:10px 0;"]),Une=(0,Ge.default)(ts).withConfig({displayName:"chat_messages__CleaningDetails",componentId:"sc-n7r10q-4"})(["background-color:",";padding:16px;flex-direction:row;align-items:center;border-bottom-width:1px;border-color:",";"],Qe.GREEN_WINTER_MIST,Qe.GRAY_BORDER),$ne=(0,Ge.default)(Be.default).withConfig({displayName:"chat_messages__CleaningDetailsText",componentId:"sc-n7r10q-5"})(["font-size:13px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK),Fne=(0,Ge.default)(Be.default).withConfig({displayName:"chat_messages__LinkText",componentId:"sc-n7r10q-6"})(["font-size:13px;font-weight:700;color:",";"],Qe.GREEN_GROWN_UP_GREEN);const Hne=(0,Te.observer)(function(){const e=lu(),t=(0,Ks.useLocation)(),{isConnected:n}=(0,ta.useNetInfo)(),{pages:{chatMessages:{fetchCustomer:i,setCurrentRelationshipId:o,fetchMessagesForCustomer:a,fetchNewMessages:s,messages:r,loading:l,postMessage:d,sending:c,setDraft:u,markMessageAsRead:p,translateMessage:m}},toast:{showToastMessage:f},session:{chatTranslationLanguage:g,countryConfig:{makeCleaningInstructionAccessible:h}},analytics:{autoTrack:_}}=lt(),{id:x}=(0,Ks.useParams)(),[y,v]=(0,K.useState)(null),b=(0,K.useRef)(null),w=(0,K.useRef)(!1),j=(0,K.useCallback)(e=>(0,X.jsx)(Ae.KeyboardChatScrollView,Object.assign({},e,{keyboardLiftBehavior:"always",offset:0,automaticallyAdjustContentInsets:!1,contentInsetAdjustmentBehavior:"never"})),[]),I=r.find(e=>!e.isSender),T=r.length<1;(0,K.useEffect)(()=>{(async()=>{const e=await i(x);v(e)})(),o(x),a()},[x]),(0,K.useEffect)(()=>{"true"===new URLSearchParams(null===t||void 0===t?void 0:t.search).get("fromExternalCalendar")&&_("User opened chat messages","from external calendar")},[]);const E=(0,K.useCallback)(async()=>{var e;const t=null===(e=r[0])||void 0===e?void 0:e.id;if(t){(await s(Number(t))).length&&b.current&&b.current.scrollToOffset({animated:!0,offset:0})}},[r]);(0,Om.useSubscription)(Yn,{onData:()=>{E()}}),(0,K.useEffect)(()=>{I&&p(Number(I.id))},[I]);const N=async()=>{if(null!==y&&void 0!==y&&y.id){const{success:e}=await d(null===y||void 0===y?void 0:y.id);e||f({message:i18n.t("chat_messages.post_message.error_text")})}},k=()=>{e(Di(y.id))},R=({item:e})=>(0,X.jsx)(Mne,{message:e,translateMessage:m,chatTranslationLanguage:g||"EN-US",relationshipId:x,customerId:null===y||void 0===y?void 0:y.id,makeCleaningInstructionAccessible:h});return(0,X.jsx)(Rf,{header:()=>(0,X.jsx)(ts,{disabled:!n,onPress:()=>e(Ri(null===y||void 0===y?void 0:y.id)),eventAction:"customer name to open customer details",eventLabel:`from chat messages - customerId: ${null===y||void 0===y?void 0:y.id}, relationshipId: ${x}`,children:(0,X.jsx)(yf,{children:null===y||void 0===y?void 0:y.firstname})}),content:()=>{var t,n,i;return(0,X.jsxs)(X.Fragment,{children:[l&&(0,X.jsx)(Gne,{children:(0,X.jsx)(Aa.default,{size:14,color:"gray"})}),!l&&h&&(0,X.jsxs)(Une,{onPress:k,eventAction:"Cleaning instructions",eventLabel:`from chat messages - customerId: ${null===y||void 0===y?void 0:y.id}, relationshipId: ${x}`,children:[(0,X.jsx)($ne,{children:i18n.t("chat_messages.cleaning",{nextEventDate:C.DateTime.fromISO(null===y||void 0===y||null===(t=y.relationship
3306)||void 0===t||null===(n=t.series)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.startTime).toFormat("EEEE, dd.MM")})}),(0,X.jsx)(Fne,{children:i18n.t("chat_messages.cleaning_instructions")}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,color:Qe.GREEN_GROWN_UP_GREEN})]}),!l&&T&&(0,X.jsx)(Lne,{children:(0,X.jsx)(Be.default,{children:i18n.t("chat_messages.no_messages_placeholder")})}),!l&&!T&&!g&&(0,X.jsxs)(qne,{children:[(0,X.jsxs)(Be.default,{children:[i18n.t("chat_messages.translation_no_selected_language_notice")," "]}),(0,X.jsx)(ts,{onPress:()=>e("/provider/language_settings"),eventAction:"language settings from premium chat messages",children:(0,X.jsx)(Bne,{children:i18n.t("language_settings.page_title")})})]}),(0,X.jsx)(Lj.default,{overScrollMode:"never",contentContainerStyle:{display:"flex",flexGrow:1,paddingVertical:20},inverted:!0,keyboardShouldPersistTaps:"handled",keyboardDismissMode:"interactive",ref:b,data:r,renderItem:R,renderScrollComponent:j,style:{flex:1},keyExtractor:e=>e.id,onEndReachedThreshold:.5,onEndReached:()=>{var e;const t=null===(e=r[r.length-1])||void 0===e?void 0:e.id;w.current&&t&&(a({beforeId:Number(t)}),w.current=!1)},onScroll:()=>{w.current=!0}}),(0,X.jsx)(Ae.KeyboardStickyView,{children:(0,X.jsx)(zne,{children:(0,X.jsx)(yne,{postMessage:N,setDraft:u,sending:c})})})]})},hideTabMenu:!0,scrollEnabled:!1,keyboardShouldPersistTaps:"handled",page:"customer chat messages",contentContainerStyle:{flex:1,justifyContent:"center"},noContentMargin:!0})}),Wne=()=>(0,X.jsx)(Hne,{}),Vne=(0,Ge.default)(rf.default).withConfig({displayName:"header__HeaderTitle",componentId:"sc-1qd67q9-0"})(["color:",";font-weight:700;font-size:25px;"],Qe.BLACK),Kne=()=>(0,X.jsx)(qe.default,{children:(0,X.jsx)(Vne,{children:i18n.t("monthly_overview.page_title")})}),Yne=(0,Ge.default)(qe.default).withConfig({displayName:"month_navigation__Container",componentId:"sc-k9h4w-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:80%;max-width:400px;align-self:center;"]),Xne=(0,Ge.default)(qe.default).withConfig({displayName:"month_navigation__Button",componentId:"sc-k9h4w-1"})(["width:40px;height:40px;background-color:",";border-radius:5px;display:flex;justify-content:center;align-items:center;opacity:0.8;"],Qe.GREEN_FROSTY_GREEN),Zne=(0,Ge.default)(Be.default).withConfig({displayName:"month_navigation__DateText",componentId:"sc-k9h4w-2"})(["font-size:15px;font-weight:700;color:",";text-transform:uppercase;"],Qe.BLACK);function Qne({onMonthChange:e,selectedMonthDate:t,payoutCycleStarts:n,payoutCycleEnds:i}){const o=n?C.DateTime.fromISO(n).toFormat("dd LLL"):"",a=i?C.DateTime.fromISO(i).toFormat("dd LLL yyyy"):"";return(0,X.jsxs)(Yne,{children:[(0,X.jsx)(ts,{eventAction:"previous month",eventLabel:"on monthly overview",onPress:()=>e(t.minus({month:1})),children:(0,X.jsx)(Xne,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-left",size:18,color:"gray"})})}),(0,X.jsx)(Zne,{children:`${o} - ${a}`}),(0,X.jsx)(ts,{eventAction:"next month",eventLabel:"on monthly overview",onPress:()=>e(t.plus({month:1})),children:(0,X.jsx)(Xne,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:"gray"})})})]})}Qne.propTypes={onMonthChange:qc.default.func.isRequired,selectedMonthDate:qc.default.any.isRequired,payoutCycleStarts:qc.default.any,payoutCycleEnds:qc.default.any};const Jne=Qne,eie=(0,Ge.default)(qe.default).withConfig({displayName:"jobs_by_customer__Container",componentId:"sc-1c8u6a8-0"})(["max-width:400px;width:100%;align-self:center;padding:10px 0;"]),tie=(0,Ge.default)(ts).withConfig({displayName:"jobs_by_customer__CustomerInfo",componentId:"sc-1c8u6a8-1"})(["display:flex;flex-direction:row;align-items:center;"]),nie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_by_customer__CustomerName",componentId:"sc-1c8u6a8-2"})(["flex:1;font-size:15px;margin-left:10px;"]),iie=(0,Ge.default)(qe.default).withConfig({displayName:"jobs_by_customer__Avatar",componentId:"sc-1c8u6a8-3"})(["background-color:",";width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:13px;"],Qe.GREEN_FROSTY_GREEN),oie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_by_customer__AvatarText",componentId:"sc-1c8u6a8-4"})(["font-size:11px;text-transform:uppercase;font-weight:700;color:",";opacity:0.8;"],Qe.BLACK),aie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_by_customer__TotalHours",componentId:"sc-1c8u6a8-5"})(["font-size:13px;"]),sie=(0,Ge.default)(qe.default).withConfig({displayName:"jobs_by_customer__Job",componentId:"sc-1c8u6a8-6"})(["display:flex;flex-direction:row;margin:16px 16px 0px 16px;"]),rie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_by_customer__JobInfo",componentId:"sc-1c8u6a8-7"})(["font-size:11px;flex:1;"]),lie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_by_customer__JobDate",componentId:"sc-1c8u6a8-8"})(["font-size:11px;flex:1;"]),die=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_by_customer__JobDuration",componentId:"sc-1c8u6a8-9"})(["font-size:11px;"]),cie=(0,Ge.default)(Pa.default).attrs(({open:e})=>({name:e?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:15,color:Qe.VIOLET_4})).withConfig({displayName:"jobs_by_customer__ChevronIcon",componentId:"sc-1c8u6a8-10"})(["margin-left:10px;"]);function uie({customerName:e,jobs:t}){const[n,i]=(0,K.useState)(!0),o=e.split(" ").slice(0,2).map(e=>e[0]).join(""),a=t.reduce((e,{duration:t})=>e+t,0);return(0,X.jsxs)(eie,{children:[(0,X.jsxs)(tie,{onPress:()=>i(e=>!e),children:[(0,X.jsx)(iie,{children:(0,X.jsx)(oie,{children:o})}),(0,X.jsx)(nie,{children:e}),(0,X.jsxs)(aie,{children:[a/3600," h"]}),(0,X.jsx)(cie,{open:!n})]}),!n&&t.map(({frequency:e,startTime:t,duration:n},i)=>(0,X.jsxs)(sie,{children:[(0,X.jsxs)(rie,{children:[i18n.t(`frequency_names.${e||"once"}`)," cleaning"]}),(0,X.jsx)(lie,{children:C.DateTime.fromISO(t).toFormat("dd/LL/yy")}),(0,X.jsxs)(die,{children:[n/3600," h"]})]},i))]})}
3306uie.propTypes={customerName:qc.default.string.isRequired,jobs:qc.default.arrayOf(qc.default.shape({customerName:qc.default.string.isRequired,startTime:qc.default.string.isRequired,duration:qc.default.number.isRequired})).isRequired};const pie=uie,mie=(0,Ge.default)(ts).withConfig({displayName:"jobs_done__Container",componentId:"sc-8kcy5i-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:10px;"]),fie=(0,Ge.default)(qe.default).withConfig({displayName:"jobs_done__ItemIconWrapper",componentId:"sc-8kcy5i-1"})(["background-color:",";width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-right:10px;"],Qe.GREEN_FROSTY_GREEN),gie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_done__ItemIcon",componentId:"sc-8kcy5i-2"})(["font-size:16px;"]),hie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_done__Title",componentId:"sc-8kcy5i-3"})(["font-size:13px;flex:1;"]),_ie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_done__StatsText",componentId:"sc-8kcy5i-4"})(["font-size:13px;margin-right:5px;"]),xie=(0,Ge.default)(qe.default).withConfig({displayName:"jobs_done__Header",componentId:"sc-8kcy5i-5"})(["display:flex;align-items:center;margin:16px 20px;padding:16px 0px;border-bottom-color:",";border-bottom-width:1px;"],Qe.VIOLET_4),yie=(0,Ge.default)(qe.default).withConfig({displayName:"jobs_done__EmojiContainer",componentId:"sc-8kcy5i-6"})(["background-color:",";width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-bottom:16px;"],Qe.GREEN_FROSTY_GREEN),vie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_done__Emoji",componentId:"sc-8kcy5i-7"})(["font-size:36px;"]),bie=(0,Ge.default)(Be.default).withConfig({displayName:"jobs_done__JobResumeStat",componentId:"sc-8kcy5i-8"})(["font-size:13px;margin-top:5px;opacity:0.7;"]),wie=(0,Ge.default)(qj.default).withConfig({displayName:"jobs_done__List",componentId:"sc-8kcy5i-9"})(["padding:10px 16px;"]);function Cie({providerPayPerHour:e,jobs:t,jobsDoneCount:n,workedHours:i,contractHours:o,payoutCycleStarts:a,payoutCycleEnds:s}){const[r,l]=(0,K.useState)(!1),d=a?C.DateTime.fromISO(a).toFormat("dd LLL"):"",c=s?C.DateTime.fromISO(s).toFormat("dd LLL yyyy"):"",u=(0,er.groupBy)(t,"customerName");return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(mie,{onPress:()=>l(!0),children:[(0,X.jsx)(fie,{children:(0,X.jsx)(gie,{children:"\ud83d\udcaa"})}),(0,X.jsx)(hie,{children:i18n.t("monthly_overview.jobs_done_modal.title")}),(0,X.jsxs)(_ie,{children:[n," ",i18n.t("monthly_overview.jobs_done_modal.jobs")," (",i," h)"]}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:"gray"})]}),(0,X.jsxs)(zw,{isOpen:r,displayCloseButton:!0,onClose:()=>l(!1),children:[(0,X.jsxs)(xie,{children:[(0,X.jsx)(yie,{children:(0,X.jsx)(vie,{children:"\ud83d\udcaa"})}),(0,X.jsxs)(Be.default,{children:["(",n,") ",i18n.t("monthly_overview.jobs_done_modal.jobs_done")," - ",d," -"," ",c]}),(0,X.jsx)(bie,{children:`${i}/${o} ${i18n.t("monthly_overview.jobs_done_modal.hours")}   \u23f1\ufe0f   ${e?` ${fh(e,{withSymbol:!0})}/ h`:""}`})]}),(0,X.jsx)(wie,{children:Object.entries(u).map(([e,t])=>(0,X.jsx)(pie,{customerName:e,jobs:t},e))})]})]})}Cie.propTypes={providerPayPerHour:qc.default.number,jobs:qc.default.arrayOf(qc.default.shape({customerName:qc.default.string.isRequired,startTime:qc.default.string.isRequired,duration:qc.default.number.isRequired})).isRequired,jobsDoneCount:qc.default.number,workedHours:qc.default.number,contractHours:qc.default.number,payoutCycleStarts:qc.default.string,payoutCycleEnds:qc.default.string};const jie=Cie,Iie=(0,Ge.default)(qe.default).withConfig({displayName:"bonuses_by_date__Container",componentId:"sc-2h60g3-0"})(["max-width:400px;width:100%;align-self:center;padding:10px 0;"]),Tie=(0,Ge.default)(ts).withConfig({displayName:"bonuses_by_date__Info",componentId:"sc-2h60g3-1"})(["display:flex;flex-direction:row;align-items:center;"]),Eie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses_by_date__AwardDate",componentId:"sc-2h60g3-2"})(["flex:1;font-size:15px;margin-left:10px;"]),Nie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses_by_date__TotalHours",componentId:"sc-2h60g3-3"})(["font-size:13px;"]),kie=(0,Ge.default)(qe.default).withConfig({displayName:"bonuses_by_date__Bonu
3306s",componentId:"sc-2h60g3-4"})(["display:flex;flex-direction:row;margin:16px 16px 0px 16px;"]),Rie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses_by_date__BonusName",componentId:"sc-2h60g3-5"})(["font-size:11px;flex:1;text-transform:capitalize;"]),Sie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses_by_date__BonusAmount",componentId:"sc-2h60g3-6"})(["font-size:11px;"]),Aie=(0,Ge.default)(Pa.default).attrs(({open:e})=>({name:e?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:15,color:Qe.VIOLET_4})).withConfig({displayName:"bonuses_by_date__ChevronIcon",componentId:"sc-2h60g3-7"})(["margin-left:10px;"]);function Pie({awareDate:e,bonuses:t}){const[n,i]=(0,K.useState)(!0),o=t.reduce((e,{amount:t})=>e+t,0);return(0,X.jsxs)(Iie,{children:[(0,X.jsxs)(Tie,{onPress:()=>i(e=>!e),children:[(0,X.jsx)(Eie,{children:C.DateTime.fromISO(e).toFormat("dd LLLL yyyy")}),(0,X.jsx)(Nie,{children:fh(o,{withSymbol:!0})}),(0,X.jsx)(Aie,{open:!n})]}),!n&&t.map(({name:e,amount:t},n)=>(0,X.jsxs)(kie,{children:[(0,X.jsx)(Rie,{children:e}),(0,X.jsx)(Sie,{children:fh(t,{withSymbol:!0})})]},n))]})}Pie.propTypes={awareDate:qc.default.string.isRequired,bonuses:qc.default.arrayOf(qc.default.shape({awardDate:qc.default.string.isRequired,amount:qc.default.number.isRequired,name:qc.default.string.isRequired}))};const Die=Pie,Mie=(0,Ge.default)(ts).withConfig({displayName:"bonuses__Container",componentId:"sc-btci74-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:10px;"]),Oie=(0,Ge.default)(qe.default).withConfig({displayName:"bonuses__ItemIconWrapper",componentId:"sc-btci74-1"})(["background-color:",";width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-right:10px;"],Qe.GREEN_FROSTY_GREEN),zie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses__ItemIcon",componentId:"sc-btci74-2"})(["font-size:16px;"]),Lie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses__Title",componentId:"sc-btci74-3"})(["font-size:13px;flex:1;"]),qie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses__StatsText",componentId:"sc-btci74-4"})(["font-size:13px;margin-right:5px;"]),Bie=(0,Ge.default)(qe.default).withConfig({displayName:"bonuses__Header",componentId:"sc-btci74-5"})(["display:flex;align-items:center;margin:16px 20px;padding:16px 0px;border-bottom-color:",";border-bottom-width:1px;"],Qe.VIOLET_3),Gie=(0,Ge.default)(qe.default).withConfig({displayName:"bonuses__EmojiContainer",componentId:"sc-btci74-6"})(["background-color:",";width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-bottom:16px;"],Qe.GREEN_FROSTY_GREEN),Uie=(0,Ge.default)(Be.default).withConfig({displayName:"bonuses__Emoji",componentId:"sc-btci74-7"})(["font-size:36px;"]),$ie=(0,Ge.default)(qj.default).withConfig({displayName:"bonuses__List",componentId:"sc-btci74-8"})(["padding:10px 16px;"]);function Fie({amount:e,bonuses:t,payoutCycleStarts:n,payoutCycleEnds:i}){const[o,a]=(0,K.useState)(!1),s=n?C.DateTime.fromISO(n).toFormat("dd LLL"):"",r=i?C.DateTime.fromISO(i).toFormat("dd LLL yyyy"):"",l=(0,er.groupBy)(t,"awardDate");return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Mie,{onPress:()=>a(!0),children:[(0,X.jsx)(Oie,{children:(0,X.jsx)(zie,{children:"\ud83c\udf81"})}),(0,X.jsx)(Lie,{children:i18n.t("monthly_overview.bonuses_modal.title")}),(0,X.jsx)(qie,{children:fh(e,{withSymbol:!0})}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:"gray"})]}),(0,X.jsxs)(zw,{isOpen:o,displayCloseButton:!0,onClose:()=>a(!1),children:[(0,X.jsxs)(Bie,{children:[(0,X.jsx)(Gie,{children:(0,X.jsx)(Uie,{children:"\ud83c\udf81"})}),(0,X.jsxs)(Be.default,{children:[fh(e,{withSymbol:!0})," / ",s," - ",r]})]}),(0,X.jsx)($ie,{children:Object.entries(l).map(([e,t])=>(0,X.jsx)(Die,{awareDate:e,bonuses:t},e))})]})]})}Fie.propTypes={amount:qc.default.number,bonuses:qc.default.arrayOf(qc.default.shape({awardDate:qc.default.string.isRequired,amount:qc.default.number.isRequired,name:qc.default.string.isRequired})),payoutCycleStarts:qc.default.string,payoutCycleEnds:qc.default.string};const Hie=Fie,Wie=(0,Ge.default)(qe.default).withConfig({displayName:"tips_by_customer__Container",componentId:"sc-1j8nb6c-0"})(["max-width:400px;width:100%;align-self:center;padding:10px 0;"]),Vie=(0,Ge.default)(ts).withConfig({displayName:"tips_by_customer__CustomerInfo",componentId:"sc-1j8nb6c-1"})(["display:flex;flex-direction:row;align-items:center;"]),Kie=(0,Ge.default)(Be.default).withConfig({displayName:"tips_by_customer__CustomerName",componentId:"sc-1j8nb6c-2"})(["flex:1;font-size:15px;margin-left:10px;"]),Yie=(0,Ge.default)(qe.default).withConfig({displayName:"tips_by_customer__Avatar",componentId:"sc-1j8nb6c-3"})(["background-color:",";width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:13px;"],Qe.GREEN_FROSTY_GREEN),Xie=(0,Ge.default)(Be.default).withConfig({displayName:"tips_by_customer__AvatarText",componentId:"sc-1j8nb6c-4"})(["font-size:11px;text-transform:uppercase;font-weight:700;color:",";opacity:0.8;"],Qe.BLACK),Zie=(0,Ge.default)(Be.default).withConfig({displayName:"tips_by_customer__TotalHours",componentId:"sc-1j8nb6c-5"})(["font-size:13px;"]),Qie=(0,Ge.default)(qe.default).withConfig({displayName:"tips_by_customer__Tip",componentId:"sc-1j8nb6c-6"})(["display:flex;flex-direction:row;margin:16px 16px 0px 16px;"]),Jie=(0,Ge.default)(Be.default).withConfig({displayName:"tips_by_customer__TipDate",componentId:"sc-1j8nb6c-7"})(["font-size:11px;flex:1;"]),eoe=(0,Ge.default)(Be.default).withConfig({displayName:"tips_by_customer__TipAmount",componentId:"sc-1j8nb6c-8"})(["font-size:11px;"]),toe=(0,Ge.default)(Pa.default).attrs(({open:e})=>({name:e?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:15,color:Qe.VIOLET_4})).withConfig({displayName:"tips_by_customer__ChevronIcon",componentId:"sc-1j8nb6c-9"})(["margin-left:10px;"]);function noe({customerName:e,tips:t}){const[n,i]=(0,K.useState)(!0),o=e.split(" ").slice(0,2).map(e=>e[0]).join(""),a=t.reduce((e,{providerAmount:t})=>e+t,0);return(0,X.jsxs)(Wie,{children:[(0,X.jsxs)(Vie,{onPress:()=>i(e=>!e),children:[(0,X.jsx)(Yie,{children:(0,X.jsx)(Xie,{children:o})}),(0,X.jsx)(Kie,{children:e}),(0,X.jsx)(Zie,{children:fh(a,{withSymbol:!0})}),(0,X.jsx)(toe,{open:!n})]}),!n&&t.map(({createdAt:e,providerAmount:t},n)=>
3306(0,X.jsxs)(Qie,{children:[(0,X.jsx)(Jie,{children:C.DateTime.fromISO(e).toFormat("dd/LL/yy")}),(0,X.jsx)(eoe,{children:fh(t,{withSymbol:!0})})]},n))]})}noe.propTypes={customerName:qc.default.string.isRequired,tips:qc.default.arrayOf(qc.default.shape({customerName:qc.default.string.isRequired,providerAmount:qc.default.number.isRequired,createdAt:qc.default.string.isRequired}))};const ioe=noe,ooe=(0,Ge.default)(ts).withConfig({displayName:"tips__Container",componentId:"sc-161ncn7-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:10px;"]),aoe=(0,Ge.default)(qe.default).withConfig({displayName:"tips__ItemIconWrapper",componentId:"sc-161ncn7-1"})(["background-color:",";width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-right:10px;"],Qe.GREEN_FROSTY_GREEN),soe=(0,Ge.default)(Be.default).withConfig({displayName:"tips__ItemIcon",componentId:"sc-161ncn7-2"})(["font-size:20px;color:red;"]),roe=(0,Ge.default)(Be.default).withConfig({displayName:"tips__Title",componentId:"sc-161ncn7-3"})(["font-size:13px;flex:1;"]),loe=(0,Ge.default)(Be.default).withConfig({displayName:"tips__StatsText",componentId:"sc-161ncn7-4"})(["font-size:13px;margin-right:5px;"]),doe=(0,Ge.default)(qe.default).withConfig({displayName:"tips__Header",componentId:"sc-161ncn7-5"})(["display:flex;align-items:center;margin:16px 20px;padding:16px 0px;border-bottom-color:",";border-bottom-width:1px;"],Qe.VIOLET_4),coe=(0,Ge.default)(qe.default).withConfig({displayName:"tips__EmojiContainer",componentId:"sc-161ncn7-6"})(["background-color:",";width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-bottom:16px;"],Qe.GREEN_FROSTY_GREEN),uoe=(0,Ge.default)(Be.default).withConfig({displayName:"tips__Emoji",componentId:"sc-161ncn7-7"})(["font-size:36px;color:red;"]),poe=(0,Ge.default)(qj.default).withConfig({displayName:"tips__List",componentId:"sc-161ncn7-8"})(["padding:10px 16px;"]);function moe({tips:e,amount:t,payoutCycleStarts:n,payoutCycleEnds:i}){const[o,a]=(0,K.useState)(!1),s=n?C.DateTime.fromISO(n).toFormat("dd LLL"):"",r=i?C.DateTime.fromISO(i).toFormat("dd LLL yyyy"):"",l=(0,er.groupBy)(e,"customerName");return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ooe,{onPress:()=>a(!0),children:[(0,X.jsx)(aoe,{children:(0,X.jsx)(soe,{children:"\u2764"})}),(0,X.jsx)(roe,{children:i18n.t("monthly_overview.tips_modal.title")}),(0,X.jsx)(loe,{children:fh(t,{withSymbol:!0})}),(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:"gray"})]}),(0,X.jsxs)(zw,{isOpen:o,displayCloseButton:!0,onClose:()=>a(!1),children:[(0,X.jsxs)(doe,{children:[(0,X.jsx)(coe,{children:(0,X.jsx)(uoe,{children:"\u2764"})}),(0,X.jsxs)(Be.default,{children:[fh(t,{withSymbol:!0})," / ",s," - ",r]})]}),(0,X.jsx)(poe,{children:Object.entries(l).map(([e,t])=>(0,X.jsx)(ioe,{customerName:e,tips:t},e))})]})]})}moe.propTypes={amount:qc.default.number,tips:qc.default.arrayOf(qc.default.shape({customerName:qc.default.string.isRequired,providerAmount:qc.default.number.isRequired,createdAt:qc.default.string.isRequired})),payoutCycleStarts:qc.default.string,payoutCycleEnds:qc.default.string};const foe=moe,goe=(0,Ge.default)(ts).withConfig({displayName:"advice_modal__AdviceButton",componentId:"sc-1m1930t-0"})(["padding:2px 3px;"]),hoe=(0,Ge.default)(qe.default).withConfig({displayName:"advice_modal__Container",componentId:"sc-1m1930t-1"})(["display:flex;align-items:center;padding:30px;"]),_oe=(0,Ge.default)(qe.default).withConfig({displayName:"advice_modal__LogoContainer",componentId:"sc-1m1930t-2"})(["background-color:",";width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:11px;margin-bottom:16px;"],Qe.GREEN_FROSTY_GREEN),xoe=(0,Ge.default)(Be.default).withConfig({displayName:"advice_modal__Logo",componentId:"sc-1m1930t-3"})(["font-size:36px;"]),yoe=(0,Ge.default)(Be.default).withConfig({displayName:"advice_modal__Title",componentId:"sc-1m1930t-4"})(["font-size:14px;font-weight:700;color:",";opacity:0.8;max-width:300px;margin-top:20px;text-align:center;"],Qe.BLACK),voe=(0,Ge.default)(Be.default).withConfig({displayName:"advice_modal__SubTitle",componentId:"sc-1m1930t-5"})(["font-size:13px;margin-top:20px;text-align:center;"]);const boe=function(){const[e,t]=(0,K.useState)(!1);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(goe,{onPress:()=>t(!0),children:(0,X.jsx)(Pa.default,{name:"info-outline",size:13,color:"gray"})}
3306),(0,X.jsx)(zw,{isOpen:e,displayCloseButton:!0,onClose:()=>t(!1),children:(0,X.jsxs)(hoe,{children:[(0,X.jsx)(_oe,{children:(0,X.jsx)(xoe,{children:"\ud83c\udf96\ufe0f"})}),(0,X.jsx)(yoe,{children:i18n.t("monthly_overview.advice_modal_title")}),(0,X.jsx)(voe,{children:i18n.t("monthly_overview.advice_modal_subtitle")})]})})]})},woe=(0,Ge.default)(pu.default).attrs({source:n(49069)}).withConfig({displayName:"stats_chart__WorkingHoursIcon",componentId:"sc-1nxu737-0"})(["width:11px;height:17px;"]),Coe=(0,Ge.default)(pu.default).attrs({source:n(58384)}).withConfig({displayName:"stats_chart__ContractHoursIcon",componentId:"sc-1nxu737-1"})(["width:12px;height:10px;"]),joe=(0,Ge.default)(pu.default).attrs({source:n(31796)}).withConfig({displayName:"stats_chart__ScheduledHoursIcon",componentId:"sc-1nxu737-2"})(["width:15px;height:15px;margin-left:-4px;"]),Ioe=(0,Ge.default)(lm).withConfig({displayName:"stats_chart__Container",componentId:"sc-1nxu737-3"})(["background-color:",";border-radius:16px;padding:20px;margin:20px 0px;min-height:250px;"],Qe.VIOLET_4),Toe=(0,Ge.default)(Be.default).withConfig({displayName:"stats_chart__Title",componentId:"sc-1nxu737-4"})(["font-weight:700;font-size:13px;color:",";opacity:0.8;margin-bottom:30px;"],Qe.BLACK),Eoe=(0,Ge.default)(qe.default).withConfig({displayName:"stats_chart__Row",componentId:"sc-1nxu737-5"})(["display:flex;flex-direction:row;justify-content:space-between;margin-top:8px;"]),Noe=(0,Ge.default)(qe.default).withConfig({displayName:"stats_chart__InlineView",componentId:"sc-1nxu737-6"})(["display:flex;flex-direction:row;align-items:center;flex:1;"]),koe=(0,Ge.default)(Be.default).withConfig({displayName:"stats_chart__StatText",componentId:"sc-1nxu737-7"})(["font-size:10.5px;font-weight:300;margin-left:5px;"]),Roe=(0,Ge.default)(Be.default).withConfig({displayName:"stats_chart__StatValue",componentId:"sc-1nxu737-8"})(["font-size:10.5px;font-weight:300;margin-left:5px;"]);function Soe({loading:e,workedHours:t,contractHours:n,scheduledHours:i,displayGoalStatus:o}){return e?(0,X.jsx)(Ioe,{children:(0,X.jsx)(Aa.default,{size:13,color:Qe.WHITE})}):(0,X.jsxs)(Ioe,{elevation:1,children:[(0,X.jsx)(Toe,{children:i18n.t("monthly_overview.stats_chart.title")}),(0,X.jsx)(HT,{displayWorkProgressStatus:o,workedHours:t,contractHours:n,scheduledHours:i}),(0,X.jsxs)(Eoe,{children:[(0,X.jsxs)(Noe,{children:[(0,X.jsx)(woe,{}),(0,X.jsx)(koe,{children:i18n.t("monthly_overview.stats_chart.total_working_hours")})]}),(0,X.jsxs)(Roe,{children:[t," h"]})]}),(0,X.jsxs)(Eoe,{children:[(0,X.jsxs)(Noe,{children:[(0,X.jsx)(Coe,{}),(0,X.jsx)(koe,{children:i18n.t("monthly_overview.stats_chart.contract_hours")})]}),(0,X.jsxs)(Roe,{children:[n," h"]})]}),(0,X.jsxs)(Eoe,{children:[(0,X.jsxs)(Noe,{children:[(0,X.jsx)(joe,{}),(0,X.jsx)(koe,{children:i18n.t("monthly_overview.stats_chart.scheduled_hours")}),(0,X.jsx)(boe,{})]}),(0,X.jsxs)(Roe,{children:[i," h"]})]})]})}Soe.propTypes={loading:qc.default.bool,workedHours:qc.default.number,contractHours:qc.default.number,scheduledHours:qc.default.number,displayGoalStatus:qc.default.bool};const Aoe=Soe,Poe=(0,Ge.default)(qe.default).withConfig({displayName:"error_message__Container",componentId:"sc-1qnxwag-0"})(["margin-bottom:16px;display:flex;"]),Doe=(0,Ge.default)(Be.default).withConfig({displayName:"error_message__Message",componentId:"sc-1qnxwag-1"})(["color:red;margin-right:2px;font-size:14px;flex:1;text-align:center;"]),Moe=(0,Ge.default)(Be.default).withConfig({displayName:"error_message__TryAgainButton",componentId:"sc-1qnxwag-2"})(["font-weight:700;font-size:14px;text-align:center;padding:2px;"]);function Ooe({message:e,onTryAgain:t}){return(0,X.jsxs)(Poe,{children:[(0,X.jsx)(Doe,{children:e}),t&&(0,X.jsx)(ts,{onPress:t,children:(0,X.jsx)(Moe,{children:i18n.t("monthly_overview.errors_message.try_again")})})]})}Ooe.propTypes={message:qc.default.string.isRequired,onTryAgain:qc.default.func};const zoe=Ooe,Loe=C.DateTime.now(),qoe=(0,Te.observer)(()=>{const{isConnected:e}=(0,ta.useNetInfo)(),[t,n]=(0,K.useState)(Loe),{session:{settings:{viewPermissions:{seeTips:i,seeBonuses:o}}}}=lt(),{data:{payoutCycleStarts:a,payoutCycleEnds:s,workedHours:r,contractHours:l,scheduledHours:d,jobsDoneCount:c,jobsDone:u,bonusesTotal:p,bonuses:m,tipsTotal:f,tips:g,providerPayPerHour:h},loading:_,noPayoutCycleDayError:x,refetch:y}=VT(t),v=C.DateTime.local(),b=a&&C.DateTime.fromISO(a)<=v&&s&&C.DateTime.fromISO(s)>v;return(0,K.useEffect)(()=>{e&&y()},[e]),(0,X.jsxs)(X.Fragment,{children:[!_&&x&&(0,X.jsx)(zoe,{message:i18n.t("monthly_overview.errors_message.no_payout_cycle_day"),onTryAgain:()=>y()}),(0,X.jsx)(Jne,{payoutCycleStarts:a,payoutCycleEnds:s,selectedMonthDate:t,onMonthChange:n}),(0,X.jsx)(Aoe,{loading:_,workedHours:r,contractHours:l,scheduledHours:d,displayGoalStatus:b}),(0,X.jsx)(jie,{providerPayPerHour:h,jobs:u,jobsDoneCount:c,workedHours:r,contractHours:l,payoutCycleStarts:a,payoutCycleEnds:s}),o&&(0,X.jsx)(Hie,{amount:p,bonuses:m,payoutCycleStarts:a,payoutCycleEnds:s}),i&&(0,X.jsx)(foe,{amount:f,tips:g,payoutCycleStarts:a,payoutCycleEnds:s})]})});const Boe=function(){return(0,X.jsx)(Rf,{page:"monthly overview",header:Kne,content:()=>(0,X.jsx)(qoe,{})})};function Goe(){const{session:{settings:{viewPermissions:e}}}=lt();return null!==e&&void 0!==e&&e.seeMonthlyOverview?(0,X.jsx)(Boe,{}):(0,X.jsx)(Ks.Redirect,{to:wi()})}const Uoe=(0,Ge.default)(qe.default).withConfig({displayName:"search__SearchContainer",componentId:"sc-qsp1lo-0"})(["padding-bottom:10px;flex-direction:column;align-items:stretch;"]),$oe=(0,Ge.default)(rf.default).withConfig({displayName:"search__SearchTitle",componentId:"sc-qsp1lo-1"})(["color:",";margin-bottom:15px;font-weight:bold;font-size:16px;"],Qe.TEXT_MEDIUM),Foe=(0,Ge.default)(qe.default).withConfig({displayName:"search__SearchForm",componentId:"sc-qsp1lo-2"})(["flex-direction:row;justify-content:space-between;align-items:center;background-color:",";padding:10px;border-radius:5px;border:1px solid ",";"],Qe.WHITE,Qe.GRAY_BORDER),Hoe=(0,Ge.default)(Uc.default).withConfig({displayName:"search__SearchTextInput",componentId:"sc-qsp1lo-3"})(["color:",";font-size:16px;"," flex-grow:1;"],Qe.TEXT_MEDIUM,"outline-style: none;"),Woe=(0,Ge.default)(Da.default).withConfig({displayName:"search__SearchIconContainer",componentId:"sc-qsp1lo-4"})(["background-color:",";padding:5px;width:30px;height:30px;border-radius:5px;margin-left:10px;"],Qe.GREEN_SUMMER_GRASS),Voe=({onSearchClick:e,searchedText:t="",onSearchedTextChange:n})=>(0,X.jsxs)(Uoe,{children:[(0,X.jsx)($oe,{children:i18n.t("help_faq.search.title")}),(0,X.jsxs)(Foe,{children:[(0,X.jsx)(Hoe,{placeholder:i18n.t("help_faq.search.search_for_help"),placeholderTextColor:Qe.TEXT_LIGHT,value:t,autoF
3306ocus:!0,onChangeText:e=>n(e)}),(0,X.jsx)(Woe,{onPress:e,children:(0,X.jsx)(Pa.default,{name:"search",size:20,color:Qe.WHITE,set:"MaterialIcons"})})]})]}),Koe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-rdpex0-0"})(["margin-bottom:50px;"]),Yoe=(0,Ge.default)(rf.default).withConfig({displayName:"content__Title",componentId:"sc-rdpex0-1"})(["font-weight:600;color:",";margin-top:25px;"],Qe.TEXT_DARK),Xoe=(0,Ge.default)(rf.default).withConfig({displayName:"content__EmptyListText",componentId:"sc-rdpex0-2"})(["color:",";margin-top:25px;margin-bottom:25px;"],Qe.TEXT_DARK),Zoe=(0,Ge.default)(qe.default).withConfig({displayName:"content__ArticleList",componentId:"sc-rdpex0-3"})(["margin-top:15px;"]),Qoe=(0,Ge.default)(ts).withConfig({displayName:"content__Item",componentId:"sc-rdpex0-4"})(["margin:4px 0px;padding:20px 10px;flex-direction:row;align-items:center;border:0.5px solid ",";"],Qe.GRAY_4),Joe=(0,Ge.default)(rf.default).withConfig({displayName:"content__ArticleTitle",componentId:"sc-rdpex0-5"})(["flex:1;font-size:16px;font-weight:400;color:",";"],Qe.TEXT_DARK),eae=(0,Ge.default)(hg.default).withConfig({displayName:"content__ResolutionCenterCard",componentId:"sc-rdpex0-6"})(["margin-top:20px;shadow-color:",";"],Qe.GRAY_LIGHT),tae=(0,Te.observer)(()=>{var e;const t=(0,Ks.useHistory)(),{session:{currentUser:n,locale:i,settings:o},analytics:{autoTrack:a},helpFAQArticles:{arrayOfArticles:s,setCurrentLanguage:r},pages:{helpFAQ:{loading:l,searchedText:d,fetchRecommendedArticles:c,searchArticles:u,clearSearch:p}}}=lt(),[m,f]=(0,K.useState)(d);(0,K.useEffect)(()=>{r(i),d&&p();(async()=>{await c()})()},[i]),(0,K.useEffect)(()=>{f(d)},[d]),(0,K.useEffect)(()=>{if(m.length>=4&&!l){const e=`User ${n.id} searched for '${m}' on ${(new Date).toJSON().slice(0,19)}.`;0===s.filter(e=>!e.recommended).length?a(`${e} No result found.`,"from Help page"):a(e,"from Help page")}},[s,l]);const g=async()=>{a("User clicked on search","on Help page"),m?await u(m):(p(),await c())},h=Me()(async e=>{e?e.length>=4&&await u(e):(p(),await c())},500),_=(0,K.useCallback)(e=>h(e),[]),x=e=>{f(e),_(e)};if(l)return(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(Voe,{onSearchClick:g,searchedText:m,onSearchedTextChange:x}),(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})]});const y=d?s.filter(e=>e.searchedText===d):s.filter(e=>e.recommended),v=null===o||void 0===o||null===(e=o.viewPermissions)||void 0===e?void 0:e.canSeeResolutionCenter;return(0,X.jsxs)(Koe,{children:[(0,X.jsx)(Voe,{onSearchClick:g,searchedText:m,onSearchedTextChange:x}),d?y.length?null:(0,X.jsx)(Yoe,{children:i18n.t("help_faq.content.no_article_found",{term:d})}):(0,X.jsx)(Yoe,{children:i18n.t("help_faq.content.recommended_articles")}),(0,X.jsxs)(Zoe,{children:[y.map(({id:e,title:n})=>(0,X.jsxs)(Qoe,{onPress:()=>((e,n)=>{a(`User clicked on ${e}`,"on Help page"),t.push(Si(n))})(n,e),children:[(0,X.jsx)(Joe,{children:n}),(0,X.jsx)(Pa.default,{name:"arrow-forward-ios",color:Qe.GREEN_SUMMER_GRASS,size:18})]},e)),0===y.length&&(0,X.jsx)(Xoe,{children:i18n.t("help_faq.content.no_articles_found")})]}),v&&(0,X.jsx)(eae,{variant:"icon",title:i18n.t("resolution_center.faq.card.title"),subtitle:i18n.t("resolution_center.faq.card.description"),onClick:()=>{a("User clicker on resolution center card","from faq page"),t.push(Mi())}})]})}),nae=()=>(0,X.jsx)(Rf,{title:i18n.t("help_faq.page_title"),content:()=>(0,X.jsx)(tae,{})}),iae=()=>(0,X.jsx)(nae,{});var oae=n(84382),aae=n(99317),sae=n(43455);const rae={iframe:e=>{const t=(0,sae.useHtmlIframeProps)(e),{htmlAttribs:n}=t;return(0,X.jsx)("iframe",{src:n.src,style:{border:0}})}},lae={iframe:sae.iframeModel},dae=({html:e})=>{const{width:t}=(0,aae.default)();return(0,X.jsx)(fv(),{renderers:rae,WebView:oae.WebView,customHTMLElementModels:lae,contentWidth:t-32,source:{html:e},enableCSSInlineProcessing:!1,baseStyle:{fontSize:14,color:Qe.TEXT_MEDIUM},tagsStyles:{ul:{paddingLeft:10},p:{minHeight:0,lineHeight:20,color:Qe.TEXT_DARK},img:{marginLeft:"auto",marginRight:"auto",marginTop:20}}})},cae=(0,Ge.default)(qe.default).withConfig({displayName:"article__Container",componentId:"sc-w36qbd-0"})(["margin-bottom:50px;"]),uae=(0,Ge.default)(Be.default).withConfig({displayName:"article__ArticleTitle",componentId:"sc-w36qbd-1"})(["color:",";margin-bottom:15px;font-size:24px;"],Qe.TEXT_MEDIUM),pae=(0,Ge.default)(qe.default).withConfig({displayName:"article__Actions",componentId:"sc-w36qbd-2"})(["margin-top:20px;"]),mae=(0,Ge.default)(ms).withConfig({displayName:"article__FeedbackButton",componentId:"sc-w36qbd-3"})(["margin-bottom:10px;"]),fae=(0,Te.observer)(()=>{const e=(0,Ks.useHistory)(),{isDesktop:t}=uu(),{session:{locale:n,country:i},pages:{helpFAQArticle:{loading:o,title:a,description:s,fetchArticle:r,setCurrentLanguage:l},helpFAQ:{clearSearch:d}},analytics:{autoTrack:c}}=lt(),{articleId:u}=(0,Ks.useParams)(),[p,m]=(0,K.useState)(!1),[f,g]=(0,K.useState)(!1),h="fr"!==i&&"sg"!==i;if((0,K.useEffect)(()=>
3306{l(n);(async()=>{await r(u)})()},[n]),o||!a)return(0,X.jsx)(qe.default,{children:(0,X.jsx)(Aa.default,{})});const _=(e,t)=>{c("Customer rate this article as "+(t?"helpful":"not helpful"),`on article with id: ${e}`),m(!0)};return(0,X.jsxs)(cae,{children:[(0,X.jsx)(uae,{children:a}),(0,X.jsx)(dae,{html:s}),!p&&(0,X.jsxs)(pae,{children:[(0,X.jsx)(mae,{onPress:()=>{_(u,!0),g(!0),d()},variant:"secondary",icon:(0,X.jsx)(Pa.default,{name:"thumb-up-off-alt",size:18,color:Qe.GREEN_SUMMER_GRASS,style:{marginRight:8}}),stretched:!0,children:i18n.t("help_faq.article.content.helpful")}),(0,X.jsx)(mae,{onPress:()=>{_(u,!1),h&&e.push("/provider/faq/contact_form")},color:Qe.WHITE,borderWidth:1,borderColor:Qe.CRIMSON_1,textColor:Qe.CRIMSON_1,icon:(0,X.jsx)(Pa.default,{name:"thumb-down-off-alt",size:18,color:Qe.CRIMSON_1,style:{marginRight:8}}),stretched:!0,children:i18n.t("help_faq.article.content.not_helpful")})]}),f&&(0,X.jsx)(gs,{isVisible:f,onBackdropPress:()=>g(!1),style:t?{width:450,alignSelf:"center"}:void 0,children:(0,X.jsx)(Vc,{title:i18n.t("help_faq.article.content.feedback_successfully_submitted_message"),cta:i18n.t("help_faq.article.content.success_cta"),onClose:()=>g(!1)})})]})}),gae=()=>(0,X.jsx)(Rf,{title:i18n.t("help_faq.article.header.page_title"),content:()=>(0,X.jsx)(fae,{})}),hae=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-aqxzqb-0"})(["flex-direction:column;justify-content:center;"]),_ae=(0,Ge.default)(qe.default).withConfig({displayName:"content__Form",componentId:"sc-aqxzqb-1"})(["flex-direction:column;justify-content:space-between;"]),xae=(0,Ge.default)(ms).withConfig({displayName:"content__SendButton",componentId:"sc-aqxzqb-2"})(["margin:20px 0;"]),yae=(0,Ge.default)(Be.default).withConfig({displayName:"content__Note",componentId:"sc-aqxzqb-3"})(["color:",";font-size:12px;font-style:italic;"],Qe.CTA_SALMON),vae=(0,Ge.default)(Be.default).withConfig({displayName:"content__Label",componentId:"sc-aqxzqb-4"})(["font-weight:400;font-size:14px;margin-bottom:2px;"]),bae=(0,Ge.default)(Uc.default).withConfig({displayName:"content__Input",componentId:"sc-aqxzqb-5"})(["border:1px solid "," text-align-vertical:top;padding:12px 6px;border-radius:8px;font-weight:400;font-size:14px;margin-bottom:20px;",""],Qe.GRAY_1,({multiline:e})=>e&&!1),wae=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-aqxzqb-6"})(["color:",";margin-bottom:15px;"],Qe.CRIMSON_1),Cae=(0,Te.observer)(()=>{const e=(0,Ks.useHistory)(),{isDesktop:t}=uu(),{isConnected:n}=(0,ta.useNetInfo)(),{analytics:{autoTrack:i},pages:{helpFAQ:{setSearchedText:o},helpFAQContact:{form:{subject:a,message:s},saving:r,setField:l,init:d,save:c}},session:{country:u}}=lt(),[p,m]=(0,K.useState)(),[f,g]=(0,K.useState)(!1);(0,K.useEffect)(()=>{d()},[]);const h=()=>{e.push(wi())};return(0,X.jsxs)(hae,{children:[p&&(0,X.jsx)(wae,{children:p}),(0,X.jsxs)(_ae,{children:[(0,X.jsxs)(vae,{children:[i18n.t("help_faq.contact_form.content.subject"),"*"]}),(0,X.jsx)(bae,{onChangeText:e=>l("subject",e),value:a}),(0,X.jsxs)(vae,{children:[i18n.t("help_faq.contact_form.content.message"),"*"]}),(0,X.jsx)(bae,{onChangeText:e=>l("message",e),multiline:!0,numberOfLines:12,value:s}),(0,X.jsx)(qe.default,{children:(0,X.jsxs)(yae,{children:["* ",i18n.t("help_faq.contact_form.content.required_fields")]})}),(0,X.jsx)(xae,{onPress:async()=>{i("User clicked on submit","on Help Contact Form");const{success:e,errors:t}=await c();if(e)g(!0),i("Form values sent successfully","on Help Contact Form"),o("");else{const e=t.map(e=>i18n.t(e)).join(" ");m(e),i(`Error on sending form values, error ${e}`,"on Help Contact Form")}},disabled:!a||!s||r||!n,stretched:!0,variant:"main",children:i18n.t("help_faq.contact_form.content.submit")})]}),f&&(0,X.jsx)(gs,{isVisible:f,onBackdropPress:h,style:t?{width:450,alignSelf:"center"}:void 0,children:(0,X.jsx)(Vc,{title:i18n.t("help_faq.contact_form.content.feedback_successfully_submitted_message"),cta:i18n.t("help_faq.contact_form.content.success_cta"),onClose:h})}),"ch"===u&&(0,X.jsx)(i7,{})]})}),jae=()=>(0,X.jsx)(Rf,{title:i18n.t("help_faq.contact_form.header.page_title"),content:()=>(0,X.jsx)(Cae,{})}),Iae=()=>(0,X.jsx)(jae,{}),Tae=({path:e,children:t})=>{var n;const{session:{isSignedIn:i,settings:o}}=lt(),{pathname:a,search:s}=(0,Ks.useLocation)();if(!i)return(0,X.jsx)(Ks.Redirect,{to:Ii(s,`${a}${s}`)});const r=null===o||void 0===o||null===(n=o.applicationProcess)||void 0===n?void 0:n.pendingStep;return r?(0,X.jsx)(Ks.Redirect,{to:Yi(r)}):(0,X.jsx)(Ks.Route,{path:e,children:t})};Tae.propTypes={children:qc.default.element.isRequired,path:qc.default.string.isRequired};const Eae=(0,Te.observer)(Tae),Nae=(0,Ge.default)(qe.default).withConfig({displayName:"dropdown__Container",componentId:"sc-1gq3rad-0"})([""]),kae=(0,Ge.default)(qe.default).withConfig({displayName:"dropdown__LabelContainer",componentId:"sc-1gq3rad-1"})(["margin-bottom:20px;"]),Rae=(0,Ge.default)(Be.default).withConfig({displayName:"dropdown__Label",componentId:"sc-1gq3rad-2"})(["color:",";font-size:16px;"],Qe.TEXT_MEDIUM),Sae=(0,Ge.default)(ws.default).withConfig({displayName:"dropdown__SelectedValueContainer",componentId:"sc-1gq3rad-3"})(["border:1px solid "," border-radius:8px;padding:12px;"],Qe.GRAY_BORDER),Aae=(0,Ge.default)(Be.default).withConfig({displayName:"dropdown__SelectedValue",componentId:"sc-1gq3rad-4"})(["color:",";font-size:16px;"],Qe.TEXT_DARK),Pae=({label:e,testID:t,options:n,value:i,setValue:o})=>{var a;const[s,r]=(0,K.useState)(!1),l=n.map(([e,t])=>({key:e,label:(0,X.jsx)(Rae,{children:t})}));return(0,X.jsxs)(Nae,{children:[(0,X.jsx)(kae,{children:(0,X.jsx)(Rae,{children:e})}),(0,X.jsx)(Sae,{onPress:()=>r(!0),testID:`${t}:selectedValue`,children:(0,X.jsx)(Aae,{children:null===(a=n.find(([e])=>e===i))||void 0===a?void 0:a[1]})}),s&&(0,X.jsx)(Tu,{entries:l,onSelect:e=>{o(e),r(!1)},hasBorder:!0,testID:`${t}:options`})]})},Dae=({downloadType:e,setDownloadType:t})=>(0,X.jsx)(Pae,{label:i18n.t("dropdown.download_types.label"),testID:"invoices:bulk_download:download_type",options:[[qB,i18n.t("dropdown.download_types.options.year")],[BB,i18n.t("dropdown.download_types.options.month")]],value:e,setValue:t}
3306),Mae="01",Oae="02",zae="03",Lae="04",qae="05",Bae="06",Gae="07",Uae="08",$ae="09",Fae="10",Hae="11",Wae="12",Vae=({month:e,setMonth:t})=>(0,X.jsx)(Pae,{label:i18n.t("invoices.months.label"),testID:"invoices:bulk_download:months",options:[[Mae,i18n.t("invoices.months.options.january")],[Oae,i18n.t("invoices.months.options.february")],[zae,i18n.t("invoices.months.options.march")],[Lae,i18n.t("invoices.months.options.april")],[qae,i18n.t("invoices.months.options.may")],[Bae,i18n.t("invoices.months.options.june")],[Gae,i18n.t("invoices.months.options.july")],[Uae,i18n.t("invoices.months.options.august")],[$ae,i18n.t("invoices.months.options.september")],[Fae,i18n.t("invoices.months.options.october")],[Hae,i18n.t("invoices.months.options.november")],[Wae,i18n.t("invoices.months.options.december")]],value:e,setValue:t}),Kae=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__Card",componentId:"sc-t5iq98-0"})(["border-width:1px;border-color:",";background-color:",";margin:20px 0;padding:20px 20px;border-radius:10px;"],Qe.GRAY_BORDER,Qe.WHITE),Yae=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__Header",componentId:"sc-t5iq98-1"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),Xae=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__Row",componentId:"sc-t5iq98-2"})(["flex-direction:row;align-items:center;"]),Zae=(0,Ge.default)(rf.default).withConfig({displayName:"bulk_download__HeadingText",componentId:"sc-t5iq98-3"})(["font-size:16px;font-weight:500;margin-left:5px;"]),Qae=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__Content",componentId:"sc-t5iq98-4"})(["margin:15px 0;padding-top:20px;border-top-width:1px;border-top-color:",";"],Qe.GRAY_3),Jae=(0,Ge.default)(rf.default).withConfig({displayName:"bulk_download__FilterText",componentId:"sc-t5iq98-5"})(["color:",";font-size:16px;margin-bottom:10px;"],Qe.GRAY_2),ese=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__Years",componentId:"sc-t5iq98-6"})(["flex-direction:row;align-items:center;flex-wrap:wrap;"]),tse=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__YearContainer",componentId:"sc-t5iq98-7"})(["border-width:1px;border-color:",";border-radius:8px;height:42px;width:68px;justify-content:center;align-items:center;margin:5px 3px;",""],Qe.GRAY_BORDER,({selected:e})=>e&&`background: ${Qe.GREEN_SUMMER_GRASS};`),nse=(0,Ge.default)(rf.default).withConfig({displayName:"bulk_download__YearText",componentId:"sc-t5iq98-8"})(["color:",";font-weight:",";"],({selected:e})=>e?Qe.WHITE:Qe.TEXT_DARK,({selected:e})=>e?"bold":300),ise=({selected:e,children:t,onPress:n})=>(0,X.jsx)(ts,{onPress:n,withoutFeedback:!0,children:(0,X.jsx)(tse,{selected:e,children:(0,X.jsx)(nse,{selected:e,children:t})})});ise.propTypes={selected:qc.default.bool,children:qc.default.oneOfType([qc.default.string,qc.default.number]).isRequired,onPress:qc.default.func};const ose=(0,Ge.default)(ts).withConfig({displayName:"bulk_download__DownloadCta",componentId:"sc-t5iq98-9"})(["margin-top:30px;padding:10px 20px;align-items:center;border-radius:10px;flex-direction:row;justify-content:center;background-color:",";",""],Qe.GREEN_SUMMER_GRASS,({disabled:e})=>e&&"opacity: 0.4;"),ase=(0,Ge.default)(rf.default).withConfig({displayName:"bulk_download__DownloadCtaText",componentId:"sc-t5iq98-10"})(["color:",";font-weight:500;font-size:15px;padding-left:5px;"],Qe.WHITE),sse=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__ErrorContainer",componentId:"sc-t5iq98-11"})(["flex-direction:row;align-items:center;justify-content:center;margin-top:20px;"]),rse=(0,Ge.default)(rf.default).withConfig({displayName:"bulk_download__ErrorText",componentId:"sc-t5iq98-12"})(["color:",";margin-left:5px;font-size:12px;"],Qe.CRIMSON_1),lse=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__DownloadTypeContainer",componentId:"sc-t5iq98-13"})(["margin-bottom:20px;z-index:1;"]),dse=(0,Ge.default)(qe.default).withConfig({displayName:"bulk_download__MonthsContainer",componentId:"sc-t5iq98-14"})(["margin-top:20px;z-index:1;"]),cse=()=>{const[e,t]=(0,K.useState)(!1),[n,i]=(0,K.useState)(qB),[o,a]=(0,K.useState)(),[s,r]=(0,K.useState)(C.DateTime.now().plus({months:-1}).toFormat("MM")),[l,d]=(0,K.useState)(!1),[c,u]=(0,K.useState)(!1),{isDesktop:p}=uu(),{session:{currentUser:m},pages:{invoices:{downloadInvoice:f}},analytics:{autoTrack:g}}=lt(),h=!o||n===BB&&!s;return(0,X.jsxs)(Kae,{isDesktop:p,children:[(0,X.jsx)(Ma.default,{onPress:()=>{g("User expanded bulk download invoices section","on bulk download invoices"),t(!e)},children:(0,X.jsxs)(Yae,{children:[(0,X.jsxs)(Xae,{children:[(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"file-download-outline",color:Qe.TEXT_DARK,size:20}),(0,X.jsx)(Zae,{children:i18n.t("invoices.bulk_download.dropdown_title")})]}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:e?"chevron-up":"chevron-down",color:Qe.TEXT_DARK})})]})}),e&&(0,X.jsx)(Qae,{children:c?(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(lse,{children:(0,X.jsx)(Dae,{downloadType:n,setDownloadType:i})}),(0,X.jsx)(Jae,{children:i18n.t("invoices.bulk_download.year")}),(0,X.jsx)(ese,{children:null===m||void 0===m?void 0:m.invoicedYears.map(e=>(0,X.jsx)(ise,{selected:e===o,onPress:()=>{return g(`User clicked on year ${t=e}`,"on bulk download invoices"),void a(t);var t},children:e},e))}
3306),n===BB&&(0,X.jsx)(dse,{children:(0,X.jsx)(Vae,{setMonth:r,month:s})}),(0,X.jsxs)(ose,{onPress:async()=>{g(`User clicked on download for ${o}`,"on bulk download invoices"),d(!1),u(!0);try{const e=((e,t,n)=>{if(e===qB){const e=`${t}-01-01`;return{startDate:e,endDate:C.DateTime.fromFormat(e,"yyyy-MM-dd").plus({years:1,seconds:-1}).toFormat("yyyy-MM-dd")}}const i=`${t}-${n}-01`;return{startDate:i,endDate:C.DateTime.fromFormat(i,"yyyy-MM-dd").plus({months:1,seconds:-1}).toFormat("yyyy-MM-dd")}})(n,o,s),{success:t}=await f(e);t?setTimeout(()=>{ru(((e,t)=>vi(`/providers/bulk_invoices/date_range?start_date=${e}&end_date=${t}`))(e.startDate,e.endDate)),g(`User downloaded invoices from ${e.startDate} to ${e.endDate}`,"on bulk download invoices"),u(!1)},5e3):(d(!0),u(!1),g(`User couldn't download invoices from ${e.startDate} to ${e.endDate}`,"on bulk download invoices"))}catch(e){console.error(e),d(!0),u(!1)}},disabled:h||c,children:[(0,X.jsx)(Pa.default,{name:"file-download-outline",set:"MaterialCommunityIcons",color:Qe.WHITE,size:24}),(0,X.jsx)(ase,{children:i18n.t("invoices.bulk_download.download_cta")})]}),l&&(0,X.jsxs)(sse,{children:[(0,X.jsx)(Pa.default,{name:"warning",color:Qe.CRIMSON_1,size:16}),(0,X.jsx)(rse,{children:i18n.t("invoices.bulk_download.error")})]})]})})]})};const use=function(){return(0,X.jsx)(Rf,{title:i18n.t("invoices.header.title"),content:()=>(0,X.jsx)(cse,{})})},pse=()=>{const{session:{currentUser:e}}=lt();return null!==e&&void 0!==e&&e.premium?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(use,{})},mse=(0,Ge.default)(ts).withConfig({displayName:"avatar__ProfilePicEdit",componentId:"sc-16avvyw-0"})(["position:relative;align-self:center;"]),fse=(0,Ge.default)(pu.default).withConfig({displayName:"avatar__ProfileImage",componentId:"sc-16avvyw-1"})(["border-radius:60px;width:120px;height:120px;"]),gse=(0,Ge.default)(Be.default).withConfig({displayName:"avatar__Fullname",componentId:"sc-16avvyw-2"})(["color:",";font-size:20px;font-weight:700;text-align:center;"],Qe.GRAY_0),hse=(0,Ge.default)(qe.default).withConfig({displayName:"avatar__EditCircle",componentId:"sc-16avvyw-3"})(["position:absolute;right:0px;bottom:0px;background-color:",";width:40px;height:40px;justify-content:center;align-items:center;border-radius:20px;"],Qe.WHITE),_se=(0,Ge.default)(Aa.default).withConfig({displayName:"avatar__Loading",componentId:"sc-16avvyw-4"})(["position:absolute;z-index:1;top:50px;left:50px;"]),xse=(0,Te.observer)(({editor:e})=>{const{session:{currentUser:t,setProfilePicture:n},toast:{showToastMessage:i},analytics:{autoTrack:o}}=lt(),[a,s]=(0,K.useState)(!1),{croppingModalOpen:r,picture:l,openImagePickerAsync:d,onConfirm:c,onCroppingError:u,loading:p,avatar:m,setCroppingModalOpen:f}=B4({currentUser:t,setProfilePicture:n,showToastMessage:i,autoTrack:o,referrer:"edit public profile page"}),{fullName:g}=t,h=vi(m);return(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(mse,{testID:"EditPublicProfile::AvatarPicture",disableWhenOffline:!0,onPress:()=>{e.setErrors(null),s(!0)},children:[p&&(0,X.jsx)(_se,{size:"small",color:Qe.GREEN_SUMMER_GRASS}),(0,X.jsx)(fse,{source:{uri:h}}),(0,X.jsx)(hse,{children:(0,X.jsx)(Pa.default,{name:"edit",size:24,color:"#c3c3c3"})})]}),(0,X.jsx)(gse,{children:g}),r&&(0,X.jsx)(g4,{isVisible:r,picture:l,onConfirm:c,onClose:()=>f(!1),loading:p,onError:u}),a&&(0,X.jsx)(z4,{isVisible:a,onSubmit:()=>{s(!1),setTimeout(()=>{d()},450)},onClose:()=>s(!1)})]})}),yse=(0,Ge.default)(qe.default).withConfig({displayName:"pets_friendless__Container",componentId:"sc-1cqli7x-0"})(["gap:16px;"]),vse=(0,Ge.default)(Be.default).withConfig({displayName:"pets_friendless__Title",componentId:"sc-1cqli7x-1"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),bse=(0,Ge.default)(qe.default).withConfig({displayName:"pets_friendless__Border",componentId:"sc-1cqli7x-2"})(["align-items:center;flex-direction:row;border-radius:8px;border-width:1px;border-color:",";padding:20px;"],Qe.GRAY_LIGHT),wse=(0,Ge.default)(qe.default).withConfig({displayName:"pets_friendless__SwitchContainer",componentId:"sc-1cqli7x-3"})(["margin-left:auto;"]),Cse=(0,Ge.default)(Be.default).withConfig({displayName:"pets_friendless__Label",componentId:"sc-1cqli7x-4"})(["font-size:14px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK),jse=({petsOk:e,setPetsOk:t})=>{const{autoTrackEnhanced:n}=mt();return(0,X.jsxs)(yse,{children:[(0,X.jsx)(vse,{children:i18n.t("edit_profile.v2.pets.title")}),(0,X.jsxs)(bse,{children:[(0,X.jsx)(Cse,{children:i18n.t("edit_profile.pets_friendless.pet_option_label")}
3306),(0,X.jsx)(wse,{children:(0,X.jsx)(RU,{value:e,onChange:e=>{n({userFlow:Oa,action:Xa.toggle,objectName:"Okay with pets switch",properties:{petsOk:e}}),t(e)}})})]})]})},Ise=(0,Ge.default)(qe.default).withConfig({displayName:"additional_services__Container",componentId:"sc-uvcb4y-0"})(["gap:16px;"]),Tse=(0,Ge.default)(Be.default).withConfig({displayName:"additional_services__Title",componentId:"sc-uvcb4y-1"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),Ese=(0,Ge.default)(qe.default).withConfig({displayName:"additional_services__Border",componentId:"sc-uvcb4y-2"})(["border-radius:8px;border-width:1px;border-color:",";padding:0 20px;"],Qe.GRAY_LIGHT),Nse=(0,Ge.default)(Be.default).withConfig({displayName:"additional_services__Label",componentId:"sc-uvcb4y-3"})(["font-size:14px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK),kse=(0,Ge.default)(qe.default).withConfig({displayName:"additional_services__Row",componentId:"sc-uvcb4y-4"})(["align-items:center;flex-direction:row;padding:16px 0px;border:0px solid ",";border-bottom-width:1px;",""],Qe.GRAY_LIGHT,({hideBottomBorder:e})=>e&&"\n    border-bottom-width: 0px;\n  "),Rse=({ironingOk:e,setIroningOk:t,laundryOk:n,setLaundryOk:i,windowsOk:o,setWindowsOk:a})=>{const{autoTrackEnhanced:s}=mt();return(0,X.jsxs)(Ise,{children:[(0,X.jsx)(Tse,{children:i18n.t("edit_profile.v2.additional_services.title")}),(0,X.jsxs)(Ese,{children:[(0,X.jsxs)(kse,{children:[(0,X.jsx)(Nse,{children:i18n.t("edit_profile.additional_services.ironing_option_label")}),(0,X.jsx)(RU,{value:e,onChange:e=>{s({userFlow:Ba,action:Xa.toggle,objectName:"Ironing switch",properties:{ironingOk:e}}),t(e)}})]}),(0,X.jsxs)(kse,{children:[(0,X.jsx)(Nse,{children:i18n.t("edit_profile.additional_services.laundry_option_label")}),(0,X.jsx)(RU,{value:n,onChange:e=>{s({userFlow:Oa,action:Xa.toggle,objectName:"Laundry switch",properties:{laundryOk:e}}),i(e)}})]}),(0,X.jsxs)(kse,{hideBottomBorder:!0,children:[(0,X.jsx)(Nse,{children:i18n.t("edit_profile.additional_services.windows_option_label")}),(0,X.jsx)(RU,{value:o,onChange:e=>{s({userFlow:Oa,action:Xa.toggle,objectName:"Windows cleaning switch",properties:{windowsOk:e}}),a(e)}})]})]})]})};const Sse=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none"},e,{children:[(0,X.jsx)(Wu.G,{clipPath:"url(#clip0_1648_41138)",children:(0,X.jsx)(Wu.Path,{d:"M7.53 1.282a.5.5 0 01.94 0l.478 1.306a7.5 7.5 0 004.464 4.464l1.305.478a.5.5 0 010 .94l-1.305.478a7.5 7.5 0 00-4.464 4.464l-.478 1.305a.5.5 0 01-.94 0l-.478-1.305a7.5 7.5 0 00-4.464-4.464L1.282 8.47a.5.5 0 010-.94l1.306-.478a7.5 7.5 0 004.464-4.464l.478-1.306z",fill:"#5C8E85"})}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1648_41138",children:(0,X.jsx)(Wu.Path,{fill:"#fff",d:"M0 0H16V16H0z"})})})]}))},Ase=(0,Ge.default)(qe.default).withConfig({displayName:"experiences__Container",componentId:"sc-15ssz3v-0"})(["background-color:",";gap:24px;"],Qe.WHITE),Pse=(0,Ge.default)(Be.default).withConfig({displayName:"experiences__Title",componentId:"sc-15ssz3v-1"})(["font-size:16px;font-weight:bold;color:",";"],Qe.TEXT_DARK),Dse=(0,Ge.default)(qe.default).withConfig({displayName:"experiences__Field",componentId:"sc-15ssz3v-2"})(["gap:12px;"]),Mse=(0,Ge.default)(Be.default).withConfig({displayName:"experiences__Label",componentId:"sc-15ssz3v-3"})(["color:",";font-size:14px;font-weight:600;"],({error:e})=>e?Qe.CRIMSON_1:Qe.TEXT_DARK),Ose=(0,Ge.default)(qe.default).withConfig({displayName:"experiences__TextInputContainer",componentId:"sc-15ssz3v-4"})(["border:",";padding:12px;border-radius:8px;"],({error:e})=>e?`1px solid ${Qe.CRIMSON_1}`:`1px solid ${Qe.GRAY_BORDER}`),zse=(0,Ge.default)(Uc.default).attrs({placeholderTextColor:Qe.GRAY_2,textAlignVertical:void 0}).withConfig({displayName:"experiences__TextInput",componentId:"sc-15ssz3v-5"})(["padding:4px;font-size:13px;color:",";outline-style:none;",""],Qe.TEXT_DARK,({numberOfLines:e})=>""),Lse=(0,Ge.default)(Be.default).withConfig({displayName:"experiences__FieldInfo",componentId:"sc-15ssz3v-6"})(["text-align:right;color:",";font-size:11px;font-weight:400;"],({error:e})=>e?Qe.CRIMSON_1:Qe.GRAY_2),qse=(0,Ge.default)(qe.default).withConfig({displayName:"experiences__TipContainer",componentId:"sc-15ssz3v-7"})(["background-color:#f2f7f7;border-radius:8px;padding:16px;flex-direction:row;align-items:center;gap:12px;"]),Bse=(0,Ge.default)(Be.default).withConfig({displayName:"experiences__TipMessage",componentId:"sc-15ssz3v-8"})(["font-size:13px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK),Gse=(0,Ge.default)(qe.default).withConfig({displayName:"experiences__Line",componentId:"sc-15ssz3v-9"})(["height:1px;background-color:",";"],Qe.GRAY_BORDER),Use=(0,Ge.default)(Be.default).withConfig({displayName:"experiences__ErrorText",componentId:"sc-15ssz3v-10"})(["color:",";font-size:12px;font-weight:600;"],Qe.CRIMSON_1),$se=({errors:e,experience:t,setExperience:n,minHeadlineLength:i,minDescriptionLength:o})=>{const a=ft();return(0,X.jsxs)(Ase,{children:[(0,X.jsx)(Pse,{children:i18n.t("edit_profile.v2.experiences.title")}),(0,X.jsxs)(Dse,{children:[(0,X.jsx)(Mse,{error:null===e||void 0===e?void 0:e.experienceHeadline,children:i18n.t("edit_profile.v2.experience.headline_input.label")}),(null===e||void 0===e?void 0:e.experienceHeadline)&&(0,X.jsx)(Use,{testID:"ExperienceHeadline:ErrorText",children:null===e||void 0===e?void 0:e.experienceHeadline}),(0,X.jsxs)(Ose,{error:!(null===e||void 0===e||!e.experienceHeadline),testID:"ExperienceHeadline:TextInputContainer",children:[(0,X.jsx)(zse,{multiline:!0,numberOfLines:4,value:t.experienceHeadline,onChangeText:e=>{a({userFlow:Oa,action:Xa.input,objectName:"Experience headline",properties:{}}),n(Object.assign({},t,{experienceHeadline:e}))},maxLength:100,placeholder:i18n.t("edit_profile.v2.experience.headline_input.placeholder"),testID:"ExperienceHeadline:TextInput"}),(0,X.jsx)(Lse,{error:null===e||void 0===e?void 0:e.experienceHeadline,children:i18n.t("shared.input_text_info",{length:t.experienceHeadline.length,minLength:i,maxLength:100})})]}),(0,X.jsxs)(qse,{children:[(0,X.jsx)(Sse,{}),(0,X.jsx)(Bse,{children:i18n.t("edit_profile.v2.experience.headline_input.tips")})]})]}),(0,X.jsx)(Gse,{}),(0,X.jsxs)(Dse,{children:[(0,X.jsx)(Mse,{error:null===e||void 0===e?void 0:e.experienceDescription,children:i18n.t("edit_profile.v2.experience.experience_input.label")}),(null===e||void 0===e?void 0:e.experienceDescription)&&(0,X.jsx)(Use,{testID:"ExperienceDescription:ErrorText",children:null===e||void 0===e?void 0:e.experienceDescription}),(0,X.jsxs)(Ose,{error:!(null===e||void 0===e||!e.experienceDescription),children:[(0,X.jsx)(zse,{multiline:!0,numberOfLines:6,value:t.experienceDescription,onChangeText:e=>{a({userFlow:Oa,action:Xa.input,objectName:"Experience description",properties:{}}),n(Object.assign({},t,{experienceDescription:e}))},maxLength:500,placeholder:i18n.t("edit_profile.v2.experience.experience_input.placeholder"),testID:"ExperienceDescription:TextInput"}),(0,X.jsx)(Lse,{error:null===e||void 0===e?void 0:e.experienceDescription,children:i18n.t("shared.input_text_info",{length:t.experienceDescription.length,minLength:o,maxLength:500})})]}),(0,X.jsxs)(qse,{children:[(0,X.jsx)(Sse,{}),(0,X.jsx)(Bse,{children:i18n.t("edit_profile.v2.experience.experience_input.tips")})]})]})]})};var Fse=n(45150);const Hse="success",Wse="bottom",Vse=(0,Ge.default)(ws.default).withConfig({displayName:"profile_link_copied_toast__CustomPressable",componentId:"sc-rus2fg-0"})(["position:absolute;top:0;left:16px;right:16px;bottom:0;z-index:1000;justify-content:flex-end;"]),Kse=(0,Ge.default)(qe.default).withConfig({displayName:"profile_link_copied_toast__Container",componentId:"sc-rus2fg-1"}
3306)(["height:0;width:100%;"]),Yse=({show:e,message:t=i18n.t("edit_public_profile.share_profile_link.copied"),duration:n=3e3,close:i})=>{const o=(0,K.useRef)(new Tw.default.Value(-24)).current;return(0,K.useEffect)(()=>{e&&(o.setValue(-24),Tw.default.timing(o,{toValue:0,duration:300,useNativeDriver:!1}).start())},[e]),e?(0,X.jsx)(Vse,{onPress:i,children:(0,X.jsx)(Kse,{children:(0,X.jsx)(Tw.default.View,{style:{[Wse]:o},testID:`ToastAnimatedView::${Hse}`,children:(0,X.jsx)(Ew.default,{message:t,type:Hse,position:Wse,duration:n,close:i})})})}):null};Yse.propTypes={show:qc.default.bool.isRequired,message:qc.default.string,duration:qc.default.number,close:qc.default.func.isRequired};const Xse=(0,Te.observer)(({editor:e})=>{const{session:{currentUser:t}}=lt(),[n,i]=(0,K.useState)(!1),[o,a]=(0,K.useState)(!1),{id:s,avatar:r,metro:l,firstname:d}=t,c=vi(r),{autoTrackEnhanced:u}=mt(),{fetch:p,data:m,loading:f}=(()=>{const[e,{loading:t,data:n,error:i,refetch:o}]=(0,kn.useLazyQuery)(w3),{provider:{documents:a=[]}={},ratings:{totalCount:s=0,edges:r=[]}={},avgRating:{total:l=0}={},stats:{jobsDone:d=0}={}}=n||{};return{fetch:()=>e({context:{apiVersion:3}}),data:n?{jobsDone:d,averageRating:l,ratingsReceivedCount:s,reviews:r.map(({node:e})=>e),documents:a}:null,error:i,loading:t,refetch:o}})(),g=m?Object.assign({},m,{providerId:s,metro:l,shortname:d,profileImageUrl:c,performedCleaningsCount:m.jobsDone,pets:e.petsOk,windows:e.windowsOk,experienceHeadline:e.experience.experienceHeadline,experienceDescription:e.experience.experienceDescription}):null;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ms,{disabled:f,loading:f,disableWhenOffline:!0,onPress:async()=>{await p(),i(!0),u({userFlow:Oa,action:Xa.click,objectName:"Preview profile button"})},variant:"secondary",stretched:!0,testID:"EditPublicProfile::PreviewButton",children:i18n.t("edit_profile.v2.actions.preview_profile")}),(0,X.jsx)(Fse.default,{isVisible:n,candidate:g,showDocuments:!0,fullscreenModal:!1,fetchReviews:()=>({reviews:m.reviews,loading:!1}),translationsPrefix:"funnel.modals",onClose:()=>i(!1),showShareLink:!0,onShareLinkPress:async()=>{const t="REF",n="pa",i="rmp",o="sharelink",s=`${Qi(e.profile.slug)}?utm_medium=${t}&utm_source=${n}&utm_campaign=${i}&utm_content=${o}`;await mK.setStringAsync(s),a(!0),u({userFlow:Oa,action:Xa.click,objectName:"Share profile link"})},renderOnTop:(0,X.jsx)(Yse,{show:o,close:()=>a(!1)})})]})}),Zse=(0,Ge.default)(qe.default).withConfig({displayName:"edit_public_profile_form__Container",componentId:"sc-hf9rq3-0"})(["gap:20px;padding-bottom:",";"],"0"),Qse=(0,Ge.default)(qe.default).withConfig({displayName:"edit_public_profile_form__Line",componentId:"sc-hf9rq3-1"})(["height:1px;background-color:",";"],Qe.GRAY_BORDER),Jse=({editor:e,minHeadlineLength:t,minDescriptionLength:n})=>(0,X.jsxs)(Zse,{children:[(0,X.jsx)($se,{errors:e.errors,experience:e.experience,setExperience:t=>{e.setErrors(null),e.setExperience(t)},minHeadlineLength:t,minDescriptionLength:n}),(0,X.jsx)(Qse,{}),(0,X.jsx)(jse,{petsOk:e.petsOk,setPetsOk:e.setPetsOk}),(0,X.jsx)(Qse,{}),(0,X.jsx)(Rse,{ironingOk:e.ironingOk,setIroningOk:e.setIroningOk,laundryOk:e.laundryOk,setLaundryOk:e.setLaundryOk,windowsOk:e.windowsOk,setWindowsOk:e.setWindowsOk}),(0,X.jsx)(Qse,{}),(0,X.jsx)(Xse,{editor:e})]}),ere=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you_modal__Container",componentId:"sc-pd3cbp-0"})(["display:flex;flex:1;padding:20px;"]),tre=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you_modal__Content",componentId:"sc-pd3cbp-1"})(["flex:1;"]),nre=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you_modal__TitleContainer",componentId:"sc-pd3cbp-2"})(["padding:30px;"]),ire=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you_modal__HintImage",componentId:"sc-pd3cbp-3"})(["font-size:48px;align-self:center;margin-bottom:10px;"]),ore=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you_modal__Title",componentId:"sc-pd3cbp-4"})(["font-size:16px;font-weight:700;color:",";text-align:center;"],Qe.TEXT_DARK),are=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you_modal__SubTitle",componentId:"sc-pd3cbp-5"})(["color:",";font-size:14px;text-align:center;font-weight:300;margin-top:10px;"],Qe.TEXT_DARK),sre=(0,Ge.default)(ts).withConfig({displayName:"thank_you_modal__DimissButton",componentId:"sc-pd3cbp-6"})(["border:1px solid ",";padding:10px 20px;border-radius:16px;margin-top:30px;max-width:300px;align-self:center;width:100%;"],Qe.BLACK),rre=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you_modal__DimissButtonText",componentId:"sc-pd3cbp-7"})(["color:",";font-size:16px;font-weight:700;align-self:center;"],Qe.BLACK);const lre=function({open:e,dimiss:t,title:n,subtitle:i,dimissActionText:o}){return(0,X.jsx)(zw,{isOpen:e,onClose:t,size:"small",displayCloseButton:!0,children:(0,X.jsxs)(ere,{children:[(0,X.jsx)(tre,{children:(0,X.jsxs)(nre,{children:[(0,X.jsx)(ire,{children:"\ud83d\udc4d"}),(0,X.jsx)(ore,{children:n}),i&&(0,X.jsx)(are,{children:i})]})}),(0,X.jsx)(sre,{onPress:t,children:(0,X.jsx)(rre,{children:o||i18n.t("shared.thank_you_modal.dismiss_action_text")})})]})})},dre=(0,Ge.default)(qe.default).withConfig({displayName:"first_banner__Backgroun
3306d",componentId:"sc-z1xnxy-0"})(["background-color:#eff4f3;border-radius:12px;align-items:center;margin-bottom:24px;"]);const cre=function(){return(0,X.jsx)(dre,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 132",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/132,maxWidth:343},children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1648_40185)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:132,rx:12,fill:"#EFF4F3"}),(0,X.jsx)(Wu.Rect,{x:94,y:29,width:156,height:128.186,rx:14.5366,fill:"#fff"}),(0,X.jsx)(Wu.Path,{d:"M113.826 106.967h116.293M113.826 130.756h85.898",stroke:"#E4E4E4",strokeWidth:11.6637,strokeLinecap:"round"}),(0,X.jsx)(Wu.Path,{d:"M148.444 64.085a19.373 19.373 0 01-11.957 17.896 19.371 19.371 0 01-25.308-25.309 19.365 19.365 0 0117.895-11.957 19.372 19.372 0 0119.37 19.37z",fill:"#EFF4F3"}),(0,X.jsx)(Wu.Path,{d:"M129.073 43.095a20.984 20.984 0 1020.984 20.984 21.002 21.002 0 00-20.984-20.984zm0 38.74a17.756 17.756 0 1117.756-17.756 17.778 17.778 0 01-17.756 17.756zm-9.685-21.791a2.422 2.422 0 114.843 0 2.422 2.422 0 01-4.843 0zm20.984 0a1.616 1.616 0 01-1.614 1.614h-4.842a1.616 1.616 0 01-1.614-1.614 1.616 1.616 0 011.614-1.615h4.842a1.616 1.616 0 011.614 1.615zm-1.832 9.685c-2.076 3.59-5.526 5.65-9.467 5.65-3.94 0-7.391-2.059-9.467-5.65a1.622 1.622 0 01-.206-1.25 1.613 1.613 0 012.018-1.167 1.61 1.61 0 01.981.803c1.507 2.604 3.876 4.035 6.674 4.035 2.799 0 5.168-1.433 6.675-4.035a1.623 1.623 0 01.98-.803 1.617 1.617 0 012.018 1.167 1.616 1.616 0 01-.206 1.25z",fill:"#5C8E85"})]}),(0,X.jsx)(Wu.Defs,{children:(0,X.jsx)(Wu.ClipPath,{id:"clip0_1648_40185",children:(0,X.jsx)(Wu.Rect,{width:343,height:132,rx:12,fill:"#fff"})})})]})})},ure=(0,Ge.default)(qe.default).withConfig({displayName:"second_banner__Backgroun
3306d",componentId:"sc-1jm6eiz-0"})(["background-color:#eff4f3;border-radius:12px;align-items:center;margin-bottom:24px;"]);const pre=function(){return(0,X.jsx)(ure,{children:(0,X.jsxs)(Wu.default,{width:"100%",height:void 0,viewBox:"0 0 343 132",fill:"none",preserveAspectRatio:"xMidYMid meet",style:{aspectRatio:343/132,maxWidth:343},children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_1648_39996)",children:[(0,X.jsx)(Wu.Rect,{width:343,height:132,rx:12,fill:"#EFF4F3"}),(0,X.jsx)(Wu.Rect,{x:94,y:29,width:156,height:128.186,rx:14.5366,fill:"#fff"}),(0,X.jsx)(Wu.Path,{d:"M201.792 70.704L194.864 53.7c-.644-1.582.861-3.19 2.482-2.653l13.359 4.431a2 2 0 011.151 2.81l-6.431 12.573c-.78 1.523-2.988 1.428-3.633-.157z",fill:"#93B4AE",stroke:"#93B4AE",strokeWidth:4}),(0,X.jsx)(Wu.Path,{d:"M130.202 86.957l76.04-27.586",stroke:"#93B4AE",strokeWidth:10,strokeLinecap:"round"}),(0,X.jsx)(Wu.G,{clipPath:"url(#clip1_1648_39996)",children:(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M212.981 85.007a7.113 7.113 0 017.114 7.114v49.793a3.555 3.555 0 01-3.557 3.556h-17.783a3.558 3.558 0 01-3.557-3.556V92.121a7.114 7.114 0 017.113-7.114h10.67zm-35.566 10.67a7.113 7.113 0 017.113 7.114v39.123a3.554 3.554 0 01-3.556 3.556h-17.784a3.555 3.555 0 01-3.556-3.556v-39.123a7.113 7.113 0 017.113-7.114h10.67zm-30.537 12.74a7.113 7.113 0 00-5.029-2.084h-10.67a7.112 7.112 0 00-7.114 7.113v28.453a3.556 3.556 0 003.557 3.557h17.783a3.556 3.556 0 003.557-3.557v-28.453a7.117 7.117 0 00-2.084-5.029z",fill:"#E4E4E4"})})]}),(0,X.jsxs)(Wu.Defs,{children:[(0,X.jsx)(Wu.ClipPath,{id:"clip0_1648_39996",children:(0,X.jsx)(Wu.Rect,{width:343,height:132,rx:12,fill:"#fff"})}),(0,X.jsx)(Wu.ClipPath,{id:"clip1_1648_39996",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(122.288 46.027)",d:"M0 0H99.5858V99.5858H0z"})})]})]})})},mre=(0,Ge.default)(qe.default).withConfig({displayName:"warning__Container",componentId:"sc-ka1whf-0"})(["flex-direction:row;align-items:center;background-color:#fbf4ee;border-radius:7px;gap:16px;padding:16px;"]),fre=(0,Ge.default)(Be.default).withConfig({displayName:"warning__WarningText",componentId:"sc-ka1whf-1"})(["font-size:13px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK),gre=()=>(0,X.jsxs)(mre,{children:[(0,X.jsx)(Pa.default,{name:"information",size:16,color:"#FF9970",set:"MaterialCommunityIcons"}),(0,X.jsx)(fre,{children:i18n.t("edit_profile.v2.intro.step_1.warning.message")})]});const hre=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M8 1.333a6.667 6.667 0 100 13.334A6.667 6.667 0 008 1.334zm2.866 5.074l-3.046 4a.667.667 0 01-1.054.007L5.14 8.34a.667.667 0 111.053-.82L7.28 8.907 9.8 5.574a.67.67 0 111.066.813v.02z",fill:"#5C8E85"})}))},_re=(0,Ge.default)(qe.default).withConfig({displayName:"profile_guidelines__Card",componentId:"sc-8nbfwm-0"})(["background-color:",";border-radius:12px;padding:0 12px;border:1px solid ",";"],Qe.WHITE,x4.COLOR_BORDER),xre=(0,Ge.default)(qe.default).withConfig({displayName:"profile_guidelines__GuidelineItem",componentId:"sc-8nbfwm-1"})(["flex-direction:row;align-items:center;padding:12px 0;gap:12px;",""],({isLast:e})=>!e&&`border-bottom-width: 1px; border-bottom-color: ${x4.COLOR_BORDER};`),yre=(0,Ge.default)(Be.default).withConfig({displayName:"profile_guidelines__GuidelineText",componentId:"sc-8nbfwm-2"})(["font-size:13px;font-weight:400;color:",";flex:1;"],Qe.TEXT_DARK),vre=()=>{const e=[i18n.t("edit_profile.v2.intro.guidelines.1"),i18n.t("edit_profile.v2.intro.guidelines.2"),i18n.t("edit_profile.v2.intro.guidelines.3")];return(0,X.jsx)(_re,{children:e.map((t,n)=>(0,X.jsxs)(xre,{isLast:n===e.length-1,children:[(0,X.jsx)(hre,{}),(0,X.jsx)(yre,{children:t})]},n))})},bre=n(76308),wre=(0,Ge.default)(qe.default).withConfig({displayName:"example_profile__Card",componentId:"sc-mcnyy9-0"})(["background-color:",";border-radius:12px;overflow:hidden;"],Qe.WHITE),Cre=(0,Ge.default)(qe.default).withConfig({displayName:"example_profile__Header",componentId:"sc-mcnyy9-1"})(["background-color:",";border-bottom-width:1px;border-bottom-color:",";padding:8px 16px;align-items:center;padding-bottom:22px;margin-bottom:-16px;"],Qe.GREEN_SUMMER_GRASS,Qe.GREEN_SUMMER_GRASS),jre=(0,Ge.default)(Be.default).withConfig({displayName:"example_profile__HeaderText",componentId:"sc-mcnyy9-2"})(["color:",";font-size:11px;font-weight:700;"],Qe.WHITE),Ire=(0,Ge.default)(qe.default).withConfig({displayName:"example_profile__Content",componentId:"sc-mcnyy9-3"})(["padding:16px;background-color:",";border:1px solid ",";border-radius:16px;overflow:hidden;gap:16px;"],Qe.WHITE,Qe.GREEN_SUMMER_GRASS),Tre=(0,Ge.default)(qe.default).withConfig({displayName:"example_profile__ProfileSection",componentId:"sc-mcnyy9-4"})(["flex-direction:row;align-items:center;gap:12px;"]),Ere=(0,Ge.default)(pu.default).withConfig({displayName:"example_profile__ProfileImage",componentId:"sc-mcnyy9-5"})(["width:48px;height:48px;border-radius:8px;"]),Nre=(0,Ge.default)(qe.default).withConfig({displayName:"example_profile__ProfileInfo",componentId:"sc-mcnyy9-6"})(["flex:1;gap:4px;"]),kre=(0,Ge.default)(qe.default).withConfig({displayName:"example_profile__ProfileDetails",componentId:"sc-mcnyy9-7"})(["flex:1;gap:8px;"]),Rre=(0,Ge.default)(Be.default).withConfig({displayName:"example_profile__Name",componentId:"sc-mcnyy9-8"})(["font-size:16px;font-weight:700;color:",";"],Qe.TEXT_DARK),Sre=(0,Ge.default)(Be.default).withConfig({displayName:"example_profile__Location",componentId:"sc-mcnyy9-9"})(["font-size:13px;font-weight:600;color:",";"],Qe.GRAY_1),Are=(0,Ge.default)(Be.default).withConfig({displayName:"example_profile__Headline",componentId:"sc-mcnyy9-10"})(["font-size:13px;font-weight:700;color:",";"],Qe.TEXT_DARK),Pre=(0,Ge.default)(Be.default).withConfig({displayName:"example_profile__Description",componentId:"sc-mcnyy9-11"})(["font-size:12px;font-weight:600;color:",";"],Qe.GRAY_1),Dre=()=>(0,X.jsxs)(wre,{children:[(0,X.jsx)(Cre,{children:(0,X.jsx)(jre,{children:i18n.t("edit_profile.v2.intro.example.title")})}),(0,X.jsxs)(Ire,{children:[(0,X.jsxs)(Tre,{children:[(0,X.jsx)(Ere,{source:bre}),(0,X.jsxs)(Nre,{children:[(0,X.jsx)(Rre,{children:i18n.t("edit_profile.v2.intro.example.name")}),(0,X.jsx)(Sre,{children:i18n.t("edit_profile.v2.intro.example.location")})]})]}),(0,X.jsx)(Tre,{children:(0,X.jsxs)(kre,{children:[(0,X.jsx)(Are,{children:i18n.t("edit_profile.v2.intro.example.headline")}),(0,X.jsx)(Pre,{children:i18n.t("edit_profile.v2.intro.example.description")})]})})]})]}),Mre=(0,Ge.default)(qe.default).withConfig({displayName:"guide__Container",componentId:"sc-cgznch-0"})(["margin:50px 16px 20px 16px;flex:1;"]),Ore=(0,Ge.default)(qe.default).withConfig({displayName:"guide__StepTwoContainer",componentId:"sc-cgznch-1"})(["padding-top:8px;gap:16px;"]),zre=({initialOpen:e=!1})=>{const[t,n]=(0,K.useState)(e),[i,o]=(0,K.useState)(0),{autoTrackEnhanced:a}=mt();return t?(0,X.jsx)(zw,{isOpen:t,onClose:()=>{a({userFlow:Oa,action:Xa.close,objectName:"Profile setup guide",properties:{step:i}}),o(0),n(!1)},displayCloseButton:!0,size:"big",children:(0,X.jsxs)(Mre,{children:[0===i&&(0,X.jsx)(qL,{hasFixedFooter:!0,testID:"EditPublicProfile::IntroStep1",title:i18n.t("edit_profile.v2.intro.step_1.title"),description:i18n.t("edit_profile.v2.intro.step_1.description"),bannerComponent:(0,X.jsx)(cre,{}),primaryButton:{title:i18n.t("edit_profile.v2.intro.step_1.submit.label"),testID:"EditPublicProfile::IntroStep1::Submit",onPress:()=>{o(1)},trackingUserFlow:Oa,trackingObjectName:"Next button in profile setup guide step 1"},viewTrackingProps:{userFlow:Oa,objectName:"Profile setup guide step 1"},children:(0,X.jsx)(gre,{})}),1===i&&(0,X.jsx)(qL,{hasFixedFooter:!0,testID:"EditPublicProfile::IntroStep2",title:i18n.t("edit_profile.v2.intro.step_2.title"),bannerComponent:(0,X.jsx)(pre,{}),primaryButton:{title:i18n.t("edit_profile.v2.intro.step_2.submit.label"),testID:"EditPublicProfile::IntroStep2::Submit",onPress:()=>{o(0),n(!1)},trackingUserFlow:Oa,trackingObjectName:"Next button in profile setup guide step 2"},viewTrackingProps:{userFlow:Oa,objectName:"Profile setup guide step 2"},children:(0,X.jsxs)(Ore,{children:[(0,X.jsx)(vre,{}),(0,X.jsx)(Dre,{})]})})]})}):null},Lre=(0,Ge.default)(qe.default).withConfig({displayName:"edit_public_profile__Container",componentId:"sc-b7sd4y-0"})(["gap:32px;"]),qre=(0,Ge.default)(qe.default).withConfig({displayName:"edit_public_profile__ButtonContainer",componentId:"sc-b7sd4y-1"})(["width:100%;max-width:750px;"]),Bre=(0,Ge.default)(qe.default).withConfig({displayName:"edit_public_profile__FooterContainer",componentId:"sc-b7sd4y-2"})(["padding:16px;gap:12px;width:100%;align-items:center;"]),Gre=({onboarding:e})=>{const{session:{currentUser:t},toast:{showToastMessage:n}}=lt(),i=(0,Ks.useHistory)(),{autoTrackEnhanced:o}=mt(),[a,s]=(0,K.useState)(!1),{data:r,loading:l,refetch:d}=j3(),c=(e=>{const[t,n]=(0,K.useState)(e.experience),[i,o]=(0,K.useState)(!1),[a,s]=(0,K.useState)(!1),[r,l]=(0,K.useState)(!1),[d,c]=(0,K.useState)(!1),[u,p]=(0,K.useState)(null);return(0,K.useEffect)(()=>{n(e.experience)},[e.experience.experienceHeadline,e.experience.experienceDescription]),(0,K.useEffect)(()=>{o(!!e.petsOk)},[e.petsOk]),(0,K.useEffect)(()=>{s(!!e.ironingOk)},[e.ironingOk]),(0,K.useEffect)(()=>
3306{l(!!e.laundryOk)},[e.laundryOk]),(0,K.useEffect)(()=>{c(!!e.windowsOk)},[e.windowsOk]),{changed:t.experienceHeadline!==e.experience.experienceHeadline||t.experienceDescription!==e.experience.experienceDescription||i!==e.petsOk||a!==e.ironingOk||r!==e.laundryOk||d!==e.windowsOk,profile:e,experience:t,setExperience:n,petsOk:i,setPetsOk:o,ironingOk:a,setIroningOk:s,laundryOk:r,setLaundryOk:l,windowsOk:d,setWindowsOk:c,errors:u,setErrors:p}})(r),{updateProviderProfile:u,loading:p}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(I3,{refetchQueries:[C3]});return{updateProviderProfile:t=>e({variables:t}),loading:t,error:n}})(),{markRequirementAsCompleted:m}=Es();(0,K.useEffect)(()=>{d()},[]);const f=e=>{const t=(null===e||void 0===e?void 0:e.experienceHeadline)||(null===e||void 0===e?void 0:e.experienceDescription),i=null===e||void 0===e?void 0:e.picture;return null!==e&&void 0!==e&&e.experienceHeadline&&c.setErrors(t=>Object.assign({},t,{experienceHeadline:[null===e||void 0===e?void 0:e.experienceHeadline]})),null!==e&&void 0!==e&&e.experienceDescription&&c.setErrors(t=>Object.assign({},t,{experienceDescription:[null===e||void 0===e?void 0:e.experienceDescription]})),null!==e&&void 0!==e&&e.picture&&c.setErrors(t=>Object.assign({},t,{picture:[null===e||void 0===e?void 0:e.picture]})),t&&i?n({message:i18n.t("edit_public_profile.errors.general.missing")}):t?n({message:i18n.t("edit_public_profile.errors.experiences.missing")}):null!==e&&void 0!==e&&e.picture?n({message:i18n.t("edit_public_profile.errors.picture.missing")}):void 0},g=async n=>{var a,r;if(c.setErrors(null),o({userFlow:Oa,action:Xa.click,objectName:"Save and Continue button",properties:{}}),!(e=>{var n,i;const o={experienceHeadline:null,experienceDescription:null,picture:null};let a=!0;return null!==e&&void 0!==e&&e.experienceHeadline||(o.experienceHeadline=i18n.t("edit_profile.v2.experience.headline_input.errors.blank"),a=!1),(null===e||void 0===e||null===(n=e.experienceHeadline)||void 0===n?void 0:n.length)<10&&(o.experienceHeadline=i18n.t("edit_profile.v2.experience.headline_input.errors.min_length",{length:10}),a=!1),null!==e&&void 0!==e&&e.experienceDescription||(o.experienceDescription=i18n.t("edit_profile.v2.experience.experience_input.errors.blank"),a=!1),(null===e||void 0===e||null===(i=e.experienceDescription)||void 0===i?void 0:i.length)<50&&(o.experienceDescription=i18n.t("edit_profile.v2.experience.experience_input.errors.min_length",{length:50}),a=!1),t.hasAvatar||(o.picture=i18n.t("edit_public_profile.errors.picture.missing"),a=!1),a||f(o),a})(n))return;const l=await u(n);if(null!==l&&void 0!==l&&null!==(a=l.data)&&void 0!==a&&null!==(r=a.updateProfile)&&void 0!==r&&r.success)e&&(m(wc),i.push(wi())),s(!0);else{var d,p;const e=null===l||void 0===l||null===(d=l.data)||void 0===d||null===(p=d.updateProfile)||void 0===p?void 0:p.errors,t=null===e||void 0===e?void 0:e.experienceHeadline,n=null===e||void 0===e?void 0:e.experienceDescription,i=e.picture;f({experienceHeadline:null!==t&&void 0!==t&&t.length?i18n.t("edit_profile.v2.experience.headline_input.errors.generic",{message:t[0]}):null,experienceDescription:null!==n&&void 0!==n&&n.length?i18n.t("edit_profile.v2.experience.experience_input.errors.generic",{message:n[0]}):null,picture:null!==i&&void 0!==i&&i.length?i[0]:null})}},h=c.changed&&!p&&!c.errors;return l&&!r?null:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Rf,{title:i18n.t("edit_profile.page_title"),contentBackgroundColor:Qe.WHITE,content:()=>(0,X.jsxs)(Lre,{children:[(0,X.jsx)(xse,{editor:c}),(0,X.jsx)(Jse,{editor:c,minHeadlineLength:10,minDescriptionLength:50}),(0,X.jsx)(lre,{open:a,dimiss:()=>s(!1),title:i18n.t("edit_public_profile.thank_you_popup.title"),subtitle:i18n.t("edit_public_profile.thank_you_popup.subtitle")})]}),customFooter:(0,X.jsx)(Bre,{children:(0,X.jsx)(qre,{children:(0,X.jsx)(ms,{onPress:()=>g(Object.assign({},c.experience,{petsOk:c.petsOk,ironingOk:c.ironingOk,laundryOk:c.laundryOk,windowsOk:c.windowsOk})),testID:"EditPublicProfile::SaveButton",disabled:!h,stretched:!0,loading:p,children:i18n.t("edit_profile.v2.actions.save")})})})}),(0,X.jsx)(zre,{initialOpen:e})]})},Ure=()=>{const{session:{settings:e}}=lt(),{loading:t,blocked:n,status:i}=F8(wc);return t?(0,X.jsx)(Rf,{title:i18n.t("edit_profile.page_title"),content:()=>(0,X.jsx)(Aa.default,{})}):n?(0,X.jsx)(Ks.Redirect,{to:wi()}):null!==e&&void 0!==e&&e.viewPermissions.editProfile?(0,X.jsx)(Gre,{onboarding:i!==mc}):(0,X.jsx)(Ks.Redirect,{to:"/provider/more"})},$re=e=>e.reduce((e,{message:t,path:n})=>{const i=n[0];return i&&(e[i]=t),e},{}),Fre=xt`
3307  mutation updateBankAccount(
3308    $bankAccountHolder: String!
3309    $bankAccNumber: String!
3310    $bankAccSortcode: String!
3311    $iban: String!
3312    $bic: String!
3313    $bsb: String!
3314    $bankName: String!
3315    $otp: String!
3316  ) {
3317    updateBankAccount(
3318      bankAccountHolder: $bankAccountHolder
3319      bankAccNumber: $bankAccNumber
3320      bankAccSortcode: $bankAccSortcode
3321      iban: $iban
3322      bic: $bic
3323      bsb: $bsb
3324      bankName: $bankName
3325      otp: $otp
3326    ) {
3327      success
3328      errors {
3329        code
3330        message
3331        path
3332      }
3333    }
3334  }
3335`,Hre=_t.gql`
3336  query providerBankDetails {
3337    currentProvider {
3338      id
3339      bankDetails {
3340        iban
3341        bic
3342        bankAccountType
3343        bsb
3344        bankName
3345        bankAccSortcode
3346        bankAccNumber
3347        bankAccountHolder
3348      }
3349    }
3350  }
3351`,Wre="bacs",Vre="sepa",Kre="aba",Yre="fast",Xre=(0,Ge.default)(qe.default).withConfig({displayName:"how_payouts_work_modal__Wrapper",componentId:"sc-w28m85-0"})(["padding:16px;background-color:",";border-radius:12px;max-width:600px;align-self:center;"],Qe.WHITE),Zre=(0,Ge.default)(ts).withConfig({displayName:"how_payouts_work_modal__CloseButton",componentId:"sc-w28m85-1"})(["right:16px;top:48px;position:absolute;z-index:99;"]),Qre=(0,Ge.default)(FE).withConfig({displayName:"how_payouts_work_modal__PaymentCardIcon",componentId:"sc-w28m85-2"})(["margin-top:58px;margin-bottom:38px;align-self:center;"]),Jre=(0,Ge.default)(Be.default).withConfig({displayName:"how_payouts_work_modal__Title",componentId:"sc-w28m85-3"})(["font-size:18px;font-weight:700;margin-bottom:16px;text-align:center;"]),ele=(0,Ge.default)(Be.default).withConfig({displayName:"how_payouts_work_modal__Description",componentId:"sc-w28m85-4"})(["font-size:13px;line-height:17px;margin-bottom:16px;text-align:center;"]),tle=(0,Ge.default)(qe.default).withConfig({displayName:"how_payouts_work_modal__Alert",componentId:"sc-w28m85-5"})(["flex-direction:row;align-items:center;padding:16px;border-radius:6px;background-color:",";border:1px solid ",";"],Qe.GOLD_5,Qe.GOLD_3),nle=(0,Ge.default)(Be.default).withConfig({displayName:"how_payouts_work_modal__AlertText",componentId:"sc-w28m85-6"})(["font-size:13px;line-height:18px;color:",";margin-left:12px;flex:1;"],Qe.TEXT_DARK),ile=(0,Ge.default)(ms).attrs({fontSize:"15px"}).withConfig({displayName:"how_payouts_work_modal__GotItButton",componentId:"sc-w28m85-7"})(["margin:24px 0px;padding:8px 0px;"]),ole=()=>{const{isDesktop:e}=uu(),[t,n]=Cs("how_payout_work_modal"),i=(0,K.useCallback)(()=>{n()},[]);return(0,X.jsx)(gs,{isVisible:t,onBackdropPress:i,testID:"HowPayoutsWorkModal",children:(0,X.jsxs)(Xre,{desktop:e,children:[(0,X.jsx)(Zre,{onPress:i,children:(0,X.jsx)(Pa.default,{name:"close",size:25,color:Qe.GRAY_3})}),(0,X.jsx)(Qre,{}),(0,X.jsx)(Jre,{children:i18n.t("bank_details.how_payouts_work_modal.title")}),(0,X.jsx)(ele,{children:i18n.t("bank_details.how_payouts_work_modal.description")}),(0,X.jsxs)(tle,{children:[(0,X.jsx)(Pa.default,{name:"alert",color:Qe.GOLD_2,size:20,set:Pa.SETS.MATERIAL_COMMUNITY_ICONS}),(0,X.jsx)(nle,{children:i18n.t("bank_details.how_payouts_work_modal.alert")})]}),(0,X.jsx)(ile,{stretched:!0,onPress:i,testID:"HowPayoutsWorkModal:ConfirmButton",children:i18n.t("bank_details.how_payouts_work_modal.actions.got_it")})]})})},ale=["size","fill"],sle=e=>{let{size:t=16,fill:n="#7FAEE1"}=e,i=(0,A.default)(e,ale);return(0,X.jsx)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 15 16"},i,{children:(0,X.jsx)(Wu.Path,{fill:n,fillRule:"evenodd",d:"M1.625 4.25A8.965 8.965 0 0 0 7.5 1.957a8.965 8.965 0 0 0 5.875 2.291A9.004 9.004 0 0 1 7.5 14.238a9.004 9.004 0 0 1-5.875-9.989Zm8.655 2.78a.75.75 0 1 0-1.06-1.06L6.75 8.44l-.97-.97a.75.75 0 0 0-1.06 1.06l1.5 1.5a.75.75 0 0 0 1.06 0l3-3Z",clipRule:"evenodd"})}))};sle.propTypes={size:ze().number,fill:ze().string};const rle=sle,lle=(0,Ge.default)(qe.default).withConfig({displayName:"secure_text__SecureTextContainer",componentId:"sc-1ttqm1l-0"})(["flex-direction:row;align-items:center;"]),dle=(0,Ge.default)(Be.default).withConfig({displayName:"secure_text__SecureTextContent",componentId:"sc-1ttqm1l-1"})(["font-size:13px;font-weight:600;margin-left:5px;"]),cle=()=>(0,X.jsxs)(lle,{children:[(0,X.jsx)(rle,{}),(0,X.jsx)(dle,{children:i18n.t("edit_bank_details_form.secure_text")})]}),ule=(0,Ge.default)(qe.default).withConfig({displayName:"edit_bank_details_form__Container",componentId:"sc-72zkiw-0"})(["flex-grow:1;"]),ple=(0,Ge.default)(qe.default).withConfig({displayName:"edit_bank_details_form__Content",componentId:"sc-72zkiw-1"})(["flex-grow:1;",""],({theme:e})=>e.isDesktop&&"max-height: 400px;"),mle=(0,Ge.default)(ms).withConfig({displayName:"edit_bank_details_form__SaveButton",componentId:"sc-72zkiw-2"})(["margin:20px 0px 10px 0px;"]),fle=(0,Ge.default)(ms).withConfig({displayName:"edit_bank_details_form__CancelButton",componentId:"sc-72zkiw-3"})(["margin:0px 0px 20px 0px;"]),gle=(0,Ge.default)(wp).withConfig({displayName:"edit_bank_details_form__Input",componentId:"sc-72zkiw-4"})(["margin-bottom:",";"],({$last:e})=>
3351e?"10px":"20px"),hle=({bankDetails:e,cancelEditMode:t,refetchBankDetails:n})=>{var i;const{session:{setNeedsBankDetailsBeforeOffers:o,currentUser:{needsBankDetailsBeforeOffers:a,onboarded:s}},toast:{showToastMessage:r}}=lt(),{autoTrackEnhanced:l}=mt(),d=(0,Ks.useHistory)(),{isDesktop:c}=uu(),[u,p]=(0,K.useState)(!1),[m,f]=(0,K.useState)(e.bankAccountHolder||""),[g,h]=(0,K.useState)(e.bankAccSortcode||""),[_,x]=(0,K.useState)(""),[y,v]=(0,K.useState)(e.bic||""),[b,w]=(0,K.useState)(e.bsb||""),[C,j]=(0,K.useState)(e.bankName||""),[I,T]=(0,K.useState)(""),[E,N]=(0,K.useState)(""),{bankAccountType:k,bankAccNumber:R,iban:S}=e,{requestOtp:A,loading:P,data:D}=t6(),{updateBankDetails:M,loading:O}=(()=>{var e;const[t,{loading:n,data:i}]=(0,js.useMutation)(Fre);return{updateBankDetails:({bankAccountHolder:e,bankAccNumber:n,bankAccSortcode:i,iban:o,bic:a,bsb:s,bankName:r,otp:l})=>t({variables:{bankAccountHolder:e,bankAccNumber:n,bankAccSortcode:i,iban:o,bic:a,bsb:s,bankName:r,otp:l},context:{apiVersion:3}}),loading:n,errors:$re((null===i||void 0===i||null===(e=i.updateBankAccount)||void 0===e?void 0:e.errors)||[])}})();(0,K.useEffect)(()=>{null!==D&&void 0!==D&&D.success?(p(!0),N("")):null!==D&&void 0!==D&&D.errors.length&&r({message:D.errors[0].message||i18n.t("ui.error.generic")})},[D,p,r]);const{control:z,handleSubmit:L,setError:q,formState:{errors:B}}=(0,M5.useForm)({defaultValues:{bankAccountHolder:e.bankAccountHolder||"",bankAccNumber:"",bankAccSortcode:e.bankAccSortcode||"",iban:"",bic:e.bic||"",bsb:e.bsb||"",bankName:e.bankName||""}}),G=(0,K.useCallback)(async e=>{P||(f(e.bankAccountHolder),T(e.bankAccNumber),h(e.bankAccSortcode),v(e.bic),x(e.iban),w(e.bsb),j(e.bankName),await A(f6.UpdateBankAccount))},[]),U=(0,K.useCallback)(async e=>{const i={bankAccountHolder:m,bankAccNumber:I,bankAccSortcode:g,iban:_,bic:y,bsb:b,bankName:C,otp:e},{data:{updateBankAccount:r}}=await M(i);if(null!==r&&void 0!==r&&r.success)return n(),o(),s?a?d.push("/provider/offers"):t():(l({userFlow:qa,action:Xa.complete,objectName:"Bank details",properties:{}}),d.push(wi())),!0;{const e=r.errors.find(({code:e})=>"INVALID_OTP"===e),t=r.errors.find(({code:e})=>"OTP_ATTEMPTS_EXCEEDED"===e);if(e)N(e.message);else if(t)N(t.message);else{const e=$re(null===r||void 0===r?void 0:r.errors);Object.entries(e).map(([e,t])=>{q(e,{type:"custom",message:t})}),p(!1)}return!1}},[m,I,g,_,y,b,C,a,s,M,n,t,o,r,d]),$=(0,K.useCallback)(()=>{!s&&a?d.push(wi()):t()},[s,a,d,t]),F={[Wre]:[{name:"bankAccountHolder"},{name:"bankAccNumber",placeholder:R},{name:"bankAccSortcode",last:!0}],[Vre]:[{name:"bankAccountHolder"},{name:"iban",placeholder:S},{name:"bic",last:!0}],[Kre]:[{name:"bankAccountHolder"},{name:"bsb"},{name:"bankAccNumber",placeholder:R,last:!0}],[Yre]:[{name:"bankAccountHolder"},{name:"bankName"},{name:"bankAccNumber",placeholder:R,last:!0}]};return(0,X.jsxs)(ule,{children:[(0,X.jsxs)(ple,{children:[null===(i=F[k])||void 0===i?void 0:i.map(({name:e,placeholder:t=null,last:n=!1})=>{const i=e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`);return(0,X.jsx)(M5.Controller,{name:e,control:z,rules:{required:i18n.t("form.field.required")},render:({field:{onChange:o,value:a}})=>{var s;return(0,X.jsx)(gle,{testID:`${e}Input`,required:!0,label:i18n.t(`bank_details.labels.${i}`),value:a,onChange:o,disabled:P||O,error:null===B||void 0===B||null===(s=B[e])||void 0===s?void 0:s.message,placeholder:t,$last:n})}},e)}),(0,X.jsx)(cle,{})]}),(0,X.jsx)(mle,{onPress:L(G),disabled:P||O,stretched:c,centered:!c,loading:O,testID:"BankDetailsForm:SaveButton",children:i18n.t("edit_bank_details_form.actions.save")}),(0,X.jsx)(fle,{onPress:$,disabled:P||O,stretched:c,centered:!c,variant:"secondary",testID:"BankDetailsForm:CancelButton",children:i18n.t("edit_bank_details_form.actions.cancel")}),u&&(0,X.jsx)(l6,{title:i18n.t("otp_modal.title"),isOpen:!0,onClose:()=>p(!1),save:U,resendOtp:A,otpAction:f6.UpdateBankAccount,saving:O,error:E,setError:N}),!s&&(0,X.jsx)(ole,{})]})},_le=(0,Ge.default)(qe.default).withConfig({displayName:"fake_input__Container",componentId:"sc-db6ree-0"})([""]),xle=(0,Ge.default)(qe.default).withConfig({displayName:"fake_input__Box",componentId:"sc-db6ree-1"})(["min-height:60px;padding:12px 16px;flex-direction:row;align-items:center;justify-content:center;border-radius:8px;border:solid 1px ",";background:",";"],({$focused:e,$error:t})=>t?Qe.CRIMSON_2:e?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER,({$disabled:e})=>e?"#F8F8F8":Qe.WHITE),yle=(0,Ge.default)(qe.default).withConfig({displayName:"fake_input__Field",componentId:"sc-db6ree-2"})(["flex:1;flex-direction:column;align-items:flex-start;"]),vle=(0,Ge.default)(qe.default).withConfig({displayName:"fake_input__InputContainer",componentId:"sc-db6ree-3"})(["height:28px;width:100%;"]),ble=(0,Ge.default)(Be.default).withConfig({displayName:"fake_input__InputContainerText",componentId:"sc-db6ree-4"})(["height:28px;font-size:14px;line-height:28px;color:",";"],Qe.TEXT_MEDIUM),wle=(0,Ge.default)(Be.default).withConfig({displayName:"fake_input__Label",componentId:"sc-db6ree-5"})(["color:",";font-size:12px;"],({$error:e})=>e?Qe.CRIMSON_2:Qe.TEXT_DARK),Cle=(0,Ge.default)(Be.default).withConfig({displayName:"fake_input__ErrorText",componentId:"sc-db6ree-6"})(["color:#a9454b;font-size:12px;flex-wrap:wrap;flex-shrink:1;margin-top:4px;"]),jle=(0,Ge.default)(ws.default).withConfig({displayName:"fake_input__SecureInputAction",componentId:"sc-db6ree-7"})(["padding:0px 8px;"]),Ile=({value:e,label:t,disabled:n,required:i,secure:o=!1,error:a,style:s,testID:r,onPress:l,startAdornment:d,endAdornment:c,boxStyle:u})=>{const[p,m]=(0,K.useState)(o),f=`${t} ${i?"*":""}`,g=(0,K.useCallback)(()=>m(e=>!e),[]);
3351return(0,X.jsx)(ws.default,{onPress:l,focusable:!1,children:(0,X.jsxs)(_le,{style:s,children:[(0,X.jsxs)(xle,{$disabled:n,$error:!!a,style:u,children:[d,(0,X.jsxs)(yle,{children:[(0,X.jsx)(wle,{$error:!!a,children:f}),(0,X.jsx)(vle,{children:(0,X.jsx)(ble,{children:o?"*".repeat(e.length):e})})]}),o&&!!e&&(0,X.jsx)(jle,{onPress:g,children:(0,X.jsx)(Pa.default,{name:p?"eye-off-outline":"eye-outline",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,size:20,color:Qe.GRAY_3})}),c]}),!!a&&(0,X.jsx)(Cle,{testID:`ErrorLabel:${r}`,children:a})]})})};Ile.propTypes={value:ze().string,label:ze().string,disabled:ze().bool,required:ze().bool,secure:ze().bool,error:ze().bool,style:ze().oneOfType([ze().object,ze().array]),testID:ze().string,onPress:ze().func,startAdornment:ze().node,endAdornment:ze().node,boxStyle:ze().oneOfType([ze().object,ze().array])};const Tle=(0,Te.observer)(Ile),Ele=(0,Ge.default)(qe.default).withConfig({displayName:"bank_details_info__Container",componentId:"sc-15cderd-0"})(["flex-grow:1;"]),Nle=(0,Ge.default)(qe.default).withConfig({displayName:"bank_details_info__Content",componentId:"sc-15cderd-1"})(["flex-grow:1;",""],({theme:e})=>e.isDesktop&&"max-height: 400px;"),kle=(0,Ge.default)(Tle).attrs(()=>({boxStyle:{borderColor:"transparent"}})).withConfig({displayName:"bank_details_info__FakeInput",componentId:"sc-15cderd-2"})(["margin-bottom:",";"],({$last:e})=>e?"10px":"20px"),Rle=(0,Ge.default)(ms).withConfig({displayName:"bank_details_info__EditButton",componentId:"sc-15cderd-3"})(["margin:20px 0;"]),Sle=({bankDetails:e,openEditMode:t})=>{const{isDesktop:n}=uu(),{bankAccountType:i,bankAccountHolder:o,bankAccNumber:a,bankAccSortcode:s,iban:r,bic:l,bsb:d,bankName:c}=e;return(0,X.jsxs)(Ele,{children:[(0,X.jsxs)(Nle,{children:[i===Wre&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_holder"),value:o}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_number"),value:a}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_sort_code"),value:s,$last:!0})]}),i===Vre&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_holder"),value:o}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.iban"),value:r}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bic"),value:l,$last:!0})]}),"aba"===String(i)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_holder"),value:o}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bsb"),value:d}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_number"),value:a,$last:!0})]}),i===Yre&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_holder"),value:o}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_name"),value:c}),(0,X.jsx)(kle,{label:i18n.t("bank_details.labels.bank_account_number"),value:a,$last:!0})]}),(0,X.jsx)(cle,{})]}),(0,X.jsx)(Rle,{onPress:t,stretched:n,centered:!n,children:i18n.t("bank_details.actions.edit_bank_details")})]})},Ale=["fill","size"],Ple=e=>{let{fill:t="#1E2121",size:n=24}=e,i=(0,A.default)(e,Ale);return(0,X.jsx)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none"},i,{children:(0,X.jsx)(Wu.Path,{fill:t,fillRule:"evenodd",d:"M14.4 8.4a1.2 1.2 0 1 1 0-2.4h6a1.2 1.2 0 0 1 1.2 1.2v6a1.2 1.2 0 0 1-2.4 0v-3.103L14.05 15.25a1.2 1.2 0 0 1-1.697 0L9.6 12.497 4.45 17.648a1.2 1.2 0 1 1-1.697-1.697l6-6a1.2 1.2 0 0 1 1.697 0l2.751 2.752L17.503 8.4H14.4Z",clipRule:"evenodd"})}))};Ple.propTypes={size:ze().oneOfType([ze().string,ze().number]),fill:ze().string};const Dle=Ple,Mle=["icon","message"],Ole=(0,Ge.default)(qe.default).withConfig({displayName:"onboarding_hint__HintContainer",componentId:"sc-9k2j9v-0"})(["flex-direction:row;align-items:center;margin:16px 0px 32px 0px;padding:12px 16px;gap:12px;border-radius:6px;border:1px solid ",";background-color:",";"],Qe.GREEN_SAGE_TEA,Qe.GREEN_WINTER_MIST),zle=(0,Ge.default)(Be.default).withConfig({displayName:"onboarding_hint__Hint",componentId:"sc-9k2j9v-1"})(["flex-shrink:1;font-size:13px;line-height:17px;font-weight:600;color:",";"],Qe.TEXT_DARK),Lle=e=>{let{icon:t,message:n}=e,i=(0,A.default)(e,Mle);return(0,X.jsxs)(Ole,Object.assign({},i,{children:[t,(0,X.jsx)(zle,{children:n})]}))};
3351Lle.propTypes={icon:ze().node,message:ze().string.isRequired};const qle=Lle,Ble=(0,Ge.default)(Be.default).withConfig({displayName:"bank_details__HeadLine",componentId:"sc-14wyntj-0"})(["color:",";margin-bottom:10px;"],Qe.TEXT_DARK),Gle=(0,Ge.default)(Be.default).withConfig({displayName:"bank_details__ErrorMessage",componentId:"sc-14wyntj-1"})(["text-align:center;margin-top:40px;"]),Ule=(0,Ge.default)(qle).withConfig({displayName:"bank_details__OnboardingHint",componentId:"sc-14wyntj-2"})(["margin-top:10px;"]),$le=({onboarding:e})=>{const{session:{currentUser:t}}=lt(),[n,i]=(0,K.useState)(null===t||void 0===t?void 0:t.needsBankDetailsBeforeOffers),{bankDetails:o,loading:a,error:s,refetchBankDetails:r}=(()=>{var e;const{loading:t,data:n,refetch:i,error:o}=(0,Is.useQuery)(Hre);return{loading:t,bankDetails:null===n||void 0===n||null===(e=n.currentProvider)||void 0===e?void 0:e.bankDetails,refetchBankDetails:i,error:o}})(),{loading:l,blocked:d}=F8(bc);return a||l?(0,X.jsx)(Aa.default,{}):d?(0,X.jsx)(Ks.Redirect,{to:wi()}):!o||s?(0,X.jsx)(Gle,{children:i18n.t("bank_details.errors.load_bank_details")}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ble,{testID:"Headline",children:e?i18n.t("bank_details.onboarding_headline"):i18n.t("bank_details.headline")}),e&&(0,X.jsx)(Ule,{icon:(0,X.jsx)(Dle,{fill:Qe.GREEN_SUMMER_GRASS,size:18}),message:i18n.t("bank_details.onboarding_hint"),testID:"OnboardingHint"}),n&&(0,X.jsx)(hle,{cancelEditMode:()=>i(!1),bankDetails:o,refetchBankDetails:r}),!n&&(0,X.jsx)(Sle,{bankDetails:o,openEditMode:()=>i(!0)})]})};$le.propTypes={onboarding:ze().bool.isRequired};const Fle=$le,Hle=()=>{var e;const{session:{settings:t}}=lt(),n=(0,Ks.useHistory)(),{loading:i,blocked:o,status:a}=F8(bc);return i?(0,X.jsx)(Rf,{title:i18n.t("bank_details.page_title"),content:()=>(0,X.jsx)(Aa.default,{})}):o?(0,X.jsx)(Ks.Redirect,{to:wi()}):null!==t&&void 0!==t&&null!==(e=t.viewPermissions)&&void 0!==e&&e.seeTransfers?(0,X.jsx)(Rf,{title:i18n.t("bank_details.page_title"),content:()=>(0,X.jsx)(Fle,{onboarding:a!==mc}),contentContainerStyle:{flexGrow:1}}):(n.goBack(),null)};var Wle=n(40631),Vle=n(82756);const Kle=(0,Wle.makeVar)([]),Yle=(0,Wle.makeVar)([]),Xle=(0,Wle.makeVar)(!1),Zle=(0,Wle.makeVar)({startYear:C.DateTime.now().startOf("year").year,startMonth:C.DateTime.now().startOf("year").month,endYear:C.DateTime.now().year,endMonth:C.DateTime.now().month}),Qle=()=>{const e=(0,Vle.useReactiveVar)(Kle),t=(0,Vle.useReactiveVar)(Xle),n=(0,Vle.useReactiveVar)(Zle),i=(0,Vle.useReactiveVar)(Yle),[o,a]=(0,K.useState)(!1),[s,r]=(0,K.useState)(!1),{getPaidBankTransfers:l}=ede();async function d(e){const{data:t,error:n}=await l({variables:e});if(n)return r(!0),void a(!1);const{providerPaidBankTransfers:i,providerRegistrationFeePayments:o,currentProvider:s}=t||{};Yle(o);const c=(null!==s&&void 0!==s&&s.createdAt?C.DateTime.fromISO(null===s||void 0===s?void 0:s.createdAt).year:0)<e.startYear;Xle(c);const u={startYear:e.startYear-1,startMonth:1,endYear:e.endYear-1,endMonth:12};Zle(u);const p=(null===i||void 0===i?void 0:i.data)||[];p.length||!c?(Kle(Kle().concat(p)),a(!1)):await d(u)}function c(){r(!1),a(!0),d(n)}return(0,K.useEffect)(()=>{e.length||c()},[]),{paidBankTransfers:e,registrationFeePayments:i,fetchPaidBankTransfers:c,loading:o,error:s,showMoreVisible:t}},Jle=_t.gql`
3352  query providerPaidBankTransfers($startYear: Int!, $startMonth: Int!, $endYear: Int!, $endMonth: Int!) {
3353    providerPaidBankTransfers(startYear: $startYear, startMonth: $startMonth, endYear: $endYear, endMonth: $endMonth) {
3354      data {
3355        date
3356        totalAmount
3357        bankTransfers {
3358          id
3359          amount
3360          currencyType
3361          estimatedPayDate
3362        }
3363      }
3364    }
3365    currentProvider {
3366      id
3367      createdAt
3368    }
3369    providerRegistrationFeePayments {
3370      id
3371      amount
3372      paidAt
3373      invoice {
3374        id
3375        number
3376        path
3377      }
3378    }
3379  }
3380`,ede=()=>{const[e,{loading:t,error:n}]=(0,kn.useLazyQuery)(Jle,{notifyOnNetworkStatusChange:!0});return{loading:t,error:n,getPaidBankTransfers:e}},tde=(_t.gql`
3381  query providerPendingBankTransfers {
3382    providerScheduledBankTransfers {
3383      data {
3384        date
3385        totalAmount
3386        bankTransfers {
3387          id
3388          amount
3389          currencyType
3390          estimatedPayDate
3391        }
3392      }
3393      errors {
3394        code
3395        message
3396      }
3397    }
3398    providerPendingPayouts {
3399      pendingPayouts {
3400        id
3401        amount
3402        paid
3403        customerName
3404        event {
3405          id
3406          startTime
3407        }
3408      }
3409      pendingFundsPayouts {
3410        id
3411        amount
3412        customerName
3413        event {
3414          id
3415          startTime
3416        }
3417        fundsAvailableAt
3418      }
3419    }
3420  }
3421`,_t.gql`
3422  query providerPendingPayouts {
3423    providerPendingPayouts {
3424      pendingPayouts {
3425        id
3426        amount
3427        paid
3428        customerName
3429        event {
3430          id
3431          startTime
3432        }
3433      }
3434    }
3435  }
3436`),nde=_t.gql`
3437  query providerScheduledBankTransfers {
3438    providerScheduledBankTransfers {
3439      data {
3440        date
3441        totalAmount
3442        bankTransfers {
3443          id
3444          amount
3445          currencyType
3446          estimatedPayDate
3447        }
3448      }
3449    }
3450  }
3451`,ide=_t.gql`
3452  query providerPendingFundsPayouts {
3453    providerPendingPayouts {
3454      pendingFundsPayouts {
3455        id
3456        amount
3457        customerName
3458        event {
3459          id
3460          startTime
3461        }
3462        fundsAvailableAt
3463      }
3464    }
3465  }
3466`,ode=xt`
3467  query bankTransfersOverview {
3468    bankTransfersOverview {
3469      scheduledBankTransfersTotalAmount
3470      pendingPayoutsTotalAmount
3471      pendingFundsPayoutsTotalAmount
3472    }
3473  }
3474`,ade=_t.gql`
3475  query providerBankTransfer($id: ID!) {
3476    providerBankTransfer(id: $id) {
3477      id
3478      amount
3479      currencyType
3480      estimatedPayDate
3481      payouts {
3482        id
3483        amount
3484        paid
3485        customerName
3486        event {
3487          id
3488          startTime
3489        }
3490      }
3491      providerCharges {
3492        id
3493        chargeType
3494        total
3495        createdAt
3496      }
3497    }
3498  }
3499`,sde=_t.gql`
3500  mutation providerClaimExpeditedPayout {
3501    claimExpeditedPayout {
3502      success
3503      errors {
3504        code
3505        message
3506      }
3507    }
3508  }
3509`,rde=(0,Ge.default)(ts).withConfig({displayName:"transfer__Container",componentId:"sc-1tfw7na-0"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:20px 10px;",""],({bottomBorder:e})=>e&&`border-bottom-width: 1px;\n  border-bottom-color: ${Qe.GRAY_BORDER};`),lde=(0,Ge.default)(qe.default).withConfig({displayName:"transfer__Details",componentId:"sc-1tfw7na-1"})(["flex:1;"]),dde=(0,Ge.default)(Be.default).withConfig({displayName:"transfer__Date",componentId:"sc-1tfw7na-2"})(["font-weight:400;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),cde=(0,Ge.default)(Be.default).withConfig({displayName:"transfer__Invoice",componentId:"sc-1tfw7na-3"})(["font-weight:400;font-size:13px;line-height:16px;color:",";padding-top:4px;"],Qe.TEXT_LIGHT),ude=(0,Ge.default)(qe.default).withConfig({displayName:"transfer__AmountContainer",componentId:"sc-1tfw7na-4"})([""," border-radius:5px;padding:0 2px;"],({isIncoming:e})=>e&&`background-color: ${Qe.GREEN_FROSTY_GREEN};`),pde=(0,Ge.default)(Be.default).withConfig({displayName:"transfer__Amount",componentId:"sc-1tfw7na-5"})(["color:",";font-weight:600;font-size:13px;"],({isIncoming:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK);const mde=function({date:e,amount:t,invoiceNumber:n,onPress:i,bottomBorder:o}){const a=t>=0;return(0,X.jsxs)(rde,{bottomBorder:o,onPress:i,children:[(0,X.jsxs)(lde,{children:[e&&(0,X.jsx)(dde,{children:C.DateTime.fromISO(e).toFormat("cccc dd MMMM y")}),!e&&(0,X.jsx)(dde,{children:i18n.t("bank_transfers.transfer.pending")}),n&&(0,X.jsx)(cde,{children:n})]}),(0,X.jsx)(ude,{isIncoming:a,children:(0,X.jsxs)(pde,{isIncoming:a,children:[a&&"+",fh(t,{withSymbol:!0})]})}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,set:"MaterialCommunityIcons",style:{marginLeft:10}})]})},fde=(0,Ge.default)(qe.default).withConfig({displayName:"bank_transfers__Container",componentId:"sc-a7l0i6-0"})(["margin-top:24px;"]),gde=(0,Ge.default)(qe.default).withConfig({displayName:"bank_transfers__MonthArea",componentId:"sc-a7l0i6-1"})(["flex-direction:row;align-items:center;"]),hde=(0,Ge.default)(Be.default).withConfig({displayName:"bank_transfers__Month",componentId:"sc-a7l0i6-2"})(["margin-left:4px;font-weight:600;font-size:12px;line-height:16px;color:",";"],Qe.TEXT_DARK),_de=(0,Ge.default)(qe.default).withConfig({displayName:"bank_transfers__TransferGroup",componentId:"sc-a7l0i6-3"})(["margin-top:6px;border:1px solid ",";border-radius:8px;"],Qe.GRAY_BORDER);const xde=function({transfer:e}){const t=lu(),n=(null===e||void 0===e?void 0:e.bankTransfers)||[e],i=C.DateTime.fromISO(e.date).toLocaleStr
3509ing({month:"long",year:"numeric"});return(0,X.jsxs)(fde,{children:[(0,X.jsxs)(gde,{children:[(0,X.jsx)(Pa.default,{name:"calendar-month",size:16,set:"MaterialCommunityIcons"}),(0,X.jsx)(hde,{children:i})]}),(0,X.jsx)(_de,{children:null===n||void 0===n?void 0:n.map((e,i)=>(0,X.jsx)(mde,{date:e.estimatedPayDate,amount:e.amount,onPress:()=>t(`/provider/bank_transfers/${e.id}`),bottomBorder:n.length-1!==i},e.id))})]})},yde=(0,Ge.default)(qe.default).withConfig({displayName:"registration_fee_payments__Container",componentId:"sc-jj01oe-0"})(["margin-top:24px;"]),vde=(0,Ge.default)(Be.default).withConfig({displayName:"registration_fee_payments__Title",componentId:"sc-jj01oe-1"})(["margin-left:4px;font-weight:600;font-size:12px;line-height:16px;color:",";"],Qe.TEXT_DARK),bde=(0,Ge.default)(qe.default).withConfig({displayName:"registration_fee_payments__PaymentContainer",componentId:"sc-jj01oe-2"})(["margin-top:6px;border:1px solid ",";border-radius:8px;"],Qe.GRAY_BORDER);const wde=function({payments:e}){return(0,X.jsxs)(yde,{children:[(0,X.jsx)(vde,{children:i18n.t("bank_transfers.registration_fee_payments.title")}),(0,X.jsx)(bde,{children:null===e||void 0===e?void 0:e.map(e=>(0,X.jsx)(mde,{date:e.paidAt,amount:e.amount,invoiceNumber:e.invoice.number,onPress:()=>{return t=e.invoice.path,ru(vi(t));var t}},e.id))})]})},Cde=(0,Ge.default)(qe.default).withConfig({displayName:"paid_transfers__Container",componentId:"sc-1uwq4u8-0"})(["margin-bottom:50px;"]),jde=(0,Ge.default)(Aa.default).withConfig({displayName:"paid_transfers__Loading",componentId:"sc-1uwq4u8-1"})(["margin-top:16px;"]),Ide=(0,Ge.default)(qe.default).withConfig({displayName:"paid_transfers__InfoContainer",componentId:"sc-1uwq4u8-2"})(["align-items:center;margin:12px 0;"]),Tde=(0,Ge.default)(Be.default).withConfig({displayName:"paid_transfers__InfoText",componentId:"sc-1uwq4u8-3"})(["color:",";font-size:16px;margin-top:12px;"],({color:e})=>e||Qe.GREEN_SUMMER_GRASS),Ede=(0,Ge.default)(Be.default).withConfig({displayName:"paid_transfers__Error",componentId:"sc-1uwq4u8-4"})(["margin-top:24px;color:",";font-size:13px;text-align:center;"],Qe.CRIMSON_1);const Nde=function(){const{paidBankTransfers:e,registrationFeePayments:t,fetchPaidBankTransfers:n,showMoreVisible:i,loading:o,error:a}=Qle(),s=null===t||void 0===t?void 0:t.filter(e=>e.invoice.path);return(0,X.jsxs)(Cde,{children:[e.map(e=>(0,X.jsx)(xde,{transfer:e},e.date)),!!a&&(0,X.jsx)(Ede,{children:i18n.t("bank_transfers.errors.load_bank_transfers")}),o&&(0,X.jsx)(jde,{color:Qe.GREEN_SUMMER_GRASS}),!a&&!o&&!(null!==e&&void 0!==e&&e.length)&&!(null!==s&&void 0!==s&&s.length)&&(0,X.jsx)(Ide,{children:(0,X.jsx)(Tde,{color:Qe.TEXT_DARK,children:i18n.t("bank_transfers.paid_transfers.no_transfers")})}),!o&&i&&(0,X.jsx)(Ide,{children:(0,X.jsx)(ts,{onPress:n,children:(0,X.jsx)(Tde,{children:i18n.t("bank_transfers.paid_transfers.view_previous_transfers")})})}),!(null===s||void 0===s||!s.length)&&(0,X.jsx)(wde,{payments:s})]})},kde=["children","active","onPress","testID"],Rde=(0,Ge.default)(Da.default).withConfig({displayName:"tab__TabContainer",componentId:"sc-1t44b18-0"})(["flex:1;flex-direction:row;align-items:stretch;"]),Sde=(0,Ge.default)(qe.default).withConfig({displayName:"tab__TabElement",componentId:"sc-1t44b18-1"})(["flex:1;align-items:center;justify-content:center;border-bottom-width:",";border-bottom-color:",";padding-bottom:",";"],e=>e.active?"3px":"1px",e=>e.active?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_4,e=>e.active?"10px":"12px"),Ade=(0,Ge.default)(Be.default).withConfig({displayName:"tab__TabText",componentId:"sc-1t44b18-2"})(["color:",";font-weight:",";"],({active:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK,({active:e})=>e?"700":"400"),Pde=e=>{let{children:t,active:n,onPress:i,testID:o="tab-container"}=e,a=(0,A.default)(e,kde);return(0,X.jsx)(Rde,Object.assign({onPress:i},a,{testID:o,children:(0,X.jsx)(Sde,{active:n,children:(0,X.jsx)(Ade,{active:n,children:t})})}))};Pde.propTypes={children:qc.default.node.isRequired,active:qc.default.bool.isRequired,onPress:qc.default.func.isRequired,testID:qc.default.string};const Dde=Pde,Mde=(0,Ge.default)(qe.default).withConfig({displayName:"overview__Container",componentId:"sc-i9uyvi-0"})(["margin-top:32px;"]),Ode=(0,Ge.default)(ws.default).withConfig({displayName:"overview__Section",componentId:"sc-i9uyvi-1"})(["margin-bottom:12px;padding:18px 16px;border-radius:4px;border:1px solid ",";flex-direction:row;align-items:center;"],Qe.GRAY_BORDER),zde=(0,Ge.default)(Be.default).withConfig({displayName:"overview__Title",componentId:"sc-i9uyvi-2"})(["font-size:12px;line-height:16px;font-weight:600;color:",";"],Qe.TEXT_MEDIUM),Lde=(0,Ge.default)(Be.default).withConfig({displayName:"overview__Price",componentId:"sc-i9uyvi-3"})(["font-size:20px;line-height:27px;font-weight:700;color:",";"],Qe.GREEN_GROWN_UP_GREEN),qde=(0,Ge.default)(qe.default).withConfig({displayName:"overview__FullWidthContainer",componentId:"sc-i9uyvi-4"})(["flex:1;"]),Bde=({navigateToPaymentHistory:e})=>{const t=lu(),{data:n,loading:i}=(0,Is.useQuery)(ode,{fetchPolicy:"network-only",context:{apiVersion:3}});if(i)return(0,X.jsx)(Aa.default,{});if(!n)return null;const{pendingPayoutsTotalAmount:o,pendingFundsPayoutsTotalAmount:a,scheduledBankTransfersTotalAmount:s}=n.bankTransfersOverview;return(0,X.jsxs)(Mde,{children:[(0,X.jsxs)(Ode,{onPress:()=>t("/provider/bank_transfers/in_review"),children:[(0,X.jsxs)(qde,{children:[(0,X.jsx)(zde,{children:i18n.t("bank_transfers.overview.sections.in_review.title")}),(0,X.jsx)(Lde,{children:fh(a,{withSymbol:!0})})]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24})]}),(0,X.jsxs)(Ode,{onPress:()=>t("/provider/bank_transfers/pending"),children:[(0,X.jsxs)(qde,{children:[(0,X.jsx)(zde,{children:i18n.t("bank_transfers.overview.sections.pending.title")}),(0,X.jsx)(Lde,{children:fh(o,{withSymbol:!0})})]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24})]}),(0,X.jsxs)(Ode,{onPress:()=>t("/provider/bank_transfers/scheduled"),children:[(0,X.jsxs)(qde,{children:[(0,X.jsx)(zde,{children:i18n.t("bank_transfers.overview.sections.in_transfer.title")}),(0,X.jsx)(Lde,{children:fh(s,{withSymbol:!0})})]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24})]}),!1]})},Gde=(0,Ge.default)(qe.default).withConfig({displayName:"content__Tabs",componentId:"sc-1efsyfa-0"})(["flex-direction:row;align-items:stretch;max-width:720px;width:100%;align-self:center;padding:0 14px;"]),Ude="overview",$de="payment_history";const Fde=function(){const{analytics:{autoTrack:e}}=lt(),[t,n]=(0,K.useState)(Ude),i=t=>{e(`User clicked on ${t} tab`,"on Bank Transfers page"),n(t)};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Gde,{children:[(0,X.jsx)(Dde,{active:t===Ude,onPress:()=>i(Ude),children:i18n.t("bank_transfers.tabs.overview")}),(0,X.jsx)(Dde,{active:t===$de,onPress:()=>i($de),children:i18n.t("bank_transfers.tabs.payment_history")})]}),t===Ude&&(0,X.jsx)(Bde,{navigateToPaymentHistory:()=>i($de)}),t===$de&&(0,X.jsx)(Nde,{})]})};const Hde=(0,Te.observer)(function(){return(0,X.jsx)(Rf,{title:i18n.t("bank_transfers.page_title"),content:()=>(0,X.jsx)(Fde,{})})}),Wde=()=>
3509(0,X.jsx)(Hde,{}),Vde=(0,Ge.default)(ts).withConfig({displayName:"payout__Container",componentId:"sc-11vcp44-0"})(["flex-direction:row;align-items:center;padding:8px 10px;",""],({isLastItem:e})=>e&&`border-bottom-width: 1px;\n  border-bottom-color: ${Qe.GRAY_BORDER};`),Kde=(0,Ge.default)(qe.default).withConfig({displayName:"payout__PayoutInfo",componentId:"sc-11vcp44-1"})(["flex:1;"]),Yde=(0,Ge.default)(Be.default).withConfig({displayName:"payout__CustomerName",componentId:"sc-11vcp44-2"})(["flex:1;font-weight:400;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_MEDIUM),Xde=(0,Ge.default)(Be.default).withConfig({displayName:"payout__PayoutDate",componentId:"sc-11vcp44-3"})(["font-weight:400;font-size:12px;line-height:16px;color:",";margin-top:4px;"],Qe.GRAY_2),Zde=(0,Ge.default)(qe.default).withConfig({displayName:"payout__AmountContainer",componentId:"sc-11vcp44-4"})([""," border-radius:5px;padding:0 2px;align-self:flex-start;"],({isIncoming:e})=>e&&`background-color: ${Qe.GREEN_FROSTY_GREEN};`),Qde=(0,Ge.default)(Be.default).withConfig({displayName:"payout__Amount",componentId:"sc-11vcp44-5"})(["color:",";font-weight:600;font-size:13px;"],({isIncoming:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK);const Jde=function({event:e,customerName:t,amount:n,isLastItem:i}){const o=(0,Ks.useHistory)(),a=n>=0;return(0,X.jsxs)(Vde,{isLastItem:i,onPress:()=>o.push(Ni(e.id)),children:[(0,X.jsx)(Pa.default,{name:a?"arrow-down-right":"arrow-right-top",size:20,set:"MaterialCommunityIcons",color:Qe.GRAY_2,style:{marginRight:10}}),(0,X.jsxs)(Kde,{children:[(0,X.jsx)(Yde,{children:t}),(0,X.jsxs)(Xde,{children:[C.DateTime.fromISO(null===e||void 0===e?void 0:e.startTime).toLocaleString()," \u2022"," ",i18n.t("bank_transfers.details.content.payout_status_"+(a?"incoming":"outgoing"))]})]}),(0,X.jsx)(Zde,{isIncoming:a,children:(0,X.jsxs)(Qde,{isIncoming:a,children:[a&&"+",fh(n,{withSymbol:!0})]})})]})},ece=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-16fgprd-0"})(["margin-bottom:30px;"]),tce=(0,Ge.default)(qe.default).withConfig({displayName:"content__InfoContainer",componentId:"sc-16fgprd-1"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),nce=(0,Ge.default)(Be.default).withConfig({displayName:"content__InfoText",componentId:"sc-16fgprd-2"})(["color:",";font-weight:600;font-size:12px;line-height:16px;"],Qe.TEXT_DARK),ice=(0,Ge.default)(Be.default).withConfig({displayName:"content__TotalAmount",componentId:"sc-16fgprd-3"})(["color:",";font-weight:600;font-size:13px;"],Qe.GREEN_SUMMER_GRASS),oce=(0,Ge.default)(qe.default).withConfig({displayName:"content__PayoutContainer",componentId:"sc-16fgprd-4"})(["margin-top:12px;border:1px solid ",";border-radius:8px;"],Qe.GRAY_BORDER),ace=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-16fgprd-5"})(["margin:0 0 12px;color:",";font-size:13px;text-align:center;"],Qe.CRIMSON_1);const sce=function({bankTransfer:e,error:t}){const n=null!==e&&void 0!==e&&e.amount?fh(null===e||void 0===e?void 0:e.amount,{withSymbol:!0}):void 0,i=null===e||void 0===e?void 0:e.payouts;return(0,X.jsxs)(ece,{children:[!!t&&(0,X.jsx)(ace,{children:i18n.t("bank_transfers.errors.load_bank_transfers")}),n&&(0,X.jsxs)(tce,{children:[(0,X.jsx)(nce,{children:i18n.t("bank_transfers.details.content.payment_in_this_transfer")}),(0,X.jsxs)(ice,{noBackground:!0,children:["+",n]})]}),(null===i||void 0===i?void 0:i.length)&&(0,X.jsx)(oce,{children:i.map((e,t)=>(0,X.jsx)(Jde,{isLastItem:i.length-1!==t,event:e.event,customerName:e.customerName,amount:e.amount},e.id))})]})};const rce=function(){const{id:e}=(0,Ks.useParams)(),{isConnected:t}=(0,ta.useNetInfo)(),{bankTransfer:n,loading:i,error:o,refetch:a}=(e=>{const{loading:t,data:n,error:i,refetch:o}=(0,Is.useQuery)(ade,{variables:{id:e}});return{loading:t,bankTransfer:null===n||void 0===n?void 0:n.providerBankTransfer,refetch:o,error:i}})(e);if((0,K.useEffect)(()=>{!i&&o&&t&&a()},[t]),i)return(0,X.jsx)(Rf,{title:i18n.t("bank_transfers.details.page_title",{date:"..."}),content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})});const s=null!==n&&void 0!==n&&n.estimatedPayDate?C.DateTime.fromISO(n.estimatedPayDate).toFormat("cccc dd MMMM y"):"";return(0,X.jsx)(Rf,{title:i18n.t("bank_transfers.details.page_title",{date:s}),content:()=>(0,X.jsx)(sce,{bankTransfer:n,error:o})})},lce=()=>(0,X.jsx)(rce,{}),dce="step_series",cce="step_frequency",uce="step_duration",pce="step_timeslots",mce="step_review",fce="submit_error_generic",gce="submit_error_slot_unavailable",hce=xt`
3510  query reschedulableSeries($id: ID!) {
3511    customer(id: $id) {
3512      id
3513      firstname
3514      relationship {
3515        id
3516        series {
3517          id
3518          changeRequestable
3519          duration
3520          period
3521          nextEvent {
3522            id
3523            startTime
3524            endTime
3525          }
3526        }
3527      }
3528    }
3529  }
3530`,_ce=xt`
3531  mutation createSeriesChangeRequestFromTimeSlot($seriesId: ID!, $slot: SeriesChangeRequestTimeSlotInput!) {
3532    createSeriesChangeRequestFromTimeSlot(seriesId: $seriesId, slot: $slot) {
3533      success
3534      errors {
3535        code
3536        message
3537        path
3538      }
3539    }
3540  }
3541`,xce=xt`
3542  query seriesChangeRequestAvailableSlots(
3543    $seriesId: ID!
3544    $frequency: SeriesChangeRequestFrequencyEnum!
3545    $duration: Int!
3546    $fromDay: DateTime!
3547    $untilDay: DateTime!
3548  ) {
3549    seriesChangeRequestAvailableSlots(
3550      seriesId: $seriesId
3551      frequency: $frequency
3552      duration: $duration
3553      fromDay: $fromDay
3554      untilDay: $untilDay
3555    ) {
3556      date
3557      slots {
3558        startTime
3559        endTime
3560      }
3561    }
3562  }
3563`,yce=({seriesId:e,duration:t,frequency:n,startTime:i,enabled:o=!0})=>{var a;const[s,r]=(0,K.useState)(),[l,d]=(0,K.useState)(),[c,u]=(0,K.useState)(),p=(0,K.useRef)(void 0),{fetchAvailableSlots:m,availableSlotsByDay:f,loading:g,error:h}=(()=>{const[e,{data:t,loading:n,error:i}]=(0,kn.useLazyQuery)(xce,{fetchPolicy:"network-only"});return{fetchAvailableSlots:({seriesId:t,frequency:n,duration:i,fromDay:o,untilDay:a})=>e({context:{apiVersion:3},variables:{seriesId:t,frequency:n,duration:i,fromDay:o,untilDay:a}}),availableSlotsByDay:(null===t||void 0===t?void 0:t.seriesChangeRequestAvailableSlots)||[],loading:n,error:i}})(),_=(i?C.DateTime.fromISO(i):void 0)||C.DateTime.now(),x=s||_,y=i=>{if(!e||!t||!n)return;const{fromDay:o,untilDay:a}=VL(i);m({seriesId:e,frequency:n,duration:t,fromDay:o,untilDay:a})},v=o&&e&&t&&n?`${e}:${t}:${n}`:void 0;(0,K.useEffect)(()=>{v&&p.current!==v&&(p.current=v,r(void 0),d(void 0),u(void 0),y(_))},[v]);const b=f.filter(e=>e.slots.length>0).map(e=>({date:e.date})),w=l&&(null===(a=f.find(e=>e.date===l))||void 0===a?void 0:a.slots)||[];return{handleWeekChange:e=>{r(e),d(void 0),u(void 0),y(e)},handleDaySelect:e=>{d(e),u(void 0)},handleSlotSelect:e=>{u(e.startTime===(null===c||void 0===c?void 0:c.startTime)?void 0:e)},refresh:()=>{d(void 0),u(void 0),y(x)},selectedDay:l,selectedSlot:c,availableDays:b,slots:w,currentDate:x.toISO(),loading:g,error:h}},vce=(0,Ge.default)(qe.default).withConfig({displayName:"option_selector__Grid",componentId:"sc-1i52cw8-0"})(["flex-direction:row;flex-wrap:wrap;margin:0 -4px;"]),bce=(0,Ge.default)(qe.default).withConfig({displayName:"option_selector__OptionWrapper",componentId:"sc-1i52cw8-1"})(["width:","%;padding:4px;"],({$columns:e})=>100/e),wce=(0,Ge.default)(ts).withConfig({displayName:"option_selector__Option",componentId:"sc-1i52cw8-2"})(["height:48px;border-radius:6px;border-width:1px;align-items:center;justify-content:center;border-color:",";background-color:",";"],({$selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_BORDER,({$selected:e})=>e?Qe.GREEN_WINTER_MIST:Qe.WHITE),Cce=(0,Ge.default)(Be.default).withConfig({displayName:"option_selector__OptionLabel",componentId:"sc-1i52cw8-3"})(["color:",";font-size:14px;font-weight:600;"],Qe.TEXT_DARK),jce=(0,Ge.default)(Cce).withConfig({displayName:"option_selector__MoreRowLabel",componentId:"sc-1i52cw8-4"})(["flex:1;text-align:center;"]),Ice=(0,Ge.default)(ts).withConfig({displayName:"option_selector__MoreRow",componentId:"sc-1i52cw8-5"}
3563)(["height:48px;margin-top:8px;padding:0 16px;border-radius:6px;border-width:1px;flex-direction:row;align-items:center;justify-content:space-between;border-color:",";background-color:",";"],({$selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_BORDER,({$selected:e})=>e?Qe.GREEN_WINTER_MIST:Qe.WHITE);const Tce=function({options:e,value:t,columns:n=2,visibleCount:i=e.length,placeholder:o,testIDPrefix:a,moreTestID:s,onChange:r}){const l=e.slice(0,i),d=e.slice(i),c=d.find(e=>e.value===t),[u,p]=(0,K.useState)(!1),m=e=>(0,X.jsx)(bce,{$columns:n,children:(0,X.jsx)(wce,{$selected:e.value===t,onPress:()=>r(e.value),testID:`${a}:${e.value}`,children:(0,X.jsx)(Cce,{children:e.label})})},e.value);return(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(vce,{children:l.map(m)}),d.length>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Ice,{$selected:!!c,onPress:()=>p(!u),testID:s,children:[(0,X.jsx)(jce,{children:c?c.label:o}),(0,X.jsx)(Pa.default,{name:u?"keyboard-arrow-up":"keyboard-arrow-down",size:24,color:Qe.TEXT_DARK})]}),u&&(0,X.jsx)(vce,{children:d.map(m)})]})]})},Ece="HH:mm",Nce=e=>e.toLocaleString({weekday:"long",month:"long",day:"numeric"}),kce=(e,t)=>`${e.toFormat(Ece)} - ${e.plus({seconds:t}).toFormat(Ece)}`,Rce=e=>i18n.t("hours",{count:e/3600}),Sce=(0,Ge.default)(qe.default).withConfig({displayName:"duration_step__Container",componentId:"sc-kmjyjz-0"})(["flex-grow:1;flex-shrink:1;padding-top:24px;"]),Ace=(0,Ge.default)(Be.default).withConfig({displayName:"duration_step__Heading",componentId:"sc-kmjyjz-1"})(["color:",";font-size:16px;font-weight:700;margin-bottom:16px;"],Qe.TEXT_DARK),Pce=(0,Ge.default)(Vf.default).withConfig({displayName:"duration_step__Options",componentId:"sc-kmjyjz-2"})(["flex:1;"]),Dce=(0,Ge.default)(qe.default).withConfig({displayName:"duration_step__DesktopOptions",componentId:"sc-kmjyjz-3"})(["flex-grow:1;"]),Mce=(0,Ge.default)(qe.default).withConfig({displayName:"duration_step__CtaArea",componentId:"sc-kmjyjz-4"})(["margin-top:auto;padding-top:16px;"]);const Oce=function({durations:e,duration:t,i18nNamespace:n,testIDPrefix:i,onDurationChange:o,onContinue:a}){const{isDesktop:s}=uu(),r=s?Dce:Pce;return(0,X.jsxs)(Sce,{testID:i,children:[(0,X.jsx)(Ace,{children:i18n.t(`${n}.duration_step.title`)}),(0,X.jsx)(r,{children:(0,X.jsx)(Tce,{options:e.map(e=>({value:e,label:Rce(e)})),value:t,columns:2,visibleCount:4,onChange:o,testIDPrefix:`${i}:option`,moreTestID:`${i}:more`,placeholder:i18n.t(`${n}.duration_step.placeholder`)})}),(0,X.jsx)(Mce,{children:(0,X.jsx)(ms,{testID:`${i}:continue`,onPress:a,disabled:!t,stretched:!0,disableWhenOffline:!0,children:i18n.t(`${n}.continue_cta`)})})]})};var zce=n(44619),Lce=n(59060);const qce={colors:{primary:{extraLight:Qe.GREEN_WINTER_MIST}},container:{primary:{background:Qe.GREEN_WINTER_MIST}}},Bce=e=>(0,X.jsx)(Ge.ThemeProvider,{theme:qce,children:(0,X.jsx)(zce.default,Object.assign({},e))}),Gce=e=>(0,X.jsx)(Ge.ThemeProvider,{theme:qce,children:(0,X.jsx)(Lce.default,Object.assign({},e))}),Uce=(0,Ge.default)(qe.default).withConfig({displayName:"error_state__Container",componentId:"sc-pabj1p-0"})(["padding-top:12px;"]),$ce=(0,Ge.default)(Be.default).withConfig({displayName:"error_state__Message",componentId:"sc-pabj1p-1"})(["color:",";text-align:center;font-size:13px;font-weight:600;margin-bottom:12px;"],Qe.CRIMSON_1);const Fce=function({message:e,retryLabel:t,onRetry:n,testID:i}){return(0,X.jsxs)(Uce,{testID:i,children:[(0,X.jsx)($ce,{children:e}),(0,X.jsx)(ms,{testID:`${i}:retry`,onPress:n,stretched:!0,disableWhenOffline:!0,children:t})]})},Hce=(0,Ge.default)(qe.default).withConfig({displayName:"timeslots_step__Container",componentId:"sc-8rwt0a-0"})(["flex-grow:1;flex-shrink:1;padding-top:24px;"]),Wce=(0,Ge.default)(Be.default).withConfig({displayName:"timeslots_step__Heading",componentId:"sc-8rwt0a-1"})(["color:",";font-size:16px;font-weight:700;margin-bottom:8px;"],Qe.TEXT_DARK),Vce=(0,Ge.default)(Be.default).withConfig({displayName:"timeslots_step__Description",componentId:"sc-8rwt0a-2"})(["color:",";font-size:14px;font-weight:500;margin-bottom:12px;"],Qe.TEXT_DARK),Kce=(0,Ge.default)(Be.default).withConfig({displayName:"timeslots_step__Notice",componentId:"sc-8rwt0a-3"})(["color:",";text-align:center;font-size:13px;font-weight:600;margin:12px 0;"],({$error:e})=>e?Qe.CRIMSON_1:Qe.GRAY_1),Yce=(0,Ge.default)(Vf.default).withConfig({displayName:"timeslots_step__SlotList",componentId:"sc-8rwt0a-4"})(["flex:1;"]),Xce=(0,Ge.default)(qe.default).withConfig({displayName:"timeslots_step__DesktopSlotList",componentId:"sc-8rwt0a-5"})(["flex-grow:1;"]),Zce=(0,Ge.default)(qe.default).withConfig({displayName:"timeslots_step__CtaArea",componentId:"sc-8rwt0a-6"})(["margin-top:auto;padding-top:16px;"]);const Qce=function({currentDate:e,availableDays:t,selectedDay:n,selectedSlot:i,slots:o,loading:a,error:s,slotUnavailable:r,i18nNamespace:l,testIDPrefix:d,onWeekChange:c,onDaySelect:u,onSlotSelect:p,onRetry:m,onContinue:f}){const{isDesktop:g}=uu(),h=g?Xce:Yce;return(0,X.jsxs)(Hce,{testID:d,children:[(0,X.jsx)(Wce,{children:i18n.t(`${l}.timeslots_step.title`)}),(0,X.jsx)(Vce,{children:i18n.t(`${l}.timeslots_step.description`)}),r&&(0,X.jsx)(Kce,{$error:!0,testID:`${d}:slotUnavailable`,children:i18n.t(`${l}.review_step.slot_unavailable_error`)}),!s&&(0,X.jsx)(qe.default,{testID:`${d}:weekPicker`,children:(0,X.jsx)(Bce,{currentDate:e,availableDays:t,selectedDay:n||"",setSelectedDay:u,onWeekChange:c})}),!!s&&(0,X.jsx)(Fce,{testID:`${d}:daysError`,message:i18n.t(`${l}.timeslots_step.available_days_error`),retryLabel:i18n.t(`${l}.retry_cta`),onRetry:m}),a&&(0,X.jsx)(Aa.default,{testID:`${d}:loading`}),!a&&!s&&!t.length&&(0,X.jsx)(Kce,{testID:`${d}:noSlots`,children:i18n.t(`${l}.timeslots_step.no_slots_for_week`)}),!a&&!s&&!!t.length&&!n&&(0,X.jsx)(Kce,{testID:`${d}:selectDay`,children:i18n.t(`${l}.timeslots_step.select_available_day`)}),!a&&!!n&&(0,X.jsx)(Kce,{testID:`${d}:slotsAvailable`,children:i18n.t(`${l}.timeslots_step.slots_available`,{count:o.length})}),!!o.length&&(0,X.jsx)(h,{persistentScrollbar:!0,children:o.map(e=>(0,X.jsx)(Gce,{testID:`${d}:slot:${e.startTime}`,selected:e.startTime===(null===i||void 0===i?void 0:i.startTime),startTime:e.startTime,endTime:e.endTime,timeFormat:Ece,onSelect:()=>p(e)},`${e.startTime}-${e.endTime}`))}),(0,X.jsx)(Zce,{children:(0,X.jsx)(ms,{testID:`${d}:continue`,onPress:f,disabled:!i,stretched:!0,disableWhenOffline:!0,children:i18n.t(`${l}.continue_cta`)})})]})},Jce=(0,Ge.default)(qe.default).withConfig({displayName:"details_card__DetailsCard",componentId:"sc-rlkx3x-0"})(["padding:16px 24px;border-radius:6px;border-width:1px;border-color:",";border-left-width:8px;border-left-color:",";"],Qe.GRAY_BORDER,({$active:e})=>e?Qe.GREEN_GROWN_UP_GREEN:Qe.GRAY_BORDER),eue=(0,Ge.default)(Be.default).withConfig({displayName:"details_card__BadgeText",componentId:"sc-rlkx3x-1"})(["margin-bottom:12px;align-self:flex-start;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:700;color:",";background-color:",";"],({$active:e})=>e?Qe.GREEN_GROWN_UP_GREEN:Qe.GRAY_2,({$active:e})=>e?Qe.GREEN_WINTER_MIST:Qe.GRAY_4),tue=e=>
3563e.toLocaleString({weekday:"long"}),nue=(e,t)=>i18n.t("series_change_request.series_step.booking_date_time",{date:tue(e),timeRange:kce(e,t),duration:Rce(t)}),iue=(e,t)=>i18n.t("series_change_request.review_step.frequency",{frequency:i18n.t(`frequency_names.${e}`),day:tue(t)}),oue=(e,t)=>i18n.t("series_change_request.review_step.event_date_time",{date:Nce(e),timeRange:kce(e,t),duration:Rce(t)}),aue=(0,Ge.default)(qe.default).withConfig({displayName:"series_step__Container",componentId:"sc-zo88q-0"})(["flex-grow:1;flex-shrink:1;padding-top:24px;"]),sue=(0,Ge.default)(Be.default).withConfig({displayName:"series_step__Heading",componentId:"sc-zo88q-1"})(["color:",";font-size:16px;font-weight:700;margin-bottom:16px;"],Qe.TEXT_DARK),rue=(0,Ge.default)(Vf.default).withConfig({displayName:"series_step__Cards",componentId:"sc-zo88q-2"})(["flex:1;"]),lue=(0,Ge.default)(qe.default).withConfig({displayName:"series_step__DesktopCards",componentId:"sc-zo88q-3"})(["flex-grow:1;"]),due=(0,Ge.default)(ts).withConfig({displayName:"series_step__CardButton",componentId:"sc-zo88q-4"})(["margin-bottom:12px;"]),cue=(0,Ge.default)(qe.default).withConfig({displayName:"series_step__CardRow",componentId:"sc-zo88q-5"})(["flex-direction:row;align-items:center;"]),uue=(0,Ge.default)(qe.default).withConfig({displayName:"series_step__CardDetails",componentId:"sc-zo88q-6"})(["flex:1;"]),pue=(0,Ge.default)(qe.default).withConfig({displayName:"series_step__DetailRow",componentId:"sc-zo88q-7"})(["flex-direction:row;align-items:center;margin:4px 0;"]),mue=(0,Ge.default)(Be.default).withConfig({displayName:"series_step__DetailText",componentId:"sc-zo88q-8"})(["color:",";font-size:14px;font-weight:600;margin-left:12px;"],Qe.TEXT_DARK),fue=(0,Ge.default)(qe.default).withConfig({displayName:"series_step__CtaArea",componentId:"sc-zo88q-9"})(["margin-top:auto;padding-top:16px;"]);const gue=function({series:e,selectedSeriesId:t,onSelect:n,onContinue:i}){const{isDesktop:o}=uu(),a=o?lue:rue;return(0,X.jsxs)(aue,{testID:"series:reschedule:series",children:[(0,X.jsx)(sue,{children:i18n.t("series_change_request.series_step.title")}),(0,X.jsx)(a,{children:e.map(e=>{const i=C.DateTime.fromISO(e.nextEvent.startTime);return(0,X.jsx)(due,{testID:`series:reschedule:series:option:${e.id}`,onPress:()=>n(e.id),children:(0,X.jsx)(Jce,{$active:e.id===t,children:(0,X.jsxs)(cue,{children:[(0,X.jsxs)(uue,{children:[(0,X.jsxs)(pue,{children:[(0,X.jsx)(Pa.default,{name:"calendar-today",size:20,color:Qe.GRAY_2}),(0,X.jsx)(mue,{children:nue(i,e.duration)})]}),(0,X.jsxs)(pue,{children:[(0,X.jsx)(Pa.default,{name:"repeat",size:20,color:Qe.GRAY_2}),(0,X.jsx)(mue,{children:i18n.t(`frequency_names.${e.period}`)})]})]}),(0,X.jsx)(Pa.default,{name:"chevron-right",size:24,color:Qe.GRAY_2})]})})},e.id)})}),(0,X.jsx)(fue,{children:(0,X.jsx)(ms,{testID:"series:reschedule:series:continue",onPress:i,disabled:!t,stretched:!0,disableWhenOffline:!0,children:i18n.t("series_change_request.continue_cta")})})]})},hue=(0,Ge.default)(qe.default).withConfig({displayName:"frequency_step__Container",componentId:"sc-1r9fiz8-0"})(["flex-grow:1;flex-shrink:1;padding-top:24px;"]),_ue=(0,Ge.default)(Be.default).withConfig({displayName:"frequency_step__Heading",componentId:"sc-1r9fiz8-1"})(["color:",";font-size:16px;font-weight:700;margin-bottom:16px;"],Qe.TEXT_DARK),xue=(0,Ge.default)(Vf.default).withConfig({displayName:"frequency_step__Options",componentId:"sc-1r9fiz8-2"})(["flex:1;"]),yue=(0,Ge.default)(qe.default).withConfig({displayName:"frequency_step__DesktopOptions",componentId:"sc-1r9fiz8-3"})(["flex-grow:1;"]),vue=(0,Ge.default)(qe.default).withConfig({displayName:"frequency_step__CtaArea",componentId:"sc-1r9fiz8-4"})(["margin-top:auto;padding-top:16px;"]),bue=[p6.Week,p6.Fortnight];const wue=function({frequency:e,onFrequencyChange:t,onContinue:n}){const{isDesktop:i}=uu(),o=i?yue:xue;return(0,X.jsxs)(hue,{testID:"series:reschedule:frequency",children:[(0,X.jsx)(_ue,{children:i18n.t("series_change_request.frequency_step.title")}),(0,X.jsx)(o,{children:(0,X.jsx)(Tce,{options:bue.map(e=>({value:e,label:i18n.t(`frequency_names.${e}`)})),value:e,columns:1,onChange:t,testIDPrefix:"Frequency"})}),(0,X.jsx)(vue,{children:(0,X.jsx)(ms,{testID:"series:reschedule:frequency:continue",onPress:n,disabled:!e,stretched:!0,disableWhenOffline:!0,children:i18n.t("series_change_request.continue_cta")})})]})},Cue=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__Container",componentId:"sc-16d2ast-0"})(["flex-grow:1;flex-shrink:1;padding-top:24px;"]),jue=(0,Ge.default)(Vf.default).withConfig({displayName:"review_step__Details",componentId:"sc-16d2ast-1"})(["flex:1;"]),Iue=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__DesktopDetails",componentId:"sc-16d2ast-2"})(["flex-grow:1;"]),Tue=(0,Ge.default)(Be.default).withConfig({displayName:"review_step__Heading",componentId:"sc-16d2ast-3"})(["color:",";font-size:16px;font-weight:700;margin-bottom:16px;"],Qe.TEXT_DARK),Eue=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__DetailRow",componentId:"sc-16d2ast-4"})(["flex-direction:row;align-items:center;margin:4px 0;"]),Nue=(0,Ge.default)(Be.default).withConfig({displayName:"review_step__DetailText",componentId:"sc-16d2ast-5"})(["color:",";font-size:14px;font-weight:600;margin-left:12px;flex:1;"],Qe.TEXT_DARK),kue=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__Connector",componentId:"sc-16d2ast-6"})(["align-self:center;width:2px;height:24px;background-color:",";"],Qe.GRAY_BORDER),Rue=(0,Ge.default)(Be.default).withConfig({displayName:"review_step__ErrorText",componentId:"sc-16d2ast-7"})(["color:",";text-align:center;font-size:13px;font-weight:600;margin-top:16px;"],Qe.CRIMSON_1),Sue=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__CtaArea",componentId:"sc-16d2ast-8"})(["margin-top:auto;padding-top:16px;"]);function Aue({frequency:e,startTime:t,duration:n,testID:i}){return(0,X.jsxs)(qe.default,{testID:i,children:[(0,X.jsxs)(Eue,{children:[(0,X.jsx)(Pa.default,{name:"repeat",size:20,color:Qe.GRAY_2}),(0,X.jsx)(Nue,{children:iue(e,t)})]}),(0,X.jsxs)(Eue,{children:[(0,X.jsx)(Pa.default,{name:"schedule",size:20,color:Qe.GRAY_2}),(0,X.jsx)(Nue,{children:oue(t,n)})]})]})}const Pue=function({currentFrequency:e,currentStartTime:t,currentDuration:n,newFrequency:i,newStartTime:o,newDuration:a,loading:s,failed:r,onConfirm:l}){const{isDesktop:d}=uu(),c=d?Iue:jue;return(0,X.jsxs)(Cue,{testID:"series:reschedule:review",children:[(0,X.jsxs)(c,{children:[(0,X.jsx)(wL,{}),(0,X.jsx)(Tue,{children:i18n.t("series_change_request.review_step.title")}),(0,X.jsxs)(Jce,{children:[(0,X.jsx)(eue,{children:i18n.t("series_change_request.review_step.current_details")}),(0,X.jsx)(Aue,{frequency:e,startTime:t,duration:n,testID:"series:reschedule:review:currentDetails"})]}),(0,X.jsx)(kue,{}),(0,X.jsxs)(Jce,{$active:!0,children:[(0,X.jsx)(eue,{$active:!0,children:i18n.t("series_change_request.review_step.new_details")}),(0,X.jsx)(Aue,{frequency:i,startTime:o,duration:a,testID:"series:reschedule:review:newDetails"})]}),r&&(0,X.jsx)(Rue,{testID:"series:reschedule:review:error",children:i18n.t("provider.generic.error")})]}),(0,X.jsx)(Sue,{children:(0,X.jsx)(ms,{testID:"series:reschedule:review:confirm",onPress:l,disabled:s,loading:s,stretched:!0,disableWhenOffline:!0,children:i18n.t("series_change_request.review_step.confirm_cta")})})]})},Due=(0,Ge.default)(qe.default).withConfig({displayName:"success_modal__DragHandle",componentId:"sc-p66ezz-0"})(["width:56px;height:4px;border-radius:25px;background-color:",";align-self:center;margin-top:8px;"],Qe.GRAY_BORDER),Mue=(0,Ge.default)(qe.default).withConfig({displayName:"success_modal__Container",componentId:"sc-p66ezz-1"})(["flex-grow:1;flex-shrink:1;padding:24px 16px 20px 16px;"]);const Oue=function({isOpen:e,onClose:t,seriesId:n,customerId:i,customerName:o,relationshipId:a}){const s=(0,Ks.useHistory)(),r=ft();return(0,K.useEffect)(()=>{e&&r({userFlow:$a,action:Xa.complete,objectName:"series reschedule",properties:{seriesId:n}})},[e]),(0,X.jsxs)(zw,{isOpen:e,onClose:t,size:"fit",testID:"series:reschedule:success",children:[(0,X.jsx)(Due,{}),(0,X.jsx)(Mue,{children:(0,X.jsx)(qL,{testID:"series:reschedule:success:content",title:i18n.t("series_change_request.success_modal.title",{customerName:o}),description:i18n.t("series_change_request.success_modal.description",{customerName:o}),bannerComponent:PL,primaryButton:{title:i18n.t("series_change_request.success_modal.chat_cta"),testID:"series:reschedule:success:chat",onPress:()=>s.push(Wi(a)),trackingUserFlow:$a,trackingObjectName:"go to chat on reschedule request success",trackingProperties:{seriesId:n}},secondaryButton:{title:i18n.t("series_change_request.success_modal.customer_overview_cta"),testID:"series:reschedule:success:customerOverview",onPress:()=>s.push(Ri(i)),trackingUserFlow:$a,trackingObjectName:"go to customer overview on reschedule request success",trackingProperties:{seriesId:n}}})})]})},zue=Object.values(p6),Lue={[dce]:"series step",[cce]:"frequency step",[uce]:"duration step",[pce]:"timeslots step",[mce]:"review step"},que=({registerBackHandler:e})=>{var t,n;const{analytics:{autoTrackEnhanced:i}}=lt(),{id:o}=(0,Ks.useParams)(),a=(0,Ks.useHistory)(),s=null===(t=(0,Ks.useLocation)().state)||void 0===t?void 0:t.seriesId,{customerName:r,relationshipId:l,reschedulableSeries:d,loading:c,error:u,refetch:p}=(e=>{var t,n;const{data:i,loading:o,error:a,refetch:s}=(0,Is.useQuery)(hce,{context:{apiVersion:3},variables:{id:e},skip:!e}),r=null===i||void 0===i||null===(t=i.customer)||void 0===t?void 0:t.relationship,l=((null===r||void 0===r?void 0:r.series)||[]).filter(e=>!(null===e||void 0===e||!e.nextEvent)&&!!e.changeRequestable&&!!e.duration&&!!e.period&&e.period!==ed);return{customerName:null===i||void 0===i||null===(n=i.customer)||void 0===n?void 0:n.firstname,relationshipId:null===r||void 0===r?void 0:r.id,reschedulableSeries:l,loading:o,error:a,refetch:s}})(o),[m,f]=(0,K.useState)(),[g,h]=(0,K.useState)(s),[_,x]=(0,K.useState)(),[y,v]=(0,K.useState)(),[b,w]=(0,K.useState)(!1),[j,I]=(0,K.useState)(),T=d.length>1,E=d.find(e=>e.id===g)||d[0],N=E&&zue.includes(E.period)?E.period:void 0,k=_??N,R=y??(null===E||void 0===E?void 0:E.duration),S=m??(T?dce:cce),A=ct(k),{createChangeRequest:P,loading:D}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(_ce);return{createChangeRequest:({seriesId:t,startTime:n,duration:i,frequency:o})=>e({context:{apiVersion:3},variables:{seriesId:t,slot:{startTime:n,duration:i,frequency:o}}}),loading:t,error:n}})(),{handleWeekChange:M,handleDaySelect:O,handleSlotSelect:z,refresh:L,selectedDay:q,selectedSlot:B,availableDays:G,slots:U,currentDate:$,loading:F,error:H}=yce({seriesId:null===E||void 0===E?void 0:E.id,duration:R,frequency:k,startTime:null===E||void 0===E||null===(n=E.nextEvent)||void 0===n?void 0:n.startTime,enabled:S===pce||S===mce}),W=!!(B&&R&&k&&E),V=!c&&!u&&!d.length,Y=S===mce?W?mce:pce:S,Z=()=>{w(!1),a.goBack()},Q=()=>
3563{if(!b)return Y===mce?(I(void 0),void f(pce)):void(Y!==pce?Y!==uce?Y===cce&&T?f(dce):a.goBack():f(cce):f(uce));Z()},J=(e,t,n)=>i({userFlow:$a,action:e,objectName:t,properties:n}),ee=!c&&!u&&!!E&&!b;if((0,K.useEffect)(()=>{null===e||void 0===e||e(Q)}),(0,K.useEffect)(()=>{V&&a.goBack()},[V]),(0,K.useEffect)(()=>{ee&&J(Xa.view,Lue[Y],Object.assign({seriesId:E.id},k?{frequency:k}:{},R?{duration:R}:{},Y===mce&&B?{startTime:B.startTime}:{}))},[Y,ee]),c)return(0,X.jsx)(Aa.default,{testID:"series:reschedule:loading"});if(u)return(0,X.jsx)(Fce,{testID:"series:reschedule:error",message:i18n.t("provider.generic.error"),retryLabel:i18n.t("series_change_request.retry_cta"),onRetry:()=>p()});if(V)return null;const te=e=>{J(Xa.click,"series",{seriesId:e}),h(e),x(void 0),v(void 0)},ne=()=>f(cce),ie=()=>f(uce),oe=()=>f(pce),ae=async()=>{if(B&&R&&k){J(Xa.click,"confirm reschedule request",{seriesId:E.id,startTime:B.startTime,duration:R,frequency:k}),I(void 0);try{var e;const n=await P({seriesId:E.id,startTime:B.startTime,duration:R,frequency:k}),i=null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.createSeriesChangeRequestFromTimeSlot;if(null!==i&&void 0!==i&&i.success)return void w(!0);if(null!==(t=null===i||void 0===i?void 0:i.errors)&&void 0!==t&&t.some(e=>(null===e||void 0===e?void 0:e.code)===m6.SlotUnavailable))return I(gce),f(pce),void L();I(fce)}catch{I(fce)}var t}};return b?(0,X.jsx)(Oue,{isOpen:!0,onClose:Z,seriesId:E.id,customerId:o,customerName:r,relationshipId:l}):Y===mce?(0,X.jsx)(Pue,{currentFrequency:E.period,currentStartTime:C.DateTime.fromISO(E.nextEvent.startTime),currentDuration:E.duration,newFrequency:k,newStartTime:C.DateTime.fromISO(B.startTime),newDuration:R,loading:D,failed:j===fce,onConfirm:ae}):Y===dce?(0,X.jsx)(gue,{series:d,selectedSeriesId:null===E||void 0===E?void 0:E.id,onSelect:te,onContinue:ne}):Y===cce?(0,X.jsx)(wue,{frequency:k,onFrequencyChange:x,onContinue:ie}):Y===uce?(0,X.jsx)(Oce,{durations:A.map(({value:e})=>e),duration:R,i18nNamespace:"series_change_request",testIDPrefix:"series:reschedule:duration",onDurationChange:v,onContinue:oe}):(0,X.jsx)(Qce,{currentDate:$,availableDays:G,selectedDay:q,selectedSlot:B,slots:U,loading:F,error:H,slotUnavailable:j===gce,i18nNamespace:"series_change_request",testIDPrefix:"series:reschedule:timeslots",onWeekChange:M,onDaySelect:O,onSlotSelect:z,onRetry:L,onContinue:()=>f(mce)})},Bue=()=>{const e=(0,K.useRef)(void 0),t=(0,Ks.useHistory)(),{isDesktop:n}=uu();return(0,X.jsx)(PO,{title:i18n.t("series_change_request.page_title"),scrollEnabled:n,contentContainerStyle:{paddingBottom:24},onBackClick:()=>e.current?e.current():t.goBack(),content:()=>(0,X.jsx)(que,{registerBackHandler:t=>{e.current=t}})})},Gue=({selectedTab:e,onSelect:t})=>(0,X.jsx)(nV,{filters:fw,selectedTab:e,onSelect:t,page:"my_prices"});Gue.propTypes={selectedTab:qc.default.string,onSelect:qc.default.func};const Uue=Gue,$ue=(0,Ge.default)(qe.default).withConfig({displayName:"price_details__Container",componentId:"sc-1xz20gp-0"})(["flex-direction:row;gap:12px;"]),Fue=(0,Ge.default)(qe.default).withConfig({displayName:"price_details__ItemContainer",componentId:"sc-1xz20gp-1"})(["background-color:",";border-radius:9px;padding:12px 16px;gap:4px;"],Qe.GRAY_4),Hue=(0,Ge.default)(Be.default).withConfig({displayName:"price_details__ItemLabel",componentId:"sc-1xz20gp-2"})(["color:",";font-weight:600;font-size:12px;"],Qe.GRAY_1),Wue=(0,Ge.default)(Be.default).withConfig({displayName:"price_details__ItemValue",componentId:"sc-1xz20gp-3"})(["color:",";font-weight:700;font-size:24px;"],Qe.GRAY_0),Vue=(0,Ge.default)(qe.default).withConfig({displayName:"price_details__RateContainer",componentId:"sc-1xz20gp-4"})(["flex-direction:row;align-items:center;gap:4px;"]),Kue=({selectedTab:e,rating:t,jobsDone:n,customerPriceRecurring:i,customerPriceOneOff:o})=>(0,X.jsxs)($ue,{children:[(0,X.jsxs)(Fue,{style:{flex:1},children:[(0,X.jsx)(Hue,{children:i18n.t("my_prices.content.price_details.current_price")}),(0,X.jsx)(Wue,{children:fh("recurring"===e?i:o,{withSymbol:!0})})]}),(0,X.jsxs)(Fue,{style:{flex:.6},children:[(0,X.jsx)(Hue,{children:i18n.t("my_prices.content.price_details.rating")}),(0,X.jsxs)(Vue,{children:[(0,X.jsx)(Wue,{children:Number(t).toFixed(1)}),(0,X.jsx)(Pa.default,{name:"star",color:Qe.GOLD_1,size:20})]})]}),(0,X.jsxs)(Fue,{style:{flex:.6},children:[(0,X.jsx)(Hue,{children:i18n.t("my_prices.content.price_details.jobs_done")}),(0,X.jsx)(Wue,{children:n})]})]});Kue.propTypes={selectedTab:qc.default.string.isRequired,customerPriceRecurring:qc.default.number.isRequired,customerPriceOneOff:qc.default.number.isRequired,rating:qc.default.number.isRequired,jobsDone:qc.default.number.isRequired};const Yue=Kue,Xue=(0,Ge.default)(qe.default).withConfig({displayName:"customer_item__CustomerItemContainer",componentId:"sc-1a2o4pr-0"})(["border-bottom-color:",";border-bottom-width:",";flex-direction:row;align-items:center;justify-content:space-between;padding:16px 0;gap:20px;"],Qe.GRAY_BORDER,({$borderBottom:e})=>e?1:0),Zue=(0,Ge.default)(qe.default).withConfig({displayName:"customer_item__Left",componentId:"sc-1a2o4pr-1"})(["flex-direction:row;flex:1;align-items:center;gap:8px;"]),Que=(0,Ge.default)(Be.default).withConfig({displayName:"customer_item__CustomerItemName",componentId:"sc-1a2o4pr-2"})(["color:",";font-size:14px;font-weight:600;"," "," ",""],Qe.GRAY_0,"overflow: hidden;","text-overflow: ellipsis;","text-wrap: nowrap;"),Jue=(0,Ge.default)(qe.default).withConfig({displayName:"customer_item__CustomerItemPendingContainer",componentId:"sc-1a2o4pr-3"})(["border-bottom-color:",";border-bottom-width:",";flex-direction:column;padding:12px 0;gap:4px;"],Qe.GRAY_BORDER,({$borderBottom:e})=>e?1:0),epe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_item__CustomerItemPendingMessage",componentId:"sc-1a2o4pr-4"})(["color:",";font-size:12px;font-style:italic;font-weight:600;"],Qe.GRAY_2),tpe=(0,Ge.default)(qe.default).withConfig({displayName:"customer_item__CustomerPrice",componentId:"sc-1a2o4pr-5"})(["background-color:",";padding:4px 8px;border-radius:12px;"],Qe.GOLD_5),npe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_item__CustomerPriceText",componentId:"sc-1a2o4pr-6"})(["color:",";font-size:12px;line-height:14px;font-weight:600;
3563"],Qe.GRAY_0),ipe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_item__CustomerPriceUpdate",componentId:"sc-1a2o4pr-7"})(["color:",";font-size:13px;font-weight:700;"],Qe.GREEN_SUMMER_GRASS),ope=({customer:{name:e,relationship:t},borderBottom:n=!1,onUpdatePriceClick:i})=>{if(t.hasPendingPriceChangeRequest||t.remainingEventsCountBeforePriceChange>0){const i=t.remainingEventsCountBeforePriceChange>0?i18n.t("potential_earning.item.required_event_count",{count:t.remainingEventsCountBeforePriceChange}):i18n.t("potential_earning.item.pending");return(0,X.jsxs)(Jue,{$borderBottom:n,children:[(0,X.jsx)(Que,{children:e}),(0,X.jsx)(epe,{children:i})]})}return(0,X.jsxs)(Xue,{$borderBottom:n,children:[(0,X.jsxs)(Zue,{children:[(0,X.jsx)(Que,{numberOfLines:1,style:{flex:1},children:e}),(0,X.jsx)(tpe,{children:(0,X.jsx)(npe,{children:fh(t.providerRepeatPrice,{withSymbol:!0})})})]}),(0,X.jsx)(Da.default,{onPress:i,children:(0,X.jsx)(ipe,{children:i18n.t("potential_earning.item.update")})})]})};ope.propTypes={customer:Oe.PropTypes.shape({id:Oe.PropTypes.string.isRequired,name:Oe.PropTypes.string.isRequired,relationship:{id:Oe.PropTypes.string.isRequired,hasPendingPriceChangeRequest:Oe.PropTypes.bool.isRequired,providerRepeatPrice:Oe.PropTypes.number.isRequired,remainingEventsCountBeforePriceChange:Oe.PropTypes.number.isRequired}}),borderBottom:Oe.PropTypes.bool,onUpdatePriceClick:Oe.PropTypes.func.isRequired};const ape=ope,spe=(0,Ge.default)(qe.default).withConfig({displayName:"potential_earning__Container",componentId:"sc-1fb4f92-0"})(["border:1px solid ",";border-radius:7px;"],Qe.GREEN_WINTER_MIST),rpe=(0,Ge.default)(qe.default).withConfig({displayName:"potential_earning__Header",componentId:"sc-1fb4f92-1"})(["background-color:",";padding:16px;gap:8px;"],Qe.GREEN_WINTER_MIST),lpe=(0,Ge.default)(qe.default).withConfig({displayName:"potential_earning__Body",componentId:"sc-1fb4f92-2"})([""]),dpe=(0,Ge.default)(qe.default).withConfig({displayName:"potential_earning__CustomerListTrigger",componentId:"sc-1fb4f92-3"})(["flex-direction:row;align-items:center;padding:16px;gap:20px;"]),cpe=(0,Ge.default)(Be.default).withConfig({displayName:"potential_earning__CustomerListTriggerText",componentId:"sc-1fb4f92-4"})(["color:",";font-size:13px;font-weight:600;"],Qe.GRAY_0),upe=(0,Ge.default)(Be.default).withConfig({displayName:"potential_earning__HeaderTitle",componentId:"sc-1fb4f92-5"})(["color:",";font-size:11px;font-weight:700;"],Qe.GREEN_GROWN_UP_GREEN),ppe=(0,Ge.default)(Be.default).withConfig({displayName:"potential_earning__HeaderPotentialAmount",componentId:"sc-1fb4f92-6"})(["color:",";font-size:24px;font-weight:700;"],Qe.GRAY_0),mpe=(0,Ge.default)(qe.default).withConfig({displayName:"potential_earning__CustomerContainer",componentId:"sc-1fb4f92-7"})(["padding:0 16px;"]),fpe=({potentialEarnings:e,currentPrice:t})=>{const n=lu(),{autoTrack:i}=mt(),[o,a]=(0,K.useState)(!0),s=[...e.customers].filter(e=>{var t,n;return(null===e||void 0===e||null===(t=e.relationship)||void 0===t?void 0:t.canRequestPriceChange)||!(null!==e&&void 0!==e&&null!==(n=e.relationship)&&void 0!==n&&n.canRequestPriceChangeWithForm)}).sort((e,t)=>e.relationship.remainingEventsCountBeforePriceChange===t.relationship.remainingEventsCountBeforePriceChange?e.relationship.providerRepeatPrice-t.relationship.providerRepeatPrice:e.relationship.remainingEventsCountBeforePriceChange-t.relationship.remainingEventsCountBeforePriceChange),r=(0,K.useCallback)(e=>{i("My prices - Provider clicks update price for customer",`from my prices page - customer: ${e.id}`),n(Pi(e.id,t))},[i,t]);return(0,X.jsxs)(spe,{children:[(0,X.jsxs)(rpe,{children:[(0,X.jsx)(upe,{children:i18n.t("potential_earning.title")}),(0,X.jsx)(ppe,{children:i18n.t("potential_earning.increase_amount",{price:fh(e.total)})})]}),(0,X.jsxs)(lpe,{children:[(0,X.jsxs)(dpe,{children:[(0,X.jsx)(cpe,{children:i18n.t("potential_earning.description")}),(0,X.jsx)(Ma.default,{onPress:()=>a(!o),children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",color:Qe.GRAY_2,name:o?"chevron-up":"chevron-down"})})]}),o&&(0,X.jsx)(mpe,{children:s.map((t,n)=>(0,X.jsx)(ape,{customer:t,borderBottom:n<e.customers.length-1,onUpdatePriceClick:()=>r(t)},t.id))})]})]})};fpe.propTypes={potentialEarnings:Oe.PropTypes.shape({total:Oe.PropTypes.number.isRequired,customers:Oe.PropTypes.arrayOf(Oe.PropTypes.shape({id:Oe.PropTypes.string.isRequired,name:Oe.PropTypes.string.isRequired,relationship:{id:Oe.PropTypes.string.isRequired,hasPendingPriceChangeRequest:Oe.PropTypes.bool.isRequired,providerRepeatPrice:Oe.PropTypes.number.isRequired,remainingEventsCountBeforePriceChange:Oe.PropTypes.number.isRequired,canRequestPriceChange:Oe.PropTypes.bool.isRequired,canRequestPriceChangeWithForm:Oe.PropTypes.bool.isRequired}}))}),currentPrice:Oe.PropTypes.number.isRequired};
3563const gpe=fpe,hpe=({title:e=i18n.t("services.details.price_section.price_breakdown.customer_price"),isRecurring:t,repeatPrice:n,oneOffPrice:i,oneOffMinPrice:o,oneOffMaxPrice:a,recurringMinPrice:s,recurringMaxPrice:r,showCommission:l})=>{const{fetchPriceWithCommissions:d,priceWithCommissions:c,loading:u}=lw(),[p,m]=(0,K.useState)(!1),[f,g]=(0,K.useState)(i),[h,_]=(0,K.useState)(_h()),x=(0,K.useCallback)(Me()(d,500),[]),[y,v]=(0,K.useState)(n),[b,w]=(0,K.useState)(_h()),C=t?b:h,j=t?w:_,I=t?n:i,T=t?y:f,E=t?s:o,N=t?r:a,k=T!==I,R=T<E||T>N;(0,K.useEffect)(()=>{m(u)},[u]),(0,K.useEffect)(()=>{i&&n&&(g(i),v(n||i))},[i,n]),(0,K.useEffect)(()=>{S(I)},[t]),(0,K.useEffect)(()=>{if(!T)return;const e=t?uw:cw;m(!0),x(T,e)},[T,t]),(0,K.useEffect)(()=>{!u&&c&&(j(_h(gh(c.customerPrice),gh(c.helplingCommission),gh(c.providerCommission),l,e)),m(!1))},[c,u,t]);const S=e=>{m(!0),t?v(e):g(e)};return{price:T,oneOff:f,repeat:y,priceBreakdown:C,min:E,max:N,changed:k,invalid:R,blurring:p,onChange:S}},_pe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-1lqm0rs-0"})(["flex:1;align-items:center;"]),xpe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Content",componentId:"sc-1lqm0rs-1"})(["flex:1;width:100%;max-width:420px;
3563gap:12px;"]),ype=(0,Ge.default)(ms).withConfig({displayName:"content__Cta",componentId:"sc-1lqm0rs-2"})(["width:100%;margin-bottom:24px;"]),vpe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-1lqm0rs-3"})(["margin-bottom:10px;text-align:center;color:",";"],Qe.CRIMSON_1),bpe=({rating:e,selectedTab:t,jobsDone:n,prices:i,peakTime:o,travel:a,priceLimits:s,priceRecommendations:r,enhancedPriceRecommendations:l,refetchPrices:d,showCustomerCommissionToProvider:c,potentialEarnings:u})=>{const{toast:{showToastMessage:p}}=lt(),{updatePrices:m,loading:f,error:g}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(dw);return{updatePrices:({baseRepeatPrice:t,baseOneOffPrice:n,peakTimeOneOffPrice:i,peakTimeRepeatPrice:o,travelOneOffPrice:a,travelRepeatPrice:s})=>e({variables:{baseRepeatPrice:t,baseOneOffPrice:n,peakTimeOneOffPrice:i,peakTimeRepeatPrice:o,travelOneOffPrice:a,travelRepeatPrice:s},context:{apiVersion:3}}),loading:t,error:n}})(),h="recurring"===t,_=l||r||{},x=h?null===_||void 0===_?void 0:_.repeatPrice:null===_||void 0===_?void 0:_.adhocPrice,y=hpe({title:i18n.t("services.details.price_section.price_breakdown.customer_price"),isRecurring:h,oneOffPrice:null===i||void 0===i?void 0:i.oneOffPrice,repeatPrice:null===i||void 0===i?void 0:i.recurringPrice,oneOffMinPrice:null===s||void 0===s?void 0:s.oneOffMinPrice,oneOffMaxPrice:null===s||void 0===s?void 0:s.oneOffMaxPrice,recurringMinPrice:null===s||void 0===s?void 0:s.recurringMinPrice,recurringMaxPrice:null===s||void 0===s?void 0:s.recurringMaxPrice,showCommission:c}),v=hpe({title:i18n.t("my_prices.peak_time_price_field.field.title"),isRecurring:h,oneOffPrice:null===o||void 0===o?void 0:o.oneOffPrice,repeatPrice:null===o||void 0===o?void 0:o.repeatPrice,oneOffMinPrice:y.oneOff,oneOffMaxPrice:null===s||void 0===s?void 0:s.oneOffMaxPrice,recurringMinPrice:y.repeat,recurringMaxPrice:null===s||void 0===s?void 0:s.recurringMaxPrice,showCommission:c}),b=hpe({title:i18n.t("my_prices.travel_price_field.field.title"),isRecurring:h,oneOffPrice:null===a||void 0===a?void 0:a.oneOffPrice,repeatPrice:null===a||void 0===a?void 0:a.repeatPrice,oneOffMinPrice:y.oneOff,oneOffMaxPrice:null===s||void 0===s?void 0:s.oneOffMaxPrice,recurringMinPrice:y.repeat,recurringMaxPrice:null===s||void 0===s?void 0:s.recurringMaxPrice,showCommission:c}),w=x?i18n.t(`services.details.price_section.${l?"enhanced_price":"price"}.hint`,{price:fh(x,{withSymbol:!0})}):null,C=h&&u&&u.customers.length>0,j=y.changed||v.changed||b.changed,I=y.invalid,T=(null===o||void 0===o?void 0:o.enabled)&&v.invalid,E=(null===a||void 0===a?void 0:a.enabled)&&b.invalid,N=!j||I||T||E||f,[k,R]=(0,K.useState)(!1),S=(0,K.useCallback)(Me()(()=>R(!1),1e3),[]),A=k||y.blurring||(null===o||void 0===o?void 0:o.enabled)&&v.blurring||(null===a||void 0===a?void 0:a.enabled)&&b.blurring;return(0,K.useEffect)(()=>{R(!0),S()},[h]),(0,X.jsx)(_pe,{children:(0,X.jsxs)(xpe,{children:[(0,X.jsx)(Yue,{customerPriceRecurring:null===i||void 0===i?void 0:i.recurringPrice,customerPriceOneOff:null===i||void 0===i?void 0:i.oneOffPrice,rating:e,selectedTab:t,jobsDone:n}),(0,X.jsx)(wQ,{hint:w}),(0,X.jsx)(rQ,{title:i18n.t("my_prices.price_field.header.title"),description:h?i18n.t("my_prices.recurring.reminder"):i18n.t("my_prices.oneoff.reminder"),value:y.price,setValue:e=>{y.onChange(e),null!==o&&void 0!==o&&o.enabled&&e>v.price&&v.onChange(e),null!==a&&void 0!==a&&a.enabled&&e>b.price&&b.onChange(e)},min:y.min,max:y.max}),(null===o||void 0===o?void 0:o.enabled)&&(0,X.jsx)(rQ,{title:i18n.t("my_prices.peak_time_price_field.field.title"),description:i18n.t("my_prices.peak_time_price_field.field.description"),popoverContent:i18n.t("my_prices.peak_time_price_field.popover.content"),value:v.price,setValue:v.onChange,min:v.min,max:v.max,minErrorMessage:i18n.t("my_prices.peak_time_price_field.error.min")}),(null===a||void 0===a?void 0:a.enabled)&&(0,X.jsx)(rQ,{title:i18n.t("my_prices.travel_price_field.field.title"),description:i18n.t("my_prices.travel_price_field.field.description"),popoverContent:i18n.t("my_prices.travel_price_field.popover.content"),value:b.price,setValue:b.onChange,min:b.min,max:b.max,minErrorMessage:i18n.t("my_prices.peak_time_price_field.error.min")}),(0,X.jsx)(_Q,{customerPrice:y.price,blurringPrice:A,breakdownLabel:i18n.t("services.details.price_section.price_breakdown.title"),priceBreakdown:y.priceBreakdown,peakTimePriceBreakdown:(null===o||void 0===o?void 0:o.enabled)&&v.priceBreakdown,travelPriceBreakdown:(null===a||void 0===a?void 0:a.enabled)&&b.priceBreakdown}),g&&(0,X.jsx)(vpe,{children:i18n.t("provider.generic.error")}),(0,X.jsx)(ype,{disabled:N,onPress:async()=>{var e,t;const n=await m({baseOneOffPrice:y.oneOff,baseRepeatPrice:y.repeat,peakTimeOneOffPrice:v.oneOff,peakTimeRepeatPrice:v.repeat,travelOneOffPrice:b.oneOff,travelRepeatPrice:b.repeat});var i,o,a;null!==n&&void 0!==n&&null!==(e=n.data)&&void 0!==e&&null!==(t=e.updateProviderPrices)&&void 0!==t&&t.success?d():p({message:(null===n||void 0===n||null===(i=n.data)||void 0===i||null===(o=i.updateProviderPrices)||void 0===o||null===(a=o.errors)||void 0===a?void 0:a[0].message)||i18n.t("provider.generic.error")})},testID:"MyPricesForm:SaveButton",children:i18n.t("my_prices.content.cta_save")}),C&&(0,X.jsx)(gpe,{potentialEarnings:u,currentPrice:y.price}),(0,X.jsx)(qe.default,{style:{height:16}})]})})};bpe.propTypes={selectedTab:qc.default.string.isRequired,prices:qc.default.object,peakTime:qc.default.shape({enabled:qc.default.bool.isRequired,repeatPrice:qc.default.number,oneOffPrice:qc.default.number}).isRequired,travel:qc.default.shape({enabled:qc.default.bool.isRequired,repeatPrice:qc.default.number,oneOffPrice:qc.default.number}).isRequired,rating:qc.default.number.isRequired,jobsDone:qc.default.number.isRequired,priceRecommendations:qc.default.object,enhancedPriceRecommendations:qc.default.shape({adhocPrice:qc.default.number,repeatPrice:qc.default.number}),priceLimits:qc.default.object,refetchPrices:qc.default.func,showCustomerCommissionToProvider:qc.default.bool,potentialEarnings:qc.default.shape({total:qc.default.number.isRequired,customers:qc.default.arrayOf(qc.default.shape({id:qc.default.string.isRequired,name:qc.default.string.isRequired,relationship:{id:qc.default.string.isRequired,hasPendingPriceChangeRequest:qc.default.bool.isRequired,providerRepeatPrice:qc.default.number.isRequired,remainingEventsCountBeforePriceChange:qc.default.number.isRequired}}))})};const wpe=bpe;function Cpe(){return(0,X.jsx)(Rf,{page:"my prices",content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const jpe=({onboarding:e,requirement:t})=>{const{session:{currentUser:n}}
3563=lt(),i=hO().get("preselectTab")||pw,[o,a]=(0,K.useState)(i),{priceRecommendations:s,enhancedPriceRecommendations:r,avgRating:l,stats:d,prices:c,peakTime:u,travel:p,priceLimits:m,potentialEarnings:f,loading:g,refetch:h}=sw(),{verticalServices:_}=ut(),{markRequirementAsCompleted:x}=Es();return(0,K.useEffect)(()=>{n.onboarded||(t===Cc?x(Cc):_||x(Ic))},[n]),g?(0,X.jsx)(Cpe,{}):(0,X.jsx)(Rf,{title:i18n.t("my_prices.header.title"),subheader:()=>(0,X.jsx)(Uue,{selectedTab:o,onSelect:a}),content:()=>(0,X.jsx)(wpe,{selectedTab:o,priceRecommendations:s,enhancedPriceRecommendations:r,rating:null===l||void 0===l?void 0:l.total,prices:c,peakTime:u,travel:p,jobsDone:null===d||void 0===d?void 0:d.jobsDone,priceLimits:m,refetchPrices:h,showCustomerCommissionToProvider:!0,potentialEarnings:f,onboarding:e}),contentCustomPaddingTop:24})};jpe.propTypes={onboarding:ze().bool.isRequired,requirement:ze().string.isRequired};const Ipe=(0,Te.observer)(jpe),Tpe=()=>{const{blocked:e,status:t,requirements:n,loading:i}=F8(Cc);if(i)return(0,X.jsx)(Rf,{title:i18n.t("my_prices.header.title"),content:()=>(0,X.jsx)(xm.ActivityIndicator,{})});if(e)return(0,X.jsx)(Ks.Redirect,{to:wi()});const o=n.find(e=>e.name===Cc)?Cc:Ic;return(0,X.jsx)(Ipe,{onboarding:t!==mc,requirement:o})},Epe=(0,Ge.default)(DZ.default).withConfig({displayName:"income_input_simple__PriceTextInput",componentId:"sc-ybtdpi-0"})(["color:",";font-size:14px;padding-bottom:16px;margin-bottom:-16px;font-weight:600;text-align:",";width:",";"," flex:1;"],Qe.GRAY_0,({align:e})=>e||"right",({width:e})=>e||"64px","outline-style: none;"),Npe=(0,K.forwardRef)(({value:e,onChange:t,onFocus:n=()=>null,onBlur:i=()=>null,testID:o=null},a)=>(0,X.jsx)(Epe,{testID:o,ref:a,value:e/100,onChangeValue:e=>t(100*e),separator:"",delimiter:"",precision:0,onBlur:i,onFocus:n}));Npe.propTypes={testID:ze().string,value:ze().number,onChange:ze().func.isRequired,onFocus:ze().func,onBlur:ze().func};const kpe=Npe,Rpe=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__Container",componentId:"sc-13zxa95-0"})(["width:100%;gap:6px;"]),Spe=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__HeaderTitleContainer",componentId:"sc-13zxa95-1"})(["flex-direction:row;align-items:center;gap:4px;"]),Ape=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__HeaderTitle",componentId:"sc-13zxa95-2"})(["color:",";font-size:13px;font-weight:600;"],Qe.GRAY_0),Ppe=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__HeaderRequired",componentId:"sc-13zxa95-3"})(["color:",";font-size:13px;font-weight:600;"],Qe.CRIMSON_2),Dpe=(0,Ge.default)(qe.default).withConfig({displayName:"price_change_field__PriceTextInputContainer",componentId:"sc-13zxa95-4"})(["background:",";flex-direction:row;align-items:center;padding:14px;border:1px solid ",";border-radius:4px;"],Qe.WHITE,Qe.VIOLET_4),Mpe=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__PriceLabel",componentId:"sc-13zxa95-5"})(["color:",";font-size:13px;font-weight:600;"],Qe.GRAY_2),Ope=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__ErrorMessage",componentId:"sc-13zxa95-6"})(["color:",";font-size:13px;"],Qe.CRIMSON_2),zpe=(0,Ge.default)(Be.default).withConfig({displayName:"price_change_field__AfterCommissions",componentId:"sc-13zxa95-7"})(["font-size:13px;text-align:right;",""],({loading:e})=>e&&`\n    color: ${Qe.TEXT_LIGHT};\n  `),Lpe=({service:e=null,testID:t="PriceChangeField",value:n,setValue:i,min:o=0,max:a=Number.MAX_VALUE,minErrorMessage:s=i18n.t("my_prices.price_field.error.min",{price:fh(o,{withSymbol:!0})}),maxErrorMessage:r=i18n.t("my_prices.price_field.error.max",{price:fh(a,{withSymbol:!0})}),title:l,unit:d=i18n.t("currency_per_hour"),variant:c="price",required:u=!1,shouldShowError:p=!1,onFocus:m,onBlur:f})=>{const[g,h]=(0,K.useState)(),[_,x]=(0,K.useState)(),y=(0,K.useRef)(null),{getServiceCommissions:v,commissions:b,loadingCommissions:w}=UZ(),C=(0,K.useCallback)(Me()(v,400),[]),j="income"===c?kpe:OZ;(0,K.useEffect)(()=>{if(e)return C(e,XZ,parseInt(n))},[n]);return(0,K.useEffect)(()=>{h(null!==o&&n<o?s:null!==a&&n>a?r:null)},[n,o,a]),(0,X.jsxs)(Rpe,{testID:`Container:${t}`,children:[!!l&&(0,X.jsxs)(Spe,{children:[(0,X.jsx)(Ape,{children:l}),u&&(0,X.jsx)(Ppe,{children:"*"})]}),(0,X.jsx)(ws.default,{onPress:()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.focus()},children:(0,X.jsxs)(Dpe,{children:[(0,X.jsx)(Mpe,{children:d}),(0,X.jsx)(j,{ref:y,value:n,onChange:e=>{i(e)},onFocus:()=>{m&&m()},onBlur:()=>{f&&f()},min:o,max:a,testID:t})]})}),!!e&&(0,X.jsx)(zpe,{loading:w,children:null!==b&&void 0!==b&&b.providerCommission?i18n.t("services.details.price_section.commissions.earning_after_commissions",{amount:fh(b.providerCommission,{withSymbol:!0})}):" "}),p&&g&&(0,X.jsx)(Ope,{children:g})]})};
3563Lpe.propTypes={testID:ze().string,value:ze().number,setValue:ze().func.isRequired,min:ze().number,max:ze().number,minErrorMessage:ze().string,maxErrorMessage:ze().string,title:ze().string,unit:ze().string,service:ze().string,variant:ze().oneOf(["price","income"]),required:ze().bool,shouldShowError:ze().bool,onFocus:ze().func,onBlur:ze().func};const qpe=Lpe,Bpe=({value:e,initialMin:t=0,initialMax:n=Number.MAX_SAFE_INTEGER,required:i=!1})=>{const[o,a]=(0,K.useState)(e),[s,r]=(0,K.useState)(t),[l,d]=(0,K.useState)(n||Number.MAX_SAFE_INTEGER),c=o!==e,u=o<s||o>l||i&&!o;(0,K.useEffect)(()=>{e&&p(e)},[e]);const p=e=>{a(e)};return{value:o,min:s,max:l,setMin:r,setMax:e=>d(e||Number.MAX_SAFE_INTEGER),changed:c,invalid:u,required:i,onChange:p}},Gpe=(0,Ge.default)(qe.default).withConfig({displayName:"section__Container",componentId:"sc-idstri-0"})(["width:100%;gap:8px;"]),Upe=(0,Ge.default)(qe.default).withConfig({displayName:"section__HeaderTitleContainer",componentId:"sc-idstri-1"})(["flex-direction:row;align-items:center;gap:4px;"]),$pe=(0,Ge.default)(Be.default).withConfig({displayName:"section__HeaderTitle",componentId:"sc-idstri-2"})(["color:",";font-size:14px;font-weight:700;"],Qe.GRAY_0),Fpe=(0,Ge.default)(Be.default).withConfig({displayName:"section__HeaderDescription",componentId:"sc-idstri-3"})(["color:",";font-size:12px;font-weight:400;"],Qe.GRAY_2),Hpe=({title:e,description:t,hint:n,children:i})=>(0,X.jsxs)(Gpe,{children:[!!e&&(0,X.jsx)(Upe,{children:(0,X.jsx)($pe,{children:e})}),!!t&&(0,X.jsx)(Fpe,{children:t}),(0,X.jsx)(wQ,{hint:n}),i]});
3563Hpe.propTypes={title:ze().string,description:ze().string,hint:ze().string,children:ze().node};const Wpe=Hpe,Vpe=xt`
3564  query providerFetchPricingForSetupMyPrices {
3565    service(id: "cleaning.home") {
3566      priceSetting {
3567        monthlyExpectedIncome {
3568          minimum
3569          maximum
3570        }
3571        providerOneOffPrice
3572        suggestedOneOffPrice
3573        suggestedEnhancedOneOffPrice
3574        limits {
3575          oneOffMinPrice
3576          oneOffMaxPrice
3577        }
3578      }
3579    }
3580  }
3581`,Kpe=xt`
3582  mutation setupInitialPriceAndExpectations($basePrice: Int!, $monthlyExpectedIncome: MonthlyExpectedIncomeInput!) {
3583    setupInitialPriceAndExpectations(basePrice: $basePrice, monthlyExpectedIncome: $monthlyExpectedIncome) {
3584      success
3585      errors {
3586        code
3587        message
3588        path
3589      }
3590    }
3591  }
3592`,Ype=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-17dbq6u-0"})(["flex:1;align-items:center;"]),Xpe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Content",componentId:"sc-17dbq6u-1"})(["flex:1;width:100%;max-width:420px;
3592gap:32px;padding-top:8px;"]),Zpe=(0,Ge.default)(ms).withConfig({displayName:"content__Cta",componentId:"sc-17dbq6u-2"})(["width:100%;margin-bottom:24px;"]),Qpe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-17dbq6u-3"})(["margin-bottom:10px;text-align:center;color:",";"],Qe.CRIMSON_1),Jpe=({price:e,priceLimits:t,monthlyExpectedIncome:n,priceRecommendations:i,enhancedPriceRecommendations:o,refetchPrices:a,onSubmit:s,onboarding:r,onboarded:l})=>{const{toast:{showToastMessage:d}}=lt(),c=(0,Ks.useHistory)(),u=ft(),{setupInitialPriceAndExpectations:p,loading:m,error:f}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(Kpe);return{setupInitialPriceAndExpectations:({basePrice:t,monthlyExpectedIncome:n})=>e({variables:{basePrice:t,monthlyExpectedIncome:n},context:{apiVersion:3}}),loading:t,error:n}})(),g=o||i,h=Bpe({value:e,initialMin:null===t||void 0===t?void 0:t.min,initialMax:null===t||void 0===t?void 0:t.max}),_=Bpe({value:null===n||void 0===n?void 0:n.minimum,minimum:0,required:!1}),x=Bpe({value:null===n||void 0===n?void 0:n.maximum,initialMin:_.value,required:!1}),[y,v]=(0,K.useState)(null),[b,w]=(0,K.useState)(null),C=g?i18n.t(`services.details.price_section.${o?"enhanced_price":"price"}.hint`,{price:fh(g,{withSymbol:!0})}):null,j=h.changed||_.changed||x.changed,I=h.invalid||_.invalid||x.invalid,T=!j||I||m;return(0,X.jsx)(Ype,{children:(0,X.jsxs)(Xpe,{children:[(0,X.jsx)(Wpe,{title:i18n.t("setup_my_prices.price_section.title"),hint:C,children:(0,X.jsx)(qpe,{value:h.value,setValue:e=>{u({userFlow:qa,action:Xa.input,objectName:"Base Price field",properties:{price:e}}),h.onChange(e)},min:h.min,max:h.max,required:h.required})}),false,f&&(0,X.jsx)(Qpe,{children:i18n.t("provider.generic.error")}),(0,X.jsx)(Zpe,{disabled:T,onPress:async()=>{var e,t;u({userFlow:qa,action:Xa.click,objectName:"Save Prices button"});const n=await p({basePrice:h.value,monthlyExpectedIncome:{minimum:_.value,maximum:x.value}});var i,o,m;null!==n&&void 0!==n&&null!==(e=n.data)&&void 0!==e&&null!==(t=e.setupInitialPriceAndExpectations)&&void 0!==t&&t.success?(r&&await s().catch(()=>{}),a(),l||c.push(wi())):d({message:(null===n||void 0===n||null===(i=n.data)||void 0===i||null===(o=i.setupInitialPriceAndExpectations)||void 0===o||null===(m=o.errors)||void 0===m?void 0:m[0].message)||i18n.t("provider.generic.error")})},testID:"SetupMyPrices:SaveButton",children:i18n.t("my_prices.content.cta_save")}),(0,X.jsx)(qe.default,{style:{height:16}})]})})};Jpe.propTypes={price:qc.default.number,priceRecommendations:qc.default.number,enhancedPriceRecommendations:qc.default.number,priceLimits:qc.default.object,refetchPrices:qc.default.func,onSubmit:qc.default.func,onboarding:qc.default.bool,onboarded:qc.default.bool};const eme=Jpe;function tme(){return(0,X.jsx)(Rf,{page:"setup my prices",content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const nme=({onboarding:e})=>{const{session:{currentUser:t}}=lt(),{autoTrackEnhanced:n}=mt(),{priceRecommendations:i,enhancedPriceRecommendations:o,basePrice:a,priceLimits:s,monthlyExpectedIncome:r,loading:l,refetch:d}=(()=>{const{loading:e,data:t,error:n,refetch:i}=(0,Is.useQuery)(Vpe,{context:{apiVersion:3}}),{service:{priceSetting:{monthlyExpectedIncome:o,providerOneOffPrice:a,suggestedOneOffPrice:s,suggestedEnhancedOneOffPrice:r,limits:l}={}}={}}=t||{};return{loading:e,basePrice:a,monthlyExpectedIncome:o,suggestedOneOffPrice:s,enhancedPriceRecommendations:s&&r?r:null,priceLimits:{min:null===l||void 0===l?void 0:l.oneOffMinPrice,max:null===l||void 0===l?void 0:l.oneOffMaxPrice},error:n,refetch:i}})(),{markRequirementAsCompleted:c}=Es(),u=()=>c(Cc);return(0,K.useEffect)(()=>{n({userFlow:qa,action:Xa.view,objectName:"Setup My Prices page"})},[]),(0,K.useEffect)(()=>{t.onboarded||l||c(Cc)},[t,l]),l?(0,X.jsx)(tme,{}):(0,X.jsx)(X.Fragment,{children:(0,X.jsx)(Rf,{title:i18n.t("my_prices.header.title"),content:()=>(0,X.jsx)(eme,{priceRecommendations:i,enhancedPriceRecommendations:o,price:a,priceLimits:s,refetchPrices:d,onboarding:e,monthlyExpectedIncome:r,onSubmit:u,onboarded:t.onboarded}),contentCustomPaddingTop:24})})};nme.propTypes={onboarding:ze().bool.isRequired};const ime=(0,Te.observer)(nme),ome=()=>{const{blocked:e,status:t,loading:n}=F8(Cc);return n?(0,X.jsx)(Rf,{title:i18n.t("my_prices.header.title"),content:()=>(0,X.jsx)(xm.ActivityIndicator,{})}):e?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(ime,{onboarding:t!==mc,requirement:Cc})},ame=(0,Ge.default)(qe.default).withConfig({displayName:"card_layout_desktop__Container",componentId:"sc-u1hbhm-0"})(["flex:1;background:",";align-items:center;min-height:100%;"],Qe.WHITE),sme=(0,Ge.default)(qe.default).withConfig({displayName:"card_layout_desktop__Main",componentId:"sc-u1hbhm-1"})(["width:570px;flex:1;"]),rme=(0,Ge.default)(qe.default).withConfig({displayName:"card_layout_desktop__Header",componentId:"sc-u1hbhm-2"})(["padding:31px 0px 16px 0px;flex-direction:row;align-items:center;width:100%;position:relative;border-top-right-radius:20px;border-top-left-radius:20px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:",";"],x4.DOT_COLOR),lme=(0,Ge.default)(ts).withConfig({displayName:"card_layout_desktop__BackButton",componentId:"sc-u1hbhm-3"})(["padding:5px;"]),dme=(0,Ge.default)(Pa.default).attrs(e=>Object.assign({name:"chevron-left",size:35},e)).withConfig({displayName:"card_layout_desktop__ArrowBackIcon",componentId:"sc-u1hbhm-4"})([""]),cme=(0,Ge.default)(Be.default).withConfig({displayName:"card_layout_desktop__Title",componentId:"sc-u1hbhm-5"})(["flex:1;text-align:center;font-size:14px;font-weight:700;color:",";text-align:center;padding-bottom:10px;margin-right:40px;"],({titleColor:e})=>e),ume=(0,Ge.default)(qe.default).withConfig({displayName:"card_layout_desktop__Content",componentId:"sc-u1hbhm-6"})(["background:",";padding:0px ","px;padding-bottom:","px;border-bottom-right-radius:20px;border-bottom-left-radius:20px;
3592"],({contentBackgroundColor:e})=>e,({noContentMargin:e})=>e?0:16,({$paddingBottom:e})=>20+e),pme={maxWidth:750,alignSelf:"center",width:"100%"},mme=({title:e,titleColor:t=Qe.TEXT_DARK,content:n,scrollEnabled:i=!0,contentBackgroundColor:o=Qe.WHITE,contentContainerStyle:a,centeredContent:s=!0,headerStyle:r,arrowIconColor:l=Qe.TEXT_DARK,titleStyle:d,containerStyle:c,noContentMargin:u,onBackClick:p})=>{const m=(0,Re.useSafeAreaInsets)(),{isConnected:f}=(0,ta.useNetInfo)(),g=(0,Ks.useHistory)();(0,K.useEffect)(()=>{const e=xf.default.addEventListener("hardwareBackPress",()=>(g.goBack(),!0));return()=>e.remove()},[]);const h=m.top<52?52:m.top;return(0,X.jsxs)(ame,{style:c,children:[!f&&(0,X.jsx)(pm,{paddingTop:m.top}),(0,X.jsx)(Qm,{withMenu:!0,hideNetworkOfflineStatus:!0}),(0,X.jsx)(Vf.default,{scrollEnabled:i,overScrollMode:"never",contentContainerStyle:Object.assign({flexGrow:1,marginTop:55},a,s?pme:{}),children:(0,X.jsxs)(sme,{children:[(0,X.jsxs)(rme,{paddingTop:h,style:r,children:[(0,X.jsx)(lme,{onPress:p||(()=>g.goBack()),paddingTop:h,children:(0,X.jsx)(dme,{color:l})}),(0,X.jsx)(cme,{titleColor:t,style:d,children:e})]}),(0,X.jsxs)(ume,{contentBackgroundColor:o,$paddingBottom:m.bottom,noContentMargin:u,children:[(0,X.jsx)(pf,{noContentMargin:u}),n&&n()]})]})})]})};mme.propTypes={title:qc.default.string.isRequired,titleColor:qc.default.string,content:qc.default.func.isRequired,scrollEnabled:qc.default.bool,centeredContent:qc.default.bool,contentBackgroundColor:qc.default.string,contentContainerStyle:qc.default.object,containerStyle:qc.default.object,headerStyle:qc.default.oneOfType([qc.default.object,qc.default.array]),arrowIconColor:qc.default.string,titleStyle:qc.default.oneOfType([qc.default.object,qc.default.array]),noContentMargin:qc.default.bool,onBackClick:qc.default.func};const fme=mme;var gme=n(46046);const hme=(0,Ge.default)(hg.default).withConfig({displayName:"case_status_card__StatusCard",componentId:"sc-1tqzi4l-0"})(["margin:4px;box-shadow:0px 2px 7px rgba(0,0,0,0.05);shadow-color:",";"],Qe.GRAY_LIGHT),_me=e=>{const{topic:t,reason:n,reporter:i}=e;if(jx(e)){const n=e.state===Fh?Fh:e.closedResolution;return i18n.t(`resolution_center.case_description.topic.${t}.${n}`)}return"provider"===(null===i||void 0===i?void 0:i.accountType)?i18n.t(`resolution_center.cases.by_provider.topics.${t}.name`):n?`${i18n.t(`resolution_center.case_description.topic.${t}`)} / ${i18n.t(`resolution_center.case_description.reason.${n}`)}`:i18n.t(`resolution_center.case_description.topic.${t}`)},xme=e=>{const t=e.reportedBySystem||!e.reporter?"system":e.reporter.accountType;return i18n.t(`resolution_center.case_reporter_tag.${t}`)},yme=({kase:e,activeTab:t,onClick:n})=>{const i=(0,K.useCallback)(()=>{if(t===C_)return i18n.t(`resolution_center.state.open_state.${e.openState}`);const n=m_[e.closedResolution]||e.closedResolution.split(/[\s-]+/).join("_");
3592return i18n.t(`resolution_center.state.closed_state.${n}`)},[t]);return(0,X.jsx)(hme,{onClick:n,variant:tb.CARD_VARIANT.DISPUTE_STATUS,status:i(),statusColor:t===C_?f_[e.openState]:g_[e.closedResolution],tag:xme(e),identifier:`${i18n.t("resolution_center.case_details.case_id")} ${e.id}`,description:_me(e),showArrow:[h_.issue_refund,h_.dispute_cancellation_fee].includes(e.topic)},e.id)};yme.propTypes={kase:ze().object.isRequired,activeTab:ze().string.isRequired,onClick:ze().func.isRequired};const vme=yme,bme=(0,Ge.default)(Aa.default).attrs({size:"large",color:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"resolution_center__Spinner",componentId:"sc-15ud6f8-0"})(["top:50%;"]),wme=(0,Ge.default)(qe.default).withConfig({displayName:"resolution_center__Container",componentId:"sc-15ud6f8-1"})(["",""],({desktop:e})=>e&&"\n  align-self: center;\n  width: 95%;\n  "),Cme=(0,Ge.default)(Be.default).withConfig({displayName:"resolution_center__Headline",componentId:"sc-15ud6f8-2"})(["color:",";font-weight:400;font-size:20px;align-self:center;margin-top:10px;"],Qe.TEXT_DARK),jme=(0,Ge.default)(ms).withConfig({displayName:"resolution_center__ReportButton",componentId:"sc-15ud6f8-3"})(["margin-top:16px;align-self:center;"]),Ime=(0,Ge.default)(qe.default).withConfig({displayName:"resolution_center__ContentContainer",componentId:"sc-15ud6f8-4"})([""," background-color:",";margin-top:30px;border-top-right-radius:16px;border-top-left-radius:16px;flex-grow:1;"],!1,Qe.GRAY_4),Tme=(0,Ge.default)(qe.default).withConfig({displayName:"resolution_center__TabContainer",componentId:"sc-15ud6f8-5"})(["flex-direction:row;justify-content:space-around;padding:32px 20px 20px 20px;"]),Eme=(0,Ge.default)(qe.default).withConfig({displayName:"resolution_center__CaseContainer",componentId:"sc-15ud6f8-6"})(["border:1px solid ",";background-color:",";padding:14px;box-shadow:0 1px 10px rgba(0,0,0,0.1);"],Qe.GRAY_BORDER,Qe.WHITE),Nme=(0,Ge.default)(Be.default).withConfig({displayName:"resolution_center__NoCaseText",componentId:"sc-15ud6f8-7"})(["font-weight:400;font-size:14px;line-height:19px;color:",";text-align:center;"],Qe.TEXT_DARK),kme=(0,Ge.default)(Be.default).withConfig({displayName:"resolution_center__ErrorMessage",componentId:"sc-15ud6f8-8"})(["text-align:center;margin-top:30px;"]),Rme=()=>{const{isDesktop:e}=uu(),{search:t}=(0,Ks.useLocation)(),n=new URLSearchParams(t),[i,o]=(0,K.useState)(n.get("initial_tab")||C_),{data:a,refetch:s,loading:r,error:l}=(()=>{var e;const{data:t,error:n,refetch:i,loading:o}=(0,Is.useQuery)(ex,{context:{apiVersion:3}});return{data:null===t||void 0===t||null===(e=t.resolutionCenter)||void 0===e?void 0:e.cases,refetch:i,loading:o,error:n}})(),{analytics:{autoTrack:d,autoTrackEnhanced:c}}=lt(),u=(0,Ks.useHistory)(),{isConnected:p}=(0,ta.useNetInfo)(),{canReportResolutionCenterCases:m}=ut(),{canSeeResolutionCenter:f}=pt();(0,K.useEffect)(()=>{s()},[p]);const g=e=>{d(`User clicked on ${e}`,"on Resolution Center Dashboard page"),o(e)};if(!f)return u.push(wi()),null;const h=null===a||void 0===a?void 0:a.filter(e=>"open"===(null===e||void 0===e?void 0:e.state)),_=null===a||void 0===a?void 0:a.filter(e=>"closed"===(null===e||void 0===e?void 0:e.state)),x=i===C_?h:_,y=(e,t)=>{d("User clicked on go to case details",`on Resolution Center Dashboard page / case ${t}`),u.push(i===C_?((e,t)=>"under_review"===e?Li(t):Bi(t))(e,t):Li(t))},v=(0,K.useCallback)(e=>{var t;Cx(e)?u.push(Li(e.id)):jx(e)?u.push(Bi(e.id)):"provider"===(null===(t=e.reporter)||void 0===t?void 0:t.accountType)?u.push(qi(e.id)):[h_.issue_refund,h_.dispute_cancellation_fee,h_.regulatory_compliance].includes(e.topic)?y(e.openState,e.id):c({userFlow:Ha,action:Xa.click,objectName:"Case card",properties:{caseId:e.id,caseTopic:e.topic,caseSupportedInApp:!1}})},[]);return r?(0,X.jsx)(bme,{}):l?(0,X.jsx)(kme,{children:i18n.t("resolution_center.errors.loading_page")}):(0,X.jsxs)(wme,{desktop:e,children:[m&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Cme,{children:i18n.t("resolution_center.headline")}
3592),(0,X.jsx)(jme,{testID:"ResolutionCenterReportProblemCta",onPress:()=>u.push("/provider/resolution_center/report_problem/event"),children:i18n.t("resolution_center.report_a_problem")})]}),(0,X.jsxs)(Ime,{children:[(0,X.jsxs)(Tme,{children:[(0,X.jsx)(gme.default,{value:null===h||void 0===h?void 0:h.length.toString(),title:i18n.t("resolution_center.open_cases"),active:i===C_,onPress:()=>g(C_)}),(0,X.jsx)(gme.default,{value:null===_||void 0===_?void 0:_.length.toString(),title:i18n.t("resolution_center.closed_cases"),active:i===j_,onPress:()=>g(j_)})]}),(0,X.jsx)(Eme,{children:x.length?x.map(e=>(0,X.jsx)(vme,{kase:e,onClick:()=>v(e),activeTab:i},e.id)):(0,X.jsx)(Nme,{children:i18n.t("resolution_center.no_case_text")})})]})]})},Sme=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Rme,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Rme,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},Ame=["icon","title","topic","action","onPress","style"],Pme=(0,Ge.default)(Da.default).withConfig({displayName:"problem_block__Container",componentId:"sc-ipvnj8-0"})(["border:1px solid ",";border-radius:8px;padding:25px;align-self:stretch;"],Qe.GRAY_BORDER),Dme=(0,Ge.default)(qe.default).withConfig({displayName:"problem_block__Header",componentId:"sc-ipvnj8-1"})(["flex-direction:row;justify-content:flex-start;align-items:center;"]),Mme=(0,Ge.default)(qe.default).withConfig({displayName:"problem_block__IconContainer",componentId:"sc-ipvnj8-2"})(["margin-right:10px;"]),Ome=(0,Ge.default)(Be.default).withConfig({displayName:"problem_block__Title",componentId:"sc-ipvnj8-3"})(["flex:1;font-size:15px;font-weight:600;color:",";"],Qe.TEXT_DARK),zme=(0,Ge.default)(qe.default).withConfig({displayName:"problem_block__ActionContainer",componentId:"sc-ipvnj8-4"})(["margin-top:25px;flex-direction:row;justify-content:space-between;align-items:center;"]),Lme=(0,Ge.default)(Be.default).withConfig({displayName:"problem_block__Action",componentId:"sc-ipvnj8-5"})(["font-size:14px;font-weight:400;color:",";"],Qe.TEXT_DARK),qme=e=>{let{icon:t=null,title:n,topic:i,action:o,onPress:a,style:s={}}=e,r=(0,A.default)(e,Ame);const{isDesktop:l}=uu();return(0,X.jsxs)(Pme,Object.assign({testID:`ResolutionCenterReportProblem:${i}`,isDesktop:l,onPress:a,style:Object.assign({},{marginTop:5,marginBottom:5},s)},r,{children:[(0,X.jsxs)(Dme,{children:[!!t&&(0,X.jsx)(Mme,{children:t}),(0,X.jsx)(Ome,{children:n})]}),(0,X.jsxs)(zme,{children:[(0,X.jsx)(Lme,{children:o}),(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",color:Qe.TEXT_DARK,name:"chevron-right"})]})]}))};
3592qme.propTypes={icon:ze().node,title:ze().string.isRequired,topic:ze().string.isRequired,action:ze().string.isRequired,onPress:ze().func.isRequired,style:ze().object};const Bme=qme,Gme=(0,Ge.default)(qe.default).withConfig({displayName:"report_problem__Container",componentId:"sc-n8w8n9-0"})(["padding:12px 16px;"]),Ume=(0,Ge.default)(rf.default).withConfig({displayName:"report_problem__Header",componentId:"sc-n8w8n9-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),$me=(0,Ge.default)(rf.default).withConfig({displayName:"report_problem__Title",componentId:"sc-n8w8n9-2"})(["color:",";font-size:20px;font-weight:400;text-align:center;"],Qe.TEXT_DARK),Fme=(0,Ge.default)(qe.default).withConfig({displayName:"report_problem__Descriptions",componentId:"sc-n8w8n9-3"})(["padding:20px 9px;"]),Hme=(0,Ge.default)(rf.default).withConfig({displayName:"report_problem__Description",componentId:"sc-n8w8n9-4"})(["color:",";font-size:14px;font-weight:400;text-align:center;line-height:21px;"],Qe.TEXT_DARK),Wme=(0,Ge.default)(rf.default).withConfig({displayName:"report_problem__ErrorMessage",componentId:"sc-n8w8n9-5"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),Vme=()=>{const e=(0,Ks.useHistory)(),{relatedId:t}=(0,Ks.useParams)(),{topics:n,loading:i,error:o}=mx(t),{navigateToReportCaseFlow:a,loading:s}=wx();return i?(0,X.jsx)(Aa.default,{}):o?(0,X.jsx)(Wme,{children:i18n.t("ui.error.generic")}):(0,X.jsxs)(Gme,{children:[(0,X.jsx)(Ume,{children:i18n.t("resolution_center.report_problem.header")}),(0,X.jsx)($me,{children:i18n.t("resolution_center.report_problem.title")}),(0,X.jsxs)(Fme,{children:[(0,X.jsx)(Hme,{children:i18n.t("resolution_center.report_problem.description.p1")}),(0,X.jsx)(Hme,{children:i18n.t("resolution_center.report_problem.description.p2")})]}),null===n||void 0===n?void 0:n.map(n=>(0,X.jsx)(Bme,{topic:n,title:i18n.t(`resolution_center.report_problem.to
3592pics.${n}.title`),action:i18n.t(`resolution_center.report_problem.topics.${n}.description`),icon:(0,X.jsx)(r3,{width:40,height:40}),onPress:()=>(n=>{if(!t)return e.push((e=>`/provider/resolution_center/report_problem/event/${e}/related_events`)(n));s||a(n,t)})(n),disabled:s},n))]})},Kme=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Vme,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Vme,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},Yme=(0,Ge.default)(qe.default).withConfig({displayName:"info_panel__Container",componentId:"sc-p562ar-0"})(["align-self:flex-start;width:100%;"]),Xme=(0,Ge.default)(qe.default).withConfig({displayName:"info_panel__LabelContainer",componentId:"sc-p562ar-1"})(["flex-direction:row;align-items:center;"]),Zme=(0,Ge.default)(Be.default).withConfig({displayName:"info_panel__InfoText",componentId:"sc-p562ar-2"})(["font-size:13px;color:",";"," margin-top:4px;line-height:24px;",";"],({color:e})=>e||Qe.TEXT_MEDIUM,({underline:e})=>e&&"text-decoration: underline;",({bold:e})=>"font-weight: "+(e?700:400)),Qme=(0,Ge.default)(pu.default).attrs({source:n(73852)}).withConfig({displayName:"info_panel__QuestionMark",componentId:"sc-p562ar-3"})(["width:20px;height:20px;margin-left:6px;"]),Jme=(0,Ge.default)(Pa.default).attrs({name:"close",size:20}).withConfig({displayName:"info_panel__CloseIcon",componentId:"sc-p562ar-4"})(["position:absolute;right:-20px;top:0;"]),efe=(0,Ge.default)(qe.default).withConfig({displayName:"info_panel__Info",componentId:"sc-p562ar-5"})(["background-color:",";padding:12px;padding-right:30px;margin-top:12px;border-radius:5px;width:100%;"],Qe.VIOLET_4),tfe=({eventId:e,caseId:t,label:n,info:i})=>{const[o,a]=(0,K.useState)(!1),{analytics:{autoTrack:s}}=lt(),r=`on Resolution Center page / event ${e} / case ${t} / issue_refund / resolve_a_case`,l=(0,K.useCallback)(()=>{s(`User clicked on ${o?"close":"open"} info box with label ${n}`,r),a(!o)});return(0,X.jsxs)(Yme,{children:[(0,X.jsxs)(Xme,{children:[(0,X.jsx)(Zme,{children:n}),(0,X.jsx)(ts,{onPress:l,children:(0,X.jsx)(Qme,{})})]}),o&&(0,X.jsxs)(efe,{children:[(0,X.jsx)(ts,{onPress:l,children:(0,X.jsx)(Jme,{})}),(0,X.jsx)(Zme,{color:Qe.TEXT_DARK,children:i}),(0,X.jsx)(ts,{onPress:l,children:(0,X.jsx)(Zme,{underline:!0,bold:!0,children:i18n.t("resolution_center.resolve_case.info_panel.got_it")})})]})]})};tfe.propTypes={eventId:qc.default.string,caseId:qc.default.string,label:qc.default.string.isRequired,info:qc.default.string.isRequired};const nfe=tfe;var ife=n(85385),ofe=n(35439);const afe=(0,Ge.default)(qe.default).withConfig({displayName:"action_buttons__Wrapper",componentId:"sc-nj09lf-0"})(["margin-top:20px;align-self:center;"]),sfe=(0,Ge.default)(ms).withConfig({displayName:"action_buttons__AgreeButton",componentId:"sc-nj09lf-1"})(["margin-top:26px;margin-bottom:12px;"]),rfe=({loading:e,disableContinue:t,handleContinue:n,handleCancel:i})=>(0,X.jsxs)(afe,{children:[e&&(0,X.jsx)(Aa.default,{}),(0,X.jsx)(sfe,{disabled:t,onPress:n,children:i18n.t("resolution_center.resolve_case.disagree_continue")}),(0,X.jsx)(ms,{variant:"secondary",onPress:i,children:i18n.t("resolution_center.resolve_case.disagree_cancel")})]});rfe.propTypes={loading:qc.default.bool,disableContinue:qc.default.bool,handleContinue:qc.default.func,handleCancel:qc.default.func};const lfe=rfe,dfe=(0,Ge.default)(qe.default).withConfig({displayName:"select_reason__DisagreeContainer",componentId:"sc-1o6qbvf-0"})(["max-width:100%;width:100%;margin-top:40px;"]),cfe=(0,Ge.default)(Be.default).withConfig({displayName:"select_reason__Title",componentId:"sc-1o6qbvf-1"})(["font-weight:400;font-size:16px;color:",";margin-bottom:30px;"],Qe.TEXT_DARK),ufe=({caseId:e,eventId:t,validDisagreeReasons:n,handleContinue:i,handleCancel:o})=>{const[a,s]=(0,K.useState)(""),{analytics:{autoTrack:r}}=lt(),l=`on Resolution Center page / event ${t} / case ${e} / issue_refund / disagree_with_customer / add_evidence`,d=e=>{r(`User selected reason ${e}`,l),s(e)};return(0,X.jsxs)(dfe,{children:[(0,X.jsx)(cfe,{children:i18n.t("resolution_center.resolve_case.provider.why.disagreed")}),null===n||void 0===n?void 0:n.map(e=>(0,X.jsx)(ofe.default,{label:i18n.t(`resolution_center.resolve_case.disagreed.select_problem.reason.${e}`),value:e,selectedValue:a,setSelectedValue:d,style:{marginBottom:10}},e)),(0,X.jsx)(lfe,{disableContinue:!a,handleContinue:()=>{i(a)},handleCancel:o})]})};ufe.propTypes={eventId:qc.default.string,caseId:qc.default.string.isRequired,validDisagreeReasons:qc.default.arrayOf(qc.default.string),handleCancel:qc.default.func,handleContinue:qc.default.func};const pfe=ufe,mfe=async(e,t)=>new Promise(async(n,i)=>{if(e){const o=await fetch(e),a=await o.blob();let s=new File([a],t);s.size/1024/1024<5||i(new Error(i18n.t("image_upload_modal.file_size_exceeded"))),n(s)}else i(new Error('No "uri" provided'))});var ffe=n(88883);const gfe=(0,Ge.default)(qe.default).withConfig({displayName:"add_evidence__DisagreeContainer",componentId:"sc-5os3kf-0"})(["max-width:100%;width:100%;margin-top:40px;"]),hfe=(0,Ge.default)(Be.default).withConfig({displayName:"add_evidence__Title",componentId:"sc-5os3kf-1"})(["font-weight:400;font-size:16px;color:",";margin-bottom:26px;
3592"],Qe.TEXT_DARK),_fe=({eventId:e,caseId:t,evidences:n,handleContinue:i,handleCancel:o})=>{const a=n.filter(e=>"provider"===e.reporterAccountType),[s,r]=(0,K.useState)(a),l=`on Resolution Center page / event ${e} / case ${t} / issue_refund / disagree_with_customer / add_evidence`,{toast:{showToastMessage:d},analytics:{autoTrack:c}}=lt(),{loading:u,addsEvidence:p}=sx(),{loading:m,removeEvidence:f}=lx();return(0,X.jsxs)(gfe,{children:[(0,X.jsx)(hfe,{children:i18n.t("resolution_center.resolve_case.add.document.title")}),(0,X.jsx)(ffe.default,{info:i18n.t("resolution_center.event.resolve_case.add_documents.document_picker.info"),onSelect:async e=>{let n=await mfe(e.uri,e.name);var i;i=n,c("User add an evidence",l),p({id:t,evidence:i})},onPreview:e=>{c("User clicked on download my evidence",l),bx(e)},onRemove:e=>{c("User remove an evidence",l),f({id:t,evidenceId:e.id})},selectFileButtonTitle:i18n.t("resolution_center.event.resolve_case.add_documents.document_picker.button_title"),mimeTypes:"*/*",maxSize:2,hideInfo:!1,hideSelectFileButton:!1,hideRemoveIcon:!1,disabledSelectFileButton:(null===s||void 0===s?void 0:s.length)>=5,files:s,onError:e=>{e&&d({message:i18n.t("resolution_center.resolve_case.upload_document.generic_error")})},urlToServices:vi}),(0,X.jsx)(lfe,{disableContinue:u||m,loading:u||m,handleContinue:()=>{i(s)},handleCancel:o})]})};_fe.propTypes={eventId:qc.default.string,caseId:qc.default.string.isRequired,evidences:qc.default.array.isRequired,handleContinue:qc.default.func,handleCancel:qc.default.func};const xfe=_fe;var yfe=n(7496);const vfe=(0,Ge.default)(qe.default).withConfig({displayName:"add_notes__DisagreeContainer",componentId:"sc-1y21bwy-0"})(["max-width:100%;width:100%;margin-top:40px;"]),bfe=(0,Ge.default)(rf.default).withConfig({displayName:"add_notes__Title",componentId:"sc-1y21bwy-1"})(["font-weight:600;font-size:16px;color:",";margin-bottom:5px;"],Qe.TEXT_MEDIUM),wfe=(0,Ge.default)(rf.default).withConfig({displayName:"add_notes__Description",componentId:"sc-1y21bwy-2"})(["font-weight:400;font-size:13px;color:",";margin-bottom:10px;"],Qe.TEXT_MEDIUM),Cfe=(0,Ge.default)(yfe.default).withConfig({displayName:"add_notes__StyledTextarea",componentId:"sc-1y21bwy-3"})(["width:100%;"]),jfe=({eventId:e,caseId:t,reason:n,handleContinue:i,handleCancel:o})=>{const[a,s]=(0,K.useState)(""),r=`on Resolution Center page - event: ${e} - case: ${t} - issue_refund - disagree_with_customer - add_notes`,{toast:{showToastMessage:l},analytics:{autoTrack:d}}=lt(),{loading:c,submitDisagree:u}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(dx);return{submitDisagree:({id:t,reason:n,notes:i})=>e({variables:{id:t,reason:n,notes:i}}),loading:t}})();return(0,X.jsxs)(vfe,{children:[(0,X.jsx)(bfe,{children:i18n.t("resolution_center.event.resolve_case.disagree.add_notes_titles")}),(0,X.jsx)(wfe,{children:i18n.t("resolution_center.event.resolve_case.disagree.add_notes_description")}),(0,X.jsx)(Cfe,{value:a,label:i18n.t("resolution_center.event.resolve_case.disagree.add_notes_label"),onChangeText:s,numberOfLines:15,maxLength:2e3,labelStyle:{fontSize:14}}),(0,X.jsx)(lfe,{loading:c,disableContinue:!a||c,handleContinue:async()=>{var e,o;d("Resolution center - Provider adds notes and submits disagreement",`${r} - notes: ${a}`);const s=await u({id:t,reason:n,notes:a});null!==s&&void 0!==s&&null!==(e=s.data)&&void 0!==e&&null!==(o=e.providerResolutionCenterDisagreesCase)&&void 0!==o&&o.success?(d("User successfully disagreed with customer",r),i()):(d("User could not submit disagree with customer",r),l({message:i18n.t("resolution_center.resolve_case.add_notes.generic_error")}))},handleCancel:o})]})};jfe.propTypes={eventId:qc.default.string,reason:qc.default.string.isRequired,caseId:qc.default.string.isRequired,handleContinue:qc.default.func.isRequired,handleCancel:qc.default.func.isRequired};const Ife=jfe,Tfe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_case_details__DisagreeContainer",componentId:"sc-1p6rljm-0"})(["max-width:100%;width:100%;"]),Efe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_case_details__InfoContainer",componentId:"sc-1p6rljm-1"})(["padding:10px;border:0px solid ",";",";"],Qe.GRAY_BORDER,({noBorder:e})=>!e&&"border-bottom-width: 1px"),Nfe=(0,Ge.default)(rf.default).withConfig({displayName:"provider_case_details__Title",componentId:"sc-1p6rljm-2"})(["font-weight:600;color:",";"],Qe.TEXT_MEDIUM),kfe=(0,Ge.default)(rf.default).withConfig({displayName:"provider_case_details__Desc",componentId:"sc-1p6rljm-3"})(["font-size:13px;color:",";"," "," margin-top:4px;line-height:24px;"],({color:e})=>e||Qe.TEXT_MEDIUM,({bold:e})=>"font-weight: "+(e?700:400),({underline:e})=>e&&"text-decoration: underline;"),Rfe=(0,Ge.default)(gs).withConfig({displayName:"provider_case_details__StyledModal",componentId:"sc-1p6rljm-4"})(["display:flex;align-items:center;margin:0px;padding:0px;"]),Sfe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_case_details__Body",componentId:"sc-1p6rljm-5"})(["padding-top:10px;max-width:",";max-height:",";padding-bottom:","px;flex:1;align-content:center;border-radius:16px;background-color:",";display:flex;position:relative;"],({desktop:e})=>e?"50%":"80%",({desktop:e})=>e?"50%":"40%",({paddingBottom:e})=>e>0?e:0,Qe.WHITE),Afe=(0,Ge.default)(ts).withConfig({displayName:"provider_case_details__CloseButton",componentId:"sc-1p6rljm-6"})(["right:15px;top:15px;padding:7px;width:40px;position:absolute;z-index:99;"]),Pfe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_case_details__Container",componentId:"sc-1p6rljm-7"})(["background-color:white;margin:",";display:flex;align-items:center;flex:1;"],({desktop:e})=>e?"50px 16px 20px 16px":"40px 16px 0px 16px"),Dfe=(0,Ge.default)(rf.default).withConfig({displayName:"provider_case_details__ModalTitle",componentId:"sc-1p6rljm-8"})(["font-size:20px;font-weight:400;margin-bottom:22px;color:",";"],Qe.TEXT_MEDIUM),Mfe=(0,Ge.default)(rf.default).withConfig({displayName:"provider_case_details__ModalDescription",componentId:"sc-1p6rljm-9"})(["font-size:14px;font-weight:400;color:",";flex-grow:1;"],Qe.TEXT_MEDIUM),Ofe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_case_details__ButtonGroup",componentId:"sc-1p6rljm-10"})(["width:80%;height:100%;margin-top:25px;margin-bottom:15px;max-height:110px;justify-content:space-between;align-self:center;"]),zfe=(0,Ge.default)(ts).withConfig({displayName:"provider_case_details__Button",componentId:"sc-1p6rljm-11"})(["flex:1;justify-content:center;align-items:center;max-height:50px;border-radius:8px;background-color:",";",""],({color:e})=>e||Qe.GREEN_SUMMER_GRASS,({disabled:e})=>e&&`background-color: ${Qe.GRAY_2};`),Lfe=(0,Ge.default)(rf.default).withConfig({displayName:"provider_case_details__ButtonText",componentId:"sc-1p6rljm-12"})(["font-weight:600;font-size:16px;line-height:16px;color:",";"],({color:e})=>
3592e||Qe.WHITE),qfe=({reason:e,evidences:t,caseId:n,eventId:i,currentStep:o})=>{const{isConnected:a}=(0,ta.useNetInfo)(),[s,r]=(0,K.useState)(t),[l,d]=(0,K.useState)(),[c,u]=(0,K.useState)(!1),{isDesktop:p}=uu(),{bottom:m}=(0,Re.useSafeAreaInsets)(),{analytics:{autoTrack:f}}=lt(),g=`on Resolution Center page / event ${i} / case ${n} / issue_refund / disagree_with_customer / add_notes`;(0,K.useEffect)(()=>{r(t)},[t]);const{removeEvidence:h,loading:_}=lx(),x=()=>{u(!1)};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Tfe,{children:[o!==Gh&&!!e&&(0,X.jsxs)(Efe,{children:[(0,X.jsx)(Nfe,{children:i18n.t("resolution_center.resolve_case.provider_disagree_reason")}),(0,X.jsx)(kfe,{children:i18n.t(`resolution_center.resolve_case.disagreed.select_problem.reason.${e}`)})]}),![Gh,Uh].includes(o)&&(null===s||void 0===s?void 0:s.length)>0&&(0,X.jsxs)(Efe,{children:[(0,X.jsx)(Nfe,{children:i18n.t("resolution_center.resolve_case.provider_disagree_evidence")}),(0,X.jsx)(ffe.default,{onPreview:e=>{f("User clicked on download my evidence",g),bx(e)},hideSelectFileButton:!0,files:s,onRemove:e=>{f("User remove an evidence",g),d(e),u(!0)},urlToServices:vi})]})]}),c&&(0,X.jsx)(Rfe,{isVisible:!0,onBackdropPress:x,style:{margin:0},desktop:p,children:(0,X.jsxs)(Sfe,{desktop:p,paddingBottom:m,children:[(0,X.jsx)(Afe,{onPress:x,children:(0,X.jsx)(Pa.default,{name:"close",size:20,color:Qe.TEXT_DARK})}),(0,X.jsxs)(Pfe,{desktop:p,children:[(0,X.jsx)(Dfe,{children:i18n.t("resolution_center.resolve_case.remove_evidence_modal.title")}),(0,X.jsx)(Mfe,{children:i18n.t("resolution_center.resolve_case.remove_evidence_modal.description")}),(0,X.jsxs)(Ofe,{children:[_&&(0,X.jsx)(Aa.default,{}),(0,X.jsx)(zfe,{onPress:()=>{h({id:n,evidenceId:l})},disabled:_||!a,children:(0,X.jsx)(Lfe,{children:i18n.t("resolution_center.resolve_case.remove_evidence_modal.continue")})}),(0,X.jsx)(qe.default,{style:{paddingHorizontal:4}}),(0,X.jsx)(zfe,{color:Qe.WHITE,onPress:x,children:(0,X.jsx)(Lfe,{color:Qe.GREEN_SUMMER_GRASS,children:i18n.t("resolution_center.resolve_case.remove_evidence_modal.cancel")})})]})]})]})})]})};qfe.propTypes={reason:qc.default.string,currentStep:qc.default.string,caseId:qc.default.string,eventId:qc.default.string,evidences:qc.default.array};const Bfe=qfe,Gfe=(0,Ge.default)(qe.default).withConfig({displayName:"disagree_with_customer__BottomSection",componentId:"sc-qlrmfw-0"})(["border-top-width:1px;border-color:",";align-items:center;padding-top:2px;padding-bottom:40px;"],Qe.GRAY_4),Ufe=(0,Ge.default)(qe.default).withConfig({displayName:"disagree_with_customer__DisagreeContainer",componentId:"sc-qlrmfw-1"})(["max-width:100%;width:100%;"]),$fe=(0,Ge.default)(ife.default).withConfig({displayName:"disagree_with_customer__StyledProgressBar",componentId:"sc-qlrmfw-2"})(["width:100%;padding-top:20px;"]),Ffe=({kase:e,handleCancelClicked:t})=>{var n,i,o,a,s;const r=e.evidences.filter(e=>"provider"===e.reporterAccountType),[l,d]=(0,K.useState)(r),c=(({topic:e,reason:t})=>{var n;return(null===(n=y_[e])||void 0===n?void 0:n[t])||x_[e]})(e),[u,p]=(0,K.useState)((e=>Object.entries(e).find(([e,t])=>1===t)[0])(c)),m=(0,Ks.useHistory)(),[f,g]=(0,K.useState)(""),h=`on Resolution Center page / event ${null===(n=e.related)||void 0===n?void 0:n.id} / case ${e.id} / issue_refund / disagree_with_customer`,{analytics:{autoTrack:_}}=lt();return(0,X.jsx)(Gfe,{children:(0,X.jsx)(Ufe,{children:(0,X.jsxs)(Ae.KeyboardAvoidingView,{style:{display:"flex",flex:1},keyboardVerticalOffset:void 0,behavior:"padding",enabled:!0,children:[u!==Gh&&(0,X.jsx)(Bfe,{evidences:l,eventId:null===(i=e.related)||void 0===i?void 0:i.id,reason:f,caseId:e.id,currentStep:u}),(0,X.jsx)($fe,{executedSteps:c[u],totalSteps:Object.keys(c).length-1,bgColor:Qe.GREEN_IRISH_BREEZE,fgColor:Qe.GREEN_SUMMER_GRASS,displaySteps:!0}),u===Gh&&(0,X.jsx)(pfe,{caseId:e.id,eventId:null===(o=e.related)||void 0===o?void 0:o.id,validDisagreeReasons:e.validDisagreeReasons,handleContinue:e=>{_(`User clicked on continue after selecting reason ${e}`,h),g(e),p(Uh)},handleCancel:()=>{_("User clicked on cancel from select reason step",h),t()}}),u===Uh&&(0,X.jsx)(xfe,{caseId:e.id,eventId:null===(a=e.related)||void 0===a?void 0:a.id,evidence
3592s:e.evidences,handleContinue:e=>{_("User clicked on continue after adding evidence",h),d(e),p($h)},handleCancel:()=>{_("User clicked on cancel from add evidence step",h),t()}}),u===$h&&(0,X.jsx)(Ife,{caseId:e.id,eventId:null===(s=e.related)||void 0===s?void 0:s.id,reason:f,handleContinue:()=>{_("User clicked on continue after adding notes",h),m.push(Gi(e.id))},handleCancel:()=>{_("User clicked on continue from add notes step",h),t()}})]})})})};Ffe.propTypes={kase:qc.default.object,handleCancelClicked:qc.default.func};const Hfe=Ffe;var Wfe=n(77040);const Vfe=(0,Ge.default)(qe.default).withConfig({displayName:"customer_notes_and_documents__Container",componentId:"sc-1iyxclj-0"})(["padding:20px 10px;border:0px solid ",";border-bottom-width:1px;"],Qe.GRAY_BORDER),Kfe=(0,Ge.default)(ts).withConfig({displayName:"customer_notes_and_documents__Action",componentId:"sc-1iyxclj-1"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),Yfe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_notes_and_documents__Title",componentId:"sc-1iyxclj-2"})(["font-weight:",";color:",";"],"600",Qe.TEXT_MEDIUM),Xfe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_notes_and_documents__LongText",componentId:"sc-1iyxclj-3"})(["font-size:13px;font-style:italic;color:",";margin-top:20px;"],Qe.TEXT_MEDIUM),Zfe=({customerNotes:e,evidences:t,showDisagreeFlow:n,eventId:i,caseId:o})=>{const[a,s]=(0,K.useState)(!n),{analytics:{autoTrack:r}}=lt(),l=`on Resolution Center page / event ${i} / case ${o} / issue_refund / resolve_a_case`;(0,K.useEffect)(()=>{s(!n)},[n]);const d=(0,K.useCallback)(()=>{r(`User clicked on ${a?"close":"open"} - ${i18n.t("resolution_center.resolve_case.customer_notes_and_documents.title")}`,l),s(!a)});return(0,X.jsxs)(Vfe,{children:[(0,X.jsxs)(Kfe,{onPress:d,children:[(0,X.jsx)(Yfe,{children:i18n.t("resolution_center.resolve_case.customer_notes_and_documents.title")}),(0,X.jsx)(Pa.default,{name:a?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.CTA_PURPLE})]}),a&&(0,X.jsxs)(X.Fragment,{children:[!!e&&(0,X.jsx)(Xfe,{children:e}),t.length>0&&(0,X.jsx)(ffe.default,{onPreview:e=>{r("User clicked on download customer evidence",l),bx(e)},hideSelectFileButton:!0,hideRemoveIcon:!0,files:t,urlToServices:vi})]})]})};Zfe.propTypes={showDisagreeFlow:qc.default.bool.isRequired,customerNotes:qc.default.string,evidences:qc.default.array,eventId:qc.default.string,caseId:qc.default.string};const Qfe=Zfe,Jfe=(0,Ge.default)(qe.default).withConfig({displayName:"simple_info__InfoContainer",componentId:"sc-127p1ir-0"})(["padding:10px;border:0px solid ",";",";"],Qe.GRAY_BORDER,({noBorder:e})=>!e&&"border-bottom-width: 1px"),ege=(0,Ge.default)(Be.default).withConfig({displayName:"simple_info__Title",componentId:"sc-127p1ir-1"})(["font-weight:",";color:",";"],"600",Qe.TEXT_MEDIUM),tge=({label:e,value:t})=>(0,X.jsxs)(Jfe,{children:[(0,X.jsx)(ege,{children:e}),(0,X.jsx)(Zme,{children:t})]});tge.propTypes={label:qc.default.string,value:qc.default.string};const nge=tge,ige=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__Container",componentId:"sc-11ld93-0"})(["padding:20px 10px;border:0px solid ",";border-bottom-width:1px;"],Qe.GRAY_BORDER),oge=(0,Ge.default)(ts).withConfig({displayName:"price_breakdown__Action",componentId:"sc-11ld93-1"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),age=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__Title",componentId:"sc-11ld93-2"})(["font-weight:",";color:",";"],"600",Qe.TEXT_MEDIUM),sge=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__Desc",componentId:"sc-11ld93-3"})(["font-size:13px;color:",";"," margin-top:4px;line-height:24px;"],Qe.TEXT_MEDIUM,({bold:e})=>"font-weight: "+(e?700:400)),rge=(0,Ge.default)(qe.default).withConfig({displayName:"price_breakdown__PriceContainer",componentId:"sc-11ld93-4"})(["flex-direction:row;justify-content:space-between;margin-top:6px;"]),lge=(0,Ge.default)(Be.default).withConfig({displayName:"price_breakdown__Info",componentId:"sc-11ld93-5"})(["color:",";font-weight:400;font-size:11px;line-height:15px;padding-top:8px;"],Qe.GREEN_SUMMER_GRASS),dge=({totalPrice:e,commissionPrice:t,refundPrice:n,showDisagreeFlow:i,caseId:o,eventId:a,topic:s})=>{const[r,l]=(0,K.useState)(!i),{analytics:{autoTrack:d}}=lt(),c=`on Resolution Center page / event ${a} / case ${o} / issue_refund / resolve_a_case`;(0,K.useEffect)(()=>
3592{l(!i)},[i]);const u=(0,K.useCallback)(()=>{d(`User clicked on ${r?"close":"open"} - ${i18n.t("resolution_center.resolve_case.price_breakdown.title")}`,c),l(!r)});return(0,X.jsxs)(ige,{children:[(0,X.jsxs)(oge,{onPress:u,children:[(0,X.jsx)(age,{children:i18n.t("resolution_center.resolve_case.price_breakdown.title")}),(0,X.jsx)(Pa.default,{name:r?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.CTA_PURPLE})]}),r&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(rge,{children:[(0,X.jsx)(sge,{children:i18n.t("resolution_center.resolve_case.price_breakdown.total_price")}),(0,X.jsx)(sge,{children:fh(e,{withSymbol:!0})})]}),(0,X.jsxs)(rge,{children:[(0,X.jsx)(sge,{children:i18n.t("resolution_center.resolve_case.price_breakdown.commission_price")}),(0,X.jsx)(sge,{children:fh(t,{withSymbol:!0})})]}),(0,X.jsxs)(rge,{children:[(0,X.jsx)(sge,{children:i18n.t("resolution_center.resolve_case.price_breakdown.refund_price")}),(0,X.jsxs)(sge,{bold:!0,children:[fh(n,{withSymbol:!0}),"*"]})]}),(0,X.jsxs)(lge,{children:["*",i18n.t(`resolution_center.resolve_case.price_breakdown.${s}.info`)]})]})]})};dge.propTypes={showDisagreeFlow:qc.default.bool.isRequired,totalPrice:qc.default.number.isRequired,commissionPrice:qc.default.number.isRequired,refundPrice:qc.default.number.isRequired,eventId:qc.default.string,caseId:qc.default.string,topic:qc.default.string};const cge=dge,uge=(0,Ge.default)(qe.default).withConfig({displayName:"case_details_from_customer__InfoContainer",componentId:"sc-1mf2069-0"})(["padding:10px;border:0px solid ",";",";"],Qe.GRAY_BORDER,({noBorder:e})=>!e&&"border-bottom-width: 1px"),pge=(0,Ge.default)(Be.default).withConfig({displayName:"case_details_from_customer__Title",componentId:"sc-1mf2069-1"})(["font-weight:",";color:",";"],"600",Qe.TEXT_MEDIUM),mge=(0,Ge.default)(Be.default).withConfig({displayName:"case_details_from_customer__Desc",componentId:"sc-1mf2069-2"})(["font-size:13px;color:",";"," "," margin-top:4px;line-height:24px;"],({color:e})=>e||Qe.TEXT_MEDIUM,({bold:e})=>"font-weight: "+(e?700:400),({underline:e})=>e&&"text-decoration: underline;"),fge=({caseId:e,showDisagreeFlow:t,related:n,customerNotes:i,evidences:o,reason:a,topic:s,detail:r})=>{var l,d,c,u,p,m;const f=(0,Ks.useHistory)(),{analytics:{autoTrack:g}}=lt(),h=`on Resolution Center page / event ${e} / case ${null===n||void 0===n?void 0:n.id} / issue_refund / resolve_a_case`,_=C.DateTime.fromISO(null===n||void 0===n?void 0:n.startTime).toLocaleString(C.DateTime.DATE_HUGE),x=(null===n||void 0===n||null===(l=n.totals)||void 0===l?void 0:l.providerToCustomerTotal)-(null===n||void 0===n||null===(d=n.totals)||void 0===d?void 0:d.providerTotal),y=(null===o||void 0===o?void 0:o.length)>0||i,v=null===o||void 0===o?void 0:o.filter(e=>"customer"===(null===e||void 0===e?void 0:e.reporterAccountType)),b=e=>e?i18n.t("label_yes"):i18n.t("label_no");return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(hg.default,{variant:"event_details",title:`${null===n||void 0===n||null===(c=n.customer)||void 0===c?void 0:c.firstname} ${null===n||void 0===n||null===(u=n.customer)||void 0===u?void 0:u.lastname}`,date:_,time:JD(null===n||void 0===n?void 0:n.startTime,null===n||void 0===n?void 0:n.endTime),icon:(0,X.jsx)(Wfe.default,{}),onClick:()=>{g("User clicked on event details card",h),f.push(Ni(null===n||void 0===n?void 0:n.id))},style:{marginLeft:20,marginRight:20,marginBottom:16,shadowColor:Qe.GRAY_LIGHT}}),(0,X.jsxs)(uge,{children:[(0,X.jsx)(pge,{children:i18n.t(`resolution_center.resolve_case.${s}.${a||""}.title`,{defaults:{message:i18n.t(`resolution_center.resolve_case.${s}.title`)}})}),(0,X.jsx)(mge,{children:i18n.t(`resolution_center.resolve_case.${s}.${a||""}.description`,{defaults:{message:i18n.t(`resolution_center.resolve_case.${s}.description`)}})})]}),!!a&&(0,X.jsxs)(uge,{children:[(0,X.jsx)(pge,{children:i18n.t("resolution_center.resolve_case.the_reason")}),(0,X.jsx)(nfe,{caseId:e,eventId:null===n||void 0===n?void 0:n.id,label:i18n.t(`resolution_center.resolve_case.reason.${a}`),info:i18n.t(`resolution_center.resolve_case.reason.description.${a}`)})]}),s===h_.issue_refund&&!(null!==r&&void 0!==r&&r.claimedDuration)&&!(null!==r&&void 0!==r&&r.durationReduction)&&(0,X.jsx)(cge,{showDisagreeFlow:t,totalPrice:null===n||void 0===n||null===(p=n.totals)||void 0===p?void 0:p.providerToCustomerTotal,commissionPrice:x,refundPrice:null===n||void 0===n||null===(m=n.totals)||void 0===m?void 0:m.providerTotal,eventId:n.id,caseId:e,topic:s}),!(null===r||void 0===r||!r.claimedDuration)&&(0,X.jsx)(nge,{label:i18n.t("resolution_center.resolve_case.claimed_duration"),value:eM(r.claimedDuration)}),s===h_.issue_refund&&a===__[h_.issue_refund].quality_complain&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(nge,{label:i18n.t("resolution_center.resolve_case.apartment_size"),value:r.apartmentSize}),(0,X.jsx)(nge,{label:i18n.t("resolution_center.resolve_case.duration_reduction"),value:eM(r.durationReduction)}),(0,X.jsx)(nge,{label:i18n.t("resolution_center.resolve_case.was_cleaner_briefed"),value:b(r.wasCleanerBriefed)}),(0,X.jsx)(nge,{label:i18n.t("resolution_center.resolve_case.was_cleaning_inspected"),value:b(r.wasCleaningInspected)})]}
3592),y&&(0,X.jsx)(Qfe,{showDisagreeFlow:t,customerNotes:i,evidences:v,eventId:n.id,caseId:e})]})};fge.propTypes={caseId:qc.default.string,related:qc.default.shape({customerPricePerHour:qc.default.number,duration:qc.default.number,endTime:qc.default.string,id:qc.default.string,totals:qc.default.shape({providerToCustomerTotal:qc.default.number,providerTotal:qc.default.number}),startTime:qc.default.string,customer:qc.default.shape({firstname:qc.default.string,lastname:qc.default.string})}),showDisagreeFlow:qc.default.bool.isRequired,reason:qc.default.string,topic:qc.default.string,customerNotes:qc.default.string,evidences:qc.default.array,detail:qc.default.shape({claimedDuration:qc.default.number,apartmentSize:qc.default.string,durationReduction:qc.default.number,wasCleanerBriefed:qc.default.bool,wasCleaningInspected:qc.default.bool})};const gge=fge,hge=(0,Ge.default)(Be.default).withConfig({displayName:"confirmation_modal__Title",componentId:"sc-1ivp7su-0"})(["text-align:center;font-weight:400;font-size:20px;color:",";"],Qe.TEXT_DARK),_ge=(0,Ge.default)(Be.default).withConfig({displayName:"confirmation_modal__Description",componentId:"sc-1ivp7su-1"})(["text-align:center;font-weight:400;font-size:14px;color:",";margin-top:8px;"],Qe.TEXT_MEDIUM),xge=(0,Ge.default)(_ge).withConfig({displayName:"confirmation_modal__RefundTotal",componentId:"sc-1ivp7su-2"})(["text-align:center;font-weight:400;font-size:14px;color:",";margin-top:24px;margin-bottom:8px;"],Qe.TEXT_MEDIUM),yge=(0,Ge.default)(Be.default).withConfig({displayName:"confirmation_modal__Total",componentId:"sc-1ivp7su-3"})(["text-align:center;font-size:16px;color:",";font-weight:700;flex:1;"],Qe.TEXT_DARK);function vge({onClose:e,isOpen:t,handleAgreeClicked:n,customerName:i,total:o,topic:a,reason:s=""}){return(0,X.jsx)(dL,{testID:"ResolutionCenterRefundConfirmationModal",isOpen:t,confirmButtonText:i18n.t("resolution_center.resolve_case.confirmation_modal.yes"),closeButtonText:i18n.t("resolution_center.resolve_case.confirmation_modal.no"),onConfirm:n,onClose:e,displayCloseButton:!1,children:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(hge,{children:i18n.t(`resolution_center.resolve_case.confirmation_modal.${a}.${s}.title`,{defaults:{message:i18n.t(`resolution_center.resolve_case.confirmation_modal.${a}.title`)}})}),(0,X.jsx)(_ge,{children:i18n.t(`resolution_center.resolve_case.confirmation_modal.${a}.${s}.desc`,{customerName:i,defaults:{message:i18n.t(`resolution_center.resolve_case.confirmation_modal.${a}.desc`,{customerName:i})}})}),(0,X.jsx)(xge,{children:i18n.t("resolution_center.resolve_case.confirmation_modal.refund_total")}),(0,X.jsx)(yge,{testID:"ResolutionCenterRefundConfirmationModal:Total",children:fh(o,{withSymbol:!0})})]})})}vge.propTypes={onClose:qc.default.func.isRequired,isOpen:qc.default.bool.isRequired,handleAgreeClicked:qc.default.func.isRequired,customerName:qc.default.string.isRequired,total:qc.default.number.isRequired,topic:qc.default.string,reason:qc.default.string};const bge=vge,wge=(0,Ge.default)(Be.default).withConfig({displayName:"refund__Headline",componentId:"sc-1rqe6qg-0"})(["font-weight:400;font-size:14px;line-height:19px;text-align:center;color:",";margin:12px 0;"],Qe.TEXT_DARK),Cge=(0,Ge.default)(qe.default).withConfig({displayName:"refund__InfoContainer",componentId:"sc-1rqe6qg-1"})(["padding:10px;border:0px solid ",";",";"],Qe.GRAY_BORDER,({noBorder:e})=>!e&&"border-bottom-width: 1px"),jge=(0,Ge.default)(Be.default).withConfig({displayName:"refund__Title",componentId:"sc-1rqe6qg-2"})(["font-weight:600;color:",";"],Qe.CTA_SALMON),Ige=(0,Ge.default)(Be.default).withConfig({displayName:"refund__Desc",componentId:"sc-1rqe6qg-3"})(["font-size:13px;color:",";"," "," margin-top:4px;line-height:24px;"],({color:e})=>e||Qe.TEXT_MEDIUM,({bold:e})=>"font-weight: "+(e?700:400),({underline:e})=>e&&"text-decoration: underline;"),Tge=(0,Ge.default)(qe.default).withConfig({displayName:"refund__BottomSection",componentId:"sc-1rqe6qg-4"})(["border-top-width:1px;border-color:",";align-items:center;padding-top:2px;padding-bottom:40px;"],Qe.GRAY_4),Ege=(0,Ge.default)(ms).withConfig({displayName:"refund__AgreeButton",componentId:"sc-1rqe6qg-5"})(["margin-top:26px;margin-bottom:12px;"]),Nge=({kase:e})=>{var t,n,i,o,a;const s=(0,Ks.useHistory)(),{id:r}=(0,Ks.useParams)(),{toast:{showToastMessage:l}}=lt(),{autoTrackEnhanced:d}=mt(),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),{providerResolutionCenterAgreesCase:f,loading:g}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(ox);return{providerResolutionCenterAgreesCase:t=>e({variables:{id:t}}),loading:t}})(),h=()=>{var t;d({userFlow:Ha,action:Xa.close,objectName:"confirmation modal",properties:{event:null===e||void 0===e||null===(t=e.related)||void 0===t?void 0:t.id,case:r}}),m(!1)},_=`${null===e||void 0===e||null===(t=e.related)||void 0===t||null===(n=t.customer)||void 0===n?void 0:n.firstname} ${null===e||void 0===e||null===(i=e.related)||void 0===i||null===(o=i.customer)||void 0===o?void 0:o.lastname}`;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(wge,{children:i18n.t("resolution_center.resolve_case.headline")}),(0,X.jsx)(gge,{related:null===e||void 0===e?void 0:e.related,caseId:null===e||void 0===e?void 0:e.id,showDisagreeFlow:c,customerNotes:null===e||void 0===e?void 0:e.customerNotes,evidence
3592s:null===e||void 0===e?void 0:e.evidences,reason:(null===e||void 0===e?void 0:e.reason)||"",topic:null===e||void 0===e?void 0:e.topic,detail:null===e||void 0===e?void 0:e.detail}),c&&(0,X.jsxs)(Cge,{noBorder:!0,children:[(0,X.jsx)(jge,{children:i18n.t("resolution_center.resolve_case.provider.disagreed")}),(0,X.jsx)(Ige,{children:i18n.t("resolution_center.resolve_case.provider_disagreed.provider.more.details")})]}),!c&&"open"===(null===e||void 0===e?void 0:e.state)&&(0,X.jsxs)(Tge,{children:[(0,X.jsx)(nfe,{eventId:null===e||void 0===e||null===(a=e.related)||void 0===a?void 0:a.id,caseId:null===e||void 0===e?void 0:e.id,label:i18n.t("resolution_center.resolve_case.need_help"),info:i18n.t("resolution_center.resolve_case.refund_info")}),(0,X.jsx)(Ege,{testID:"ResolutionCenterResolveCase:Refund",onPress:()=>{var t;d({userFlow:Ha,action:Xa.open,objectName:"confirmation modal",properties:{event:null===e||void 0===e||null===(t=e.related)||void 0===t?void 0:t.id,case:r}}),m(!0)},disabled:g,loading:g,children:i18n.t("resolution_center.resolve_case.refund_customer_now")}),(0,X.jsx)(ms,{variant:"secondary",onPress:()=>{var t;d({userFlow:Ha,action:Xa.click,objectName:"disagrees button",properties:{event:null===e||void 0===e||null===(t=e.related)||void 0===t?void 0:t.id,case:r}}),u(!0)},disabled:g,children:i18n.t("resolution_center.resolve_case.reject_case")})]}),(0,X.jsx)(bge,{isOpen:p,onClose:h,total:(()=>{var t,n,i;let o=null;var a,s,r,l;if(null!==e&&void 0!==e&&null!==(t=e.detail)&&void 0!==t&&t.durationReduction)o=null===e||void 0===e||null===(a=e.detail)||void 0===a?void 0:a.durationReduction;else if(null!==e&&void 0!==e&&null!==(n=e.detail)&&void 0!==n&&n.claimedDuration){var d,c;o=(null===e||void 0===e||null===(d=e.related)||void 0===d?void 0:d.duration)-(null===e||void 0===e||null===(c=e.detail)||void 0===c?void 0:c.claimedDuration)}return o?Math.round(o*(null===e||void 0===e||null===(s=e.related)||void 0===s||null===(r=s.totals)||void 0===r?void 0:r.providerTotal)/(null===e||void 0===e||null===(l=e.related)||void 0===l?void 0:l.duration)):null===e||void 0===e||null===(i=e.related)||void 0===i?void 0:i.providerTotal})(),customerName:_,handleAgreeClicked:async()=>{var t;d({userFlow:Ha,action:Xa.click,objectName:"agrees button",properties:{event:null===e||void 0===e||null===(t=e.related)||void 0===t?void 0:t.id,case:r}}),h();try{var n,i;const e=await f(r);null!==e&&void 0!==e&&null!==(n=e.data)&&void 0!==n&&null!==(i=n.providerResolutionCenterAgreesCase)&&void 0!==i&&i.success?s.push(Gi(r)):l({message:i18n.t("resolution_center.resolve_case.generic_error")})}catch(o){console.log(o),l({message:i18n.t("resolution_center.resolve_case.generic_error")})}},topic:null===e||void 0===e?void 0:e.topic,reason:null===e||void 0===e?void 0:e.reason}),c&&!!e&&(0,X.jsx)(Hfe,{kase:e,handleCancelClicked:()=>{u(!1)}})]})},kge=(0,Ge.default)(Be.default).withConfig({displayName:"basic_description__Headline",componentId:"sc-1in8568-0"})(["font-weight:400;font-size:14px;line-height:19px;text-align:center;color:",";margin:12px 0;"],Qe.TEXT_DARK),Rge=(0,Ge.default)(qe.default).withConfig({displayName:"basic_description__InfoContainer",componentId:"sc-1in8568-1"})(["padding:10px;border:0px solid ",";",";"],Qe.GRAY_BORDER,({noBorder:e})=>!e&&"border-bottom-width: 1px"),Sge=(0,Ge.default)(Be.default).withConfig({displayName:"basic_description__Title",componentId:"sc-1in8568-2"})(["font-weight:",";color:",";"],"600",Qe.TEXT_MEDIUM),Age=(0,Ge.default)(Be.default).withConfig({displayName:"basic_description__Desc",componentId:"sc-1in8568-3"})(["font-size:13px;color:",";"," "," margin-top:4px;line-height:24px;"],({color:e})=>e||Qe.TEXT_MEDIUM,({bold:e})=>"font-weight: "+(e?700:400),({underline:e})=>e&&"text-decoration: underline;"),Pge=({kase:e})=>{const t=e.topic;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(kge,{children:i18n.t(`resolution_center.resolve_case.${t}.headline`)}),(0,X.jsxs)(Rge,{children:[(0,X.jsx)(Sge,{children:i18n.t(`resolution_center.resolve_case.${t}.title`)}),(0,X.jsx)(Age,{children:i18n.t(`resolution_center.resolve_case.${t}.description`)})]})]})},Dge=(0,Ge.default)(Be.default).withConfig({displayName:"provider_reactivation__Headline",componentId:"sc-1pcwnel-0"})(["font-weight:400;font-size:14px;line-height:19px;text-align:center;color:",";margin:12px 0;"],Qe.TEXT_DARK),Mge=(0,Ge.default)(qe.default).withConfig({displayName:"provider_reactivation__InfoContainer",componentId:"sc-1pcwnel-1"})(["padding:10px;border:0px solid ",";",";"],Qe.GRAY_BORDER,({noBorder:e})=>!e&&"border-bottom-width: 1px"),Oge=(0,Ge.default)(Be.default).withConfig({displayName:"provider_reactivation__Title",componentId:"sc-1pcwnel-2"})(["font-weight:",";color:",";"],"600",Qe.TEXT_MEDIUM),zge=(0,Ge.default)(Be.default).withConfig({displayName:"provider_reactivation__Desc",componentId:"sc-1pcwnel-3"})(["font-size:13px;color:",";"," "," margin-top:4px;line-height:24px;"],({color:e})=>e||Qe.TEXT_MEDIUM,({bold:e})=>"font-weight: "+(e?700:400),({underline:e})=>e&&"text-decoration: underline;"),Lge=({kase:e})=>{const t=e.topic,n=e.state===Fh?Fh:e.closedResolution;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Dge,{children:i18n.t(`resolution_center.resolve_case.${t}.${n}.headline`)}),(0,X.jsxs)(Mge,{children:[(0,X.jsx)(Oge,{children:i18n.t(`resolution_center.resolve_case.${t}.${n}.title`)}),(0,X.jsx)(zge,{children:i18n.t(`resolution_center.resolve_case.${t}.${n}.description`)})]})]})},qge=()=>{const e=(0,Ks.useHistory)(),{id:t}=(0,Ks.useParams)(),{kase:n,loading:i}=ix(t);if(i&&(null===n||void 0===n||!n.id))return(0,X.jsx)(Aa.default,{});if(!i&&(null===n||void 0===n||!n.id))return e.push(wi()),(0,X.jsx)(X.Fragment,{});const o=jx(n);if(!i&&null!==n&&void 0!==n&&n.id&&"under_review"===n.openState&&!o)return e.push(Li(null===n||void 0===n?void 0:n.id)),(0,X.jsx)(X.Fragment,{});const a={[h_.issue_refund]:Nge,[h_.dispute_cancellation_fee]:Nge,[h_.regulatory_compliance]:Pge,[h_.provider_reactivation]:Lge}[n.topic]||Nge;return(0,X.jsx)(a,{kase:n})},Bge=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(qge,{}
3592),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(qge,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0,borderBottomWidth:1,borderColor:Qe.GRAY_BORDER},arrowIconColor:Qe.WHITE})};var Gge=n(72015);const Uge="in_progress",$ge="pending",Fge="completed";class Hge{constructor(e){this.kase=e}generateTimeline(){return"closed"===this.kase.state?this.generateResolvedCaseTimeline():this.generateUnderReviewCaseTimeline()}generateResolvedCaseTimeline(){throw new Error("generateResolvedCaseTimeline method not implemented!")}generateUnderReviewCaseTimeline(){const{filedAt:e,reviewProcessDuration:t,estimatedResolutionAt:n}=this.kase;return[{status:Fge,name:i18n.t("resolution_center.case_details_page.time_line.steps.provider_filed_case"),description:this.formatDate(e)},{title:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewing"),status:Uge,description:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewing_description",{days:Math.round(t/60/60/24)})},{status:$ge,name:i18n.t("resolution_center.case_details_page.time_line.steps.case_resolve_pending"),description:this.formatDate(n)}]}formatDate(e){return C.DateTime.fromISO(e).toFormat("dd LLLL yyyy")}}const Wge="customer_payment_failed",Vge="email_sent_to_customer",Kge="payment_did_not_come_through",Yge="take_action",Xge="case_closed";const Zge=(e,t,n,i)=>({status:e,name:i18n.t(`resolution_center.reported_case_details.customer_payment_failed.time_line.steps.${t}.name`),description:n,iconColor:i}),Qge=(e,t)=>Zge(Fge,e,t,Qe.CTA_GREEN),Jge=e=>{var t;return(null===(t=e.detail)||void 0===t?void 0:t.blocksOffers)??!0},ehe=e=>{var t;return(null===(t=e.detail)||void 0===t?void 0:t.requiresCall)??!0},the="resolution_center.case_details_page.time_line.steps";class nhe extends Hge{get blocksOffers(){return Jge(this.kase)}get requiresCall(){return ehe(this.kase)}get scheduleCallStepKey(){return this.blocksOffers?`${the}.provider_schedule_a_call`:`${the}.provider_schedule_a_call_non_blocking`}get attendCallStepKey(){return this.blocksOffers?`${the}.provider_attend_the_call`:`${the}.provider_attend_the_call_non_blocking`}get attendCallAtStepKey(){return this.blocksOffers?`${the}.provider_attend_the_call_at`:`${the}.provider_attend_the_call_at_non_blocking`}generateResolvedCaseTimeline(){const e={status:Fge,iconColor:Qe.CTA_GREEN},t=[];return this.blocksOffers&&t.push(Object.assign({name:i18n.t(`${the}.account_suspended`)},e)),this.requiresCall&&(t.push(Object.assign({name:i18n.t(this.scheduleCallStepKey)},e)),t.push(Object.assign({name:i18n.t(this.attendCallStepKey)},e))),t.push(Object.assign({name:i18n.t(`${the}.admin_review_the_case`)},e)),t}generateUnderReviewCaseTimeline(){const{openState:e,detail:t}=this.kase,n=[];return this.blocksOffers&&n.push({name:i18n.t(`${the}.account_suspended`),status:Fge}),this.requiresCall&&(n.push({name:i18n.t(this.scheduleCallStepKey),status:"response_required"===e?Uge:Fge}),n.push({name:"under_review"===e?i18n.t(this.attendCallAtStepKey,{date:null!==t&&void 0!==t&&t.callScheduledFor?C.DateTime.fromISO(null===t||void 0===t?void 0:t.callScheduledFor).toFormat("dd LLLL"):""}):i18n.t(this.attendCallStepKey),status:"under_review"===e?Uge:$ge})),n.push({name:i18n.t(`${the}.admin_review_the_case`),status:$ge}),n}}const ihe=e=>{if(Cx(e)){return new nhe(e).generateTimeline()}const{state:t,filedAt:n,closedResolution:i,closedAt:o,disagreedReason:a,reviewProcessDuration:s,estimatedResolutionAt:r}=e,l="closed"===t,d=l?o:r,c=()=>{switch(i){case Vh:return{title:i18n.t("resolution_center.case_details_page.time_line.steps.admin_case_reviewed_title"),description:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewed_customer.refunded")};case Kh:return{title:i18n.t("resolution_center.case_details_page.time_line.steps.admin_case_reviewed_title"),description:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewed_customer.not_refunded")};case Wh:return{title:i18n.t("resolution_center.case_details_page.time_line.steps.provider_case_reviewed_title"),description:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewed_by_provider.refunded")};case Hh:return{title:i18n.t("resolution_center.case_details_page.time_line.steps.automatic_case_reviewed_title"),description:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewed_automatically.customer_refunded")};default:return{title:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewing"),description:i18n.t("resolution_center.case_details_page.time_line.steps.case_reviewing_description",{days:s/60/60/24})}}},u=[{status:Fge,name:i18n.t("resolution_center.case_details_page.time_line.steps.customer_filed_case"),description:C.DateTime.fromISO(n).toFormat("dd LLLL yyyy")}];return a&&u.push({status:Fge,name:i18n.t("resolution_center.case_details_page.time_line.steps.provider_disagreed"),description:i18n.t(`resolution_center.resolve_case.disagreed.select_problem.reason.${a}`)}
3592),u.push({status:l?Fge:Uge,name:c().title,description:c().description}),u.push({status:l?Fge:$ge,name:l?i18n.t("resolution_center.case_details_page.time_line.steps.case_resolved"):i18n.t("resolution_center.case_details_page.time_line.steps.case_resolve_pending"),description:C.DateTime.fromISO(d).toFormat("dd LLLL yyyy")}),u.map(e=>Object.assign({},e,{iconColor:l?Qe.CTA_GREEN:null}))},ohe=(0,Ge.default)(qe.default).withConfig({displayName:"case_next_step__Line",componentId:"sc-159pmcp-0"})([""]),ahe=(0,Ge.default)(Be.default).withConfig({displayName:"case_next_step__Question",componentId:"sc-159pmcp-1"})(["font-size:13px;color:",";font-weight:700;"],Qe.TEXT_MEDIUM),she=(0,Ge.default)(Be.default).withConfig({displayName:"case_next_step__Answer",componentId:"sc-159pmcp-2"})(["font-size:13px;color:",";margin-top:6px;"],Qe.TEXT_MEDIUM),rhe=(0,Ge.default)(ms).attrs({centered:!0,stretched:!0}).withConfig({displayName:"case_next_step__ActionButton",componentId:"sc-159pmcp-3"})(["margin-top:8px;"]),lhe=e=>{var t,n,i,o,a;if("closed"===e.state)return null;if("response_required"===e.openState){const t=(e=>{const t=Jge(e),n=ehe(e);return t?n?"block_and_call":"block_only":n?"call_only":"no_block"})(e),n="block_and_call"===t?"":`.${t}`;return i18n.t(`resolution_center.next_step.${e.topic}.open.response_required${n}.description`,{defaults:{message:i18n.t(`resolution_center.next_step.open.response_required${n}.description`)}})}const s=Jge(e)?"":".non_blocking";return null!==(t=e.detail)&&void 0!==t&&t.callScheduledFor?i18n.t(`resolution_center.next_step.${e.topic}.open.call_scheduled${s}.description`,{date:null!==(n=e.detail)&&void 0!==n&&n.callScheduledFor?C.DateTime.fromISO(null===(i=e.detail)||void 0===i?void 0:i.callScheduledFor).toFormat("dd LLLL"):"",defaults:{message:i18n.t(`resolution_center.next_step.open.call_scheduled${s}.description`,{date:null!==(o=e.detail)&&void 0!==o&&o.callScheduledFor?C.DateTime.fromISO(null===(a=e.detail)||void 0===a?void 0:a.callScheduledFor).toFormat("dd LLLL"):""})}}):i18n.t(`resolution_center.next_step.${e.topic}.open.under_review${s}.description`,{defaults:{message:i18n.t(`resolution_center.next_step.open.under_review${s}.description`)}})},dhe=({kase:e,startPolling:t,stopPolling:n})=>{var i,o;const a=(e=>{if("closed"===e.state){var t,n;const i=Jge(e)?"":".non_blocking";return"valid"===e.closedResolution?i18n.t(`resolution_center.next_step.${e.topic}.closed.valid${i}.title`,{date:null!==(t=e.detail)&&void 0!==t&&t.suspensionEndsAt?C.DateTime.fromISO(e.detail.suspensionEndsAt).toFormat("dd LLLL"):"",defaults:{message:i18n.t(`resolution_center.next_step.closed.valid${i}.title`,{date:null!==(n=e.detail)&&void 0!==n&&n.suspensionEndsAt?C.DateTime.fromISO(e.detail.suspensionEndsAt).toFormat("dd LLLL"):""})}}):i18n.t(`resolution_center.next_step.${e.topic}.closed.rejected${i}.title`,{defaults:{message:i18n.t(`resolution_center.next_step.closed.rejected${i}.title`)}})}return i18n.t(`resolution_center.next_step.${e.topic}.open.title`)})(e),s=lhe(e),[r,l]=(0,K.useState)(!1),d=(0,K.useCallback)(()=>{r&&(n(),l(!1))},[r,n]),c=(0,K.useCallback)(()=>{r||(t(3e4),l(!0))},[r,t]),u=(0,K.useCallback)(()=>{var t;null!==(t=e.detail)&&void 0!==t&&t.scheduleCallUrl&&(bs.default.openURL(e.detail.scheduleCallUrl),c())},[c,null===(i=e.detail)||void 0===i?void 0:i.scheduleCallUrl]);return(0,K.useEffect)(()=>{if(r){const e=setTimeout(()=>{d()},3e5);return()=>clearTimeout(e)}},[r,d]),(0,K.useEffect)(()=>{"under_review"===e.openState&&d()},[e.openState,d]),(0,K.useEffect)(()=>()=>d(),[d]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ohe,{children:[(0,X.jsx)(ahe,{children:a}),s&&(0,X.jsx)(she,{children:s})]}),"response_required"===e.openState&&!(null===(o=e.detail)||void 0===o||!o.scheduleCallUrl)&&(0,X.jsx)(rhe,{onPress:u,children:i18n.t("resolution_center.next_step.schedule_a_call.cta")})]})};
3592dhe.propTypes={kase:ze().shape({state:ze().string.isRequired,topic:ze().string.isRequired,closedResolution:ze().string}),startPolling:ze().func.isRequired,stopPolling:ze().func.isRequired};const che=dhe,uhe=(0,Ge.default)(qe.default).withConfig({displayName:"case_status_timeline__Container",componentId:"sc-1ck2zhy-0"})(["gap:16px;"]),phe=(0,Ge.default)(Be.default).withConfig({displayName:"case_status_timeline__Status",componentId:"sc-1ck2zhy-1"})(["font-size:20px;font-weight:600;color:",";padding:16px 0;border:0 solid ",";border-top-width:1px;border-bottom-width:1px;"],Qe.TEXT_DARK,Qe.GRAY_BORDER),mhe=(0,Ge.default)(qe.default).withConfig({displayName:"case_status_timeline__Line",componentId:"sc-1ck2zhy-2"})(["margin-top:24px;"]),fhe=(0,Ge.default)(Be.default).withConfig({displayName:"case_status_timeline__Question",componentId:"sc-1ck2zhy-3"})(["font-size:13px;color:",";font-weight:700;"],Qe.TEXT_MEDIUM),ghe=(0,Ge.default)(Be.default).withConfig({displayName:"case_status_timeline__Answer",componentId:"sc-1ck2zhy-4"})(["font-size:13px;color:",";margin-top:6px;"],Qe.TEXT_MEDIUM),hhe=({kase:e,startPolling:t,stopPolling:n})=>{const i=Cx(e),o="closed"===e.state?i?i18n.t("resolution_center.case_details_page.time_line.case_status_title.case_closed"):i18n.t("resolution_center.case_details_page.time_line.case_status_title.case_resolved"):"response_required"===e.openState?i18n.t("resolution_center.case_details_page.time_line.case_status_title.response_required"):i18n.t("resolution_center.case_details_page.time_line.case_status_title.under_review");return(0,X.jsxs)(uhe,{testID:`ResolutionCenterCaseDetailsStatus:${e.state}`,children:[(0,X.jsx)(phe,{children:o}),i&&(0,X.jsx)(che,{kase:e,startPolling:t,stopPolling:n}),(0,X.jsx)(Gge.default,{data:ihe(e)}),"closed"!==e.state&&!i&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(mhe,{children:[(0,X.jsx)(fhe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.q1")}),(0,X.jsx)(ghe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.a1")})]}),(0,X.jsxs)(mhe,{children:[(0,X.jsx)(fhe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.q2")}),(0,X.jsx)(ghe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.a2")})]})]})]})};
3592hhe.propTypes={kase:ze().shape({state:ze().string.isRequired}),startPooling:ze().func,stopPolling:ze().func};const _he=hhe,xhe=({event:{startTime:e,duration:t,category:n,customer:{firstname:i,lastname:o}},style:a,onClick:s})=>(0,X.jsx)(hg.default,{variant:tb.CARD_VARIANT.EVENT_DETAILS,title:`${i} ${o}`,date:C.DateTime.fromISO(e).toFormat("MMMM d, yyyy"),time:SC(C.DateTime.fromISO(e),t),icon:(0,X.jsx)(MG.default,{name:n,size:35}),style:a,onClick:s});xhe.propTypes={event:ze().shape({category:ze().string.isRequired,startTime:ze().string.isRequired,duration:ze().number.isRequired,customer:ze().shape({firstname:ze().string.isRequired,lastname:ze().string.isRequired}).isRequired}).isRequired,style:ze().oneOfType([ze().object,ze().array]),onClick:ze().func};const yhe=xhe,vhe=(0,Ge.default)(qe.default).withConfig({displayName:"case_details__Container",componentId:"sc-5nncwa-0"})(["margin-bottom:30px;"]),bhe=(0,Ge.default)(ts).withConfig({displayName:"case_details__Action",componentId:"sc-5nncwa-1"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border:0 solid ",";border-bottom-width:1px;border-top-width:1px;margin-top:50px;"],Qe.GRAY_BORDER),whe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__ActionText",componentId:"sc-5nncwa-2"})(["font-weight:700;color:",";"],Qe.VIOLET_2),Che=(0,Ge.default)(qe.default).withConfig({displayName:"case_details__Line",componentId:"sc-5nncwa-3"})(["padding:10px 20px;border:0px solid ",";border-bottom-width:1px;"],Qe.GRAY_BORDER),jhe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__Label",componentId:"sc-5nncwa-4"})(["font-weight:700;color:",";"],Qe.TEXT_MEDIUM),Ihe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__Value",componentId:"sc-5nncwa-5"})(["font-weight:600;color:",";margin-top:2px;"],Qe.TEXT_MEDIUM),The=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__LongText",componentId:"sc-5nncwa-6"})(["font-size:13px;font-style:italic;color:",";margin-top:7px;margin-bottom:16px;"],Qe.TEXT_MEDIUM),Ehe=(0,Ge.default)(yhe).withConfig({displayName:"case_details__EventDetailsCard",componentId:"sc-5nncwa-7"})(["width:100%;align-self:center;margin:8px 0 24px 0;shadow-color:",";"],Qe.GRAY_LIGHT),Nhe=({kase:{id:e,filedAt:t,customerNotes:n,providerNotes:i,evidences:o,related:{id:a},related:s}})=>{const r=(0,Ks.useHistory)(),{analytics:{autoTrack:l}}=lt(),d=`on Resolution Center page / event ${a} / case ${e} / issue_refund / case_details`,[c,u]=(0,K.useState)(!1),p=(0,K.useCallback)(()=>{l("User clicked on case details from timeline view",d),u(!c)}),m=(0,K.useMemo)(()=>o.filter(e=>"customer"===e.reporterAccountType),[o]),f=(0,K.useMemo)(()=>o.filter(e=>"provider"===e.reporterAccountType),[o]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(bhe,{onPress:p,children:[(0,X.jsx)(whe,{children:i18n.t("resolution_center.case_details_page.actions.toggle_case_details")}),(0,X.jsx)(Pa.default,{name:c?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.CTA_PURPLE})]}),c&&(0,X.jsxs)(vhe,{children:[(0,X.jsxs)(Che,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.case_id")}),(0,X.jsx)(Ihe,{children:e})]}),(0,X.jsxs)(Che,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.date_reported")}),(0,X.jsx)(Ihe,{children:C.DateTime.fromISO(t).toFormat("dd LLLL yyyy")})]}),!!n||(null===m||void 0===m?void 0:m.length)>0&&(0,X.jsxs)(Che,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.customer_note")}),!!n&&(0,X.jsxs)(The,{children:["\u201c",n,"\u201d"]}),(null===m||void 0===m?void 0:m.length)>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.customer_documents")}),(0,X.jsx)(ffe.default,{onPreview:bx,hideSelectFileButton:!0,hideRemoveIcon:!0,files:m,urlToServices:vi})]})]}),(!!i||(null===f||void 0===f?void 0:f.length)>0)&&(0,X.jsxs)(Che,{children:[!!i&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.provider_note")}),(0,X.jsxs)(The,{children:["\u201c",i,"\u201d"]})]}),(null===f||void 0===f?void 0:f.length)>
35920&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.provider_documents")}),(0,X.jsx)(ffe.default,{onPreview:bx,hideSelectFileButton:!0,hideRemoveIcon:!0,files:f,urlToServices:vi})]})]}),(0,X.jsxs)(Che,{children:[(0,X.jsx)(jhe,{children:i18n.t("resolution_center.case_details_page.labels.event_related")}),(0,X.jsx)(Ehe,{event:s,onClick:()=>{l("User clicked on event details card",d),r.push(Ni(a))}})]})]})]})};Nhe.propTypes={kase:ze().shape({id:ze().string.isRequired,filedAt:ze().string,customerNotes:ze().string,providerNotes:ze().string,evidences:ze().arrayOf(ze().shape({reporterAccountType:ze().string.isRequired})),related:ze().shape({id:ze().string.isRequired,startTime:ze().string.isRequired,duration:ze().number.isRequired,customer:ze().shape({firstname:ze().string.isRequired,lastname:ze().string.isRequired})})}).isRequired};const khe=Nhe,Rhe=(0,Ge.default)(qe.default).withConfig({displayName:"guidelines_copy__Content",componentId:"sc-ew71xt-0"})(["padding:16px 0;"]),She=(0,Ge.default)(Be.default).withConfig({displayName:"guidelines_copy__Description",componentId:"sc-ew71xt-1"})(["font-weight:600;font-size:13px;color:",";"],Qe.TEXT_DARK),Ahe=(0,Ge.default)(Be.default).withConfig({displayName:"guidelines_copy__GuidelinesLinkText",componentId:"sc-ew71xt-2"})(["font-weight:700;font-size:13px;color:",";text-decoration:underline;text-decoration-color:",";"," ",""],Qe.GREEN_SUMMER_GRASS,Qe.GREEN_SUMMER_GRASS,"","");function Phe(){return(0,X.jsx)(Rhe,{children:(0,X.jsxs)(She,{children:[i18n.t("resolution_center.case_details_page.guidelines_copy.description"),(0,X.jsx)(Ahe,{onPress:()=>{ru(i18n.t("resolution_center.case_details_page.guidelines_copy.link.url"))},children:i18n.t("resolution_center.case_details_page.guidelines_copy.link.label")})]})})}const Dhe=(0,Ge.default)(qe.default).withConfig({displayName:"case_details__Container",componentId:"sc-1bfkphi-0"})(["padding:15px 0 40px 0;"]),Mhe=(0,Ge.default)(qe.default).withConfig({displayName:"case_details__CaseTypeInfo",componentId:"sc-1bfkphi-1"})(["padding:0 0 16px 0;"]),Ohe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__CaseType",componentId:"sc-1bfkphi-2"})(["font-weight:700;color:",";"],Qe.TEXT_MEDIUM),zhe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__CaseReason",componentId:"sc-1bfkphi-3"})(["font-size:13px;color:",";margin-top:2px;"],Qe.TEXT_MEDIUM),Lhe=()=>{var e;const{id:t}=(0,Ks.useParams)(),n=(0,Ks.useHistory)(),{kase:i,loading:o,startPolling:a,stopPolling:s}=ix(t);if(o)return(0,X.jsx)(xm.ActivityIndicator,{});if(!i)return n.goBack(),null;if("provider"===(null===(e=i.reporter)||void 0===e?void 0:e.accountType))return(0,X.jsx)(Ks.Redirect,{to:qi(t),replace:!0});const r=Cx(i);if("under_review"!==i.openState&&!i.closedResolution&&!i.closedAt&&!r)return(0,X.jsx)(Ks.Redirect,{to:Bi(t),replace:!0});const l=!(null===i||void 0===i||!i.reason)&&i18n.lookup(`resolution_center.topic_reasons.${null===i||void 0===i?void 0:i.reason}`);return(0,X.jsxs)(Dhe,{children:[(0,X.jsxs)(Mhe,{children:[(0,X.jsx)(Ohe,{children:i18n.t(`resolution_center.topics.${i.topic}`)}),l&&(0,X.jsx)(zhe,{children:l})]}),(0,X.jsx)(_he,{kase:i,startPolling:a,stopPolling:s}),(0,X.jsx)(khe,{kase:i}),r&&(0,X.jsx)(Phe,{})]})},qhe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Lhe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Lhe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE})},Bhe=((0,Ge.default)(qe.default).withConfig({displayName:"survey_card__Container",componentId:"sc-1gpluop-0"})(["background-color:",";border-radius:8px;padding:50px 22px 36px 22px;margin:22px 4px;"],Qe.GRAY_4),(0,Ge.default)(Be.default).withConfig({displayName:"survey_card__Title",componentId:"sc-1gpluop-1"})(["color:",";text-align:center;"],Qe.TEXT_MEDIUM),(0,Ge.default)(Be.default).withConfig({displayName:"survey_card__SubTitle",componentId:"sc-1gpluop-2"})(["color:",";text-align:center;margin-top:17px;margin-bottom:25px;padding:0px 20px;"],Qe.TEXT_MEDIUM),(0,Ge.default)(Da.default).withConfig({displayName:"survey_card__ButtonContainer",componentId:"sc-1gpluop-3"})(["align-self:center;"]),(0,Ge.default)($c.default).withConfig({displayName:"survey_card__Button",componentId:"sc-1gpluop-4"})(["background-color:",";border:1px solid ",";border-radius:30px;padding:10px;
3592width:200px;"],Qe.VIOLET_4,Qe.VIOLET_3),(0,Ge.default)(Be.default).withConfig({displayName:"survey_card__ButtonText",componentId:"sc-1gpluop-5"})(["color:",";text-align:center;font-weight:700;"],Qe.VIOLET_2),(0,Ge.default)(qe.default).withConfig({displayName:"response_sent_success_screen__Wrapper",componentId:"sc-1upiky2-0"})(["border:0px solid ",";border-bottom-width:1px;padding-bottom:50px;padding-top:40px;"],Qe.GRAY_BORDER)),Ghe=(0,Ge.default)(qe.default).withConfig({displayName:"response_sent_success_screen__ThumbsUpIconContainer",componentId:"sc-1upiky2-1"})(["padding:20px;border-radius:50px;background-color:",";align-self:center;"],Qe.GREEN_FROSTY_GREEN),Uhe=(0,Ge.default)(pu.default).attrs({source:n(91865)}).withConfig({displayName:"response_sent_success_screen__ThumbsUpIcon",componentId:"sc-1upiky2-2"})(["width:47px;height:42px;"]),$he=(0,Ge.default)(Be.default).withConfig({displayName:"response_sent_success_screen__Title",componentId:"sc-1upiky2-3"})(["font-size:20px;font-weight:600;color:",";text-align:center;margin-top:24px;"],Qe.TEXT_DARK),Fhe=(0,Ge.default)(Be.default).withConfig({displayName:"response_sent_success_screen__CaseID",componentId:"sc-1upiky2-4"})(["font-weight:700;color:",";text-align:center;margin-top:9px;"],Qe.TEXT_MEDIUM),Hhe=(0,Ge.default)(Be.default).withConfig({displayName:"response_sent_success_screen__Description",componentId:"sc-1upiky2-5"})(["color:",";text-align:center;margin:36px 20px;"],Qe.TEXT_DARK),Whe=()=>{const{id:e}=(0,Ks.useParams)(),t=(0,Ks.useHistory)(),{analytics:{autoTrack:n}}=lt(),i=`on Resolution Center page / case ${e} / issue_refund / respose_sent_success_screen`,o=(0,K.useCallback)(()=>{n("User clicked on view case details",i),t.push(Li(e))},[]);return(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(Bhe,{children:[(0,X.jsx)(Ghe,{children:(0,X.jsx)(Uhe,{})}),(0,X.jsx)($he,{children:i18n.t("resolution_center.provider_response.response_sent_success.title")}),(0,X.jsx)(Fhe,{children:i18n.t("resolution_center.provider_response.response_sent_success.case_id",{caseID:e})}),(0,X.jsx)(Hhe,{children:i18n.t("resolution_center.provider_response.response_sent_success.description")}),(0,X.jsx)(ms,{centered:!0,fontSize:"14px",onPress:o,children:i18n.t("resolution_center.provider_response.response_sent_success.actions.view_case_details")})]}),!1]})},Vhe=()=>(0,X.jsx)(Whe,{}),Khe=()=>{const{isDesktop:e}=uu(),t=(0,Ks.useHistory)();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:e?{backgroundColor:Qe.GRAY_4}:{},titleColor:e?Qe.GRAY_0:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Vhe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:e?{backgroundColor:Qe.WHITE,paddingBottom:0}:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:e?Qe.GRAY_0:Qe.WHITE,noContentMargin:!0,onBackClick:()=>t.push(wi())}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(Vhe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,onBackClick:()=>t.push(wi())})},Yhe=(0,Ge.default)(qe.default).withConfig({displayName:"request_holiday_form__Container",componentId:"sc-fn4ksj-0"})(["margin-bottom:10px;display:flex;max-width:600px;align-self:center;width:100%;flex:1;padding-top:45px;"]),Xhe=(0,Ge.default)(Vf.default).withConfig({displayName:"request_holiday_form__Content",componentId:"sc-fn4ksj-1"})(["flex:1;display:flex;padding:0px 20px 30px 20px;"]),Zhe=(0,Ge.default)(lm).withConfig({displayName:"request_holiday_form__Paper",componentId:"sc-fn4ksj-2"})(["margin:15px 0 30px;border-radius:16px;padding:0;"]),Qhe=(0,Ge.default)(Be.default).withConfig({displayName:"request_holiday_form__Label",componentId:"sc-fn4ksj-3"})(["font-size:16px;color:",";margin-top:10px;font-weight:700;opacity:0.8;"],Qe.BLACK),Jhe=(0,Ge.default)(ts).withConfig({displayName:"request_holiday_form__FakeInput",componentId:"sc-fn4ksj-4"})(["padding:19px 30px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),e_e=(0,Ge.default)(Be.default).withConfig({displayName:"request_holiday_form__FakeInputText",componentId:"sc-fn4ksj-5"})(["font-size:14px;"]),t_e=(0,Ge.default)(ts).withConfig({displayName:"request_holiday_form__SubmitButton",componentId:"sc-fn4ksj-6"})(["background-color:",";border-radius:16px;"," max-width:300px;align-self:center;width:80%;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:14px;"],Qe.BLACK,e=>e.disabled&&"opacity: 0.4;"),n_e=(0,Ge.default)(Be.default).withConfig({displayName:"request_holiday_form__SubmitButtonText",componentId:"sc-fn4ksj-7"})(["color:",";font-size:16px;font-weight:700;text-align:center;margin-right:5px;"],Qe.WHITE),i_e=(0,Ge.default)(Be.default).withConfig({displayName:"request_holiday_form__ErrorText",componentId:"sc-fn4ksj-8"})(["margin-top:5px;color ",";text-align:center;font-size:12px;text-transform:capitalize;margin-bottom:10px;"],Qe.CRIMSON_1);const o_e=function({openDatePicker:e,submitAddHoliday:t,selectedStartDate:n,selectedEndDate:i,isRequesting:o,errors:a}){const s=[n,i].filter(e=>!!e).map(e=>e.toFormat("dd/MM/yyyy")).join(" - ");return(0,X.jsx)(Yhe,{children:(0,X.jsxs)(Xhe,{overScrollMode:"never",children:[a.length>0&&(0,X.jsxs)(i_e,{children:["* ",a[0]," "]}),(0,X.jsx)(Qhe,{children:i18n.t("add_holiday.form.label_pick_dates")}),(0,X.jsx)(Zhe,{elevation:1,children:(0,X.jsxs)(Jhe,{onPress:e,children:[(0,X.jsx)(e_e,{children:s||i18n.t("add_holiday.form.label_pick_dates")}),(0,X.jsx)(Pa.default,{name:"calendar",set:"MaterialCommunityIcons",size:18,color:Qe.BLACK})]})}),(0,X.jsxs)(t_e,{onPress:t,disabled:!n,children:[(0,X.jsx)(n_e,{children:i18n.t("add_holiday.form.submit_cta_text")}),o&&(0,X.jsx)(Aa.default,{color:Qe.WHITE})]})]})})},a_e=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you__Container",componentId:"sc-1xjcuu0-0"})(["display:flex;flex:1;padding:20px;"]),s_e=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you__Content",componentId:"sc-1xjcuu0-1"})(["flex:1;"]),r_e=(0,Ge.default)(qe.default).withConfig({displayName:"thank_you__TitleContainer",componentId:"sc-1xjcuu0-2"})(["padding:30px;"]),l_e=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__HintImage",componentId:"sc-1xjcuu0-3"})(["font-size:48px;align-self:center;margin-bottom:10px;"]),d_e=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__Title",componentId:"sc-1xjcuu0-4"})(["font-size:16px;font-weight:700;color:",";text-align:center;"],Qe.TEXT_DARK),c_e=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__SubTitle",componentId:"sc-1xjcuu0-5"})(["color:",";font-size:14px;text-align:center;font-weight:300;margin-top:20px;"],Qe.TEXT_DARK),u_e=(0,Ge.default)(ts).withConfig({displayName:"thank_you__DimissButton",componentId:"sc-1xjcuu0-6"})(["border:1px solid ",";padding:10px 20px;border-radius:16px;margin-top:30px;max-width:300px;align-self:center;width:100%;"],Qe.BLACK),p_e=(0,Ge.default)(Be.default).withConfig({displayName:"thank_you__DimissButtonText",componentId:"sc-1xjcuu0-7"})(["color:",";font-size:16px;font-weight:700;align-self:center;"],Qe.BLACK);const m_e=function({dimiss:e}){return(0,X.jsxs)(a_e,{children:[(0,X.jsx)(s_e,{children:(0,X.jsxs)(r_e,{children:[(0,X.jsx)(l_e,{children:"\ud83d\udc4d"}),(0,X.jsx)(d_e,{children:i18n.t("add_holiday.success_page.title")}),(0,X.jsx)(c_e,{children:i18n.t("add_holiday.success_page.subtitle")})]})}),(0,X.jsx)(u_e,{onPress:e,children:(0,X.jsx)(p_e,{children:i18n.t("add_holiday.success_page.dimiss_cta")})})]})},f_e="step_form",g_e="step_date_picker",h_e="step_affected_customers",__e="step_thank_you";const x_e=function({isOpen:e,onClose:t}){const{getImpactedEvents:n}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(FQ);return{getImpactedEvents:({start:t,finish:n})=>e({variables:{start:t,finish:n}}),loading:t}})(),{createHoliday:i}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(HQ);return{createHoliday:({start:t,finish:n})=>e({variables:{start:t,finish:n}}),creatingHoliday:t}})(),[o,a]=(0,K.useState)(f_e),[s,r]=(0,K.useState)(),[l,d]=(0,K.useState)(),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)([]),[f,g]=(0,K.useState)([]),h=()=>{o===f_e||o===__e?t(s):a(f_e)},_=async()=>{var e;u(!0);const t=await i({start:s,finish:l||s});var n;null!==(e=t.data.createHoliday)&&void 0!==e&&e.success?(g([]),a(__e)):(g(null===(n=t.data.createHoliday)||void 0===n?void 0:n.errors),a(f_e));u(!1)};return(0,X.jsxs)(zw,{isOpen:e,onClose:h,displayCloseButton:o!==g_e,children:[o===f_e&&(0,X.jsx)(o_e,{openDatePicker:()=>a(g_e),submitAddHoliday:_,selectedStartDate:s,selectedEndDate:l,isRequesting:c,errors:f}),o===g_e&&(0,X.jsx)(qee,{saveDates:async(e,t)=>{var i,o,s,l;r(e),d(t);const c=await n({start:e,finish:t});if((null===(i=c.data.previewHoliday)||void 0===i||null===(o=i.impactedEvents)||void 0===o?void 0:o.length)>0){var u;const e=null===(u=c.data.previewHoliday)||void 0===u?void 0:u.impactedEvents.map(e=>({customerInitials:e.customer.initials,customerName:`${e.customer.firstname} ${e.customer.lastname||"--"}`,eventStartTime:e.startTime,eventEndTime:e.endTime})).sort((e,t)=>
3592C.DateTime.fromISO(e.eventStartTime)-C.DateTime.fromISO(t.eventStartTime));m(e),a(h_e)}else if((null===(s=c.data.previewHoliday)||void 0===s||null===(l=s.errors)||void 0===l?void 0:l.length)>0){var p;g(null===(p=c.data.previewHoliday)||void 0===p?void 0:p.errors)}else h()},selectedStartDate:s,selectedEndDate:l,errors:f,cancel:h,minDate:C.DateTime.now().plus({day:3})}),o===h_e&&(0,X.jsx)(nte,{confirm:_,title:i18n.t("add_holiday.warning_affected_customers.title"),subtitle:i18n.t("add_holiday.warning_affected_customers.subtitle_1"),isRequesting:c,customers:p}),o===__e&&(0,X.jsx)(m_e,{dimiss:h})]})},y_e=(0,Ge.default)(lm).withConfig({displayName:"holiday_card__Container",componentId:"sc-1vr0olq-0"})(["border-radius:16px;padding:20px 25px;margin-top:20px;margin-bottom:20px;background:",";align-self:center;width:90%;"],Qe.WHITE),v_e=(0,Ge.default)(rf.default).withConfig({displayName:"holiday_card__Description",componentId:"sc-1vr0olq-1"})(["color:",";margin-top:6px;font-weight:300;"],Qe.BLACK),b_e=(0,Ge.default)(qe.default).withConfig({displayName:"holiday_card__TopContainer",componentId:"sc-1vr0olq-2"})(["flex-direction:row;justify-content:space-between;"]),w_e=(0,Ge.default)(qe.default).withConfig({displayName:"holiday_card__LabelContainer",componentId:"sc-1vr0olq-3"})(["border-radius:18px;padding:5px 10px;margin-bottom:15px;background:",";align-self:center;"],({color:e})=>e),C_e=(0,Ge.default)(rf.default).withConfig({displayName:"holiday_card__LableStyledText",componentId:"sc-1vr0olq-4"})(["font-size:12px;color:",";"],({textColor:e})=>e);const j_e=function({holiday:e,refetch:t}){const{deleteHoliday:n,loading:i}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(WQ);return{deleteHoliday:t=>e({variables:{id:t}}),loading:t}})(),{start:o,finish:a}=e,s=C.DateTime.fromISO(o),r=C.DateTime.fromISO(a),l=Math.round(r.diff(s,"days").days);return(0,X.jsxs)(y_e,{color:Qe.GRAY_BORDER,elevation:1,children:[(0,X.jsxs)(b_e,{children:[(0,X.jsx)(w_e,{color:Qe.GREEN_SUMMER_GRASS,children:(0,X.jsx)(C_e,{textColor:Qe.WHITE,children:i18n.t("add_holiday.holiday_card.label")})}),(0,X.jsxs)(ts,{onPress:async()=>{var i,o;const a=await n(e.id);null!==a&&void 0!==a&&null!==(i=a.data)&&void 0!==i&&null!==(o=i.deleteHoliday)&&void 0!==o&&o.success&&t()},children:[!i&&(0,X.jsx)(Pa.default,{name:"delete",size:25,color:Qe.GREEN_SUMMER_GRASS,set:"MaterialCommunityIcons"}),i&&(0,X.jsx)(Aa.default,{})]})]}),(0,X.jsx)(v_e,{children:i18n.t("holiday_card.description",{duration:l,startDate:s.toFormat("cccc dd MMMM y"),endDate:r.toFormat("cccc dd MMMM y")})})]})},I_e=(0,Ge.default)(qe.default).withConfig({displayName:"month_switcher__Container",componentId:"sc-afrexw-0"})(["flex-direction:row;align-items:center;justify-content:space-between;width:100%;padding:0 22px;max-width:700px;"]),T_e=(0,Ge.default)(qe.default).withConfig({displayName:"month_switcher__Button",componentId:"sc-afrexw-1"})(["width:40px;height:40px;background-color:",";border-radius:5px;display:flex;justify-content:center;align-items:center;"],Qe.VIOLET_4),E_e=(0,Ge.default)(rf.default).withConfig({displayName:"month_switcher__DateText",componentId:"sc-afrexw-2"})(["font-size:18px;font-weight:500;color:",";"],Qe.TEXT_DARK),N_e=({currentMonth:e,onMonthChange:t})=>{const{isDesktop:n}=uu();return(0,X.jsxs)(I_e,{isDesktop:n,children:[(0,X.jsx)(ts,{eventAction:"previous day",eventLabel:"on calendar",onPress:()=>t(e.minus({month:1}).startOf("month")),children:(0,X.jsx)(T_e,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-left",size:18,color:Qe.TEXT_DARK})})}),(0,X.jsx)(E_e,{children:e.toFormat("MMMM y")}),(0,X.jsx)(ts,{eventAction:"next day",eventLabel:"on calendar",onPress:()=>t(e.plus({month:1}).startOf("month")),children:(0,X.jsx)(T_e,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:18,color:Qe.TEXT_DARK})})})]})},k_e=(0,Ge.default)(Aa.default).withConfig({displayName:"content__Loading",componentId:"sc-1vme1i3-0"})(["align-self:center;"]),R_e=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-1vme1i3-1"})(["display:flex;flex:1;margin-bottom:16px;align-items:center;align-self:center;width:100%;padding-top:20px;"]),S_e=(0,Ge.default)(qj.default).withConfig({displayName:"content__ListContainer",componentId:"sc-1vme1i3-2"})(["background:",";margin-bottom:10px;width:100%;margin-top:20px;"],Qe.WHITE),A_e=(0,Ge.default)(qe.default).withConfig({displayName:"content__EmptyContainer",componentId:"sc-1vme1i3-3"})(["justify-content:center;align-items:center;margin-top:25px;"]),P_e=(0,Ge.default)(xm.Text).withConfig({displayName:"content__EmptyText",componentId:"sc-1vme1i3-4"})(["font-weight:300;color:",";"],Qe.BLACK),D_e=(0,Ge.default)(ms).withConfig({displayName:"content__StyledButton",componentId:"sc-1vme1i3-5"})(["align-self:center;"]);function M_e(){return(0,X.jsx)(A_e,{children:(0,X.jsx)(P_e,{children:i18n.t("upcoming_holiday.none_planned")})})}const O_e=(0,Te.observer)(function(){const[e,t]=(0,K.useState)(C.DateTime.now().startOf("month")),[n,i]=(0,K.useState)(!1),{getActiveHolidays:o,fetchingHolidays:a,holidays:s}=$Q();(0,K.useEffect)(()=>{o(e,e.endOf("month"))},[]);const r=()=>{o(e,e.endOf("month"))};return(0,X.jsxs)(R_e,{children:[(0,X.jsx)(N_e,{currentMonth:e,onMonthChange:e=>{t(e),o(e,e.endOf("month"))}}),(0,X.jsxs)(S_e,{children:[a&&(0,X.jsx)(k_e,{}),!a&&(null===s||void 0===s?void 0:s.length)>0&&(null===s||void 0===s?void 0:s.map(e=>(0,X.jsx)(qe.default,{children:(0,X.jsx)(j_e,{holiday:e,refetch:r},e.id)},e.id))),!a&&Br()(s)&&(0,X.jsx)(M_e,{})]}),(0,X.jsx)(D_e,{onPress:()=>i(!0),children:i18n.t("add_holidays.button.text")}),n&&(0,X.jsx)(x_e,{isOpen:n,onClose:e=>{e&&(t(e.startOf("month")),o(e.startOf("month"),e.endOf("month"))),i(!1)}})]})});const z_e=(0,Te.observer)(function(){return(0,X.jsx)(Rf,{title:i18n.t("add_holiday.page_title"),content:()=>(0,X.jsx)(O_e,{}),scrollEnabled:!1,contentContainerStyle:{flex:1,marginTop:12,justifyContent:"center"}})}),L_e=()=>(0,X.jsx)(z_e,{}),q_e=(0,Ge.default)(qe.default).withConfig({displayName:"slider_range_input__SliderContainer",componentId:"sc-zteqdt-0"})(["width:100%;align-items:stretch;margin:24px 0px 0px 0px;padding:0px 20px 0 20px;"]),B_e=(0,Ge.default)(Da.default).withConfig({displayName:"slider_range_input__SliderValueContainer",componentId:"sc-zteqdt-1"})(["width:100%;flex-direction:row;justify-content:center;align-items:center;margin-bottom:10px;"]),G_e=(0,Ge.default)(Be.default).withConfig({displayName:"slider_range_input__SliderValueBox",componentId:"sc-zteqdt-2"})(["width:100px;display:flex;flex-direction:row;justify-content:center;margin:0 22px;padding:10px;border:1px solid ",";border-radius:10px;text-align:center;font-size:16px;font-weight:700;color:",";"],Qe.GREEN_GROWN_UP_GREEN,Qe.TEXT_DARK),U_e=({multiInput:e,value:t,onValueChange:n,minimumValue:i,maximumValue:o,step:a,previewValue:s,trackClickable:r=!0,style:l,enabled:d,onSliderInputPress:c,testID:u})=>{const[p,m]=(0,K.useState)(t),[f,g]=(0,K.useState)(i);return(0,K.useEffect)(()=>{m(t),g(i)},[t,i]),i!==f?null:(0,X.jsxs)(q_e,{style:l,children:[(0,X.jsx)(B_e,{testID:u,disabled:!d,onPress:()=>c&&c(),children:e?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(G_e,{children:s(t[0])}),(0,X.jsx)(Be.default,{children:" - "}),(0,X.jsx)(G_e,{children:s(t[1])})]}):(0,X.jsx)(G_e,{children:s(t)})}
3592),!d&&(0,X.jsx)(TU.Slider,{testID:`${u}_slider_disabled`,value:p,animateTransitions:!0,onSlidingComplete:n,onValueChange:n,minimumValue:f,maximumValue:o,step:a,trackClickable:r,thumbTintColor:Qe.GREEN_SUMMER_GRASS,minimumTrackTintColor:Qe.GREEN_SUMMER_GRASS,maximumTrackTintColor:Qe.VIOLET_5})]})};U_e.propTypes={multiInput:qc.default.bool,value:qc.default.any.isRequired,onValueChange:qc.default.func,minimumValue:qc.default.number,maximumValue:qc.default.number,step:qc.default.number,trackClickable:qc.default.bool,previewValue:qc.default.func.isRequired,style:qc.default.oneOfType([qc.default.array,qc.default.object]),enabled:qc.default.bool,onSliderInputPress:qc.default.func,testID:qc.default.string};const $_e=U_e,F_e=(0,Ge.default)(Da.default).withConfig({displayName:"day__Container",componentId:"sc-1l4b56d-0"})(["background-color:",";width:17px;border-radius:32px;align-items:center;flex:1;padding:12px 0px;"],({active:e})=>e?Qe.CTA_DARK:Qe.WHITE),H_e=(0,Ge.default)(Be.default).withConfig({displayName:"day__DayText",componentId:"sc-1l4b56d-1"})(["color:",";font-size:14px;font-weight:",";"],({active:e,disabled:t})=>e?Qe.WHITE:t?Qe.TEXT_MEDIUM:Qe.TEXT_DARK,({active:e})=>e?700:400),W_e=({active:e,day:t,disabled:n,onPress:i})=>(0,X.jsx)(F_e,{active:e,onPress:i,disabled:e||n,children:(0,X.jsx)(H_e,{active:e,disabled:n,children:t.toFormat("ccc")})});W_e.propTypes={active:qc.default.bool,day:qc.default.object.isRequired,disabled:qc.default.bool.isRequired,onPress:qc.default.func.isRequired};const V_e=W_e,K_e=(0,Ge.default)(qe.default).withConfig({displayName:"week_day_selection__Container",componentId:"sc-1128t4g-0"})(["flex-direction:row;align-items:center;justify-content:center;margin:0px;"]),Y_e=({defaultStartDay:e,selectedDay:t,setSelectedDay:n})=>{const[i,o]=(0,K.useState)([]),a=C.DateTime.now().startOf("day");return(0,K.useEffect)(()=>{o(new Array(7).fill().map((t,n)=>e.plus({days:n})))},[]),(0,X.jsx)(K_e,{children:i.map((e,i)=>(0,X.jsx)(V_e,{day:e,active:e.day===t.day,disabled:e.diff(a,"days").days>15,onPress:()=>n(e)},i))})};Y_e.propTypes={defaultStartDay:qc.default.object.isRequired,selectedDay:qc.default.object.isRequired,setSelectedDay:qc.default.func.isRequired};const X_e=Y_e,Z_e=_t.gql`
3593  query providerFetchWorkingHours {
3594    providerWorkingHours {
3595      id
3596      available
3597      closeTime
3598      day
3599      openTime
3600      valid
3601    }
3602  }
3603`,Q_e=_t.gql`
3604  mutation providerToggleWorkingHours($day: Int!, $available: Boolean!) {
3605    toggleWorkingHours(day: $day, available: $available) {
3606      workingHours {
3607        id
3608        day
3609        available
3610        openTime
3611        closeTime
3612      }
3613      errors
3614    }
3615  }
3616`,J_e=_t.gql`
3617  mutation providerCreateWorkingHour($day: Int!, $openTime: DateTime!, $closeTime: DateTime!) {
3618    createWorkingHour(day: $day, openTime: $openTime, closeTime: $closeTime) {
3619      workingHours {
3620        id
3621        day
3622        available
3623        openTime
3624        closeTime
3625      }
3626      errors
3627    }
3628  }
3629`,exe=_t.gql`
3630  mutation providerUpdateWorkingHour($id: ID!, $openTime: DateTime!, $closeTime: DateTime!) {
3631    updateWorkingHour(id: $id, openTime: $openTime, closeTime: $closeTime) {
3632      workingHours {
3633        id
3634        day
3635        available
3636        openTime
3637        closeTime
3638      }
3639      errors
3640    }
3641  }
3642`,txe=_t.gql`
3643  mutation providerDeleteWorkingHour($id: ID!) {
3644    deleteWorkingHour(id: $id) {
3645      workingHours {
3646        id
3647        day
3648        available
3649        openTime
3650        closeTime
3651      }
3652      errors
3653    }
3654  }
3655`,nxe=(0,Ge.default)(Be.default).withConfig({displayName:"day_selection__SectionTitle",componentId:"sc-1ch6qgv-0"})(["font-size:16px;font-weight:700;color:",";line-height:21px;"],Qe.TEXT_DARK),ixe=(0,Ge.default)(Be.default).withConfig({displayName:"day_selection__SectionSubtitle",componentId:"sc-1ch6qgv-1"})(["font-size:14px;font-weight:400;color:",";line-height:21px;margin-bottom:10px;"],({color:e})=>e||Qe.TEXT_MEDIUM),oxe=(0,Ge.default)(qe.default).withConfig({displayName:"day_selection__StartDaySection",componentId:"sc-1ch6qgv-2"})(["border:0px solid ",";padding-bottom:5px;",";"],Qe.GRAY_3,({hideBorder:e})=>!e&&"border-bottom-width: 0.5px"),axe=(0,Ge.default)(qe.default).withConfig({displayName:"day_selection__WeekDaySelectContainer",componentId:"sc-1ch6qgv-3"})(["margin:4px 11px 19px 11px;"]),sxe=(0,Ge.default)(qe.default).withConfig({displayName:"day_selection__SelectedDate",componentId:"sc-1ch6qgv-4"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),rxe=(0,Ge.default)(Be.default).withConfig({displayName:"day_selection__SelectedDateText",componentId:"sc-1ch6qgv-5"})(["font-size:24px;font-weight:700;color:",";"],Qe.TEXT_DARK),lxe=(0,Ge.default)(Da.default).withConfig({displayName:"day_selection__AddSlot",componentId:"sc-1ch6qgv-6"})(["margin:2px 0 4px;flex-direction:row;align-items:center;"]),dxe=(0,Ge.default)(Be.default).withConfig({displayName:"day_selection__AddSlotText",componentId:"sc-1ch6qgv-7"})(["margin-left:4px;font-size:12px;color:",";"],Qe.GREEN_SUMMER_GRASS),cxe=({isCreatingWorkingHour:e,isUpdatingWorkingHour:t,available:n,selectedDay:i,normalizedSelectedDay:o,resetVariables:a,setSelectedDay:s,onAddNewSlot:r,refetchWorkingHours:l})=>{const{session:{currentUser:d},toast:{showToastMessage:c}}=lt(),{autoTrackEnhanced:u}=mt(),{toggleWorkingHours:p,loading:m}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(Q_e);return{toggleWorkingHours:({day:t,available:n})=>e({variables:{day:t,available:n}}),loading:t,error:n}})();return(0,X.jsxs)(oxe,{hideBorder:!n,children:[(0,X.jsx)(nxe,{children:i18n.t("working_hours.content.section_start_date.title")}),(0,X.jsx)(ixe,{color:Qe.TEXT_DARK,children:i18n.t("working_hours.content.section_start_date.subtitle")}),(0,X.jsx)(axe,{children:(0,X.jsx)(X_e,{defaultStartDay:i,selectedDay:i,setSelectedDay:e=>{s(e),a()}})}),(0,X.jsxs)(sxe,{children:[(0,X.jsx)(rxe,{children:i.toFormat("cccc")}),!e&&!t&&(0,X.jsx)(RU,{testID:"WorkingHours:ToggleDay",value:n,onChange:async()=>{try{var e,t,i;const r=await p({day:o,available:!n});var a,s;if((null===r||void 0===r||null===(e=r.data)||void 0===e||null===(t=e.toggleWorkingHours)||void 0===t||null===(i=t.errors)||void 0===i?void 0:i.length)>0)c({message:null===r||void 0===r||null===(a=r.data)||void 0===a||null===(s=a.toggleWorkingHours)||void 0===s?void 0:s.errors[0]});else u({userFlow:null!==d&&void 0!==d&&d.onboarded?Ba:qa,action:Xa.toggle,objectName:"Working hours",properties:{day:o,available:!n}}),l()}catch{c({message:i18n.t("provider.generic.error")})}},disabled:m})]}),n&&!e&&!t&&(0,X.jsxs)(lxe,{onPress:r,children:[(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"clock-plus-outline",size:18,color:Qe.GREEN_SUMMER_GRASS}),(0,X.jsx)(dxe,{children:i18n.t("working_hours.content.section_start_date.add_another_slot")})]})]})},uxe=C.DateTime.now(),pxe=uxe.set({hour:0,minute:0,second:0}).toMillis(),mxe=uxe.set({hour:23,minute:45,second:0}).toMillis(),fxe=(0,Ge.default)(qe.default).withConfig({displayName:"edit__ButtonGroup",componentId:"sc-mhz5ub-0"})(["margin-top:16px;"]),gxe=(0,Ge.default)(ms).withConfig({displayName:"edit__ButtonSave",componentId:"sc-mhz5ub-1"})(["margin-bottom:8px;"]),hxe=(0,Ge.default)(ms).withConfig({displayName:"edit__ButtonDelete",componentId:"sc-mhz5ub-2"})(["background-color:",";"],Qe.CRIMSON_1),_xe=(0,Ge.default)(Be.default).withConfig({displayName:"edit__Error",componentId:"sc-mhz5ub-3"})(["color:",";text-align:center;margin-bottom:16px;"],Qe.CRIMSON_1),xxe=(0,Ge.default)($_e).withConfig({displayName:"edit__CustomRangeInput",componentId:"sc-mhz5ub-4"})(["margin:0 0 5px;
3655"]),yxe=({normalizedSelectedDay:e,isCreatingWorkingHour:t,isUpdatingWorkingHour:n,selectedSlot:i,resetVariables:o,refetchWorkingHours:a,setSelectedSlot:s,afterChangeWorkingHours:r})=>{const{session:{currentUser:l},toast:{showToastMessage:d}}=lt(),{autoTrackEnhanced:c}=mt(),u=C.DateTime.fromISO(i.openTime).toMillis(),p=C.DateTime.fromISO(i.closeTime).toMillis(),[m,f]=(0,K.useState)([u,p]),[g,h]=(0,K.useState)(!1),[_,x]=(0,K.useState)(i),{createWorkingHour:y,loading:v,error:b}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(J_e);return{createWorkingHour:({day:t,openTime:n,closeTime:i})=>e({variables:{day:t,openTime:n,closeTime:i}}),loading:t,error:n}})(),{updateWorkingHour:w,loading:j,error:I}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(exe);return{updateWorkingHour:({id:t,openTime:n,closeTime:i})=>e({variables:{id:t,openTime:n,closeTime:i}}),loading:t,error:n}})(),{deleteWorkingHour:T,loading:E,error:N}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(txe);return{deleteWorkingHour:t=>e({variables:{id:t}}),loading:t,error:n}})(),k=((e,t)=>{const n=C.DateTime.fromISO(t).diff(C.DateTime.fromISO(e),["hours","minutes","seconds"]);return Math.floor(n.as("minutes"))<=180})(i.openTime,i.closeTime),R=v||j||E,S=!t&&!g||R;return(0,X.jsxs)(X.Fragment,{children:[k&&(0,X.jsx)(_xe,{children:i18n.t("working_hours.minimum_duration_warning")}),(0,X.jsx)(xxe,{multiInput:!0,value:m,onValueChange:e=>{f(e);const n=C.DateTime.fromMillis(e[0]),o=C.DateTime.fromMillis(e[1]);if(!t){const e=C.DateTime.fromISO(_.openTime),t=C.DateTime.fromISO(_.closeTime),i=n.hasSame(e,"hour")&&n.hasSame(e,"minute"),a=o.hasSame(t,"hour")&&o.hasSame(t,"minute");h(!i||!a)}const a=Object.assign({},i,{openTime:n.toISO(),closeTime:o.toISO()});s(a)},minimumValue:pxe,maximumValue:mxe,step:9e5,trackClickable:!1,previewValue:e=>C.DateTime.fromMillis(e).toFormat("hh:mm a")}),(b||I||N)&&(0,X.jsx)(_xe,{children:i18n.t("provider.generic.error")}),(0,X.jsxs)(fxe,{children:[(0,X.jsx)(gxe,{stretched:!0,onPress:t?async()=>{var t,n,s;const u=await y({day:e,openTime:i.openTime,closeTime:i.closeTime});var p,m;(null===u||void 0===u||null===(t=u.data)||void 0===t||null===(n=t.createWorkingHour)||void 0===n||null===(s=n.errors)||void 0===s?void 0:s.length)>0?d({message:null===u||void 0===u||null===(p=u.data)||void 0===p||null===(m=p.createWorkingHour)||void 0===m?void 0:m.errors[0]}):(c({userFlow:null!==l&&void 0!==l&&l.onboarded?Ba:qa,action:Xa.add,objectName:"Working hours",properties:{day:e,openTime:i.openTime,closeTime:i.closeTime}}),x(i),a(),o(),r())}:async()=>{var e,t,n;const a=await w({id:i.id,openTime:i.openTime,closeTime:i.closeTime});var s,u;(null===a||void 0===a||null===(e=a.data)||void 0===e||null===(t=e.updateWorkingHour)||void 0===t||null===(n=t.errors)||void 0===n?void 0:n.length)>0?d({message:null===a||void 0===a||null===(s=a.data)||void 0===s||null===(u=s.updateWorkingHour)||void 0===u?void 0:u.errors[0]}):(c({userFlow:null!==l&&void 0!==l&&l.onboarded?Ba:qa,action:Xa.update,objectName:"Working hours",properties:{id:i.id,openTime:i.openTime,closeTime:i.closeTime}}),o(),r())},disabled:S,children:i18n.t("working_hours.content.cta_save")}),(0,X.jsx)(qe.default,{style:{paddingHorizontal:4}}),n&&(0,X.jsx)(hxe,{stretched:!0,onPress:async()=>{var e,t,n;const s=await T(i.id);var u,p;(null===s||void 0===s||null===(e=s.data)||void 0===e||null===(t=e.deleteWorkingHour)||void 0===t||null===(n=t.errors)||void 0===n?void 0:n.length)>0?d({message:null===s||void 0===s||null===(u=s.data)||void 0===u||null===(p=u.deleteWorkingHour)||void 0===p?void 0:p.errors[0]}):(c({userFlow:null!==l&&void 0!==l&&l.onboarded?Ba:qa,action:Xa.delete,objectName:"Working hours",properties:{id:i.id,openTime:i.openTime,closeTime:i.closeTime}}),a(),o(),r())},disabled:R,children:i18n.t("working_hours.content.cta_delete")}),t&&(0,X.jsx)(ms,{variant:"secondary",stretched:!0,onPress:()=>{x(null),s(null),o()},disabled:S,children:i18n.t("working_hours.content.cta_cancel")})]})]})};const vxe=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.4.8a.9.9 0 00-.9.9v.9h-.9A1.8 1.8 0 00.8 4.4v9a1.8 1.8 0 001.8 1.8h10.8a1.8 1.8 0 001.8-1.8v-9a1.8 1.8 0 00-1.8-1.8h-.9v-.9a.9.9 0 10-1.8 0v.9H5.3v-.9a.9.9 0 00-.9-.9zm0 4.5a.9.9 0 000 1.8h7.2a.9.9 0 100-1.8H4.4z",fill:"#5C8E85"})}))},bxe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-b8pdmp-0"})(["width:100%;flex:1;user-select:none;"]),wxe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Section",componentId:"sc-b8pdmp-1"})(["padding:20px 0px;border:0px solid ",";",";",""],Qe.GRAY_3,({hideBorder:e})=>!e&&"border-bottom-width: 0.5px",({increaseBottomMargin:e})=>e&&"padding-bottom: 50px;"),Cxe=(0,Ge.default)(Be.default).withConfig({displayName:"content__SectionTitle",componentId:"sc-b8pdmp-2"})(["font-size:16px;font-weight:700;color:",";line-height:21px;"],Qe.TEXT_DARK),jxe=(0,Ge.default)(Be.default).withConfig({displayName:"content__SectionSubtitle",componentId:"sc-b8pdmp-3"})(["font-size:14px;font-weight:400;color:",";line-height:21px;margin-bottom:10px;"],({color:e})=>e||Qe.TEXT_MEDIUM),Ixe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-b8pdmp-4"})(["color:",";text-align:center;"],Qe.CRIMSON_1),Txe=(0,Ge.default)(Be.default).withConfig({displayName:"content__OnboardingDescription",componentId:"sc-b8pdmp-5"})(["font-size:14px;font-weight:600;line-height:19px;color:",";margin-bottom:",";"],Qe.TEXT_DARK,({$bottomMargin:e})=>e?"24px":"0"),Exe=(0,Ge.default)($_e).withConfig({displayName:"content__CustomRangeInput",componentId:"sc-b8pdmp-6"})(["margin:0 0 5px;"]),Nxe=({onboarding:e})=>{var t;const{isDesktop:n}=uu(),{days:i,loading:o,error:a,refetch:s}=(()=>{const{data:e,error:t,refetch:n,loading:i}=(0,Is.useQuery)(Z_e);return{refetch:n,days:(null===e||void 0===e?void 0:e.providerWorkingHours)||[],loading:i,error:t}})(),{verticalServices:r}=ut(),l=C.DateTime.now().startOf("week"),[d,c]=(0,K.useState)(l),[u,p]=(0,K.useState)(!0),[m,f]=(0,K.useState)(!1),[g,h]=(0,K.useState)(!1),[_,x]=(0,K.useState)(),{markRequirementAsCompleted:y}=Es(),v=7===d.weekday?0:d.weekday,b=null===(t=i.find(e=>e.day===v))||void 0===t?void 0:t.available,w=()=>{p(!0),f(!1),h(!1)},j=e=>C.DateTime.fromISO(e).toFormat("hh:mm a");return a?(0,X.jsx)(bxe,{children:(0,X.jsx)(Ixe,{children:i18n.t("provider.generic.error")})}):(0,X.jsxs)(bxe,{isDesktop:n,children:[e&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Txe,{$bottomMargin:!r,children:i18n.t("working_hours.onboarding_hint.description")}),r&&(0,X.jsx)(qle,{icon:(0,X.jsx)(vxe,{}),message:i18n.t("working_hours.onboarding_hint.services_hint")})]}),(0,X.jsx)(cxe,{isCreatingWorkingHour:m,isUpdatingWorkingHour:g,selectedDay:d,setSelectedDay:c,resetVariables:w,normalizedSelectedDay:v,available:b,onAddNewSlot:()=>{const e=C.DateTime.fromMillis(pxe).toISO(),t=C.DateTime.fromMillis(mxe).toISO();x({day:d,openTime:e,closeTime:t,id:null,available:null,valid:null}),f(!0),p(!1)},refetchWorkingHours:s}),o&&(0,X.jsx)(Aa.default,{}),!o&&!!b&&(0,X.jsxs)(wxe,{hideBorder:!0,children:[(0,X.jsx)(Cxe,{children:i18n.t("availibility_modal.step_one.section_start_end_time.title")}),(0,X.jsx)(jxe,{children:i18n.t("availibility_modal.step_one.section_start_end_time.subtitle")}),u&&i.filter(({day:e})=>e===v).map(e=>(0,X.jsx)(Exe,{multiInput:!0,value:[e.openTime,e.closeTime],previewValue:j,enabled:u,onSliderInputPress:()=>(e=>{x(e),p(!u),h(!0)})(e)},e.id)),!u&&(0,X.jsx)(yxe,{resetVariables:w,selectedSlot:_,setSelectedSlot:x,refetchWorkingHours:s,normalizedSelectedDay:v,isCreatingWorkingHour:m,isUpdatingWorkingHour:g,afterChangeWorkingHours:()=>{e&&y(jc)}})]})]})};
3655Nxe.propTypes={onboarding:ze().bool.isRequired};const kxe=Nxe,Rxe=({onboarding:e})=>(0,X.jsx)(Rf,{title:i18n.t("working_hours.header.title"),content:()=>(0,X.jsx)(kxe,{onboarding:e}),scrollEnabled:!0});Rxe.propTypes={onboarding:ze().bool.isRequired};const Sxe=Rxe,Axe=()=>{const{loading:e,blocked:t,status:n}=F8(jc);return e?(0,X.jsx)(Rf,{title:i18n.t("working_hours.header.title"),content:()=>(0,X.jsx)(Aa.default,{})}):t?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(Sxe,{onboarding:n!==mc})};var Pxe=n(81640);const Dxe=xt`
3656  query ReferAFriend {
3657    referralProgram {
3658      code
3659      schemeKey
3660      schemeTotalAmount
3661      earnedAmount
3662      pendingAmount
3663      schemeTimeline { key kind completed amount variant }
3664      activeReferrals: referrals(active: true, first: 3) {
3665        totalCount
3666        pageInfo { hasNextPage endCursor }
3667        nodes {
3668          id
3669          active
3670          pendingMilestone
3671          earnedAmount
3672          pendingAmount
3673          totalAmount
3674          referralProvider { firstname }
3675          timeline { key kind completed amount variant }
3676        }
3677      }
3678      pastReferrals: referrals(active: false, first: 3) {
3679        totalCount
3680        pageInfo { hasNextPage endCursor }
3681        nodes {
3682          id
3683          active
3684          pendingMilestone
3685          earnedAmount
3686          pendingAmount
3687          totalAmount
3688          referralProvider { firstname }
3689          timeline { key kind completed amount variant }
3690        }
3691      }
3692    }
3693  }
3694`,Mxe=xt`
3695  query ReferralsList($active: Boolean, $first: Int, $after: String) {
3696    referralProgram {
3697      referrals(active: $active, first: $first, after: $after) {
3698        totalCount
3699        pageInfo { hasNextPage endCursor }
3700        nodes {
3701          id
3702          active
3703          pendingMilestone
3704          earnedAmount
3705          pendingAmount
3706          totalAmount
3707          referralProvider { firstname }
3708          timeline { key kind completed amount variant }
3709        }
3710      }
3711    }
3712  }
3713`,Oxe=({active:e,first:t=20})=>{var n;const{data:i,loading:o,error:a,networkStatus:s,fetchMore:r}=(0,Is.useQuery)(Mxe,{context:{apiVersion:3},notifyOnNetworkStatusChange:!0,variables:{active:e,first:t}}),l=null===i||void 0===i||null===(n=i.referralProgram)||void 0===n?void 0:n.referrals,d=null===l||void 0===l?void 0:l.pageInfo,c=(0,K.useCallback)(()=>{null!==d&&void 0!==d&&d.hasNextPage&&!o&&r({variables:{after:d.endCursor},updateQuery:(e,{fetchMoreResult:t})=>((e,t)=>t?wb()({},e,t,(e,t)=>Array.isArray(e)?[...e,...t]:void 0):e)(e,t)})},[d,o,r]);return{data:null===l||void 0===l?void 0:l.nodes,totalCount:(null===l||void 0===l?void 0:l.totalCount)||0,loading:o&&s!==Pxe.NetworkStatus.fetchMore,loadingMore:s===Pxe.NetworkStatus.fetchMore,error:a,loadMore:c,hasNextPage:!(null===d||void 0===d||!d.hasNextPage)}},zxe=(0,Ge.default)(qe.default).withConfig({displayName:"empty_state__Container",componentId:"sc-1a354tf-0"})(["padding:40px 16px;align-items:center;"]),Lxe=(0,Ge.default)(Be.default).withConfig({displayName:"empty_state__Message",componentId:"sc-1a354tf-1"})(["font-size:14px;color:",";text-align:center;"],Qe.GRAY_2),qxe=({message:e,testID:t="refer_a_friend:emptyState"})=>(0,X.jsx)(zxe,{testID:t,children:(0,X.jsx)(Lxe,{children:e})});const Bxe=function(e){return(0,X.jsxs)(Wu.default,Object.assign({width:"100%",height:void 0,viewBox:"0 0 358 182",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{aspectRatio:358/182}},e,{children:[(0,X.jsxs)(Wu.G,{clipPath:"url(#clip0_5659_38794)",children:[(0,X.jsx)(Wu.Rect,{width:358,height:182,rx:16,fill:"#fff"}),(0,X.jsx)(Wu.Rect,{width:358,height:182,rx:16,fill:"url(#paint0_linear_5659_38794)",fillOpacity:.5}),(0,X.jsxs)(Wu.G,{clipPath:"url(#clip1_5659_38794)",children:[(0,X.jsx)(Wu.Path,{d:"M182.351 47.17a10.332 10.332 0 01-6.418-17.583 10.335 10.335 0 0110.828-2.425c5.893 1.018 9.671 6.036 8.568 11.993a10.358 10.358 0 01-4.342 6.605c-2.568 1.745-5.655 2.018-8.636 1.41z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M186.761 27.159c5.894 1.018 9.671 6.035 8.569 11.992a10.358 10.358 0 01-4.342 6.606c-2.568 1.744-5.655 2.017-8.637 1.41 5.171.452 9.876-3 10.992-8.069a10.33 10.33 0 00-6.582-11.94z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M179.103 43.539c-3.561-1.379-4.41-6.495-3.06-9.733a8.167 8.167 0 014.531-4.473c2.477-.992 4.824-.553 7.095.725 1.967 1.447 3.177 3.004 3.571 5.49a8.19 8.19 0 01-1.471 6.188 8.244 8.244 0 01-5.528 3.304c-1.706.226-3.924-.208-5.138-1.501z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M179.103 43.539c-3.561-1.379-4.41-6.495-3.06-9.733a8.167 8.167 0 014.531-4.473c2.477-.992 4.824-.553 7.095.725 1.967 1.447 3.177 3.004 3.571 5.49a8.19 8.19 0 01-1.471 6.188 8.244 8.244 0 01-5.528 3.304c-1.706.226-3.924-.208-5.138-1.501 1.881.711 3.323 1.211 5.417.939a7.459 7.459 0 004.927-2.808c2.962-3.85 1.569-8.669
3713-2.164-11.417-2.701-1.433-5.518-1.507-8.11.253a7.66 7.66 0 00-3.255 5.05c-.763 4.467 1.148 4.994 3.185 7.983z",fill:"#594E10"}),(0,X.jsx)(Wu.Path,{d:"M153.127 42.595c8.849-2.326 16.136 8.09 11.356 15.79-1.718 2.767-4.256 4.224-7.377 4.918l-.267.058c-2.369.327-4.574.313-6.811-.665a10.582 10.582 0 01-5.635-5.963c-.964-2.567-.908-5.599.273-8.086 1.734-3.655 4.957-4.774 8.461-6.052z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M153.127 42.586c-.698.684-1.766 1.077-2.637 1.555-2.986 1.642-4.701 4.578-4.891 8.014a10.608 10.608 0 002.674 7.668c2.475 2.748 5.158 3.079 8.566 3.53-2.369.326-4.574.312-6.811-.666a10.582 10.582 0 01-5.635-5.963c-.964-2.567-.908-5.599.273-8.086 1.734-3.655 4.957-4.773 8.461-6.052z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M154.499 44.932a8.013 8.013 0 019.094 6.742 8.013 8.013 0 01-6.728 9.105 8.012 8.012 0 11-2.366-15.847z",fill:"#594E10"}),(0,X.jsx)(Wu.Path,{d:"M154.533 45.313a7.63 7.63 0 11-6.42 8.71 7.628 7.628 0 016.42-8.71zM125.338 28.92c1.159.77 1.37 3.117 1.868 4.472.764 2.082 5.049 1.802 5.717 3.476-.77 1.188-3.837.866-5.014 2.372-1.38 1.765-1.156 3.855-2.29 5.61-1.486-1.418-1.179-4.219-2.498-5.675-.984-1.085-4.368-1.153-5.302-2.465.82-1.3 3.667-.817 5.047-2.274 1.515-1.599 1.299-3.773 2.472-5.516z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M178.367 58.229c1.11-.127 3.358.088 3.589 1.494.316 1.912-1.15 3.844-2.174 5.337 1.192 2.45 7.333.41 9.089-.52.91-.48 1.84-1.324 2.652-1.667l.063.26c-.133.555-.478.954-.976 1.208-3.538 1.804-6.01 2.828-9.872 1.992-.47-.18-1.122-.537-1.589-.772-1.769 1.566-3.793 2.922-5.993 3.805-.844.34-3.881 1.41-4.652 1.161.745-.647 3.751-1.16 4.991-1.764 2.117-1.03 3.393-1.953 5.249-3.389a22.233 22.233 0 01-.777-.907c-1.852-2.28-1.975-4.36.4-6.238zm1.03 6.482c1.598-1.956 3.839-5.96-.534-6.157-2.57 1.62-1.819 5.532.261 6.27l.273-.113zM197.139 14.212a11.982 11.982 0 015.813 1.042c2.563 1.138 4.276 2.727 5.295 5.329 2.698.105 9.708 1.41 11.292 3.593-.339.136-.814-.213-1.241-.435-2.26-1.176-4.098-1.791-6.564-2.383-.777-.163-3.14-.379-3.152-.092-.068 1.702-1.317 7.514-4.73 5.07-4.262-3.05.876-5.36 3.965-5.729-1.992-3.625-3.981-5.013-7.973-5.748-.837-.153-1.975-.262-2.705-.647zm7.275 11.997c2.915.02 4.644-3.664 3.187-5.031h-.637c-2.687.554-6.342 2.71-2.55 5.031zM277.355 139.331c.778.809 2.316 2.561 3.135 3.106-2.523 2.085-5.268 4.395-7.676 6.599l-.311.333-1.014.691c.435-3.341 3.563-8.35 5.866-10.729z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M112.906 57.962l-32.01 69.888 33.077 13.87 32.543-69.887-33.61-13.871zM212.669 48.896l28.643 73.064 38.044-15.449-30.275-72.13-36.412 14.515z",fill:"#fff"}),(0,X.jsx)(Wu.Path,{d:"M307.878 114.89c1.307-.495 2.304-.949 3.701-.928l.117.178c.611.726 3.765 10.137 4.358 11.82l-11.433-4.873c.123-.389 4.199-4.129 4.792-4.69l-.125-.075c-.8-.476-.878-.645-1.41-1.432z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M307.878 114.89c1.308-.495 2.305-.949 3.702-.928l.117.178c-.693.704-1.549 1.626-2.283 2.257l-.125-.075c-.8-.476-.878-.645-1.411-1.432z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M311.445 113.673l.597-.225c1.604.354 3.183 2.207 4.318 3.364 5.238 5.344 10.828 10.39 16.302 15.503l45.945 42.86v26.477h-65.548c-2.574-3.069-5.306-6.655-7.878-9.814l-20.509-25.268-9.193-11.276c-1.06-1.284-3.883-4.113-4.125-5.522.435-3.341 3.563-8.35 5.866-10.729.778.809 2.316 2.56 3.135 3.106l.215.193.084-.483c1.983-1.944 5.569-4.801 7.784-6.682l.322-.277a322.043 322.043 0 007.472-6.835l.365-.256c2.308-2.231 5.028-4.517 7.421-6.777l.468-.234c.123-.389 4.2-4.129 4.793-4.69l-.125-.076c-.8-.475-.878-.644-1.411-1.431 1.307-.496 2.305-.95 3.702-.928z",fill:"#B2CCC0"}),(0,X.jsx)(Wu.Path,{d:"M277.355 139.332c.778.809 2.316 2.561 3.136 3.106l.214.193c1.234 3.781 2.705 7.912 3.831 11.679-1.913-.843-10.462-4.267-11.722-5.273l-.31.333-1.015.692c.435-3.342 3.563-8.351 5.866-10.73zM288.574 135.469c1.15 4.059 2.757 7.933 3.909 11.888-1.879-.812-10.401-4.366-11.693-5.206 1.983-1.945 5.569-4.802 7.784-6.682zM288.896 135.188a322.276 322.276 0 007.472-6.836c1.288 3.994 2.722 7.922 4.085 11.889a963.771 963.771 0 00-11.557-5.053zM296.733 128.1c2.308-2.231 5.028-4.517 7.421-6.777 1.272 3.613 2.977 8.018 4.055 11.628a577.86 577.86 0 01-11.476-4.851z",fill:"#B2CCC0"}),(0,X.jsx)(Wu.Path,{d:"M311.581 113.951l.597-.225c1.216 4.143 3.144 8.861 4.613 12.964-4.019-1.621-8.104-3.428-12.096-5.137l4.285 12.142c-3.86-1.551-8.344-3.391-12.13-5.145l4.364 12.448c-4.02-1.732-8.253-3.706-12.271-5.342 1.157 3.053 3.384 9.268 4.211 12.349-3.787-1.406-8.252-3.517-11.946-5.245l4.075 12.241c-3.296-1.274-9.646-4.036-12.778-5.642l.31-.333c1.261 1.006 9.81 4.43 11.722 5.273-1.126-3.767-2.597-7.898-3.83-11.679l.083-.483c1.292.841 9.814 4.394 11.693 5.207-1.151-3.955-2.759-7.829-3.909-11.889l.322-.277a972.745 972.745 0 0111.556 5.053c-1.362-3.966-2.796-7.895-4.084-11.888l.365-.256a580.384 580.384 0 0011.476 4.851c-1.077-3.61-2.782-8.015-4.055-11.628l.469-.234 11.433 4.873c-.594-1.683-3.747-11.094-4.358-11.82l-.117-.178z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M45.74 126.877c2.28.16 3.531.979 5.496 2.093-.848 1.124-1.19 1.584-2.268 2.543 8.231 9.976 16.215 19.678 24.892 29.278 1.508-1.593 2.655-2.944 4.394-4.304 1.177 1.606 7.49 10.619 5.52 12.494-3.037 2.605-6.27 5.758-9.242 8.501l-16.638 15.374c-2.838 2.644-6.874 6.665-9.774 9.037H-21v-29.532c1.763-1.258 3.4-2.423 5.236-3.585.528-.518 1.366-1.038 1.998-1.461-.51-.081.39.324 0 0 .283-.678.412-.469.559-.673.599-.45.037-.03.804-.45-.16-.685.44.371 0 0 .61-.304 1.047-.541 1.628-.895.439-.328.91-.651 1.359-.968l.657-.43c1.032-.568 3.388-2.28 4.442-3.002l9.038-6.19 28.52-19.464c2.88-1.975 9.64-6.875 12.498-8.366z",f
3713ill:"#CEE0E6"}),(0,X.jsx)(Wu.Path,{d:"M78.254 156.599c1.177 1.606 7.49 10.619 5.52 12.494-3.8-1.643-7.143-5.194-9.914-8.189 1.507-1.593 2.655-2.944 4.394-4.305zM45.74 126.99c2.281.16 3.532.979 5.497 2.093-.848 1.124-1.19 1.585-2.268 2.543-1.345-1.416-2.265-2.956-3.23-4.636z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M105.826 86.76c2.691-2.37 6.449-3.112 9.956-2.954 7.707.347 13.353 7.309 12.919 14.825-.141 2.436-.574 3.944-1.332 6.263-.416.395-.494.433-1.019.67.465.013 1.181-.114 1.594-.296 2.51-1.109 9.565-2.084 11.018-4.112 2.018.861 3.469 1.816 4.367 3.985a5.92 5.92 0 01-.04 4.663c-1.059 2.437-3.465 3.575-5.972 3.955 1.518 1.3 2.591 2.333 2.762 4.499a5.568 5.568 0 01-1.396 4.171c-1.23 1.367-2.304 1.67-3.996 2.202-.765.198-2.224.619-2.952.682-.451.104-1.468.306-1.863.436 3.457 1.603 4.421 5.902 1.337 8.259-2.464 1.883-7.633 3.671-10.682 4.706-1.606 2.723-2.304 5.79-5.885 6.751-2.6.697-5.06-.478-7.375-1.535a68.672 68.672 0 01-15.713 6.054c-2.148.543-6.181.754-7.754 1.661-1.462.843-4.123 3.729-5.546 4.952-1.738 1.361-2.886 2.712-4.393 4.305-8.678-9.6-16.661-19.302-24.892-29.278 1.078-.959 1.42-1.419 2.268-2.544 2.472-1.548 6.556-5.584 8.568-7.787 1.196-1.309 2.838-4.823 3.711-6.509a962.33 962.33 0 015.02-9.645c1.428-2.684 2.858-5.462 5.167-7.51 1.576-1.397 16.776-10.545 18.675-11.216 1.803-.638 3.454-.608 5.327-.512.826.168 1.932.428 2.748.5 1.135-.038 4.149.231 5.373.36zm-12.34 14.074c-2.918 7.259-6.888 14.42-10.02 21.624-.889 2.043-2.045 4.529.38 6.152 8.155 3.779 16.639 6.919 24.863 10.559 5.032 2.223 5.914-.794 7.766-4.768-1.705-1.626-1.911-3.426-.935-5.515l.798-.93c1.127-.787 2.396-1.043 3.708-1.376-3.287-1.949-5.134-5.584-1.801-8.481l.402-.409c1.909-1.116 5.242-1.407 6.032-2.299-.165-.892-1.758-1.847-2.18-2.87-.269-.651-.369-1.394-.48-2.087-1.98 1.446-4.416 2.192-6.85 2.331a15.123 15.123 0 01-10.867-3.853c-3.339-3.025-4.113-6.807-4.334-11.027-.97-.002-2.07-.031-3.028 0-1.24.946-2.403 1.784-3.455 2.949z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M91.683 129.821c1.39-.166 12.272 4.375 12.691 5.322-1.159.117-11.774-4.447-12.69-5.322z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M138.962 101.158c2.018.861 3.469 1.816 4.367 3.985a5.92 5.92 0 01-.04 4.663c-1.059 2.437-3.465 3.575-5.971 3.955 1.517 1.3 2.59 2.333 2.761 4.499a5.568 5.568 0 01-1.395 4.17c-1.231 1.368-2.305 1.671-3.997 2.203-.764.198-2.224.619-2.952.682-.451.104-1.468.306-1.863.436 3.457 1.603 4.421 5.902 1.337 8.259-2.464 1.883-7.633 3.671-10.682 4.706l1.025-2.726-.742-1.128 1.28-.256c-.657-.114-1.416-.541-1.486-1.235-3.778.647-4.319-1.016-3.728-4.521l-.11-.777-.428-.115c1.128-.787 2.396-1.043 3.708-1.376-3.287-1.949-5.134-5.584-1.801-8.481l.402-.409c1.909-1.116 5.242-1.407 6.032-2.299-.164-.892-1.758-1.847-2.18-2.87-.269-.651-.369-1.395-.48-2.087l.466-1.384c.267-1.789 2.188-3.177 3.865-3.486.465.013 1.181-.114 1.594-.296 2.511-1.109 9.565-2.084 11.018-4.112z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M118.647 117.694l.525.192-.184.531c.204.288.112.242.391.4-.574.418-.825.494-.949 1.289-.246 1.575.278 4.037 1.62 5.007 1.605-.286 2.727-.543 4.243-1.13.82.303 1.059.211 1.368.822-.12.338-.228.647-.332.99l2.89-.431 1.038-.145c1.022-.111 1.52-.231 2.478.098-.451.103-1.468.306-1.863.436 3.457 1.603 4.421 5.902 1.337 8.259-2.464 1.883-7.633 3.671-10.682 4.706l1.025-2.726-.742-1.128 1.28-.256c-.657-.114-1.416-.541-1.486-1.235-3.778.647-4.319-1.016-3.728-4.521l-.11-.777-.428-.115c1.128-.787 2.396-1.043 3.708-1.377-3.287-1.948-5.134-5.583-1.801-8.48l.402-.409z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M119.283 117.886h-.111l-.184.531c.204.288.112.241.391.399-.574.418-.825.494-.949 1.29-.246 1.575.278 4.037 1.62 5.006 1.605-.286 2.727-.542 4.243-1.13.82.304 1.059.211 1.368.822-.12.338-.228.648-.332.991l2.89-.432 1.038-.145c1.022-.111 1.52-.231 2.478.098-.45.104-1.468.306-1.863.436-1.431-.09-11.683 1.67-13.106 2.322l-.428-.115c1.128-.787 2.396-1.042 3.708-1.376-3.287-1.948-4.732-5.435-1.399-8.331l.636-.366z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M120.046 126.567c-3.287-1.948-5.134-5.584-1.801-8.481-.929 2.099-2.036 5.547.602 6.999 1.746 1.566 4.321.839 6.482.694l2.89-.432 1.038-.145c1.022-.111 1.52-.231 2.478.098-.451.104-1.468.306-1.863.436-1.431-.09-11.683 1.67-13.106 2.322l-.428-.115c1.128-.787 2.396-1.042 3.708-1.376z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M116.875 128.845c1.758-.366 3.552-.761 5.171.276.987.632 1.614 1.767.774 2.824-.63.791-1.27 1.125-2.217 1.422-3.778.647-4.319-1.016-3.728-4.522z",fill:"#FBD4C1"}),(0,X.jsx)(Wu.Path,{d:"M119.527 128.914c3.557-.145 4.235 3.06.518 4.089-.44.076-1.475.242-1.825-.018-1.342-.995-1.464-2.393-.519-3.668.55-.4 1.122-.353 1.826-.403z",fill:"#FBD4C1"}),(0,X.jsx)(Wu.Path,{d:"M122.089 134.616c2.111-.174 3.35-.202 5.433.265-1.372.163-4.933.117-5.642.625l-.329.494-.741-1.128 1.279-.256z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M119.378 118.812c2.969-.441 7.911-1.053 6.482 3.859-.62.665-.78.864-1.568 1.307-1.515.588-2.638.844-4.243 1.13-1.342-.969-1.866-3.431-1.62-5.006.124-.795.375-.872.949-1.29z",fill:"#FBD4C1"}),(0,X.jsx)(Wu.Path,{d:"M121.988 118.975c4.269-.569 5.133 3.727.544 5.149-.76.169-1.929.294-2.729.405a11.081 11.081 0 01-.574-1.595c-.93-3.243-.263-3.713 2.759-3.959z",fill:"#FBD4C1"}),(0,X.jsx)(Wu.Path,{d:"M129.257 125.222c-1.233-3.673 1.762-6.79 4.921-3.852.816.759.631 2.223.508 3.268-.764.199-2.223.62-2.951.
3713683-.959-.329-1.457-.209-2.478-.099z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M122.483 109.042c.229 1.752.425 3.966 1.99 5.035 3.037 2.075 8.332-.627 11.631-.271.124-.006-3.245.812-3.273.821-3.469.994-10.77 1.547-13.661 3.248l-.524-.193c1.908-1.115 5.241-1.406 6.032-2.298-.165-.892-1.758-1.848-2.18-2.87-.269-.652-.37-1.395-.48-2.087l.465-1.385z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M124.293 123.981c.787-.443.948-.643 1.568-1.307.745.807 1.732 1.815 2.358 2.688l-2.89.432c.104-.344.212-.653.332-.991-.309-.611-.548-.519-1.368-.822z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M128.188 107.062c2.5.025 4.44 1.649 3.098 4.285-.748 1.47-2.126 1.824-3.624 2.223-2.829.66-2.891-.156-3.55-2.91a4.34 4.34 0 01.197-2.501c.75-.913 2.678-.95 3.879-1.097z",fill:"#FBD4C1"}),(0,X.jsx)(Wu.Path,{d:"M127.688 107.666c2.268-.253 4.444.781 3.202 3.476-.572 1.242-1.754 1.474-2.97 1.86-.652.15-1.534.444-2.136.051-1.304-.851-1.691-3.681-.86-4.906.707-.402 1.915-.411 2.764-.481z",fill:"#FBD4C1"}),(0,X.jsx)(Wu.Path,{d:"M105.824 86.76c2.691-2.37 6.45-3.112 9.956-2.954 7.708.347 13.354 7.309 12.92 14.825-.141 2.436-.574 3.944-1.332 6.263-.417.395-.495.433-1.019.67-1.678.309-3.599 1.697-3.866 3.486l-.466 1.384c-1.98 1.446-4.416 2.192-6.849 2.331a15.123 15.123 0 01-10.867-3.853c-3.339-3.025-4.114-6.807-4.335-11.027.69-.095 4.749-.76 5.185-.574l.48-.405c-.055.127 2.907-.6 5.335-2.134 2.425-1.53 4.315-3.866 4.268-3.734.872.73-2.793 9.632-2.134 8.536.695 1.229-3.804-.562-3.201.533-3.734-2.134 1.872-2.678 3.192-4.118-.353-.306-.655-.486-1.042-.733.134-1.053.289-1.266.893-2.085 2.96-3.122 2.716-6.29-2.027-6.003-1.177.07-4.011-.058-5.091-.408z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M124.841 92.2c.132-.191.038-.458-.174-.54l-2.632-1.023a.36.36 0 00-.438.141l-4.12 6.246-.085.129a.277.277 0 01-.28.122c-1.112-.156-2.442-.465-3.482-1.076-.16-.097-.244-.268-.138-.422l4.187-6.359c.133-.19.039-.457-.173-.54-.313-.12-2.07-.826-2.501-.97-.307-.108-.44.174-.532.323l-10.142 15.025a.258.258 0 00.119.381l2.865 1.112a.255.255 0 00.306-.1l4.199-6.388a.28.28 0 01.308-.076c1.064.367 2.546.527 3.667.629.191.016.298.22.222.385l-4.514 6.842a.257.257 0 00.119.381l2.834 1.1a.255.255 0 00.306-.1l10.079-15.223z",fill:"#fff"}),(0,X.jsx)(Wu.Path,{d:"M112.596 87.302h-3.699c-.151 0-.303-.013-.452-.039a2.7 2.7 0 00-3.145 2.451l-.101 1.29c-.165 2.097 1.384 3.945 3.475 4.167a3.918 3.918 0 002.341-.485l3.006-1.703a3.063 3.063 0 001.552-2.665v-.039a2.975 2.975 0 00-2.977-2.977z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M90.4 102.719c.854-.593 2.14-1.587 3.083-1.883-2.917 7.259-6.887 14.419-10.02 21.623-.888 2.043-2.044 4.529.382 6.153 8.154 3.779 16.638 6.918 24.862 10.558 5.032 2.223 5.914-.794 7.766-4.768-1.705-1.625-1.911-3.426-.935-5.514l.798-.93.428.115.11.776c-.591 3.506-.05 5.169 3.728 4.522.07.693.829 1.121 1.486 1.235l-1.28.256.741 1.128-1.024 2.726c-1.606 2.722-2.304 5.79-5.885 6.751-2.6.697-5.06-.478-7.375-1.536-5.445-2.536-11.328-4.701-16.853-7.139-2.717-1.199-6.132-2.34-8.632-3.967-.358-.232-1.483-1.976-1.782-2.43l-.146-.397c.234-1.266-.761-3.263-.205-5.224 1.424-5.016 5.362-10.596 6.696-15.472.03-1.018.506-3.16.776-4.16.398-.573.801-.973 1.28-1.477.53-.367 1.323-.821 1.891-1.17l.11.224z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M86.343 109.305l.36-.001c-.443 2.538-3.513 8.235-4.69 10.697-2.095 4.377-3.912 8.555 1.822 11.143 5.559 2.528 11.29 4.824 16.926 7.199 3.074 1.073 6.502 3.132 9.581 3.936 3.821.998 7.2-2.908 7.874-6.338.221-1.129-.802-1.185-1.743-1.536-1.705-1.625-1.911-3.425-.935-5.514l.798-.93.428.115.11.777c-.591 3.505-.05 5.168 3.728 4.521.07.694.829 1.121 1.486 1.235l-1.28.256.741 1.128-1.024 2.726c-1.606 2.723-2.304 5.79-5.885 6.751-2.6.697-5.06-.478-7.375-1.536-5.445-2.536-11.328-4.701-16.853-7.139-2.717-1.199-6.132-2.34-8.632-3.967-.358-.232-1.483-1.976-1.782-2.43l-.146-.397c.234-1.265-.761-3.263-.205-5.224 1.424-5.015 5.362-10.596 6.696-15.472z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M116.338 127.95l.428.115.11.776c-.591 3.506-.05 5.169 3.728 4.522.07.693.829 1.121 1.486 1.235l-1.28.256c-1.877-.064-2.495-.051-4.153-.907-1.472-2.011-1.324-2.64-1.117-5.067l.798-.93z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M88.4 103.663c.531-.367 1.323-.821 1.892-1.17l.11.225-1.42 1.168c-.107 1.728-.618 2.718-1.911 3.91l
3713-.366 1.503-.36.001c.03-1.018.506-3.159.776-4.16.398-.573.801-.973 1.28-1.477zM96.793 97.435c4.255-.017 8.921-.375 12.856-2.228 1.058-.498 4.004-2.366 4.857-2.57l-3.006 2.135-3.201 1.6-3.147.93-5.185.575c-.97-.002-2.07-.032-3.028 0l-1.884 1.463c-.547.453-1.071.932-1.57 1.486-.943.296-2.23 1.29-3.083 1.883l-.11-.225c2.148-1.454 4.171-3.638 6.501-5.049zM80 130.396c-.542 1.163-1.946 4.031-2.987 4.651-.004-.676 2.326-4.27 2.84-5.048l.146.397z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M242.855 80.427a8.105 8.105 0 01-6.797-8.934 8.106 8.106 0 0116.152 1.204 8.104 8.104 0 01-9.355 7.73z",fill:"#5C8E85"}),(0,X.jsx)(Wu.Path,{d:"M258.39 79.792c.68-.013.746.12 1.181.543.16.6.144.353-.094 1.054-1.325 1.155-17.062 6.708-19.804 7.73-.41.045-.535-.083-.892-.295-.392-.678-.343-.388-.244-1.096.648-.913 17.619-7.085 19.853-7.936zM256.053 84.457c.488.1.568.214.97.538.231.855-.009 1.195-.841 1.589-3.696 1.75-8.039 3.174-11.848 4.573-.399-.073-.617-.293-.945-.54-.084-.258-.174-.372-.07-.63.583-1.456 10.687-4.699 12.734-5.53z",fill:"#D9C9C4"}),(0,X.jsx)(Wu.Path,{d:"M266.519 108.903c.184.023.184.062.363.179-.65.926-10.742 4.478-12.416 5.059l-.274-.183.17-.333c1.097-.705 10.68-4.323 12.157-4.722z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M247.971 42.796c1.28.363 2.031 1.722 1.266 2.885-.595-.37-.355-.26-1.188-.28-.65-.501-.509-.268-.775-.918.139-.867.152-.995.697-1.687z",fill:"#D9C9C4"}),(0,X.jsx)(Wu.Path,{d:"M247.342 37.833c.474.041.642.145.915.492l-.065.277c-.521.644-.983.733-1.767 1.01-.631-.012-.422.077-.898-.255l.058-.425c.521-.73.896-.793 1.757-1.099z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M244.373 38.775c.562.275.507.459.558.985-.41.794-.168.56-.88.965-.599-.424-.781-.498-.968-1.09.464-.624.488-.494 1.29-.86z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M242.259 39.911c.23-.017.306.064.55.176.287 1.25-.499 1.445-1.481 1.664-.3.067-.142.062-.478-.096.187-.622.925-1.252 1.409-1.744z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M227.196 40.6c1.483-.86 4.588-2.158 6.295-2.698 3.682-1.166 7.989-3.258 11.646-4.231 6.342-1.69 8.081 3.832 9.971 8.508l4.046 10.06c.741 1.839 1.85 4.732 2.776 6.387l.176-2.155c.059-1.76 1.651-5.131 3.661-5.027-.777 2.123-.328 5.099 1.723 6.283-1.124-2.715-2.365-2.722-1.448-6.205 1.233.397 4.092 5.046 4.718 6.405 2.004 3.128 4.186 5.101 6.42 7.89 2.35 3.003 4.471 6.14 6.941 9.053 1.979 2.29 4.252 4.25 5.915 6.81 1.29 1.985 1.901 4.21 2.802 6.388 2.242 5.408 3.645 12.586 6.512 17.606 1.733 3.032 6.248 6.432 8.527 9.214.533.788.611.956 1.411 1.432l.125.075c-.593.561-4.669 4.301-4.792 4.69l-.469.234c-2.392 2.26-5.112 4.546-7.421 6.777l-.365.256a322.276 322.276 0 01-7.472 6.836l-.321.277c-2.215 1.88-5.802 4.737-7.785 6.682l-.083.482-.215-.193c-.82-.545-2.357-2.296-3.136-3.106-1.951-1.814-4.19-5.169-6.27-6.563-1.602-1.075-6.242-1.644-8.291-2.392-4.285-1.563-10.459-4.453-14.22-7.01-6.658 2.692-9.624 1.065-12.176-5.32-.203-1.199-.994-2.441-1.118-3.853.784-.038 1.771-.166 2.47.134l.32.325.176-.071.
3713134-.506c.552-.471 1.31-1.175 1.928-1.482 3.271 9.475 5.843 5.99 13.504 3.192a517.636 517.636 0 0013.148-4.932c2.465-.936 4.892-1.844 7.341-2.865 2.104-.876 3.608-2.403 2.761-4.846-.925-2.675-2.156-5.39-3.251-8.022l-5.61-13.706-16.401-40.068c-1.751-4.297-2.609-6.524-7.841-4.593-1.485.549-2.888 1.15-4.34 1.803.155.685.598 2.416.289 2.826-1.317 1.746-8.553 4.04-10.617 4.874-.935-2.873-.223-2.348-2.094-5.655z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M227.196 40.6c1.483-.86 4.588-2.158 6.295-2.698 3.682-1.166 7.989-3.258 11.646-4.231 6.342-1.69 8.081 3.832 9.971 8.508l4.046 10.06c.741 1.839 1.849 4.732 2.776 6.387.484 4.798 1.485 8.58 4.311 12.592.248.356 1.856 2.469 1.93 2.73-.059 1.33 2.863 7.637 3.667 8.819.122.461.195.874.446 1.275a57.015 57.015 0 002.328 6.751c1.068 2.617 2.223 5.26 3.271 7.88 1.577 3.947 2.521 5.291.728 9.317-.861.656-1.692 1.433-2.601 1.975-.385.588-.424.563-1.191.851.599.983.769 1.352 1.967 1.593l-.324.223c-2.037 1.015-4.449 1.794-6.576 2.651-5.253 2.115-10.705 3.844-15.95 5.949-1.091.437-4.481 1.665-5.363 2.133-6.658 2.692-9.624 1.065-12.176-5.32-.203-1.199-.994-2.441-1.118-3.853.784-.038 1.771-.166 2.47.134l.32.325.176-.071.
3713134-.506c.552-.471 1.31-1.175 1.928-1.482 3.271 9.475 5.843 5.99 13.504 3.192a517.636 517.636 0 0013.148-4.932c2.465-.936 4.892-1.844 7.341-2.865 2.104-.876 3.608-2.403 2.761-4.846-.925-2.675-2.156-5.39-3.251-8.022l-5.61-13.706-16.401-40.068c-1.751-4.297-2.609-6.524-7.841-4.593-1.485.549-2.888 1.15-4.34 1.803.155.685.597 2.416.289 2.826-1.317 1.746-8.553 4.04-10.617 4.874-.935-2.873-.223-2.348-2.094-5.655z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M238.071 114.648c.053.239.117.475.193.708.993 3.07 4.073 7.156 7.626 6.117 9.716-2.842 19.338-7.396 28.931-10.66.599.982.769 1.351 1.967 1.593l-.324.222c-2.037 1.016-4.449 1.794-6.576 2.651-5.253 2.115-10.705 3.845-15.95 5.949-1.091.437-4.481 1.665-5.363 2.134-6.658 2.691-9.624 1.065-12.176-5.321-.203-1.199-.994-2.441-1.118-3.852.784-.039 1.771-.167 2.47.133l.32.326z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M276.01 109.967c-.385.588-.424.563-1.191.851-9.593 3.265-19.215 7.819-28.931 10.66-3.553 1.039-6.632-3.046-7.626-6.117a7.557 7.557 0 01-.193-.708l.176-.071c1.217 2.029 1.686 4.843 4.207 5.942 3.811 1.66 9.347-1.373 13.062-2.773l20.496-7.784z",fill:"#392E44"}),(0,X.jsx)(Wu.Path,{d:"M265.946 51.526c1.233.396 4.092 5.046 4.718 6.405.188.71.256.9-.173 1.447-1.704.307-2.186-1.158-3.097-1.648-1.124-2.715-2.365-2.722-1.448-6.204z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M272.286 84.046l.499-.112c.395.566.703 2.529.966 3.32 1.698 5.113 4.221 9.856 5.921 14.973.893 2.685-.094 2.629-.094 4.502-.23.516-.382 1.09-.966 1.265 1.793-4.026.849-5.37-.728-9.316-1.048-2.621-2.203-5.264-3.27-7.88a56.841 56.841 0 01-2.328-6.752z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M279.578 106.731c.663 1.335-.779 3.346-1.489 4.459-.371.363-.908.92-1.302 1.225-1.198-.241-1.368-.611-1.967-1.593.767-.288.806-.263 1.191-.851.909-.542 1.74-1.319 2.601-1.975.583-.175.736-.749.966-1.265z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M268.074 73.948c.921 1.443 4.572 7.225 4.223 8.655-.144.047-.418.144-.556.164-.804-1.182-3.725-7.49-3.667-8.819zM262.008 56.47l.039.177c.55 2.551.316 4.77 1.138 7.512.472 1.583 3.046 6.223 2.958 7.058-2.826-4.011-3.827-7.794-4.311-12.592l.176-2.154z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M278.815 111.168l.238-.094c.09.377.135.707.336 1.037l.32-.309c1.269.281 1.745 1.205.783 2.296l.009.898-.261.506-.747-1.163c-.367-.588-.703-1.525-.968-2.195l.013-.583.277-.393z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M278.815 111.17c-.009.909 1.148 2.991 1.686 3.828l-.261.506-.747-1.163c-.367-.588-.703-1.525-.968-2.195l.013-.583.277-.393z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M276.787 112.412c.394-.304.931-.861 1.302-1.224l.448.373-.013.583c-.293.705-.108.454-.748.937-.864-.007-.556.057-1.313-.447l.324-.222zM268.166 121.631c.582-.028 1.148-.191 1.647.21.837.67.861 2.059.162 2.876-.792-.774-2.068-1.805-2.207-2.832l.398-.254zM285.252 104.178c2.275-.217 2.822.811 2.422 2.811-1.559-.115-3.423-.93-2.422-2.811zM220.632 79.102l.551 1.782 2.993.994c.293.42.484.715 1.103.627 1.141.086 1.649.452 2.566.608l.593.336c2.443.683 4.316 1.478 5.745 3.747 1.356 2.154.482 5.29-1.752 6.453l.491 1.46c4.764 1.609 8.664 4.633 4.426 9.547l.661 1.682c2.625 1.428 3.279 3.432 2.299 6.253-.618.307-1.376 1.011-1.928 1.482l-.134.506-.176.071-.32-.325c-.699-.3-1.686-.172-2.47-.134.124 1.412.915 2.654 1.118 3.853-3.288-1.438-7.777-3.11-10.684-5.045-4.266-2.839-2.994-6.574.851-8.777-.385-.19-1.782-.508-2.276-.631-2.289-.24-5.372-1.554-6.593-3.6a5.395 5.395 0 01-.558-4.189c.478-1.765 1.531-2.734 3.034-3.622-4.633-1.208-7.78-3.961-5.329-9.31 1.02-2.227 3.549-3.134 5.789-3.768z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M224.288 103.594c2.285-.606 8.614 2.466 11.351 1.331 2.434-1.007 3.38-3.528 2.428-5.929-.866-2.181-4.178-2.826-6.114-3.742l.018-.166.95.025c4.763 1.608 8.664 4.632 4.426 9.547l.661 1.681c2.625 1.429 3.279 3.433 2.299 6.253-.618.307-1.376 1.011-1.928 1.482l-.134.507-.176.071-.32-.326c-.699-.3-1.686-.172-2.471-.133.125 1.411.916 2.653 1.119 3.852-3.289-1.438-7.777-3.11-10.684-5.045-4.266-2.838-2.994-6.573.851-8.777-.385-.19-1.782-.508-2.276-.631z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M224.288 103.594c2.286-.606 8.614 2.466 11.352 1.331 2.433-1.007 3.379-3.528 2.427-5.929-.866-2.181-4.178-2.826-6.114-3.742l.018-.166.95.025c4.764 1.608 8.664 4.632 4.426 9.547l.662 1.681c2.624 1.429 3.278 3.433 2.298 6.253-.618.307-1.375 1.011-1.928 1.482l-.134.507-.176.071-.32-.326c-.699-.3-1.686-.172-2.47-.133-1.868-.149-4.1-.268-5.905-.636l.037-.122c2.574-.181 6.61
37137.721 8.605.089-.413-.291-.763-.076-1.528-.627 1.226-.025 1.651-.16 2.163-1.351.679-1.577.704-2.809-.871-3.598.422-.079.886-.229 1.306-.35-2.164-1.782-9.314-2.526-12.522-3.375-.385-.19-1.782-.508-2.276-.631z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M239.087 107.594l1.013 1.088c.033 2.15.292 3.872-2.083 4.838-.413-.291-.763-.076-1.527-.627 1.225-.025 1.65-.16 2.162-1.351.679-1.577.704-2.809-.871-3.598.422-.079.886-.229 1.306-.35z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M235.471 105.624c.654-.425 1.12-.785 1.877-.977l.662 1.681c-.861.001-1.723-.395-2.539-.704z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M236.489 112.899c-.195-.231-1.265-.542-1.624-.716-.821-.396-2.476-1.317-2.172-2.45.732-2.734 2.966-2.235 5.088-1.782 1.574.788 1.549 2.021.87 3.598-.511 1.19-.937 1.325-2.162 1.35z",fill:"#A47F77"}),(0,X.jsx)(Wu.Path,{d:"M234.625 108.126c1.653-.084 2.43.157 3.987.585-.156 1.259-.26 2.979-1.191 3.753-2.052-.463-6.623-2.163-2.796-4.338zM227.501 85.8c2.143-.89 3.577.778 4.736-.115.519.491 1.101 1.017 1.565 1.55.648 2.735.303 4.604-2.146 6.278l-1.038-.702c-.52-.256-1.866-.589-2.481-.759-.872-.31-1.26-.596-2.041-1.102-1.943-2.092-.948-4.088 1.405-5.15z",fill:"#A47F77"}),(0,X.jsx)(Wu.Path,{d:"M227.501 85.8c2.143-.89 3.577.778 4.736-.115.519.491 1.101 1.017 1.565 1.55.648 2.735.303 4.604-2.146 6.278l-1.039-.702c1.663-.523 2.617-4.294 1.926-5.667-.515-1.025-3.906-1.225-5.042-1.344z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M228.92 91.871c-7.576-2.992-.654-7.663 3.079-4.443.38.329.15 1.377.099 1.881-.573 2.332-.482 3.144-3.178 2.563z",fill:"#A47F77"}),(0,X.jsx)(Wu.Path,{d:"M228.921 91.878c.325-1.17-.301-1.809.23-2.753.544-.271 2.224.098 2.948.19-.573 2.332-.482 3.144-3.178 2.563z",fill:"#A47F77"}),(0,X.jsx)(Wu.Path,{d:"M228.44 83.445c2.443.684 4.316 1.479 5.745 3.748 1.356 2.154.482 5.289-1.753 6.453-.519.064-1.487.257-1.822.673l.285.315-.018.132c-1.065-.112-8.346-1.924-9.398-2.321l.129-.11c1.175-.06 2.732.463 3.936.762-.32-1.18-.158-1.2.554-2.14.781.506 1.169.793 2.041 1.103.615.17 1.961.503 2.48.759l1.039.702c2.448-1.674 2.794-3.544 2.146-6.278-.464-.533-1.046-1.06-1.565-1.55-1.054-.806-2.57-1.378-3.799-2.248z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M226.096 90.963c.781.506 1.169.793 2.041 1.103.615.17 1.962.503 2.481.759l1.038.702-.254.066c-2.184.543-3.501.121-5.626-.486l-.234-.004c-.32-1.18-.158-1.2.554-2.14z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M225.999 90.963c.781.506 1.169.793 2.041 1.103-.677.202-2.099.997-2.361 1.041l-.234-.004c-.32-1.18-.158-1.2.554-2.14z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M232.69 97.425c1.026.073 2.517.127 3.391.651 2.075 1.246 1.222 3.717.123 5.308-.472.683-.62.574-1.358.711-2.218-.545-4.861-1.447-5.261-4.038-.255-1.648 1.817-2.472 3.105-2.632z",fill:"#A47F77"}),(0,X.jsx)(Wu.Path,{d:"M231.546 97.955c4.761-.16 6.669.888 3.916 5.755-2.826-.71-7.802-2.167-3.916-5.755z",fill:"#A47F77"}),(0,X.jsx)(Wu.Path,{d:"M225.54 101.141c.413.31.443.317.628.782-.064.677-.693 1.175-1.185 1.681-.64-.414-.583-.235-.794-.813.152-.668.816-1.151 1.351-1.65z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M97.705 85.894c3.699-8.463 7.897-16.864 11.797-25.247 1.372-3.194 5.088-4.705 8.362-3.365 8.778 3.594 17.651 7.2 26.353 10.989 1.04.453 1.964 1.187 2.825 1.912 5.599 4.636 1.768 10.03-.793 15.184 3.191-.144 6.999-.317 7.181 3.922.094 2.177-1.659 3.907-3.431 4.891-2.952 1.64-6.26 2.81-9.422 4.005-.717.576-1.264 2.096-1.615 2.965-1.453 2.027-8.507 3.002-11.018 4.111-.413.182-1.128.31-1.594.296.525-.237.603-.275 1.02-.67.851-.105 3.356-.976 4.307-1.285 4.133-9.33 8.776-18.48 13.018-27.767 2.279-4.99-3.502-6.1-7.092-7.485-.668 1.091-1.481 2.669-3.045 2.204a84.172 84.172 0 01-8.225-3.216c-3.448-1.568-4.777-1.338-3.687-5.258-3.429-1.595-8.356-4.911-10.708-.219-4.034 8.049-7.483 16.476-11.485 24.534-.816-.073-1.921-.333-2.748-.501z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M147.041 70.19c5.599 4.636 1.768 10.029-.793 15.184 3.191-.145 6.998-.317 7.181 3.922.093 2.176-1.66 3.906-3.432 4.891-2.951 1.64-6.259 2.81-9.422 4.004-.716.576-1.263 2.096-1.614 2.965-1.453 2.028-8.508 3.003-11.019 4.112-.412.182-1.128.309-1.593.295.525-.236.603-.275 1.019-.669.852-.105 3.356-.976 4.308-1.285.949-.205 2.705-.483 3.173-1.449 4.408-9.12 9.063-18.297 12.876-27.67.314-.773-.486-3.375-.684-4.3z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M146.248 85.376c3.191-.145 6.999-.317 7.181 3.921.094 2.177-1.659 3.907-3.43
37131 4.892-2.952 1.64-6.26 2.809-9.422 4.004l-.095-.4c.247-1.111 5.054-11.4 5.767-12.418z",fill:"#EEB394"}),(0,X.jsx)(Wu.Path,{d:"M218.489 36.037c3.831.55 6.079 1.605 8.61 4.549 1.871 3.307 1.159 2.781 2.094 5.655-.194 6.9-4.615 11.4-11.642 11.084a21.86 21.86 0 01-.313-.016l-1.366-.507-1.506-.288-.632-.228-2.935-1.258c-1.996-1.414-3.637-5.065-3.878-7.438a10.257 10.257 0 012.284-7.614c2.751-3.35 5.383-3.532 9.284-3.94z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M218.488 36.037c3.831.55 6.079 1.605 8.61 4.549 1.871 3.307 1.159 2.781 2.093 5.655-.193 6.9-4.615 11.4-11.641 11.084a21.86 21.86 0 01-.313-.016l-1.366-.507c1.911.11 3.503-.04 5.3-.786a10.202 10.202 0 005.511-5.54 10.387 10.387 0 00-.09-7.95c-1.67-3.858-4.521-5.092-8.104-6.49z",fill:"#171912"}),(0,X.jsx)(Wu.Path,{d:"M215.419 38.83a8.019 8.019 0 113.499 15.65 8.018 8.018 0 01-9.499-6.092 8.018 8.018 0 016-9.557z",fill:"#594E10"}),(0,X.jsx)(Wu.Path,{d:"M216.653 39.041a7.643 7.643 0 018.186 6.975 7.641 7.641 0 01-6.899 8.25 7.64 7.64 0 11-1.287-15.225z",fill:"#F4D26D"}),(0,X.jsx)(Wu.Path,{d:"M210.8 55.04l2.935 1.259.632.227 1.506.288 1.366.507c1.083 1.73 3.913 8.98 4.74 11.168 1.747 4.616 4.266 10.037 5.768 14.623-.917-.156-1.424-.522-2.566-.608-.618.089-.809-.206-1.102-.627l-2.994-.994-.55-1.781-.322-.622c-4.26-1.853-8.918-3.503-12.727-6.166-1.319-.922-3.19-3.26-2.564-5.02 1.577-4.447 6.1-3.366 9.626-2.444-1.1-3.223-2.741-6.339-3.748-9.81z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M220.209 78.531c-4.26-1.853-8.918-3.503-12.727-6.166-1.319-.922-3.191-3.26-2.564-5.02 1.577-4.446 6.1-3.366 9.626-2.445 1.891 3.733 3.269 7.92 4.935 11.77.234.54.554 1.308.73 1.861z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M210.796 55.101l2.935 1.259c.71 1.15 10.346 24.759 10.344 25.578l-2.994-.993-.55-1.782-.322-.622c-.176-.553-.496-1.32-.73-1.862-1.666-3.85-3.044-8.036-4.935-11.769-1.1-3.222-2.741-6.337-3.748-9.809z",fill:"#9583AC"}),(0,X.jsx)(Wu.Path,{d:"M213.729 56.366l.632.228c1.234 2.54 2.332 5.54 3.39 8.197l4.594 11.386c.454 1.118 2.187 5.615 2.831 6.394-.619.09-.81-.206-1.103-.626.002-.82-9.633-24.428-10.344-25.579z",fill:"#392E44"}),(0,X.jsx)(Wu.Path,{d:"M265.67 51.447l.275.079c-.917 3.482.324 3.49 1.448 6.204-2.051-1.184-2.5-4.16-1.723-6.283z",fill:"#7C5046"}),(0,X.jsx)(Wu.Path,{d:"M87.832 104.913l-5.335 13.871 5.335-9.603 3.2-4.801 2.668-4.268-4.802 3.734-1.066 1.067z",fill:"#171912"}),(0,X.jsx)(Wu.G,{clipPath:"url(#clip2_5659_38794)",children:(0,X.jsx)(Wu.Path,{d:"M247.029 69.187l-2.997 6.578-2.54-1.368",stroke:"#fff",strokeWidth:1.38708,strokeMiterlimit:10,strokeLinecap:"square"})})]})]}),(0,X.jsxs)(Wu.Defs,{children:[(0,X.jsxs)(Wu.LinearGradient,{id:"paint0_linear_5659_38794",x1:358,y1:182,x2:-2.94274,y2:12.3975,gradientUnits:"userSpaceOnUse",children:[(0,X.jsx)(Wu.Stop,{stopColor:"#E2F3F5"}),(0,X.jsx)(Wu.Stop,{offset:1,stopColor:"#F2F5E2"})]}),(0,X.jsx)(Wu.ClipPath,{id:"clip0_5659_38794",children:(0,X.jsx)(Wu.Rect,{width:358,height:182,rx:16,fill:"#fff"})}),(0,X.jsx)(Wu.ClipPath,{id:"clip1_5659_38794",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"translate(-21 -21)",d:"M0 0H399.642V223H0z"})}),(0,X.jsx)(Wu.ClipPath,{id:"clip2_5659_38794",children:(0,X.jsx)(Wu.Path,{fill:"#fff",transform:"rotate(-16.694 354.46 -775.76)",d:"M0 0H10.8797V10.8797H0z"})})]})]}))},Gxe=e=>fh(e,{withSymbol:!0,precision:0}),Uxe=e=>e.schemeTimeline.filter(e=>e.kind===u6.Payout),$xe=(0,Ge.default)(qe.default).withConfig({displayName:"item__Row",componentId:"sc-6xd4hz-0"})(["flex-direction:row;align-items:stretch;"]),Fxe=(0,Ge.default)(qe.default).withConfig({displayName:"item__Rail",componentId:"sc-6xd4hz-1"})(["width:","px;align-items:center;"],22),Hxe=(0,Ge.default)(qe.default).withConfig({displayName:"item__Connector",componentId:"sc-6xd4hz-2"})(["flex:1;width:","px;background-color:",";"],2,({$visible:e})=>e?Qe.GRAY_BORDER:Qe.TRANSPARENT),Wxe=(0,Ge.default)(qe.default).withConfig({displayName:"item__Bullet",componentId:"sc-6xd4hz-3"})(["width:","px;height:","px;border-radius:","px;align-items:center;justify-content:center;background-color:",";border:2px solid ",";"],22,22,11,({$completed:e})=>e?Qe.GREEN_FROSTY_GREEN:Qe.WHITE,({$completed:e})=>e?Qe.GREEN_FROSTY_GREEN:Qe.GRAY_BORDER),Vxe=(0,Ge.default)(qe.default).withConfig({displayName:"item__LabelWrapper",componentId:"sc-6xd4hz-4"})(["flex:1;justify-content:center;padding:10px 0 10px 12px;"]),Kxe=(0,Ge.default)(Be.default).withConfig({displayName:"item__Label",componentId:"sc-6xd4hz-5"})(["font-size:14px;line-height:20px;font-weight:600;color:",";"],({$completed:e})=>e?Qe.GRAY_1:Qe.GRAY_2),Yxe=({label:e,completed:t=!1,isFirst:n=!1,isLast:i=!1,testID:o,labelProps:a={}})=>(0,X.jsxs)($xe,{testID:o,children:[(0,X.jsxs)(Fxe,{children:[(0,X.jsx)(Hxe,{$visible:!n}),(0,X.jsx)(Wxe,{$completed:t,children:t&&(0,X.jsx)(Pa.default,{name:"check",set:"MaterialCommunityIcons",size:16,color:Qe.GREEN_GROWN_UP_GREEN})}),(0,X.jsx)(Hxe,{$visible:!i})]}),(0,X.jsx)(Vxe,{children:(0,X.jsx)(Kxe,Object.assign({$completed:t},a,{children:e}))})]}),Xxe=({items:e,testID:t,labelProps:n={}})=>(0,X.jsx)(qe.default,{testID:t,children:e.map((t,i)=>(0,X.jsx)(Yxe,{label:t.label,completed:t.completed,isFirst:0===i,isLast:i===e.length-1,testID:t.testID,labelProps:n},t.id))}),Zxe=(0,Ge.default)(ts).withConfig({displayName:"how_it_works__Header",componentId:"sc-97j4c3-0"})(["flex-direction:row;align-items:center;justify-content:space-between;padding:0 0 16px;"]),Qxe=(0,Ge.default)(Be.default).withConfig({displayName:"how_it_works__Title",componentId:"sc-97j4c3-1"})(["font-size:16px;font-weight:600;color:",";"],Qe.TEXT_DARK),Jxe=(0,Ge.default)(Pa.default).attrs(({open:e})=>({name:e?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.GRAY_0})).withConfig({displayName:"how_it_works__ChevronIcon",componentId:"sc-97j4c3-2"})([""]),eye=(0,Ge.default)(qe.default).withConfig({displayName:"how_it_works__Content",componentId:"sc-97j4c3-3"})(["border:1px solid ",";border-radius:8px;padding:16px;padding-top:4px;gap:12px;"],Qe.GRAY_BORDER),tye=(0,Ge.default)(Be.default).withConfig({displayName:"how_it_works__Footnote",componentId:"sc-97j4c3-4"})(["font-size:14px;color:",";"],Qe.GRAY_1),nye=({program:e,open:t,onPress:n})=>{const i=e.schemeTimeline.map(e=>{const t={amount:Gxe(e.amount||0)};return{id:`${e.key}-${e.kind}`,testID:`refer_a_friend:howItWorksStep:${e.key}-${e.kind}`,completed:!!e.completed,label:i18n.t(`refer_a_friend.how_it_works.steps.${e.key.toLowerCase()}.${e.kind.toLowerCase()}.${e.variant.toLowerCase()}`,Object.assign({},t,{defaultValue:i18n.t(`refer_a_friend.how_it_works.steps.${e.key.toLowerCase()}.${e.kind.toLowerCase()}.base`,t)}))}});return(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(Zxe,{testID:"refer_a_friend:howItWorksHeader",onPress:n,trackingUserFlow:Wa,trackingAction:Xa.toggle,trackingObjectName:"how it works",trackingProperties:{expanded:!t},children:[(0,X.jsx)(Qxe,{children:i18n.t("refer_a_friend.how_it_works.title")}),(0,X.jsx)(Jxe,{open:t})]}),t&&(0,X.jsxs)(eye,{children:[(0,X.jsx)(Xxe,{items:i,testID:"refer_a_friend:howItWorks",labelProps:{style:{color:Qe.GRAY_1}}}),(0,X.jsx)(tye,{children:i18n.t("refer_a_friend.how_it_works.footnote",{days:14})})]})]})},iye=(0,Ge.default)(ts).withConfig({displayName:"code__Container",componentId:"sc-r3k9fq-0"})(["flex-direction:row;align-items:center;justify-content:space-between;background-color:",";border:1px solid ",";border-radius:8px;padding:12px 14px;margin-top:20px;"],Qe.WHITE,Qe.GRAY_BORDER),oye=(0,Ge.default)(Be.default).withConfig({displayName:"code__Code",componentId:"sc-r3k9fq-1"})(["font-size:18px;font-weight:700;color:",";flex:1;"],Qe.GREEN_GROWN_UP_GREEN),aye=({code:e})=>{const{toast:{showToastMessage:t}}=lt();return(0,X.jsxs)(iye,{testID:"refer_a_friend:copyCode",onPress:()=>fK(Fi(e),()=>t({message:i18n.t("refer_a_friend.copied"),type:"success"})),trackingUserFlow:Wa,trackingAction:Xa.click,trackingObjectName:"copy referral code",children:[(0,X.jsx)(oye,{testID:"refer_a_friend:code",children:e}),(0,X.jsx)(Pa.default,{name:"content-copy",size:20,color:Qe.GRAY_2})]})}
3713,sye="active",rye="past",lye=[sye,rye],dye={[sye]:!0,[rye]:!1},cye=[c6.SignedUp,c6.FirstEvent,c6.PassedTrial],uye=(0,Ge.default)(qe.default).withConfig({displayName:"avatar__Circle",componentId:"sc-ufm4a8-0"})(["width:","px;height:","px;border-radius:","px;background-color:#EDEEF3;align-items:center;justify-content:center;"],({$size:e})=>e,({$size:e})=>e,({$size:e})=>e/2),pye=(0,Ge.default)(Be.default).withConfig({displayName:"avatar__Initial",componentId:"sc-ufm4a8-1"})(["font-size:14px;line-height:14px;font-weight:700;color:",";"],({$color:e})=>e),mye=({name:e,size:t=36,color:n=Qe.GRAY_1,testID:i="refer_a_friend:avatar"})=>{const o=(e||"").trim(),a=o?[...o][0].toUpperCase():"";return(0,X.jsx)(uye,{$size:t,testID:i,children:(0,X.jsx)(pye,{$size:t,$color:n,children:a})})},fye=(0,Ge.default)(ts).withConfig({displayName:"header__Container",componentId:"sc-14edahi-0"})(["flex-direction:row;align-items:center;gap:10px;"]),gye=(0,Ge.default)(qe.default).withConfig({displayName:"header__Details",componentId:"sc-14edahi-1"})(["flex:1;"]),hye=(0,Ge.default)(Be.default).withConfig({displayName:"header__Name",componentId:"sc-14edahi-2"})(["font-size:15px;font-weight:600;color:",";"],Qe.TEXT_DARK),_ye=(0,Ge.default)(qe.default).withConfig({displayName:"header__Status",componentId:"sc-14edahi-3"})(["flex-direction:row;align-items:center;margin-top:2px;gap:4px;"]),xye=(0,Ge.default)(Be.default).withConfig({displayName:"header__StatusText",componentId:"sc-14edahi-4"})(["font-size:13px;color:",";"],Qe.GRAY_2),yye=(0,Ge.default)(Pa.default).attrs(({open:e})=>({name:e?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.GRAY_2})).withConfig({displayName:"header__ChevronIcon",componentId:"sc-14edahi-5"})([""]),vye=(0,Ge.default)(qe.default).withConfig({displayName:"header__PayoutPillContainer",componentId:"sc-14edahi-6"})(["flex-direction:row;justify-content:center;background-color:",";padding:6px 12px;border-radius:8px;align-items:center;"],Qe.GREEN_WINTER_MIST),bye=(0,Ge.default)(Be.default).withConfig({displayName:"header__PayoutPillText",componentId:"sc-14edahi-7"})(["font-size:13px;font-weight:700;color:",";"],Qe.GREEN_PINE_OIL),wye=({name:e,statusLabel:t,payoutLabel:n,expanded:i,onPress:o,trackingProperties:a})=>(0,X.jsxs)(fye,{testID:"refer_a_friend:referralCardHeader",onPress:o,trackingUserFlow:Wa,trackingAction:Xa.toggle,trackingObjectName:"referral card",trackingProperties:a,children:[(0,X.jsx)(mye,{name:e}),(0,X.jsxs)(gye,{children:[(0,X.jsx)(hye,{children:e}),(0,X.jsx)(_ye,{children:(0,X.jsx)(xye,{testID:"refer_a_friend:referralStatus",children:t})})]}),(0,X.jsx)(vye,{children:(0,X.jsx)(bye,{children:n})}),(0,X.jsx)(yye,{open:i})]}),Cye=(0,Ge.default)(qe.default).withConfig({displayName:"nudge__Container",componentId:"sc-1jgwzf7-0"})(["flex-direction:row;align-items:center;background-color:#f6f6f6;border-radius:8px;padding:12px;gap:8px;"]),jye=(0,Ge.default)(Be.default).withConfig({displayName:"nudge__Emoji",componentId:"sc-1jgwzf7-1"})(["font-size:14px;line-height:18px;"]),Iye=(0,Ge.default)(Be.default).withConfig({displayName:"nudge__Message",componentId:"sc-1jgwzf7-2"})(["font-size:14px;line-height:18px;font-weight:600;color:",";flex:1;"],Qe.TEXT_DARK),Tye=({message:e})=>(0,X.jsxs)(Cye,{testID:"refer_a_friend:nudge",children:[(0,X.jsx)(jye,{children:"\ud83d\udca1"}),(0,X.jsx)(Iye,{children:e})]}),Eye=(0,Ge.default)(lm).withConfig({displayName:"referral_card__Container",componentId:"sc-1yss5qx-0"})(["padding:12px;gap:12px;border:1px solid ",";"],Qe.GRAY_BORDER),Nye=(0,Ge.default)(qe.default).withConfig({displayName:"referral_card__Line",componentId:"sc-1yss5qx-1"})(["border-top-width:1px;border-top-style:dashed;border-top-color:",";"],Qe.GRAY_BORDER),kye=({referral:e,expanded:t,onToggle:n})=>{var i,o,a,s,r,l,d;const c=(null===(i=e.referralProvider)||void 0===i?void 0:i.firstname)||"",u=(e=>e.timeline.filter(e=>!!e.completed&&e.kind!==u6.Payout).pop())(e),p=!e.active&&(e=>e.timeline.length>0&&e.timeline.every(e=>!!e.completed))(e),m=p?i18n.t("refer_a_friend.card.status.completed"):i18n.t(`refer_a_friend.card.status.${null===u||void 0===u||null===(o=u.ke
3713y)||void 0===o?void 0:o.toLowerCase()}.${null===u||void 0===u||null===(a=u.variant)||void 0===a?void 0:a.toLowerCase()}`,{defaultValue:i18n.t(`refer_a_friend.card.status.${null===u||void 0===u||null===(s=u.key)||void 0===s?void 0:s.toLowerCase()}.base`)}),f=e.timeline.map((e,t)=>{var n,i,o,a,s,r,l,d;const c=e.completed?"completed":"pending",u={amount:Gxe(e.amount||0)};return{id:`${e.key}-${e.kind}-${t}`,label:i18n.t(`refer_a_friend.card.timeline.${null===(n=e.key)||void 0===n?void 0:n.toLowerCase()}.${null===(i=e.kind)||void 0===i?void 0:i.toLowerCase()}.${null===(o=e.variant)||void 0===o?void 0:o.toLowerCase()}.${c}`,Object.assign({},u,{defaultValue:i18n.t(`refer_a_friend.card.timeline.${null===(a=e.key)||void 0===a?void 0:a.toLowerCase()}.${null===(s=e.kind)||void 0===s?void 0:s.toLowerCase()}.${null===(r=e.variant)||void 0===r?void 0:r.toLowerCase()}`,Object.assign({},u,{defaultValue:i18n.t(`refer_a_friend.card.timeline.${null===(l=e.key)||void 0===l?void 0:l.toLowerCase()}.${null===(d=e.kind)||void 0===d?void 0:d.toLowerCase()}.base`,u)}))})),completed:!!e.completed,testID:`refer_a_friend:timelineRow:${e.key}-${e.kind}`}});return(0,X.jsxs)(Eye,{elevation:0,testID:`refer_a_friend:referralCard:${e.id}`,children:[(0,X.jsx)(wye,{name:c,statusLabel:m,payoutLabel:Gxe(e.earnedAmount),expanded:t,onPress:n,trackingProperties:{active:e.active,expanded:!t,getReachedMilestone:null===u||void 0===u?void 0:u.key}}),e.active&&!!u&&cye.includes(null===u||void 0===u?void 0:u.key)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Nye,{}),(0,X.jsx)(Tye,{message:i18n.t(`refer_a_friend.card.nudge.${null===u||void 0===u||null===(r=u.key)||void 0===r?void 0:r.toLowerCase()}.${null===u||void 0===u||null===(l=u.variant)||void 0===l?void 0:l.toLowerCase()}`,{name:c,defaultValue:i18n.t(`refer_a_friend.card.nudge.${null===u||void 0===u||null===(d=u.key)||void 0===d?void 0:d.toLowerCase()}.base`,{name:c})})})]}),t&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Nye,{}),(0,X.jsx)(Xxe,{items:f,testID:"refer_a_friend:timeline"})]})]})}
3713,Rye=(0,Ge.default)(qe.default).withConfig({displayName:"referrals_list__Container",componentId:"sc-5euiig-0"})(["gap:24px;"]),Sye=(0,Ge.default)(Aa.default).withConfig({displayName:"referrals_list__Loading",componentId:"sc-5euiig-1"})(["padding:16px 0;"]),Aye=({referrals:e,singleOpen:t=!0,onEndReached:n,loadingMore:i=!1})=>{const[o,a]=(0,K.useState)([]),s=e=>(0,X.jsx)(kye,{referral:e,expanded:o.includes(e.id),onToggle:()=>{return n=e.id,a(e=>e.includes(n)?e.filter(e=>e!==n):t?[n]:[...e,n]);var n}},e.id);return n?(0,X.jsx)(Lj.default,{testID:"refer_a_friend:referralsList",data:e,keyExtractor:e=>e.id,renderItem:({item:e})=>s(e),style:{flex:1},contentContainerStyle:{gap:24,paddingBottom:32},onEndReached:n,onEndReachedThreshold:.5,ListFooterComponent:i?(0,X.jsx)(Sye,{testID:"refer_a_friend:loadingMore",color:Qe.GREEN_SUMMER_GRASS}):null,overScrollMode:"never"}):(0,X.jsx)(Rye,{testID:"refer_a_friend:referralsList",children:e.map(s)})},Pye=(0,Ge.default)(ts).withConfig({displayName:"social_share_link__Container",componentId:"sc-1gfufvy-0"})(["flex-direction:row;align-items:center;background-color:",";border:1px solid ",";border-radius:8px;padding:12px 14px;gap:10px;"],Qe.WHITE,Qe.GRAY_3),Dye=(0,Ge.default)(Be.default).withConfig({displayName:"social_share_link__Label",componentId:"sc-1gfufvy-1"})(["font-size:15px;font-weight:500;color:",";flex:1;"],Qe.TEXT_DARK),Mye=({name:e,icon:t,link:n,channel:i})=>(0,X.jsxs)(Pye,{testID:`refer_a_friend:share:${i}`,onPress:()=>ru(n,0,!0),trackingUserFlow:Wa,trackingAction:Xa.click,trackingObjectName:"share referral code via channel",trackingProperties:{channel:i},children:[t,(0,X.jsx)(Dye,{children:e}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(Pa.default,{name:"keyboard-arrow-right",size:22,color:Qe.GRAY_3})})]}),Oye=(0,Ge.default)(gs).withConfig({displayName:"buttonweb__ShareModal",componentId:"sc-11v3c89-0"})(["",";"],({isDesktop:e})=>e?"width: 475px; align-self: center;":"justify-content: flex-end; margin: 0;"),zye=(0,Ge.default)(lm).withConfig({displayName:"buttonweb__ModalContent",componentId:"sc-11v3c89-1"})(["padding:30px;align-content:center;justify-content:center;background-color:",";gap:10px;"],Qe.GRAY_4),Lye=(0,Ge.default)(pu.default).withConfig({displayName:"buttonweb__ImageIcon",componentId:"sc-11v3c89-2"})(["width:22px;height:22px;resize-mode:contain;"]),qye={whatsapp:(0,X.jsx)(Lye,{source:n(30750)}),email:(0,X.jsx)(Lye,{source:n(73972)})},Bye=({code:e})=>{const[t,n]=(0,K.useState)(!1),{isDesktop:i}=uu(),o=Fi(e),a=i18n.t("refer_a_friend.share_with_code.message",{url:o}),s=`https://web.whatsapp.com/send?text=${encodeURIComponent(a)}`;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ms,{testID:"refer_a_friend:shareCode",onPress:()=>n(!0),stretched:!0,trackingUserFlow:Wa,trackingAction:Xa.click,trackingObjectName:"share referral code",trackingProperties:{platform:"web"},children:i18n.t("refer_a_friend.share_code")}),(0,X.jsx)(Oye,{isDesktop:i,isVisible:t,onBackdropPress:()=>n(!1),testID:"ShareModal",children:(0,X.jsxs)(zye,{children:[(0,X.jsx)(Mye,{channel:"whatsapp",name:i18n.t("refer_a_friend.share.whatsapp.title"),icon:qye.whatsapp,link:s}),(0,X.jsx)(Mye,{channel:"email",name:i18n.t("refer_a_friend.share.email.title"),icon:qye.email,link:`mailto:?subject=${encodeURI(o)}&body=${encodeURIComponent(a)}`})]})})]})},Gye=(0,Ge.default)(lm).withConfig({displayName:"stat_box__Container",componentId:"sc-197kjxy-0"})(["flex:1;padding:16px;gap:8px;border:1px solid ",";border-left-width:",";border-left-color:",";"],Qe.GRAY_BORDER,({accent:e})=>e?"6px":"1px",({accent:e,accentColor:t=Qe.GREEN_SUMMER_GRASS})=>e?t:Qe.GRAY_BORDER),Uye=(0,Ge.default)(Be.default).withConfig({displayName:"stat_box__Label",componentId:"sc-197kjxy-1"})(["font-size:13px;line-height:13px;color:",";"],Qe.GRAY_2),$ye=(0,Ge.default)(Be.default).withConfig({displayName:"stat_box__Value",componentId:"sc-197kjxy-2"})(["font-size:21px;line-height:21px;font-weight:600;color:",";"],Qe.TEXT_DARK),Fye=({label:e,value:t,accent:n=!1,accentColor:i=Qe.GREEN_SUMMER_GRASS,testID:o})=>(0,X.jsxs)(Gye,{elevation:0,accent:n,accentColor:i,testID:o,children:[(0,X.jsx)(Uye,{children:e}),(0,X.jsx)($ye,{children:t})]}),Hye=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-18z03ci-0"})(["padding-bottom:32px;"]),Wye=(0,Ge.default)(qe.default).withConfig({displayName:"content__HeadlineContainer",componentId:"sc-18z03ci-1"})(["margin-top:20px;gap:8px;"]),Vye=(0,Ge.default)(Be.default).withConfig({displayName:"content__HeadlineTitle",componentId:"sc-18z03ci-2"})(["font-size:22px;font-weight:700;color:",";"],Qe.TEXT_DARK),Kye=(0,Ge.default)(Be.default).withConfig({displayName:"content__HeadlineSubline",componentId:"sc-18z03ci-3"})(["font-size:15px;line-height:20px;color:",";"],Qe.GRAY_1),Yye=(0,Ge.default)(qe.default).withConfig({displayName:"content__Referrals",componentId:"sc-18z03ci-4"})(["margin-top:24px;"]),Xye=(0,Ge.default)(qe.default).withConfig({displayName:"content__Divider",componentId:"sc-18z03ci-5"})(["border-top-width:1px;border-top-color:",";margin:24px 0;"],Qe.GRAY_4),Zye=(0,Ge.default)(Be.default).withConfig({displayName:"content__StatsTitle",componentId:"sc-18z03ci-6"})(["font-size:16px;font-weight:600;color:",";"],Qe.TEXT_DARK),Qye=(0,Ge.default)(qe.default).withConfig({displayName:"content__StatsContainer",componentId:"sc-18z03ci-7"})(["flex-direction:row;gap:12px;margin-top:12px;"]),Jye=({program:e})=>{const[t,n]=(0,K.useState)(!0),i=lu(),{activeReferrals:o,pastReferrals:a}=e,{cards:s,showCta:r}
3713=(d=a,{cards:(((l=o).totalCount?l:d).nodes||[]).filter(Boolean).slice(0,3),showCta:l.totalCount+d.totalCount>=3||!!l.totalCount&&!!d.totalCount});var l,d;const c=Uxe(e),u=(e=>Uxe(e).length>1)(e)?i18n.t("refer_a_friend.subline.two_payouts",{first_amount:Gxe(c[0].amount||0),trial_amount:Gxe(c[1].amount||0)}):i18n.t("refer_a_friend.subline.single_payout",{amount:Gxe(e.schemeTotalAmount)});return(0,X.jsxs)(Hye,{children:[(0,X.jsx)(Bxe,{}),(0,X.jsxs)(Wye,{children:[(0,X.jsx)(Vye,{testID:"refer_a_friend:headline",children:i18n.t("refer_a_friend.headline",{amount:Gxe(e.schemeTotalAmount)})}),(0,X.jsx)(Kye,{testID:"refer_a_friend:subline",children:u})]}),(0,X.jsx)(aye,{code:e.code}),(0,X.jsx)(qe.default,{style:{marginTop:16},children:(0,X.jsx)(Bye,{code:e.code})}),(0,X.jsx)(Xye,{}),(0,X.jsxs)(qe.default,{testID:"refer_a_friend:earnings",children:[(0,X.jsx)(Zye,{children:i18n.t("refer_a_friend.referrals.title")}),(0,X.jsxs)(Qye,{children:[(0,X.jsx)(Fye,{testID:"refer_a_friend:earned",accent:!0,label:i18n.t("refer_a_friend.referrals.earned"),value:Gxe(e.earnedAmount)}),(0,X.jsx)(Fye,{testID:"refer_a_friend:pending",accent:!0,accentColor:Qe.GRAY_BORDER,label:i18n.t("refer_a_friend.referrals.pending"),value:Gxe(e.pendingAmount)})]})]}),!!s.length&&(0,X.jsx)(Yye,{children:(0,X.jsx)(Aye,{referrals:s})}),r&&(0,X.jsx)(Yye,{children:(0,X.jsx)(ms,{testID:"refer_a_friend:seeAll",variant:"secondary",stretched:!0,onPress:()=>i("/provider/refer_a_friend/list"),trackingUserFlow:Wa,trackingAction:Xa.click,trackingObjectName:"see all referrals",trackingProperties:{activeCount:o.totalCount,pastCount:a.totalCount},children:i18n.t("refer_a_friend.referrals.see_all")})}),(0,X.jsx)(Xye,{}),(0,X.jsx)(nye,{program:e,open:t,onPress:()=>n(e=>!e)})]})},eve="refer_a_friend",tve=()=>{const{data:e,loading:t,error:n}=(()=>{const{data:e,loading:t,error:n}=(0,Is.useQuery)(Dxe,{context:{apiVersion:3},notifyOnNetworkStatusChange:!0});return{data:(null===e||void 0===e?void 0:e.referralProgram)||void 0,loading:t,error:n}})(),i=i18n.t("refer_a_friend.page.title");return t?(0,X.jsx)(Rf,{title:i,page:eve,content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})}):n||!e?(0,X.jsx)(Rf,{title:i,page:eve,content:()=>(0,X.jsx)(qxe,{message:i18n.t("refer_a_friend.error.generic")})}):(0,X.jsx)(Rf,{title:i,page:eve,content:()=>(0,X.jsx)(Jye,{program:e})})},nve=()=>(0,X.jsx)(tve,{}),ive=(0,Ge.default)(qe.default).withConfig({displayName:"filter__Track",componentId:"sc-1kud6or-0"})(["flex-direction:row;background-color:",";border-radius:12px;padding:4px;"],Qe.GRAY_4),ove=(0,Ge.default)(ts).withConfig({displayName:"filter__Segment",componentId:"sc-1kud6or-1"})(["flex:1;align-items:center;justify-content:center;padding:10px 12px;border-radius:8px;",""],({$active:e})=>e?`background-color: ${Qe.WHITE};`:""),ave=(0,Ge.default)(Be.default).withConfig({displayName:"filter__Label",componentId:"sc-1kud6or-2"})(["font-size:14px;font-weight:",";color:",";"],({$active:e})=>e?"600":"500",({$active:e})=>e?Qe.TEXT_DARK:Qe.GRAY_2),sve=({selectedTab:e,onSelect:t})=>(0,X.jsx)(ive,{testID:"refer_a_friend:filters",children:lye.map(n=>{const i=n===e;return(0,X.jsx)(ove,{testID:`refer_a_friend:filter:${n}`,$active:i,onPress:()=>t(n),trackingUserFlow:Wa,trackingAction:Xa.tab,trackingObjectName:"referrals tab",trackingProperties:{tab:n},children:(0,X.jsx)(ave,{$active:i,children:i18n.t(`refer_a_friend.header.filters.${n}`)})},n)})}),rve=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-klel8b-0"})(["flex:1;width:100%;max-width:750px;align-self:center;padding-top:32px;gap:24px;"]),lve=({referrals:e,selectedTab:t,setSelectedTab:n,loading:i=!1,failed:o=!1,loadingMore:a=!1,onLoadMore:s})=>(0,X.jsxs)(rve,{children:[(0,X.jsx)(sve,{selectedTab:t,onSelect:n}),i?(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS}):o||!e?(0,X.jsx)(qxe,{message:i18n.t("refer_a_friend.error.generic")}):e.length?(0,X.jsx)(Aye,{referrals:e,loadingMore:a,onEndReached:s}):(0,X.jsx)(qxe,{message:i18n.t(`refer_a_friend.empty.${t}`)})]}),dve=()=>{const[e,t]=(0,K.useState)(sye),{data:n,loading:i,loadingMore:o,error:a,loadMore:s}=Oxe({active:dye[e]});return(0,X.jsx)(Rf,{title:i18n.t("refer_a_friend.page.title"),scrollEnabled:!1,content:()=>(0,X.jsx)(lve,{referrals:n,selectedTab:e,setSelectedTab:t,loading:i,failed:!!a,loadingMore:o,onLoadMore:s})})},cve=()=>(0,X.jsx)(dve,{}),uve=(0,Ge.default)(Wu.Rect).withConfig({displayName:"tooltip__StyledRect",componentId:"sc-4w6xfw-0"})(["fill:",";stroke:",";stroke-width:1px;"],Qe.WHITE,Qe.GRAY_BORDER),pve=(0,Ge.default)(Wu.Text).withConfig({displayName:"tooltip__TooltipText",componentId:"sc-4w6xfw-1"})(["text-anchor:middle;font-size:12;fill:",";font-family:",";"],Qe.GRAY_2,op),mve=({x:e,y:t,text:n})=>{const i=8*n.length;return(0,X.jsxs)(K.Fragment,{children:[(0,X.jsx)(uve,{x:e-i/2,y:t-30,width:i,height:30,rx:3}),(0,X.jsx)(pve,{x:e,y:t-10,children:n})]})},fve=(0,Ge.default)(Wu.Text).withConfig({displayName:"line_chart__StyledText",componentId:"sc-166shd8-0"})(["text-anchor:middle;font-size:12;fill:",";font-family:",";"],Qe.GRAY_2,op),gve=36,hve=({data:e})=>{const{isDesktop:t}=uu(),n=t?768:Iw.default.get("window").width-gve,i=n-72,[o,a]=(0,K.useState)(null),s=e.map(e=>e.month).reverse(),r=Math.max(...e.map(e=>e.eventsCount)),l=Array.from({length:Math.ceil(r/10)+1},(e,t)=>10*t),d=e=>s.indexOf(e)*(i/(s.length-1)),c=e=>0===r?0:e/l[l.length-1]*142;return(0,X.jsx)(Wu.default,{width:n,height:250,children:(0,X.jsxs)(Wu.G,{x:gve,y:178,children:[(0,X.jsx)(Wu.Line,{x1:0,y1:0,x2:i,y2:0,stroke:Qe.GRAY_BORDER}),(0,X.jsx)(Wu.Line,{x1:0,y1:0,x2:0,y2:-178,stroke:Qe.GRAY_BORDER}),l.map((e,t)=>(0,X.jsxs)(K.Fragment,{children:[(0,X.jsx)(Wu.Line,{x1:0,y1:-c(e),x2:i,y2:-c(e),stroke:Qe.GRAY_BORDER,strokeDasharray:"3"}),(0,X.jsx)(fve,{x:-14.4,y:3-c(e),textAnchor:"end",children:e})]},t)),e.map((e,t)=>(0,X.jsx)(fve,{x:d(e.month),y:33,children:C.DateTime.fromISO(e.month).toFormat("MMM")},t)),e.map((t,n)=>(0,X.jsxs)(K.Fragment,{children:[(0,X.jsx)(Wu.Circle,{cx:d(t.month),cy:-c(t.eventsCount),r:"7",fill:Qe.GREEN_SUMMER_GRASS,stroke:o&&o.index===n?Qe.GREEN_IR
3713ISH_BREEZE:void 0,strokeWidth:o&&o.index===n?3:0}),(0,X.jsx)(Ma.default,{onPress:()=>((e,t)=>{a({item:e,index:t})})(t,n),children:(0,X.jsx)(Wu.Circle,{cx:d(t.month),cy:-c(t.eventsCount),r:"20",fill:Qe.TRANSPARENT})}),n>0&&(0,X.jsx)(Wu.Line,{x1:d(e[n-1].month),y1:-c(e[n-1].eventsCount),x2:d(t.month),y2:-c(t.eventsCount),stroke:Qe.GREEN_SUMMER_GRASS})]},n)),o&&(0,X.jsx)(mve,{x:d(o.item.month),y:-c(o.item.eventsCount)-16,text:o.item.tooltipText})]})})},_ve=(0,Ge.default)(qe.default).withConfig({displayName:"chart__Container",componentId:"sc-7sxd09-0"})(["justify-content:center;align-items:center;"]),xve=(0,Ge.default)(Be.default).withConfig({displayName:"chart__Error",componentId:"sc-7sxd09-1"})(["color:",";text-align:center;"],Qe.CRIMSON_1),yve=()=>{const{data:e,loading:t,error:n}=(()=>{const{data:e,error:t,loading:n}=(0,Is.useQuery)(Eb,{context:{apiVersion:3}});return{data:null===e||void 0===e?void 0:e.executedEventsInLast4Months,error:t,loading:n}})();if(t)return(0,X.jsx)(Aa.default,{size:"small",color:Qe.GREEN_SUMMER_GRASS});if(n)return(0,X.jsx)(_ve,{children:(0,X.jsx)(xve,{children:i18n.t("provider.generic.error")})});const i=e.map(e=>Object.assign({},e,{tooltipText:i18n.t("reliability_metrics.content.chart_tooltip",{value:e.eventsCount})}));return(0,X.jsx)(hve,{data:i})},vve=(0,Ge.default)(qe.default).withConfig({displayName:"alert__Container",componentId:"sc-16107of-0"})(["background-color:",";border-radius:4px;padding:8px;flex-direction:row;align-items:center;"],({bgColor:e})=>e||Qe.GREEN_FROSTY_GREEN),bve=(0,Ge.default)(Be.default).withConfig({displayName:"alert__AlertText",componentId:"sc-16107of-1"})(["font-weight:",";font-size:12px;color:",";"],({bold:e})=>e?700:400,({color:e})=>e||Qe.GRAY_1),wve={success:Qe.GREEN_FROSTY_GREEN,warning:Qe.GOLD_5,danger:Qe.CRIMSON_5},Cve={success:Qe.GREEN_GROWN_UP_GREEN,warning:Qe.GRAY_1,danger:Qe.CRIMSON_1},jve=({variant:e="success",message:t,children:n})=>(0,X.jsxs)(vve,{bgColor:wve[e],children:["success"===e&&(0,X.jsx)(Pa.default,{name:"check-circle-outline",size:16,color:Qe.GREEN_GROWN_UP_GREEN,set:"MaterialCommunityIcons",style:{marginRight:10}}),"warning"===e&&(0,X.jsx)(Pa.default,{name:"alert-outline",size:16,color:Qe.GOLD_1,set:"MaterialCommunityIcons",style:{marginRight:10}}),"danger"===e&&(0,X.jsx)(Pa.default,{name:"alert-outline",set:"MaterialCommunityIcons",size:16,color:Qe.CRIMSON_1,style:{marginRight:10}}),t&&(0,X.jsx)(bve,{color:Cve[e],children:t}),n]});jve.propTypes={variant:qc.default.string,message:qc.default.string,children:qc.default.node};const Ive=jve,Tve=(0,Ge.default)(Be.default).withConfig({displayName:"cancellation_details__AlertText",componentId:"sc-1ad4zpy-0"})(["flex:1;font-weight:",";font-size:12px;color:",";"],({bold:e})=>e?700:400,({color:e})=>e||Qe.GRAY_1),Eve={warning:Qe.GOLD_1,danger:Qe.CRIMSON_1},Nve=({loading:e,variant:t,count:n,label:i})=>e?(0,X.jsx)(Aa.default,{}):(0,X.jsx)(Ive,{variant:t,message:0===n?i18n.t(`${i}.no_cancellations`):"",children:n>0&&(0,X.jsxs)(Tve,{children:[i18n.t(`${i}.warning_part_1`)," ",(0,X.jsx)(Tve,{bold:!0,color:Eve[t],children:i18n.t(`${i}.warning_part_2`,{value:n})})," ",i18n.t(`${i}.warning_part_3`,{value:1})]})}),kve=(0,Ge.default)(qe.default).withConfig({displayName:"section__Wrapper",componentId:"sc-vgo93m-0"})(["border-top-width:1px;border-color:",";padding:16px 0;"],Qe.GRAY_BORDER),Rve=(0,Ge.default)(qe.default).withConfig({displayName:"section__SectionHeader",componentId:"sc-vgo93m-1"})(["flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:",";"],({hasSubtitle:e})=>e?"2px":"16px"),Sve=(0,Ge.default)(Be.default).withConfig({displayName:"section__SectionTitle",componentId:"sc-vgo93m-2"})(["font-size:16px;font-weight:700;color:",";"],Qe.TEXT_DARK),Ave=(0,Ge.default)(qe.default).withConfig({displayName:"section__PastFilter",componentId:"sc-vgo93m-3"})(["padding:12px;border:1px solid ",";border-radius:4px;"],Qe.GRAY_4),Pve=(0,Ge.default)(Be.default).withConfig({displayName:"section__PastFilterValue",componentId:"sc-vgo93m-4"})(["font-size:13px;font-weight:400;color:",";"],Qe.TEXT_MEDIUM),Dve=(0,Ge.default)(ms).withConfig({displayName:"section__ViewCta",componentId:"sc-vgo93m-5"})(["margin-top:16px;"]),Mve=({type:e,hasSubtitle:t=!1,showFilter:n=!0,navigationPath:i,children:o})=>{const a=lu();return(0,X.jsxs)(kve,{children:[(0,X.jsxs)(Rve,{hasSubtitle:t,children:[(0,X.jsx)(Sve,{children:i18n.t(`reliability_metrics.content.${e}`)}),n&&(0,X.jsx)(Ave,{children:(0,X.jsx)(Pve,{children:i18n.t("reliability_metrics.content.past_filter_value",{dayCount:90})})})]}),o,i&&(0,X.jsx)(Dve,{variant:"secondary",stretched:!0,onPress:()=>a(i),children:i18n.t(`reliability_metrics.content.view_${e}`)})]})},Ove=(0,Ge.default)(qe.default).withConfig({displayName:"reliability_metrics__Container",componentId:"sc-ffihou-0"})(["margin-bottom:30px;"]),zve=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_metrics__Title",componentId:"sc-ffihou-1"})(["color:",";font-size:20px;font-weight:700;"],Qe.TEXT_DARK),Lve=(0,Ge.default)(qe.default).withConfig({displayName:"reliability_metrics__ReliabilityScoreContainer",componentId:"sc-ffihou-2"})(["margin-top:12px;align-self:flex-start;margin-bottom:16px;"]),qve=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_metrics__LastUpdated",componentId:"sc-ffihou-3"})(["color:",";font-size:12px;font-weight:300;margin-top:12px;"],Qe.GRAY_2),Bve=(0,Ge.default)(Be.default).withConfig({displayName:"reliability_metrics__Info",componentId:"sc-ffihou-4"})(["color:",";font-size:12px;font-weight:300;margin-bottom:16px;"],Qe.GRAY_2),Gve=e=>0===e?"success":e>3?"danger":"warning",Uve=()=>{const{data:e,loading:t,error:n}=(()=>{const{data:e,error:t,loading:n}=(0,Is.useQuery)(Rb,{context:{apiVersion:3}});return{data:null===e||void 0===e?void 0:e.stats,error:t,loading:n}})(),i=C.DateTime.now().minus({day:1}).toFormat("MMMM d"),o=(Gve((null===e||void 0===e?void 0:e.last90DaysProviderDrivenShortNoticeCancellationsCount)||0),Gve((null===e||void 0===e?void 0:e.last90DaysProviderDrivenCancellationsCount)||0));return(0,X.jsxs)(Ove,{children:[(0,X.jsx)(zve,{children:i18n.t("reliability_metrics.content.title")}),(0,X.jsxs)(Lve,{children:[(0,X.jsx)(Gb,{elevation:1}),(0,X.jsx)(qve,{children:i18n.t("reliability_metrics.content.last_updated",{lastUpdated:i})})]}),(0,X.jsxs)(Mve,{hasSubtitle:!0,type:"executed_events",children:[(0,X.jsx)(Bve,{children:i18n.t("reliability_metrics.content.graph_clickable_info")}),(0,X.jsx)(yve,{})]}),(0,X.jsx)(Mve,{type:"long_term_relationship",showFilter:!1,navigationPath:"/provider/long_term_relationships"}),(0,X.jsx)(Mve,{type:"provider_driven_cancellations",navigationPath:"/provider/provider_driven_cancellation",children:!n&&(0,X.jsx)(Nve,{loading:t,variant:o,count:(null===e||void 0===e?void 0:e.last90DaysProviderDrivenCancellationsCount)||0,label:"reliability_metrics.content"})}),!1]})},$ve=()=>(0,X.jsx)(Rf,{title:i18n.t("reliability_metrics.header.title"),content:()=>(0,X.jsx)(Uve,{})}),Fve=(0,Ge.default)(qe.default).withConfig({displayName:"relationship_details_card__Card",componentId:"sc-1pfrezm-0"})(["border-radius:8px;background-color:",";padding:10px;width:98%;margin-bottom:10px;elevation:",";",""],Qe.WHITE,1,"box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);"),Hve=(0,Ge.default)(qe.default).withConfig({displayName:"relationship_details_card__TopSection",componentId:"sc-1pfrezm-1"})(["flex-direction:row;justify-content:space-between;padding:3px 0px;"]),Wve=(0,Ge.default)(Be.default).withConfig({displayName:"relationship_details_card__CustomerName",componentId:"sc-1pfrezm-2"})(["font-size:14px;color:",";font-weight:500;text-align:left;flex-shrink:2;"," ",""],Qe.BLACK,({isDesktop:e})=>!e&&`\n  width: ${Iw.default.get("screen").width-150}px;\n  `,"\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  "),Vve=(0,Ge.default)(Be.default).withConfig({displayName:"relationship_details_card__CancelledBooking",componentId:"sc-1pfrezm-3"})(["font-size:14px;color:",";font-weight:600;"],Qe.CRIMSON_1),Kve=(0,Ge.default)(qe.default).withConfig({displayName:"relationship_details_card__DetailsWrapper",componentId:"sc-1pfrezm-4"})(["flex-direction:row;align-items:flex-start;justify-content:flex-start;align-items:center;padding:3px 0px;"]),Yve=(0,Ge.default)(qe.default).withConfig({displayName:"relationship_details_card__Reason",componentId:"sc-1pfrezm-5"})(["flex-direction:row;border-radius:5px;text-align:left;padding:5px;background-color:",";color:",";margin:2px 0px 5px 0px;"],Qe.GRAY_4,Qe.GRAY_1),Xve=(0,Ge.default)(Be.default).withConfig({displayName:"relationship_details_card__EllipsedText",componentId:"sc-1pfrezm-6"})(["text-align:left;"," ",""],({isDesktop:e})=>!e&&`\nwidth: ${Iw.default.get("screen").width-20}px;\n`,"\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  "),Zve=(0,Ge.default)(Xve).withConfig({displayName:"relationship_details_card__Detail",componentId:"sc-1pfrezm-7"})(["font-size:12px;color:",";margin-left:5px;flex-shrink:2;"],Qe.BLACK),Qve=({relationshipDetails:e})=>{const{isDesktop:t}=uu(),{name:n,reason:i,time:o,date:a,frequency:s,address:r}=e;return(0,X.jsxs)(Fve,{children:[(0,X.jsxs)(Hve,{children:[(0,X.jsx)(Wve,{isDesktop:t,numberOfLines:1,children:n}),(0,X.jsx)(Vve,{numberOfLines:1,children:i18n.t("provider_driven_cancellation.canceled_booking")})]}),(0,X.jsx)(Yve,{children:(0,X.jsx)(Be.default,{children:i})}),(0,X.jsxs)(Kve,{children:[(0,X.jsx)(Pa.default,{name:"calendar-check",set:"MaterialCommunityIcons",size:15,color:Qe.GRAY_2}),(0,X.jsx)(Zve,{children:a})]}),(0,X.jsxs)(Kve,{children:[(0,X.jsx)(Pa.default,{name:"clock-outline",set:"MaterialCommunityIcons",size:15,color:Qe.GRAY_2}),(0,X.jsx)(Zve,{children:o})]}),s&&(0,X.jsxs)(Kve,{children:[(0,X.jsx)(Pa.default,{name:"calendar",set:"MaterialCommunityIcons",size:15,color:Qe.GRAY_2}),(0,X.jsx)(Zve,{children:s})]}),(0,X.jsxs)(Kve,{children:[(0,X.jsx)(Pa.default,{name:"location-pin",set:"MaterialIcons",size:15,color:Qe.GRAY_2}),(0,X.jsx)(Zve,{numberOfLines:1,isDesktop:t,children:r})]})]})};Qve.propTypes={relationshipDetails:ze().object.isRequired};const Jve=Qve,ebe=(0,Ge.default)(Nq.SafeAreaView).withConfig({displayName:"provider_driven_cancellation__Container",componentId:"sc-1q4fli3-0"})(["display:flex;text-align:center;margin-top:20px;flex:1;"]),tbe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_driven_cancellation__DateList",componentId:"sc-1q4fli3-1"})(["margin:10px 10px 5px 10px;align-items:center;"]),nbe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_driven_cancellation__Wrapper",componentId:"sc-1q4fli3-2"})(["background-color:",";max-width:120px;border-radius:16px;align-items:center;flex-direction:row;padding:5px 8px;margin-bottom:5px;align-self:flex-start;margin-left:5px;margin-bottom:15px;"],Qe.GRAY_4),ibe=(0,Ge.default)(Be.default).withConfig({displayName:"provider_driven_cancellation__StyledText",componentId:"sc-1q4fli3-3"})(["text-align:center;margin-left:2px;"]),obe=(0,Ge.default)(Aa.default).withConfig({displayName:"provider_driven_cancellation__Loading",componentId:"sc-1q4fli3-4"})(["margin-top:16px;"]),abe=(0,Ge.default)(Be.default).withConfig({displayName:"provider_driven_cancellation__NoData",componentId:"sc-1q4fli3-5"})(["color:",";margin-top:16px;text-align:center;"],Qe.GRAY_3),sbe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_driven_cancellation__PastFilter",componentId:"sc-1q4fli3-6"})(["padding:12px;border:1px solid ",";border-radius:4px;align-self:flex-end;margin-bottom:16px;"],Qe.GRAY_4),rbe=(0,Ge.default)(Be.default).withConfig({displayName:"provider_driven_cancellation__PastFilterValue",componentId:"sc-1q4fli3-7"})(["font-size:13px;font-weight:400;color:",";"],Qe.TEXT_MEDIUM),lbe=(0,Ge.default)(qe.default).withConfig({displayName:"provider_driven_cancellation__ErrorContainer",componentId:"sc-1q4fli3-8"})(["justify-content:center;align-items:center;"]),dbe=(0,Ge.default)(Be.default).withConfig({displayName:"provider_driven_cancellation__Error",componentId:"sc-1q4fli3-9"})(["color:",";text-align:center;"],Qe.CRIMSON_1),cbe=()=>{const[e,t]=(0,K.useState)([]),{data:n,hasNextPage:i,loading:o,loadMore:a,error:s}=(()=>{const{data:e,error:t,loading:n,fetchMore:i}=(0,Is.useQuery)(kb,{variables:{first:10},context:{apiVersion:3}}),{nodes:o,pageInfo:a}=(null===e||void 0===e?void 0:e.providerDrivenCancellations)||{};return{loadMore:(0,K.useCallback)(()=>{a.hasNextPage&&i({variables:{after:a.endCursor},updateQuery:(e,{fetchMoreResult:t})=>t?wb()({},e,t,(e,t)=>{if(jb()(e))return e.concat(t)}):e})},[a,i]),data:o,hasNextPage:null===a||void 0===a?void 0:a.hasNextPage,error:t,loading:n}})();(0,K.useEffect)(()=>
3713{if((null===n||void 0===n?void 0:n.length)>0&&!o){const e=(e=>{const t=e.filter(e=>Math.round(C.DateTime.now().diff(C.DateTime.fromISO(e.cancelledAt),"days").days)>0);return t.reduce((e,t)=>{const n=C.DateTime.fromISO(t.cancelledAt),i=e.find(e=>e.date.diff(n,"days").days<1);return i?i.relationshipDetailsList.push(t):e.push({date:n,relationshipDetailsList:[t]}),e},[])})(n);t(e)}},[o,n]);return o&&!n?(0,X.jsx)(obe,{}):s?(0,X.jsx)(lbe,{children:(0,X.jsx)(dbe,{children:i18n.t("provider.generic.error")})}):(0,X.jsxs)(ebe,{children:[(0,X.jsx)(sbe,{children:(0,X.jsx)(rbe,{children:i18n.t("reliability_metrics.content.past_filter_value",{dayCount:90})})}),0===(null===n||void 0===n?void 0:n.length)&&!o&&(0,X.jsx)(abe,{children:i18n.t("provider_driven_cancellation.list.no_data")}),(0,X.jsx)(Lj.default,{contentContainerStyle:{display:"flex",flexGrow:1,marginBottom:15},data:e,renderItem:({item:e})=>{const{date:t,relationshipDetailsList:n}=e;return(0,X.jsxs)(tbe,{children:[(0,X.jsxs)(nbe,{children:[(0,X.jsx)(Pa.default,{name:"calendar",set:"MaterialCommunityIcons",size:15,color:Qe.BLACK}),(0,X.jsx)(ibe,{children:t.toFormat("y MMM dd")})]}),n.map(e=>{const t=(({bid:e,customer:t,reasonCode:n,cancelledAt:i})=>{if(e){const{starttime:o,duration:a,frequency:s,address:r}=e,l=C.DateTime.fromISO(o),d=l.toFormat("HH:mm"),c=l.plus({seconds:a}).toFormat("HH:mm");return{name:t.name,reason:i18n.t(`provider_driven_cancellation.cancellation_reason.${n}`),time:`${d} - ${c}`,date:C.DateTime.fromISO(i).toFormat("cccc dd MMMM y"),frequency:i18n.t(`provider_driven_cancellation.appointment_frequency.${s||"once"}`),address:r.address}}return{name:t.name,reason:i18n.t(`provider_driven_cancellation.cancellation_reason.${n}`),time:"--",date:C.DateTime.fromISO(i).toFormat("cccc dd MMMM y"),frequency:"--",address:"--"}})(e);return(0,X.jsx)(Jve,{relationshipDetails:t})})]},t)},keyExtractor:e=>null===e||void 0===e?void 0:e.date,onEndReached:()=>{!o&&i&&a()},onEndReachedThreshold:.02,ListFooterComponent:()=>o?(0,X.jsx)(obe,{}):null})]})},ube=()=>{const e=(0,Ks.useHistory)(),{session:{country:t,currentUser:{isFreelance:n}}}=lt();return n||"de"!==t?(0,X.jsx)(Rf,{title:i18n.t("provider_driven_cancellation.page_title"),scrollEnabled:!1,content:()=>(0,X.jsx)(cbe,{}),contentContainerStyle:{flex:1,marginTop:12,justifyContent:"center"}}):(e.goBack(),null)},pbe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-eo6rjm-0"})([""]),mbe=()=>(0,X.jsx)(pbe,{children:(0,X.jsx)(Lj.default,{style:{transform:"none"},contentContainerStyle:{justifyContent:"center"},data:[{name:"Romain Aminot",time:"9:30 - 11:30",address:"f43f4, 10117, Deurschland",reason:"Provider went on vacation",frequencyDay:"Every Tuesday",date:"Tuesday, 27 December 2022"}],renderItem:({item:e})=>(0,X.jsx)(Jve,{relationshipDetails:e}),keyExtractor:e=>e.name})});const fbe=function(){return(0,X.jsx)(Rf,{title:i18n.t("short_notice_cancellations.title"),content:()=>(0,X.jsx)(mbe,{})})},gbe=()=>(0,X.jsx)(fbe,{}),hbe=(0,Ge.default)(ts).withConfig({displayName:"relationship_card__Card",componentId:"sc-1qxip8u-0"})(["border-radius:8px;background-color:",";padding:10px;margin:10px 0;width:95%;align-self:center;elevation:",";",""],Qe.WHITE,1,"box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);"),_be=(0,Ge.default)(qe.default).withConfig({displayName:"relationship_card__TopSection",componentId:"sc-1qxip8u-1"})(["flex-direction:row;justify-content:space-between;padding:3px 0px;"]),xbe=(0,Ge.default)(Be.default).withConfig({displayName:"relationship_card__StyledText",componentId:"sc-1qxip8u-2"})(["font-size:14px;color:",";font-weight:500;"],Qe.BLACK),ybe=(0,Ge.default)(qe.default).withConfig({displayName:"relationship_card__BottomSection",componentId:"sc-1qxip8u-3"})(["flex-direction:row;align-items:flex-start;justify-content:flex-start;padding:3px 0px;"]),vbe=(0,Ge.default)(Be.default).withConfig({displayName:"relationship_card__EventsCount",componentId:"sc-1qxip8u-4"})(["font-size:12px;color:",";margin-left:5px;"],Qe.BLACK),bbe=({relationshipDetails:e})=>{const t=(0,Ks.useHistory)(),{autoTrack:n}=mt(),{customerUserId:i,customerName:o,executedEventsCount:a,firstEventExecutedAt:s,fifthEventExecutedAt:r}=e,l=C.DateTime.fromISO(s).toFormat("LLL dd, yyyy"),d=C.DateTime.fromISO(r).toFormat("LLL dd, yyyy");return(0,X.jsxs)(hbe,{onPress:()=>{n("User clicked on customer name to open customer details",`from long term customers page under reliability metrics - customerId: ${i}`),i&&t.push(Ri(i))},eventAction:`provider driven cancellation card for customer: id:${i} name:${o}`,eventLabel:"from provider driven cancellation page",children:[(0,X.jsxs)(_be,{children:[(0,X.jsx)(xbe,{children:o}),(0,X.jsx)(xbe,{children:d})]}),(0,X.jsxs)(ybe,{children:[(0,X.jsx)(Pa.default,{name:"check",set:"MaterialCommunityIcons",size:15,color:Qe.BLACK}),(0,X.jsx)(vbe,{children:i18n.t("reliability_metrics.long_term_relationship.executed_events_count",{eventCount:a})}),(0,X.jsxs)(vbe,{children:["(",i18n.t("reliability_metrics.long_term_relationship.first_event_date",{date:l}),")"]})]})]})};bbe.propTypes={relationshipDetails:qc.default.object};const wbe=bbe,Cbe=(0,Ge.default)(Nq.SafeAreaView).withConfig({displayName:"long_term_relationships__Container",componentId:"sc-zlrfb5-0"})(["display:flex;text-align:center;margin-top:20px;flex:1;"]),jbe=(0,Ge.default)(xm.ActivityIndicator).withConfig({displayName:"long_term_relationships__Loading",componentId:"sc-zlrfb5-1"})(["margin-top:16px;"]),Ibe=(0,Ge.default)(Be.default).withConfig({displayName:"long_term_relationships__StyledText",componentId:"sc-zlrfb5-2"})(["color:",";margin-top:16px;text-align:center;"],Qe.GRAY_3),Tbe=(0,Ge.default)(qe.default).withConfig({displayName:"long_term_relationships__ErrorContainer",componentId:"sc-zlrfb5-3"})(["justify-content:center;align-items:center;"]),Ebe=(0,Ge.default)(Be.default).withConfig({displayName:"long_term_relationships__Error",componentId:"sc-zlrfb5-4"})(["color:",";text-align:center;"],Qe.CRIMSON_1),Nbe=()=>{const{data:e,loading:t,hasNextPage:n,loadMore:i,error:o}=(()=>{const{data:e,error:t,loading:n,fetchMore:i}=(0,Is.useQuery)(Nb,{variables:{first:10},context:{apiVersion:3}}),{nodes:o,pageInfo:a}=(null===e||void 0===e?void 0:e.longTermCustomers)||{};return{loadMore:(0,K.useCallback)(()=>{a.hasNextPage&&i({variables:{after:a.endCursor},updateQuery:(e,{fetchMoreResult:t})=>t?wb()({},e,t,(e,t)=>{if(jb()(e))return e.concat(t)}):e})},[a,i]),data:o,hasNextPage:null===a||void 0===a?void 0:a.hasNextPage,error:t,loading:n}})();return t&&!e?(0,X.jsx)(jbe,{}):o?(0,X.jsx)(Tbe,{children:(0,X.jsx)(Ebe,{children:i18n.t("provider.generic.error")})}):(0,X.jsxs)(Cbe,{children:[0===(null===e||void 0===e?void 0:e.length)&&!t&&(0,X.jsx)(Ibe,{children:i18n.t("long_term_relationships.list.no_data")}),(0,X.jsx)(Lj.default,{contentContainerStyle:{display:"flex",flexGrow:1,marginBottom:15},data:e,renderItem:({item:e})=>(0,X.jsx)(wbe,{relationshipDetails:e}),keyExtractor:e=>e.customerName,onEndReached:()=>{!t&&n&&i()},onEndReachedThreshold:.5,ListFooterComponent:()=>t?(0,X.jsx)(jbe,{}):null})]})},kbe=()=>{const e=(0,Ks.useHistory)(),{session:{country:t,currentUser:{isFreelance:n}}}=lt();return n||"de"!==t?(0,X.jsx)(Rf,{title:i18n.t("long_term_relationships.page_title"),scrollEnabled:!1,content:()=>(0,X.jsx)(Nbe,{}),contentContainerStyle:{flex:1,marginTop:12,justifyContent:"center"}}):(e.goBack(),null)},Rbe=e=>({latitude:e[1],longitude:e[0]}),Sbe=e=>e.map(Rbe),Abe=e=>{const t=e.geometry;switch(t.type){case"Point":return[Rbe(t.coordinates)];case"MultiPoint":return t.coordinates.map(Rbe);case"LineString":return[Sbe(t.coordinates)];case"MultiLineString":case"Polygon":return t.coordinates.map(Sbe);case"MultiPolygon":return t.coordinates.map(e=>e.map(Sbe));default:return[]}},Pbe=(e,t)=>
3713{const n={feature:t,id:t.id};return"Polygon"===t.geometry.type||"MultiPolygon"===t.geometry.type?(n.coordinates=e[0],e.length>1&&(n.holes=e.slice(1))):n.coordinates=e,n},Dbe=(e,t)=>e.concat(t),Mbe=(e,...t)=>!!e.geometry&&t.includes(e.geometry.type);var Obe=n(7559);const zbe=({paths:e,strokeColor:t,strokeWeight:n,fillColor:i,onClick:o})=>{const a=(0,Obe.useMap)(),s=(0,K.useRef)(null),r=(0,K.useRef)(null);return(0,K.useEffect)(()=>{if(!a)return;const l=new google.maps.Polygon({paths:e,strokeColor:t,strokeWeight:n,fillColor:i,editable:!1,map:a});return r.current=l.addListener("click",o),s.current=l,()=>{var e;null===(e=r.current)||void 0===e||e.remove(),r.current=null,l.setMap(null),s.current=null}},[a]),(0,K.useEffect)(()=>{s.current&&s.current.setOptions({paths:e,strokeColor:t,strokeWeight:n,fillColor:i})},[e,t,n,i]),(0,K.useEffect)(()=>{var e;s.current&&(null===(e=r.current)||void 0===e||e.remove(),r.current=s.current.addListener("click",o))},[o]),null},Lbe=K.memo(({overlays:e,providerAreas:t,handleUnselectPostcode:n})=>(0,X.jsx)(X.Fragment,{children:e.map((e,i)=>{if("polygon"===e.type){const o=t.find(t=>t.postcode.name===e.id);return(0,X.jsx)(zbe,{paths:[e.coordinates.map(e=>({lat:e.latitude,lng:e.longitude})),...(e.holes||[]).map(e=>e.map(e=>({lat:e.latitude,lng:e.longitude})))],strokeColor:Qe.BLACK,strokeWeight:2,fillColor:!1===o.active?Qe.CRIMSON_1:Qe.CTA_GREEN,onClick:()=>n(e.id)},`${e.id}_${i}`)}})})),qbe=({region:e,overlays:t,providerAreas:n,workLocation:i,onMapLoaded:o,handleUnselectPostcode:a,style:s})=>{const r=(0,K.useRef)(!1),l=(0,K.useMemo)(()=>({lat:e.latitude,lng:e.longitude}),[e.latitude,e.longitude]),d=(0,K.useMemo)(()=>{const t=Math.max(e.latitudeDelta||0,1e-6),n=Math.log2(360/t);return Math.max(0,Math.min(21,n))},[e.latitudeDelta]),c=(0,K.useCallback)(()=>{r.current||(r.current=!0,o())},[o]),u=(0,K.useMemo)(()=>{const e=s&&"object"===typeof s?s:{};return Object.assign({width:"100%",height:"100%"},e)},[s]);return(0,X.jsx)(Obe.APIProvider,{apiKey:E("EXPO_PUBLIC_GOOGLE_MAPS_API_KEY_WEB"),children:(0,X.jsxs)(Obe.Map,{defaultCenter:l,defaultZoom:d,onTilesLoaded:c,style:u,children:[(0,X.jsx)(Obe.Marker,{position:{lat:i.lat,lng:i.lng}}),(0,X.jsx)(Lbe,{overlays:t,providerAreas:n,handleUnselectPostcode:a})]})})},Bbe=xt`
3714  query providerPolygons {
3715    postcodePolygons {
3716      id
3717      center {
3718        lat
3719        lng
3720      }
3721      geometry
3722    }
3723  }
3724`,Gbe=_t.gql`
3725  query providerFetchWorkLocations {
3726    currentProvider {
3727      id
3728      workLocation {
3729        lat
3730        lng
3731      }
3732      providerAreas {
3733        active
3734        postcode {
3735          id
3736          name
3737        }
3738      }
3739    }
3740  }
3741`,Ube=_t.gql`
3742  mutation updateProviderAreas($areas: [AreaType]!) {
3743    updateProviderAreas(areas: $areas) {
3744      result
3745    }
3746  }
3747`,$be=(0,Ge.default)(qe.default).withConfig({displayName:"page_tip__Container",componentId:"sc-a9ia99-0"})(["margin:15px 16px 20px 16px;flex:1;"]),Fbe=(0,Ge.default)(rf.default).withConfig({displayName:"page_tip__Title",componentId:"sc-a9ia99-1"})(["margin-bottom:35px;text-align:center;font-size:14px;color:",";font-weight:600;"],Qe.TEXT_DARK),Hbe=(0,Ge.default)(rf.default).withConfig({displayName:"page_tip__Description",componentId:"sc-a9ia99-2"})(["margin-bottom:15px;text-align:center;font-size:20px;color:",";"],Qe.TEXT_DARK);const Wbe=function({isOpen:e,onClose:t}){const{isMobile:n}=uu(),i=n?"mobile":"desktop";return(0,X.jsx)(zw,{size:"small",isOpen:e,onClose:t,displayCloseButton:!0,children:(0,X.jsxs)($be,{elevation:1,children:[(0,X.jsx)(Fbe,{children:i18n.t("work_location.page_usage.title")}),(0,X.jsx)(Hbe,{children:i18n.t(`work_location.${i}
3747_page_usage.description.part_1`)}),(0,X.jsx)(Hbe,{children:i18n.t(`work_location.${i}_page_usage.description.part_2`)}),(0,X.jsx)(Hbe,{children:i18n.t("work_location.page_usage.description.part_3")}),(0,X.jsx)(ms,{onPress:t,centered:!0,variant:"main",testID:"WorkLocation::PageTip::ConfirmButton",children:i18n.t("work_location.page_usage.cta_text")})]})})},Vbe=(0,Ge.default)(qe.default).withConfig({displayName:"work_location__Container",componentId:"sc-1kcymkh-0"})(["display:flex;flex-direction:column;"]),Kbe=(0,Ge.default)(qe.default).withConfig({displayName:"work_location__MapViewWrapper",componentId:"sc-1kcymkh-1"})(["min-height:",";height:",";"],({webHeight:e,mobileHeight:t})=>e,"90%"),Ybe=(0,Ge.default)(qe.default).withConfig({displayName:"work_location__MapContainer",componentId:"sc-1kcymkh-2"})(["position:absolute;left:0;right:0;top:0;bottom:0;"]),Xbe=(0,Ge.default)(qe.default).withConfig({displayName:"work_location__ButtonWrapper",componentId:"sc-1kcymkh-3"})(["margin:10px 0;min-height:50px;"]),Zbe=(0,Ge.default)(Be.default).withConfig({displayName:"work_location__Error",componentId:"sc-1kcymkh-4"})(["margin-top:24px;color:",";font-size:13px;text-align:center;"],Qe.CRIMSON_1),Qbe=((0,Ge.default)(qe.default).withConfig({displayName:"work_location__BlurredBox",componentId:"sc-1kcymkh-5"})(["min-height:","px;height:100%;background-color:",";z-index:1;align-items:center;justify-content:center;"],({webHeight:e,mobileHeight:t})=>e,Qe.WHITE),({onboarding:e})=>{const{session:{currentUser:t},toast:{showToastMessage:n}}=lt(),{data:i,loading:o,error:a}=(()=>{const{data:e,error:t,loading:n}=(0,Is.useQuery)(Bbe,{context:{apiVersion:3},fetchPolicy:"no-cache"});return{data:e,error:t,loading:n}})(),{workLocation:s,providerAreas:r,fetching:l}=(()=>{const{data:e,loading:t}=(0,Is.useQuery)(Gbe,{fetchPolicy:"no-cache"});return{workLocation:null===e||void 0===e?void 0:e.currentProvider.workLocation,providerAreas:null===e||void 0===e?void 0:e.currentProvider.providerAreas,fetching:t}})(),{updateProviderAreas:d,updating:c}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(Ube);return{updateProviderAreas:t=>e({variables:{areas:t}}),updating:t,errorUpdating:n}})(),[u,p]=(0,K.useState)(!0),[m,f]=(0,K.useState)(!0),[g,h]=(0,K.useState)(),[_,x]=(0,K.useState)(!1),[y,v]=(0,K.useState)(),[b,w]=(0,K.useState)([]),{isMobile:C}=uu(),{markRequirementAsCompleted:j}=Es(),I=(0,Ks.useHistory)();(0,K.useEffect)(()=>{i&&!o&&w(((e=[])=>{const t=e.filter(e=>Mbe(e,"Point","MultiPoint")).map(e=>Abe(e).map(t=>Pbe(t,e))).reduce(Dbe,[]).map(e=>Object.assign({},e,{type:"point"})),n=e.filter(e=>Mbe(e,"LineString","MultiLineString")).map(e=>Abe(e).map(t=>Pbe(t,e))).reduce(Dbe,[]).map(e=>Object.assign({},e,{type:"polyline"})),i=e.filter(e=>Mbe(e,"MultiPolygon")).map(e=>Abe(e).map(t=>Pbe(t,e))).reduce(Dbe,[]),o=e.filter(e=>Mbe(e,"Polygon")).map(e=>Pbe(Abe(e),e)).reduce(Dbe,[]).concat(i).map(e=>Object.assign({},e,{type:"polygon"}));return t.concat(n).concat(o)})(i.postcodePolygons))},[o]),(0,K.useEffect)(()=>{!l&&s&&(v({latitude:s.lat,longitude:s.lng,latitudeDelta:.04,longitudeDelta:.04}),h(r))},[l]),(0,K.useEffect)(()=>{e&&j(Tc)},[e]);const T=(0,K.useCallback)(e=>{h(t=>t.map(t=>t.postcode.name===e?Object.assign({},t,{active:!(null===t.active||t.active)}):Object.assign({},t,{active:!(!t.active&&null!==t.active)}))),x(!0)},[]);if(o||l||!y)return(0,X.jsx)(Aa.default,{});const E=C?"60vh":"70vh";return(0,X.jsxs)(Vbe,{children:[a&&(0,X.jsx)(Zbe,{children:i18n.t("ui.error.generic")}),m&&(0,X.jsx)(Wbe,{isOpen:m,onClose:()=>f(!1)}),(0,X.jsxs)(Kbe,{webHeight:E,mobileHeight:500,children:[!1,(0,X.jsx)(Ybe,{children:(0,X.jsx)(qbe,{zoomEnabled:!0,scrollEnabled:!0,region:y,overlays:b,providerAreas:g,workLocation:s,onMapLoaded:()=>{p(!1)},onRegionChangeComplete:e=>{e.latitude.toFixed(6)===y.latitude.toFixed(6)&&e.longitude.toFixed(6)===y.longitude.toFixed(6)||v(e)},handleUnselectPostcode:T,style:{width:"100%",height:"100%"}})})]}),(0,X.jsx)(Xbe,{children:_&&(0,X.jsx)(ms,{onPress:async()=>{var e;const i=g.map(e=>({postcode:e.postcode.name,active:e.active}));null!==(e=(await d(i)).data.updateProviderAreas)&&void 0!==e&&e.result?(x(!1),t.onboarded||I.push(wi()),n({message:i18n.t("work_location.successfully.updated"),type:"success"})):n({message:i18n.t("ui.error.generic")})}
3747,disabled:c,centered:!0,fontSize:"14px",children:i18n.t("work_location.update")})})]})});Qbe.propTypes={onboarding:ze().bool.isRequired};const Jbe=Qbe,ewe=()=>{const{loading:e,blocked:t,status:n}=F8(Tc);return e?(0,X.jsx)(Rf,{title:i18n.t("work_location.page_title"),content:()=>(0,X.jsx)(Aa.default,{})}):t?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(Rf,{title:i18n.t("work_location.page_title"),scrollEnabled:!0,content:()=>(0,X.jsx)(Jbe,{onboarding:n!==mc}),centeredContent:!1,contentContainerStyle:{flex:1,justifyContent:"center",marginTop:10,width:"100%",alignSelf:"center"}})},twe="step_duration",nwe="step_timeslots",iwe="step_review",owe="submit_error_generic",awe="submit_error_slot_unavailable",swe=(e,t)=>i18n.t("event_provider_amendment.review_step.event_date_time",{date:Nce(e),timeRange:kce(e,t),duration:Rce(t)}),rwe=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__Container",componentId:"sc-a4dy4p-0"})(["flex-grow:1;flex-shrink:1;padding-top:24px;"]),lwe=(0,Ge.default)(Vf.default).withConfig({displayName:"review_step__Details",componentId:"sc-a4dy4p-1"})(["flex:1;"]),dwe=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__DesktopDetails",componentId:"sc-a4dy4p-2"})(["flex-grow:1;"]),cwe=(0,Ge.default)(Be.default).withConfig({displayName:"review_step__Heading",componentId:"sc-a4dy4p-3"})(["color:",";font-size:16px;font-weight:700;margin-bottom:16px;"],Qe.TEXT_DARK),uwe=(0,Ge.default)(Be.default).withConfig({displayName:"review_step__DateTimeText",componentId:"sc-a4dy4p-4"})(["color:",";font-size:14px;font-weight:600;"],Qe.TEXT_DARK),pwe=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__ArrowContainer",componentId:"sc-a4dy4p-5"})(["align-items:center;padding:12px 0;"]),mwe=(0,Ge.default)(Be.default).withConfig({displayName:"review_step__ErrorText",componentId:"sc-a4dy4p-6"})(["color:",";text-align:center;font-size:13px;font-weight:600;margin-top:16px;"],Qe.CRIMSON_1),fwe=(0,Ge.default)(qe.default).withConfig({displayName:"review_step__CtaArea",componentId:"sc-a4dy4p-7"})(["margin-top:auto;padding-top:16px;"]);const gwe=function({currentStartTime:e,currentDuration:t,newStartTime:n,newDuration:i,loading:o,failed:a,onConfirm:s}){const{isDesktop:r}=uu(),l=r?dwe:lwe;return(0,X.jsxs)(rwe,{testID:"event:reschedule:review",children:[(0,X.jsx)(cwe,{children:i18n.t("event_provider_amendment.review_step.title")}),(0,X.jsxs)(l,{children:[(0,X.jsx)(wL,{}),(0,X.jsxs)(Jce,{children:[(0,X.jsx)(eue,{children:i18n.t("event_provider_amendment.review_step.current_details")}),(0,X.jsx)(uwe,{testID:"event:reschedule:review:currentDetails",children:swe(e,t)})]}),(0,X.jsx)(pwe,{children:(0,X.jsx)(Pa.default,{name:"arrow-downward",size:28,color:Qe.GRAY_3})}),(0,X.jsxs)(Jce,{$active:!0,children:[(0,X.jsx)(eue,{$active:!0,children:i18n.t("event_provider_amendment.review_step.new_details")}),(0,X.jsx)(uwe,{testID:"event:reschedule:review:newDetails",children:swe(n,i)})]}),a&&(0,X.jsx)(mwe,{testID:"event:reschedule:review:error",children:i18n.t("provider.generic.error")})]}),(0,X.jsx)(fwe,{children:(0,X.jsx)(ms,{testID:"event:reschedule:review:confirm",onPress:s,disabled:o,loading:o,stretched:!0,disableWhenOffline:!0,children:i18n.t("event_provider_amendment.review_step.confirm_cta")})})]})},hwe=(0,Ge.default)(qe.default).withConfig({displayName:"success_modal__DragHandle",componentId:"sc-1ytb91q-0"})(["width:56px;height:4px;border-radius:25px;background-color:",";align-self:center;margin-top:8px;"],Qe.GRAY_BORDER),_we=(0,Ge.default)(qe.default).withConfig({displayName:"success_modal__Container",componentId:"sc-1ytb91q-1"})(["flex-grow:1;flex-shrink:1;padding:24px 16px 20px 16px;"]);const xwe=function({isOpen:e,onClose:t,eventId:n,customerName:i,date:o,timeRange:a}){const s=ft();return(0,K.useEffect)(()=>{e&&s({userFlow:Ua,action:Xa.complete,objectName:"event reschedule",properties:{eventId:n}})},[e]),(0,X.jsxs)(zw,{isOpen:e,onClose:t,size:"fit",testID:"event:reschedule:success",children:[(0,X.jsx)(hwe,{}),(0,X.jsx)(_we,{children:(0,X.jsx)(qL,{testID:"event:reschedule:success:content",title:i18n.t("event_provider_amendment.success_modal.title"),description:i18n.t("event_provider_amendment.success_modal.description",{date:o,timeRange:a,customerName:i}),bannerComponent:DL,primaryButton:{title:i18n.t("event_provider_amendment.success_modal.cta"),testID:"event:reschedule:success:confirm",onPress:t,trackingUserFlow:Ua,trackingObjectName:"got it on reschedule success",trackingProperties:{eventId:n}}})})]})},ywe={[twe]:"duration step",[nwe]:"timeslots step",[iwe]:"review step"},vwe=({registerBackHandler:e})=>{var t,n,i;const{analytics:{autoTrackEnhanced:o},events:{fetchEvent:a},session:{settings:s}}=lt(),{id:r}=(0,Ks.useParams)(),l=(0,Ks.useHistory)(),{syncEvent:d}=Nv(),[c,u]=(0,K.useState)(null),[p,m]=(0,K.useState)(!0),[f,g]=(0,K.useState)(0),[h,_]=(0,K.useState)(),[x,y]=(0,K.useState)(),[v,b]=(0,K.useState)(!1),[w,j]=(0,K.useState)(),I=null===s||void 0===s?void 0:s.isProviderUnderExperimentAbTest(Mo),T=null===c||void 0===c||null===(t=c.details)||void 0===t?void 0:t.startTime,E=null===c||void 0===c||null===(n=c.details)||void 0===n?void 0:n.duration,N=x??E,k=h??twe,R=ct(null===c||void 0===c||null===(i=c.details)||void 0===i?void 0:i.period),{createAmendment:S,loading:A}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(iq);return{createAmendment:({eventId:t,startTime:n,duration:i})=>e({context:{apiVersion:3},variables:{eventId:t,slot:{startTime:n,duration:i}}}),loading:t,error:n}})(),{handleWeekChange:P,handleDaySelect:D,handleSlotSelect:M,refresh:O,selectedDay:z,selectedSlot:L,availableDays:q,slots:B,currentDate:G,loading:U,error:$}=aq({eventId:null===c||void 0===c?void 0:c.id,duration:N,startTime:T,enabled:k!==twe}),F=!!(L&&N&&T&&E),H=!!c&&!c.amendableByProvider,W=k===iwe?F?iwe:nwe:k,V=()=>{b(!1),l.goBack()},Y=()=>{if(!v)return W===iwe?(j(void 0),void _(nwe)):void(W!==nwe?l.goBack():_(twe));V()},Z=(e,t,n)=>o({userFlow:Ua,action:e,objectName:t,properties:n}
3747),Q=!p&&!H&&!v;if((0,K.useEffect)(()=>{null===e||void 0===e||e(Y)}),(0,K.useEffect)(()=>{let e=!0;return async function(){m(!0);const t=await a(r);e&&(u(t||null),m(!1))}(),()=>{e=!1}},[r,f]),(0,K.useEffect)(()=>{H&&l.goBack()},[H]),(0,K.useEffect)(()=>{Q&&c&&Z(Xa.view,ywe[W],Object.assign({eventId:c.id},N?{duration:N}:{},W===iwe&&L?{startTime:L.startTime}:{}))},[W,Q]),p)return(0,X.jsx)(Aa.default,{testID:"event:reschedule:loading"});if(!c)return(0,X.jsx)(Fce,{testID:"event:reschedule:error",message:i18n.t("provider.generic.error"),retryLabel:i18n.t("event_provider_amendment.retry_cta"),onRetry:()=>g(f+1)});if(H)return null;const J=()=>_(nwe),ee=async()=>{if(L&&N){Z(Xa.click,"confirm reschedule request",{eventId:c.id,startTime:L.startTime,duration:N}),j(void 0);try{var e;const i=await S({eventId:c.id,startTime:L.startTime,duration:N}),o=null===i||void 0===i||null===(e=i.data)||void 0===e?void 0:e.createEventProviderAmendmentFromTimeSlot;if(null!==o&&void 0!==o&&o.success){var t;if(I)d(null===(t=c.relationship)||void 0===t?void 0:t.id);return void b(!0)}if(null!==(n=null===o||void 0===o?void 0:o.errors)&&void 0!==n&&n.some(e=>(null===e||void 0===e?void 0:e.code)===d6.SlotUnavailable))return j(awe),_(nwe),void O();j(owe)}catch{j(owe)}var n}};if(v&&L&&N){var te;const e=C.DateTime.fromISO(L.startTime);return(0,X.jsx)(xwe,{isOpen:!0,onClose:V,eventId:c.id,customerName:null===(te=c.customer)||void 0===te?void 0:te.firstname,date:Nce(e),timeRange:kce(e,N)})}return W===iwe?(0,X.jsx)(gwe,{currentStartTime:C.DateTime.fromISO(T),currentDuration:E,newStartTime:C.DateTime.fromISO(L.startTime),newDuration:N,loading:A,failed:w===owe,onConfirm:ee}):W===twe?(0,X.jsx)(Oce,{durations:R.map(({value:e})=>e),duration:N,i18nNamespace:"event_provider_amendment",testIDPrefix:"event:reschedule:duration",onDurationChange:y,onContinue:J}):(0,X.jsx)(Qce,{currentDate:G,availableDays:q,selectedDay:z,selectedSlot:L,slots:B,loading:U,error:$,slotUnavailable:w===awe,i18nNamespace:"event_provider_amendment",testIDPrefix:"event:reschedule:timeslots",onWeekChange:P,onDaySelect:D,onSlotSelect:M,onRetry:O,onContinue:()=>_(iwe)})},bwe=()=>{const e=(0,K.useRef)(void 0),t=(0,Ks.useHistory)(),{isDesktop:n}=uu();return(0,X.jsx)(PO,{title:i18n.t("event_provider_amendment.page_title"),scrollEnabled:n,contentContainerStyle:{paddingBottom:24},onBackClick:()=>e.current?e.current():t.goBack(),content:()=>(0,X.jsx)(vwe,{registerBackHandler:t=>{e.current=t}})})},wwe=(0,Ge.default)(ts).withConfig({displayName:"work_status__Container",componentId:"sc-vjngpq-0"})(["background-color:",";"," border-radius:8px;padding:16px 10px;elevation:",";"," display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;width:98%;"],Qe.WHITE,({active:e})=>e&&`background-color: ${Qe.GREEN_IRISH_BREEZE};`,1,"box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);"),Cwe=(0,Ge.default)(Be.default).withConfig({displayName:"work_status__WorkStatusText",componentId:"sc-vjngpq-1"})(["",""],({active:e})=>e&&`color: ${Qe.TEXT_DARK};\n    font-weight: 600;\n  `),jwe=({workStatus:e,limitedToBidType:t,value:n,changeWorkStatus:i,disabled:o,loading:a})=>{const s=!t&&e===n||t===n;return(0,X.jsxs)(wwe,{active:s,onPress:()=>i(n),disabled:s||o,testID:`button_work_status_${n}${s?"_selected":""}`,children:[(0,X.jsx)(Cwe,{active:s,children:i18n.t(`work_status.content.status.${n}`)}),a&&(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})]},n)},Iwe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-19v9umg-0"})(["padding-top:2px;align-items:center;"]),Twe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-19v9umg-1"})(["color:",";text-align:center;"],Qe.CRIMSON_1),Ewe=()=>{const{session:{currentUser:e},toast:{showToastMessage:t}}=lt(),[n,i]=(0,K.useState)(),{limitedToBidType:o,workStatus:a,workStatusBeforeFull:s,error:r,refetch:l,loading:d}=S3(),{updateWorkStatus:c,loading:u,error:p}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(A3);return{updateWorkStatus:({workStatus:t,limitedToBidType:n})=>e({variables:{workStatus:t,limitedToBidType:n},context:{apiVersion:3}}),loading:t,error:n}})(),m=(0,K.useMemo)(()=>a===xo.trial||s===xo.trial&&a!==xo.active?[xo.trial,xo.full,xo.one_off,xo.repeat]:[xo.active,xo.full,xo.one_off,xo.repeat],[a,s]),f=async n=>{var o,a;i(n);const s={workStatus:[xo.one_off,xo.repeat].includes(n)?m[0]:n,limitedToBidType:[xo.one_off,xo.repeat].includes(n)?n:null},r=await c(s);null!==r&&void 0!==r&&null!==(o=r.data)&&void 0!==o&&null!==(a=o.updateWorkStatus)&&void 0!==a&&a.success?(l(),e.setWorkStatus(s.workStatus),t({message:i18n.t(`work_status.content.success_message.${n}`),type:"success",duration:6e3})):t({message:i18n.t("provider.generic.error")}),i(void 0)},g=a!==xo.active&&a!==xo.full;return(0,X.jsxs)(Iwe,{children:[d&&(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS}),!d&&(r||p)&&(0,X.jsx)(Twe,{children:i18n.t("provider.generic.error")}),!d&&!r&&m.map(e=>(0,X.jsx)(jwe,{value:e,limitedToBidType:o,workStatus:a,changeWorkStatus:f,disabled:u||g,loading:n===e},e))]})},Nwe=()=>(0,X.jsx)(Rf,{title:i18n.t("work_status.header.title"),content:()=>(0,X.jsx)(Ewe,{}),scrollEnabled:!0}),kwe=()=>{const e=(0,Ks.useHistory)(),{session:{currentUser:{workStatus:t}}}=lt();return t!==xo.active&&t!==xo.full&&e.goBack(),(0,X.jsx)(Nwe,{})},Rwe=xt`
3748  query dac7Stats {
3749    dac7Stats {
3750      id
3751      q1 {
3752        earnings
3753        eventsCount
3754        platformWithholdingsGross
3755        platformWithholdingsNet
3756        platformWithholdingsVat
3757      }
3758      q2 {
3759        earnings
3760        eventsCount
3761        platformWithholdingsGross
3762        platformWithholdingsNet
3763        platformWithholdingsVat
3764      }
3765      q3 {
3766        earnings
3767        eventsCount
3768        platformWithholdingsGross
3769        platformWithholdingsNet
3770        platformWithholdingsVat
3771      }
3772      q4 {
3773        earnings
3774        eventsCount
3775        platformWithholdingsGross
3776        platformWithholdingsNet
3777        platformWithholdingsVat
3778      }
3779      year
3780      providerDetails {
3781        id
3782        accountHolderName
3783        addressStreetName
3784        addressBuildingIdentifier
3785        addressPostcode
3786        addressTown
3787        countryCode
3788        bic
3789        birthCountry
3790        birthPlace
3791        dob
3792        firstName
3793        iban
3794        lastName
3795        residenceState
3796        taxId
3797        vatId
3798      }
3799    }
3800  }
3801`,Swe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Container",componentId:"sc-1cmxv80-0"})(["align-items:center;margin-top:2px;padding-bottom:30px;"]),Awe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Error",componentId:"sc-1cmxv80-1"})(["color:",";text-align:center;"],Qe.CRIMSON_1),Pwe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Card",componentId:"sc-1cmxv80-2"})(["border-radius:8px;background-color:",";width:98%;padding-bottom:8px;margin-bottom:20px;elevation:",";",""],Qe.WHITE,1,"box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);"),Dwe=(0,Ge.default)(qe.default).withConfig({displayName:"content__CardHeader",componentId:"sc-1cmxv80-3"})(["flex-direction:row;align-items:center;justify-content:space-between;padding:10px;"]),Mwe=(0,Ge.default)(Be.default).withConfig({displayName:"content__CardTitle",componentId:"sc-1cmxv80-4"})(["color:",";font-weight:600;font-size:16px;"],Qe.TEXT_DARK),Owe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Year",componentId:"sc-1cmxv80-5"})(["color:",";font-weight:600;font-size:16px;"],Qe.TEXT_DARK),zwe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Details",componentId:"sc-1cmxv80-6"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:5px 10px;margin:0 8px;border-radius:4px;",""],({bgColor:e})=>e&&`background-color: ${Qe.GRAY_BORDER};`),Lwe=(0,Ge.default)(qe.default).withConfig({displayName:"content__Row",componentId:"sc-1cmxv80-7"})([""," flex-direction:row;justify-content:space-between;align-items:center;padding:10px 10px;"],({bgColor:e})=>e&&`background-color: ${Qe.GRAY_BORDER};`),qwe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Label",componentId:"sc-1cmxv80-8"})(["color:",";"],Qe.TEXT_DARK),Bwe=(0,Ge.default)(Be.default).withConfig({displayName:"content__Value",componentId:"sc-1cmxv80-9"})(["color:",";font-weight:600;text-align:right;"," max-width:200px;"],Qe.TEXT_DARK,({small:e})=>e&&"font-size: 12px;"),Gwe=(0,Ge.default)(Be.default).withConfig({displayName:"content__NoData",componentId:"sc-1cmxv80-10"})(["text-align:center;"]),Uwe=()=>{const{session:{currentUser:e}}=lt(),{dac7Stats:t,error:n,loading:i}=(()=>{const{data:e,error:t,loading:n}=(0,Is.useQuery)(Rwe,{context:{apiVersion:3},fetchPolicy:"network-only"});return{dac7Stats:null===e||void 0===e?void 0:e.dac7Stats,error:t,loading:n}})();if(i)return(0,X.jsx)(Aa.default,{size:"small",color:Qe.GREEN_SUMMER_GRASS});if(n)return(0,X.jsx)(Awe,{children:i18n.t("provider.generic.error")});if(!t)return(0,X.jsx)(Gwe,{children:i18n.t("annual_overview.content.no_data")});const o=null===t||void 0===t?void 0:t.providerDetails;return(0,X.jsxs)(Swe,{children:[(0,X.jsxs)(Pwe,{children:[(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.first_name")}),(0,X.jsx)(Bwe,{children:o.firstName})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.last_name")}),(0,X.jsx)(Bwe,{children:o.lastName})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.tin")}),(0,X.jsx)(Bwe,{small:!0,children:o.taxId||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.vat")}),(0,X.jsx)(Bwe,{small:!0,children:o.vatId||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.address_street")}),(0,X.jsx)(Bwe,{small:!0,children:o.addressStreetName||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.building_identifier")}),(0,X.jsx)(Bwe,{small:!0,children:o.addressBuildingIdentifier||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.post_code")}),(0,X.jsx)(Bwe,{small:!0,children:o.addressPostcode||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.city")}),(0,X.jsx)(Bwe,{small:!0,children:o.addressTown||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.country_code")}),(0,X.jsx)(Bwe,{small:!0,children:o.countryCode||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.date_of_birth")}),(0,X.jsx)(Bwe,{children:C.DateTime.fromISO(o.dob).toFormat("dd MMM y")})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.place_of_birth")}),(0,X.jsx)(Bwe,{children:e.birthPlaceDetails||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.account_holder")}),(0,X.jsx)(Bwe,{children:o.accountHolderName||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.iban")}),(0,X.jsx)(Bwe,{children:o.iban||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.bic")}),(0,X.jsx)(Bwe,{children:o.bic||"-"})]}),(0,X.jsxs)(Lwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.state_of_residence")}),(0,X.jsx)(Bwe,{children:o.residenceState||"-"})]})]}),Object.keys(t).filter(e=>e.startsWith("q")).map(e=>(0,X.jsxs)(Pwe,{children:[(0,X.jsxs)(Dwe,{children:[(0,X.jsx)(Mwe,{children:e.toUpperCase()}),(0,X.jsx)(Owe,{children:t.year})]}),(0,X.jsxs)(zwe,{bgColor:!0,children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.earnings")}),(0,X.jsx)(Bwe,{children:fh(t[e].earnings||0,{withSymbol:!0})})]}),(0,X.jsxs)(zwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.events_count")}),(0,X.jsx)(Bwe,{children:t[e].eventsCount})]}),(0,X.jsxs)(zwe,{bgColor:!0,children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.withholdings_gross")}
3801),(0,X.jsx)(Bwe,{children:fh(t[e].platformWithholdingsGross||0,{withSymbol:!0})})]}),(0,X.jsxs)(zwe,{children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.withholdings_net")}),(0,X.jsx)(Bwe,{children:fh(t[e].platformWithholdingsNet||0,{withSymbol:!0})})]}),(0,X.jsxs)(zwe,{bgColor:!0,children:[(0,X.jsx)(qwe,{children:i18n.t("annual_overview.content.withholdings_vat")}),(0,X.jsx)(Bwe,{children:fh(t[e].platformWithholdingsVat||0,{withSymbol:!0})})]})]},e))]})},$we=()=>(0,X.jsx)(Rf,{title:i18n.t("annual_overview.header.title"),content:()=>(0,X.jsx)(Uwe,{}),scrollEnabled:!0}),Fwe=()=>(0,X.jsx)($we,{}),Hwe=/^[1-9][0-9]{10}$/,Wwe=e=>String(e??"").replace(/[\s/-]/g,""),Vwe=e=>{const t=Wwe(e);if(!Hwe.test(t))return!1;const n=[...t].map(Number),i=n.slice(0,10);return(e=>{const t=new Map;e.forEach(e=>t.set(e,(t.get(e)??0)+1));const n=[...t.values()].filter(e=>1!==e);return 1===n.length&&n[0]>=2&&n[0]<=3})(i)&&(e=>{let t=10;return e.forEach(e=>{let n=(e+t)%10;0===n&&(n=10),t=2*n%11}),(11-t)%10})(i)===n[10]},Kwe=xt`
3802  mutation updatePersonalTaxId($personalTaxId: String!) {
3803    updatePersonalTaxId(personalTaxId: $personalTaxId) {
3804      success
3805      errors {
3806        code
3807        message
3808      }
3809    }
3810  }
3811`,Ywe=(0,Ge.default)(qe.default).withConfig({displayName:"personal_tax_id__Container",componentId:"sc-agaipe-0"})(["flex:1;gap:16px;"]),Xwe=(0,Ge.default)(rf.default).withConfig({displayName:"personal_tax_id__Content",componentId:"sc-agaipe-1"})(["font-size:13px;color:",";line-height:18px;"],Qe.TEXT_DARK),Zwe=(0,Ge.default)(ts).withConfig({displayName:"personal_tax_id__HelpLink",componentId:"sc-agaipe-2"})(["flex-direction:row;align-items:center;gap:8px;"]),Qwe=(0,Ge.default)(rf.default).withConfig({displayName:"personal_tax_id__HelpLinkLabel",componentId:"sc-agaipe-3"})(["font-size:13px;line-height:16px;color:",";text-decoration-line:underline;"],Qe.GREEN_SUMMER_GRASS),Jwe=(0,Ge.default)(ms).withConfig({displayName:"personal_tax_id__SaveButton",componentId:"sc-agaipe-4"})(["margin-top:auto;"]);const eCe=function(){const e=(0,Ks.useHistory)(),{isConnected:t}=(0,ta.useNetInfo)(),{session:{currentUser:n,setUserPersonalTaxId:i,countryConfig:{shouldSeeIntercom:o,personalTaxIdIntercomArticleId:a}},toast:{showToastMessage:s}}=lt(),{openIntercomArticle:r}=Dm(),{updatePersonalTaxId:l,loading:d}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(Kwe);return{updatePersonalTaxId:t=>e({variables:t,context:{apiVersion:3}}).then(({data:e})=>null===e||void 0===e?void 0:e.updatePersonalTaxId),loading:t}})(),[c,u]=(0,K.useState)(n.personalTaxId||""),[p,m]=(0,K.useState)(),f=(0,K.useCallback)(async()=>{if(Vwe(c))try{const o=await l({personalTaxId:c});if(null!==o&&void 0!==o&&o.success)i(c),e.goBack();else{var t,n;const e=null===o||void 0===o||null===(t=o.errors)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.message;s({message:e||i18n.t("provider.generic.error")})}}catch(p){console.error(p),s({message:i18n.t("provider.generic.error")})}else m(i18n.t("edit_profile.content.edit_personal_tax_id.errors.invalid"))},[c,l,i,e,s]),g=t&&o&&!!a,h=!!n.personalTaxId,_=!t||!!p||!c;return(0,X.jsxs)(Ywe,{children:[(0,X.jsx)(Xwe,{children:i18n.t("edit_profile.content.edit_personal_tax_id.info")}),(0,X.jsx)(wp,{label:i18n.t("edit_profile.content.edit_personal_tax_id.personal_tax_id"),value:c,onChange:e=>{m(void 0),u(Wwe(e))},error:p,autoCapitalize:"none",keyboardType:"number-pad",disabled:h,testID:"PersonalTaxId:Input"}),g&&(0,X.jsxs)(Zwe,{onPress:()=>r(a),eventAction:"what is a tax id article in personal tax id page",testID:"PersonalTaxId:HelpLink",children:[(0,X.jsx)(YU,{color:Qe.GREEN_SUMMER_GRASS,size:16}),(0,X.jsx)(Qwe,{children:i18n.t("edit_profile.content.edit_personal_tax_id.help_link.label")})]}),!h&&(0,X.jsx)(Jwe,{onPress:f,disabled:_,centered:!0,loading:d,testID:"PersonalTaxId:SaveButton",children:i18n.t("edit_profile.content.edit_personal_tax_id.cta.save")})]})},tCe=()=>{var e;const{session:{settings:t}}=lt(),{loading:n,blocked:i}=F8(Rc);return n||!t?(0,X.jsx)(Rf,{title:i18n.t("edit_profile.content.edit_personal_tax_id.title"),content:()=>(0,X.jsx)(Aa.default,{})}):i?(0,X.jsx)(Ks.Redirect,{to:wi()}):null!==(e=t.featureFlags)&&void 0!==e&&e.personalTaxIdInProfileForm?(0,X.jsx)(Rf,{page:"personal tax id",title:i18n.t("edit_profile.content.edit_personal_tax_id.title"),content:()=>(0,X.jsx)(eCe,{}),contentContainerStyle:{flexGrow:1,paddingBottom:50}}):(0,X.jsx)(Ks.Redirect,{to:wi()})},nCe=_t.gql`
3812  query providerFetchPeerProviders {
3813    currentProvider {
3814      id
3815      customerRepeatPrice
3816      shortname
3817      windows
3818      pets
3819      verificationLevel
3820      avgRating {
3821        total
3822      }
3823      performedCleaningsCount
3824      advancedDocuments {
3825        name
3826        checked
3827      }
3828      profileImage
3829      experience {
3830        experienceHeadline
3831        experienceDescription
3832      }
3833      ratings(first: 10) {
3834        edges {
3835          node {
3836            id
3837            customerShortname
3838            customer
3839            comment
3840            total
3841          }
3842        }
3843      }
3844      peerProviders {
3845        id
3846        customerRepeatPrice
3847        shortname
3848        windows
3849        pets
3850        verificationLevel
3851        avgRating {
3852          total
3853        }
3854        performedCleaningsCount
3855        advancedDocuments {
3856          name
3857          checked
3858        }
3859        profileImage
3860        experience {
3861          experienceHeadline
3862          experienceDescription
3863        }
3864        ratings(first: 10) {
3865          edges {
3866            node {
3867              id
3868              customerShortname
3869              customer
3870              comment
3871              total
3872            }
3873          }
3874        }
3875      }
3876    }
3877  }
3878`,iCe=(0,Ge.default)(Be.default).withConfig({displayName:"card__StyledText",componentId:"sc-wvqswc-0"})(["color:",";font-size:16px;"],Qe.TEXT_DARK),oCe=(0,Ge.default)(ts).withConfig({displayName:"card__ClickableCotainer",componentId:"sc-wvqswc-1"})(["flex-direction:row;"]),aCe=(0,Ge.default)(qe.default).withConfig({displayName:"card__Row",componentId:"sc-wvqswc-2"})(["flex-direction:row;"]),sCe=(0,Ge.default)(qe.default).withConfig({displayName:"card__Column",componentId:"sc-wvqswc-3"})(["flex:1;flex-direction:column;margin-left:8px;"]),rCe=(0,Ge.default)(pu.default).withConfig({displayName:"card__ProfileImage",componentId:"sc-wvqswc-4"})(["border-radius:40px;width:50px;height:50px;"]),lCe=(0,Ge.default)(qe.default).withConfig({displayName:"card__Wrapper",componentId:"sc-wvqswc-5"})(["flex:1;flex-direction:row;justify-content:space-between;"]),dCe=(0,Ge.default)(qe.default).withConfig({displayName:"card__Content",componentId:"sc-wvqswc-6"})(["flex:1;flex-direction:row;align-items:center;"]),cCe=(0,Ge.default)(qe.default).withConfig({displayName:"card__GrayWrapper",componentId:"sc-wvqswc-7"})(["flex-direction:row;justify-content:space-between;background-color:",";align-items:center;padding:0 5px;border-radius:8px;",""],Qe.GRAY_4,({marginLeft:e})=>e&&"margin-left: 8px;"),uCe=(0,Ge.default)(Be.default).withConfig({displayName:"card__Info",componentId:"sc-wvqswc-8"})(["color:",";font-size:12px;padding:2px 0px;"],Qe.GRAY_1),pCe=(0,Ge.default)(Be.default).withConfig({displayName:"card__CleaningCountText",componentId:"sc-wvqswc-9"})(["color:",";font-size:12px;margin-left:2px;"],Qe.GRAY_1),mCe=(0,Ge.default)(qe.default).withConfig({displayName:"card__CleaningCount",componentId:"sc-wvqswc-10"})(["flex-direction:row;align-items:center;"]),fCe=({profileImage:e,shortname:t,customerRepeatPrice:n,rating:i,performedCleaningsCount:o,showDetail
3878s:a})=>{const s=o>=5?o:"< 5";return(0,X.jsxs)(oCe,{onPress:a,children:[(0,X.jsx)(rCe,{source:{uri:vi(e)}}),(0,X.jsxs)(sCe,{children:[(0,X.jsxs)(lCe,{children:[(0,X.jsx)(aCe,{children:(0,X.jsx)(iCe,{children:t})}),(0,X.jsx)(iCe,{children:fh(n,{withSymbol:!0})})]}),(0,X.jsxs)(dCe,{children:[(0,X.jsxs)(cCe,{children:[(0,X.jsx)(Pa.default,{name:"star",set:"MaterialCommunityIcons",size:16,color:Qe.GOLD_1}),(0,X.jsx)(uCe,{children:i})]}),(0,X.jsxs)(mCe,{children:[(0,X.jsx)(cCe,{marginLeft:!0,children:(0,X.jsx)(uCe,{children:s})}),(0,X.jsx)(pCe,{children:i18n.t("compare_profile.cleaning_count")})]})]})]})]})};fCe.propTypes={profileImage:qc.default.string.isRequired,shortname:qc.default.string.isRequired,customerRepeatPrice:qc.default.string.isRequired,rating:qc.default.object.isRequired,performedCleaningsCount:qc.default.string.isRequired,showDetails:qc.default.func.isRequired};const gCe=fCe,hCe=(0,Ge.default)(qe.default).withConfig({displayName:"extras__Row",componentId:"sc-14h3h46-0"})(["flex-direction:row;align-items:center;"]),_Ce=(0,Ge.default)(qe.default).withConfig({displayName:"extras__DetailsContainer",componentId:"sc-14h3h46-1"})(["margin:10px 0px;border-top-width:1px;border-style:solid;border-top-color:",";padding-top:5px;"],Qe.GRAY_4),xCe=(0,Ge.default)(Be.default).withConfig({displayName:"extras__Title",componentId:"sc-14h3h46-2"})(["color:",";font-size:16px;font-weight:500;margin-bottom:2px;"],Qe.TEXT_DARK),yCe=(0,Ge.default)(Be.default).withConfig({displayName:"extras__Description",componentId:"sc-14h3h46-3"})(["color:",";font-size:14px;margin-left:2px;"],Qe.TEXT_DARK),vCe=({windows:e,pets:t})=>(0,X.jsxs)(_Ce,{children:[(0,X.jsx)(xCe,{children:i18n.t("compare_profile.extras")}),e&&(0,X.jsxs)(hCe,{children:[(0,X.jsx)(Pa.default,{name:"check",set:"MaterialCommunityIcons",size:16,color:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(yCe,{children:i18n.t("compare_profile.extras_window")})]}),t&&(0,X.jsxs)(hCe,{children:[(0,X.jsx)(Pa.default,{name:"check",set:"MaterialCommunityIcons",size:16,color:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(yCe,{children:i18n.t("compare_profile.extras_pets")})]})]});vCe.propTypes={windows:qc.default.bool.isRequired,pets:qc.default.bool.isRequired};const bCe=vCe,wCe=(0,Ge.default)(qe.default).withConfig({displayName:"reviews__DetailsContainer",componentId:"sc-9wlbvb-0"})(["margin:10px 0px 0px;border-top-width:1px;border-style:solid;border-top-color:",";padding-top:5px;"],Qe.GRAY_4),CCe=(0,Ge.default)(Be.default).withConfig({displayName:"reviews__ReviewTitle",componentId:"sc-9wlbvb-1"})(["color:",";font-size:14px;"],Qe.TEXT_DARK),jCe=(0,Ge.default)(Be.default).withConfig({displayName:"reviews__NoReviews",componentId:"sc-9wlbvb-2"})(["color:",";font-size:14px;margin-top:2px;align-self:center;"],Qe.TEXT_DARK),ICe=(0,Ge.default)(qe.default).withConfig({displayName:"reviews__RatingCard",componentId:"sc-9wlbvb-3"})(["margin:8px;padding:8px;border-radius:8px;background-color:",";elevation:",";",""],Qe.WHITE,1,"box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.1);"),TCe=(0,Ge.default)(qe.default).withConfig({displayName:"reviews__StarsContainer",componentId:"sc-9wlbvb-4"})(["flex-direction:row;justify-content:center;"]),ECe=(0,Ge.default)(qe.default).withConfig({displayName:"reviews__RatingContent",componentId:"sc-9wlbvb-5"})(["flex-direction:row;justify-content:space-between;min-width:250px;"]),NCe=(0,Ge.default)(Be.default).withConfig({displayName:"reviews__CustomerName",componentId:"sc-9wlbvb-6"})(["color:",";font-size:14px;font-weight:500;"],Qe.TEXT_DARK),kCe=(0,Ge.default)(Be.default).withConfig({displayName:"reviews__ReviewComment",componentId:"sc-9wlbvb-7"})(["color:",";font-size:12px;margin:8px 0px;"],Qe.GRAY_3),RCe=({item:e})=>(0,X.jsxs)(ICe,{children:[(0,X.jsxs)(ECe,{children:[(0,X.jsx)(NCe,{children:e.node.customerShortname}),(0,X.jsx)(TCe,{children:[1,2,3,4,5].map(t=>(0,X.jsx)(Pa.default,{name:"star",size:10,color:t<=e.node.total?Qe.GOLD_1:Qe.GRAY_BORDER}))})]}),(0,X.jsxs)(kCe,{children:['"',e.node.comment,'"']})]}),SCe=({ratings:e})=>(0,X.jsxs)(wCe,{children:[0===e.edges.length&&(0,X.jsx)(jCe,{children:i18n.t("compare_profile.no_reviews")}),e.edges.length>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(CCe,{children:i18n.t("compare_profile.last_reviews")}),(0,X.jsx)(Lj.default,{horizontal:!0,overScrollMode:"never",data:e.edges,renderItem:RCe,keyExtractor:e=>e.node.id,onEndReachedThreshold:.5})]})]});SCe.propTypes={ratings:qc.default.array.isRequired};const ACe=SCe,PCe=(0,Ge.default)(qe.default).withConfig({displayName:"documents__Row",componentId:"sc-sn7bes-0"})(["flex-direction:row;align-items:center;"]),DCe=(0,Ge.default)(qe.default).withConfig({displayName:"documents__DetailsContainer",componentId:"sc-sn7bes-1"})(["margin:10px 0px;border-top-width:1px;border-style:solid;border-top-color:",";padding-top:5px;"],Qe.GRAY_4),MCe=(0,Ge.default)(Be.default).withConfig({displayName:"documents__Title",componentId:"sc-sn7bes-2"})(["color:",";font-size:16px;font-weight:500;margin-bottom:2px;"],Qe.TEXT_DARK),OCe=(0,Ge.default)(Be.default).withConfig({displayName:"documents__Description",componentId:"sc-sn7bes-3"})(["color:",";font-size:14px;margin-left:2px;"],Qe.TEXT_DARK),zCe=({documents:e})=>(0,X.jsxs)(DCe,{children:[(0,X.jsx)(MCe,{children:i18n.t("compare_profile.documents")}),e.map(e=>(0,X.jsxs)(PCe,{children:[(0,X.jsx)(Pa.default,{name:"check",set:"MaterialCommunityIcons",size:16,color:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(OCe,{children:i18n.t(`compare_profile.documents_list.${e}`)})]}))]});
3878zCe.propTypes={documents:qc.default.array.isRequired};const LCe=zCe,qCe=(0,Ge.default)(qe.default).withConfig({displayName:"profile__CardContainer",componentId:"sc-sadecz-0"})(["padding:8px;margin:10px 5px;border-radius:8px;background-color:",";elevation:",";",""],Qe.WHITE,1,({showGoldShadow:e})=>`box-shadow: 1px 1px 7px ${e?Qe.GOLD_1:"rgba(0, 0, 0, 0.1)"};`),BCe=(0,Ge.default)(qe.default).withConfig({displayName:"profile__DetailsContainer",componentId:"sc-sadecz-1"})(["margin:10px 0px;border-top-width:1px;border-style:solid;border-top-color:",";padding-top:5px;"],Qe.GRAY_4),GCe=(0,Ge.default)(Be.default).withConfig({displayName:"profile__ExperienceHeadline",componentId:"sc-sadecz-2"})(["color:",";font-size:16px;font-weight:500;"],Qe.TEXT_DARK),UCe=(0,Ge.default)(Be.default).withConfig({displayName:"profile__ExperienceDescription",componentId:"sc-sadecz-3"})(["color:",";font-size:14px;"],Qe.TEXT_DARK),$Ce=({data:e,showShadow:t=!1})=>{var n,i,o,a;const[s,r]=(0,K.useState)(!1),l=e.advancedDocuments.filter(e=>e.checked).map(e=>e.name);return(0,X.jsxs)(qCe,{showGoldShadow:t,shadowColor:t?Qe.GOLD_1:Qe.GRAY_3,children:[(0,X.jsx)(gCe,{profileImage:e.profileImage,shortname:e.shortname,customerRepeatPrice:e.customerRepeatPrice,rating:null===(n=e.avgRating)||void 0===n?void 0:n.total,showDetails:()=>r(!s),performedCleaningsCount:e.performedCleaningsCount}),s&&(0,X.jsxs)(X.Fragment,{children:[(null===(i=e.experience)||void 0===i?void 0:i.experienceHeadline)&&(0,X.jsxs)(BCe,{children:[(0,X.jsx)(GCe,{children:null===(o=e.experience)||void 0===o?void 0:o.experienceHeadline}),(0,X.jsx)(UCe,{children:null===(a=e.experience)||void 0===a?void 0:a.experienceDescription})]}),(0,X.jsx)(ACe,{ratings:e.ratings}),(0,X.jsx)(LCe,{documents:[...l,"identity_scan"]}),(0,X.jsx)(bCe,{windows:e.windows,pets:e.pets})]})]})};$Ce.propTypes={data:qc.default.object.isRequired,showShadow:qc.default.bool};const FCe=$Ce,HCe=(0,Ge.default)(qe.default).withConfig({displayName:"compare_profile__Container",componentId:"sc-g2itud-0"})(["margin-bottom:30px;"]),WCe=(0,Ge.default)(Aa.default).withConfig({displayName:"compare_profile__Spinner",componentId:"sc-g2itud-1"})(["margin-top:20px;"]),VCe=(0,Ge.default)(qe.default).withConfig({displayName:"compare_profile__TextWrapper",componentId:"sc-g2itud-2"})(["margin:8px;text-align:center;"]),KCe=(0,Ge.default)(Be.default).withConfig({displayName:"compare_profile__StyledText",componentId:"sc-g2itud-3"})(["color:",";font-size:16px;font-weight:bold;"],Qe.TEXT_DARK),YCe=(0,Ge.default)(Be.default).withConfig({displayName:"compare_profile__Error",componentId:"sc-g2itud-4"})(["color:",";text-align:center;"],Qe.CRIMSON_1),XCe=()=>{const{data:e,loading:t,error:n}=(()=>{const{data:e,loading:t,error:n}=(0,Is.useQuery)(nCe);return{data:null===e||void 0===e?void 0:e.currentProvider,loading:t,error:n}})();return t?(0,X.jsx)(WCe,{}):n?(0,X.jsx)(YCe,{children:i18n.t("provider.generic.error")}
3878):(0,X.jsxs)(HCe,{children:[(0,X.jsx)(FCe,{data:e,showShadow:!0}),e.peerProviders.length>0&&(0,X.jsx)(VCe,{children:(0,X.jsx)(KCe,{children:i18n.t("compare_profile.peer_provider_list.title")})}),e.peerProviders.map(e=>(0,X.jsx)(FCe,{data:e},e.id))]})},ZCe=()=>(0,X.jsx)(Rf,{title:i18n.t("compare_profiles.page_title"),content:()=>(0,X.jsx)(XCe,{})}),QCe=(0,Ge.default)(qe.default).withConfig({displayName:"references__Container",componentId:"sc-ermqf1-0"})(["margin-bottom:24px;"]),JCe=(0,Ge.default)(Be.default).withConfig({displayName:"references__HeadLine",componentId:"sc-ermqf1-1"})(["color:",";text-align:center;font-size:24px;font-weight:600;"],Qe.TEXT_DARK),eje=(0,Ge.default)(pu.default).attrs({source:n(80203)}).withConfig({displayName:"references__Confirmation",componentId:"sc-ermqf1-2"})(["width:83px;height:83px;align-self:center;margin:24px 0;"]),tje=(0,Ge.default)(Be.default).withConfig({displayName:"references__Description",componentId:"sc-ermqf1-3"})(["color:",";text-align:center;margin-bottom:12px;font-size:13px;"],Qe.GRAY_2),nje=(0,Ge.default)(qe.default).withConfig({displayName:"references__ReferenceUrl",componentId:"sc-ermqf1-4"})(["align-self:center;margin-top:12px;margin-bottom:24px;flex-direction:row;"]),ije=(0,Ge.default)(Uc.default).withConfig({displayName:"references__Input",componentId:"sc-ermqf1-5"})(["font-size:16px;font-weight:600;color:",";border-style:dashed;border-width:1px;",";border-color:",";border-radius:4px;padding:10px;max-width:220px;"],Qe.GREEN_GROWN_UP_GREEN,"border-right-width: 0;",Qe.GREEN_IRISH_BREEZE),oje=(0,Ge.default)(ts).withConfig({displayName:"references__Copy",componentId:"sc-ermqf1-6"})(["background-color:",";border-top-right-radius:4px;border-bottom-right-radius:4px;justify-content:center;"],Qe.GREEN_SUMMER_GRASS),aje=(0,Ge.default)(Be.default).withConfig({displayName:"references__CopyText",componentId:"sc-ermqf1-7"})(["font-size:16px;font-weight:600;color:",";padding:10px 20px;"],Qe.WHITE),sje=(0,Ge.default)(Be.default).withConfig({displayName:"references__InfoText",componentId:"sc-ermqf1-8"})(["color:",";font-size:12px;text-align:center;font-style:italic;"],Qe.GRAY_2),rje=()=>{const{session:{currentUser:e},toast:{showToastMessage:t}}=lt(),{data:i}=j3(),{serviceId:o}=(0,Ks.useParams)(),a=((e,t,i=null)=>`${hi(fi[n.g.country])}/customer/references/${e}/${t}/${i||"cleaning.home"}`)(null===i||void 0===i?void 0:i.slug,null===e||void 0===e?void 0:e.referencesCode,o);return(0,X.jsxs)(QCe,{children:[(0,X.jsx)(JCe,{children:i18n.t("references.headline")}),(0,X.jsx)(eje,{}),(0,X.jsx)(tje,{children:i18n.t("references.description_first")}),(0,X.jsx)(tje,{children:i18n.t("references.description_second")}),(0,X.jsxs)(nje,{children:[(0,X.jsx)(ije,{value:a,disabled:!0}),(0,X.jsx)(oje,{onPress:async()=>{await mK.setStringAsync(a),t({message:i18n.t("references.copied"),type:"success"})},children:(0,X.jsx)(aje,{children:i18n.t("references.copy")})})]}),(0,X.jsx)(sje,{children:i18n.t("references.reach_out")})]})},lje=()=>(0,X.jsx)(Rf,{title:i18n.t("references.page_title"),content:()=>(0,X.jsx)(rje,{})}),dje=(0,Ge.default)(Be.default).withConfig({displayName:"clarify_modal__CtaText",componentId:"sc-29v9o4-0"})(["font-size:16px;text-align:center;color:",";font-weight:700;padding-left:6px;"],Qe.WHITE);function cje({isOpen:e,onClose:t,onConfirm:n,customerName:i}){return(0,X.jsx)(dL,{isOpen:e,onConfirm:n,onClose:t,confirmButtonText:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Pa.default,{name:"chat-outline",size:24,set:"MaterialCommunityIcons",color:Qe.WHITE}),(0,X.jsx)(dje,{children:i18n.t("customer.home_details.clarify_modal.start_chat")})]}),closeButtonText:i18n.t("customer.home_details.clarify_modal.read_requirements"),subtitle:i18n.t("customer.home_details.clarify_modal.description",{name:i})})}cje.propTypes={isOpen:qc.default.bool,onClose:qc.default.func,onConfirm:qc.default.func,customerName:qc.default.string};const uje=cje,pje=(0,Ge.default)(qe.default).withConfig({displayName:"clarify_with_message__Container",componentId:"sc-1hcdt2g-0"})(["background-color:",";margin:10px 16px 20px 16px;display:flex;flex:1;font-weight:600;"],Qe.WHITE),mje=(0,Ge.default)(Be.default).withConfig({displayName:"clarify_with_message__PopupTitle",componentId:"sc-1hcdt2g-1"})(["font-size:20px;color:",";margin-top:37px;text-align:center;max-width:65%;align-self:center;font-weight:500;"],Qe.TEXT_DARK);const fje=function({relationshipId:e,customer:t,onClose:n,setCleaningDetailsActionedSuccess:i}){const{chat:{postMessage:o},analytics:{autoTrack:a},toast:{showToastMessage:s},session:{currentUser:r}}=lt(),[l,d]=(0,K.useState)(i18n.t("cleaning_instructions.clarify.message",{providerName:r.firstname})),{actionCleaningDetails:c}=ND();return(0,X.jsxs)(zw,{displayCloseButton:!0,isOpen:!0,onClose:()=>{a("Provider clicked on close no conversation modal",`from cleaning instruction page customerId: ${t.id}`),n()},children:[(0,X.jsx)(mje,{children:i18n.t("cleaning_instructions.clarify.modal.title")}),(0,X.jsx)(pje,{children:(0,X.jsx)(YB,{customerName:t.name,info:i18n.t("cleaning_instructions.clarify.modal.info"),message:l,hint:i18n.t("cleaning_instructions.clarify.modal.hint"),onSendMessage:async()=>{var r,d;a("Provider clicked on Send message button",`from cleaning instruction page customerId: ${t.id}`);const u=await c({customerId:t.id,response:"clarify"});null!==u&&void 0!==u&&null!==(r=u.data)&&void 0!==r&&null!==(d=r.actionCleaningDetails)&&void 0!==d&&d.success?i(!0):(s({message:i18n.t("provider.generic.error"),onlyPopup:!0}),n());(await o(e,t.id,l)).success?(s({type:"success",message:i18n.t("event.no_conversation.message.sent.success")}),n()):(s({message:i18n.t("provider.generic.error"),onlyPopup:!0}),n())},onMaybeLater:()=>{a("Provider clicked on Maybe later button",`from cleaning instruction page customerId: ${t.id}`),n()},loading:!1,setMessage:d})})]})},gje=(0,Ge.default)(qe.default).withConfig({displayName:"details_content__Container",componentId:"sc-1mc37ss-0"})(["flex-grow:1;margin-bottom:30px;padding-bottom:30px;"]),hje=(0,Ge.default)(Be.default).withConfig({displayName:"details_content__Title",componentId:"sc-1mc37ss-1"})(["font-size:16px;font-weight:700;text-transform:uppercase;color:",";margin-bottom:12px;"],Qe.TEXT_DARK),_je=(0,Ge.default)(lm).withConfig({displayName:"details_content__HomeDetails",componentId:"sc-1mc37ss-2"})(["margin:16px 0 32px;padding:24px;width:98%;align-self:center;"]),xje=(0,Ge.default)(qe.default).withConfig({displayName:"details_content__HomeDetail",componentId:"sc-1mc37ss-3"})(["flex-direction:row;align-items:center;margin:4px 0;"]),yje=(0,Ge.default)(qe.default).withConfig({displayName:"details_content__HomeDetailsContainer",componentId:"sc-1mc37ss-4"})(["margin-left:12px;flex-shrink:1;"]),vje=(0,Ge.default)(Be.default).withConfig({displayName:"details_content__HomeDetailsTitle",componentId:"sc-1mc37ss-5"})(["font-size:16px;font-weight:400;color:",";"],Qe.TEXT_DARK),bje=(0,Ge.default)(Be.default).withConfig({displayName:"details_content__HomeDetailsDesc",componentId:"sc-1mc37ss-6"})(["font-size:12px;font-weight:300;color:",";margin-top:2px;"],({color:e})=>e||Qe.TEXT_MEDIUM),wje=(0,Ge.default)(qe.default).withConfig({displayName:"details_content__IconContainer",componentId:"sc-1mc37ss-7"})(["background-color:",";border-radius:12px;align-items:center;justify-content:center;width:48px;height:48px;"],({backgroundColor:e})=>e||Qe.GREEN_FROSTY_GREEN),Cje=({customer:e})=>{var t;const n=lu(),{session:{countryConfig:{makeCleaningInstructionAccessible:i}},toast:{showToastMessage:o}}=lt(),{autoTrack:a}
3878=mt(),{id:s,cleaningDetailsActioned:r,customerInstructions:l,customerInstructions:{addressInstructions:d,numberOfRooms:c,numberOfBathrooms:u,cleaningDetails:p,needsCleaningProducts:m,tasks:f},bids:g}=e.relationship,[h,_]=(0,K.useState)(!1),[x,y]=(0,K.useState)(r),{actionCleaningDetails:v,saving:b}=ND(),w=()=>{a("User clicked on Read requirements again button",`on clarify modal in home details page - customerId: ${e.id}, relationshipId: ${s}`),_(!1)};if(!(e=>{if(!e)return!1;const{cleaningDetails:t,addressInstructions:n,numberOfRooms:i,numberOfBathrooms:o,needsCleaningProducts:a,tasks:s}=e;return[t,n,i,o,a].some(e=>!!e)||s&&s.length>0})(l))return(0,X.jsx)(gje,{children:(0,X.jsx)(Be.default,{children:i18n.t("customer.home_details.no_details")})});const C=!(null===g||void 0===g||null===(t=g[g.length-1])||void 0===t||!t.pets);return(0,X.jsxs)(gje,{children:[!!(d||c||u||C)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(hje,{children:i18n.t("customer.home_details.home_details")}),(0,X.jsxs)(_je,{elevation:1,children:[!!d&&(0,X.jsxs)(xje,{children:[(0,X.jsx)(wje,{children:(0,X.jsx)(Pa.default,{name:"keyboard-outline",set:"MaterialCommunityIcons",color:Qe.GREEN_SUMMER_GRASS,size:32})}),(0,X.jsxs)(yje,{children:[(0,X.jsx)(vje,{children:i18n.t("customer.home_details.address_instructions")}),(0,X.jsx)(bje,{children:d})]})]}),!!c&&(0,X.jsxs)(xje,{children:[(0,X.jsx)(wje,{children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"sofa-outline",color:Qe.GREEN_SUMMER_GRASS,size:24})}),(0,X.jsxs)(yje,{children:[(0,X.jsx)(vje,{children:i18n.t("customer.home_details.rooms")}),(0,X.jsx)(bje,{children:c})]})]}),!!u&&(0,X.jsxs)(xje,{children:[(0,X.jsx)(wje,{children:(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"shower",color:Qe.GREEN_SUMMER_GRASS,size:24})}),(0,X.jsxs)(yje,{children:[(0,X.jsx)(vje,{children:i18n.t("customer.home_details.bathrooms")}),(0,X.jsx)(bje,{children:u})]})]}),C&&(0,X.jsxs)(xje,{children:[(0,X.jsx)(wje,{children:(0,X.jsx)(Pa.default,{name:"pets",color:Qe.GREEN_SUMMER_GRASS,size:24})}),(0,X.jsx)(yje,{children:(0,X.jsx)(vje,{children:i18n.t("customer.home_details.pets_at_home")})})]})]})]}),!!p&&(0,X.jsx)(hje,{children:i18n.t("customer.home_details.cleaning_instructions")}),(0,X.jsx)(yD,{relationshipId:s,cleaningDetails:p,needsCleaningProducts:m,tasks:f,onConfirm:async()=>{var t,n;a("User clicked on Confirm button",`on home details page - customerId: ${null===e||void 0===e?void 0:e.id}, relationshipId: ${s}`);const i=await v({customerId:e.id,response:"confirm"});null!==i&&void 0!==i&&null!==(t=i.data)&&void 0!==t&&null!==(n=t.actionCleaningDetails)&&void 0!==n&&n.success?(o({message:i18n.t("customer.home_details.success"),type:"success"}),y(!0)):o({message:i18n.t("provider.generic.error")})},onClarify:()=>{a("User clicked on Clarify button",`on home details page - customerId: ${e.id}, relationshipId: ${s}`),_(!0)},cleaningDetailsActionedSuccess:x,loading:b}),!i&&(0,X.jsx)(uje,{isOpen:h,onClose:w,onConfirm:async()=>{var t,i;a("User clicked on Start Chat button",`on clarify modal in home details page - customerId: ${null===e||void 0===e?void 0:e.id}, relationshipId: ${s}`);const r=await v({customerId:e.id,response:"clarify"});null!==r&&void 0!==r&&null!==(t=r.data)&&void 0!==t&&null!==(i=t.actionCleaningDetails)&&void 0!==i&&i.success?(n(Wi(s)),y(!0)):o({message:i18n.t("provider.generic.error")})},customerName:e.name}),i&&h&&(0,X.jsx)(fje,{onClose:w,customer:e,relationshipId:s,setCleaningDetailsActionedSuccess:y})]})};Cje.propTypes={customer:qc.default.shape({id:qc.default.string.isRequired,name:qc.default.string.isRequired,abTests:qc.default.arrayOf(qc.default.shape({experimentKey:qc.default.string,experiment:qc.default.bool})),relationship:qc.default.shape({id:qc.default.string.isRequired,cleaningDetailsActioned:qc.default.bool,customerInstructions:qc.default.shape({cleaningDetails:qc.default.string,addressInstructions:qc.default.string,numberOfRooms:qc.default.number,numberOfBathrooms:qc.default.number,needsCleaningProducts:qc.default.bool,tasks:qc.default.arrayOf(qc.default.string)}),bids:qc.default.arrayOf(qc.default.shape({pets:qc.default.bool}))}).isRequired}).isRequired};const jje=Cje,Ije=(0,Ge.default)(xm.Text).withConfig({displayName:"details__NotAvailable",componentId:"sc-h9rns4-0"})(["text-align:center;font-weight:300;color:",";"],Qe.BLACK);function Tje(){return(0,X.jsx)(Rf,{page:"home details",content:()=>(0,X.jsx)(Ije,{children:i18n.t("customer.no_customer")})})}function Eje(){return(0,X.jsx)(Rf,{page:"home details",content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})})}const Nje=function(){const[e,t]=(0,K.useState)(!0),[n,i]=(0,K.useState)(),{isConnected:o}=(0,ta.useNetInfo)(),{session:{fetchUnreadMessagesCount:a},customers:{fetchCustomer:s}}=lt(),{id:r}=(0,Ks.useParams)();return(0,K.useEffect)(()=>{!async function(e){t(!0);const n=await s(e);i(n),t(!1)}(r),a()},[o]),e?(0,X.jsx)(Eje,{}):n&&null!==n&&void 0!==n&&n.relationship?(0,X.jsx)(Rf,{title:n.name,page:"home details",subheader:()=>(0,X.jsx)(UV,{customer:n,from:"home_details"}),content:()=>(0,X.jsx)(jje,{customer:n}),contentContainerStyle:{flexGrow:1}}):(0,X.jsx)(Tje,{})},kje=()=>(0,X.jsx)(Nje,{});var Rje=n(78927);const Sje="cleaning.home",Aje=(0,Ge.default)(Aa.default).attrs({size:"large",color:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"list__Spinner",componentId:"sc-3v80qh-0"})(["top:50%;"]),Pje=(0,Ge.default)(Be.default).withConfig({displayName:"list__ErrorMessage",componentId:"sc-3v80qh-1"})(["text-align:center;margin:30px;font-size:14px;color:",";font-weight:600;"],Qe.TEXT_MEDIUM),Dje=(0,Ge.default)(Be.default).withConfig({displayName:"list__Intro",componentId:"sc-3v80qh-2"})(["font-size:14px;color:",";font-weight:600;margin-bottom:15px;"],Qe.TEXT_DARK),Mje=(0,Ge.default)(qe.default).withConfig({displayName:"list__Section",componentId:"sc-3v80qh-3"})(["margin-top:10px;",""],({lastSection:e})=>e?"margin-bottom: 40px;":"margin-bottom: 10px;"),Oje=(0,Ge.default)(Be.default).withConfig({displayName:"list__SectionTitle",componentId:"sc-3v80qh-4"})(["padding-bottom:10px;font-size:14px;color:",";font-weight:600;"],Qe.TEXT_MEDIUM),zje=()=>{const e=lu(),{session:{currentUser:t},toast:{showToastMessage:n}}=lt(),{autoTrackEnhanced:i}=mt(),{services:o,loading:a,error:s,refetch:r}=LZ(),{disableService:l,loading:d,error:c}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)($Z);return{disableService:t=>e({variables:{id:t},context:{apiVersion:3}}),loading:t,error:n}})(),{enableService:u,loading:p,error:m}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(FZ);return{enableService:t=>e({variables:{id:t},context:{apiVersion:3}}),loading:t,error:n}})();return a?(0,X.jsx)(Aje,{}):s||c||m?(0,X.jsx)(Pje,{children:i18n.t("services.errors.loading_page")}
3878):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Dje,{children:i18n.t("services.index.intro")}),(0,X.jsxs)(Mje,{children:[(0,X.jsx)(Oje,{children:i18n.t("services.index.active_services")}),o.filter(({enabled:e})=>e).map(({id:o})=>(0,X.jsx)(Rje.default,{testID:`ServicesList::${o}`,title:i18n.t(`services.index.${o}.title`),icon:(0,X.jsx)(MG.default,{name:o,size:24}),description:i18n.t(`services.index.${o}.description`),isEnabled:!0,onTogglePress:()=>(async e=>{var o,a;if(d||p)return;const s=await l(e);null!==s&&void 0!==s&&null!==(o=s.data)&&void 0!==o&&null!==(a=o.disableService)&&void 0!==a&&a.success?(i({userFlow:null!==t&&void 0!==t&&t.onboarded?Ba:qa,action:Xa.toggle,objectName:"Service",properties:{serviceId:e}}),r()):n({message:i18n.t("provider.generic.error")})})(o),link:{label:i18n.t("services.index.edit"),onLinkPress:()=>{var t;e((t=o)!==Sje?$i(t):"/provider/edit_public_profile")}}},o))]}),(0,X.jsxs)(Mje,{lastSection:!0,children:[(0,X.jsx)(Oje,{children:i18n.t("services.index.inactive_services")}),o.filter(({enabled:e})=>!e).map(({id:o})=>(0,X.jsx)(Rje.default,{testID:`ServicesList::${o}`,title:i18n.t(`services.index.${o}.title`),icon:(0,X.jsx)(MG.default,{name:o,size:24}),description:i18n.t(`services.index.${o}.description`),isEnabled:!1,onTogglePress:()=>(async o=>{var a,s;if(d||p)return;if(o!==Sje)return e($i(o));const l=await u(o);null!==l&&void 0!==l&&null!==(a=l.data)&&void 0!==a&&null!==(s=a.enableService)&&void 0!==s&&s.success?(i({userFlow:null!==t&&void 0!==t&&t.onboarded?Ba:qa,action:Xa.toggle,objectName:"Service",properties:{serviceId:o}}),r()):n({message:i18n.t("provider.generic.error")})})(o)},o))]})]})},Lje=()=>{const{loading:e,blocked:t}=F8(Ic);return e?(0,X.jsx)(Rf,{title:i18n.t("services.index.page_title"),content:()=>(0,X.jsx)(Aa.default,{})}):t?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(Rf,{title:i18n.t("services.index.page_title"),content:()=>(0,X.jsx)(zje,{})})};var qje=n(81627);const Bje=(0,Ge.default)(Be.default).withConfig({displayName:"section__Name",componentId:"sc-1i99pht-0"})(["font-size:20px;font-weight:600;color:",";padding-bottom:10px;"],Qe.TEXT_DARK),Gje=(0,Ge.default)(qe.default).withConfig({displayName:"section__Container",componentId:"sc-1i99pht-1"})(["padding:10px 0;padding-bottom:","px;margin-bottom:","px;"],({$paddingBottom:e})=>e,({$lastSection:e})=>e?"30":"0"),Uje=({name:e,children:t,$lastSection:n=!1,$paddingBottom:i=10,onLayout:o})=>(0,X.jsxs)(Gje,{$paddingBottom:i,$lastSection:n,onLayout:o,children:[(0,X.jsx)(Bje,{children:e}),(0,X.jsx)(qe.default,{children:t})]});var $je=n(37257),Fje=n(86396),Hje=n(37749),Wje=n(60978);const Vje=(0,Ge.default)(qe.default).withConfig({displayName:"item__Container",componentId:"sc-ns6zie-0"})(["margin-bottom:20px;"]),Kje=({service:e,onValueChange:t,item:n,isValid:i=!0})=>{const{key:o,hint:a,type:s,value:r,maxSize:l,options:d,required:c}=n,u=`${i18n.t(`services.details.${e}.question.${o}.title`)}${c?" *":""}`,p=a?(0,X.jsx)(Hje.default,{text:i18n.t(`services.details.${e}.question.${o}.hint`)}):null;return(0,X.jsxs)(Vje,{children:[s===WZ&&(0,X.jsx)($je.default,{testID:`ServiceDetails::Item::${o}`,value:r||"",hint:p,placeholder:i18n.t(`services.details.${e}.question.${o}.placeholder`),label:i?u:null,error:i?null:u,onChangeText:t,numberOfLines:3,maxLength:l}),s===VZ&&(0,X.jsx)(Fje.default,{testID:`ServiceDetails::Item::${o}`,label:i?u:null,error:i?null:u,hint:p,choices:[{label:i18n.t("services.answer.yes_no.yes"),value:"yes"},{label:i18n.t("services.answer.yes_no.no"),value:"no"}],selectedChoice:r||null,setSelectedChoice:t}),s===KZ&&(0,X.jsx)(Fje.default,{testID:`ServiceDetails::Item::${o}`,label:i?u:null,error:i?null:u,hint:p,choices:d.map(({key:t})=>({label:i18n.t(`services.details.${e}.question.${o}.options.${t}`),value:t})),selectedChoice:r||null,setSelectedChoice:t}),s===YZ&&(0,X.jsx)(Wje.default,{testID:`ServiceDetails::Item::${o}`,label:i?u:null,error:i?null:u,hint:p,choices:d.map(({key:t})=>({label:i18n.t(`services.details.${e}.question.${o}.options.${t}`),value:t})),selectedChoices:(r||"").split(","),setSelectedChoices:e=>t(e.join(","))})]})},Yje=(0,Ge.default)(qe.default).withConfig({displayName:"footer__Bottom",componentId:"sc-2ls2l9-0"})(["padding:20px;",""],({isDesktop:e})=>!e&&`\n      background-color: ${Qe.GRAY_4};\n    `),Xje=({isCtaDisabled:e,saveSettings:t,isServiceEnabled:n})=>{const{isDesktop:i}=uu(),{service:o}=(0,Ks.useParams)();return(0,X.jsx)(Yje,{isDesktop:i,children:(0,X.jsx)(ms,{testID:"ServicesDetail::Footer::Button",onPress:e?()=>{}:t,stretched:!0,eventAction:e?`"save" when the button is disabled for ${o}`:`"save" for ${o}
3878`,eventLabel:"from services details page",color:e?Qe.GREEN_IRISH_BREEZE:void 0,textColor:e?Qe.WHITE:void 0,activeOpacity:e?1:void 0,children:i18n.t(n?"services.details.update":"services.details.enable")})})},Zje=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_price__Container",componentId:"sc-eaw7uj-0"})(["align-items:stretch;"]),Qje=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_price__FrequencyContainer",componentId:"sc-eaw7uj-1"})(["flex-direction:row;justify-content:flex-start;margin-bottom:4px;"]),Jje=(0,Ge.default)(Be.default).withConfig({displayName:"cart_item_price__Frequency",componentId:"sc-eaw7uj-2"})(["font-size:10px;font-weight:600;line-height:14px;color:",";"],Qe.TEXT_DARK),eIe=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_price__NetPriceContainer",componentId:"sc-eaw7uj-3"})(["flex-direction:row;justify-content:flex-end;margin-top:4px;height:14px;"]),tIe=(0,Ge.default)(Be.default).withConfig({displayName:"cart_item_price__NetPrice",componentId:"sc-eaw7uj-4"})(["font-size:10px;font-weight:400;line-height:14px;color:",";"],Qe.TEXT_DARK),nIe=({service:e,frequency:t,price:n,setPrice:i,setToDisabled:o,testID:a="CartItemPrice",showLabel:s})=>{const{getServiceCommissions:r,commissions:l,loadingCommissions:d}=UZ(),c=(0,K.useCallback)(Me()(e=>!e&&o(),1e3),[]),u=(0,K.useCallback)(Me()(r,500),[]);return(0,K.useEffect)(()=>{u(e,"adhoc"===t?XZ:ZZ,n)},[n]),(0,X.jsxs)(Zje,{children:[s&&(0,X.jsx)(Qje,{children:(0,X.jsx)(Jje,{children:i18n.t(`cart_item_price.frequency.${t}`)})}),(0,X.jsx)(rQ,{testID:`${a}::Input`,value:n,setValue:e=>{c(e),i(e)},min:null,max:null,unit:i18n.t("currency")}),(0,X.jsx)(eIe,{children:!d&&!(null===l||void 0===l||!l.providerCommission)&&(0,X.jsx)(tIe,{testID:`${a}::NetPrice`,children:i18n.t("cart_item_price.net_price",{price:fh(l.providerCommission,{withSymbol:!0})})})})]})},iIe=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_prices__Container",componentId:"sc-1izwwgp-0"})(["align-items:stretch;border:1px solid ",";border-radius:8px;padding:0;"],Qe.GRAY_BORDER),oIe=(0,Ge.default)(ws.default).withConfig({displayName:"cart_item_prices__Header",componentId:"sc-1izwwgp-1"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:16px;"]),aIe=(0,Ge.default)(Be.default).withConfig({displayName:"cart_item_prices__HeaderTitle",componentId:"sc-1izwwgp-2"})(["font-size:14px;font-weight:600;line-height:19px;"]),sIe=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_prices__Body",componentId:"sc-1izwwgp-3"})(["align-items:stretch;"]),rIe=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_prices__BodyRow",componentId:"sc-1izwwgp-4"})(["flex-direction:row;justify-content:space-between;padding:16px;gap:10;border-top-width:1px;border-top-style:solid;border-top-color:",";"],Qe.GRAY_BORDER),lIe=(0,Ge.default)(qe.default).withConfig({displayName:"cart_item_prices__BodyColumn",componentId:"sc-1izwwgp-5"})(["flex:1;justify-content:center;"]),dIe=(0,Ge.default)(Be.default).withConfig({displayName:"cart_item_prices__CartItemEnabledLabel",componentId:"sc-1izwwgp-6"})(["font-size:14px;font-weight:600;line-height:19px;margin-left:10px;"]),cIe=({service:e,group:t,priceSettingsInGroup:n,setPriceInGroupPriceSettings:i,setEnabledInGroupPriceSettings:o,isReccuringAvailable:a})=>{const[s,r]=(0,K.useState)(!1),l=a?[FIe.ADHOC,FIe.REPEAT]:[FIe.ADHOC];return(0,X.jsxs)(iIe,{children:[(0,X.jsxs)(oIe,{onPress:()=>r(!s),testID:`ServiceDetails::Prices::${t}`,children:[(0,X.jsx)(aIe,{children:i18n.t(`cart_item_price.${t}.header`)}),s&&(0,X.jsx)(Pa.default,{name:"chevron-up",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,color:Qe.GREEN_SAGE_TEA,size:30}),!s&&(0,X.jsx)(Pa.default,{name:"chevron-down",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,color:Qe.GREEN_SAGE_TEA,size:30})]}),s&&(0,X.jsx)(sIe,{children:n.map(n=>{const{key:s,enabled:r}=n;return(0,X.jsxs)(rIe,{children:[(0,X.jsx)(lIe,{children:(0,X.jsx)(oY,{testID:`ServiceDetails::Prices::${t}::${s}::Checkbox`,checked:r,color:Qe.GREEN_SUMMER_GRASS,iconColor:Qe.WHITE,onChange:()=>{(r||n.adhocPrice&&n.repeatPrice)&&o(s,!r)},label:(0,X.jsx)(dIe,{children:i18n.t(`cart_item_price.items.${s}.shortname`)})})}),l.map(r=>(0,X.jsx)(lIe,{children:(0,X.jsx)(nIe,{showLabel:!!a,testID:`ServiceDetails::Prices::${t}::${s}::${r}`,service:e,frequency:r,price:n[`${r}Price`],setPrice:e=>i(s,r,e),setToDisabled:()=>o(s,!1)})},r))]},s)})})]})},uIe=(0,Ge.default)(qe.default).withConfig({displayName:"grouped_cart_item_prices__CartItemPricesContainer",componentId:"sc-4sovyg-0"})(["margin-bottom:10px;"]),pIe=({service:e,priceSettings:t,setPriceInPriceSettings:n,setEnabledInPriceSettings:i,isReccuringAvailable:o})=>{const a=Object.entries(t);return(0,X.jsx)(X.Fragment,{children:a.map(([t,a])=>(0,X.jsx)(uIe,{children:(0,X.jsx)(cIe,{isReccuringAvailable:o,service:e,group:t,priceSettingsInGroup:a,setPriceInGroupPriceSettings:(e,i,o)=>
3878n(t,e,i,o),setEnabledInGroupPriceSettings:(e,n)=>i(t,e,n)})},t))})},mIe=(0,Ge.default)(qe.default).withConfig({displayName:"actions_modal__ModalInnerContainer",componentId:"sc-7zbyj-0"})(["margin-top:",";"],({size:e})=>"xsmall"===e?"35px":"46px"),fIe=(0,Ge.default)(ts).withConfig({displayName:"actions_modal__ActionContainer",componentId:"sc-7zbyj-1"})(["flex-direction:row;"," align-items:center;margin:0px 20px;padding:",";border:0px solid ",";border-bottom-width:","px;"],({centered:e})=>e&&"justify-content: center;",({size:e})=>"xsmall"===e?"0 0 20px":"20px 0",Qe.GRAY_BORDER,({hideBottomBorder:e})=>e?0:1),gIe=(0,Ge.default)(Be.default).withConfig({displayName:"actions_modal__ActionLabel",componentId:"sc-7zbyj-2"})(["margin-left:20px;font-size:16px;color:",";"],Qe.TEXT_DARK),hIe=({icon:e,label:t,onPress:n,hideBottomBorder:i,size:o="fit",centered:a=!1})=>(0,X.jsxs)(fIe,{onPress:n,hideBottomBorder:i,size:o,centered:a,children:[e,(0,X.jsx)(gIe,{children:t})]}),_Ie=({options:e,opened:t,onClose:n,children:i,onModalHide:o,size:a="fit",centered:s=!1})=>(0,X.jsx)(zw,{isOpen:t,onModalHide:o,size:a,displayCloseButton:!0,onClose:n,children:(0,X.jsxs)(mIe,{size:a,children:[e.map((t,n)=>(0,X.jsx)(hIe,Object.assign({},t,{hideBottomBorder:n===e.length-1,size:a,centered:s}),n)),i]})}),xIe=(0,Ge.default)(ws.default).withConfig({displayName:"add_image__Container",componentId:"sc-107h5ji-0"})(["width:102px;height:102px;border-radius:5px;border:2px solid ",";justify-content:center;align-items:center;margin:5px;"],Qe.GRAY_BORDER),yIe=({service:e,addPicture:t})=>{const{toast:{showToastMessage:n},session:{currentUser:{id:i,lastname:o}}}=lt();return(0,X.jsx)(xIe,{onPress:async()=>{if(!1===(await L4.requestMediaLibraryPermissionsAsync()).granted)return void n({message:i18n.t("error.permission_not_granted")});const a=await L4.launchImageLibraryAsync({mediaTypes:q4.MediaTypeOptions.Images,aspect:[4,4],quality:.1});if(null!==a&&void 0!==a&&a.canceled)return;const s=a.assets[0].uri;const r=await fetch(s),l=r.headers.get("Content-Type").replace("image/",""),d=`${i}-${o}-${e}-${Date.now()}`.replaceAll(".","-");let c=null;{const e=await r.blob();c=new File([e],`${d}.${l}`)}t({id:d,source:{uri:s},file:c})},children:(0,X.jsx)(Pa.default,{name:"plus",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,size:30,color:Qe.GRAY_3})})},vIe=(0,Ge.default)(ws.default).withConfig({displayName:"uploaded_image__Container",componentId:"sc-1sbu03i-0"})(["width:102px;height:102px;border-radius:5px;border:2px solid ",";justify-content:center;align-items:center;margin:5px;"],({selected:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.GRAY_BORDER),bIe=(0,Ge.default)(pu.default).withConfig({displayName:"uploaded_image__Image",componentId:"sc-1sbu03i-1"})(["width:100px;height:100px;border-radius:5px;resizemode:cover;"]),wIe=({imageSource:e,selected:t,setSelected:n,testID:i})=>(0,X.jsx)(vIe,{selected:t,onPress:()=>n(!t),testID:i,children:(0,X.jsx)(bIe,{source:e})}),CIe=({service:e,pictures:t,addPicture:n,selectedId:i,setSelectedId:o})=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(yIe,{service:e,addPicture:n}),t.map(({id:e,source:t})=>(0,X.jsx)(wIe,{testID:`ImageUploader::UploadedImage::${e}`,imageSource:t,selected:`${e}`===`${i}`,setSelected:()=>o(e)},e))]}),jIe=(0,Ge.default)(qe.default).withConfig({displayName:"platform_dependent_image_container__ImagesContainer",componentId:"sc-166ohc0-0"})(["width:100%;flex-direction:row;flex-wrap:wrap;"]),IIe=(0,Ge.default)(Vf.default).withConfig({displayName:"platform_dependent_image_container__ImagesScrollingContainer",componentId:"sc-166ohc0-1"})(["width:100%;"]),TIe=({children:e})=>{const{isDesktop:t}=uu();return t?(0,X.jsx)(jIe,{children:e}):(0,X.jsx)(IIe,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:e})},EIe=(0,Ge.default)(qe.default).withConfig({displayName:"image_uploader__Container",componentId:"sc-1gzb0y2-0"})(["flex-direction:row;margin-bottom:10px;"]),NIe=(0,Ge.default)(j.TouchableOpacity).withConfig({displayName:"image_uploader__CloseButton",componentId:"sc-1gzb0y2-1"})(["background-color:",";width:50%;height:30px;border-radius:5px;margin:10px auto 20px;flex-direction:row;justify-content:center;align-items:center;"],Qe.GREEN_SUMMER_GRASS),kIe=(0,Ge.default)(Be.default).withConfig({displayName:"image_uploader__CloseText",componentId:"sc-1gzb0y2-2"})(["color:",";"],Qe.WHITE),RIe=({service:e,pictures:t,setPictures:n})=>{const{toast:{showToastMessage:i}}=lt(),[o,a]=(0,K.useState)(null),[s,r]=(0,K.useState)(!1),{deleteServicePictures:l}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(HZ);return{deleteServicePictures:t=>e({variables:{pictureIds:t},context:{apiVersion:3}}),loading:t,error:n}})(),{isDesktop:d}=uu();(0,K.useEffect)(()=>r(null!==o),[o]);return(0,X.jsxs)(Uje,{name:i18n.t(`services.details.sections.${e}.image_uploader.title`,{defaultValue:i18n.t("services.details.sections.image_uploader.title")}),children:[(0,X.jsx)(Hje.default,{text:i18n.t(`services.details.sections.${e}.image_uploader.hint`,{defaultValue:i18n.t("services.details.sections.image_uploader.hint")}),style:{marginBottom:10}}),(0,X.jsx)(EIe,{children:(0,X.jsx)(TIe,{children:(0,X.jsx)(CIe,{service:e,pictures:t,addPicture:e=>n([e,...t]),selectedId:o,setSelectedId:a})})}),(0,X.jsx)(_Ie,{opened:s,options:[{label:i18n.t("services.details.sections.image_uploader.delete.label"),icon:(0,X.jsx)(Pa.default,{name:"delete",set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,color:Qe.TEXT_MEDIUM}),onPress:async()=>{let e=!1;if(/[a-zA-Z]/g.test(o))e=!0;else{const{data:t}=await l([o]);if(null!==t&&void 0!==t&&t.deleteServicePictures.success)e=!0;else{const e=(null===t||void 0===t?void 0:t.deleteServicePictures.errors.map(e=>e.message))||[];
3878i({message:e.length?e.join("; "):i18n.t("provider.generic.error")})}}e&&(i({message:i18n.t("services.details.sections.image_uploader.delete.successful"),type:"success"}),n(t.filter(e=>e.id!==o))),a(null)}}],onClose:()=>a(null),size:"xsmall",centered:!0,children:d&&(0,X.jsx)(NIe,{onPress:()=>a(null),children:(0,X.jsx)(kIe,{children:i18n.t("actions.close")})})})]})};var SIe=n(876);const AIe=({children:e,footer:t=null,scrollRef:n=null})=>(0,X.jsx)(Rf,{scrollRef:n,title:i18n.t("services.details.page_title"),content:()=>(0,X.jsx)(X.Fragment,{children:e}),noContentMargin:!0,hideTabMenu:!0,customFooter:t,onScrollBeginDrag:SIe.default.dismiss}),PIe=["sectionName"],DIe=(0,Ge.default)(Aa.default).attrs({size:"large",color:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"details__Spinner",componentId:"sc-1m4s5yi-0"})(["top:50%;"]),MIe=(0,Ge.default)(qe.default).withConfig({displayName:"details__Container",componentId:"sc-1m4s5yi-1"})(["margin:0 16px;",""],({isDesktop:e})=>e&&"\n      align-self: center;\n      width: 95%;\n    "),OIe=(0,Ge.default)(Be.default).withConfig({displayName:"details__ErrorMessage",componentId:"sc-1m4s5yi-2"})(["text-align:center;margin:30px;font-size:14px;color:",";font-weight:600;"],Qe.TEXT_MEDIUM),zIe=(0,Ge.default)(qe.default).withConfig({displayName:"details__Heading",componentId:"sc-1m4s5yi-3"})(["flex-direction:row;align-items:center;padding:0 0 20px;"]),LIe=(0,Ge.default)(Be.default).withConfig({displayName:"details__PageTitle",componentId:"sc-1m4s5yi-4"})(["font-size:20px;font-weight:600;color:",";padding-left:20px;flex-grow:1;"],Qe.TEXT_DARK),qIe=(0,Ge.default)(Be.default).withConfig({displayName:"details__Description",componentId:"sc-1m4s5yi-5"})(["font-size:14px;color:",";font-weight:600;padding-bottom:30px;"],Qe.TEXT_MEDIUM),BIe=(0,Ge.default)(qe.default).withConfig({displayName:"details__PriceContainer",componentId:"sc-1m4s5yi-6"})(["gap:12px;"]),GIe=(0,Ge.default)(qe.default).withConfig({displayName:"details__RequestReferences",componentId:"sc-1m4s5yi-7"})(["margin-bottom:20px;padding:20px;border-radius:10px;background:",";}"],Qe.GREEN_FROSTY_GREEN),UIe=(0,Ge.default)(Be.default).withConfig({displayName:"details__RequestReferencesText",componentId:"sc-1m4s5yi-8"})(["font-size:14px;color:",";font-weight:600;margin-bottom:15px;justify-content:center;"],Qe.TEXT_MEDIUM),$Ie=e=>i18n.t(`service.details.${e}.price_unit`,{defaultValue:i18n.t("currency_per_hour")}),FIe={ADHOC:"adhoc",REPEAT:"repeat"},HIe=()=>{var e;const{toast:{showToastMessage:t},session:{countryConfig:{servicesWithImages:n}}}=lt(),{isDesktop:i}=uu(),{service:o}=(0,Ks.useParams)(),a=(0,Ks.useHistory)(),{service:s,loading:r,error:l,refetch:d}=(e=>{const{data:t,error:n,refetch:i,loading:o}=(0,Is.useQuery)(qZ,{variables:{id:e},context:{apiVersion:3}});return{refetch:i,service:null===t||void 0===t?void 0:t.service,loading:o,error:n}})(o),{refetch:c}=LZ(),{updateServiceSettings:u,loading:p,error:m}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(BZ);return{updateServiceSettings:({settings:t,id:n,pictures:i,priceSetting:o,priceSettings:a})=>e({variables:{settings:t,id:n,pictures:i,priceSetting:o,priceSettings:a},context:{apiVersion:3}}),loading:t,error:n}})(),[f,g]=(0,K.useState)(!1),[h,_]=(0,K.useState)(XZ),[x,y]=(0,K.useState)(null),[v,b]=(0,K.useState)(null),[w,C]=(0,K.useState)(!1),[j,I]=(0,K.useState)(!1),[T,E]=(0,K.useState)({}),[N,k]=(0,K.useState)(!1),[R,S]=(0,K.useState)(_h()),[P,D]=(0,K.useState)(_h()),[M,O]=(0,K.useState)([]),[z,L]=(0,K.useState)({}),q=e=>{const{key:t,value:n,suggestion:i}=e;return"undefined"!==typeof z[t]?z[t]:"undefined"!==typeof n&&null!==n?n:"undefined"!==typeof(null===i||void 0===i?void 0:i.value)&&null!==i.value?i.value:""},B=null===s||void 0===s||null===(e=s.priceSetting)||void 0===e?void 0:e.limits,G=((null===s||void 0===s?void 0:s.settings)||[]).filter(e=>e.required).some(e=>
3878!q(e)),{getServiceCommissions:U,commissions:$,loadingCommissions:F}=UZ(),H=(0,K.useCallback)(Me()((e,t,n)=>{U(e,t,n)},400),[]),W=null!==s&&void 0!==s&&s.editableRecurringPricing?[XZ,ZZ]:[XZ],[V,Y]=(0,K.useState)({}),Z=(0,K.useRef)(null),Q=async()=>{var e,n;if(G)return(async()=>{var e;const t=((null===s||void 0===s?void 0:s.settings)||[]).filter(e=>e.required).find(e=>!q(e));if(!t)return;const n=V[t.key],i=V[t.sectionName];n&&i&&null!==Z&&void 0!==Z&&null!==(e=Z.current)&&void 0!==e&&e.scrollTo&&Z.current.scrollTo({y:n.y+i.y,animated:!0})})(),t({message:i18n.t("services.details.fields_with_errors")}),g(!0);const i=s.settings.map(e=>({key:e.key,value:q(e)})),r=Object.values(T).flat().map(e=>({enabled:e.enabled,pricingItemName:e.key,providerAdhocPrice:e.adhocPrice,providerRepeatPrice:e.repeatPrice})),l=await u({id:o,settings:i,pictures:M.filter(e=>!!e.file).map(e=>e.file),priceSettings:r.length?r:null,priceSetting:j||r.length?null:{providerAdhocPrice:x,providerRepeatPrice:v||x}});if(null===l||void 0===l||null===(e=l.data)||void 0===e||null===(n=e.updateServiceSettings)||void 0===n||!n.success){var p,m;const e=((null===l||void 0===l||null===(p=l.data)||void 0===p||null===(m=p.updateServiceSettings)||void 0===m?void 0:m.errors)||[]).map(e=>e.message);return void t({message:e.length?e.join("; "):i18n.t("provider.generic.error")})}d(),c(),t({message:i18n.t("services.details.success"),type:"success"}),a.push("/provider/services")};(0,K.useEffect)(()=>{var e,t;if(s){if(null!==(e=s.cartPriceSettings)&&void 0!==e&&e.length){let e=!1;const t=s.cartPriceSettings.reduce((t,n)=>("undefined"===typeof t[n.group]&&(t[n.group]=[]),e||=n.enabled,t[n.group].push(Object.assign({},n)),t),{});E(t),k(e)}else s.settings.some(({type:e})=>"CartItemPrice"===e)?(I(!0),L(s.settings.reduce((e,t)=>("CartItemPrice"===t.type&&(e[t.key]=t.value),e),{}))):(y(s.priceSetting.providerAdhocPrice),b(s.priceSetting.providerRepeatPrice||s.priceSetting.providerAdhocPrice));null!==n&&void 0!==n&&n.includes(o)&&null!==(t=s.pictures)&&void 0!==t&&t.length&&O(s.pictures.map(({id:e,url:t})=>({id:e,source:{uri:t}})))}},[s,n]),(0,K.useEffect)(()=>H(o,h,h===XZ?x:v||x),[o,h,x,v]),(0,K.useEffect)(()=>{if(F||!$)return;(h===XZ?S:D)(_h(gh($.customerPrice),gh($.helplingCommission),gh($.providerCommission),!0)),C(!1)},[$,F]);const J=(e,t)=>{const{y:n}=t.nativeEvent.layout;Y(t=>Object.assign({},t,{[e]:{y:n}}))};if(r)return(0,X.jsx)(AIe,{children:(0,X.jsx)(DIe,{})});if(l||m)return(0,X.jsx)(AIe,{children:(0,X.jsx)(OIe,{children:i18n.t("services.errors.loading_page")})});if(!s||!s.settings.length||!s.priceSetting)return(0,X.jsx)(AIe,{children:(0,X.jsx)(OIe,{children:i18n.t("services.details.not_found")})});const ee=s.settings.reduce((e,t)=>{let{sectionName:n}=t,i=(0,A.default)(t,PIe);return e[n]=e[n]||[],e[n].push(Object.assign({sectionName:n},i)),e},{}),te=Object.entries(ee).map(([e,t])=>({sectionName:e,items:t})),ne=h===XZ,ie=[...new Set(s.settings.map(e=>{var t;return(null===(t=e.suggestion)||void 0===t?void 0:t.fromServiceId)||null}).filter(e=>!!e))],oe=ne?x:v,ae=ne?R:P,se=ne?null===B||void 0===B?void 0:B.oneOffMinPrice:null===B||void 0===B?void 0:B.recurringMinPrice,re=ne?null===B||void 0===B?void 0:B.oneOffMaxPrice:null===B||void 0===B?void 0:B.recurringMaxPrice,le=T&&!!Object.keys(T).length,de=p||!j&&!le&&(oe<se||oe>re)||le&&!N;return(0,X.jsx)(Ae.KeyboardAvoidingView,{style:{display:"flex",flex:1},behavior:"padding",enabled:!0,children:(0,X.jsxs)(AIe,{scrollRef:Z,footer:i?null:(0,X.jsx)(Xje,{isCtaDisabled:de,saveSettings:Q,isServiceEnabled:s.enabled}),children:[(0,X.jsxs)(MIe,{isDesktop:i,children:[(0,X.jsxs)(zIe,{children:[(0,X.jsx)(MG.default,{name:o,size:40}),(0,X.jsx)(LIe,{children:i18n.t(`services.details.${o}.title`)})]}),(0,X.jsx)(qIe,{children:i18n.t(`services.details.${o}.description`)}),!!ie.length&&(0,X.jsx)(Hje.default,{text:i18n.t("services.details.pre_filled_info",{service:i18n.t(`services.details.${ie[0]}.title`)}),style:{marginBottom:20}}),te.map(({sectionName:e,items:t})=>(0,X.jsx)(Uje,{onLayout:t=>J(e,t),name:i18n.t(`services.details.${o}.sections.${e}`),$paddingBottom:10,children:t.map(e=>(0,X.jsx)(qe.default,{onLayout:t=>J(e.key,t),children:(0,X.jsx)(Kje,{isValid:!f||!e.required||!!q(e),service:o,item:Object.assign({},e,{value:q(e)}),onValueChange:t=>((e,t)=>L(Object.assign({},z,{[e]:t}
3878)))(e.key,t)})},e.key))},e)),n.includes(o)&&(0,X.jsx)(RIe,{service:o,pictures:M,setPictures:O}),le&&(0,X.jsx)(Uje,{name:i18n.t(`services.details.${o}.price_section.title`,{defaultValue:i18n.t("services.details.price_section.title")}),$paddingBottom:10,children:(0,X.jsx)(pIe,{service:o,isReccuringAvailable:s.editableRecurringPricing,priceSettings:T,setPriceInPriceSettings:(e,t,n,i)=>{const o=Object.assign({},T);o[e].map(e=>(e.key!==t||(n===FIe.ADHOC&&(e.adhocPrice=i),n!==FIe.REPEAT&&s.editableRecurringPricing||(e.repeatPrice=i)),e)),E(o)},setEnabledInPriceSettings:(e,t,n)=>{const i=Object.assign({},T);i[e].map(e=>(e.key!==t||(e.enabled=n),e)),E(i),k(Object.values(i).flat().some(e=>e.enabled))}})}),!j&&!le&&(0,X.jsxs)(Uje,{name:i18n.t(`services.details.${o}.price_section.title`,{defaultValue:i18n.t("services.details.price_section.title")}),$paddingBottom:10,children:[W.length>1&&(0,X.jsx)(qje.default,{testID:"ServiceDetails::FrequencyTabs",choices:W.map(e=>({label:i18n.t(`services.details.price_section.${e}`),value:e})),selectedChoice:h,setSelectedChoice:_,style:{marginBottom:20}}),(0,X.jsxs)(BIe,{children:[(0,X.jsx)(rQ,{testID:"ServiceDetails::PriceItem::"+(ne?"AdHoc":"Recurring"),value:oe,setValue:e=>{C(!0),ne?y(e):b(e)},min:se,max:re,unit:$Ie(o)}),(0,X.jsx)(_Q,{customerPrice:oe,blurringPrice:w,breakdownLabel:i18n.t("services.details.price_section.price_breakdown.title"),priceBreakdown:ae})]})]}),(0,X.jsx)(Uje,{name:i18n.t("services.details.request_references.title"),$lastSection:!0,children:(0,X.jsxs)(GIe,{children:[(0,X.jsx)(UIe,{children:i18n.t("services.details.request_references.explanation")}),(0,X.jsx)(ms,{onPress:()=>{a.push(Ki(s.id))},stretched:!0,activeOpacity:1,variant:"secondary",children:i18n.t("services.details.request_references.cta.text")})]})})]}),!!i&&(0,X.jsx)(Xje,{isCtaDisabled:de,saveSettings:Q,isServiceEnabled:s.enabled})]})})},WIe=()=>(0,X.jsx)(HIe,{});var VIe=n(27784);const KIe=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_events__Container",componentId:"sc-1wg5v5q-0"})(["margin-top:20px;"]),YIe=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_events__MonthWrapper",componentId:"sc-1wg5v5q-1"})(["margin-bottom:10px;"]),XIe=(0,Ge.default)(rf.default).withConfig({displayName:"monthly_events__Month",componentId:"sc-1wg5v5q-2"})(["font-size:14px;font-weight:600;"]),ZIe=(0,Ge.default)(qe.default).withConfig({displayName:"monthly_events__CardWrapper",componentId:"sc-1wg5v5q-3"})(["margin-bottom:10px;"]),QIe=({month:e,events:t,topic:n,clickOnEventDisabled:i,onEventClick:o})=>{const a=(0,K.useCallback)(e=>n===v_?(0,X.jsx)(VIe.default,{title:`${e.customer.firstname} ${e.customer.lastname}`,price:fh(e.totals.totalProviderCancellationsFees,{withSymbol:!0}),subtitle:i18n.t(`verticals.categories.${e.category}.name`),description:AC(e.startTime,e.duration),onClick:()=>o(e),showRadioButton:!1,selected:!1}):(0,X.jsx)(yhe,{event:e,onClick:()=>o(e),disabled:i}),[n,i,o]);return(0,X.jsxs)(KIe,{children:[(0,X.jsx)(YIe,{children:(0,X.jsx)(XIe,{children:e})}),t.map(e=>(0,X.jsx)(ZIe,{testID:"ResolutionCenterRelatedEvent",children:a(e)},e.id))]},e)};QIe.propTypes={month:ze().string.isRequired,events:ze().array.isRequired,topic:ze().string.isRequired,clickOnEventDisabled:ze().bool,onEventClick:ze().func.isRequired};const JIe=QIe,eTe=(0,Ge.default)(qe.default).withConfig({displayName:"no_events_matches__Container",componentId:"sc-1gvm4n6-0"})(["padding:30px 16px;"]),tTe=(0,Ge.default)(Be.default).withConfig({displayName:"no_events_matches__Message",componentId:"sc-1gvm4n6-1"})(["font-weight:bold;color:",";text-align:center;margin-bottom:23px;"],Qe.TEXT_DARK),nTe=({topic:e})=>(0,X.jsxs)(eTe,{children:[(0,X.jsx)(tTe,{children:i18n.t("resolution_center.related_events.labels.no_events")}),e===b_&&(0,X.jsx)(LB.default,{title:i18n.t("resolution_center.related_events.no_events_matches.tips.customer_no_show.title"),style:{backgroundColor:Qe.TEAL_5}})]});nTe.propTypes={topic:ze().string.isRequired};const iTe=nTe,oTe=(0,Ge.default)(qe.default).withConfig({displayName:"related_events__Container",componentId:"sc-1lot31h-0"})(["padding:12px 16px;"]),aTe=(0,Ge.default)(rf.default).withConfig({displayName:"related_events__Header",componentId:"sc-1lot31h-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),sTe=(0,Ge.default)(rf.default).withConfig({displayName:"related_events__Title",componentId:"sc-1lot31h-2"})(["font-size:16px;font-weight:700;"]),rTe=(0,Ge.default)(rf.default).withConfig({displayName:"related_events__ErrorMessage",componentId:"sc-1lot31h-3"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),lTe=()=>{const{topic:e}=(0,Ks.useParams)(),{relatedEvents:t,loading:n,error:i}=ux(e),{navigateToReportCaseFlow:o,loading:a}=wx(),s=(0,K.useMemo)(()=>(e=>e?e.reduce((e,t)=>
3878{const n=C.DateTime.fromISO(t.startTime),i=n.toFormat("LLL yyyy");return e[i]||(e[i]=[]),e[i].push(Object.assign({},t,{startTime:n})),e},{}):{})(t),[t]),r=(0,K.useCallback)(t=>{a||o(e,t.id)},[a,o,e]);return n||a?(0,X.jsx)(Aa.default,{}):i?(0,X.jsx)(rTe,{children:i18n.t("ui.error.generic")}):null!==t&&void 0!==t&&t.length?(0,X.jsxs)(oTe,{children:[(0,X.jsx)(aTe,{children:i18n.t("resolution_center.related_events.header")}),(0,X.jsx)(sTe,{children:i18n.t("resolution_center.related_events.labels.completed")}),Object.entries(s).map(([t,n])=>(0,X.jsx)(JIe,{month:t,events:n,topic:e,onEventClick:r,clickOnEventDisabled:a},t))]}):(0,X.jsx)(iTe,{topic:e})},dTe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(lTe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(lTe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})};var cTe=n(99544);const uTe=({files:e,onAddEvidence:t,evidencesPendingRemovalIds:n,onRemoveEvidence:i,onError:o})=>(0,X.jsx)(ffe.default,{testID:"ResolutionCenterUpload",info:i18n.t("resolution_center.reported_case.add_documents.document_picker.info"),onSelect:t,onRemove:i,onError:o,selectFileButtonTitle:i18n.t("resolution_center.reported_case.add_documents.document_picker.button_title"),mimeTypes:["image/png","image/jpeg","image/gif","application/pdf"],disabledSelectFileButton:(null===e||void 0===e?void 0:e.length)>=5,maxSize:2,hideInfo:!1,disableSelectButton:!1,hideSelectFileButton:!1,hideRemoveIcon:!1,files:e,filesPendingRemovalIds:n,urlToServices:vi,selectFileButtonBorderColor:Qe.TEXT_DARK,selectFileButtonTitleColor:Qe.TEXT_DARK});uTe.propTypes={files:ze().array.isRequired,evidencesPendingRemovalIds:ze().arrayOf(ze().string).isRequired,onAddEvidence:ze().func.isRequired,onRemoveEvidence:ze().func.isRequired,onError:ze().func.isRequired};const pTe=uTe,mTe=(0,Ge.default)(qe.default).withConfig({displayName:"add_documents__Container",componentId:"sc-10gqo56-0"})(["padding:12px 16px;"]),fTe=(0,Ge.default)(rf.default).withConfig({displayName:"add_documents__Header",componentId:"sc-10gqo56-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),gTe=(0,Ge.default)(rf.default).withConfig({displayName:"add_documents__Title",componentId:"sc-10gqo56-2"})(["color:",";font-weight:400;font-size:20px;line-height:26px;text-align:center;margin-bottom:20px;margin-top:20px;"],Qe.TEXT_DARK),hTe=(0,Ge.default)(rf.default).withConfig({displayName:"add_documents__Description",componentId:"sc-10gqo56-3"})(["font-style:normal;font-weight:400;font-size:14px;line-height:21px;color:",";margin-bottom:20px;text-align:center;"],Qe.TEXT_DARK),_Te=(0,Ge.default)(LB.default).withConfig({displayName:"add_documents__UploadHighlightTip",componentId:"sc-10gqo56-4"})(["margin-bottom:9px;"]),xTe=(0,Ge.default)(qe.default).withConfig({displayName:"add_documents__CTAsContainer",componentId:"sc-10gqo56-5"})(["align-items:center;margin-top:35px;"]),yTe=e=>{var t;return(null===e||void 0===e||null===(t=e.evidences)||void 0===t?void 0:t.filter(e=>"provider"===e.reporterAccountType))||[]},vTe=()=>{const[e,t]=(0,K.useState)(""),[n,i]=(0,K.useState)([]),[o,a]=(0,K.useState)([]),{toast:{showToastMessage:s},events:{removeEvent:r}}=lt(),l=(0,Ks.useHistory)(),{id:d}=(0,Ks.useParams)(),{kase:c,loading:u,error:p}=yx(d,e=>{var t;return i(yTe(null===e||void 0===e||null===(t=e.resolutionCenter)||void 0===t?void 0:t.case))}),{addsEvidence:m,loading:f}=sx(),{removeEvidence:g,loading:h}=lx(),{fileCase:_,loading:x}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(_x,{context:{apiVersion:3}});return{fileCase:({id:t,notes:n})=>e({variables:{id:t,notes:n}}),loading:t}})(),y=(e={})=>{e.success?i(yTe(e.case)):s({message:i18n.t("resolution_center.reported_case.upload_document.error.generic")})},v=(0,K.useCallback)(e=>mfe(e.uri,e.name).then(e=>m({id:d,evidence:e})).then(({data:e})=>y(null===e||void 0===e?void 0:e.providerResolutionCenterAddsCaseEvidence)).catch(()=>s({message:i18n.t("ui.error.generic")})),[d]),b=(0,K.useCallback)(e=>{a(t=>[...t,e.id]),g({id:d,evidenceId:e.id}).then(({data:e})=>y(null===e||void 0===e?void 0:e.providerResolutionCenterRemovesCaseEvidence)).catch(()=>s({message:i18n.t("ui.error.generic")})).finally(()=>a(t=>t.filter(t=>t!==e.id)))},[d]),w=(0,K.useCallback)(()=>s({message:i18n.t("resolution_center.reported_case.upload_document.error.generic")}),[]);if(u)return(0,X.jsx)(xm.ActivityIndicator,{});if(p||!c)return(0,X.jsx)(Ks.Redirect,{to:Mi(),replace:!0});if("draft"!==c.state)return(0,X.jsx)(Ks.Redirect,{to:qi(c.id),replace:!0});const C=f||h||x||!e||I_.includes(c.topic)&&!n.length;return(0,X.jsxs)(mTe,{children:[(0,X.jsx)(fTe,{children:i18n.t("resolution_center.reported_case.add_documents.header")}),(0,X.jsx)(yhe,{event:c.related,onClick:()=>l.push(Ni(c.related.id)),style:{marginBottom:20}}),(0,X.jsx)(gTe,{children:i18n.t("resolution_center.reported_case.add_documents.title")}),(0,X.jsx)(hTe,{children:i18n.t("resolution_center.reported_case.add_documents.description")}),(0,X.jsx)(_Te,{title:i18n.t("resolution_center.reported_case.add_documents.upload_tip.title"),description:i18n.t("resolution_center.reported_case.add_documents.upload_tip.description")}
3878),(0,X.jsx)(pTe,{kase:c,files:n,evidencesPendingRemovalIds:o,onAddEvidence:v,onRemoveEvidence:b,onError:w}),(0,X.jsx)(yfe.default,{testID:"ResolutionCenterField:providerNotes",label:i18n.t("resolution_center.reported_case.add_documents.provider_notes.label"),labelStyle:{color:Qe.TEXT_DARK},style:{marginTop:25},maxLength:2e3,value:e,numberOfLines:10,onChangeText:t}),(0,X.jsxs)(xTe,{children:[(0,X.jsx)(cTe.default,{testID:"ResolutionCenterFilesCaseSubmit",label:i18n.t(`resolution_center.reported_case.add_documents.${c.topic}.cta.send_request`),onPress:()=>_({id:d,notes:e}).then(({data:e})=>{var t;if(null!==e&&void 0!==e&&null!==(t=e.resolutionCenterFilesCase)&&void 0!==t&&t.success){var n;if(c.topic===b_)r(null===(n=c.related)||void 0===n?void 0:n.id);l.push(`/provider/resolution_center/cases/${c.id}/confirmation`)}else{var i,o;const t=null===e||void 0===e||null===(i=e.resolutionCenterFilesCase)||void 0===i||null===(o=i.errors[0])||void 0===o?void 0:o.code,n=t?i18n.t(`resolution_center.reported_case.file_case.errors.${t}`):i18n.t("ui.error.generic");s({message:n})}}).catch(()=>s({message:i18n.t("ui.error.generic")})),disabled:C,color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,style:{width:"100%",marginBottom:10}}),(0,X.jsx)(cTe.default,{label:i18n.t("shared.cta_labels.cancel"),color:Qe.WHITE,textColor:Qe.GREEN_SUMMER_GRASS,onPress:()=>l.replace(Mi()),style:{width:"100%"}})]})]})},bTe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(vTe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(vTe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},wTe=(0,Ge.default)(qe.default).withConfig({displayName:"select_reason__Container",componentId:"sc-weotqt-0"})(["padding:12px 16px;"]),CTe=(0,Ge.default)(rf.default).withConfig({displayName:"select_reason__Header",componentId:"sc-weotqt-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),jTe=(0,Ge.default)(rf.default).withConfig({displayName:"select_reason__Title",componentId:"sc-weotqt-2"})(["color:",";font-weight:400;font-size:20px;line-height:26px;text-align:center;margin-bottom:20px;margin-top:20px;"],Qe.TEXT_DARK),ITe=(0,Ge.default)(rf.default).withConfig({displayName:"select_reason__Description",componentId:"sc-weotqt-3"})(["font-style:normal;font-weight:400;font-size:14px;line-height:21px;color:",";margin-bottom:20px;text-align:center;"],Qe.TEXT_DARK),TTe=(0,Ge.default)(qe.default).withConfig({displayName:"select_reason__ReasonsContainer",componentId:"sc-weotqt-4"})(["margin:20px 0px;"]),ETe=(0,Ge.default)(qe.default).withConfig({displayName:"select_reason__CTAsContainer",componentId:"sc-weotqt-5"})(["align-items:center;margin-top:35px;"]),NTe=(0,Ge.default)(rf.default).withConfig({displayName:"select_reason__ErrorMessage",componentId:"sc-weotqt-6"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),kTe=()=>{const[e,t]=(0,K.useState)(),{toast:{showToastMessage:n}}=lt(),i=(0,Ks.useHistory)(),{topic:o,relatedId:a}=(0,Ks.useParams)(),{reasons:s,loading:r,error:l}=(e=>{var t;const{data:n,error:i,loading:o}=(0,Is.useQuery)(fx,{context:{apiVersion:3},variables:{relatedType:"Event",topic:e}});return{reasons:null===n||void 0===n||null===(t=n.resolutionCenter)||void 0===t?void 0:t.caseReasons,loading:o,error:i}})(o),{relatedEvents:d,loading:c,error:u}=ux(o),p=null===d||void 0===d?void 0:d.find(e=>e.id===a),{reportCase:m,loading:f}=hx(),g=(0,K.useCallback)(()=>{m({relatedId:a,topic:o,reason:e}).then(({data:e})=>{e.resolutionCenterReportsCase.success?i.push(zi(e.resolutionCenterReportsCase.case.id)):("invalid_case_topic"===e.resolutionCenterReportsCase.errors[0].code&&i.push("/provider/resolution_center/report_problem/event"),n({message:i18n.t("ui.error.generic")}))}).catch(()=>n({message:i18n.t("ui.error.generic")}))},[e,o,a]);return r||c?(0,X.jsx)(Aa.default,{}):l||u?(0,X.jsx)(NTe,{children:i18n.t("ui.error.generic")}):p?(0,X.jsxs)(wTe,{children:[(0,X.jsx)(CTe,{children:i18n.t(`resolution_center.select_reason_for_topic.${o}.header`)}),(0,X.jsx)(yhe,{event:p,onClick:()=>i.push(Ni(p.id)),style:{marginBottom:20}}),(0,X.jsx)(jTe,{children:i18n.t(`resolution_center.select_reason_for_topic.${o}.title`)}),(0,X.jsx)(ITe,{children:i18n.t(`resolution_center.select_reason_for_topic.${o}.description`)}),(0,X.jsx)(TTe,{children:s.map(n=>(0,X.jsx)(ofe.default,{testID:`ResolutionCenterEventSelectReason:${n}`,label:i18n.t(`resolution_center.cases.by_provider.topics.${o}.reasons.${n}`),value:n,colorSelected:Qe.GREEN_SUMMER_GRASS,selectedValue:e,setSelectedValue:t,style:{marginBottom:10}},n))}),(0,X.jsxs)(ETe,{children:[(0,X.jsx)(cTe.default,{testID:"ResolutionCenterSelectReasonSubmit",label:i18n.t("shared.cta_labels.continue"),onPress:g,disabled:!e||f,color:Qe.GREEN_SUMMER_GRASS,textColor:Qe.WHITE,style:{width:300,marginBottom:10}}),(0,X.jsx)(cTe.default,{label:i18n.t("shared.cta_labels.cancel"),color:Qe.WHITE,textColor:Qe.GREEN_SUMMER_GRASS,onPress:()=>i.replace(Mi()),style:{width:300}})]})]}):(i.goBack(),null)},RTe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(kTe,{}
3878),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(kTe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},STe=e=>(0,X.jsx)(Wu.default,Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 48 43"},e,{children:(0,X.jsx)(Wu.Path,{fill:Qe.GREEN_GROWN_UP_GREEN,d:"M20.676 42.985c-.752 0-1.353-.568-1.353-1.277 0-.71.601-1.277 1.353-1.277h16.386c1.052 0 2.105-.284 2.556-.567.15-.142.3-.284.3-.426 0-.284.15-.71.15-.993 0-.142 0-.284-.15-.426-.15-.142-.15-.425-.3-.567-.301-.852-.15-1.845.601-2.412.3-.284.752-.426 1.052-.568h.15c.452-.283.602-.709.602-1.135 0 0 0-.142-.15-.142-.301-.567-.752-1.276-.451-2.128.3-.71.902-1.277 1.202-1.419.902-.567 1.504-1.135 1.504-1.56 0-.142 0-.426-.15-.568 0 0-.151-.142-.151-.283v-.142c-.451-.568-.902-1.419-.451-2.27.15-.426.451-.71.752-.851l.15-.143c.15-.141.3-.425.451-.992 0-.142 0-.284-.15-.284-.15-.284-.451-.71-.602-1.135-.15-.142-.3-.284-.601-.284H32.703c-.752 0-1.354-.567-1.354-1.277 0-.426-1.052-11.634-1.052-13.053 0-.709-.15-1.418-.451-1.986a3.072 3.072 0 0 0-.752-1.135c-.3-.284-.902-.567-1.353-.567h-.601c-.902.142-1.353.425-1.503.709-.15.426-.15.993-.15 1.845 0 .567.15 1.134 0 1.844v.425c-1.053 14.33-7.667 18.16-13.08 18.87-.3 0-.6.284-.6.71v12.626c0 1.56-1.354 2.838-3.007 2.838H3.388c-1.654 0-3.007-1.277-3.007-2.838V23.264c0-1.56 1.353-2.837 3.007-2.837h5.261c1.654 0 3.007 1.276 3.007 2.837v.284c0 .142.15.426.3.567.15.142.301.142.452.142h.15c5.712-1.135 9.17-6.81 9.922-16.316V6.24c-.15-.993-.15-2.128.3-3.263.902-1.703 2.706-2.128 3.608-2.27.301-.142.752-.142 1.053-.142 1.353 0 2.556.426 3.457 1.277.602.567 1.053 1.277 1.354 1.986.45.851.6 1.986.751 2.98 0 .993.752 8.654.902 11.066 0 .284.3.567.752.567h9.922c.45 0 .902.284 1.202.71 1.654 2.695 1.654 2.837 1.804 3.121.15 1.277-.15 2.412-.902 3.263-.15.142-.15.426 0 .71l.451.85c.451 1.561-.3 2.98-2.104 4.399-.301.142-.301.567-.15.71 0 .141.15.283.15.425.45 1.419-.15 3.121-1.504 3.972-.3.142-.45.426-.3.71 0 .142.15.425.15.567 0 .568 0 2.412-.752 3.264-1.202 1.418-3.908 1.702-5.111 1.702H20.676v.142ZM3.839 23.122c-.451 0-.752.284-.752.71v15.89c0 .425.3.709.752.709h4.209c.45 0 .752-.284.752-.71V23.69c0-.426-.301-.71-.752-.71h-4.21v.142Z"})})),ATe=(0,Ge.default)(qe.default).withConfig({displayName:"case_reported_confirmation__Container",componentId:"sc-1f23uzr-0"})(["padding:12px 16px;"]),PTe=(0,Ge.default)(qe.default).withConfig({displayName:"case_reported_confirmation__Wrapper",componentId:"sc-1f23uzr-1"})(["border:0px solid ",";border-bottom-width:1px;padding-bottom:50px;padding-top:40px;"],Qe.GRAY_BORDER),DTe=(0,Ge.default)(qe.default).withConfig({displayName:"case_reported_confirmation__ThumbsUpIconContainer",componentId:"sc-1f23uzr-2"})(["padding:20px;border-radius:50px;background-color:",";align-self:center;"],Qe.GREEN_FROSTY_GREEN),MTe=(0,Ge.default)(rf.default).withConfig({displayName:"case_reported_confirmation__Title",componentId:"sc-1f23uzr-3"})(["font-size:20px;font-weight:600;color:",";text-align:center;margin-top:24px;"],Qe.TEXT_DARK),OTe=(0,Ge.default)(rf.default).withConfig({displayName:"case_reported_confirmation__CaseID",componentId:"sc-1f23uzr-4"})(["font-weight:700;color:",";text-align:center;margin-top:9px;"],Qe.TEXT_MEDIUM),zTe=(0,Ge.default)(rf.default).withConfig({displayName:"case_reported_confirmation__Description",componentId:"sc-1f23uzr-5"})(["color:",";text-align:center;margin:36px 20px;"],Qe.TEXT_DARK),LTe=(0,Ge.default)(rf.default).withConfig({displayName:"case_reported_confirmation__ErrorMessage",componentId:"sc-1f23uzr-6"})(["padding-top:15px;padding-bottom:5px;color:",";font-size:16px;text-align:center;"],Qe.CRIMSON_1),qTe=()=>{const e=(0,Ks.useHistory)(),{id:t}=(0,Ks.useParams)(),{kase:n,loading:i,error:o}=yx(t);return i?(0,X.jsx)(xm.ActivityIndicator,{}):o?(0,X.jsx)(LTe,{children:i18n.t("ui.error.generic")}):"draft"===n.state?(e.replace(zi(n.id)),null):(0,X.jsx)(ATe,{children:(0,X.jsxs)(PTe,{children:[(0,X.jsx)(DTe,{children:(0,X.jsx)(STe,{width:47,height:42})}),(0,X.jsx)(MTe,{children:i18n.t("resolution_center.case_reported_confirmation.title")}),(0,X.jsx)(OTe,{children:i18n.t("resolution_center.case_reported_confirmation.case_id",{caseId:n.id})}),(0,X.jsx)(zTe,{children:i18n.t("resolution_center.case_reported_confirmation.description")}),(0,X.jsx)(ms,{testID:"ResolutionCenterConfirmationGoToCaseDetails",centered:!0,fontSize:"14px",onPress:()=>e.push(qi(n.id)),children:i18n.t("resolution_center.case_reported_confirmation.view_cases_details")})]})})},BTe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(qTe,{}
3878),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(qTe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},GTe=["question","answer"],UTe=(0,Ge.default)(qe.default).withConfig({displayName:"collapsible_question_answer_box__Container",componentId:"sc-rp42mq-0"})(["margin-top:19px;"]),$Te=(0,Ge.default)(ws.default).withConfig({displayName:"collapsible_question_answer_box__QuestionContainer",componentId:"sc-rp42mq-1"})(["flex-direction:row;align-items:center;"]),FTe=(0,Ge.default)(Be.default).withConfig({displayName:"collapsible_question_answer_box__Question",componentId:"sc-rp42mq-2"})(["font-weight:600;line-height:16px;color:",";"],Qe.GRAY_2),HTe=(0,Ge.default)(qe.default).withConfig({displayName:"collapsible_question_answer_box__AnswerContainer",componentId:"sc-rp42mq-3"})(["padding:8px 12px;margin:4px 2px;border-radius:4px;background-color:",";"],Qe.GRAY_4),WTe=(0,Ge.default)(Be.default).withConfig({displayName:"collapsible_question_answer_box__Answer",componentId:"sc-rp42mq-4"})(["font-weight:400;font-size:12px;line-height:16px;color:",";"],Qe.GRAY_2),VTe=(0,Ge.default)(Be.default).withConfig({displayName:"collapsible_question_answer_box__GotIt",componentId:"sc-rp42mq-5"})(["font-weight:700;line-height:16px;color:",";margin-top:8px;text-decoration:underline;"],Qe.GRAY_1),KTe=(0,Ge.default)(Be.default).withConfig({displayName:"collapsible_question_answer_box__QuestionIcon",componentId:"sc-rp42mq-6"})(["margin-left:8px;width:20px;height:20px;text-align:center;color:",";background-color:",";border:1px solid ",";border-radius:50px;"],Qe.VIOLET_1,Qe.VIOLET_5,Qe.VIOLET_1),YTe=e=>{let{question:t,answer:n}=e,i=(0,A.default)(e,GTe);const[o,a]=(0,K.useState)(!1);return(0,X.jsxs)(UTe,Object.assign({},i,{children:[(0,X.jsxs)($Te,{onPress:()=>a(!0),children:[(0,X.jsx)(FTe,{children:t}),(0,X.jsx)(KTe,{children:"?"})]}),o&&(0,X.jsxs)(HTe,{children:[(0,X.jsx)(WTe,{children:n}),(0,X.jsx)(ws.default,{onPress:()=>a(!1),children:(0,X.jsx)(VTe,{children:i18n.t("bank_transfers.collapsible_question_answer_box.got_it")})})]})]}))};YTe.propTypes={question:ze().string.isRequired,answer:ze().string.isRequired};const XTe=YTe,ZTe=(0,Ge.default)(ms).attrs({centered:!0,stretched:!0}).withConfig({displayName:"close_case_actions__ActionButton",componentId:"sc-1f7hdav-0"})(["margin-top:8px;"]),QTe=({kase:e})=>{const{toast:{showToastMessage:t}}=lt(),[n,i]=(0,K.useState)(!1),[o,a]=(0,K.useState)(!1),{closeCase:s,loading:r}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(vx,{context:{apiVersion:3}});return{closeCase:({id:t,resolution:n})=>e({variables:{id:t,resolution:n},refetchQueries:[{query:xx,variables:{id:t},context:{apiVersion:3},fetchPolicy:"network-only"}]}),loading:t}})(),l=n=>{s({id:e.id,resolution:n}).then(({data:e})=>{e.resolutionCenterClosesCase.success||t({message:e.resolutionCenterClosesCase.errors[0].code})}).catch(()=>t({message:i18n.t("ui.error.generic")}))};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(XTe,{question:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.tips.question_what_is_pair_finance"),answer:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.tips.answer_what_is_pair_finance"),style:{marginBottom:4}}),(0,X.jsx)(ZTe,{onPress:()=>i(!0),disabled:r,children:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.actions.report_failed_payment_to_pair_finance")}),(0,X.jsx)(ZTe,{onPress:()=>a(!0),disabled:r,children:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.actions.do_not_report_failed_payment_to_pair_finance")}),(0,X.jsx)(dL,{isOpen:n,title:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.confirmations_modals.report_failed_payment.title"),subtitle:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.confirmations_modals.report_failed_payment.subtitle"),confirmButtonText:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.confirmations_modals.report_failed_payment.confirm_button"),closeButtonText:i18n.t("shared.cta_labels.cancel"),confirmActionLoading:r,disableConfirmButton:r,onConfirm:()=>l(c_),onClose:()=>i(!1)}),(0,X.jsx)(dL,{isOpen:o,title:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.confirmations_modals.report_failed_payment.title"),subtitle:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.confirmations_modals.do_not_report_failed_payment.subtitle"),confirmButtonText:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.confirmations_modals.do_not_report_failed_payment.confirm_button"),closeButtonText:i18n.t("shared.cta_labels.cancel"),confirmActionLoading:r,disableConfirmButton:r,onConfirm:()=>l(u_),onClose:()=>a(!1)})]})};
3878QTe.propTypes={kase:ze().shape({id:ze().string.isRequired})};const JTe=QTe,eEe=(0,Ge.default)(LB.default).withConfig({displayName:"tip__Tip",componentId:"sc-tzbycc-0"})(["background-color:",";"],Qe.TEAL_5),tEe=(0,Ge.default)(qe.default).withConfig({displayName:"customer_failed_payment__Line",componentId:"sc-1ov5ju3-0"})(["margin-top:24px;"]),nEe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_failed_payment__Question",componentId:"sc-1ov5ju3-1"})(["font-size:13px;color:",";font-weight:700;"],Qe.TEXT_MEDIUM),iEe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_failed_payment__Answer",componentId:"sc-1ov5ju3-2"})(["font-size:13px;color:",";margin-top:6px;flex-wrap:wrap;"],Qe.TEXT_MEDIUM),oEe=(0,Ge.default)(ts).withConfig({displayName:"customer_failed_payment__Link",componentId:"sc-1ov5ju3-3"})(["align-items:center;"]),aEe=(0,Ge.default)(Be.default).withConfig({displayName:"customer_failed_payment__LinkText",componentId:"sc-1ov5ju3-4"})(["color:",";font-size:13px;text-decoration-line:underline;font-weight:700;"],Qe.GREEN_SUMMER_GRASS),sEe=({kase:e})=>{const t=lu(),n="closed"===e.state,i=()=>{t(i18n.t("resolution_center.reported_case_details.customer_payment_failed.actions.follow_up_action.answers.what_happens_next_link"))};return n&&e.closedResolution===c_?(0,X.jsx)(eEe,{title:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.tips.reported_to_pair_finance")}):n&&e.closedResolution===u_?(0,X.jsx)(eEe,{title:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.tips.did_not_report_to_pair_finance")}):n||e.providerCanCloseCase?!n&&e.providerCanCloseCase?(0,X.jsxs)(qe.default,{children:[(0,X.jsxs)(tEe,{children:[(0,X.jsx)(nEe,{children:i18n.t("resolution_center.case_details_page.actions.questions.q1")}),(0,X.jsxs)(iEe,{children:[i18n.t("resolution_center.reported_case_details.customer_payment_failed.actions.follow_up_action.answers.what_happens_next"),(0,X.jsx)(oEe,{onPress:i,children:(0,X.jsx)(aEe,{children:i18n.t("resolution_center.reported_case_details.customer_payment_failed.actions.follow_up_action.answers.what_happens_next_label")})}),i18n.t("resolution_center.reported_case_details.customer_payment_failed.actions.follow_up_action.answers.what_happens_next_part_2")]})]}),(0,X.jsx)(JTe,{kase:e})]}):void 0:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(tEe,{children:[(0,X.jsx)(nEe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.q1")}),(0,X.jsx)(iEe,{children:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.answers.what_happening")})]}),(0,X.jsxs)(tEe,{children:[(0,X.jsx)(nEe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.q2")}),(0,X.jsx)(iEe,{children:i18n.t("resolution_center.reported_case_details.customer_payment_failed.time_line.follow_up_action.answers.what_happens_next")})]})]})};
3878sEe.propTypes={kase:ze().shape({state:ze().string.isRequired,providerCanCloseCase:ze().bool,closedResolution:ze().string})};const rEe=sEe,lEe=(0,Ge.default)(qe.default).withConfig({displayName:"default__Line",componentId:"sc-g7xbmn-0"})(["margin-top:24px;"]),dEe=(0,Ge.default)(Be.default).withConfig({displayName:"default__Question",componentId:"sc-g7xbmn-1"})(["font-size:13px;color:",";font-weight:700;"],Qe.TEXT_MEDIUM),cEe=(0,Ge.default)(Be.default).withConfig({displayName:"default__Answer",componentId:"sc-g7xbmn-2"})(["font-size:13px;color:",";margin-top:6px;"],Qe.TEXT_MEDIUM),uEe=({kase:e})=>{if("closed"!==e.state)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(lEe,{children:[(0,X.jsx)(dEe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.q1")}),(0,X.jsx)(cEe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.a1")})]}),(0,X.jsxs)(lEe,{children:[(0,X.jsx)(dEe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.q2")}),(0,X.jsx)(cEe,{children:i18n.t("resolution_center.case_details_page.time_line.questions.a2")})]})]})};
3878uEe.propTypes={kase:ze().shape({state:ze().string.isRequired,topic:ze().string.isRequired,closedResolution:ze().string})};const pEe=uEe,mEe=(0,Ge.default)(qe.default).withConfig({displayName:"case_status_timeline__Container",componentId:"sc-eyvaho-0"})(["gap:16px;"]),fEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_status_timeline__Status",componentId:"sc-eyvaho-1"})(["font-size:20px;font-weight:600;color:",";padding:16px 0;border:0 solid ",";border-top-width:1px;border-bottom-width:1px;"],Qe.TEXT_DARK,Qe.GRAY_BORDER),gEe={[v_]:class extends Hge{generateResolvedCaseTimeline(){const{closedAt:e}=this.kase,t={status:Fge,iconColor:Qe.CTA_GREEN};return[Object.assign({name:i18n.t("resolution_center.case_details_page.time_line.steps.provider_filed_case"),description:this.formatDate(this.kase.filedAt)},t),Object.assign({name:i18n.t("resolution_center.case_details_page.time_line.steps.admin_case_reviewed_title"),description:this.getClosedCaseReviewDescription()},t),Object.assign({name:i18n.t("resolution_center.case_details_page.time_line.steps.case_resolved"),description:this.formatDate(e)},t)]}getClosedCaseReviewDescription(){const{closedResolution:e}=this.kase;return{[Vh]:i18n.t("resolution_center.reported_case_details.time_line.steps.case_reviewed.refunded"),[Kh]:i18n.t("resolution_center.reported_case_details.time_line.steps.case_reviewed.not_refunded")}[e]}},[b_]:class extends Hge{generateResolvedCaseTimeline(){const{filedAt:e,closedAt:t}=this.kase,n={status:Fge,iconColor:Qe.CTA_GREEN};return[Object.assign({name:i18n.t("resolution_center.case_details_page.time_line.steps.provider_filed_case"),description:this.formatDate(e)},n),Object.assign({name:i18n.t("resolution_center.case_details_page.time_line.steps.admin_case_reviewed_title"),description:this.getClosedCaseReviewDescription()},n),Object.assign({name:i18n.t("resolution_center.case_details_page.time_line.steps.case_resolved"),description:this.formatDate(t)},n)]}getClosedCaseReviewDescription(){const{closedResolution:e}=this.kase,t=m_[e];return i18n.t(`resolution_center.reported_case_details.time_line.steps.case_reviewed.${t}`)}},[w_]:class extends Hge{generateUnderReviewCaseTimeline(){const{estimatedResolutionAt:e,providerCanCloseCase:t,filedAt:n}=this.kase,i=i18n.t(`resolution_center.reported_case_details.customer_payment_failed.time_line.steps.${Vge}.description`);return t?[Zge(Fge,Wge,this.formatDate(n)),Zge(Fge,Vge),Zge(Uge,Kge),Zge($ge,Yge,i18n.t("shared.labels.pending"))]:[Zge(Fge,Wge,this.formatDate(n)),Zge(Uge,Vge,i),Zge($ge,Yge,this.formatDate(e))]}generateResolvedCaseTimeline(){const{closedAt:e,closedResolution:t,filedAt:n}=this.kase;return[Qge(Wge,this.formatDate(n)),Qge(Vge),Qge(t!==p_?Kge:p_),Qge(Xge,this.formatDate(e))]}}},hEe=e=>{const t=gEe[e.topic];if(!t)return[];return new t(e).generateTimeline()},_Ee={[w_]:rEe,default:pEe},xEe=({kase:e})=>{const t=_Ee[e.topic]||_Ee.default;return(0,X.jsxs)(mEe,{testID:`ResolutionCenterCaseDetailsStatus:${e.state}`,children:[(0,X.jsx)(fEe,{children:"closed"===e.state?i18n.t("resolution_center.case_details_page.time_line.case_status_title.case_resolved"):i18n.t("resolution_center.case_details_page.time_line.case_status_title.under_review")}),(0,X.jsx)(Gge.default,{data:hEe(e)}),(0,X.jsx)(t,{kase:e})]})};
3878xEe.propTypes={kase:ze().shape({state:ze().string.isRequired,topic:ze().string.isRequired,closedResolution:ze().string})};const yEe=xEe,vEe=(0,Ge.default)(qe.default).withConfig({displayName:"case_details__Container",componentId:"sc-1a1ez6-0"})(["margin-bottom:30px;"]),bEe=(0,Ge.default)(ts).withConfig({displayName:"case_details__Action",componentId:"sc-1a1ez6-1"})(["flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border:0px solid ",";border-bottom-width:1px;border-top-width:1px;margin-top:50px;"],Qe.GRAY_BORDER),wEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__ActionText",componentId:"sc-1a1ez6-2"})(["font-weight:700;color:",";"],Qe.VIOLET_2),CEe=(0,Ge.default)(qe.default).withConfig({displayName:"case_details__Line",componentId:"sc-1a1ez6-3"})(["padding:10px 20px;border:0px solid ",";border-bottom-width:1px;"],Qe.GRAY_BORDER),jEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__Label",componentId:"sc-1a1ez6-4"})(["font-weight:700;color:",";"],Qe.TEXT_MEDIUM),IEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__Value",componentId:"sc-1a1ez6-5"})(["font-weight:600;color:",";margin-top:2px;"],Qe.TEXT_MEDIUM),TEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_details__LongText",componentId:"sc-1a1ez6-6"})(["font-size:13px;font-style:italic;color:",";margin-top:7px;margin-bottom:16px;"],Qe.TEXT_MEDIUM),EEe=(0,Ge.default)(yhe).withConfig({displayName:"case_details__EventDetailsCard",componentId:"sc-1a1ez6-7"})(["width:100%;align-self:center;margin:8px 0px 24px 0px;shadow-color:",";"],Qe.GRAY_LIGHT),NEe=({kase:{id:e,topic:t,filedAt:n,providerNotes:i,evidences:o,related:a}})=>{const s=(0,Ks.useHistory)(),[r,l]=(0,K.useState)(!1),d=(0,K.useCallback)(()=>{l(e=>!e)}),c=(0,K.useMemo)(()=>o.filter(e=>"provider"===e.reporterAccountType),[o]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(bEe,{onPress:d,children:[(0,X.jsx)(wEe,{children:i18n.t("resolution_center.case_details_page.actions.toggle_case_details")}),(0,X.jsx)(Pa.default,{name:r?"chevron-up":"chevron-down",set:"MaterialCommunityIcons",size:22,color:Qe.CTA_PURPLE})]}),r&&(0,X.jsxs)(vEe,{children:[(0,X.jsxs)(CEe,{children:[(0,X.jsx)(jEe,{children:i18n.t("resolution_center.case_details_page.labels.case_id")}),(0,X.jsx)(IEe,{children:e})]}),t===v_&&(0,X.jsxs)(CEe,{children:[(0,X.jsxs)(jEe,{children:[i18n.t("resolution_center.case_details_page.labels.cancellation_fee"),":"]}),(0,X.jsx)(IEe,{children:fh(Math.abs(a.totals.totalProviderCancellationsFees),{withSymbol:!0})})]}),(0,X.jsxs)(CEe,{children:[(0,X.jsx)(jEe,{children:i18n.t("resolution_center.case_details_page.labels.date_reported")}),(0,X.jsx)(IEe,{children:C.DateTime.fromISO(n).toFormat("dd LLLL yyyy")})]}),(!!i||(null===c||void 0===c?void 0:c.length)>0)&&(0,X.jsxs)(CEe,{children:[!!i&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(jEe,{children:i18n.t("resolution_center.case_details_page.labels.provider_note")}),(0,X.jsxs)(TEe,{children:["\u201c",i,"\u201d"]})]}),(null===c||void 0===c?void 0:c.length)>0&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(jEe,{children:i18n.t("resolution_center.case_details_page.labels.provider_documents")}),(0,X.jsx)(ffe.default,{onPreview:bx,hideSelectFileButton:!0,hideRemoveIcon:!0,files:c,urlToServices:vi})]})]}),(0,X.jsxs)(CEe,{children:[(0,X.jsx)(jEe,{children:i18n.t("resolution_center.case_details_page.labels.event_related")}),(0,X.jsx)(EEe,{event:a,onClick:()=>s.push(Ni(a.id))})]})]})]})};NEe.propTypes={kase:ze().shape({id:ze().string.isRequired,topic:ze().string.isRequired,filedAt:ze().string,providerNotes:ze().string,evidences:ze().arrayOf(ze().shape({reporterAccountType:ze().string.isRequired})),related:ze().shape({id:ze().string.isRequired,startTime:ze().string.isRequired,duration:ze().number.isRequired,totals:ze().shape({totalProviderCancellationsFees:ze().number.isRequired}).isRequired,customer:ze().shape({firstname:ze().string.isRequired,lastname:ze().string.isRequired})})}).isRequired};const kEe=NEe,REe=(0,Ge.default)(qe.default).withConfig({displayName:"case_reported_details__Container",componentId:"sc-1rjkjg1-0"})(["padding:15px 0 40px 0;"]),SEe=(0,Ge.default)(qe.default).withConfig({displayName:"case_reported_details__CaseTypeInfo",componentId:"sc-1rjkjg1-1"})(["padding:0 0 16px 0;"]),AEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_reported_details__CaseType",componentId:"sc-1rjkjg1-2"})(["font-weight:700;color:",";"],Qe.TEXT_MEDIUM),PEe=(0,Ge.default)(Be.default).withConfig({displayName:"case_reported_details__CaseReason",componentId:"sc-1rjkjg1-3"})(["font-size:13px;color:",";margin-top:2px;"],Qe.TEXT_MEDIUM),DEe=()=>{var e;const{id:t}=(0,Ks.useParams)(),n=(0,Ks.useHistory)(),{kase:i,loading:o}=yx(t);return o?(0,X.jsx)(xm.ActivityIndicator,{}):i&&"provider"===(null===(e=i.reporter)||void 0===e?void 0:e.accountType)?"under_review"===i.openState||"response_required"===i.openState||i.closedResolution||i.closedAt?(0,X.jsxs)(REe,{children:[(0,X.jsxs)(SEe,{children:[(0,X.jsx)(AEe,{children:i18n.t(`resolution_center.reported_case_details.topic.${i.topic}.title`)}),!(null===i||void 0===i||!i.reason)&&(0,X.jsx)(PEe,{children:i18n.t(`resolution_center.cases.by_provider.topics.${i.topic}.reasons.${i.reason}`)})]}),(0,X.jsx)(yEe,{kase:i}),(0,X.jsx)(kEe,{kase:i})]}):(0,X.jsx)(Ks.Redirect,{to:Mi(t),replace:!0}):(n.goBack(),null)},MEe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(DEe,{}
3878),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(DEe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE})},OEe=(0,Ge.default)(qe.default).withConfig({displayName:"call_customer__Container",componentId:"sc-16cko40-0"})(["padding:12px 16px;"]),zEe=(0,Ge.default)(rf.default).withConfig({displayName:"call_customer__Header",componentId:"sc-16cko40-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),LEe=(0,Ge.default)(rf.default).withConfig({displayName:"call_customer__Title",componentId:"sc-16cko40-2"})(["color:",";font-weight:400;font-size:20px;line-height:26px;text-align:center;margin-bottom:20px;margin-top:20px;"],Qe.TEXT_DARK),qEe=(0,Ge.default)(rf.default).withConfig({displayName:"call_customer__Description",componentId:"sc-16cko40-3"})(["font-style:normal;font-weight:400;font-size:14px;line-height:21px;color:",";margin-bottom:40px;text-align:center;"],Qe.TEXT_DARK),BEe=(0,Ge.default)(ms).attrs({centered:!0,stretched:!0}).withConfig({displayName:"call_customer__ActionButton",componentId:"sc-16cko40-4"})(["margin-top:8px;"]),GEe=()=>{const{analytics:{autoTrack:e}}=lt(),t=(0,Ks.useHistory)(),{id:n}=(0,Ks.useParams)(),{kase:i,loading:o}=yx(n),a=(0,K.useCallback)(()=>{e("Provider clicks on call",`in resolution center / case ${i.id} / call_customer page`),bs.default.openURL(`tel:${i.related.customer.mobile}`)},[i]),s=(0,K.useCallback)(()=>{e("Provider clicks on already called",`in resolution center / case ${i.id} / call_customer page`),t.push(`/provider/resolution_center/report_problem/case/${i.id}/after_call_customer`)},[i]),r=(0,K.useCallback)(()=>{e("Provider clicks on cancel",`in resolution center / case ${i.id} / call_customer page`),t.push(Mi())},[i]);return o?(0,X.jsx)(Aa.default,{}):i?"draft"!==i.state?(0,X.jsx)(Ks.Redirect,{to:qi(i.id),replace:!0}):(e=>{const t=C.DateTime.fromISO(e.startTime),n=t.plus({seconds:e.duration}),i=C.DateTime.local();return t<=i&&n>i})(i.related)?(0,X.jsxs)(OEe,{children:[(0,X.jsx)(zEe,{children:i18n.t("resolution_center.report_problem.header")}),(0,X.jsx)(yhe,{event:i.related,onClick:()=>t.push(Ni(i.related.id)),style:{marginBottom:20}}),(0,X.jsx)(LEe,{children:i18n.t("resolution_center.report_problem.call_customer.title")}),(0,X.jsx)(qEe,{children:i18n.t("resolution_center.report_problem.call_customer.description")}),(0,X.jsx)(BEe,{onPress:a,children:i18n.t("resolution_center.report_problem.call_customer.actions.call",{mobile:i.related.customer.mobile})}),(0,X.jsx)(BEe,{testID:"btn:already_called_customer",onPress:s,children:i18n.t("resolution_center.report_problem.call_customer.actions.already_called")}),(0,X.jsx)(BEe,{variant:"secondary",onPress:r,children:i18n.t("shared.cta_labels.cancel")})]}):(0,X.jsx)(Ks.Redirect,{to:Oi(i.id),replace:!0}):(t.goBack(),null)},UEe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(GEe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(GEe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},$Ee=(0,Ge.default)(qe.default).withConfig({displayName:"after_call_customer__Container",componentId:"sc-7wzpaz-0"})(["padding:12px 16px;"]),FEe=(0,Ge.default)(rf.default).withConfig({displayName:"after_call_customer__Header",componentId:"sc-7wzpaz-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),HEe=(0,Ge.default)(rf.default).withConfig({displayName:"after_call_customer__Title",componentId:"sc-7wzpaz-2"})(["color:",";font-weight:400;font-size:20px;line-height:26px;text-align:center;margin-bottom:20px;margin-top:20px;"],Qe.TEXT_DARK),WEe=(0,Ge.default)(rf.default).withConfig({displayName:"after_call_customer__Description",componentId:"sc-7wzpaz-3"})(["font-style:normal;font-weight:400;font-size:14px;line-height:21px;color:",";margin-bottom:40px;text-align:center;"],Qe.TEXT_DARK),VEe=(0,Ge.default)(ms).attrs({centered:!0,stretched:!0}).withConfig({displayName:"after_call_customer__ActionButton",componentId:"sc-7wzpaz-4"})(["margin-top:8px;"]),KEe=()=>{const{analytics:{autoTrack:e}}=lt(),t=(0,Ks.useHistory)(),{id:n}=(0,Ks.useParams)(),{kase:i,loading:o}=yx(n),a=(0,K.useCallback)(()=>{e("Provider clicks on customer did not respond",`in resolution center / case ${i.id} / after_call_customer page`),t.push(Oi(i.id))},[t,i]),s=(0,K.useCallback)(()=>{e("Provider clicks on customer not home",`in resolution center / case ${i.id} / after_call_customer page`),t.push(Oi(i.id))},[t,i]),r=(0,K.useCallback)(()=>{e("Provider clicks on cancel",`in resolution center / case ${i.id} / after_call_customer page`),t.push(Mi())},[t,i]);return o?(0,X.jsx)(Aa.default,{}):i?"draft"!==i.state?(0,X.jsx)(Ks.Redirect,{to:qi(i.id),replace:!0}):(0,X.jsxs)($Ee,{children:[(0,X.jsx)(FEe,{children:i18n.t("resolution_center.report_problem.header")}),(0,X.jsx)(yhe,{event:i.related,onClick:()=>t.push(Ni(i.related.id)),style:{marginBottom:20}}),(0,X.jsx)(HEe,{children:i18n.t("resolution_center.report_problem.after_call_customer.title")}),(0,X.jsx)(WEe,{children:i18n.t("resolution_center.report_problem.after_call_customer.description")}),(0,X.jsx)(VEe,{testID:"btn:customer_didnt_respond",onPress:a,children:i18n.t("resolution_center.report_problem.after_call_customer.actions.customer_not_respond")}),(0,X.jsx)(VEe,{testID:"btn:customer_not_home",onPress:s,children:i18n.t("resolution_center.report_problem.after_call_customer.actions.customer_not_home")}),(0,X.jsx)(VEe,{variant:"secondary",onPress:r,children:i18n.t("shared.cta_labels.cancel")})]}):(t.goBack(),null)},YEe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(KEe,{}
3878),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(KEe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},XEe=e=>(0,X.jsxs)(Wu.default,Object.assign({width:500,height:500,viewBox:"0 0 500 500",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,X.jsx)(Wu.Path,{d:"M211.23 380.288c-4.556-.799-8.503-5.079-8.828-9.919l.407-2.321c.285-8.321-.976-14.523-3.172-22.084-.529-3.68-5.411-9.32-10.089-16.121-5.614-8.16-12.164-17.68-18.306-29.521-7.606-16.882-14.806-36.084-22.006-55.286-7.2-19.202-15.54-38.605-23.147-55.486-3.743-5.439-5.939-13-4.718-19.962a32.36 32.36 0 0110.294-18.526c12.287-9.805 29.374-6.808 38.933 5.632l.937 1.36 20.177 32.241.407-2.321c.61-3.481-.322-71.814-.402-98.139.082-7.16 2.442-13.923 8.016-18.926 5.778-6.162 13.427-9.604 21.603-9.366 8.178.238 15.949 2.797 21.97 8.637 4.881 5.639 8.421 12.24 8.338 19.401l.688 89.818c.121 6.002-4.111 10.043-10.01 10.204-5.898.162-9.845-4.118-9.967-10.119l-.483-90.978c.071-2.572-.915-3.586-1.908-4.1-2.075-1.561-3.963-2.558-7.53-2.34-2.437-.035-5.954 1.146-7.482 3.124-1.007.486-1.713 2.44-2.12 4.76.24 78.976 1.012 94.659.402 98.139.04 13.164.689 22.846-.328 28.646.326 4.842-.284 8.323-.284 8.323.325 4.84-1.628 9.281-6.592 10.803-3.825 1.722-8.381.923-11.188-3.158l-.935-1.36-.937-1.36-37.546-60.403c-1.872-2.721-6.428-3.52-9.317-.439-1.343.962-2.889 3.081-3.093 4.243-.407 2.319.529 3.68 1.465 5.04l.935 1.359c7.607 16.883 15.743 37.445 23.879 58.006 7.403 18.043 14.603 37.245 22.21 54.126 4.272 9.122 10.821 18.642 15.296 26.602 5.614 8.16 11.431 15.161 12.488 22.522 2.929 10.081 2.643 18.403 3.498 26.924l-.407 2.321c.121 6-5.249 8.055-11.148 8.216.203-1.16 1.138 1.988 0 1.788zM329.416 379.407c-4.659-.817-8.703-5.127-9.051-9.988-.225-19.244 7.638-29.866 15.094-38.16 9.028-10.419 16.892-21.041 17.135-49.803l.469-9.52-1.312-74.643c-.143-6.025 4.167-10.07 10.192-10.214 6.027-.142 10.071 4.167 10.216 10.193l1.047 82.997c.86 36.157-11.315 50.825-21.915 63.368-6.291 8.499-10.805 13.707-10.315 24.595.144 6.027-4.37 11.237-10.397 11.379l-1.163-.204z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M241.911 200.835c-4.657-.817-8.701-5.126-9.049-9.989l-1.499-121.482c-.634-16.914 13.664-30.009 29.414-30.847 16.709.53 30.009 13.663 30.643 30.578l1.499 121.481c.143 6.027-4.167 10.071-10.192 10.216-6.027.143-10.071-4.167-10.216-10.194l-1.498-121.482c-.347-4.862-4.393-9.172-9.254-8.824-4.862.347-9.171 4.392-8.825 9.254l1.499 121.482c.144 6.027-4.166 10.071-10.192 10.216l-2.33-.409z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M321.188 212.337c-4.793-.84-8.974-5.174-9.355-10.041l-1.38-111.86c.409-2.33-1.579-5.08-2.574-6.453-2.191-1.584-4.358-3.023-6.985-2.425-2.395-.42-5.201 1.487-6.603 2.442-1.607 2.118-3.701 4.247-2.912 6.787.179 6.031-3.745 10.049-9.941 10.162-6.196.113-9.88-4.418-10.057-10.45.231-8.361 2.363-16.103 8.177-21.085 6.017-6.146 13.819-8.378 21.417-9.445 8.593.305 16.776 2.942 21.951 8.65 6.373 5.917 8.742 13.534 9.912 20.94l1.38 111.861c.177 6.032-4.235 10.059-10.429 10.174-1.404.953-2.601.743-2.601.743z",fill:Qe.GREEN_GROWN_UP_GREEN}),(0,X.jsx)(Wu.Path,{d:"M361.479 265.01c-4.658-.817-8.703-5.127-9.05-9.988l-.804-111.76c-.347-4.861-4.393-9.171-9.254-8.824-4.862.348-9.172 4.393-8.824 9.255l.677 57.728c.143 6.026-4.167 10.071-10.192 10.214-6.027.144-10.071-4.166-10.215-10.192l-1.842-57.933c-.634-16.914 13.664-30.009 29.414-30.847 16.913-.635 30.009 13.663 30.848 29.414l.802 111.759c.145 6.025-4.165 10.071-10.192 10.214-.204 1.164-.204 1.164-1.368.96zM188.897 448.379c-4.657-.817-8.702-5.126-9.05-9.988l-.208-67.248c.408-2.329 1.021-5.822 2.593-7.946 1.574-2.125 4.106-2.88 7.803-3.433l174.35-1.829c6.025-.143 10.071 4.167 10.214 10.193l.208 67.247c.145 6.027-4.165 10.071-10.192 10.215-6.027.143-10.071-4.167-10.214-10.193l.282-56.359-152.777 2.012.882 56.563c.143 6.026-4.167 10.071-10.194 10.215-2.532.756-2.532.756-3.697.551z",f
3878ill:Qe.GREEN_GROWN_UP_GREEN})]})),ZEe=(0,Ge.default)(qe.default).withConfig({displayName:"pre_report_note__Container",componentId:"sc-253jxm-0"})(["padding:12px 16px;"]),QEe=(0,Ge.default)(rf.default).withConfig({displayName:"pre_report_note__Header",componentId:"sc-253jxm-1"})(["color:",";font-weight:400;font-size:14px;line-height:20px;text-align:center;margin-bottom:24px;"],Qe.TEXT_DARK),JEe=(0,Ge.default)(rf.default).withConfig({displayName:"pre_report_note__Note",componentId:"sc-253jxm-2"})(["font-weight:600;font-size:16px;line-height:20px;color:",";margin-bottom:8px;text-align:center;"],Qe.TEXT_DARK),eNe=(0,Ge.default)(ms).attrs({centered:!0,stretched:!0}).withConfig({displayName:"pre_report_note__ActionButton",componentId:"sc-253jxm-3"})(["margin-top:8px;"]),tNe=(0,Ge.default)(XEe).attrs({width:107,height:106}).withConfig({displayName:"pre_report_note__StopHandIcon",componentId:"sc-253jxm-4"})(["align-self:center;margin-bottom:24px;"]),nNe=(0,Ge.default)(qe.default).withConfig({displayName:"pre_report_note__Section",componentId:"sc-253jxm-5"})(["padding:16px 0px;margin:4px 0px;"]),iNe=(0,Ge.default)(rf.default).withConfig({displayName:"pre_report_note__Question",componentId:"sc-253jxm-6"})(["color:",";font-weight:600;font-size:14px;line-height:21px;text-align:center;margin-bottom:12px;"],Qe.TEXT_DARK),oNe=(0,Ge.default)(qe.default).withConfig({displayName:"pre_report_note__AnswerContainer",componentId:"sc-253jxm-7"})(["border-radius:4px;padding:8px 4px;background-color:",";"],Qe.TEAL_5),aNe=(0,Ge.default)(rf.default).withConfig({displayName:"pre_report_note__Answer",componentId:"sc-253jxm-8"})(["font-weight:400;font-size:12px;line-height:16px;text-align:center;color:",";"],Qe.TEAL_1),sNe=()=>{const{analytics:{autoTrack:e}}=lt(),t=(0,Ks.useHistory)(),{id:n}=(0,Ks.useParams)(),{kase:i,loading:o}=yx(n),a=(0,K.useCallback)(()=>{e("Provider clicks on continue",`in resolution center / case ${i.id} / pre_report_notes page`),t.push(zi(i.id))},[t,i]),s=(0,K.useCallback)(()=>{e("Provider clicks on cancel",`in resolution center / case ${i.id} / pre_report_notes page`),t.push(Mi())},[t,i]);return o?(0,X.jsx)(Aa.default,{}):i?"draft"!==i.state?(0,X.jsx)(Ks.Redirect,{to:qi(i.id),replace:!0}):(0,X.jsxs)(ZEe,{children:[(0,X.jsx)(QEe,{children:i18n.t("resolution_center.report_problem.header")}),(0,X.jsx)(JEe,{children:i18n.t("resolution_center.report_problem.pre_report_notes.note")}),(0,X.jsx)(tNe,{}),(0,X.jsxs)(nNe,{children:[(0,X.jsx)(iNe,{children:i18n.t("resolution_center.report_problem.pre_report_notes.q1")}),(0,X.jsx)(oNe,{children:(0,X.jsx)(aNe,{children:i18n.t("resolution_center.report_problem.pre_report_notes.a1")})})]}),(0,X.jsxs)(nNe,{children:[(0,X.jsx)(iNe,{children:i18n.t("resolution_center.report_problem.pre_report_notes.q2")}),(0,X.jsx)(oNe,{children:(0,X.jsx)(aNe,{children:i18n.t("resolution_center.report_problem.pre_report_notes.a2")})})]}),(0,X.jsx)(eNe,{testID:"btn:continue",onPress:a,children:i18n.t("shared.cta_labels.continue")}),(0,X.jsx)(eNe,{variant:"secondary",style:{borderWidth:0},onPress:s,children:i18n.t("shared.cta_labels.cancel")})]}):(t.goBack(),null)},rNe=()=>{const{isDesktop:e}=uu();return e?(0,X.jsx)(fme,{title:i18n.t("resolution_center.page_title"),containerStyle:{backgroundColor:Qe.GRAY_4},titleColor:Qe.GRAY_0,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(sNe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.WHITE,paddingBottom:0},arrowIconColor:Qe.GRAY_0,noContentMargin:!0}):(0,X.jsx)(PO,{title:i18n.t("resolution_center.page_title"),titleColor:Qe.WHITE,titleStyle:{fontSize:16},content:()=>(0,X.jsx)(sNe,{}),contentBackgroundColor:Qe.WHITE,headerStyle:{backgroundColor:Qe.GREEN_SUMMER_GRASS,paddingBottom:0},arrowIconColor:Qe.WHITE,noContentMargin:!0})},lNe=(0,Ge.default)(ts).withConfig({displayName:"payout_item__Container",componentId:"sc-jh66u1-0"})(["flex-direction:row;align-items:center;padding:8px 10px;border-radius:8px;margin-bottom:8px;border-width:1px;border-right-color:",";border-top-color:",";border-bottom-color:",";border-left-width:3px;border-left-color:",";"],Qe.GRAY_BORDER,Qe.GRAY_BORDER,Qe.GRAY_BORDER,Qe.GOLD_1),dNe=(0,Ge.default)(qe.default).withConfig({displayName:"payout_item__PayoutDetails",componentId:"sc-jh66u1-1"})(["flex:1;"]),cNe=(0,Ge.default)(Be.default).withConfig({displayName:"payout_item__CustomerName",componentId:"sc-jh66u1-2"})(["flex:1;font-weight:600;font-size:13px;line-height:16px;color:",";"],Qe.TEXT_DARK),uNe=(0,Ge.default)(qe.default).withConfig({displayName:"payout_item__DateArea",componentId:"sc-jh66u1-3"})(["flex-direction:row;align-items:center;margin-top:4px;"]),pNe=(0,Ge.default)(Be.default).withConfig({displayName:"payout_item__Date",componentId:"sc-jh66u1-4"})(["color:",";font-weight:400;font-size:12px;line-height:16px;"],Qe.GRAY_2),mNe=(0,Ge.default)(Be.default).withConfig({displayName:"payout_item__Status",componentId:"sc-jh66u1-5"})(["color:",";font-weight:400;font-size:12px;line-height:16px;"],Qe.GOLD_1),fNe=(0,Ge.default)(qe.default).withConfig({displayName:"payout_item__Amou
3878ntContainer",componentId:"sc-jh66u1-6"})([""," border-radius:5px;padding:0 2px;align-self:flex-start;"],({isIncoming:e})=>e&&`background-color: ${Qe.GREEN_FROSTY_GREEN};`),gNe=(0,Ge.default)(Be.default).withConfig({displayName:"payout_item__Amount",componentId:"sc-jh66u1-7"})(["color:",";font-weight:600;font-size:13px;"],({isIncoming:e})=>e?Qe.GREEN_SUMMER_GRASS:Qe.TEXT_DARK);const hNe=function({payout:e,status:t,customStatus:n,showStatus:i=!0}){const o=lu(),a=null===e||void 0===e?void 0:e.amount,s=a>=0;return(0,X.jsxs)(lNe,{onPress:()=>o(Ni(e.event.id)),children:[(0,X.jsx)(Pa.default,{name:s?"arrow-down-right":"arrow-right-top",size:20,set:"MaterialCommunityIcons",color:Qe.GRAY_2,style:{marginRight:10}}),(0,X.jsxs)(dNe,{children:[(0,X.jsx)(cNe,{children:e.customerName}),(0,X.jsxs)(uNe,{children:[(0,X.jsx)(Pa.default,{set:"MaterialCommunityIcons",name:"clock-time-five-outline",size:16,color:Qe.GOLD_1,style:{marginRight:4}}),(0,X.jsx)(pNe,{children:i&&(0,X.jsx)(mNe,{children:n||i18n.t(`bank_transfers.payout_item.${t}`)})})]})]}),(0,X.jsx)(fNe,{isIncoming:s,children:(0,X.jsxs)(gNe,{isIncoming:s,children:[s&&"+",fh(a,{withSymbol:!0})]})})]})},_Ne="confirm",xNe="success",yNe=(0,Ge.default)(Vf.default).withConfig({displayName:"expedited_payout_modal__ScrollWrapper",componentId:"sc-1ckn0ck-0"})(["max-height:600px;"]),vNe=(0,Ge.default)(lm).withConfig({displayName:"expedited_payout_modal__ModalContentWrapper",componentId:"sc-1ckn0ck-1"})(["max-width:700px;width:100%;"]),bNe=(0,Ge.default)(qe.default).withConfig({displayName:"expedited_payout_modal__AmountContainer",componentId:"sc-1ckn0ck-2"})(["background:",";padding:24px;gap:8px;border-radius:9px;"],Qe.GREEN_WINTER_MIST),wNe=(0,Ge.default)(qe.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownContainer",componentId:"sc-1ckn0ck-3"})(["background:",";border:1px solid ",";padding:16px;gap:16px;border-radius:9px;"],Qe.WHITE,Qe.GREEN_FROSTY_GREEN),CNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownTitle",componentId:"sc-1ckn0ck-4"})(["color:",";font-weight:700;font-size:13px;"],Qe.GREEN_SUMMER_GRASS),jNe=(0,Ge.default)(qe.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownItem",componentId:"sc-1ckn0ck-5"})(["flex-direction:row;align-items:center;justify-content:space-between;gap:16px;"]),INe=(0,Ge.default)(qe.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownItemLabelContainer",componentId:"sc-1ckn0ck-6"})(["gap:4px;"]),TNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownItemLabel",componentId:"sc-1ckn0ck-7"})(["color:",";font-weight:700;font-size:13px;"],Qe.GRAY_0),ENe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownItemDescription",componentId:"sc-1ckn0ck-8"})(["color:",";font-weight:600;font-size:12px;font-style:italic;"],Qe.GRAY_2),NNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__PaymentBreakdownItemValue",componentId:"sc-1ckn0ck-9"})(["color:",";font-weight:700;font-size:13px;"],Qe.GRAY_0),kNe=(0,Ge.default)(lm).withConfig({displayName:"expedited_payout_modal__ModalContent",componentId:"sc-1ckn0ck-10"})(["padding:12px;align-self:center;gap:16px;"]),RNe=(0,Ge.default)(ts).withConfig({displayName:"expedited_payout_modal__Close",componentId:"sc-1ckn0ck-11"})(["align-self:flex-end;margin-bottom:12px;"]),SNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__TextNormal",componentId:"sc-1ckn0ck-12"})(["font-weight:400;font-size:13px;color:",";text-align:center;"],Qe.GRAY_2),ANe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__TextBold",componentId:"sc-1ckn0ck-13"})(["font-weight:700;font-size:13px;color:",";text-align:center;margin:24px 0;"],({color:e})=>e||Qe.TEXT_DARK),PNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__Amount",componentId:"sc-1ckn0ck-14"})(["font-weight:700;font-size:28px;color:",";text-align:center;"],Qe.GRAY_0),DNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout_modal__ExpeditedPayoutMessage",componentId:"sc-1ckn0ck-15"})(["font-weight:400;font-size:13px;color:",";text-align:center;
3878"],Qe.GRAY_0),MNe=(0,Ge.default)(qe.default).withConfig({displayName:"expedited_payout_modal__Separator",componentId:"sc-1ckn0ck-16"})(["border-top-width:1px;border-top-color:",";"],Qe.GREEN_FROSTY_GREEN),ONe=(0,Ge.default)(qe.default).withConfig({displayName:"expedited_payout_modal__IconContainer",componentId:"sc-1ckn0ck-17"})(["display:flex;align-items:center;margin-bottom:16px;"]);const zNe=function({payoutStatus:e,setPayoutStatus:t,commission:n,balance:i}){var o;const{session:{settings:a},pages:{bankTransfers:{setExpeditedPaymentStatus:s}},analytics:{autoTrack:r}}=lt(),{loading:l,claimExpeditedLayout:d}=(()=>{const[e,{loading:t}]=(0,js.useMutation)(sde);return{claimExpeditedLayout:()=>e(),loading:t}})(),c=()=>{t(""),e===xNe&&s(!1)},u=null===a||void 0===a||null===(o=a.viewPermissions)||void 0===o?void 0:o.seeTermsLink;return(0,X.jsx)(gs,{isVisible:e===_Ne||e===xNe,onBackdropPress:c,children:(0,X.jsx)(yNe,{contentContainerStyle:{display:"flex",alignItems:"center"},children:(0,X.jsx)(vNe,{children:(0,X.jsxs)(kNe,{children:[(0,X.jsx)(RNe,{onPress:c,eventAction:"close expedited payout modal",children:(0,X.jsx)(Pa.default,{name:"close",size:24,color:Qe.BLACK})}),e===xNe&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ONe,{children:(0,X.jsx)(GD,{})}),(0,X.jsx)(SNe,{children:i18n.t("bank_transfers.expedited_payout.success")}),(0,X.jsx)(ms,{onPress:c,stretched:!0,color:Qe.TRANSPARENT,textColor:Qe.GRAY_0,disabled:l,children:i18n.t("bank_transfers.expedited_payout.confirmation.back")})]}),e===_Ne&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(bNe,{children:[(0,X.jsx)(PNe,{children:fh(i-n,{withSymbol:!0})}),(0,X.jsx)(DNe,{children:i18n.t("bank_transfers.expedited_payout.total")})]}),!!n&&(0,X.jsxs)(wNe,{children:[(0,X.jsx)(CNe,{children:i18n.t("bank_transfers.expedited_payout.payment_breakdown.title")}),(0,X.jsxs)(jNe,{children:[(0,X.jsx)(INe,{children:(0,X.jsx)(TNe,{children:i18n.t("bank_transfers.expedited_payout.payment_breakdown.pending_money")})}),(0,X.jsx)(NNe,{children:fh(i,{withSymbol:!0})})]}),(0,X.jsxs)(jNe,{children:[(0,X.jsxs)(INe,{children:[(0,X.jsx)(TNe,{children:i18n.t("bank_transfers.expedited_payout.payment_breakdown.commission")}),(0,X.jsx)(ENe,{children:i18n.t("bank_transfers.expedited_payout.payment_breakdown.fee")})]}),(0,X.jsx)(NNe,{children:fh(n,{withSymbol:!0})})]}),(0,X.jsx)(MNe,{}),(0,X.jsxs)(jNe,{children:[(0,X.jsxs)(INe,{children:[(0,X.jsx)(TNe,{children:i18n.t("bank_transfers.expedited_payout.payment_breakdown.payout")}),(0,X.jsx)(ENe,{children:i18n.t("bank_transfers.expedited_payout.payment_breakdown.payout_description")})]}),(0,X.jsx)(NNe,{children:fh(i-n,{withSymbol:!0})})]})]}),(0,X.jsx)(ms,{onPress:async()=>{var e,n;r("User clicked on confirm","on expedited payout modal in bank transfer page");const i=await d();null!==i&&void 0!==i&&null!==(e=i.data)&&void 0!==e&&null!==(n=e.claimExpeditedPayout)&&void 0!==n&&n.success&&(r("User claimed expedited payout successfully","on expedited payout modal in bank transfer page"),t(xNe))},stretched:!0,disabled:l,children:i18n.t("bank_transfers.expedited_payout.request_payout")}),u&&(0,X.jsxs)(SNe,{children:[i18n.t("bank_transfers.expedited_payout.confirmation.v2.tc_part_1")," ",(0,X.jsx)(ANe,{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>ru("lookup"in i18n&&"function"===typeof i18n.lookup&&i18n.lookup("provider_terms.url")?i18n.t("provider_terms.url"):bi("provider_terms")),children:i18n.t("bank_transfers.expedited_payout.confirmation.tc_part_2")})," ",i18n.t("bank_transfers.expedited_payout.confirmation.tc_part_3")," ",(0,X.jsx)(ANe,{color:Qe.GREEN_SUMMER_GRASS,onPress:()=>ru(i18n.t("privacy.url")),children:i18n.t("bank_transfers.expedited_payout.confirmation.tc_part_4")})]})]})]})})})})},LNe=(0,Ge.default)(Be.default).withConfig({displayName:"expedited_payout__FeeDisclaimer",componentId:"sc-10klu6o-0"})(["color:",";font-weight:400;font-size:12px;text-align:center;"],Qe.GRAY_2);const qNe=(0,Te.observer)(function(){const{isConnected:e}=(0,ta.useNetInfo)(),{analytics:{autoTrack:t},pages:{bankTransfers:{expeditedPayment:n,getExpeditedPayment:i,expeditedPaymentLoading:o}}}=lt(),[a,s]=(0,K.useState)("");if((0,K.useEffect)(()=>{e&&i()},[e]),o)return null;if(null===n||void 0===n||!n.enabled)return null;const{balance:r,commission:l}=n;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ms,{stretched:!0,variant:"secondary",disabled:!e,height:40,onPress:()=>{t("User clicked on pay out now button","on bank transfer page"),s(_Ne)},children:i18n.t("bank_transfers.expedited_payout.actions.get_paid_sooner")}),!!l&&(0,X.jsx)(LNe,{children:i18n.t("bank_transfers.expedited_payout.fee_disclaimer",{commission:fh(l,{withSymbol:!0})})}),(0,X.jsx)(zNe,{payoutStatus:a,commission:l,balance:r,setPayoutStatus:s})]})}),BNe=(0,Ge.default)(qe.default).withConfig({displayName:"total_amount_card__Container",componentId:"sc-1nrq91b-0"})(["border:1px solid ",";padding:16px;margin-bottom:6px;gap:12px;border-radius:8px;"],Qe.GRAY_BORDER),GNe=(0,Ge.default)(Be.default).withConfig({displayName:"total_amount_card__Tip",componentId:"sc-1nrq91b-1"})(["font-weight:400;font-size:10px;line-height:14px;color:",";background-color:",";padding:4px 8px;border-radius:4px;text-align:center;"],Qe.GRAY_0,Qe.GRAY_4),UNe=(0,Ge.default)(Be.default).withConfig({displayName:"total_amount_card__Amount",componentId:"sc-1nrq91b-2"})(["font-weight:700;font-size:24px;color:",";text-align:center;"],Qe.TEXT_DARK),$Ne=({children:e,tip:t,totalAmount:n})=>(0,X.jsxs)(BNe,{children:[(0,X.jsx)(GNe,{children:t}),(0,X.jsx)(UNe,{children:fh(n,{withSymbol:!0})}),e]}),FNe=(0,Ge.default)(qe.default).withConfig({displayName:"pending_payouts__PayoutsContainer",componentId:"sc-5zopcz-0"})(["margin-top:19px;"]),HNe=(0,Ge.default)(Be.default).withConfig({displayName:"pending_payouts__NoData",componentId:"sc-5zopcz-1"})(["text-align:center;"]);const WNe=function(){var e;const{data:t,loading:n}=(0,Is.useQuery)(tde,{fetchPolicy:"network-only"}),i=(null===t||void 0===t||null===(e=t.providerPendingPayouts)||void 0===e?void 0:e.pendingPayouts)||[],o=(0,K.useMemo)(()=>i.reduce((e,t)=>
3878e+t.amount,0),[i]);return n?(0,X.jsx)(Aa.default,{}):t&&i.length?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)($Ne,{totalAmount:o,tip:i18n.t("bank_transfers.pending_payouts.total_amount_card.tip"),children:(0,X.jsx)(qNe,{})}),(0,X.jsx)(XTe,{question:i18n.t("bank_transfers.pending_payouts.questions.what_does_pending_mean"),answer:i18n.t("bank_transfers.pending_payouts.answers.pending_means")}),(0,X.jsx)(FNe,{children:null===i||void 0===i?void 0:i.map(e=>(0,X.jsx)(hNe,{payout:e,status:"pending"},e.id))})]}):(0,X.jsx)(HNe,{children:i18n.t("bank_transfers.pending_payouts.no_data")})},VNe=()=>(0,X.jsx)(Rf,{title:i18n.t("bank_transfers.overview.sections.pending.title"),content:WNe}),KNe=(0,Ge.default)(qe.default).withConfig({displayName:"scheduled_transfers__TransfersContainer",componentId:"sc-r5plxt-0"})(["margin-top:19px;"]),YNe=(0,Ge.default)(Be.default).withConfig({displayName:"scheduled_transfers__NoData",componentId:"sc-r5plxt-1"})(["text-align:center;"]);const XNe=function(){var e;const{data:t,loading:n}=(0,Is.useQuery)(nde,{fetchPolicy:"network-only"}),i=(null===t||void 0===t||null===(e=t.providerScheduledBankTransfers)||void 0===e?void 0:e.data)||[],o=(0,K.useMemo)(()=>i.reduce((e,t)=>e+t.totalAmount,0),[i]);return n?(0,X.jsx)(xm.ActivityIndicator,{}):t&&i.length?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)($Ne,{totalAmount:o,tip:i18n.t("bank_transfers.scheduled_transfers.total_amount_card.tip")}),(0,X.jsx)(XTe,{question:i18n.t("bank_transfers.scheduled_transfers.questions.what_does_in_transfer_mean"),answer:i18n.t("bank_transfers.scheduled_transfers.answers.in_transfer_means")}),(0,X.jsx)(KNe,{children:null===i||void 0===i?void 0:i.map(e=>(0,X.jsx)(xde,{transfer:e},e.date))})]}):(0,X.jsx)(YNe,{children:i18n.t("bank_transfers.pending_transfers.no_transfers")})},ZNe=()=>(0,X.jsx)(Rf,{title:i18n.t("bank_transfers.overview.sections.in_transfer.title"),content:XNe}),QNe=(0,Ge.default)(qe.default).withConfig({displayName:"pending_funds_payouts__PayoutsContainer",componentId:"sc-bf0gez-0"})(["margin-top:19px;"]),JNe=(0,Ge.default)(Be.default).withConfig({displayName:"pending_funds_payouts__NoData",componentId:"sc-bf0gez-1"})(["text-align:center;"]);const eke=function(){var e;const{data:t,loading:n}=(0,Is.useQuery)(ide,{fetchPolicy:"network-only"}),i=(null===t||void 0===t||null===(e=t.providerPendingPayouts)||void 0===e?void 0:e.pendingFundsPayouts)||[],o=(0,K.useMemo)(()=>i.reduce((e,t)=>e+t.amount,0),[i]);return n?(0,X.jsx)(xm.ActivityIndicator,{}):t&&i.length?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)($Ne,{totalAmount:o,tip:i18n.t("bank_transfers.pending_funds_payouts.total_amount_card.tip")}),(0,X.jsx)(XTe,{question:i18n.t("bank_transfers.pending_funds_payouts.questions.what_does_in_review_mean"),answer:i18n.t("bank_transfers.pending_funds_payouts.answers.in_review_means")}),(0,X.jsx)(QNe,{children:null===i||void 0===i?void 0:i.map(e=>(0,X.jsx)(hNe,{payout:e,status:"pending_funds",customStatus:i18n.t("bank_transfers.pending_funds_payouts.pending_funds_payouts_available_on",{date:C.DateTime.fromISO(e.fundsAvailableAt).toFormat("dd MMM y")})},e.id))})]}):(0,X.jsx)(JNe,{children:i18n.t("bank_transfers.pending_funds_payouts.no_data")})},tke=()=>(0,X.jsx)(Rf,{title:i18n.t("bank_transfers.overview.sections.in_review.title"),content:eke}),nke=()=>(0,X.jsx)(Rf,{page:"countdown offer",title:"",headerBackgroundColor:Qe.WHITE,noContentMargin:!0,scrollEnabled:!0,noContentBorderRadius:!0,contentCustomPaddingTop:0,hideTabMenu:!0,contentBackgroundColor:Qe.VIOLET_5,headerPaddingBottom:0,content:()=>(0,X.jsx)(qW,{})}),ike={[vo]:{prevStep:null,nextStep:bo},[bo]:{prevStep:vo,nextStep:wo},[wo]:{prevStep:bo,nextStep:Co},[Co]:{prevStep:wo,nextStep:jo},[jo]:{prevStep:Co,nextStep:Io},[Io]:{prevStep:jo,nextStep:To},[To]:{prevStep:Io,nextStep:Eo},[Eo]:{prevStep:To,nextStep:null}},oke=()=>{var e;const t=(0,Ks.useHistory)(),{step:n}=(0,Ks.useParams)(),{session:i}=lt(),o=(null===i||void 0===i||null===(e=i.settings)||void 0===e?void 0:e.applicationProcess)||{updateApplicationProcessState:()=>{}};return{goToNextStep:(0,K.useCallback)(()=>{const e=ike[n].nextStep;
3878e&&(o.updateApplicationProcessState(e),t.push(Yi(e)))},[]),goToPrevStep:(0,K.useCallback)(()=>{const e=ike[n].prevStep;e?t.push(Yi(e)):t.goBack()},[]),currentStep:n}},ake=["children"],ske=n(92222),rke=n(4317),lke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_image__Background",componentId:"sc-1wh4vjn-0"})(["flex-grow:1;background:",";position:relative;overflow:hidden;"],Qe.WHITE),dke=(0,Ge.default)(oy.LinearGradient).attrs(()=>({colors:["rgba(234, 248, 218, 0.65)","rgba(224, 238, 255, 0.65)"],start:{x:0,y:0},end:{x:1,y:1}})).withConfig({displayName:"welcome_image__Gradient",componentId:"sc-1wh4vjn-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;"]),cke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_image__Wrapper",componentId:"sc-1wh4vjn-2"})(["flex-grow:1;min-height:160px;"]),uke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_image__Layer1",componentId:"sc-1wh4vjn-3"})(["position:absolute;left:0;right:0;bottom:0;height:336px;display:flex;align-items:center;"]),pke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_image__Layer1Container",componentId:"sc-1wh4vjn-4"})(["position:relative;width:375px;height:336px;"]),mke=(0,Ge.default)(pu.default).attrs(()=>({source:ske})).withConfig({displayName:"welcome_image__Layer1Image",componentId:"sc-1wh4vjn-5"})(["width:375px;height:336px;"]),fke=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_image__Layer1Text1",componentId:"sc-1wh4vjn-6"})(["position:absolute;top:68px;left:61px;font-size:14px;font-weight:700;color:#737373;"]),gke=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_image__Layer1Text2",componentId:"sc-1wh4vjn-7"})(["position:absolute;top:114px;left:123px;font-size:13px;font-weight:700;color:#31635d;"]),hke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome_image__Layer2Container",componentId:"sc-1wh4vjn-8"})(["position:relative;width:344px;height:291px;"]),_ke=(0,Ge.default)(uke).withConfig({displayName:"welcome_image__Layer2",componentId:"sc-1wh4vjn-9"})(["height:291px;padding-right:132px;bottom:-30px;"]),xke=(0,Ge.default)(pu.default).attrs(()=>({source:rke})).withConfig({displayName:"welcome_image__Layer2Image",componentId:"sc-1wh4vjn-10"})(["width:344px;height:291px;"]),yke=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_image__Layer2Text1",componentId:"sc-1wh4vjn-11"})(["position:absolute;top:110px;left:90px;font-size:12px;font-weight:700;color:#737373;"]),vke=(0,Ge.default)(Be.default).withConfig({displayName:"welcome_image__Layer2Text2",componentId:"sc-1wh4vjn-12"})(["position:absolute;top:81px;left:90px;font-size:22px;letter-spacing:-0.5px;font-weight:700;color:#000;"]),bke=e=>{let{children:t}=e,n=(0,A.default)(e,ake);return(0,X.jsxs)(lke,Object.assign({},n,{children:[(0,X.jsx)(dke,{}),(0,X.jsxs)(cke,{children:[(0,X.jsx)(uke,{children:(0,X.jsxs)(pke,{children:[(0,X.jsx)(mke,{}),(0,X.jsx)(fke,{children:i18n.t("applicant_funnel.welcome.image_labels.1")}),(0,X.jsx)(gke,{children:i18n.t("applicant_funnel.welcome.image_labels.2")})]})}),(0,X.jsx)(_ke,{children:(0,X.jsxs)(hke,{children:[(0,X.jsx)(xke,{}),(0,X.jsx)(yke,{children:i18n.t("applicant_funnel.welcome.image_labels.3")}),(0,X.jsx)(vke,{children:i18n.t("applicant_funnel.welcome.image_labels.4")})]})})]}),t]}))};bke.propTypes={children:ze().node};
3878const wke=bke,Cke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome__Container",componentId:"sc-gu46k2-0"})(["flex:1;padding-bottom:","px;"],({theme:e})=>e.insets.bottom),jke=(0,Ge.default)(Da.default).withConfig({displayName:"welcome__BackButton",componentId:"sc-gu46k2-1"})(["position:absolute;top:","px;left:16px;padding:3px 8px;"],({theme:e})=>e.insets.top+16),Ike=(0,Ge.default)(qe.default).withConfig({displayName:"welcome__ContentContainer",componentId:"sc-gu46k2-2"})(["flex-grow:1;background:",";padding:30px 16px 0 16px;align-items:center;"],Qe.WHITE),Tke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome__Content",componentId:"sc-gu46k2-3"})(["flex:1;"]),Eke=(0,Ge.default)(Be.default).withConfig({displayName:"welcome__HeaderText",componentId:"sc-gu46k2-4"})(["font-size:24px;font-weight:900;margin-bottom:16px;text-align:center;"]),Nke=(0,Ge.default)(Be.default).withConfig({displayName:"welcome__ContentText",componentId:"sc-gu46k2-5"})(["font-size:16px;font-weight:400;line-height:24px;text-align:center;"]),kke=(0,Ge.default)(qe.default).withConfig({displayName:"welcome__LanguagePickerContainer",componentId:"sc-gu46k2-6"})(["position:absolute;top:","px;right:16px;flex-direction:row;align-items:center;"],({theme:e})=>e.insets.top+12),Rke=()=>{const{goToNextStep:e}=oke(),{session:{signOut:t,countryConfig:{registrationBlocked:n}}}=lt(),{autoTrackEnhanced:i}=mt(),o=lu(),a=(0,K.useCallback)(()=>{i({userFlow:qa,action:Xa.click,objectName:"continue",properties:{step:vo}}),e()},[e,i]),s=(0,K.useCallback)(()=>{i({userFlow:qa,action:Xa.click,objectName:"back",properties:{step:vo}}),t().then(()=>o(Ii()))},[t,Ii,i]);return(0,X.jsxs)(Cke,{testID:`FunnelStep:${vo}`,children:[(0,X.jsxs)(wke,{children:[(0,X.jsx)(jke,{onPress:s,children:(0,X.jsx)(Pa.default,{name:"arrow-back-ios",size:18,set:Pa.SETS.MATERIAL_ICONS,color:Qe.TEXT_DARK})}),(0,X.jsx)(kke,{children:(0,X.jsx)($u,{})})]}),(0,X.jsxs)(Ike,{children:[(0,X.jsxs)(Tke,{children:[(0,X.jsx)(Eke,{children:n?i18n.t("provider_application_process.errors.registration_blocked_title"):i18n.t("applicant_funnel.welcome.step_title")}),(0,X.jsx)(Nke,{children:n?i18n.t("provider_application_process.errors.registration_blocked"):i18n.t("applicant_funnel.welcome.description")})]}),!n&&(0,X.jsx)(RN,{onPress:a,label:i18n.t("shared.cta_labels.continue")})]})]})},Ske=(0,Ge.default)(qe.default).withConfig({displayName:"step_header__Container",componentId:"sc-1abix4l-0"})(["display:flex;flex-direction:row;align-items:center;height:56px;padding:0px 16px;"]),Ake=(0,Ge.default)(Da.default).withConfig({displayName:"step_header__BackButton",componentId:"sc-1abix4l-1"})(["padding:0px 8px;"]),Pke=(0,Ge.default)(Be.default).withConfig({displayName:"step_header__Title",componentId:"sc-1abix4l-2"})(["flex:1;position:absolute;left:0;right:0;text-align:center;font-size:17px;font-weight:600;margin-left:8px;color:",";"],Qe.TEXT_DARK),Dke=({title:e,hideBackButton:t,onPressBack:n})=>(0,X.jsxs)(Ske,{children:[(0,X.jsx)(Pke,{children:e}),!t&&(0,X.jsx)(Ake,{onPress:n,children:(0,X.jsx)(Pa.default,{name:"arrow-back-ios",size:18,set:Pa.SETS.MATERIAL_ICONS,color:Qe.TEXT_DARK})})]});
3878Dke.propTypes={title:ze().string.isRequired,hideBackButton:ze().bool,onPressBack:ze().func};const Mke=Dke,Oke=(0,Ge.default)(qe.default).withConfig({displayName:"step_progress_bar__Container",componentId:"sc-1rldg9y-0"})(["padding:8px 16px;"]),zke=(0,Ge.default)(qe.default).withConfig({displayName:"step_progress_bar__Bar",componentId:"sc-1rldg9y-1"})(["height:7px;background-color:",";border-radius:22px;width:100%;max-width:600px;align-self:center;"],Qe.GRAY_4),Lke=(0,Ge.default)(qe.default).withConfig({displayName:"step_progress_bar__FilledBar",componentId:"sc-1rldg9y-2"})(["height:7px;border-radius:22px;background-color:",";width:",";"],Qe.GREEN_SUMMER_GRASS,({percentage:e})=>`${e}%`),qke=Object.keys(ike).length,Bke=()=>{const{currentStep:e}=oke(),t=Object.keys(ike).findIndex(t=>e===t)+1,n=Math.min(t/qke*100,100);return(0,X.jsx)(Oke,{children:(0,X.jsx)(zke,{children:(0,X.jsx)(Lke,{percentage:n})})})},Gke=e=>{(0,K.useEffect)(()=>{const t=()=>(e(),!0);return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e])},Uke=(0,Ge.default)(Ae.KeyboardAwareScrollView).attrs(()=>({nestedScrollEnabled:!0,contentContainerStyle:{flexGrow:1,paddingLeft:16,paddingRight:16}})).withConfig({displayName:"step_container__ScrollContainer",componentId:"sc-asc5bw-0"})(["flex:1;background:",";"],Qe.WHITE),$ke=(0,Ge.default)(qe.default).withConfig({displayName:"step_container__StaticContainer",componentId:"sc-asc5bw-1"})(["flex:1;background:",";padding:0px 16px;"],Qe.WHITE),Fke=(0,Ge.default)(qe.default).withConfig({displayName:"step_container__LayoutContainer",componentId:"sc-asc5bw-2"})(["flex:1;padding-top:",";"],({theme:e})=>`${e.insets.top}px`),Hke=(0,Ge.default)(qe.default).withConfig({displayName:"step_container__ContentContainer",componentId:"sc-asc5bw-3"})(["flex:1;width:100%;max-width:600px;align-self:center;"]),Wke=({children:e,scrollable:t=!0,title:n,hideBackButton:i=!1,onPressBack:o,testID:a})=>{const s=t?Uke:$ke,{goToPrevStep:r,currentStep:l}=oke(),{autoTrack:d}=mt(),c=(0,K.useCallback)(()=>{d("User clicked on Back",`from apply ${l} step`),r()},[r,d,l]),u=o||c;return Gke(u),(0,X.jsxs)(Fke,{testID:a,children:[(0,X.jsx)(Mke,{title:n,onPressBack:u,hideBackButton:i}),(0,X.jsx)(Bke,{}),(0,X.jsx)(s,{children:(0,X.jsx)(Hke,{children:e})})]})};
3878Wke.propTypes={scrollable:ze().bool,title:ze().string,hideBackButton:ze().bool,onPressBack:ze().func,children:ze().node};const Vke=Wke,Kke=xt`
3879  mutation applicationProcessCreateProvider(
3880    $email: String!
3881    $password: String!
3882    $terms: Boolean!
3883    $businessLicense: Boolean
3884    $preferredLanguage: String!
3885    $referralCode: String
3886    $recaptchaToken: String
3887  ) {
3888    applicationProcessCreateProvider(
3889      email: $email
3890      password: $password
3891      terms: $terms
3892      businessLicense: $businessLicense
3893      preferredLanguage: $preferredLanguage
3894      referralCode: $referralCode
3895      recaptchaToken: $recaptchaToken
3896    ) {
3897      success
3898      provider {
3899        id
3900      }
3901      errors {
3902        code
3903        message
3904        path
3905      }
3906    }
3907  }
3908`,Yke=xt`
3909  mutation applicationProcessUpdateProvider($email: String, $password: String) {
3910    applicationProcessUpdateProvider(email: $email, password: $password) {
3911      success
3912      errors {
3913        code
3914        message
3915        path
3916      }
3917    }
3918  }
3919`,Xke=xt`
3920  mutation applicationProcessSetDefaults {
3921    applicationProcessSetDefaults {
3922      success
3923      errors {
3924        message
3925        code
3926        path
3927      }
3928    }
3929  }
3930`,Zke=(0,Ge.default)(wp).withConfig({displayName:"register__Input",componentId:"sc-1k1hyik-0"})(["margin-top:16px;"]),Qke=(0,Ge.default)(qe.default).withConfig({displayName:"register__MainContainer",componentId:"sc-1k1hyik-1"})(["flex-grow:1;"]),Jke=(0,Ge.default)(qe.default).withConfig({displayName:"register__FieldsContainer",componentId:"sc-1k1hyik-2"})([""]),eRe=(0,Ge.default)(Be.default).withConfig({displayName:"register__PasswordRuleMessage",componentId:"sc-1k1hyik-3"})(["margin-top:8px;font-size:12px;color:",";line-height:16px;font-weight:600;"],Qe.GRAY_2),tRe=(0,Ge.default)(Be.default).withConfig({displayName:"register__AlreadyHaveAccount",componentId:"sc-1k1hyik-4"})(["margin-top:16px;margin-bottom:32px;text-align:center;font-size:15px;color:",";"],Qe.TEXT_DARK),nRe=(0,Ge.default)(Be.default).withConfig({displayName:"register__LoginText",componentId:"sc-1k1hyik-5"})(["color:",";text-decoration:underline;text-decoration-color:",";"],Qe.GREEN_SUMMER_GRASS,Qe.GREEN_SUMMER_GRASS),iRe=(0,Ge.default)(qe.default).withConfig({displayName:"register__ErrorMessageContainer",componentId:"sc-1k1hyik-6"})(["flex-direction:row;margin-top:16px;align-items:center;"]),oRe=(0,Ge.default)(Be.default).withConfig({displayName:"register__ErrorMessage",componentId:"sc-1k1hyik-
39307"})(["color:",";font-size:14px;padding-left:5px;"],Qe.CRIMSON_1),aRe=(0,Ge.default)(Vp).withConfig({displayName:"register__AppleAuthButton",componentId:"sc-1k1hyik-8"})(["margin-bottom:12px;"]),sRe=(0,Te.observer)(()=>{const{apply:{register:e},session:{signIn:t,isSignedIn:n,isSignedInWithSso:i,currentUser:o,allSsoNotSupported:a,settings:{applicationProcess:{requireNewPassword:s}}},toast:{showToastMessage:r}}=lt(),l=(0,Ks.useHistory)(),{trackEvent:d,autoTrackEnhanced:c}=mt(),u=ft(),{goToNextStep:p}=oke(),{createProviderAccount:m,loading:f}=(e=>{var t,n;const[i,{data:o,loading:a}]=(0,js.useMutation)(Kke,Object.assign({},e,{context:Object.assign({},(null===e||void 0===e?void 0:e.context)||{},{apiVersion:3})}));return{createProviderAccount:e=>i({variables:e}).then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessCreateProvider}),success:null===o||void 0===o||null===(t=o.applicationProcessCreateProvider)||void 0===t?void 0:t.success,errors:null===o||void 0===o||null===(n=o.applicationProcessCreateProvider)||void 0===n?void 0:n.errors,loading:a}})(),{updateProviderAccount:g,loading:h}=(e=>{var t,n;const[i,{data:o,loading:a}]=(0,js.useMutation)(Yke,Object.assign({},e,{context:Object.assign({},(null===e||void 0===e?void 0:e.context)||{},{apiVersion:3})}));return{updateProviderAccount:e=>i({variables:e}).then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessUpdateProvider}),success:null===o||void 0===o||null===(t=o.applicationProcessUpdateProvider)||void 0===t?void 0:t.success,errors:null===o||void 0===o||null===(n=o.applicationProcessUpdateProvider)||void 0===n?void 0:n.errors,loading:a}})(),{signOnGoogle:_,loading:x,isGoogleReady:y,error:v}=Gp(qp),{signOnApple:b,loading:w,error:C}=Qp(qp),{executeRecaptcha:j}=rm(),I=w||x||f||h,T=(0,K.useMemo)(()=>{const e=v||C;return(null===e||void 0===e?void 0:e.code)===Bp?i18n.t("applicant_funnel.register.sso.google.error.not_found"):null===e||void 0===e?void 0:e.message},[v,C]);(0,K.useEffect)(()=>{e.initialize()},[n]);const E=(0,K.useCallback)(t=>{u({userFlow:qa,action:Xa.input,objectName:"email",properties:{step:bo}}),e.email.set(t)},[e]),N=(0,K.useCallback)(t=>{u({userFlow:qa,action:Xa.input,objectName:"password",properties:{step:bo}}),e.password.set(t)},[e]),k=(0,K.useCallback)(async()=>{if(c({userFlow:qa,action:Xa.click,objectName:"Create an account",properties:{step:bo}}),e.clearErrors(),!e.validate())return;const i=e.email.value,a=e.password.value,s=!n||(null===o||void 0===o?void 0:o.email)!==i,u=!!a;if(!n||s||u)try{const c=n?g:m;let p=null;if(!n&&j)try{p=await j("register")}catch(h){return console.error("reCAPTCHA verification failed",h),void r({message:i18n.t("applicant_funnel.register.form.errors.recaptcha.error")})}const{success:_,errors:x,provider:y}=await c(Object.assign({},e.toGraphQL(),p?{recaptchaToken:p}:{}));var f;if(!n&&y&&d("applicationCreated",{applicantId:y.id}),!_)return e.setErrorsFromGraphQL(x),void r({message:(null===x||void 0===x||null===(f=x[0])||void 0===f?void 0:f.message)||i18n.t("provider.generic.error")});if(n&&(e.onUpdate(),s&&(null===o||void 0===o||o.setEmailVerified(!1))),!n||u){let n=null;if(j)try{n=await j("provider_sign_in")}catch(h){return console.error("reCAPTCHA verification failed",h),void r({message:i18n.t("applicant_funnel.register.form.errors.recaptcha.error")})}const{success:o}=await t(i,a,n);if(!o)return e.clearPassword(),void l.push(Ii())}e.clearPassword()}catch(_){r({message:i18n.t("provider.generic.error")}),console.error(_)}else p()},[e,n,o,r,m,g,t,l,j,c,d]);return i?null:(0,X.jsxs)(Vke,{title:i18n.t("applicant_funnel.register.step_title"),testID:`FunnelStep:${bo}`,children:[(0,X.jsxs)(Qke,{children:[T&&(0,X.jsxs)(iRe,{children:[(0,X.jsx)(Pa.default,{name:"warning",size:13,set:Pa.SETS.MATERIAL_ICONS,color:Qe.CRIMSON_1}),(0,X.jsx)(oRe,{children:T})]}),(0,X.jsxs)(Jke,{children:[(0,X.jsx)(Zke,{label:i18n.t("applicant_funnel.register.form.labels.email"),value:e.email.value,onChange:E,error:e.email.error,autoCapitalize:"none",autoComplete:"email",testID:"RegisterFormInput:email"}),(0,X.jsx)(Zke,{label:i18n.t("applicant_funnel.register.form.labels.password"),secure:!0,value:e.password.value,placeholder:n&&!s?"*********":void 0,onChange:N,error:e.password.error,autoCapitalize:"none",autoComplete:"new-password",testID:"RegisterFormInput:password"}),!e.email.error&&(0,X.jsx)(eRe,{children:i18n.t("applicant_funnel.register.form.labels.password_rule")})]}),(0,X.jsx)(RN,{onPress:k,loading:f,disabled:I||!e.submitEnabled,label:i18n.t("applicant_funnel.register.create_account")}
3930),!n&&(0,X.jsxs)(X.Fragment,{children:[!a&&(0,X.jsx)(tm.default,{separatorCopy:i18n.t("applicant_funnel.register.sso_form_separator")}),(0,X.jsx)(aRe,{onPress:b,loading:w,disabled:I,userFlow:qa,action:Xa.click,objectName:"Sign up with Apple",properties:{step:bo},testID:"signUp:appleAuthButton",children:i18n.t("applicant_funnel.register.sso.apple.button")}),(0,X.jsx)(Rp,{onPress:_,loading:x,disabled:!y||I,userFlow:qa,action:Xa.click,objectName:"Sign up with Google",properties:{step:bo},testID:"signUp:googleAuthButton",children:i18n.t("applicant_funnel.register.sso.google.button")}),(0,X.jsx)(nm.default,{text:i18n.t("applicant_funnel.register.form.labels.terms_privacy_and_other_requirements"),tokens:{TERMS_SERVICE:{onPress:()=>bs.default.openURL(i18n.t("provider_terms.url"),!1,!0),href:i18n.t("provider_terms.url"),label:i18n.t("applicant_funnel.register.form.labels.terms_of_use")},PRIVACY_POLICY:{onPress:()=>bs.default.openURL(i18n.t("privacy.url"),!1,!0),href:i18n.t("privacy.url"),label:i18n.t("applicant_funnel.register.form.labels.privacy_policy")}}}),!!j&&(0,X.jsx)(am,{})]})]}),!n&&(0,X.jsxs)(tRe,{children:[i18n.t("applicant_funnel.register.already_have_account")," ",(0,X.jsx)(nRe,{onPress:()=>l.push(Ii()),children:i18n.t("shared.labels.login")})]})]})});var rRe=n(5945);const lRe=xt`
3931  mutation applicationProcessRequestEmailVerification {
3932    applicationProcessRequestEmailVerification {
3933      success
3934      errors {
3935        path
3936        message
3937      }
3938    }
3939  }
3940`,dRe=xt`
3941  mutation applicationProcessVerifyEmail($code: String!) {
3942    applicationProcessVerifyEmail(code: $code) {
3943      success
3944      errors {
3945        path
3946        message
3947      }
3948    }
3949  }
3950`,cRe=(e,t)=>{var n;return null===t||void 0===t||null===(n=t.find(t=>t.path[0]===e))||void 0===n?void 0:n.message},uRe=(0,Ge.default)(Be.default).withConfig({displayName:"email_verification__StepDescription",componentId:"sc-1xhpu40-0"})(["color:",";font-weight:600;line-height:19px;margin-top:16px;"],Qe.TEXT_DARK),pRe=(0,Ge.default)(qe.default).withConfig({displayName:"email_verification__FormContainer",componentId:"sc-1xhpu40-1"})(["flex:1;margin-top:16px;"]),mRe=(0,Ge.default)(Be.default).withConfig({displayName:"email_verification__Cell",componentId:"sc-1xhpu40-2"})(["border:1px solid ",";border-radius:4px;padding-top:18px;width:48px;height:67px;font-size:22px;text-align:center;"],({$focused:e,$error:t})=>t?Qe.CRIMSON_2:e?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER),fRe=(0,Ge.default)(Be.default).withConfig({displayName:"email_verification__ErrorText",componentId:"sc-1xhpu40-3"})(["color:#a9454b;font-size:12px;flex-wrap:wrap;flex-shrink:1;margin-top:4px;"]),gRe=(0,Ge.default)(Be.default).withConfig({displayName:"email_verification__ResendCode",componentId:"sc-1xhpu40-4"})(["color:",";margin-top:16px;"],Qe.GREEN_SUMMER_GRASS),hRe=(0,Ge.default)(qe.default).withConfig({displayName:"email_verification__AlreadyVerified",componentId:"sc-1xhpu40-5"})(["flex:1;"]),_Re=(0,Ge.default)(uRe).withConfig({displayName:"email_verification__AlreadyVerifiedDescription",componentId:"sc-1xhpu40-6"})(["text-align:center;"]),xRe=(0,Te.observer)(()=>{const{toast:{showToastMessage:e},session:{currentUser:t}}=lt(),{autoTrackEnhanced:n}=mt(),i=ft(),{goToNextStep:o}=oke(),a=!(null===t||void 0===t||!t.emailVerified),[s,r]=(0,K.useState)(""),[l,d]=(0,K.useState)(null),[c,u]=(0,K.useState)(!1),{requestEmailVerification:p,loading:m}=(()=>{var e,t;const[n,{data:i,loading:o}]=(0,js.useMutation)(lRe,{context:{apiVersion:3}});return{requestEmailVerification:()=>n().then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessRequestEmailVerification}),success:null===i||void 0===i||null===(e=i.applicationProcessRequestEmailVerification)||void 0===e?void 0:e.success,errors:null===i||void 0===i||null===(t=i.applicationProcessRequestEmailVerification)||void 0===t?void 0:t.errors,loading:o}})(),{verifyEmail:f,loading:g}=(()=>{var e,t;const[n,{data:i,loading:o}]=(0,js.useMutation)(dRe,{context:{apiVersion:3}});return{verifyEmail:e=>n({variables:{code:e}}).then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessVerifyEmail}),success:null===i||void 0===i||null===(e=i.applicationProcessVerifyEmail)||void 0===e?void 0:e.success,errors:null===i||void 0===i||null===(t=i.applicationProcessVerifyEmail)||void 0===t?void 0:t.errors,loading:o}})(),h=async()=>{d(null);try{var t,n;const i=await p();if(null!==i&&void 0!==i&&i.success)return!0;e({message:(null===i||void 0===i||null===(t=i.errors)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.message)||i18n.t("applicant_funnel.email_verification.errors.send_code")})}catch{e({message:i18n.t("provider.generic.error")})}return u(!0),!1};(0,K.useEffect)(()=>{a||h()},[]),(0,K.useEffect)(()=>
3950{if(c)return;const e=setTimeout(()=>u(!0),6e4);return()=>clearTimeout(e)},[c]);return(0,X.jsxs)(Vke,{title:i18n.t("applicant_funnel.email_verification.step_title"),testID:`FunnelStep:${wo}`,children:[a?(0,X.jsx)(hRe,{children:(0,X.jsx)(_Re,{children:i18n.t("applicant_funnel.email_verification.already_verified")})}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(uRe,{children:i18n.t("applicant_funnel.email_verification.step_description")}),(0,X.jsxs)(pRe,{children:[(0,X.jsx)(rRe.CodeField,{autoFocus:!0,value:s,testID:"EmailVerificationFormInput:code",onChangeText:e=>{d(null),Number.isInteger(Number(e))&&(r(e),i({userFlow:qa,action:Xa.input,objectName:"code",properties:{step:wo}}))},cellCount:6,rootStyle:{marginTop:16},keyboardType:"number-pad",renderCell:({index:e,symbol:t,isFocused:n})=>(0,X.jsx)(mRe,{$focused:n,$error:l,children:t},e)}),l&&(0,X.jsx)(fRe,{children:l}),c&&(0,X.jsx)(Da.default,{onPress:async()=>{n({userFlow:qa,action:Xa.click,objectName:"Resend code",properties:{step:wo}}),r(""),u(!1),await h()&&e({type:"success",message:i18n.t("applicant_funnel.email_verification.success_code_sent")})},disabled:m,children:(0,X.jsx)(gRe,{children:i18n.t("applicant_funnel.email_verification.actions.resend_code")})})]})]}),(0,X.jsx)(RN,{onPress:async()=>{if(n({userFlow:qa,action:Xa.click,objectName:"Next",properties:{step:wo}}),a)o();else try{const{success:e,errors:n}=await f(s);if(e)return null===t||void 0===t||t.setEmailVerified(!0),void o();d(cRe("code",n)||i18n.t("applicant_funnel.email_verification.errors.wrong_verification_code"))}catch{e({message:i18n.t("provider.generic.error")})}},loading:g,disabled:!a&&(m||g||s.length<6)})]})}),yRe=(0,Ge.default)(qe.default).withConfig({displayName:"country_selector_input__Container",componentId:"sc-zsjfdm-0"})([""]),vRe=(0,Ge.default)(qe.default).withConfig({displayName:"country_selector_input__Box",componentId:"sc-zsjfdm-1"})(["min-height:60px;padding:12px 16px;flex-direction:row;align-items:center;justify-content:center;border-radius:8px;border:solid 1px ",";background:",";"],({$error:e})=>e?Qe.CRIMSON_2:Qe.GRAY_BORDER,({$disabled:e})=>e?"#F8F8F8":Qe.WHITE),bRe=(0,Ge.default)(qe.default).withConfig({displayName:"country_selector_input__Field",componentId:"sc-zsjfdm-2"})(["flex:1;flex-direction:column;align-items:flex-start;"]),wRe=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__Label",componentId:"sc-zsjfdm-3"})(["color:",";font-size:12px;"],({$error:e})=>e?Qe.CRIMSON_2:Qe.TEXT_DARK),CRe=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__ErrorText",componentId:"sc-zsjfdm-4"})(["color:",";font-size:12px;flex-wrap:wrap;flex-shrink:1;margin-top:4px;"],Qe.CRIMSON_1),jRe=(0,Ge.default)(qe.default).withConfig({displayName:"country_selector_input__SelectedValue",componentId:"sc-zsjfdm-5"})(["width:100%;padding-top:8px;align-items:center;justify-content:space-between;flex-direction:row;"]),IRe=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__CountryCode",componentId:"sc-zsjfdm-6"})(["color:",";"],Qe.TEXT_MEDIUM),TRe=(0,Ge.default)(Uc.default).withConfig({displayName:"country_selector_input__SearchInput",componentId:"sc-zsjfdm-7"})(["border-radius:8px;border:1px solid ",";padding:12px 16px;margin:16px;",""],Qe.GRAY_BORDER,"outline-width: 0;"),ERe=(0,Ge.default)(Da.default).withConfig({displayName:"country_selector_input__CountryItem",componentId:"sc-zsjfdm-8"})(["padding:8px;margin:0 16px;flex-direction:row;align-items:center;background-color:",";"],({selected:e})=>e?Qe.GRAY_4:"transparent"),NRe=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__Flag",componentId:"sc-zsjfdm-9"})(["font-size:24px;margin-right:8px;"]),kRe=(0,Ge.default)(Be.default).withConfig({displayName:"country_selector_input__CountryName",componentId:"sc-zsjfdm-10"})(["font-size:16px;color:",";"],Qe.TEXT_DARK),RRe=(0,Te.observer)(({value:e,onChange:t,label:n,listTitle:i,listSearchPrompt:o,countries:a,disabled:s,error:r,style:l,testID:d})=>{const[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(""),f=(0,K.useMemo)(()=>(a??[]).filter(e=>e.label.toLowerCase().includes(p.toLowerCase())).sort((e,t)=>
3950e.label.localeCompare(t.label)),[a,p]),g=(0,K.useMemo)(()=>{if(!e||!a)return"";const t=a.find(t=>t.value===e);return t?t.label:""},[a,e]),h=(0,K.useCallback)(()=>{m(""),u(!1)},[]),_=(0,K.useCallback)(()=>{s||u(!0)},[s,f,e]),x=(0,K.useCallback)(e=>{t(e),h()},[t,h]),y=(0,K.useCallback)(({item:t})=>(0,X.jsxs)(ERe,{selected:t.value===e,onPress:()=>x(t.value),testID:`${d}:Option:${t.value}`,children:[(0,X.jsx)(NRe,{children:t.flag}),(0,X.jsx)(kRe,{children:t.label})]}),[x,e]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ws.default,{onPress:_,focusable:!1,tabIndex:-1,testID:`${d}`,children:(0,X.jsxs)(yRe,{style:l,children:[(0,X.jsx)(vRe,{$disabled:s,$error:!!r,children:(0,X.jsxs)(bRe,{children:[(0,X.jsx)(wRe,{$error:!!r,children:n}),(0,X.jsxs)(jRe,{children:[(0,X.jsx)(IRe,{children:g}),(0,X.jsx)(Pa.default,{name:"chevron-down",size:20,set:Pa.SETS.MATERIAL_COMMUNITY_ICONS,color:Qe.TEXT_LIGHT})]})]})}),!!r&&(0,X.jsx)(CRe,{testID:`ErrorLabel:${d}`,children:r})]})}),c&&(0,X.jsxs)(zw,{title:i,isOpen:c,onClose:h,onModalHide:h,displayCloseButton:!0,children:[(0,X.jsx)(TRe,{placeholder:o,value:p,onChangeText:m,testID:`${d}:SearchFilter`}),(0,X.jsx)(Lj.default,{data:f,keyExtractor:e=>e.value,renderItem:y})]})]})}),SRe=xt`
3951  query applicationProcessPersonalDetails {
3952    applicationProcess {
3953      personalDetails {
3954        id
3955        firstName
3956        lastName
3957        gender
3958        dateOfBirth
3959        birthCountry
3960        birthPlace
3961        nationality
3962        referralCode
3963      }
3964    }
3965  }
3966`,ARe=xt`
3967  mutation applicationProcessSetPersonalDetails(
3968    $firstName: String!
3969    $lastName: String!
3970    $gender: String!
3971    $dateOfBirth: ISO8601Date!
3972    $birthCountry: String!
3973    $birthPlace: String!
3974    $nationality: String!
3975    $referralCode: String
3976    $euRegulation20242065Accepted: Boolean
3977  ) {
3978    applicationProcessSetPersonalDetails(
3979      firstName: $firstName
3980      lastName: $lastName
3981      gender: $gender
3982      dateOfBirth: $dateOfBirth
3983      birthCountry: $birthCountry
3984      birthPlace: $birthPlace
3985      nationality: $nationality
3986      referralCode: $referralCode
3987      euRegulation20242065Accepted: $euRegulation20242065Accepted
3988    ) {
3989      success
3990      errors {
3991        message
3992        path
3993      }
3994    }
3995  }
3996`,PRe=e=>(0,X.jsx)(Wu.default,Object.assign({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M.95 3.499A10.759 10.759 0 008 .75a10.759 10.759 0 007.05 2.749c.099.586.15 1.187.15 1.801 0 4.702-3.005 8.703-7.2 10.186C3.805 14.002.8 10.002.8 5.3c0-.614.051-1.215.15-1.801zm10.386 3.337a.9.9 0 10-1.272-1.272L7.1 8.527 5.936 7.364a.9.9 0 00-1.272 1.272l1.8 1.8a.9.9 0 001.272 0l3.6-3.6z",fill:"#7FAEE1"})})),DRe=(0,Ge.default)(qe.default).withConfig({displayName:"privacy_notice__Container",componentId:"sc-niehwg-0"})(["border:1px solid #7faee1;border-radius:6px;padding:12px 16px;margin-top:16px;background-color:#f2f8ff;flex-direction:row;align-items:center;"]),MRe=(0,Ge.default)(Be.default).withConfig({displayName:"privacy_notice__Message",componentId:"sc-niehwg-1"})(["font-size:13px;font-weight:600;color:",";line-height:17px;margin-left:12px;"],Qe.TEXT_DARK),ORe=({message:e})=>(0,X.jsxs)(DRe,{children:[(0,X.jsx)(PRe,{}),(0,X.jsx)(MRe,{children:e})]});ORe.propTypes={message:ze().string.isRequired};const zRe=ORe,LRe=(0,Ge.default)(qe.default).withConfig({displayName:"personal_details__FormContainer",componentId:"sc-1l8xaon-0"})(["padding-top:16px;flex-grow:1;"]),qRe=(0,Ge.default)(wp).withConfig({displayName:"personal_details__Input",componentId:"sc-1l8xaon-1"})(["margin-bottom:16px;"]),BRe=(0,Ge.default)(RRe).withConfig({displayName:"personal_details__CountrySelector",componentId:"sc-1l8xaon-2"})(["margin-bottom:16px;"]),GRe=(0,Ge.default)(Be.default).withConfig({displayName:"personal_details__StepDescription",componentId:"sc-1l8xaon-3"})(["color:",";font-weight:600;line-height:19px;margin-top:16px;"],Qe.TEXT_DARK),URe=(0,Ge.default)(jp).withConfig({displayName:"personal_details__ReferralButton",componentId:"sc-1l8xaon-4"})(["margin-bottom:16px;"]),$Re=(0,Ge.default)(Be.default).withConfig({displayName:"personal_details__ReferralCopy",componentId:"sc-1l8xaon-5"})(["font-size:14px;font-weight:600;color:",";"],Qe.TEXT_DARK),FRe=(0,Ge.default)(Be.default).withConfig({displayName:"personal_details__ReferralClickHere",componentId:"sc-1l8xaon-6"})(["color:",";"],Qe.GREEN_SUMMER_GRASS),HRe=(0,Ge.default)(oY).attrs(e=>Object.assign({size:20,labelStyle:{fontSize:14,fontWeight:400,color:e.labelColor}},e)).withConfig({displayName:"personal_details__CheckBox",componentId:"sc-1l8xaon-
39967"})(["margin-top:16px;"]),WRe=(0,Ge.default)(Be.default).withConfig({displayName:"personal_details__ReferralSuccessMessage",componentId:"sc-1l8xaon-8"})(["font-size:12px;color:",";margin-top:-12px;margin-bottom:16px;"],Qe.GREEN_SUMMER_GRASS),VRe=(0,Te.observer)(()=>{const{goToNextStep:e,goToPrevStep:t,currentStep:n}=oke(),{apply:{personalDetails:i},session:{isSignedInWithSso:o,signOut:a,currentUser:s}}=lt(),{autoTrackEnhanced:r}=mt(),l=ft(),d=lu(),[c,u]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),{countries:f,loading:g}=O2(),{loading:h}=((e={})=>{var t;const{data:n,loading:i}=(0,Is.useQuery)(SRe,Object.assign({},e,{context:Object.assign({},(null===e||void 0===e?void 0:e.context)||{},{apiVersion:3}),fetchPolicy:"network-only"}));return{personalDetails:null===n||void 0===n||null===(t=n.applicationProcess)||void 0===t?void 0:t.personalDetails,loading:i}})({onCompleted:e=>{var t;const n=null===e||void 0===e||null===(t=e.applicationProcess)||void 0===t?void 0:t.personalDetails;n&&(i.fill(Object.assign({},n,{dateOfBirth:n.dateOfBirth?C.DateTime.fromISO(n.dateOfBirth).toFormat("dd/MM/yyyy"):""})),n.referralCode&&(m(!0),u(!0)))}}),{setPersonalDetails:_}=((e={})=>{var t,n;const[i,{data:o,loading:a}]=(0,js.useMutation)(ARe,Object.assign({},e,{context:Object.assign({},(null===e||void 0===e?void 0:e.context)||{},{apiVersion:3})}));return{setPersonalDetails:async e=>i({variables:e}).then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessSetPersonalDetails}),success:null===o||void 0===o||null===(t=o.applicationProcessSetPersonalDetails)||void 0===t?void 0:t.success,errors:null===o||void 0===o||null===(n=o.applicationProcessSetPersonalDetails)||void 0===n?void 0:n.errors,loading:a}})(),x=(0,K.useCallback)(async()=>{if(r({userFlow:qa,action:Xa.click,objectName:"Next",properties:{step:Co}}),i.clearErrors(),await i.validate()){const{success:t,errors:n}=await _(i.toGraphQL({includeReferralCode:!p}));t?e():i.setErrorsFromGraphQL(n)}},[i,_,e,r,p]),y=(0,K.useCallback)(()=>{r({userFlow:qa,action:Xa.click,objectName:"Back",properties:{step:Co}}),o?a().then(()=>d(Ii())):t()},[o,n,t,r,s]),v=h||g,b=(0,K.useCallback)((e,t)=>{l({userFlow:qa,action:Xa.input,objectName:e,properties:{step:Co}}),i[e].set(t)},[i]),w=(e,t)=>({label:i18n.t(`applicant_funnel.personal_details.form.labels.${t||e}`),value:i[e].value||"",error:i[e].error,onChange:t=>b(e,t),disabled:v,testID:`PersonalDetailsFormInput:${e}`}),j=(e,t)=>Object.assign({},w(e,t),{listTitle:i18n.t(`applicant_funnel.personal_details.form.list_titles.${t||e}`),listSearchPrompt:i18n.t(`applicant_funnel.personal_details.form.list_search_prompts.${t||e}`)}),I=[{label:i18n.t("applicant_funnel.personal_details.form.genders.male"),value:"male"},{label:i18n.t("applicant_funnel.personal_details.form.genders.female"),value:"female"}];return(0,X.jsxs)(Vke,{title:i18n.t("applicant_funnel.personal_details.step_title"),onPressBack:y,testID:`FunnelStep:${Co}`,children:[(0,X.jsx)(GRe,{children:i18n.t("applicant_funnel.personal_details.step_description")}),(0,X.jsx)(zRe,{message:i18n.t("applicant_funnel.personal_details.privacy_notice.message")}),(0,X.jsxs)(LRe,{children:[!c&&(0,X.jsx)(URe,{userFlow:qa,action:Xa.click,objectName:"Click to show referral code",properties:{step:Co},onPress:()=>u(!0),testID:"PersonalDetailsForm:ReferralButton",children:(0,X.jsxs)($Re,{children:[i18n.t("applicant_funnel.personal_details.form.labels.referral.copy")," ",(0,X.jsx)(FRe,{children:i18n.t("applicant_funnel.personal_details.form.labels.referral.click_here")})]})}),c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(qRe,Object.assign({},w("referralCode","referral_code"),{autoCapitalize:"none",disabled:v||p})),p&&(0,X.jsx)(WRe,{children:i18n.t("applicant_funnel.personal_details.form.labels.referral.already_applied")})]}),(0,X.jsx)(qRe,Object.assign({},w("firstName","first_name"))),(0,X.jsx)(qRe,Object.assign({},w("lastName","last_name"))),(0,X.jsx)(qRe,Object.assign({},w("gender"),{options:I})),(0,X.jsx)(qRe,Object.assign({},w("dateOfBirth","date_of_birth"),{mask:ap.Masks.DATE_DDMMYYYY,placeholder:"DD/MM/YYYY"})),(0,X.jsx)(BRe,Object.assign({},j("birthCountry","birth_country"),{countries:f})),(0,X.jsx)(qRe,Object.assign({},w("birthPlace","birth_place"))),(0,X.jsx)(BRe,Object.assign({},j("nationality"),{countries:f})),(0,X.jsx)(HRe,{label:i18n.t("applicant_funnel.personal_details.form.labels.eu_regulation_2024_2065"),checked:i.euRegulation20242065Accepted.value,onChange:()=>i.euRegulation20242065Accepted.set(!i.euRegulation20242065Accepted.value),labelColor:i.euRegulation20242065Accepted.error?Qe.CRIMSON_1:Qe.GRAY_2,testID:"PersonalDetailsFormCheckbox:euRegulation20242065Accepted"})]}),(0,X.jsx)(RN,{onPress:x})]})}),KRe=xt`
3997  query applicationProcessAddress {
3998    applicationProcess {
3999      address {
4000        address1
4001        address2
4002        postcode
4003        town
4004      }
4005    }
4006  }
4007`,YRe=xt`
4008  mutation applicationProcessSetAddress($address1: String!, $postcode: String!, $town: String) {
4009    applicationProcessSetAddress(address1: $address1, postcode: $postcode, town: $town) {
4010      success
4011      errors {
4012        path
4013        message
4014      }
4015    }
4016  }
4017`;var XRe=n(76619);const ZRe=e=>{const{session:{country:t}}=lt();if("ie"===t){const t=Object.entries(XRe.default).map(([e,t])=>({value:e,label:t}));return(0,X.jsx)(wp,Object.assign({options:t},e))}return(0,X.jsx)(wp,Object.assign({},e))},QRe=(0,Ge.default)(Be.default).withConfig({displayName:"address__StepDescription",componentId:"sc-124z879-0"})(["color:",";font-weight:600;line-height:19px;margin-top:16px;"],Qe.TEXT_DARK),JRe=(0,Ge.default)(qe.default).withConfig({displayName:"address__FormContainer",componentId:"sc-124z879-1"})(["flex:1;"]),eSe=(0,Ge.default)(wp).withConfig({displayName:"address__Input",componentId:"sc-124z879-2"})(["margin-top:16px;"]),tSe=(0,Ge.default)(ZRe).withConfig({displayName:"address__PostcodeInput",componentId:"sc-124z879-3"})(["margin-top:16px;"]),nSe=(0,Ge.default)(Be.default).withConfig({displayName:"address__GeneralError",componentId:"sc-124z879-4"})(["color:",";font-size:12px;font-weight:600;line-height:16px;margin-top:16px;"],Qe.CRIMSON_1),iSe=(0,Te.observer)(()=>{const{apply:{address:e},toast:{showToastMessage:t}}=lt(),{autoTrackEnhanced:n}=mt(),i=ft(),{goToNextStep:o}=oke(),[a,{loading:s}]=(0,js.useMutation)(YRe,{context:{apiVersion:3}}),{loading:r}=((e={})=>{var t;const{data:n,loading:i}=(0,Is.useQuery)(KRe,Object.assign({},e,{context:Object.assign({},(null===e||void 0===e?void 0:e.context)||{},{apiVersion:3}),fetchPolicy:"network-only"}));return{address:null===n||void 0===n||null===(t=n.applicationProcess)||void 0===t?void 0:t.address,loading:i}})({onCompleted:t=>{var n;const i=null===t||void 0===t||null===(n=t.applicationProcess)||void 0===n?void 0:n.address;i&&e.fill(i)}}),l=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.click,objectName:"Next",properties:{step:jo}}),e.clearErrors(),e.validate()&&a({variables:e.toGraphQL()}).then(({data:{applicationProcessSetAddress:{success:t,errors:n}}})=>{t?o():e.setErrorsFromGraphQL(n)}).catch(()=>t({message:i18n.t("provider.generic.error")}))},[]),d=(0,K.useCallback)((t,n)=>{i({userFlow:qa,action:Xa.input,objectName:t,properties:{step:jo}}),e[t].set(n)},[e]),c=t=>({value:e[t].value,error:e[t].error,onChange:e=>d(t,e),disabled:r,testID:`AddressFormInput:${t}`});return(0,X.jsxs)(Vke,{title:i18n.t("applicant_funnel.address.step_title"),testID:`FunnelStep:${jo}`,children:[(0,X.jsx)(QRe,{children:i18n.t("applicant_funnel.address.step_description")}),(0,X.jsx)(zRe,{message:i18n.t("applicant_funnel.address.privacy_notice.customer_will_not_see_your_address.message")}),(0,X.jsxs)(JRe,{children:[(0,X.jsx)(eSe,Object.assign({label:i18n.t("applicant_funnel.address.form.labels.street")},c("address1"))),(0,X.jsx)(tSe,Object.assign({label:i18n.t("applicant_funnel.address.form.labels.postcode")},c("postcode"))),(0,X.jsx)(eSe,Object.assign({label:i18n.t("applicant_funnel.address.form.labels.city")},c("town"))),!e.hasFieldErrors&&!!e.error&&(0,X.jsx)(nSe,{children:e.error})]}),(0,X.jsx)(RN,{onPress:l,loading:s,disabled:r||!e.submitEnabled||s})]})}
4017),oSe=xt`
4018  mutation providerMobileVerificationCodeRequest {
4019    mobileVerificationCodeRequest {
4020      success
4021    }
4022  }
4023`,aSe=()=>{var e;const[t,{data:n,loading:i}]=(0,js.useMutation)(oSe,{context:{apiVersion:3}});return{mobileVerificationCodeRequest:()=>t(),success:null===n||void 0===n||null===(e=n.mobileVerificationCodeRequest)||void 0===e?void 0:e.success,loading:i}},sSe=(xt`
4024  mutation providerMobileVerificationCodeCheck($code: String!) {
4025    mobileVerificationCodeCheck(code: $code) {
4026      success
4027    }
4028  }
4029`,xt`
4030  mutation applicationProcessSetMobile($mobile: String!, $recaptchaToken: String) {
4031    applicationProcessSetMobile(mobile: $mobile, recaptchaToken: $recaptchaToken) {
4032      success
4033      errors {
4034        path
4035        message
4036      }
4037    }
4038  }
4039`),rSe=xt`
4040  mutation applicationProcessVerifyMobile($code: String!) {
4041    applicationProcessVerifyMobile(code: $code) {
4042      success
4043      errors {
4044        path
4045        message
4046      }
4047    }
4048  }
4049`,lSe=(0,Ge.default)(Be.default).withConfig({displayName:"mobile__StepDescription",componentId:"sc-1v254xn-0"})(["color:",";font-weight:600;line-height:19px;margin-top:16px;"],Qe.TEXT_DARK),dSe=(0,Ge.default)(qe.default).withConfig({displayName:"mobile__FormContainer",componentId:"sc-1v254xn-1"})(["flex:1;margin-top:16px;"]),cSe=(0,Ge.default)(Be.default).withConfig({displayName:"mobile__Hint",componentId:"sc-1v254xn-2"})(["color:",";font-size:12px;margin-top:8px;"],Qe.TEXT_DARK),uSe=(0,Te.observer)(()=>{const{apply:{mobile:{mobile:e,setErrorsFromGraphQL:t,validate:n}},toast:{showToastMessage:i},session:{currentUser:o,locale:a,countryCCA2:s}}=lt(),{autoTrackEnhanced:r}=mt(),l=ft(),{goToNextStep:d}=oke(),{setMobile:c,loading:u}=(()=>{var e,t;const[n,{data:i,loading:o}]=(0,js.useMutation)(sSe,{context:{apiVersion:3}});return{setMobile:(e,t)=>n({variables:{mobile:e,recaptchaToken:t}}).then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessSetMobile}),success:null===i||void 0===i||null===(e=i.applicationProcessSetMobile)||void 0===e?void 0:e.success,errors:null===i||void 0===i||null===(t=i.applicationProcessSetMobile)||void 0===t?void 0:t.errors,loading:o}})(),{mobileVerificationCodeRequest:p}=aSe(),{executeRecaptcha:m}=rm(),f=(0,K.useCallback)(t=>{l({userFlow:qa,action:Xa.input,objectName:"mobile",properties:{step:Io}}),e.set(t)},[e]),g=(0,K.useCallback)(async()=>{let a=null;r({userFlow:qa,action:Xa.click,objectName:"Next",properties:{step:Io}});try{if(!n())return;if(e.value===o.mobile)return await p(),void d();if(m)try{a=await m("set_mobile")}catch(s){return console.error("reCAPTCHA verification failed",s),void i({message:i18n.t("applicant_funnel.register.form.errors.recaptcha.error")})}const{success:r,errors:l}=await c(e.value.replace(/\s/g,""),a);r&&(await p(),d()),t(l)}catch(l){i({message:i18n.t("provider.generic.error")})}},[m]);return(0,X.jsxs)(Vke,{title:i18n.t("applicant_funnel.mobile.step_title"),testID:`FunnelStep:${Io}`,children:[(0,X.jsx)(lSe,{children:i18n.t("applicant_funnel.mobile.step_description")}),(0,X.jsx)(zRe,{message:i18n.t("applicant_funnel.mobile.privacy_notice.customer_will_not_see_your_phone_number.message")}),(0,X.jsxs)(dSe,{children:[(0,X.jsx)(M6,{defaultValue:o.mobile,defaultCountryCode:s,value:e.value,onChange:f,error:e.error,locale:a,testID:"MobileFormInput:mobile"}),!e.error&&(0,X.jsx)(cSe,{children:i18n.t("applicant_funnel.mobile_verification.forms.mobile.hint")})]}),(0,X.jsx)(RN,{onPress:g,loading:u,disabled:u})]})}),pSe=["children"],mSe=n(69234),fSe=(0,Ge.default)(qe.default).withConfig({displayName:"account_created_image__Background",componentId:"sc-1r4dj7n-0"})(["flex:1;background:",";position:relative;overflow:hidden;"],Qe.WHITE),gSe=(0,Ge.default)(oy.LinearGradient).attrs(()=>({colors:["rgba(234, 248, 218, 0.65)","rgba(224, 238, 255, 0.65)"],start:{x:0,y:0},end:{x:1,y:1}})).withConfig({displayName:"account_created_image__Gradient",componentId:"sc-1r4dj7n-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;"]),hSe=(0,Ge.default)(qe.default).withConfig({displayName:"account_created_image__Layer1",componentId:"sc-1r4dj7n-2"})(["position:absolute;
4049left:0;right:0;bottom:0;height:336px;display:flex;align-items:center;"]),_Se=(0,Ge.default)(qe.default).withConfig({displayName:"account_created_image__Layer1Wrapper",componentId:"sc-1r4dj7n-3"})(["width:375px;height:336px;position:relative;"]),xSe=(0,Ge.default)(pu.default).attrs(()=>({source:mSe})).withConfig({displayName:"account_created_image__Layer1Image",componentId:"sc-1r4dj7n-4"})(["position:absolute;top:0;left:0;right:0;bottom:0;width:375px;height:336px;"]),ySe=(0,Ge.default)(Be.default).withConfig({displayName:"account_created_image__Label1",componentId:"sc-1r4dj7n-5"})(["font-size:16px;font-weight:600;position:absolute;top:93px;left:77px;"]),vSe=(0,Ge.default)(Be.default).withConfig({displayName:"account_created_image__Label2",componentId:"sc-1r4dj7n-6"})(["font-size:16px;font-weight:600;position:absolute;top:153px;left:130px;"]),bSe=(0,Ge.default)(Be.default).withConfig({displayName:"account_created_image__Label3",componentId:"sc-1r4dj7n-7"})(["font-size:16px;font-weight:600;position:absolute;top:213px;left:77px;"]),wSe=(0,Ge.default)(Be.default).withConfig({displayName:"account_created_image__Label4",componentId:"sc-1r4dj7n-8"})(["font-size:16px;font-weight:600;position:absolute;top:273px;left:130px;"]),CSe=e=>{let{children:t}=e,n=(0,A.default)(e,pSe);return(0,X.jsxs)(fSe,Object.assign({},n,{children:[(0,X.jsx)(gSe,{}),(0,X.jsx)(hSe,{children:(0,X.jsxs)(_Se,{children:[(0,X.jsx)(xSe,{}),(0,X.jsx)(ySe,{children:i18n.t("applicant_funnel.account_created.image_labels.1")}),(0,X.jsx)(vSe,{children:i18n.t("applicant_funnel.account_created.image_labels.2")}),(0,X.jsx)(bSe,{children:i18n.t("applicant_funnel.account_created.image_labels.3")}),(0,X.jsx)(wSe,{children:i18n.t("applicant_funnel.account_created.image_labels.4")})]})}),t]}))};CSe.propTypes={children:ze().node};
4049const jSe=CSe,ISe="recommendation",TSe="google_search",ESe="facebook_instagram",NSe="tiktok",kSe="ai_tool",RSe="radio",SSe="job_platforms",ASe="reddit",PSe="other_option",DSe={[ISe]:{children:null},[TSe]:{children:null},[ESe]:{children:null},[NSe]:{children:null},[kSe]:{children:null},[RSe]:{children:null},[SSe]:{children:null},[ASe]:{children:null},[PSe]:{children:null,freeText:!0,freeTextRequired:!0}};function MSe(e){return DSe[e]}const OSe=xt`
4050  mutation applicationProcessSubmitChannelSurvey($answer: String!) {
4051    applicationProcessSubmitChannelSurvey(answer: $answer) {
4052      success
4053    }
4054  }
4055`;var zSe=n(43880),LSe=n(31e3);const qSe=(0,Ge.default)(qe.default).withConfig({displayName:"success__Container",componentId:"sc-d8vdqd-0"})(["background:",";padding:8px 24px;gap:16px;"," align-items:center;justify-content:center;z-index:10;"],Qe.WHITE,e=>e.$minHeight&&`min-height: ${e.$minHeight}px;`),BSe=(0,Ge.default)(qe.default).withConfig({displayName:"success__Success",componentId:"sc-d8vdqd-1"})(["align-items:center;justify-content:center;"]),GSe=(0,Ge.default)(qe.default).withConfig({displayName:"success__CheckCircle",componentId:"sc-d8vdqd-2"})(["width:64px;height:64px;border-radius:40px;background:",";align-items:center;justify-content:center;"],Qe.GREEN_SUMMER_GRASS),USe=(0,Ge.default)(Be.default).withConfig({displayName:"success__SuccessText",componentId:"sc-d8vdqd-3"})(["color:",";margin-top:20px;font-size:18px;font-weight:600;text-align:center;"],Qe.GREEN_SUMMER_GRASS),$Se=()=>{const e=i18n.t("applicant_funnel.channel_survey.thankyou");return(0,X.jsx)(qSe,Object.assign({testID:"ChannelSurvey:Submitted"},(0,zSe.toAccessibilityProps)({role:LSe.ACCESSIBILITY_ROLE.alert,live:LSe.ACCESSIBILITY_LIVE.polite,label:e}),{children:(0,X.jsxs)(BSe,Object.assign({},(0,zSe.toAccessibilityProps)({hidden:!0}),{children:[(0,X.jsx)(GSe,{children:(0,X.jsx)(Pa.default,{name:"check",color:Qe.WHITE,size:50})}),(0,X.jsx)(USe,{children:e})]}))}))};var FSe=n(5912),HSe=n(82950);const WSe=(0,Ge.default)(ws.default).withConfig({displayName:"back_button__PressableContainer",componentId:"sc-1mzhf49-0"})(["",""],({isFocused:e})=>(0,HSe.getFocusedStyle)({isFocused:e,color:Qe.GREEN_GROWN_UP_GREEN,radius:24})),VSe=({handleBack:e})=>{const{isFocused:t,focusProps:n}=(0,FSe.default)();return(0,X.jsx)(WSe,Object.assign({testID:"ChannelSurvey:Back",onPress:e,isFocused:t},n,(0,zSe.toAccessibilityProps)({role:LSe.ACCESSIBILITY_ROLE.button,label:i18n.t("accessibility.button.back")}),{children:(0,X.jsx)(Pa.default,Object.assign({name:"chevron-left"},zSe.accessibilityHidden))}))};VSe.propTypes={handleBack:ze().func.isRequired};const KSe=VSe,YSe=(0,Ge.default)(ws.default).withConfig({displayName:"close_button__PressableContainer",componentId:"sc-cdscgm-0"})(["",""],({isFocused:e})=>(0,HSe.getFocusedStyle)({isFocused:e,color:Qe.GREEN_GROWN_UP_GREEN,radius:24})),XSe=({handleClose:e})=>{const{isFocused:t,focusProps:n}=(0,FSe.default)();return(0,X.jsx)(YSe,Object.assign({testID:"ChannelSurvey:Close",onPress:e,isFocused:t},n,(0,zSe.toAccessibilityProps)({role:LSe.ACCESSIBILITY_ROLE.button,label:i18n.t("accessibility.button.close_modal.label")}),{children:(0,X.jsx)(Pa.default,Object.assign({name:"close"},zSe.accessibilityHidden))}))};XSe.propTypes={handleClose:ze().func.isRequired};const ZSe=XSe,QSe=(0,Ge.default)(Vf.default).withConfig({displayName:"survey__ScrollWrapper",componentId:"sc-7vmy7a-0"})([""]),JSe=(0,Ge.default)(lm).withConfig({displayName:"survey__ModalContentWrapper",componentId:"sc-7vmy7a-1"})(["max-width:380px;width:100%;"]),eAe=(0,Ge.default)(lm).withConfig({displayName:"survey__ModalContent",componentId:"sc-7vmy7a-2"})(["padding:12px;"]),tAe=Ge.default.View.withConfig({displayName:"survey__Header",componentId:"sc-7vmy7a-3"})(["flex-direction:row;justify-content:space-between;align-items:center;"]),nAe=(0,Ge.default)(Be.default).withConfig({displayName:"survey__Title",componentId:"sc-7vmy7a-4"})(["font-size:16px;font-weight:600;text-align:center;"]),iAe=(0,Ge.default)(Be.default).withConfig({displayName:"survey__BodySmall",componentId:"sc-7vmy7a-5"})(["flex:1;text-align:center;"]),oAe=Ge.default.View.withConfig({displayName:"survey__Container",componentId:"sc-7vmy7a-6"})(["width:100%;max-width:340px;margin:0 auto;padding:16px 0px;
4055gap:12px;"]),aAe=Ge.default.View.withConfig({displayName:"survey__Content",componentId:"sc-7vmy7a-7"})(["gap:4px;"]),sAe=Ge.default.View.withConfig({displayName:"survey__Footer",componentId:"sc-7vmy7a-8"})(["width:100%;max-width:340px;margin:0 auto;gap:12px;"]),rAe=Ge.default.View.withConfig({displayName:"survey__HiddenBackButton",componentId:"sc-7vmy7a-9"})(["width:24px;"]),lAe=()=>{const{autoTrackEnhanced:e}=mt(),t=ft(),n=(0,K.useMemo)(()=>{const t=Object.keys(DSe).filter(e=>e!==PSe),n=[...(0,er.shuffle)(t),PSe];return e({userFlow:qa,action:Xa.view,objectName:"Channels",properties:{shuffledChannels:n}}),n},[e]),[i,{loading:o}]=(0,js.useMutation)(OSe,{onCompleted:()=>{}}),[a,s]=(0,K.useState)(!0),[r,l]=(0,K.useState)(null),[d,c]=(0,K.useState)(""),[u,p]=(0,K.useState)(!1),[m,f]=(0,K.useState)(!1),[g,h]=(r||"").split(".");const _=MSe(g),x=(null===_||void 0===_?void 0:_.children)&&m,y=(null===_||void 0===_?void 0:_.freeText)&&m,v=!x&&!y,b=(x||y)&&!u,w=u,C=null===_||void 0===_||!_.freeTextRequired||!!d.replace(/\s/g,""),j=v&&!g||x&&!h||y&&!C||o,I=(0,K.useCallback)(async({value:e})=>{var t;const n=y?`${e}: ${d}`:e,{data:o}=await i({variables:{answer:n},context:{apiVersion:3}});return(null===o||void 0===o||null===(t=o.applicationProcessSubmitChannelSurvey)||void 0===t?void 0:t.success)??!1},[r,d,y]),T=async({value:t,submit:n=!1})=>{const i=MSe(t);l(t);if(await I({value:t})){if(e(n?{userFlow:qa,action:Xa.click,objectName:"Submit Channel on Channel Survey",properties:{value:t}}:{userFlow:qa,action:Xa.selected,objectName:"Channel on Channel Survey",properties:{value:t}}),!(null!==i&&void 0!==i&&i.children||null!==i&&void 0!==i&&i.freeText)||m)return!0;f(!0)}},E=()=>{e({userFlow:qa,action:Xa.click,objectName:"Cancel Button on Channel Survey"}),s(!1)},N=(0,K.useId)(),k=`${N}title`,R=`${N}question`,S=`${N}label`,A=v||w?i18n.t("applicant_funnel.channel_survey.title"):i18n.t(`applicant_funnel.channel_survey.options.${g}.name`),P=v?i18n.t("applicant_funnel.channel_survey.question.initial"):i18n.t("applicant_funnel.channel_survey.question.followup"),D=x?null===_||void 0===_?void 0:_.children:n;w||(0,zSe.toAccessibilityProps)({role:LSe.ACCESSIBILITY_ROLE.form,labelledBy:k}),y||(0,zSe.toAccessibilityProps)({role:LSe.ACCESSIBILITY_ROLE.radiogroup,labelledBy:R});return(0,X.jsx)(gs,{isVisible:a,onBackdropPress:()=>{s(!1),e({userFlow:qa,action:Xa.close,objectName:"Channel Survey Modal"})},style:{margin:24},children:(0,X.jsx)(QSe,{contentContainerStyle:{flexGrow:1,justifyContent:"center",alignItems:"center"},children:(0,X.jsx)(JSe,{children:(0,X.jsxs)(eAe,{children:[(0,X.jsxs)(tAe,{children:[b?(0,X.jsx)(KSe,{handleBack:()=>{e({userFlow:qa,action:Xa.click,objectName:"Back Button on Channel Survey"}),l(g),f(!1)}}):(0,X.jsx)(rAe,{}),(0,X.jsx)(iAe,{id:k,children:A}),(0,X.jsx)(ZSe,{handleClose:E})]}),w?(0,X.jsx)(oAe,{children:(0,X.jsx)($Se,{})}):(0,X.jsxs)(oAe,{children:[(0,X.jsx)(nAe,{id:R,style:{textAlign:"center"},children:P}),y?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(iAe,{id:S,children:i18n.t("applicant_funnel.channel_survey.freetext.label")}),(0,X.jsx)(yfe.default,Object.assign({maxLength:2e3,numberOfLines:5,testID:"ChannelSurvey:ChannelInput",value:d,onChangeText:e=>{!d&&e&&t({userFlow:qa,action:Xa.input,objectName:"Free Text on Channel Survey"}),c(e)},autoFocus:!0,multiline:!0},(0,zSe.toAccessibilityProps)({labelledBy:S})))]}):(0,X.jsx)(aAe,{children:(0,X.jsx)(Vq,{items:D.map(e=>({id:e,value:i18n.t(`applicant_funnel.channel_survey.options.${e}.name`)})),selected:r,onSelected:async({id:e})=>{T({value:e})},testIDPrefix:"ChannelSurvey:ChannelPicker",color:"#C8C2BB",selectedColor:Qe.GREEN_SUMMER_GRASS})})]}),w?null:(0,X.jsxs)(sAe,{children:[(0,X.jsx)(ms,{testID:"ChannelSurvey:Send",stretched:!0,disabled:j,onPress:()=>(async({value:e})=>{T({value:e,submit:!0})&&(p(!0),setTimeout(()=>{s(!1)},2e3))})({value:r}),children:i18n.t("common.submit")}),(0,X.jsx)(ms,{testID:"ChannelSurvey:CloseButton",stretched:!0,variant:"secondary",onPress:E,children:i18n.t("common.close")})]})]})})})})},dAe=(0,Ge.default)(qe.default).withConfig({displayName:"account_created__Container",componentId:"sc-16d7oz9-0"})(["flex:1;padding-bottom:","px;"],({theme:e})=>e.insets.bottom),cAe=(0,Ge.default)(qe.default).withConfig({displayName:"account_created__ContentContainer",componentId:"sc-16d7oz9-1"}
4055)(["height:50%;background:",";padding:48px 16px 0 16px;align-items:center;"],Qe.WHITE),uAe=(0,Ge.default)(qe.default).withConfig({displayName:"account_created__Content",componentId:"sc-16d7oz9-2"})(["flex:1;"]),pAe=(0,Ge.default)(Be.default).withConfig({displayName:"account_created__HeaderText",componentId:"sc-16d7oz9-3"})(["font-size:24px;font-weight:900;margin-bottom:16px;text-align:center;"]),mAe=(0,Ge.default)(Be.default).withConfig({displayName:"account_created__ContentText",componentId:"sc-16d7oz9-4"})(["font-size:16px;font-weight:400;line-height:24px;text-align:center;"]),fAe=(0,Ge.default)(qe.default).withConfig({displayName:"account_created__ButtonContainer",componentId:"sc-16d7oz9-5"})(["width:100%;padding-top:16px;"]),gAe=()=>{const e=lu(),{session:{refresh:t},toast:{showToastMessage:n}}=lt(),{autoTrackEnhanced:i}=mt(),{setDefaults:o,success:a}=(e=>{var t,n;const[i,{data:o,loading:a}]=(0,js.useMutation)(Xke,Object.assign({},e,{context:Object.assign({},(null===e||void 0===e?void 0:e.context)||{},{apiVersion:3})}));return{setDefaults:()=>i().then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessSetDefaults}),success:null===o||void 0===o||null===(t=o.applicationProcessSetDefaults)||void 0===t?void 0:t.success,errors:null===o||void 0===o||null===(n=o.applicationProcessSetDefaults)||void 0===n?void 0:n.errors,loading:a}})(),[s,r]=(0,K.useState)(!1),l=(0,K.useCallback)(()=>{i({userFlow:qa,action:Xa.click,objectName:"Next",properties:{step:Eo}}),e(wi())},[e]);return(0,K.useEffect)(()=>{(async()=>{try{r(!0),await o(),await t()}catch{n({message:i18n.t("provider.generic.error")})}finally{r(!1)}})()},[]),(0,X.jsxs)(dAe,{testID:`FunnelStep:${Eo}`,children:[(0,X.jsx)(jSe,{}),(0,X.jsxs)(cAe,{children:[(0,X.jsxs)(uAe,{children:[(0,X.jsx)(pAe,{children:i18n.t("applicant_funnel.account_created.step_title")}),(0,X.jsx)(mAe,{children:i18n.t("applicant_funnel.account_created.description")})]}),(0,X.jsx)(fAe,{children:(0,X.jsx)(RN,{onPress:l,loading:s||!a,disabled:s||!a,children:i18n.t("shared.cta_labels.continue")})})]}),(0,X.jsx)(lAe,{})]})},hAe=(0,Ge.default)(Be.default).withConfig({displayName:"mobile_verification__StepDescription",componentId:"sc-6dl9gf-0"})(["color:",";font-weight:600;line-height:19px;margin-top:16px;"],Qe.TEXT_DARK),_Ae=(0,Ge.default)(qe.default).withConfig({displayName:"mobile_verification__FormContainer",componentId:"sc-6dl9gf-1"})(["flex:1;margin-top:16px;"]),xAe=(0,Ge.default)(Be.default).withConfig({displayName:"mobile_verification__Cell",componentId:"sc-6dl9gf-2"})(["border:1px solid ",";border-radius:4px;padding-top:18px;width:74px;height:67px;font-size:22px;text-align:center;"],({$focused:e,$error:t})=>t?Qe.CRIMSON_2:e?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER),yAe=(0,Ge.default)(Be.default).withConfig({displayName:"mobile_verification__ErrorText",componentId:"sc-6dl9gf-3"})(["color:#a9454b;font-size:12px;flex-wrap:wrap;flex-shrink:1;margin-top:4px;"]),vAe=(0,Ge.default)(Be.default).withConfig({displayName:"mobile_verification__ResendCode",componentId:"sc-6dl9gf-4"})(["color:",";margin-top:16px;"],Qe.GREEN_SUMMER_GRASS),bAe=()=>{const{toast:{showToastMessage:e}}=lt(),{autoTrackEnhanced:t}=mt(),n=ft(),{goToNextStep:i}=oke(),[o,a]=(0,K.useState)(""),{mobileVerificationCodeRequest:s,loading:r}=aSe(),{verifyMobile:l,loading:d}=(()=>{var e,t;const[n,{data:i,loading:o}]=(0,js.useMutation)(rSe,{context:{apiVersion:3}});return{verifyMobile:e=>n({variables:{code:e}}).then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.applicationProcessVerifyMobile}),success:null===i||void 0===i||null===(e=i.applicationProcessVerifyMobile)||void 0===e?void 0:e.success,errors:null===i||void 0===i||null===(t=i.applicationProcessVerifyMobile)||void 0===t?void 0:t.errors,loading:o}})(),[c,u]=(0,K.useState)(null),[p,m]=(0,K.useState)(!0),f=(0,K.useCallback)(e=>{u(null),Number.isInteger(Number(e))&&(a(e),n({userFlow:qa,action:Xa.input,objectName:"code",properties:{step:To}}))},[a,u]),g=(0,K.useCallback)(()=>{t({userFlow:qa,action:Xa.click,objectName:"Resend code",properties:{step:To}}),u(null),a(""),s().then(()=>{m(!1),e({type:"success",message:i18n.t("applicant_funnel.mobile_verification.success_code_sent")})}).catch(t=>{e({message:i18n.t("provider.generic.error")})})},[]),h=(0,K.useCallback)(async()=>{t({userFlow:qa,action:Xa.click,objectName:"Next",properties:{step:To}}),l(o).then(({success:e,errors:t})=>{if(e)i();else{const e=cRe("code",t)||i18n.t("applicant_funnel.mobile_verification.errors.wrong_verification_code");u(e)}}).catch(()=>e({message:i18n.t("provider.generic.error")}))}
4055,[o]);return(0,X.jsxs)(Vke,{title:i18n.t("applicant_funnel.mobile_verification.step_title"),testID:`FunnelStep:${To}`,children:[(0,X.jsx)(hAe,{children:i18n.t("applicant_funnel.mobile_verification.step_description")}),(0,X.jsxs)(_Ae,{children:[(0,X.jsx)(rRe.CodeField,{autoFocus:!0,value:o,testID:"MobileVerificationFormInput:code",onChangeText:f,cellCount:4,rootStyle:{marginTop:16},keyboardType:"number-pad",renderCell:({index:e,symbol:t,isFocused:n})=>(0,X.jsx)(xAe,{$focused:n,$error:c,children:t},e)}),c&&(0,X.jsx)(yAe,{children:c}),p&&(0,X.jsx)(Da.default,{onPress:g,disabled:r,children:(0,X.jsx)(vAe,{children:i18n.t("applicant_funnel.mobile_verification.actions.resend_code")})})]}),(0,X.jsx)(RN,{onPress:h,loading:d,disabled:r||d||o.length<4})]})},wAe={[vo]:Rke,[bo]:sRe,[wo]:xRe,[Co]:VRe,[jo]:iSe,[Io]:uSe,[To]:bAe,[Eo]:gAe},CAe=(0,Ge.default)(Aa.default).attrs({color:Qe.GREEN_SUMMER_GRASS}).withConfig({displayName:"entry__Spinner",componentId:"sc-a8zl5s-0"})(["margin-top:100px;"]),jAe=()=>{const{step:e}=(0,Ks.useParams)(),{session:{isSignedIn:t,isSigningOut:n,settings:i},apply:{personalDetails:{setReferralCode:o}}}=lt(),a=(null===i||void 0===i?void 0:i.applicationProcess)||{},{enabled:s,redirectToDashboard:r,redirectUrl:l}=a,d=hO().get("referral_code"),c=(e=>wAe[e])(e);return(0,K.useEffect)(()=>{d&&o(d)},[d]),(0,K.useEffect)(()=>{l&&window.location.replace(l)},[l]),s?n?(0,X.jsx)(CAe,{}):!e||!t&&No.includes(e)?(0,X.jsx)(Ks.Redirect,{to:Yi(vo)}):r?(0,X.jsx)(Ks.Redirect,{to:wi()}):c?(0,X.jsx)(c,{}):null:null},IAe=(0,Ge.default)(ws.default).withConfig({displayName:"action_card__Card",componentId:"sc-7sv3fw-0"})(["background-color:",";border:1px solid ",";border-radius:8px;margin:8px 10px 0px 10px;padding:22px;"," ",""],({active:e})=>e?Qe.GREEN_WINTER_MIST:Qe.WHITE,({active:e})=>e?Qe.GREEN_SAGE_TEA:Qe.GRAY_BORDER,({theme:e})=>e.isDesktop?"width: 500px;":"align-self: stretch;","box-shadow: 0 2px 15px rgba(68, 68, 79, 0.14);"),TAe=(0,Ge.default)(qe.default).withConfig({displayName:"action_card__Row",componentId:"sc-7sv3fw-1"})(["flex-direction:row;align-items:center;margin-top:","px;"],({$marginTop:e})=>e||0),EAe=(0,Ge.default)(qe.default).withConfig({displayName:"action_card__IconWrapper",componentId:"sc-7sv3fw-2"})(["width:34px;height:34px;justify-content:center;align-items:center;background-color:",";border-radius:50px;"],Qe.GREEN_FROSTY_GREEN),NAe=(0,Ge.default)(qe.default).withConfig({displayName:"action_card__WhiteCircle",componentId:"sc-7sv3fw-3"})(["width:40px;height:40px;justify-content:center;align-items:center;background-color:",";border-radius:50px;margin-right:15px;"],Qe.WHITE),kAe=(0,Ge.default)(Be.default).withConfig({displayName:"action_card__Title",componentId:"sc-7sv3fw-4"})(["font-size:15px;font-weight:600;line-height:19px;color:",";"],Qe.TEXT_DARK),RAe=(0,Ge.default)(Be.default).withConfig({displayName:"action_card__Description",componentId:"sc-7sv3fw-5"})(["font-size:14px;line-height:21px;flex:3;flex-wrap:wrap;color:",";"],Qe.TEXT_MEDIUM),SAe=(0,Ge.default)(Pa.default).attrs({name:"chevron-right",size:26,color:Qe.TEXT_MEDIUM}).withConfig({displayName:"action_card__ArrowIcon",componentId:"sc-7sv3fw-6"})([""]),AAe=(0,Ge.default)(qe.default).withConfig({displayName:"action_card__ArrrowIconWrapper",componentId:"sc-7sv3fw-7"})(["flex:1;align-items:flex-end;"]),PAe=({icon:e,title:t,description:n,onPress:i,active:o})=>(0,X.jsxs)(IAe,{onPress:i,active:o,children:[(0,X.jsxs)(TAe,{children:[(0,X.jsx)(NAe,{children:(0,X.jsx)(EAe,{children:e})}),(0,X.jsx)(kAe,{children:t})]}),(0,X.jsxs)(TAe,{$marginTop:8,children:[(0,X.jsx)(RAe,{children:n}),(0,X.jsx)(AAe,{children:(0,X.jsx)(SAe,{})})]})]});const DAe=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M10.002 5.988v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",stroke:"#406B60",strokeWidth:1.12523,strokeLinecap:"round",strokeLinejoin:"round"})}))};const MAe=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M19.002 12.258a23.933 23.933 0 01-9 1.744c-3.182 0-6.22-.62-9-1.744m13-7.256v-2a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01m-7.01 8h14a2 2 0 002-2v-10a2 2 0 00-2-2h-14a2 2 0 00-2 2v10a2 2 0 002 2z",stroke:"#406B60",strokeWidth:1.12523,strokeLinecap:"round",strokeLinejoin:"round"})}))};const OAe=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:17,height:20,viewBox:"0 0 17 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M3.995 9.497v2.5m0-2.5v-6a1.5 1.5 0 113 0m-3 6a1.5 1.5 0 10-3 0v2a7.5 7.5 0 0015 0v-5a1.5 1.5 0 00-3 0m-6-3v5.5m0-5.5v-1a1.5 1.5 0 113 0v1m0 0v5.5m0-5.5a1.5 1.5 0 113 0v3m0 0v2.5",stroke:"#406B60",strokeWidth:1.12523,strokeLinecap:"round",strokeLinejoin:"round"})}))};const zAe=function(e){return(0,X.jsx)(Wu.default,Object.assign({width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:(0,X.jsx)(Wu.Path,{d:"M7.003 17.009l-5.448-2.724a1 1 0 01-.552-.894V2.627a1 1 0 011.447-.895L7.003 4.01m0 13l6-3m-6 3v-13m6 10l4.552 2.276a1 1 0 001.448-.894V4.627a1 1 0 00-.553-.895L13.003 1.01m0 13v-13m0 0l-6 3",stroke:"#406B60",strokeWidth:1.12523,strokeLinecap:"round",strokeLinejoin:"round"})}))},LAe=(0,Ge.default)(Vf.default).withConfig({displayName:"keep_profile_updated__ScrollView",componentId:"sc-1pfgzuv-0"})(["background-color:",";margin-bottom:40px;"],({theme:e})=>e.isDesktop?Qe.WHITE:Qe.GRAY_4),qAe=(0,Ge.default)(qe.default).withConfig({displayName:"keep_profile_updated__Section",componentId:"sc-1pfgzuv-1"})(["background-color:",";padding:16px 16px 16px 16px;margin-top:","px;"],Qe.WHITE,({$marginTop:e})=>e||0),BAe=(0,Ge.default)(Be.default).withConfig({displayName:"keep_profile_updated__SectionTitle",componentId:"sc-1pfgzuv-2"})(["font-size:14px;line-height:21px;font-weight:600;color:",";"],Qe.TEXT_DARK),GAe=()=>{const e=lu(),{autoTrack:t}=mt(),n=(0,K.useCallback)(()=>{t("User clicked on my working hours card","on keep your profile up to date page"),e("/provider/wor
4055king_hours")},[e,t]),i=(0,K.useCallback)(()=>{t("User clicked on my current status card","on keep your profile up to date page"),e("/provider/work_status")},[e,t]),o=(0,K.useCallback)(()=>{t("User clicked on holidays card","on keep your profile up to date page"),e("/provider/holidays")},[e,t]),a=(0,K.useCallback)(()=>{t("User clicked on working area card","on keep your profile up to date page"),e("/provider/work_location")},[e,t]),s=(0,K.useCallback)(()=>{t("User clicked on my customers card","on keep your profile up to date page"),e("/provider/customers")},[e,t]);return(0,X.jsxs)(LAe,{children:[(0,X.jsxs)(qAe,{children:[(0,X.jsx)(BAe,{children:i18n.t("keep_profile_up_to_date.sections.set_availability.title")}),(0,X.jsx)(PAe,{active:!0,icon:(0,X.jsx)(DAe,{}),title:i18n.t("keep_profile_up_to_date.action_cards.working_hours.title"),description:i18n.t("keep_profile_up_to_date.action_cards.working_hours.description"),onPress:n})]}),(0,X.jsxs)(qAe,{$marginTop:8,children:[(0,X.jsx)(BAe,{children:i18n.t("keep_profile_up_to_date.sections.update_profile.title")}),(0,X.jsx)(PAe,{active:!0,icon:(0,X.jsx)(MAe,{}),title:i18n.t("keep_profile_up_to_date.action_cards.current_status.title"),description:i18n.t("keep_profile_up_to_date.action_cards.current_status.description"),onPress:i}),(0,X.jsx)(PAe,{icon:(0,X.jsx)(OAe,{}),title:i18n.t("keep_profile_up_to_date.action_cards.holidays.title"),description:i18n.t("keep_profile_up_to_date.action_cards.holidays.description"),onPress:o}),(0,X.jsx)(PAe,{icon:(0,X.jsx)(zAe,{}),title:i18n.t("keep_profile_up_to_date.action_cards.working_area.title"),description:i18n.t("keep_profile_up_to_date.action_cards.working_area.description"),onPress:a}),(0,X.jsx)(PAe,{icon:(0,X.jsx)(P$,{}),title:i18n.t("keep_profile_up_to_date.action_cards.my_customers.title"),description:i18n.t("keep_profile_up_to_date.action_cards.my_customers.description"),onPress:s})]})]})},UAe=()=>(0,X.jsx)(Rf,{title:"Keep your profile up to date",content:()=>(0,X.jsx)(GAe,{}),noContentMargin:!0});var $Ae=n(74259);const FAe=(0,Ge.default)($Ae.Image).attrs({source:n(17700),contentFit:"cover"}).withConfig({displayName:"landing_fee__LandingImage",componentId:"sc-b8jreg-0"})(["width:100%;height:200px;border-radius:8px;"]),HAe=(0,Ge.default)(Pa.default).attrs({name:"check",size:20,color:Qe.GREEN_GROWN_UP_GREEN}).withConfig({displayName:"landing_fee__CheckIcon",componentId:"sc-b8jreg-1"})(["margin-right:16px;"]),WAe=(0,Ge.default)(Be.default).withConfig({displayName:"landing_fee__Title",componentId:"sc-b8jreg-2"})(["font-size:16px;font-weight:700;margin-bottom:16px;margin-top:24px;color:",";"],Qe.TEXT_DARK),VAe=(0,Ge.default)(Be.default).withConfig({displayName:"landing_fee__Description",componentId:"sc-b8jreg-3"})(["font-size:14px;line-height:19px;color:",";"],Qe.TEXT_DARK),KAe=(0,Ge.default)(qe.default).withConfig({displayName:"landing_fee__CheckListContainer",componentId:"sc-b8jreg-4"})(["border:0px solid ",";border-top-width:1px;margin-top:24px;padding:24px 0px;"],Qe.GRAY_4),YAe=(0,Ge.default)(qe.default).withConfig({displayName:"landing_fee__CheckListItem",componentId:"sc-b8jreg-5"})(["flex-direction:row;padding:3px 5px;margin-bottom:16px;"]),XAe=(0,Ge.default)(Be.default).withConfig({displayName:"landing_fee__CheckListItemText",componentId:"sc-b8jreg-6"})(["font-size:14px;color:",";line-height:19px;"],Qe.TEXT_DARK),ZAe=()=>{const{session:{currentUser:e}}=lt(),t=fh((null===e||void 0===e?void 0:e.registrationFeeAmount)||0,{withSymbol:!0});return(0,X.jsxs)(qe.default,{children:[(0,X.jsx)(FAe,{}),(0,X.jsx)(WAe,{children:i18n.t("pay_registration_fee.landing_fee.title")}),(0,X.jsx)(VAe,{children:i18n.t("pay_registration_fee.landing_fee.description",{amount:t})}),(0,X.jsxs)(KAe,{children:[(0,X.jsxs)(YAe,{children:[(0,X.jsx)(HAe,{}),(0,X.jsxs)(XAe,{children:[i18n.t("pay_registration_fee.landing_fee.checklist.find_customers")," "]})]}),(0,X.jsxs)(YAe,{children:[(0,X.jsx)(HAe,{}),(0,X.jsx)(XAe,{children:i18n.t("pay_registration_fee.landing_fee.checklist.set_rate")})]}),(0,X.jsxs)(YAe,{children:[(0,X.jsx)(HAe,{}),(0,X.jsx)(XAe,{children:i18n.t("pay_registration_fee.landing_fee.checklist.support")})]})]})]})},QAe=(0,Ge.default)(qe.default).withConfig({displayName:"mobileweb__Stretch",componentId:"sc-1mxss7a-0"})(["flex-grow:1;"]),JAe=(0,Ge.default)(ms).withConfig({displayName:"mobileweb__PayButton",componentId:"sc-1mxss7a-1"})(["margin-bottom:24px;"]),ePe=()=>{const e=lu(),t=(0,K.useCallback)(()=>{e("/provider/pay_registration_fee/form")},[e]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(QAe,{children:(0,X.jsx)(ZAe,{})}),(0,X.jsx)(qe.default,{children:(0,X.jsx)(JAe,{testID:"PayRegistrationFee:ContinueButton",centered:!0,onPress:t,trackingUserFlow:qa,trackingObjectName:"Continue",trackingProperties:{step:Nc,requirement:Nc},children:i18n.t("pay_registration_fee.actions.continue")})})]})};var tPe=n(96762),nPe=n(88254);const iPe=(0,K.createContext)(null),oPe=()=>{if(!iPe)throw new Error("useStripeData must be used within a StripeDataContextProvider");return(0,K.useContext)(iPe)},aPe=iPe.Provider,sPe=({children:e,stripeClientSecret:t,stripePublicKey:n,billingDetails:i}
4055)=>{const{session:{locale:o}}=lt(),a=(0,K.useMemo)(()=>n?(0,nPe.loadStripe)(n):null,[n]),s=(0,K.useMemo)(()=>({clientSecret:t,locale:o}),[t,o]),r={layout:{type:"tabs"},fields:{billingDetails:{email:"never",address:{line1:"never",line2:"never",postalCode:"never",city:"never",country:"never",state:"never"}}},wallets:{applePay:"never",googlePay:"never"}};return a&&t?(0,X.jsx)(aPe,{value:{stripeClientSecret:t,billingDetails:i,options:r},children:(0,X.jsx)(tPe.Elements,{stripe:a,options:s,children:e})}):(0,X.jsx)(Aa.default,{})},rPe=_t.gql`
4056  mutation createProviderRegistrationFeePaymentIntent {
4057    createProviderRegistrationFeePaymentIntent {
4058      clientSecret
4059      success
4060    }
4061  }
4062`,lPe=e=>()=>{const{session:{currentUser:t}}=lt(),[n,i]=(0,K.useState)(null),o=null===t||void 0===t?void 0:t.stripePublicKey,a=null===t||void 0===t?void 0:t.paymentBillingDetails,{createRegistrationFeePaymentIntent:s}=(()=>{var e;const[t,{data:n,loading:i}]=(0,js.useMutation)(rPe);return{createRegistrationFeePaymentIntent:(0,K.useCallback)(()=>t().then(e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.createProviderRegistrationFeePaymentIntent}),[]),success:null===n||void 0===n||null===(e=n.createProviderRegistrationFeePaymentIntent)||void 0===e?void 0:e.success,loading:i}})(),r=(0,K.useCallback)(async()=>{const{success:e,clientSecret:t}=await s();e&&i(t)},[s,i]);return(0,K.useEffect)(()=>{r()},[r]),n?(0,X.jsx)(sPe,{stripeClientSecret:n,stripePublicKey:o,billingDetails:a,children:(0,X.jsx)(e,{})}):(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS})},dPe=()=>{const{options:e}=oPe();return(0,X.jsx)(tPe.PaymentElement,{options:e})},cPe={onSuccess:()=>{},onError:()=>{}},uPe=({onSuccess:e,onError:t}=cPe)=>{const n=(0,tPe.useStripe)(),i=(0,tPe.useElements)(),{billingDetails:o}=oPe(),[a,s]=(0,K.useState)(!1),r=(0,K.useCallback)(async()=>{if(n)try{s(!0);const{error:a}=await n.confirmPayment({elements:i,confirmParams:{payment_method_data:{billing_details:o}},redirect:"if_required"});a?t(a):e()}catch(ca){console.log(ca),t(ca)}finally{s(!1)}},[n,i,e,t]);return{loading:a,handleSubmit:r}},pPe=(0,Ge.default)(qe.default).withConfig({displayName:"desktop__Container",componentId:"sc-167bid-0"})(["flex-direction:row;flex:1;margin-top:-32px;"]),mPe=(0,Ge.default)(Be.default).withConfig({displayName:"desktop__Title",componentId:"sc-167bid-1"})(["font-size:18px;font-weight:700;line-height:20px;margin-bottom:24px;color:",";"],Qe.TEXT_DARK),fPe=(0,Ge.default)(qe.default).withConfig({displayName:"desktop__LandingFeeContainer",componentId:"sc-167bid-2"})(["align-self:flex-end;max-width:400px;margin-right:100px;"]),gPe=(0,Ge.default)(qe.default).withConfig({displayName:"desktop__PaymentElementContainer",componentId:"sc-167bid-3"})(["background-color:",";align-self:flex-start;padding:32px;border-radius:10px;margin-left:100px;"],Qe.WHITE),hPe=(0,Ge.default)(qe.default).withConfig({displayName:"desktop__LeftContainer",componentId:"sc-167bid-4"})(["flex:1;padding-top:48px;background-color:",";"],Qe.WHITE),_Pe=(0,Ge.default)(qe.default).withConfig({displayName:"desktop__RightContainer",componentId:"sc-167bid-5"})(["flex:1;padding-top:48px;background-color:",";"],Qe.GREEN_WINTER_MIST),xPe=(0,Ge.default)(ms).withConfig({displayName:"desktop__PayButton",componentId:"sc-167bid-6"})(["margin-top:24px;"]),yPe=lPe(()=>{const{session:{currentUser:e,setRegistrationFeePaid:t},toast:{showToastMessage:n}}=lt(),{autoTrackEnhanced:i}=mt(),o=lu(),a=fh((null===e||void 0===e?void 0:e.registrationFeeAmount)||0,{withSymbol:!0}),s=(0,K.useCallback)(()=>{t(),i({userFlow:null!==e&&void 0!==e&&e.onboarded?Ba:qa,action:Xa.complete,objectName:"Registration fee Payment",properties:e.onboarded?{}:{requirement:Nc}}),o(wi()),n({message:i18n.t("onboarding_dashboard.notifications.actioned_requirement.registration_fee"),type:"success"})},[o]),r=(0,K.useCallback)(()=>{n({message:i18n.t("pay_registration_fee.errors.payment_failed")})},[n]),{handleSubmit:l,loading:d}=uPe({onSuccess:s,onError:r});return(0,X.jsx)(X.Fragment,{children:(0,X.jsxs)(pPe,{children:[(0,X.jsx)(hPe,{children:(0,X.jsx)(fPe,{children:(0,X.jsx)(ZAe,{})})}),(0,X.jsx)(_Pe,{children:(0,X.jsxs)(gPe,{children:[(0,X.jsx)(mPe,{children:i18n.t("pay_registration_fee_form.t
4062itle")}),(0,X.jsx)(dPe,{}),(0,X.jsx)(xPe,{onPress:l,disabled:d,loading:d,centered:!0,trackingUserFlow:qa,trackingObjectName:"Continue",trackingProperties:{step:Nc,requirement:Nc},children:i18n.t("pay_registration_fee.actions.pay",{amount:a})})]})})]})})}),vPe=()=>{const{session:{currentUser:e}}=lt(),t=null===e||void 0===e?void 0:e.onboarded,{status:n,loading:i}=F8(Nc),{isDesktop:o}=uu(),a=o?yPe:ePe;return i?(0,X.jsx)(Rf,{title:i18n.t("pay_registration_fee.page_title"),content:()=>(0,X.jsx)(Aa.default,{color:Qe.GREEN_SUMMER_GRASS}),centeredContent:!o,noContentMargin:o,noContentBorderRadius:o,contentContainerStyle:{flexGrow:1}}):t||[_c,mc,hc].includes(n)?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(Rf,{title:i18n.t("pay_registration_fee.page_title"),content:()=>(0,X.jsx)(a,{}),centeredContent:!o,noContentMargin:o,noContentBorderRadius:o,contentContainerStyle:{flexGrow:1}})},bPe=(0,Ge.default)(Be.default).withConfig({displayName:"fee_payment_form__Title",componentId:"sc-141s8cb-0"})(["font-size:15px;font-weight:700;line-height:20px;margin-bottom:24px;color:",";"],Qe.TEXT_DARK),wPe=(0,Ge.default)(qe.default).withConfig({displayName:"fee_payment_form__Stretch",componentId:"sc-141s8cb-1"})(["flex-grow:1;"]),CPe=(0,Ge.default)(ms).withConfig({displayName:"fee_payment_form__PayButton",componentId:"sc-141s8cb-2"})(["margin-bottom:24px;"]),jPe=lPe(()=>{const{session:{currentUser:e,setRegistrationFeePaid:t},analytics:{autoTrackEnhanced:n},toast:{showToastMessage:i}}=lt(),o=lu(),a=fh((null===e||void 0===e?void 0:e.registrationFeeAmount)||0,{withSymbol:!0}),s=(0,K.useCallback)(()=>{t(),n({userFlow:null!==e&&void 0!==e&&e.onboarded?Ba:qa,action:Xa.complete,objectName:"Registration fee Payment",properties:e.onboarded?{}:{requirement:Nc}}),o(wi()),i({message:i18n.t("onboarding_dashboard.notifications.actioned_requirement.registration_fee"),type:"success"})},[o]),r=(0,K.useCallback)(()=>{i({message:i18n.t("pay_registration_fee.errors.payment_failed")})},[i]),{handleSubmit:l,loading:d}=uPe({onSuccess:s,onError:r});return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(wPe,{children:[(0,X.jsx)(bPe,{children:i18n.t("pay_registration_fee_form.title")}),(0,X.jsx)(dPe,{})]}),(0,X.jsx)(CPe,{testID:"PayRegistrationFee:PayButton",onPress:l,disabled:d,loading:d,centered:!0,trackingUserFlow:qa,trackingObjectName:"Pay",trackingProperties:{step:Nc,requirement:Nc},children:i18n.t("pay_registration_fee.actions.pay",{amount:a})})]})}),IPe=()=>{const{session:{currentUser:e}}=lt(),t=null===e||void 0===e?void 0:e.onboarded,{status:n,loading:i}=F8(Nc);return i?(0,X.jsx)(Rf,{title:i18n.t("pay_registration_fee.page_title"),content:()=>(0,X.jsx)(Aa.default,{})}):t||[_c,mc,hc].includes(n)?(0,X.jsx)(Ks.Redirect,{to:wi()}):(0,X.jsx)(Rf,{title:i18n.t("pay_registration_fee.page_title"),content:()=>(0,X.jsx)(jPe,{}),contentContainerStyle:{flexGrow:1}})},TPe=(0,Ge.default)(qe.default).withConfig({displayName:"onfido_container__Container",componentId:"sc-10e2rrw-0"})(["width:100%;height:100%;align-items:center;justify-content:center;"]),EPe=(0,Ge.default)(ws.default).withConfig({displayName:"onfido_container__BackButton",componentId:"sc-10e2rrw-1"})(["padding:10px 10px 0px 16px;"]),NPe=(0,Ge.default)(Pa.default).attrs({name:"arrow-back-ios",set:Pa.SETS.MATERIAL_ICONS,size:22,color:Qe.TEXT_DARK}).withConfig({displayName:"onfido_container__ArrowBackIcon",componentId:"sc-10e2rrw-2"})([""]),kPe=e=>"IFRAME"===e.nodeName&&"onfido-welcome"===e.name,RPe=()=>{const[e,t]=(0,K.useState)(!1),n=(0,K.useRef)(null),i=(0,Ks.useHistory)();(0,K.useEffect)(()=>{const e=new MutationObserver(e=>{e.forEach(e=>{for(const n of e.addedNodes)if(kPe(n))return void t(!0);for(const n of e.removedNodes)if(kPe(n))return void t(!1)})});return e.observe(n.current,{childList:!0,subtree:!0}),()=>e.disconnect()},[]);const o=(0,K.useCallback)(()=>{i.replace(wi())},[i]);return(0,X.jsxs)(X.Fragment,{children:[e&&(0,X.jsx)(EPe,{onPress:o,children:(0,X.jsx)(NPe,{})}),(0,X.jsx)(TPe,{id:"onfido-mount",ref:n})]})};var SPe=n(71626),APe=n(66210);const PPe=_t.default`
4063  mutation createOnfidoJWT {
4064    createOnfidoJWT {
4065      token
4066    }
4067  }
4068`,DPe=_t.default`
4069  mutation createOnfidoCheck {
4070    createOnfidoCheck {
4071      result
4072    }
4073  }
4074`,MPe=_t.default`
4075  query onfidoApplicant {
4076    onfidoApplicant {
4077      state
4078    }
4079  }
4080`,OPe=({onComplete:e,onError:t})=>{const{session:{locale:n}}=lt(),i=(0,K.useRef)(null),{createOnfidoCheck:o}=(()=>{const[e,{error:t,loading:n}]=(0,js.useMutation)(DPe);return{createOnfidoCheck:(0,K.useCallback)(()=>e().then(e=>{var t,n;return null===(t=e.data)||void 0===t||null===(n=t.createOnfidoCheck)||void 0===n?void 0:n.result}),[e]),error:t,loading:n}})(),a=(0,Ks.useHistory)();(0,K.useEffect)(()=>()=>{i.current&&(i.current.tearDown(),i.current=null)},[]);const s=(0,K.useCallback)(async({token:a,workflowRunId:s})=>{try{const r={token:a,steps:["welcome",{type:"document",options:{documentTypes:{passport:!0,national_identity_card:!0}}}
4080,"complete"],theme:{name:"light",config:{colorBackgroundButtonPrimary:Qe.GREEN_SUMMER_GRASS,colorBackgroundButtonPrimaryHover:Qe.GREEN_SUMMER_GRASS,colorBackgroundButtonPrimaryActive:Qe.GREEN_SUMMER_GRASS,colorBorderDocTypeButton:Qe.GREEN_SUMMER_GRASS,colorBorderButtonPrimary:Qe.GREEN_SUMMER_GRASS,colorBorderButtonPrimaryHover:Qe.GREEN_SUMMER_GRASS,colorBorderButtonPrimaryActive:Qe.GREEN_SUMMER_GRASS,colorIcon:Qe.TEXT_DARK,colorBorderInput:Qe.GREEN_SUMMER_GRASS,colorBorderDocTypeButtonHover:Qe.GREEN_SUMMER_GRASS,colorContentButtonSecondaryText:Qe.TEXT_DARK,colorBorderButtonSecondary:Qe.TEXT_DARK,colorBorderButtonSecondaryHover:Qe.TEXT_DARK}},language:n,containerId:"onfido-mount",onError:t,onComplete:()=>o().then(e).catch(t)};s&&(r.workflowRunId=s),i.current=SPe.Onfido.init(r)}catch(ca){t(ca)}},[e,t,o,a]);return{start:s}},zPe=()=>{const e=(0,Ks.useHistory)(),{toast:{showToastMessage:t}}=lt(),{autoTrackEnhanced:n}=mt(),{createOnfidoJWT:i}=(()=>{const[e,{error:t,loading:n}]=(0,js.useMutation)(PPe);return{createOnfidoJWT:(0,K.useCallback)(()=>e().then(e=>{var t,n;return null===(t=e.data)||void 0===t||null===(n=t.createOnfidoJWT)||void 0===n?void 0:n.token}),[e]),error:t,loading:n}})(),{getOnfidoApplicant:o}=(()=>{const e=(0,APe.useApolloClient)();return{getOnfidoApplicant:(0,K.useCallback)(async()=>await e.query({query:MPe}).then(({data:e})=>null===e||void 0===e?void 0:e.onfidoApplicant),[e])}})(),a=(0,K.useCallback)(()=>{n({userFlow:qa,action:Xa.complete,objectName:"Identity Verification",properties:{}}),e.replace(wi())},[e]),s=(0,K.useCallback)(n=>{console.error(n),t({message:i18n.t("provider.generic.error")}),e.replace(wi())},[e,t]),{start:r}=OPe({onComplete:a,onError:s});return(0,K.useEffect)(()=>{(async()=>{try{const t=await o();if(["documents","check"].includes(null===t||void 0===t?void 0:t.state))e.replace(wi());else{const e=await i();r({token:e})}}catch(ca){s(ca)}})()},[]),(0,X.jsx)(RPe,{})},LPe=()=>(0,X.jsx)(zPe,{}),qPe=xt`
4081  mutation applicationProcessStartOnfidoWorkflow {
4082    applicationProcessStartOnfidoWorkflow {
4083      success
4084      token
4085      workflowRunId
4086      errors {
4087        code
4088        message
4089      }
4090    }
4091  }
4092`,BPe=xt`
4093  mutation applicationProcessCheckOnfidoWorkflowApplicantState {
4094    applicationProcessCheckOnfidoWorkflowApplicantState {
4095      success
4096    }
4097  }
4098`,GPe=({onComplete:e,onError:t})=>{const{session:{locale:n}}=lt(),{checkApplicantStatus:i}=(()=>{const[e,{error:t,loading:n}]=(0,js.useMutation)(BPe);return{checkApplicantStatus:(0,K.useCallback)(()=>e({context:{apiVersion:3}}).then(e=>{var t,n;return null===(t=e.data)||void 0===t||null===(n=t.applicationProcessCheckOnfidoWorkflowApplicantState)||void 0===n?void 0:n.success}),[e]),error:t,loading:n}})(),o=(0,K.useRef)(null),a=(0,Ks.useHistory)();(0,K.useEffect)(()=>()=>{o.current&&(o.current.tearDown(),o.current=null)},[]);const s=(0,K.useCallback)(async({token:a,workflowRunId:s})=>{try{const r={token:a,workflowRunId:s,theme:{name:"light",config:{colorBackgroundButtonPrimary:Qe.GREEN_SUMMER_GRASS,colorBackgroundButtonPrimaryHover:Qe.GREEN_SUMMER_GRASS,colorBackgroundButtonPrimaryActive:Qe.GREEN_SUMMER_GRASS,colorBorderDocTypeButton:Qe.GREEN_SUMMER_GRASS,colorBorderButtonPrimary:Qe.GREEN_SUMMER_GRASS,colorBorderButtonPrimaryHover:Qe.GREEN_SUMMER_GRASS,colorBorderButtonPrimaryActive:Qe.GREEN_SUMMER_GRASS,colorIcon:Qe.TEXT_DARK,colorBorderInput:Qe.GREEN_SUMMER_GRASS,colorBorderDocTypeButtonHover:Qe.GREEN_SUMMER_GRASS,colorContentButtonSecondaryText:Qe.TEXT_DARK,colorBorderButtonSecondary:Qe.TEXT_DARK,colorBorderButtonSecondaryHover:Qe.TEXT_DARK}},language:n,containerId:"onfido-mount",onError:t,onComplete:()=>i().then(e).catch(t)};o.current=SPe.Onfido.init(r)}catch(ca){t(ca)}},[e,t,a]);return{start:s}},UPe=()=>{const e=(0,Ks.useHistory)(),{toast:{showToastMessage:t}}=lt(),{startOnfidoWorkflow:n}=(()=>{const[e,{error:t,loading:n}]=(0,js.useMutation)(qPe);return{startOnfidoWorkflow:(0,K.useCallback)(()=>e({context:{apiVersion:3}}).then(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.applicationProcessStartOnfidoWorkflow}),[e]),error:t,loading:n}})(),i=(0,K.useCallback)(()=>{e.replace(wi())},[e]),o=(0,K.useCallback)(n=>{console.error(n),t({message:i18n.t("provider.generic.error")}),e.replace(wi())},[e,t]),{start:a}=GPe({onComplete:i,onError:o});return(0,K.useEffect)(()=>{(async()=>{try{const o=await n();var i,s;if(null===o||void 0===o||!o.success||null===o||void 0===o||!o.token)return e.replace(wi()),void t({message:(null===o||void 0===o||null===(i=o.errors)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.message)||i18n.t("provider.generic.error")});a({token:o.token,workflowRunId:o.workflowRunId})}catch(ca){o(ca)}})()},[]),(0,X.jsx)(RPe,{})},$Pe=()=>(0,X.jsx)(UPe,{}),FPe=()=>{const{id:e}=(0,Ks.useParams)();return(0,X.jsx)(Ks.Redirect,{to:Li(e),replace:!0})},HPe=(0,Te.observer)(()=>{const{analytics:{trackCurrentPath:e},session:{countryAlreadyShutdown:t,setCurrentPath:n}}=lt(),i=(0,Ks.useLocation)();return(0,K.useEffect)(()=>{n(i.pathname),e()},[i]),t?(rt(),null):(0,X.jsxs)(Ks.Switch,{children:[(0,X.jsx)(Ks.Route,{path:Ii(),children:(0,X.jsx)(Wf,{})}),(0,X.jsx)(Ks.Route,{path:Ei(),children:(0,X.jsx)(ng,{})}),(0,X.jsx)(Ks.Route,{path:"/provider/apply/:step?",children:(0,X.jsx)(jAe,{})}),(0,X.jsx)(Eae,{path:"/provider/notifications",children:(0,X.jsx)(RS,{})}),(0,X.jsx)(Eae,{path:"/provider/bid/:code",children:(0,X.jsx)(HO,{})}),(0,X.jsx)(Eae,{path:"/provider/new_request/:id",children:(0,X.jsx)(fz,{})}),(0,X.jsx)(Eae,{path:"/provider/events/:id",exact:!0,children:(0,X.jsx)(IU,{})}),(0,X.jsx)(Eae,{path:"/provider/events/:id/amend",children:(0,X.jsx)(bwe,{})}),(0,X.jsx)(Eae,{path:"/provider/planner",children:(0,X.jsx)(T1,{})}),(0,X.jsx)(Eae,{path:"/provider/chat",children:(0,X.jsx)(_ne,{})}),(0,X.jsx)(Eae,{path:"/provider/chat_messages/:id",children:(0,X.jsx)(Wne,{})}),(0,X.jsx)(Eae,{path:"/provider/monthly_overview",children:(0,X.jsx)(Goe,{})}),(0,X.jsx)(Eae,{path:"/provider/more",children:(0,X.jsx)(K4,{})}),(0,X.jsx)(Eae,{path:"/provider/edit_profile/annual_overview",children:(0,X.jsx)(Fwe,{})}),(0,X.jsx)(Eae,{path:"/provider/edit_profile",children:(0,X.jsx)(K5,{})}),(0,X.jsx)(Eae,{path:"/provider/personal_tax_id",children:(0,X.jsx)(tCe,{})}),(0,X.jsx)(Eae,{path:"/provider/invoices",children:(0,X.jsx)(pse,{})}),(0,X.jsx)(Eae,{path:"/provider/hr_requests",exact:!0,children:(0,X.jsx)(Ate,{})}),(0,X.jsx)(Eae,{path:"/provider/hr_requests/history",children:(0,X.jsx)(q9,{})}),(0,X.jsx)(Eae,{path:"/provider/language_settings",children:(0,X.jsx)(l9,{})}),(0,X.jsx)(Eae,{path:"/provider/notification_settings",children:(0,X.jsx)(x9,{})}),(0,X.jsx)(Eae,{path:"/provider/ratings",children:(0,X.jsx)(t9,{})}),(0,X.jsx)(Eae,{path:"/provider/contact_us",children:(0,X.jsx)(s7,{})}),(0,X.jsx)(Eae,{path:"/provider/customers/:id/reschedule_booking",children:(0,X.jsx)(Bue,{})}),(0,X.jsx)(Eae,{path:"/provider/customers/:id/price",children:(0,X.jsx)(OQ,{})}),(0,X.jsx)(Eae,{path:"/provider/customers/:id/home_details",children:(0,X.jsx)(kje,{})}),(0,X.jsx)(Eae,{path:"/provider/customers/:id",children:(0,X.jsx)(jZ,{})}),(0,X.jsx)(Eae,{path:"/provider/customers",children:(0,X.jsx)(bV,{})}),(0,X.jsx)(Eae,{path:"/provider/offers/:id",children:(0,X.jsx)(bW,{})}),(0,X.jsx)(Eae,{path:"/provider/optable_offers/:id",children:(0,X.jsx)(WW,{})}),(0,X.jsx)(Eae,{path:"/provider/countdown",children:(0,X.jsx)(nke,{})}),(0,X.jsx)(Eae,{path:"/provider/offers",children:(0,X.jsx)(CH,{})}),(0,X.jsx)(Eae,{path:"/provider/faq",exact:!0,children:(0,X.jsx)(iae,{})}),(0,X.jsx)(Eae,{path:"/provider/faq/article/:articleId",children:(0,X.jsx)(gae,{})}),(0,X.jsx)(Eae,{path:"/provider/faq/contact_form",children:(0,X.jsx)(Iae,{})}),(0,X.jsx)(Eae,{path:"/provider/edit_public_profile",children:(0,X.jsx)(Ure,{})}),(0,X.jsx)(Eae,{path:"/provider/pay_registration_fee/form",children:(0,X.jsx)(IPe,{})}),(0,X.jsx)(Eae,{path:"/provider/pay_registration_fee",children:(0,X.jsx)(vPe,{})}),(0,X.jsx)(Eae,{path:"/provider/bank_details",children:(0,X.jsx)(Hle,{})}),(0,X.jsx)(Eae,{path:"/provider/bank_transfers/pending",children:(0,X.jsx)(VNe,{})}),(0,X.jsx)(Eae,{path:"/provider/bank_transfers/scheduled",children:(0,X.jsx)(ZNe,{})}),(0,X.jsx)(Eae,{path:"/provider/bank_transfers/in_review",children:(0,X.jsx)(tke,{})}),(0,X.jsx)(Eae,{path:"/provider/bank_transfers/:id",children:(0,X.jsx)(lce,{})}),(0,X.jsx)(Eae,{path:"/provider/bank_transfers",children:(0,X.jsx)(Wde,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/cases/:id/resolve",children:(0,X.jsx)(Bge,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/cases/:id/provider_response",children:(0,X.jsx)(Khe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/cases/:id/details",children:(0,X.jsx)(qhe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/reported_cases/:id/details",children:(0,X.jsx)(MEe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/pec_cases/:id/details",children:(0,X.jsx)(FPe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/cases/:id/add_documents",children:(0,X.jsx)(bTe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/cases/:id/confirmation",children:(0,X.jsx)(BTe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/case/:id/call_customer",children:(0,X.jsx)(UEe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/case/:id/after_call_customer",children:(0,X.jsx)(YEe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/case/:id/pre_report_notes",children:(0,X.jsx)(rNe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/event/:topic/:relatedId/select_reason",children:(0,X.jsx)(RTe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/event/:topic/related_events",children:(0,X.jsx)(dTe,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/event/:relatedId",children:(0,X.jsx)(Kme,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center/report_problem/event",children:(0,X.jsx)(Kme,{})}),(0,X.jsx)(Eae,{path:"/provider/resolution_center",children:(0,X.jsx)(Sme,{})}),(0,X.jsx)(Eae,{path:"/provider/setup_my_prices",children:(0,X.jsx)(ome,{})}),(0,X.jsx)(Eae,{path:"/provider/my_prices",children:(0,X.jsx)(Tpe,{})}),(0,X.jsx)(Eae,{path:"/provider/holidays",children:(0,X.jsx)(L_e,{})}
4098),(0,X.jsx)(Eae,{path:"/provider/working_hours",children:(0,X.jsx)(Axe,{})}),(0,X.jsx)(Eae,{path:"/provider/refer_a_friend/list",children:(0,X.jsx)(cve,{})}),(0,X.jsx)(Eae,{path:"/provider/refer_a_friend",children:(0,X.jsx)(nve,{})}),(0,X.jsx)(Eae,{path:"/provider/work_location",children:(0,X.jsx)(ewe,{})}),(0,X.jsx)(Eae,{path:"/provider/work_status",children:(0,X.jsx)(kwe,{})}),(0,X.jsx)(Eae,{path:"/provider/compare_profile",children:(0,X.jsx)(ZCe,{})}),(0,X.jsx)(Eae,{path:"/provider/reliability_metrics",children:(0,X.jsx)($ve,{})}),(0,X.jsx)(Eae,{path:"/provider/long_term_relationships",children:(0,X.jsx)(kbe,{})}),(0,X.jsx)(Eae,{path:"/provider/provider_driven_cancellation",children:(0,X.jsx)(ube,{})}),(0,X.jsx)(Eae,{path:"/provider/short_notice_cancellations",children:(0,X.jsx)(gbe,{})}),(0,X.jsx)(Eae,{path:"/provider/references/:serviceId",children:(0,X.jsx)(lje,{})}),(0,X.jsx)(Eae,{path:"/provider/references",children:(0,X.jsx)(lje,{})}),(0,X.jsx)(Eae,{path:"/provider/services/:service",children:(0,X.jsx)(WIe,{})}),(0,X.jsx)(Eae,{path:"/provider/services",children:(0,X.jsx)(Lje,{})}),(0,X.jsx)(Eae,{path:"/provider/keep_profile_updated",children:(0,X.jsx)(UAe,{})}),(0,X.jsx)(Eae,{path:"/provider/identity_verification",children:(0,X.jsx)(LPe,{})}),(0,X.jsx)(Eae,{path:"/provider/identity/verification",children:(0,X.jsx)($Pe,{})}),(0,X.jsx)(Eae,{path:wi(),children:(0,X.jsx)(nR,{})}),(0,X.jsx)(Ks.Route,{path:"/",children:(0,X.jsx)(Ks.Redirect,{to:"/provider"})})]})}),WPe=`On device with model: ${$e.modelName}, manufacturer: ${$e.manufacturer}, osName: ${$e.osName}`,VPe=(0,Ge.default)(qe.default).withConfig({displayName:"place_of_birth_modal__Container",componentId:"sc-1sxxn2l-0"})(["background-color:",";margin:12px 16px 20px 16px;justify-content:center;align-items:center;"],Qe.WHITE),KPe=(0,Ge.default)(Be.default).withConfig({displayName:"place_of_birth_modal__Info",componentId:"sc-1sxxn2l-1"})(["font-size:16px;text-align:center;color:",";margin-top:10px;"],Qe.TEXT_DARK),YPe=(0,Ge.default)(ms).withConfig({displayName:"place_of_birth_modal__StyledButton",componentId:"sc-1sxxn2l-2"})(["margin-top:16px;"]);const XPe=(0,Te.observer)(function(){var e;const{session:{isSignedIn:t,currentUser:n,country:i,settings:o}}=lt(),a=lu(),s=(0,Ks.useLocation)(),{birthPlace:r,birthCountry:l,isFreelance:d,isInactive:c}=n||{},u=!(null!==o&&void 0!==o&&null!==(e=o.applicationProcess)&&void 0!==e&&e.enabled)&&t&&["de","it","uk","ie"].includes(i)&&d&&!c&&(!r||!l)&&!s.pathname.includes("/provider/edit_profile");return u?(0,X.jsx)(zw,{isOpen:u,title:i18n.t("place_of_birth_modal.title"),size:"small",children:(0,X.jsxs)(VPe,{children:[(0,X.jsx)(Pa.default,{name:"alert",size:35,color:Qe.GOLD_2,set:"MaterialCommunityIcons"}),(0,X.jsx)(KPe,{children:i18n.t("place_of_birth_modal.info")}),(0,X.jsx)(YPe,{variant:"primary",onPress:()=>a("/provider/edit_profile"),children:i18n.t("place_of_birth_modal.update_profile")})]})}):null}),ZPe=xt`
4099  mutation reactivateAccount {
4100    reactivateAccount {
4101      success
4102      errors {
4103        code
4104        message
4105      }
4106    }
4107  }
4108`,QPe=(0,Ge.default)(qe.default).withConfig({displayName:"inactive_modal__Container",componentId:"sc-1wc4ca5-0"})(["background-color:",";margin:20px 16px 20px 16px;flex:1;"],Qe.WHITE),JPe=(0,Ge.default)(Be.default).withConfig({displayName:"inactive_modal__Info",componentId:"sc-1wc4ca5-1"})(["font-size:14px;text-align:center;color:",";font-weight:",";margin-bottom:20px;"],Qe.TEXT_DARK,({bold:e})=>e?"700":"400"),eDe=(0,Ge.default)(JPe).withConfig({displayName:"inactive_modal__Error",componentId:"sc-1wc4ca5-2"})(["color:",";"],Qe.CRIMSON_1);const tDe=(0,Te.observer)(function(){const{session:{isSignedIn:e,currentUser:t,refresh:n},toast:{showToastMessage:i}}=lt(),{reactivateProvider:o,loading:a,error:s}=(()=>{const[e,{loading:t,error:n}]=(0,js.useMutation)(ZPe,{context:{apiVersion:3}});return{reactivateProvider:()=>e(),loading:t,error:n}})(),r=e&&(null===t||void 0===t?void 0:t.isInactive);return r?(0,X.jsx)(zw,{isOpen:r,title:i18n.t("inactive_modal.title"),size:"small",children:(0,X.jsx)(QPe,{children:(0,X.jsxs)(Mq,{primaryButtonTitle:i18n.t("inactive_modal.reactivation_cta"),primaryButtonClick:async()=>{var e,t;const a=await o();null!==a&&void 0!==a&&null!==(e=a.data)&&void 0!==e&&null!==(t=e.reactivateAccount)&&void 0!==t&&t.success?(i({message:i18n.t("inactive_modal.requested"),onlyPopup:!0,type:"success"}),n()):i({message:i18n.t("provider.generic.error"),onlyPopup:!0})},primaryButtonDisabled:a,children:[(0,X.jsx)(JPe,{children:i18n.t("inactive_modal.info")}),(0,X.jsx)(JPe,{bold:!0,children:i18n.t("inactive_modal.reactivation_title")}),(0,X.jsx)(JPe,{children:i18n.t("inactive_modal.reactivation_info")}),s&&(0,X.jsx)(eDe,{children:i18n.t("provider.generic.error")})]})})}):null}),nDe=({children:e})=>e,iDe=e=>{try{return(()=>{const e=E("EXPO_PUBLIC_SENDGRID_TRACKING_HOSTNAMES");
4108if(!e)return[];try{return Object.values(JSON.parse(e)).filter(Boolean).map(e=>e.replace(/^(https?:)?\/\//,""))}catch{return[]}})().includes(new URL(e).hostname)}catch{return!1}},oDe="/provider",aDe=e=>/^https?:\/\//i.test(e),sDe=e=>e===oDe||e.startsWith(`${oDe}/`),rDe=e=>{try{return new URL(e)}catch{return null}},lDe=()=>{const e=lu(),t=(0,Ks.useHistory)(),n=lt(),i=(0,K.useRef)([]),o=(0,K.useRef)(new Set),a=n=>{n!==`${t.location.pathname}${t.location.search||""}`&&e(n)},s=async e=>{if(aDe(e))await(async e=>{const t=rDe(e);t?sDe(t.pathname)?a(`${t.pathname}${t.search}`):(se("linking","opening non-app destination in the browser",{path:t.pathname}),await bs.default.openURL(e)):se("linking","could not parse deep link url",{path:e.split(/[?#]/)[0]})})(e);else if(e.includes("/provider/pay_registration_fee")&&a("/provider/pay_registration_fee"),e.includes("h2pa://")){const t=e.replace(/^h2pa:\/\//,"/").replace(/^h2pa:\//,"/");a(t)}},r=async t=>{if(t)if(o.current.has(t))se("linking","ignoring deep link that is already being processed",{path:t.split(/[?#]/)[0]});else{o.current.add(t);try{let o=t;if(iDe(t)){const e=await(async e=>{try{const t=await fetch(e);return t.url&&t.url!==e?t.url:(se("linking","SendGrid tracking URL did not redirect",{path:e.split(/[?#]/)[0],status:t.status}),null)}catch(ca){return se("linking","failed to resolve SendGrid tracking URL",{path:e.split(/[?#]/)[0],error:ca.message}),null}})(t);if(!e||iDe(e))return void se("linking","aborting navigation, SendGrid tracking URL could not be resolved",{path:t.split(/[?#]/)[0]});o=e}if(!n.loaded)return i.current.some(e=>e.url===o)||i.current.push({url:o,queuedAt:Date.now()}),void se("linking","queued deep link until app is ready",{path:o.split(/[?#]/)[0]});if((e=>{if(aDe(e)){const t=rDe(e);return!!t&&sDe(t.pathname)}return e.includes("h2pa://")||e.includes("/provider/pay_registration_fee")})(o)&&!await(async()=>{n.setResolvingDeepLink(!0);try{const e=await n.session.fetchSettings();return null===e||void 0===e||!e.redirectUrl||(se("linking","ignoring deep link, the backend redirect takes priority"),!1)}catch(ca){return le(ca),n.session.isSignedIn?e(wi()):(n.toast.showToastMessage({type:"error",message:i18n.t("ui.error.network")}),e(Ii())),!1}finally{n.setResolvingDeepLink(!1)}})())return;await s(o)}finally{o.current.delete(t)}}},l=e=>r(e).catch(e=>le(e));(0,K.useEffect)(()=>{const e=bs.default.addEventListener("url",({url:e})=>l(e)),t=()=>{};return()=>{e.remove(),t()}},[]),(0,K.useEffect)(()=>{if(!n.loaded)return;const e=i.current;i.current=[],e.forEach(({url:e,queuedAt:t})=>{Date.now()-t>12e4?se("linking","dropping deep link that waited too long to be processed",{path:e.split(/[?#]/)[0]}):l(e)})},[n.loaded])},dDe=(0,Ge.default)(qe.default).withConfig({displayName:"full_screen_loader__Overlay",componentId:"sc-6xfiol-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;align-items:center;justify-content:center;background-color:",";"],Qe.WHITE),cDe=()=>(0,X.jsx)(dDe,{testID:"FullScreenLoader",children:(0,X.jsx)(Aa.default,{size:"large",color:Qe.GREEN_SUMMER_GRASS})}),uDe=["message","show"],pDe=(0,Ge.default)(qe.default).withConfig({displayName:"container__Container",componentId:"sc-7k63ij-0"})(["flex:1;"]),mDe=(0,Te.observer)(()=>{lDe(),(()=>{const{syncEvents:e}=_r(),{session:{settings:t},externalCalendar:{externalCalendarId:n}}=lt(),i=null===t||void 0===t?void 0:t.isProviderUnderExperimentAbTest(Mo);nr(async()=>{if(!i||!n)return;const{status:t}=await Zs.getCalendarPermissionsAsync();if("granted"!==t)return;if(!await ur(n))return;const o=await Ne.default.getItem(rr);if(o){const t=C.DateTime.fromMillis(Number(o)),n=C.DateTime.now().diff(t,"minutes").minutes;n>2?(console.log(`App foreground \u2014 last sync was ${n.toFixed(1)} min ago, triggering sync`),await e(),console.log("Foreground sync done")):console.log(`App foreground \u2014 last sync was ${n.toFixed(1)} min ago, no sync needed`)}else console.log("App foreground \u2014 no previous sync, triggering sync"),await e()},[n,i])})();const e=lt(),{analytics:{autoTrack:t},toast:{message:n,show:i},updates:{mandatoryUpdateAvailable:o,fetchingUpdate:a},session:{settings:s,currentUser:r,isSignedIn:l,countryConfig:d,refreshCounters:c},resolvingDeepLink:u}=e,p=(0,A.default)(e.toast,uDe),m=lu(),f=null===s||void 0===s?void 0:s.redirectUrl,g=(null===s||void 0===s?void 0:s.clearRedirectUrl)||(()=>{}),h=(null===r||void 0===r?void 0:r.onboarded)&&(null===d||void 0===d?void 0:d.euRegulation20242065ModalRequired);return(0,K.useEffect)(()=>{l?"connected"!==ba.cable.state&&"connecting"!==ba.cable.state&&ba.cable.connect():ba.cable.disconnect()},[l]),(0,K.useEffect)(()=>{t("User opened app",WPe)},[]),(0,K.useEffect)(()=>{f&&(f.startsWith("//")?bs.default.openURL(f):m(f),g())},[f]),nr(()=>{l&&c()},[l,c]),o?(0,X.jsx)(nDe,{downloading:a}):(0,X.jsxs)(pDe,{testID:"Router",children:[(0,X.jsxs)(Gc,{children:[i&&(0,X.jsx)(Nw,Object.assign({message:n},p)),(0,X.jsx)(HPe,{}),(0,X.jsx)(tDe,{}),(0,X.jsx)(XPe,{}),h&&(0,X.jsx)(Ls,{}),(0,X.jsx)(Vs,{})]}),u&&(0,X.jsx)(cDe,{})]})});var fDe=n(45837);const gDe=(0,Te.observer)(()=>(0,X.jsx)(fDe.default,{appStoreId:"1152910034",playStoreId:"com.helpling.app.h2.provider",text:[i18n.t("force_update.line_1"),i18n.t("force_update.line_2")],ctaText:i18n.t("force_update.cta_text")}));var hDe=n(22400),_De=n(8254),xDe=n(79661);const yDe=(0,Ge.default)(qe.default).withConfig({displayName:"force_install_hc_app__Container",componentId:"sc-zw4iqv-0"})(["flex:1;align-items:center;background-color:",";padding:0px 16px 30px 16px;justify-content:center;"],Qe.GREEN_SUMMER_GRASS),vDe=(0,Ge.default)(Be.default).withConfig({displayName:"force_install_hc_app__Title",componentId:"sc-zw4iqv-1"})(["margin-bottom:16px;font-size:28px;text-align:center;color:",";"],Qe.WHITE),bDe=(0,Ge.default)(Be.default).withConfig({displayName:"force_install_hc_app__Paragraph",componentId:"sc-zw4iqv-2"})(["margin-bottom:50px;font-size:16px;text-align:center;color:",";"],Qe.WHITE),wDe=(0,Ge.default)(qe.default).withConfig({displayName:"force_install_hc_app__LogoContainer",componentId:"sc-zw4iqv-3"})(["align-items:center;padding:30px 0px;"]),CDe=(0,Ge.default)(ts).withConfig({displayName:"force_install_hc_app__Button",componentId:"sc-zw4iqv-4"})(["background-color:",";padding:10px 10px;border-radius:8px;margin-top:20px;width:250px;flex-direction:row;align-items:center;justify-content:center;"],Qe.VIOLET_2),jDe=(0,Ge.default)(Be.default).withConfig({displayName:"force_install_hc_app__ButtonText",componentId:"sc-zw4iqv-5"})(["color:",";font-weight:700;margin-left:10px;"],Qe.WHITE),IDe=()=>{const e=(0,K.useCallback)(()=>ru("https://play.google.com/store/apps/details?id=com.helpling.app.h2.agency.provider",0,!0),[]),t=(0,K.useCallback)(()=>ru("https://apps.apple.com/us/app/helpling-connect/id1616641157",0,!0),[]);return(0,X.jsxs)(yDe,{children:[(0,X.jsx)(wDe,{children:(0,X.jsx)(gm,{color:"white"})}),(0,X.jsx)(vDe,{children:i18n.t("force_install_hc_app.title")}),(0,X.jsx)(bDe,{children:i18n.t("force_install_hc_app.subtitle")}),(0,X.jsxs)(CDe,{onPress:e,children:[(0,X.jsx)(Pa.default,{name:"android",color:Qe.WHITE}),(0,X.jsx)(jDe,{children:i18n.t("force_install_hc_app.actions.install_on_android")})]}),(0,X.jsxs)(CDe,{onPress:t,children:[(0,X.jsx)(Pa.default,{name:"apple",color:Qe.WHITE,set:"MaterialCommunityIcons"}),(0,X.jsx)(jDe,{children:i18n.t("force_install_hc_app.actions.install_on_ios")})]})]})},TDe=e=>{const t=(0,Re.useSafeAreaInsets)(),{isDesktop:n,isMobile:i}=uu();
4108return(0,X.jsx)(Ge.ThemeProvider,Object.assign({theme:{insets:t,isDesktop:n,isMobile:i}},e))},EDe=(0,Te.observer)(({children:e})=>{const{session:{availableLocales:t,updateLocale:n}}=lt(),i=new URLSearchParams(window.location.search).get("preferred_language");return(0,K.useEffect)(()=>{i&&t.includes(i)&&n(i)},[i,t,n]),(0,X.jsx)(X.Fragment,{children:e})}),NDe=E("EXPO_PUBLIC_RECAPTCHA_ENTERPRISE_SITE_KEY"),kDe=({children:e})=>!NDe||ne?e:(0,X.jsxs)(sm.GoogleReCaptchaProvider,{reCaptchaKey:NDe,children:[(0,X.jsx)("style",{children:".grecaptcha-badge { visibility: hidden; }"}),e]});function RDe(){var e,t,n,i,o;const a=null,[s,r]=(0,K.useState)(!1),[l]=(0,K.useState)(()=>Lc.create());if((0,K.useEffect)(()=>{(async()=>{try{const{granted:e}=await Promise.resolve({granted:!0,expires:"never",canAskAgain:!0,status:"granted"});await l.setup(),l.analytics.setTrackingPermission(e),r(!0)}catch(ca){console.error(ca)}})()},[]),(0,K.useLayoutEffect)(()=>{xDe.addNotificationResponseReceivedListener(e=>{var t,n,i;se("push notification","received",null===e||void 0===e||null===(t=e.notification)||void 0===t||null===(n=t.request)||void 0===n||null===(i=n.content)||void 0===i?void 0:i.data),(0,Ie.when)(()=>l.loaded,()=>{var t,n,i;l.session.isSignedIn&&l.pushNotification.set(null===e||void 0===e||null===(t=e.notification)||void 0===t||null===(n=t.request)||void 0===n||null===(i=n.content)||void 0===i?void 0:i.data)})});return()=>{}},[]),(0,K.useLayoutEffect)(()=>{const{currentState:e}=je.default;l.session.setAppState(e);const t=je.default.addEventListener("change",e=>{const{session:{appState:t,setAppState:n}}=l;se("appState",("inactive"===t||"background"===t)&&"active"===e?"moved app to foreground":"moved app to background"),n(e)});return()=>null===t||void 0===t?void 0:t.remove()},[l]),(0,K.useEffect)(()=>{},[a]),(0,K.useEffect)(()=>(0,Y.onSnapshot)(l,Me()(e=>Ne.default.setItem("provider_app_cache",JSON.stringify(e)),1e3)),[]),!s)return null;const d=((null===(e=l.session)||void 0===e||null===(t=e.countryConfig)||void 0===t?void 0:t.listAgenciesForceInstallHelplingConnectApp)||[]).includes(null===(n=l.session)||void 0===n||null===(i=n.currentUser)||void 0===i||null===(o=i.agency)||void 0===o?void 0:o.id);return(0,X.jsx)(Te.Provider,{store:l,children:(0,X.jsx)(Re.SafeAreaProvider,{initialMetrics:Se.initialWindowMetrics,onLayout:async()=>{await ke.hideAsync()},testID:"AppRoot",children:(0,X.jsx)(Ae.KeyboardProvider,{children:(0,X.jsx)(SM.ResponsiveProvider,{children:(0,X.jsx)(TDe,{children:(0,X.jsx)(ht,{children:(0,X.jsx)(kDe,{children:(0,X.jsx)(Ee.ApolloProvider,{client:l.session.apolloClient,children:(0,X.jsx)(dC,{children:(0,X.jsx)(Mm,{children:d?(0,X.jsx)(IDe,{}):l.session.appVersionSupported?(0,X.jsx)(EDe,{children:(0,X.jsx)(hDe.BrowserRouter,{children:(0,X.jsx)(mDe,{})})}):(0,X.jsx)(gDe,{})})})})})})})})})})})}Z(),ke.preventAutoHideAsync(),ke.setOptions({duration:1e3,fade:!0}),(0,Ie.configure)({enforceActions:"never"}),_De.setNotificationHandler({handleNotification:async()=>({shouldShowBanner:!0,shouldShowList:!0,shouldPlaySound:!1,shouldSetBadge:!1})}),(0,Pe.default)();const SDe=ie?pe((0,Te.observer)(RDe)):(0,Te.observer)(RDe);ie&&oe({dsn:"https://[email protected]/5682559",release:Ve,dist:We,environment:E("EXPO_PUBLIC_ENVIRONMENT")||"development",ignoreErrors:D,beforeBreadcrumb:z,beforeSend:q});class ADe extends K.Component{constructor(e){super(e)}render(){return(0,X.jsx)(SDe,{})}}(0,Ce.default)(ADe)},35358(e,t,n){var i={"./af":17582,"./af.js":17582,"./ar":93042,"./ar-dz":54265,"./ar-dz.js":54265,"./ar-kw":92553,"./ar-kw.js":92553,"./ar-ly":85352,"./ar-ly.js":85352,"./ar-ma":67097,"./ar-ma.js":67097,"./ar-ps":76150,"./ar-ps.js":76150,"./ar-sa":84427,"./ar-sa.js":84427,"./ar-tn":7221,"./ar-tn.js":7221,"./ar.js":93042,"./az":60458,"./az.js":60458,"./be":17596,"./be.js":17596,"./bg":93830,"./bg.js":93830,"./bm":27044,"./bm.js":27044,"./bn":58573,"./bn-bd":13296,"./bn-bd.js":13296,"./bn.js":58573,"./bo":25614,"./bo.js":25614,"./br":62041,"./br.js":62041,"./bs":91786,"./bs.js":91786,"./ca":75833,"./ca.js":75833,"./cs":52711,"./cs.js":52711,"./cv":71036,"./cv.js":71036,"./cy":84977,"./cy.js":84977,"./da":86389,"./da.js":86389,"./de":67342,"./de-at":81566,"./de-at.js":81566,"./de-ch":87544,"./de-ch.js":87544,"./de.js":67342,"./dv":82875,"./dv.js":82875,"./el":78536,"./el.js":78536,"./en-au":38617,"./en-au.js":38617,"./en-ca":79227,"./en-ca.js":79227,"./en-gb":59754,"./en-gb.js":59754,"./en-ie":37217,"./en-ie.js":37217,"./en-il":85418,"./en-il.js":85418,"./en-in":80800,"./en-in.js":80800,"./en-nz":67299,"./en-nz.js":67299,"./en-sg":76305,"./en-sg.js":76305,"./eo":8673,"./eo.js":8673,"./es":71301,"./es-do":3187,"./es-do.js":3187,"./es-mx":48223,"./es-mx.js":48223,"./es-us":37634,"./es-us.js":37634,"./es.js":71301,"./et":4976,"./et.js":4976,"./eu":11847,"./eu.js":11847,"./fa":74372,"./fa.js":74372,"./fi":41628,"./fi.js":41628,"./fil":56802,"./fil.js":56802,"./fo":42874,"./fo.js":42874,"./fr":9853,"./fr-ca":87170,"./fr-ca.js":87170,"./fr-ch":22825,"./fr-ch.js":22825,"./fr.js":9853,"./fy":68876,"./fy.js":68876,"./ga":93533,"./ga.js":93533,"./gd":82770,"./gd.js":82770,"./gl":98602,"./gl.js":98602,"./gom-deva":63059,"./gom-deva.js":63059,"./gom-latn":48212,"./gom-latn.js":48212,"./gu":23409,"./gu.js":23409,"./he":17210,"./he.js":17210,"./hi":4750,"./hi.js":4750,"./hr":51315,"./hr.js":51315,"./hu":47626,"./hu.js":47626,"./hy-am":91317,"./hy-am.js":91317,"./id":26892,"./id.js":26892,"./is":97577,"./is.js":97577,"./it":57628,"./it-ch":3046,"./it-ch.js":3046,"./it.js":57628,"./ja":92504,"./ja.js":92504,"./jv":25917,"./jv.js":25917,"./ka":64513,"./ka.js":64513,"./kk":94935,"./kk.js":94935,"./km":96661,"./km.js":96661,"./kn":89964,"./kn.js":89964,"./ko":98
4108067,"./ko.js":98067,"./ku":61165,"./ku-kmr":85158,"./ku-kmr.js":85158,"./ku.js":61165,"./ky":11177,"./ky.js":11177,"./lb":2967,"./lb.js":2967,"./lo":81972,"./lo.js":81972,"./lt":58469,"./lt.js":58469,"./lv":33155,"./lv.js":33155,"./me":87935,"./me.js":87935,"./mi":74483,"./mi.js":74483,"./mk":32501,"./mk.js":32501,"./ml":73120,"./ml.js":73120,"./mn":20266,"./mn.js":20266,"./mr":19406,"./mr.js":19406,"./ms":80109,"./ms-my":90864,"./ms-my.js":90864,"./ms.js":80109,"./mt":22904,"./mt.js":22904,"./my":44067,"./my.js":44067,"./nb":21301,"./nb.js":21301,"./ne":81152,"./ne.js":81152,"./nl":76735,"./nl-be":97761,"./nl-be.js":97761,"./nl.js":76735,"./nn":37569,"./nn.js":37569,"./oc-lnc":20833,"./oc-lnc.js":20833,"./pa-in":3044,"./pa-in.js":3044,"./pl":34249,"./pl.js":34249,"./pt":87585,"./pt-br":26826,"./pt-br.js":26826,"./pt.js":87585,"./ro":62526,"./ro.js":62526,"./ru":62204,"./ru.js":62204,"./sd":43270,"./sd.js":43270,"./se":61541,"./se.js":61541,"./si":71921,"./si.js":71921,"./sk":49935,"./sk.js":49935,"./sl":46254,"./sl.js":46254,"./sq":59897,"./sq.js":59897,"./sr":42496,"./sr-cyrl":11135,"./sr-cyrl.js":11135,"./sr.js":42496,"./ss":32215,"./ss.js":32215,"./sv":84716,"./sv.js":84716,"./sw":50803,"./sw.js":50803,"./ta":31538,"./ta.js":31538,"./te":2302,"./te.js":2302,"./tet":25280,"./tet.js":25280,"./tg":14100,"./tg.js":14100,"./th":95385,"./th.js":95385,"./tk":736,"./tk.js":736,"./tl-ph":79726,"./tl-ph.js":79726,"./tlh":41873,"./tlh.js":41873,"./tr":36463,"./tr.js":36463,"./tzl":27491,"./tzl.js":27491,"./tzm":29500,"./tzm-latn":80196,"./tzm-latn.js":80196,"./tzm.js":29500,"./ug-cn":91287,"./ug-cn.js":91287,"./uk":35341,"./uk.js":35341,"./ur":36246,"./ur.js":36246,"./uz":55550,"./uz-latn":77254,"./uz-latn.js":77254,"./uz.js":55550,"./vi":78796,"./vi.js":78796,"./x-pseudo":22736,"./x-pseudo.js":22736,"./yo":28621,"./yo.js":28621,"./zh-cn":67601,"./zh-cn.js":67601,"./zh-hk":39053,"./zh-hk.js":39053,"./zh-mo":71248,"./zh-mo.js":71248,"./zh-tw":74725,"./zh-tw.js":74725};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=a,e.exports=o,o.id=35358},69234(e,t,n){"use strict";e.exports=n.p+"static/media/layer1.2eab399b14b3aeb4.svg"},33809(e,t,n){"use strict";e.exports=n.p+"static/media/layer.05b085565eed5879.png"},92222(e,t,n){"use strict";e.exports=n.p+"static/media/layer1.f1456bf5d28ad369.svg"},4317(e,t,n){"use strict";e.exports=n.p+"static/media/layer2.4351b6d4e047159d.svg"},15565(e,t,n){"use strict";e.exports=n.p+"static/media/above-average.80beaf41918dac57.svg"},9881(e,t,n){"use strict";e.exports=n.p+"static/media/average.0b66bcc42986ac12.svg"},73369(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNy44MyA0Ljk4QzE0LjgyIDQuOTQgMTIuMDggMy44MiAxMCAyQzcuOTIgMy44MiA1LjE3IDQuOTUgMi4xNyA0Ljk4QzIuMDYgNS42MiAyIDYuMjcgMiA2Ljk0QzIgMTIuMDUgNS4zNCAxNi4zOSAxMCAxOEMxNC42NiAxNi4zOSAxOCAxMi4wNSAxOCA2Ljk0QzE4IDYuMjcgMTcuOTQgNS42MiAxNy44MyA0Ljk4Wk0xMC4xMyAxNS44MkwxMCAxNS44N0w5Ljg3IDE1LjgyQzYuNDMgMTQuNTYgNC4xMiAxMS4yOSA0LjEyIDcuNzFDNC4xMiA3LjM2IDQuMTQgNy4wMiA0LjE4IDYuNjhMNC4yMiA2LjM3TDQuNTMgNi4zNUM2LjQ2IDYuMjQgOC4yNiA1LjU1IDkuNzYgNC4zNkw5Ljk5IDQuMTdMMTAuMjIgNC4zNkMxMS43MiA1LjU1IDEzLjUyIDYuMjQgMTUuNDUgNi4zNUwxNS43NiA2LjM3TDE1LjggNi42OEMxNS44NCA3LjAyIDE1Ljg2IDcuMzYgMTUuODYgNy43MUMxNS44NiAxMS4zIDEzLjU1IDE0LjU2IDEwLjExIDE1LjgySDEwLjEzWiIgZmlsbD0iIzg3OEJCMCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjAwMDEgNS4xM0M4LjUxMDEyIDYuMjUgNi43NjAxMiA2LjkyIDQuOTAwMTIgNy4wOEM0Ljg4MDEyIDcuMjkgNC44NzAxMiA3LjUgNC44NzAxMiA3LjcxQzQuODcwMTIgMTAuOTQgNi45MjAxMiAxMy44OCA5Ljk5MDEyIDE1LjA3QzEzLjA2MDEgMTMuODggMTUuMTEwMSAxMC45NCAxNS4xMTAxIDcuNzFDMTUuMTEwMSA3LjUgMTUuMTEwMSA3LjI5IDE1LjA4MDEgNy4wOEMxMy4yMjAxIDYuOTIgMTEuNDcwMSA2LjI1IDkuOTgwMTIgNS4xM0gxMC4wMDAxWiIgZmlsbD0iIzg3OEJCMCIvPgo8L3N2Zz4K"},35859(e,t,n){"use strict";e.exports=n.p+"static/media/broom.ffad3c9ebc1002f2.svg"},80203(e,t,n){"use strict";e.exports=n.p+"static/media/confirmation.e3fce232167965e8.svg"},73972(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMnB4IiBoZWlnaHQ9IjIycHgiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSI+CiAgPGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iMTEiIGZpbGw9IiNGRkMxMDciLz4KICA8cGF0aCBkPSJNNSA3LjY2NjcxQzUgNi45MzAzMyA1LjU5Njk1IDYuMzMzMzcgNi4zMzMzMyA2LjMzMzM3SDE1LjY2NjdDMTYuNDAzIDYuMzMzMzcgMTcgNi45MzAzMyAxNyA3LjY2NjcxVjE0LjMzMzRDMTcgMTUuMDY5OCAxNi40MDMgMTUuNjY2NyAxNS42NjY3IDE1LjY2NjdINi4zMzMzM0M1LjU5Njk1IDE1LjY2NjcgNSAxNS4wNjk4IDUgMTQuMzMzNFY3LjY2NjcxWiIgZmlsbD0id2hp
4108dGUiLz4KICA8cGF0aCBkPSJNNSA4LjMzMzM3TDEwLjI2MDQgMTEuODQwM0MxMC43MDgzIDEyLjEzODkgMTEuMjkxNyAxMi4xMzg5IDExLjczOTYgMTEuODQwM0wxNyA4LjMzMzM3TTYuMzMzMzMgMTUuNjY2N0gxNS42NjY3QzE2LjQwMyAxNS42NjY3IDE3IDE1LjA2OTggMTcgMTQuMzMzNFY3LjY2NjcxQzE3IDYuOTMwMzMgMTYuNDAzIDYuMzMzMzcgMTUuNjY2NyA2LjMzMzM3SDYuMzMzMzNDNS41OTY5NSA2LjMzMzM3IDUgNi45MzAzMyA1IDcuNjY2NzFWMTQuMzMzNEM1IDE1LjA2OTggNS41OTY5NSAxNS42NjY3IDYuMzMzMzMgMTUuNjY2N1oiIHN0cm9rZT0iI0ZGQzEwNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPg=="},78573(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDEiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MSA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTIwLjUwMDcgMEM5LjQ1MDc0IDAgMC41IDguOTUwNzQgMC41IDIwLjAwMDdDMC41IDMxLjA0NTIgOS40NTA3NCA0MCAyMC41MDA3IDQwQzMxLjU1MDYgNDAgNDAuNDk4NiAzMS4wNDUyIDQwLjQ5ODYgMjAuMDAwN0M0MC40OTg2IDguOTUwNzQgMzEuNTUwNiAwIDIwLjUwMDcgMFpNMjAuNTAwNyAzNi43Mzc0QzExLjI1NjEgMzYuNzM3NCAzLjc2MjU3IDI5LjI0NTMgMy43NjI1NyAxOS45OTkzQzMuNzYyNTcgMTAuNzUyIDExLjI1NjEgMy4yNTcxNSAyMC41MDA3IDMuMjU3MTVDMjkuNzQ1MyAzLjI1NzE1IDM3LjI0MDEgMTAuNzUzMyAzNy4yNDAxIDIwLjAwMDdDMzcuMjQwMSAyOS4yNDUzIDI5Ljc0NTMgMzYuNzM3NCAyMC41MDA3IDM2LjczNzRaIiBmaWxsPSIjQkE2QTZGIi8+CjxwYXRoIGlkPSJWZWN0b3JfMiIgZD0iTTIyLjYyODIgMjQuMzI2NEwyMy40NDA4IDcuNTg1NkgxNy41OTk2TDE4LjQxNDkgMjQuMzI2NEgyMi42MjgyWiIgZmlsbD0iI0JBNkE2RiIvPgo8cGF0aCBpZD0iVmVjdG9yXzMiIGQ9Ik0yMC41MTQzIDI2LjE2OTZDMTguNTU3MyAyNi4xNjk2IDE3LjE4OTUgMjcuNTM4OCAxNy4xODk1IDI5LjUzNTFDMTcuMTg5NSAzMS40NTU1IDE4LjUxOTQgMzIuODk2NSAyMC40MzcxIDMyLjg5NjVIMjAuNTE0M0MyMi41MDkyIDMyLjg5NjUgMjMuODAyNiAzMS40NTU1IDIzLjgwMjYgMjkuNTM1MUMyMy43NjYxIDI3LjUzODggMjIuNDcyNyAyNi4xNjk2IDIwLjUxNDMgMjYuMTY5NloiIGZpbGw9IiNCQTZBNkYiLz4KPC9nPgo8L3N2Zz4K"},62290(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjYiIGN5PSIyNiIgcj0iMjYiIGZpbGw9IiNBOTQ1NEIiLz4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMCAxMCkiIGZpbGw9IiNBOTQ1NEIiLz4KPHBhdGggZD0iTTE4IDE4TDM0IDM0TTE4IDM0TDM0IDE4TDE4IDM0WiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyLjY2NjY3IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="},11318(e,t,n){"use strict";e.exports=n.p+"static/media/ch.5695d3f8bfde6fbf.png"},23374(e,t,n){"use strict";e.exports=n.p+"static/media/de.3ab0a268d967df3d.png"},33999(e,t,n){"use strict";e.exports=n.p+"static/media/fr.184ab70217c419e6.png"},4609(e,t,n){"use strict";e.exports=n.p+"static/media/ie.31f27c23ab4af1f3.png"},44456(e,t,n){"use strict";e.exports=n.p+"static/media/it.1728029cd1845b3b.png"},84225(e,t,n){"use strict";e.exports=n.p+"static/media/sg.7a20a36f23254262.png"},70827(e,t,n){"use strict";e.exports=n.p+"static/media/uk.8ba0e7c79441e532.png"},24047(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDYgMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjcGk5MDI5Y3k1YSkiPgogICAgICAgIDxwYXRoIGZpbGw9IiNGMUYxRjEiIHN0cm9rZT0iIzg3OEJCMCIgc3Ryb2tlLXdpZHRoPSIuNDQyIiBkPSJNLjIyMS0uNzc5aDUuNzV2MjIuNTU4SC4yMjF6Ii8+CiAgICAgICAgPHBhdGggZD0iTTYuMTkyIDE5LjM5di00LjA3OEgzLjA5NnY0LjA3OGgzLjA5NnptLTMuMDk2IDBIMFYyMmgzLjA5NnYtMi42MXptMC00LjA3OHYtNC4wNzhIMHY0LjA3OGgzLjA5NnptMC00LjA3OGgzLjA5NlY3LjE1NkgzLjA5NnY0LjA3OHptMC00LjA3OFYzLjA3OEgwdjQuMDc4aDMuMDk2em0wLTQuMDc4aDMuMDk2Vi0xSDMuMDk2djQuMDc4eiIgZmlsbD0iIzg3OEJCMCIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJwaTkwMjljeTVhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJyb3RhdGUoOTAgMyAzKSIgZD0iTTAgMGgyMHY2SDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="},58384(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxMiAxMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNsOTdlYWYzYnlhKSI+CiAgICAgICAgPHBhdGggZmlsbD0iI0YxRjFGMSIgc3Ryb2tlPSIjZmZmIiBkPSJNLS4xMDYgOS4xOTN2LTguMWgzMy41djguMXoiLz4KICAgICAgICA8cGF0aCBkPSJNMjkuOTc5LjU5M2gtNi4xMTZ2NC41NWg2LjExNlYuNTkzem0wIDQuNTV2NC41NDloMy45MTV2LTQuNTVIMjkuOTh6bS02LjExNiAwaC02LjExOHY0LjU0OWg2LjExOHYtNC41NXptLTYuMTE4IDBWLjU5NGgtNi4xMTd2NC41NDloNi4xMTd6bS02LjExNyAwSDUuNTEydjQuNTVoNi4xMTZ2LTQuNTV6bS02LjExNiAwVi41OTRILS42MDZ2NC41NDloNi4xMTh6IiBmaWxsPSIjNUM4RTg1Ii8+CiAgICA8L2c+CiAgICA8cGF0aCBzdHJva2U9IiM1QzhFODUiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik0uMjUuMjVoMTEuNXY5Ljc4NkguMjV6Ii8+CiAgICA8ZGVmcz4KICAgICAgICA8Y2xpcFBhdGggaWQ9Imw5N2VhZjNieWEiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDEydjEwLjI4NkgweiIvPgogICAgICAgIDwvY2xpcFBhdGg+CiAgICA8L2RlZnM+Cjwvc3ZnPgo="},31796(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCN6bnUwZ2poMm5hKSIgZmlsbD0iIzVDOEU4NSI+CiAgICAgICAgPHBhdGggZD0iTTcuNiAxNS4zNThjLTIuMTE4LjMtMy42IDEuMDE2LTMuNiAyLjA3QzQgMTguODQ5IDYuNDc2IDIwIDEwIDIwczYtMS4xNTEgNi0yLjU3MWMwLTEuMDU1LTEuNDgyLTEuNzcxLTMuNi0yLjA3bC0uMjk0LjVjMS41OTcuMjIgMi42OTQuNjg3IDIuNjk0IDEuMjI3IDAgLjc1Ny0yLjE0OSAxLjM3MS00LjggMS4zNzFzLTQuOC0uNjE0LTQuOC0xLjM3MWMwLS41MzkgMS4wOS0xLjAwNCAyLjY5Mi0xLjIyNmwtLjI5MS0uNTAyeiIvPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAgMGEuNy43IDAgMCAwLS40MDQuMTI4di4wMDFhLjcxNS43MTUgMCAwIDAtLjA1NS4wNDNsLS4wMDIuMDAxYS43MTMuNzEzIDAgMCAwLS4yMTQuMzQydi4wMDNhLjcxOC43MTggMCAwIDAtLjAyNC4xNXYuMDA2TDkuMy43djE2YS43LjcgMCAxIDAgMS40IDBWOS4xNTVsOC41ODQtMy44MTZhLjcuNyAwIDAgMCAwLTEuMjc5bC05LTQtLjAxLS4wMDRhLjY3OS42
4108NzkgMCAwIDAtLjAyOS0uMDExVi4wNDNBLjcyNC43MjQgMCAwIDAgMTAgMHoiLz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iem51MGdqaDJuYSI+CiAgICAgICAgICAgIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjB2MjBIMHoiLz4KICAgICAgICA8L2NsaXBQYXRoPgogICAgPC9kZWZzPgo8L3N2Zz4K"},20023(e,t,n){"use strict";e.exports=n.p+"static/media/handshake.041064888695b566.svg"},73852(e,t,n){"use strict";e.exports=n.p+"static/media/icon-question.fa3d71c46ace3881.svg"},75176(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjYiIGN5PSIyNiIgcj0iMjYiIGZpbGw9IiNDMDk1NTEiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzk1OV8xMzEyKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMzkgMjYuNzAwNEMzOSAzMy43Njk2IDMzLjI2OTIgMzkuNTAwNCAyNi4yIDM5LjUwMDRDMTkuMTMwOCAzOS41MDA0IDEzLjQgMzMuNzY5NiAxMy40IDI2LjcwMDRDMTMuNCAxOS42MzExIDE5LjEzMDggMTMuOTAwNCAyNi4yIDEzLjkwMDRDMzMuMjY5MiAxMy45MDA0IDM5IDE5LjYzMTEgMzkgMjYuNzAwNFpNMjcuOCAyMC4zMDA0QzI3LjggMjEuMTg0IDI3LjA4MzcgMjEuOTAwNCAyNi4yIDIxLjkwMDRDMjUuMzE2MyAyMS45MDA0IDI0LjYgMjEuMTg0IDI0LjYgMjAuMzAwNEMyNC42IDE5LjQxNjcgMjUuMzE2MyAxOC43MDA0IDI2LjIgMTguNzAwNEMyNy4wODM3IDE4LjcwMDQgMjcuOCAxOS40MTY3IDI3LjggMjAuMzAwNFpNMjYuMiAyNS4xMDA0QzI1LjMxNjMgMjUuMTAwNCAyNC42IDI1LjgxNjcgMjQuNiAyNi43MDA0VjI4LjMwMDRWMzMuMTAwNEMyNC42IDMzLjk4NCAyNS4zMTYzIDM0LjcwMDQgMjYuMiAzNC43MDA0QzI3LjE3NTUgMzQuNzAwNCAyNy44IDMzLjk3NTggMjcuOCAzMy4wMDA0VjMxLjUwMDRWMjYuNzAwNEMyNy44IDI1LjgxNjcgMjcuMDgzNyAyNS4xMDA0IDI2LjIgMjUuMTAwNFoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfOTU5XzEzMTIiPgo8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMCAxMCkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"},37637(e,t,n){"use strict";e.exports=n.p+"static/media/logo.ca486f7ca02dbe73.svg"},35886(e,t,n){"use strict";e.exports=n.p+"static/media/logo.f63d54b4a111362d.svg"},42663(e,t,n){"use strict";e.exports=n.p+"static/media/logo.bf9030c500523c55.svg"},50925(e,t,n){"use strict";e.exports=n.p+"static/media/no_bank_details.a90f0e481aa890ee.svg"},16224(e,t,n){"use strict";e.exports=n.p+"static/media/rocket_green.75118b90b0cfc2f7.svg"},49069(e,t,n){"use strict";e.exports=n.p+"static/media/running_guy.558f16c5f0857456.svg"},91865(e,t,n){"use strict";e.exports=n.p+"static/media/thumbs_up.99233ca8e326a035.svg"},30750(e,t,n){"use strict";e.exports=n.p+"static/media/whatsapp.277d5096c88eb61d.svg"},24463(e,t,n){"use strict";e.exports=n.p+"static/media/calendar.c7722d13c0bb8df3.svg"},19051(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDRweCIgaGVpZ2h0PSI0NHB4IiB2aWV3Qm94PSIwIDAgNDQgNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yNy40OTk5IDI3LjVMMjMuODMzMiAzNi42NjY3TDE2LjQ5OTkgMTYuNUwzNi42NjY2IDIzLjgzMzNMMjcuNDk5OSAyNy41Wk0yNy40OTk5IDI3LjVMMzYuNjY2NiAzNi42NjY3TTEzLjE3ODMgNC4xMDM5NkwxNC42MDE4IDkuNDE2NTVNOS40MTYzNCAxNC42MDJMNC4xMDM3NCAxMy4xNzg1TTI1LjU3NDQgNy40MjU1M0wyMS42ODUzIDExLjMxNDZNMTEuMzE0NiAyMS42ODUzTDcuNDI1NDggMjUuNTc0NCIgc3Ryb2tlPSIjMzA2QzYwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"},23574(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMS44ODkxIDI0LjQ4MThDMTkuNzQxMiAyOC4wNjE2IDE2LjI1ODggMjguMDYxNiAxNC4xMTA5IDI0LjQ4MThDMTEuOTYzIDIwLjkwMiAxMS45NjMgMTUuMDk4IDE0LjExMDkgMTEuNTE4MkMxNi4yNTg4IDcuOTM4MzggMTkuNzQxMiA3LjkzODM4IDIxLjg4OTEgMTEuNTE4Mk0xMC42NjY3IDE1LjI1SDE4TTEwLjY2NjcgMjAuNzVIMThNMzQuNSAxOEMzNC41IDI3LjExMjcgMjcuMTEyNyAzNC41IDE4IDM0LjVDOC44ODczIDM0LjUgMS41IDI3LjExMjcgMS41IDE4QzEuNSA4Ljg4NzMgOC44ODczIDEuNSAxOCAxLjVDMjcuMTEyNyAxLjUgMzQuNSA4Ljg4NzMgMzQuNSAxOFoiIHN0cm9rZT0iIzMwNkM2MCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="},54173(e,t,n){"use strict";e.exports=n.p+"static/media/picture_bad_1.716162a312e2f408.png"},72966(e,t,n){"use strict";e.exports=n.p+"static/media/picture_bad_2.5263b384f056bb74.png"},27585(e,t,n){"use strict";e.exports=n.p+"static/media/picture_good.a689b42c32a49261.png"},76308(e,t,n){"use strict";e.exports=n.p+"static/media/profile_picture.7f86a28bbde6d019.png"},60535(e,t,n){"use strict";e.exports=n.p+"static/media/locations_pins.9b4272266ab55534.png"},50154(e,t,n){"use strict";e.exports=n.p+"static/media/locations_pins_mobile.bf286e6a06688d4f.png"},70584(e,t,n){"use strict";e.exports=n.p+"static/media/map.dd9ab6b91f6a94c5.png"},79828(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEiIGhlaWdodD0iNTEiIHZpZXdCb3g9IjAgMCA1MSA1MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHdpZHRoPSI1MC41NiIgaGVpZ2h0PSI1MC41NiIgcng9IjEyIiBmaWxsPSIjREVFOUU3Ii8+CiAgICA8cGF0aCBkPSJtMzIuMjc1IDE5Ljk3NS01LjI1LTUuMjVhLjY4LjY4IDAgMCAwLS41MjUtLjIyNUgxOWMtLjgyNSAwLTEuNS42NzUtMS41IDEuNXYxOGMwIC44MjUuNjc1IDEuNSAxLjUgMS41aDEyYy44MjUgMCAxLjUtLjY3NSAxLjUtMS41VjIwLjVhLjY4LjY4IDAgMCAwLS4yMjUtLjUyNXpNMjYuNSAxNi4zbDQuMiA0LjJoLTQuMnYtNC4yek0zMSAzNEgxOVYxNmg2djQuNWMwIC44MjUuNjc1IDEuNSAxLjUgMS41SDMxdjEyeiIgZmlsbD0iIzVDOEU4NSIvPgogICAgPHBhdGggZD0iTTIwLjUgMjkuNWg5VjMxaC05di0xLjV6TTIwLjUgMjVoOXYxLjVoLTlWMjV6IiBmaWxsPSIjNUM4RTg1Ii8+Cjwvc3ZnPgo="},17700(e,t,n){"use strict";e.exports=n.p+"static/media/landing_image.efdff931cf18c5e3.png"},75829(e,t,n){"use strict";
4108e.exports=n.p+"static/media/calendar.ecd14c101df4e9c9.svg"},41942(e,t,n){"use strict";e.exports=n.p+"static/media/cleaning.ce9699dbc72b977c.svg"},83670(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCN6MzlrNmdhanVhKSI+CiAgICAgICAgPHBhdGggZD0iTTYuNDE0IDExLjI0OWEuNzM4LjczOCAwIDEgMCAxLjQ3NiAwIC43MzguNzM4IDAgMCAwLTEuNDc2IDB6bTAtMTAuMzM4djIuOTU0SDcuODlWMi40NDdhNS4xNjUgNS4xNjUgMCAwIDEtLjczOCAxMC4yNzkgNS4xNjkgNS4xNjkgMCAwIDEtNS4xNjktNS4xNjljMC0xLjI0LjQzNi0yLjM3OCAxLjE2Ny0zLjI2NGw0LjAwMiA0LjAwMiAxLjA0MS0xLjA0LTUuMDIxLTUuMDIydi4wMTVBNi42MSA2LjYxIDAgMCAwIC41MDYgNy41NTcgNi42NDYgNi42NDYgMCAxIDAgNy4xNTIuOTExaC0uNzM4em01LjE2OCA2LjY0NmEuNzM4LjczOCAwIDEgMC0xLjQ3NyAwIC43MzguNzM4IDAgMCAwIDEuNDc3IDB6bS04Ljg2IDBhLjczOC43MzggMCAxIDAgMS40NzYgMCAuNzM4LjczOCAwIDAgMC0xLjQ3NiAweiIgZmlsbD0iIzFFMUUxRSIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJ6MzlrNmdhanVhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLjUwNiAuOTExKSIgZD0iTTAgMGgxMy4yOTF2MTMuMjkxSDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="},8954(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEiIGhlaWdodD0iNTEiIHZpZXdCb3g9IjAgMCA1MSA1MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHdpZHRoPSI1MC41NiIgaGVpZ2h0PSI1MC41NiIgcng9IjEyIiBmaWxsPSIjREVFOUU3Ii8+CiAgICA8cGF0aCBkPSJtMzIuMjc1IDE5Ljk3NS01LjI1LTUuMjVhLjY4LjY4IDAgMCAwLS41MjUtLjIyNUgxOWMtLjgyNSAwLTEuNS42NzUtMS41IDEuNXYxOGMwIC44MjUuNjc1IDEuNSAxLjUgMS41aDEyYy44MjUgMCAxLjUtLjY3NSAxLjUtMS41VjIwLjVhLjY4LjY4IDAgMCAwLS4yMjUtLjUyNXpNMjYuNSAxNi4zbDQuMiA0LjJoLTQuMnYtNC4yek0zMSAzNEgxOVYxNmg2djQuNWMwIC44MjUuNjc1IDEuNSAxLjUgMS41SDMxdjEyeiIgZmlsbD0iIzVDOEU4NSIvPgogICAgPHBhdGggZD0iTTIwLjUgMjkuNWg5VjMxaC05di0xLjV6TTIwLjUgMjVoOXYxLjVoLTlWMjV6IiBmaWxsPSIjNUM4RTg1Ii8+Cjwvc3ZnPgo="},36433(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA1MSA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHk9Ii41NiIgd2lkdGg9IjUwLjU2IiBoZWlnaHQ9IjUwLjU2IiByeD0iMTIiIGZpbGw9IiNERUU5RTciLz4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNhKSIgZmlsbD0iIzVDOEU4NSI+CiAgICAgICAgPHBhdGggZD0iTTE2IDE1LjA2YTEuNSAxLjUgMCAwIDAtMS41IDEuNXYxMmExLjUgMS41IDAgMCAwIDEuNSAxLjVoMTQuMzc5YTMgMyAwIDAgMSAyLjEyMS44NzlsMyAzdi0xNy4zOGExLjUgMS41IDAgMCAwLTEuNS0xLjVIMTZ6bTE4LTEuNWEzIDMgMCAwIDEgMyAzdjE5LjE5YS43NS43NSAwIDAgMS0xLjI4MS41MjlsLTQuMjgtNC4yOGExLjUgMS41IDAgMCAwLTEuMDYtLjQ0SDE2YTMgMyAwIDAgMS0zLTN2LTEyYTMgMyAwIDAgMSAzLTNoMTh6Ii8+CiAgICAgICAgPHBhdGggZD0iTTIwLjUgMjIuNTZhMS41IDEuNSAwIDEgMS0zIDAgMS41IDEuNSAwIDAgMSAzIDB6bTYgMGExLjUgMS41IDAgMSAxLTMgMCAxLjUgMS41IDAgMCAxIDMgMHptNiAwYTEuNSAxLjUgMCAxIDEtMyAwIDEuNSAxLjUgMCAwIDEgMyAweiIvPgogICAgPC9nPgogICAgPGRlZnM+CiAgICAgICAgPGNsaXBQYXRoIGlkPSJhIj4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTMgMTMuNTYpIiBkPSJNMCAwaDI0djI0SDB6Ii8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="},6752(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIiIGhlaWdodD0iNTEiIHZpZXdCb3g9IjAgMCA1MiA1MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHg9Ii42IiB3aWR0aD0iNTAuNTYiIGhlaWdodD0iNTAuNTYiIHJ4PSIxMiIgZmlsbD0iI0RFRTlFNyIvPgogICAgPHBhdGggZD0iTTM1IDIxYTIgMiAwIDAgMSAyIDJ2NGEyIDIgMCAwIDEtMiAyaC0xLjA2MkE4IDggMCAwIDEgMjYgMzZ2LTJhNiA2IDAgMCAwIDYtNnYtNmE2IDYgMCAxIDAtMTIgMHY3aC0zYTIgMiAwIDAgMS0yLTJ2LTRhMiAyIDAgMCAxIDItMmgxLjA2MmE4IDggMCAwIDEgMTUuODc2IDBIMzV6bS0xMy4yNCA3Ljc4NSAxLjA2LTEuNjk2QTUuOTczIDUuOTczIDAgMCAwIDI2IDI4YTUuOTczIDUuOTczIDAgMCAwIDMuMTgtLjkxMWwxLjA2IDEuNjk2QTcuOTYzIDcuOTYzIDAgMCAxIDI2IDMwYTcuOTYzIDcuOTYzIDAgMCAxLTQuMjQtMS4yMTV6IiBmaWxsPSIjNUM4RTg1Ii8+Cjwvc3ZnPgo="},32370(e){"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzJweCIgaGVpZ2h0PSI3MnB4IiB2aWV3Qm94PSIwIDAgNzIgNzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1LjIgKDc4MTgxKSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT5XYXJuaW5nPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9IkJhdG1hbi0tLVdhbGxldCIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjUtLS1DQS0tQmFsYW5jZS1VbnN1Y2Nlc3NmdWwiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNTIuMDAwMDAwLCAtMTY5LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyBpZD0iV2FybmluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTUyLjAwMDAwMCwgMTY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbCIgZmlsbD0iI0ZBNzU3OCIgY3g9IjM2IiBjeT0iMzYiIHI9IjM2Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgIDx0ZXh0IGlkPSIhIiBmb250LWZhbWlseT0iTnVuaXRvU2Fucy1SZWd1bGFyLCBOdW5pdG8gU2FucyIgZm9udC1zaXplPSI1MCIgZm9udC13ZWlnaHQ9Im5vcm1hbCIgZmlsbD0iI2ZmZmZmZiI+CiAgICAgICAgICAgICAgICAgICAgPHRzcGFuIHg9IjI3LjUiIHk9IjU1Ij4hPC90c3Bhbj4KICAgICAgICAgICAgICAgIDwvdGV4dD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+Cg=="},33723(){},71605(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Schweiz","de":"Deutschland","fr":"Frankreich","ie":"Irland","it":"Italien","sg":"Singapur","uk":"Vereinigtes K\xf6nigreich"},"sign_in":{"back":"Zur\xfcck","button":"Einloggen","email":"Email Adresse","error":"Ung\xfcltiges Passwort oder ung\xfcltige Email.","forgot_password":"Passwort vergessen?","password":"Passwort","title":"Profil Login","languages":{"ch":"Deutsch","ch_en":"English","ch_fr":"Fran\xe7aise"}}
4108,"password_recovery":{"desc":"Geben Sie Ihre Email Adresse ein, mit der Sie sich registriert haben. Wir senden Ihnen dann einen Link, mit dem Sie Ihr Passwort \xe4ndern k\xf6nnen.","email":"Email adresse","error":"Ung\xfcltige Email","send":"Gesendet","success":"Email gesendet.","title":"Sie haben Ihr Passwort?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"Sie sind nicht berechtigt diese seite anzuzeigen","header":"Ups!","subheader":"Sie sind nicht berechtigt, diese Seite zu sehen","cta":"Zur\xfcck zur Homepage"},"404":{"title":"Diese Seite konnte nicht gefunden werden","header":"Ups!","subheader":"Diese Seite konnte nicht gefunden werden.","cta":"Zur\xfcck zur Homepage","help":"Brauchen Sie Hilfe?"},"critical":{"line2":"Etwas ist schiefgelaufen","restart":"App neu starten","title":"Oh nein!"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"Neu","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OR","phoneNumber":"800-989","updates":{"ota_update":{"main":"Eine Aktualisierung ist erforderlich um fortzufahren. Die App wird neu gestartet, sobald die Aktualisierung abgeschlossen ist."},"finished":{"body":"Bitte starten Sie die App jetzt neu","cta":"App neu starten","headline":"Update abgeschlossen!","headline_downloaded":"Ein neues Update wurde ver\xf6ffentlicht","new_update":"Bitte installieren Sie das neue Update, um die beste Erfahrung zu genie\xdfen.","install_later":"Sp\xe4ter installieren","install_now":"Jetzt installieren"},"in_progress":{"installing":"Wir installieren das neueste App-Update f\xfcr Sie!"}}},"offline_banner":{"text":"Keine Verbindung"},"barriers":{"steps":{"registration":"Anmeldung","upload_documents":"Dokumente Hochladen"}},"cancellation_reasons":{"EC_1":"Kunde im Urlaub","EC_3":"Der Kunde m\xf6chte diesen Termin auslassen","EC_6":"Ich war krank","EC_99":"Andere"},"change_request":{"clashing_warning":"Diese \xc4nderung \xfcberschneidet sich mit einem anderen Termin, Sie k\xf6nnen sie annehmen oder ablehnen.","success":{"accepted":"\xc4nderungsanfrage best\xe4tigt","cta":"OK","rejected":"\xc4nderungsanfrage abgelehnt"},"title":"\xc4nderungsanfrage"},"dashboard":{"my_earnings":{"current":"Aktuelle Verdienst ({{month}})","next":"Gesch\xe4tzter Verdienst ({{month}})","title":"Mein Verdienst"},"not_post_agreed_events":{"confirm_modal":{"back":"Nein","confirm":"Ja","message_first":"M\xf6chtest Du die Reinigung vom ","message_last":" best\xe4tigen?","success":{"message":"Vielen Dank!","title":"Best\xe4tigt!"}},"convert_modal":{"ask":"Bieten Sie {{customerName}} direkt einen weiteren Termin an.","cta":"Jetzt {{customerName}} schreiben","description":"Mit dauerhaften Kunden k\xf6nnen Sie sich ein regelm\xe4\xdfiges Einkommen sichern.","small":"(Vergessen Sie nicht, Ihre Verf\xfcgbarkeit anzugeben!)","title":"M\xf6chten Sie erneut bei {{customerName}} reinigen?"},"edit":{"agreed_with_customer":"Ja, der Kunde hat dem zugestimmt","cancelled":{"confirm_reason":"Bitte gebe einen Grund an:","title":"Termin hat nicht statt gefunden "},"date_time":{"confirm_reason":"Bitte best\xe4tigen Sie das neue Datum und die Zeit:","title":"Datum / Uhrzeit hat sich ge\xe4ndert"},"duration":{"confirm_reason":"Bitte best\xe4tigen Sie die neue Dauer:","title":"Dauer hat sich ge\xe4ndert"},"messages":{"agreed_message":"Der Zahlungsdienstleister wird in K\xfcrze die Zahlung bei Ihrem Kunden einholen. ","agreed_title":"Zahlung best\xe4tigt!","cancelled_message":"Die Reinigung wurde storniert","cancelled_title":"Die Reinigung wurde storniert!","not_agreed_message":"Der Kunde erh\xe4lt nun eine Nachricht um die \xc4nderung zu best\xe4tigen.","not_agreed_title":"Email gesendet!","other_message":"Wir schauen uns die \xc4nderungsinformation an und melden uns bei Ihnen.","other_title":"Anfrage gesendet"},"not_agreed_with_customer":"Der Kunde hat der \xc4nderung nicht zugestimmt","other":{"confirm_reason":"Bitte geben Sie uns n\xe4here Details","placeholder":"Schreiben Sie uns hier ...","title":"Andere \xc4nderung"},"send":"Senden","title":"Was hat sich ver\xe4ndert?"},"modify":"Anpassen","pending_customer_confirmation":"Ausstehende Kundenbest\xe4tigung","review_modal":{"body":"Nachdem Sie den Termin mit {{customerName}} abgeschlossen haben. Wie gut hat Ihnen dieser Termin gefallen?","cta":"Hinterlassen Sie ein \xf6ffentliches Kommentar!","title":"Wie bewerten Sie diesen Termin? "},"skip":"\xdcberspringen","subtitle":"Best\xe4tigen Sie, ob Ihre Termine stattgefunden haben","title":"Auszahlungen anfordern"},"requests":{"new_customers":{"subtitle":"Von neuen Kunden ausgew\xe4hlt","tab":"Neue Kunden"},"new_requests":{"subtitle":"Neue Anfragen von bestehenden Kunden","tab":"Ehemalige Kunden"},"title":"Neue Anfragen"},"unconfirmed_events":{"edit":{"confirm_reason":"Bitte geben Sie uns n\xe4here Details","messages":{"cta":"Zur\xfcck","message":"Ihre \xc4nderungen wurden gespeichert","title":"Termin ge\xe4ndert"},"placeholder":"Schreiben Sie uns hier ...","send":"Senden","title":"Was ist passiert?"},"modify":"Anpassen","success_cta":"Schlie\xdfen","success_message":"Ihr Termin wurde erfolgreich best\xe4tigt","success_title":"Termin best\xe4tigt","title":"Ihr erster Auftrag"}},"event_cancellation":{"cancellation_claim_cta":"Aufwandsentsch\xe4digung fordern","cancellation_claim_description":"Die Stornierung erfolgte weniger als {{hours}} Stunden vor dem Termin.","cancelled":"Storniert","support_tip":{"description":"Ein oder mehrere Termine wurden storniert, Sie haben von Ihrem Kunden jedoch eine Entsch\xe4digung erhalten. Helpling nimmt daf\xfcr keine Provision.","title":"F\xfcr diesen Termin haben Sie eine Spende \xfcber {{amount}} von Ihrem Kunden {{amount}} erhalten"},"title":"Einer Ihrer Termine wurde von einem Kunden storniert."},"frequency_names":{"finite":"Begrenzt","fortnight":"Jede zweite Woche","once":"Einmalig","week":"W\xf6chentlich"},"hours":{"one":"1 Stunde","other":"{{count}} Stunden"},"menu":{"calendar":"Kalender","more":"Mehr","offers":"Anfragen"},"new_request":{"clashing_warning":"Diese neue Anfrage \xfcberschneidet sich mit einem anderen Termin, Sie k\xf6nnen sie annehmen oder ablehnen.","success":{"accepted":"Neue Anfrage best\xe4tigt","rejected":"Neue Anfrage"}},"notifications":{"covid":{"title":"Coronavirus (COVID-19): Aktuelle Informationen"},"one_relationship_limit":{"description":"Es ist fast geschafft! Sobald Sie Ihre erste Reinigung erfolgreich durchgef\xfchrt haben erhalten Sie unbegrenzten Zugriff auf unseren Pool von Neukunden, die bereits auf Sie warten!","title":"Nur noch 1 Schritt ..."},"show_share_banner":{"title":"NEU: Teilen Sie jetzt Ihren pers\xf6nlichen Link und erweitern Sie dadurch aktiv Ihren Kundenstamm!"},"suspended":{"description":"Daher stehen Ihnen aktuell nicht alle Funktionen zur Verf\xfcgung. Bitte rufen Sie uns zeitnah unter +41 435 051 514 zur\xfcck.","title":"Sie haben wichtiges Kundenfeedback erhalten!"},"title":"Nachrichten"},"price":"CHF {{price}}","stripe_account":{"document_verification_faq":{"link":"Sie brauchen Hilfe?"}}}')},1965(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Switzerland","de":"Germany","fr":"France","ie":"Ireland","it":"Italy","sg":"Singapore","uk":"United Kingdom"},"sign_in":{"back":"Take me back","button":"Sign In","email":"Email Address","error":"Invalid email or password.","forgot_password":"Forgot your password?","password":"Password","title":"Login to your account"}
4108,"password_recovery":{"desc":"Enter the email address you signed up with and we\'ll\\nsend you a link to reset your password by email.","email":"Email address","error":"Invalid email","send":"Send","success":"Email was sent.","title":"Forgotten your password?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"You are not authorized to view this page","header":"OOOPS!!","subheader":"You are not authorized to view this page","cta":"Back to home page"},"404":{"title":"This page was not found","header":"OOOPS!!","subheader":"This page was not found.","cta":"Back to home page","help":"Need help?"},"critical":{"line2":"Something went wrong","restart":"Restart App","title":"Oh no!"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Your session has expired. Please log in again."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"New","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OR","phoneNumber":"800-989","updates":{"ota_update":{"main":"An update is required to continue - the app will restart once the update is complete."},"finished":{"body":"Please restart the app now","cta":"Restart App","headline":"Update complete!","headline_downloaded":"A new update has been released","new_update":"Please install the new update to enjoy the best experience.","install_later":"Install later","install_now":"Install now"},"in_progress":{"installing":"We are installing the latest app update for you!"}}},"offline_banner":{"text":"No internet"},"barriers":{"steps":{"registration":"Registration","upload_documents":"Upload Documents"}},"cancellation_reasons":{"EC_1":"Customer on holiday","EC_3":"Customer wanted to skip booking","EC_6":"I was ill","EC_99":"Other"},"change_request":{"clashing_warning":"This change is interfering with another event, you can accept or decline it.","success":{"accepted":"Change request accepted","cta":"OK","rejected":"Change request rejected"},"title":"Change request"},"dashboard":{"my_earnings":{"current":"Estimated earnings this month","current_paid":{"title":"Current earnings in {{month}}","updated":"Updated: "},"next":"Estimated earnings in {{month}}","title":"My Earnings","view_history":"View history"},"not_post_agreed_events":{"confirm_modal":{"back":"No, take me back","confirm":"Yes","message_first":"Do you confirm that the cleaning event on ","message_last":" already occured?","success":{"message":"We will take the customer payment shortly","title":"Confirmed!"}},"convert_modal":{"ask":"Why not ask {{customerName}} to book you again?","cta":"Talk to {{customerName}}","description":"Regular customers help you get more income.","small":"(Don\u2019t forget to tell them when you are available!)","title":"Want to clean for {{customerName}} again?"},"edit":{"agreed_with_customer":"Yes, I agreed the change with the customer","cancelled":{"confirm_reason":"Please tell us the reason:","title":"Booking was cancelled"},"date_time":{"confirm_reason":"Please confirm the new date and time:","title":"Date or time changed"},"duration":{"confirm_reason":"Please confirm the new duration:","title":"Duration changed"},"messages":{"agreed_message":"We will take the customer payment shortly.","agreed_title":"Payment confirmed!","cancelled_message":"The clean has been cancelled.","cancelled_title":"Clean cancelled!","not_agreed_message":"We have sent an email to the customer to confirm the change.","not_agreed_title":"Email sent!","other_message":"We will review the change information and get back to you shortly.","other_title":"Request sent"},"not_agreed_with_customer":"I have not agreed the change with the customer","other":{"confirm_reason":"Please provide more details","placeholder":"Write here ...","title":"Other change"},"send":"Send","title":"What changed?"},"modify":"Modify","pending_customer_confirmation":"Pending customer confirmation","review_modal":{"body":"Now that you\'ve completed your appointment with {{customerName}}, what was your overall experience like?","cta":"Leave a public Comment!","title":"How would you rate this appointment?"},"skip":"Skip","subtitle":"Confirm if your events happened","title":"Claim payments"},"requests":{"new_customers":{"subtitle":"Selected by new customers","tab":"New customers"},"new_requests":{"subtitle":"New request from existing customers","tab":"Previous customers"},"title":"New requests"},"unconfirmed_events":{"edit":{"confirm_reason":"Please provide more details","messages":{"cta":"Back","message":"Your changes were saved","title":"Event edited"},"placeholder":"Write here ...","send":"Send","title":"What happened?"},"modify":"Modify","success_cta":"Close","success_message":"Your event was confirmed successfully","success_title":"Event confirmed","title":"Your Upcoming Booking"}},"event_cancellation":{"cancellation_claim_cta":"Claim compensation","cancellation_claim_description":"The cancellation happened less than {{hours}} hours before the event.","cancelled":"Cancelled","support_tip":{"description":"One or more of your events were canceled but your customer gave you a compensation. Helpling doesn\'t take any commission on this.","title":"For this event you received a {{amount}} donation from {{customer}}"},"title":"One of your events was cancelled by a customer."},"frequency_names":{"finite":"Finite","fortnight":"Every two weeks","month":"Month","once":"Once","week":"Weekly"},"hours":{"one":"1 hour","other":"{{count}} hours"},"menu":{"calendar":"Calendar","more":"More","offers":"Offers"},"new_request":{"clashing_warning":"This new request is interfer
4108ing with another event, you can accept or decline it.","success":{"accepted":"New request accepted","rejected":"New request"}},"notifications":{"covid":{"title":"Coronavirus (COVID-19): Current Information"},"one_relationship_limit":{"description":"Don\'t worry - you are almost there. As soon as your next clean was successful you will get access to an unlimited customer base.","title":"One clean away!"},"show_share_banner":{"title":"New: share your profile online and get new customers!"},"suspended":{"description":"Please give Helpling a call at +41 435 051 514 to speak with us and resolve this issue!","title":"There is an issue with your account!"},"title":"Notifications"},"price":"CHF {{price}}","stripe_account":{"document_verification_faq":{"link":"Need help?"}}}')},89534(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Suisse","de":"Allemagne","fr":"France","ie":"Irlande","it":"Italie","sg":"Singapour","uk":"Royaume-Uni"},"sign_in":{"back":"Revenir en arri\xe8re","button":"Se connecter","email":"Adresse Email","error":"Email ou mot de passe incorrect.","forgot_password":"Mot de passe Oubli\xe9?","password":"Mot de passe","title":"Connectez-vous \xe0 votre compte"},"password_recovery":{"desc":"Entrez l\'adresse email avec laquelle vous vous \xeates inscrit et nous vous enverrons un lien\\npour r\xe9initialiser votre mot de passe par email.","email":"Addresse email","error":"Email incorrect","send":"Envoyer","success":"Un email a \xe9t\xe9 envoy\xe9.","title":"Mot de passe oubli\xe9 ?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"Vous n\'\xeates pas autoris\xe9s \xe0 voir cette page !","header":"Ouuups !","subheader":"Vous n\'\xeates pas autoris\xe9s \xe0 voir cette page !","cta":"Retour \xe0 l\'accueil"},"404":{"title":"Page introuvable","header":"Ouuups !","subheader":"Page introuvable","cta":"Retour \xe0 l\'accueil","help":"Besoin d\'aide ?"},"critical":{"line2":"Une erreur est survenue","restart":"Relancer l\'application","title":"Oh non !"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Votre session a expir\xe9. Veuillez vous reconnecter."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"Nouveau","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OR","phoneNumber":"800-989","updates":{"ota_update":{"main":"Une mise \xe0 jour est n\xe9cessaire pour continuer - l\'application red\xe9marrera une fois celle-ci effectu\xe9e."},"finished":{"body":"Veuillez red\xe9marrer l\'application maintenant","cta":"Red\xe9marrer l\'application","headline":"Mise \xe0 jour termin\xe9e\xa0!","headline_downloaded":"Une nouvelle mise \xe0 jour a \xe9t\xe9 publi\xe9e","new_update":"Veuillez installer la nouvelle mise \xe0 jour pour profiter de la meilleure exp\xe9rience.","install_later":"Installer plus tard","install_now":"Installer maintenant"},"in_progress":{"installing":"Nous installons la derni\xe8re mise \xe0 jour de l\'application pour vous\xa0!"}}},"offline_banner":{"text":"Hors connexion"},"barriers":{"steps":{"registration":"Inscription","upload_documents":"T\xe9l\xe9charger Documents"}},"cancellation_reasons":{"EC_1":"Client en vacances","EC_3":"Client souhaitait passer cette r\xe9servation","EC_6":"J\'\xe9tais malade","EC_99":"Autre"},"change_request":{"clashing_warning":"Ce changement est en conflit avec une autre prestation, vous pouvez l\'accepter ou le refuser.","success":{"accepted":"Demande de changement accept\xe9e","cta":"OK","rejected":"Demande de changement refus\xe9e"},"title":"Demande de changement"},"dashboard":{"my_earnings":{"current":"Chiffre d\'affaires du mois","current_paid":{"title":"Revenus actuels en {{month}}","updated":"Mis \xe0 jour : "},"next":"Estimation CA en {{month}}","title":"Mon chiffre d\'affaires","view_history":"Voir l\'historique"},"not_post_agreed_events":{"confirm_modal":{"back":"Non","confirm":"Oui","message_first":"Confirmes-tu que la prestation du ","message_last":"  a bien \xe9t\xe9 effectu\xe9e?","success":{"message":"Merci!","title":"Confirm\xe9!"}},"convert_modal":{"ask":"Pourquoi ne pas demander \xe0 {{customerName}} de commander une nouvelle prestation?","cta":"Parler avec {{customerName}}","description":"Un client r\xe9gulier vous permet de g\xe9n\xe9rer un chiffre d\'affaires stable","small":"(N\'oubliez pas de leur pr\xe9ciser vos disponibilit\xe9s)","title":"Vous souhaitez prester de nouveau chez {{customerName}}?"},"edit":{"agreed_with_customer":"Oui, je me suis mis d\u2019accord avec le client","cancelled":{"confirm_reason":"Merci de nous communiquer la raison :","title":"R\xe9servation a \xe9t\xe9 annul\xe9e"},"date_time":{"confirm_reason":"Merci de confirmer la nouvelle date et l\'heure :","title":"Date ou heure modifi\xe9e"},"duration":{"confirm_reason":"Veuillez svp confirmer la nouvelle dur\xe9e :","title":"Dur\xe9e modifi\xe9e"},"messages":{"agreed_message":"Vous devriez recevoir le paiement du client rapidement.","agreed_title":"Paiement confirm\xe9 !","cancelled_message":"Cette prestation a \xe9t\xe9 annul\xe9e.","cancelled_title":"Prestation annul\xe9e !","not_agreed_message":"Email envoy\xe9 au client afin de confirmer le changement. ","not_agreed_title":"Email envoy\xe9 !","other_message":"Nous allons \xe9tudier cette demande de changement et revenir vers vous d\xe8s que possible.","other_title":"Demande envoy\xe9e"},"not_agreed_with_customer":"Je ne me suis pas mis d\'accord sur ce changement avec le client","other":{"confirm_reason":"Veuillez svp donner plus de d\xe9tails","placeholder":"Ecrivez ici...","title":"Autre changement"},"send":"Envoy\xe9","title":"Qu\'est qui a chang\xe9 ?"},"modify":"Modifier","pending_customer_confirmation":"Demande de modification client en attente","review_modal":{"body":"D\xeetes-nous comme s\'est pass\xe9e votre exp\xe9rience avec {{customerName}}.","cta":"Laissez un avis public","title":"Quelle note donnez-vous \xe0 cette prestation ?"},"skip":"Passer","subtitle":"Confirmer que la prestation a eu lieu ","title":"Activer le paiement"},"requests":{"new_customers":{"subtitle":"S\xe9lectionn\xe9(e) par des nouveaux clients","tab":"Nouveaux clients"},"new_requests":{"subtitle":"Nouvelles demandes de clients existants","tab":"Anciens clients"},"title":"Nouvelles demandes"},"unconfirmed_events":{"edit":{"confirm_reason":"Veuillez svp donner plus de d\xe9tails","messages":{"cta":"Retour","message":"Vos modifications ont \xe9t\xe9 enregistr\xe9es","title":"Prestation modifi\xe9e"},"placeholder":"Ecrivez ici...","send":"Envoy\xe9","title":"Que s\'est-il pass\xe9 ? "},"modify":"Modifier","success_cta":"Fermer","success_message":"Votre prestation a \xe9t\xe9 confirm\xe9e avec succ\xe8s","success_title":"Prestation confirm\xe9e","title":"Votre prochaine r\xe9servation"}},"event_cancellation":{"cancellation_claim_cta":"Demander des frais d\'annulation tardive","cancellation_claim_description":"L\'annulation a \xe9t\xe9 effectu\xe9e moins de {{hours}} heures avant la prestation.","cancelled":"Annul\xe9","support_tip":{"description":"Une ou plusieurs de vos prestations ont \xe9t\xe9 annul\xe9es mais votre client vous a envoy\xe9 un paiement de solidarit\xe9 pour vous d\xe9dommager. Helpling ne prend pas de commission sur cette transaction. ","title":"Vous avez re\xe7u un don de {{amount}} de {{customer}} pour cette prestation."},"title":"Une de vos prestations a \xe9t\xe9 annul\xe9e par un client."},"frequency_names":{"finite":"Finie","fortnight":"Toutes les deux semaines","month":"Mensuel","once":"Ponctuel","week":"Hebdomadaire"},"hours":{"one":"1 heure","other":"{{count}} heures"},"menu":{"calendar":"Calendrier","more":"Plus","offers":"Offres"},"new_request":{"clashing_warning":"Cette nouvelle demande est en conflit avec un autre \xe9v\xe9nement, vous pouvez l\'accepter ou la refuser.","success":{"accepted":"Nouvelle demande accept\xe9e","rejected":"Nouvelle demande"}},"notifications":{"covid":{"title":"Coronavirus (COVID-19): Politique Helpling"},"show_share_banner":{"title":"Nouveau : partagez votre profil en ligne et acqu\xe9rez de nouveaux clients ! "},"suspended":{"description":"Suite \xe0 ce probl\xe8me, vous pouvez nous joindre au +41 435 051 514 ou par email \xe0 [email protected] pour que l\'on puisse vous apporter une solution.","title":"Nous rencontrons un probl\xe8me avec votre compte."},"title":"Notifications"},"price":"CHF {{price}}","stripe_account":{"document_verification_faq":{"link":"Besoin d\'aide ?"}}}')},90369(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Schweiz","de":"Deutschland","fr":"Frankreich","ie":"Irland","it":"Italien","sg":"Singapur","uk":"Vereinigtes K\xf6nigreich"},"sign_in":{"back":"Zur\xfcck","button":"Einloggen","email":"Email Adresse","error":"Ung\xfcltiges Passwort oder ung\xfcltige Email.","forgot_password":"Passwort vergessen?","password":"Passwort","title":"Profil Login","languages":{"de":"Deutsch","de_en":"English"}}
4108,"password_recovery":{"desc":"Geben Sie Ihre Email Adresse ein, mit der Sie sich registriert haben. Wir senden Ihnen dann einen Link, mit dem Sie Ihr Passwort \xe4ndern k\xf6nnen.","email":"Email adresse","error":"Ung\xfcltige Email","send":"Gesendet","success":"Email gesendet.","title":"Sie haben Ihr Passwort?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"Sie sind nicht berechtigt diese seite anzuzeigen","header":"Ups!","subheader":"Sie sind nicht berechtigt, diese Seite zu sehen","cta":"Zur\xfcck zur Homepage"},"404":{"title":"Diese Seite konnte nicht gefunden werden","header":"Ups!","subheader":"Diese Seite konnte nicht gefunden werden.","cta":"Zur\xfcck zur Homepage","help":"Brauchen Sie Hilfe?"},"critical":{"line2":"Etwas ist schiefgelaufen","restart":"App neu starten","title":"Oh nein!"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"Neu","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"ODER","phoneNumber":"800-989","updates":{"ota_update":{"main":"Eine Aktualisierung ist erforderlich um fortzufahren. Die App wird neu gestartet, sobald die Aktualisierung abgeschlossen ist."},"finished":{"body":"Bitte starten Sie die App jetzt neu","cta":"App neu starten","headline":"Update abgeschlossen!","headline_downloaded":"Ein neues Update wurde ver\xf6ffentlicht","new_update":"Bitte installieren Sie das neue Update, um die beste Erfahrung zu genie\xdfen.","install_later":"Sp\xe4ter installieren","install_now":"Jetzt installieren"},"in_progress":{"installing":"Wir installieren das neueste App-Update f\xfcr Sie!"}}},"offline_banner":{"text":"Keine Verbindung"},"back":"Zur\xfcck","barriers":{"next_step":"N\xe4chster Schritt","steps":{"in_house_training":"MySkills Academy","registration":"Registrierung","registration_fee":"Registrierungsgeb\xfchr","upload_documents":"Dokumente hochladen","verify_documents":"Dokumentenpr\xfcfung","webinar":"Webinar"}},"cancellation_reasons":{"EC_1":"Kunde im Urlaub","EC_3":"Der Kunde m\xf6chte diesen Termin auslassen","EC_6":"Ich war krank","EC_99":"Andere"},"change_request":{"clashing_warning":"Diese \xc4nderung \xfcberschneidet sich mit einem anderen Termin, Sie k\xf6nnen sie annehmen oder ablehnen.","success":{"accepted":"\xc4nderungsanfrage best\xe4tigt","cta":"OK","rejected":"\xc4nderungsanfrage abgelehnt"},"title":"\xc4nderungsanfrage"},"dashboard":{"my_earnings":{"current":"Aktuelle Verdienst ({{month}})","current_paid":{"title":"Bisheriger Verdienst im {{month}}","updated":"Aktualisiert:"},"next":"Gesch\xe4tzter Verdienst ({{month}})","title":"Mein Verdienst","view_history":"Historie ansehen"},"not_post_agreed_events":{"charges_not_enabled":"Es scheint Probleme mit Ihrer angegebenen Bankverbindung zu geben. Bitte kontaktieren Sie den Helpling Service per E-Mail an [email protected].","confirm_modal":{"back":"Nein","confirm":"Ja","message_first":"M\xf6chten Sie die Rechnung f\xfcr die Reinigung vom ","message_last":" best\xe4tigen?","success":{"message":"Der Zahlungsdienstleister wird in K\xfcrze die Zahlung bei Ihrem Kunden einholen.","title":"Best\xe4tigt!"}},"convert_modal":{"ask":"Bieten Sie {{customerName}} direkt einen weiteren Termin an.","cta":"Jetzt {{customerName}} schreiben","description":"Mit dauerhaften Kunden k\xf6nnen Sie sich ein regelm\xe4\xdfiges Einkommen sichern.","small":"(Vergessen Sie nicht, Ihre Verf\xfcgbarkeit anzugeben!)","title":"M\xf6chten Sie erneut bei {{customerName}} reinigen?"},"edit":{"agreed_with_customer":"Ja, der Kunde hat dem zugestimmt","cancelled":{"confirm_reason":"Bitte gebe einen Grund an:","title":"Termin hat nicht statt gefunden "},"date_time":{"confirm_reason":"Bitte best\xe4tigen Sie das neue Datum und die Zeit:","title":"Datum / Uhrzeit hat sich ge\xe4ndert"},"duration":{"confirm_reason":"Bitte best\xe4tigen Sie die neue Dauer:","title":"Dauer hat sich ge\xe4ndert"},"messages":{"agreed_message":"Der Zahlungsdienstleister wird in K\xfcrze die Zahlung bei Ihrem Kunden einholen. ","agreed_title":"Zahlung best\xe4tigt!","cancelled_message":"Die Reinigung wurde storniert","cancelled_title":"Die Reinigung wurde storniert!","not_agreed_message":"Der Kunde erh\xe4lt nun eine Nachricht um die \xc4nderung zu best\xe4tigen.","not_agreed_title":"Email gesendet!","other_message":"Wir schauen uns die \xc4nderungsinformation an und melden uns bei Ihnen.","other_title":"Anfrage gesendet"},"not_agreed_with_customer":"Der Kunde hat der \xc4nderung nicht zugestimmt","other":{"confirm_reason":"Bitte geben Sie uns n\xe4here Details","placeholder":"Schreiben Sie uns hier ...","title":"Andere \xc4nderung"},"send":"Senden","title":"Was hat sich ver\xe4ndert?"},"modify":"Anpassen","pending_customer_confirmation":"Ausstehende Kundenbest\xe4tigung","review_modal":{"body":"Nachdem Sie den Termin mit {{customerName}} abgeschlossen haben. Wie gut hat Ihnen dieser Termin gefallen?","cta":"Hinterlassen Sie ein \xf6ffentliches Kommentar!","title":"Wie bewerten Sie diesen Termin? "},"skip":"\xdcberspringen","subtitle":"Best\xe4tigen Sie, ob Ihre Termine stattgefunden haben","title":"Auszahlungen anfordern"},"requests":{"new_customers":{"subtitle":"Von neuen Kunden ausgew\xe4hlt","tab":"Neue Kunden"},"new_requests":{"subtitle":"Neue Anfragen von bestehenden Kunden","tab":"Ehemalige Kunden"},"title":"Neue Anfragen"},"unconfirmed_events":{"edit":{"confirm_reason":"Bitte geben Sie uns n\xe4here Details","messages":{"cta":"Zur\xfcck","message":"Ihre \xc4nderungen wurden gespeichert","title":"Termin ge\xe4ndert"},"placeholder":"Schreiben Sie uns hier ...","send":"Senden","title":"Was ist passiert?"},"modify":"Anpassen","success_cta":"Schlie\xdfen","success_message":"Ihr Termin wurde erfolgreich best\xe4tigt","success_title":"Termin best\xe4tigt","title":"Ihr erster Auftrag"}},"event_cancellation":{"cancellation_claim_cta":"Aufwandsentsch\xe4digung fordern","cancellation_claim_description":"Die Stornierung erfolgte weniger als {{hours}} Stunden vor dem Termin.","cancelled":"Storniert","claim":{"call_us":{"cta":"Zur\xfcck","description":"Um Ihr Recht auf eine Geb\xfchr zu pr\xfcfen, kontaktieren Sie gern den Helpling Service.","title":"Sie haben bisher noch nicht mit {{name}} zusammengearbeitet"},"modal":{"description":"Da die Stornierung durch Ihren Kunden erst {{hours}} Stunden vor der vereinbarten Zeit des Termins eingegangen ist, haben Sie das Recht, Ihrem Kunden eine Geb\xfchr in folgender H\xf6he in Rechnung zu stellen:","title":"Schade, dass Ihnen Ihr Kunde {{name}} kurzfristig abgesagt hat."},"success":{"cta":"Zur\xfcck","message":"Nachdem Ihr Kunden Ihre Forderung in H\xf6he von {{amount}}\u20ac erfolgreich bezahlt hat, wird Ihnen der Betrag automatisch mit der n\xe4chsten Auszahlung \xfcberwiesen.","title":"Ihre Forderung wird unverz\xfcglich an Ihren Kunden weitergegeben."}},"support_tip":{"description":"Ein oder mehrere Termine wurden storniert, Sie haben von Ihrem Kunden jedoch eine Entsch\xe4digung erhalten. Helpling nimmt daf\xfcr keine Provision.","title":"F\xfcr diesen Termin haben Sie eine Spende \xfcber {{amount}} von Ihrem Kunden {{amount}} erhalten"},"title":"Einer Ihrer Termine wurde von einem Kunden storniert."},"frequency_names":{"finite":"Begrenzt","fortnight":"Jede zweite Woche","month":"Monatlich","once":"Einmalig","week":"W\xf6chentlich"},"hours":{"one":"1 Stunde","other":"{{count}} Stunden"},"menu":{"calendar":"Kalendar","more":"Mehr","offers":"Anfragen"},"new_request":{"clashing_warning":"Diese neue Anfrage \xfcberschneidet sich mit einem anderen Termin, Sie k\xf6nnen sie annehmen oder ablehnen.","success":{"accepted":"Neue Anfrage best\xe4tigt","rejected":"Neue Anfrage"}},"notifications":{"awaiting_onfido":{"title":"Ihr Account befindet sich aktuell noch in der Dokumentenpr\xfcfung.\\nSobald Ihr Ausweis erfolgreich gepr\xfcft wurde, werden wir Sie umgehend informieren."},"covid":{"title":"Coronavirus (COVID-19): Aktuelle Informationen"},"one_relationship_limit":{"description":"Es ist fast geschafft! Sobald Sie Ihre erste Reinigung erfolgreich durchgef\xfchrt haben erhalten Sie unbegrenzten Zugriff auf unseren Pool von Neukunden, die bereits auf Sie warten!","title":"Nur noch 1 Schritt ..."}
4108,"show_references":{"description":"Optimieren Sie Ihr Profil, indem Sie Referenzen von fr\xfcheren Arbeitgebern oder Kunden anfragen.","title":"Referenzen anfragen"},"show_share_banner":{"title":"NEU: Teilen Sie jetzt Ihren pers\xf6nlichen Link und erweitern Sie dadurch aktiv Ihren Kundenstamm!"},"suspended":{"description":"Aus diesem Grund erhalten sie aktuell keine weiteren Kundenanfragen.\\nUm Ihr Profil f\xfcr Kunden wieder sichtbar zu machen, kontaktieren Sie den Helpling Service unter 030 568 39 280.","title":"Sie haben wichtiges Kundenfeedback erhalten!"},"title":"Nachrichten"},"price":"{{price}}\xa0\u20ac","relationship_cancellation":{"title":"Buchung storniert"},"stripe_account":{"document_verification_faq":{"link":"Probleme?  Dies sind h\xe4ufige Fehler:"},"status_2":{"description":"Damit Sie Auszahlungen erhalten, ist es erforderlichlich, dass Sie ein Ausweisdokument pr\xfcfen lassen.","title":"Achtung: Jetzt Dokumente verifizieren"},"status_3":{"description":"Auszahlung am {{date}} nicht m\xf6glich, bis ein Ausweisdokument gepr\xfcft wurde","title":"WARNUNG: Jetzt Dokumente verifizieren"},"status_4":{"description":"Eine Auszahlung ist nicht m\xf6glich, bis Ihr Ausweisdokument verifiziert wurde. ","title":"WARNUNG: Jetzt Dokumente verifizieren"},"status_5":{"description":"Eine Auszahlung ist aktuell nicht m\xf6glich. Bitte kontaktieren Sie uns auf [email protected]","title":"WARNUNG: Auszahlung nicht m\xf6glich"}}}')},28281(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Switzerland","de":"Germany","fr":"France","ie":"Ireland","it":"Italy","sg":"Singapore","uk":"United Kingdom"},"sign_in":{"back":"Take me back","button":"Sign In","email":"Email Address","error":"Invalid email or password.","forgot_password":"Forgot your password?","password":"Password","title":"Login to your account"},"password_recovery":{"desc":"Enter the email address you signed up with and we\'ll\\nsend you a link to reset your password by email.","email":"Email address","error":"Invalid email","send":"Send","success":"Email was sent.","title":"Forgotten your password?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"You are not authorized to view this page","header":"OOOPS!!","subheader":"You are not authorized to view this page","cta":"Back to home page"},"404":{"title":"This page was not found","header":"OOOPS!!","subheader":"This page was not found.","cta":"Back to home page","help":"Need help?"},"critical":{"line2":"Something went wrong","restart":"Restart App","title":"Oh no!"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Your session has expired. Please log in again."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"New","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OR","phoneNumber":"800-989","updates":{"ota_update":{"main":"An update is required to continue - the app will restart once the update is complete."},"finished":{"body":"Please restart the app now","cta":"Restart App","headline":"Update complete!","headline_downloaded":"A new update has been released","new_update":"Please install the new update to enjoy the best experience.","install_later":"Install later","install_now":"Install now"},"in_progress":{"installing":"We are installing the latest app update for you!"}}},"offline_banner":{"text":"No internet"},"back":"Back","barriers":{"next_step":"Next Step","steps":{"in_house_training":"MySkills Academy","registration":"Registration","registration_fee":"Registration Fee","upload_documents":"Upload Documents","verify_documents":"Verify Documents","webinar":"Webinar"}},"cancellation_reasons":{"EC_1":"Customer on holiday","EC_3":"Customer wanted to skip booking","EC_6":"I was ill","EC_99":"Other"},"change_request":{"clashing_warning":"This change is interfering with another event, you can accept or decline it.","success":{"accepted":"Change request accepted","cta":"OK","rejected":"Change request rejected"},"title":"Change request"},"dashboard":{"my_earnings":{"current":"Estimated earnings this month","current_paid":{"title":"Current earnings in {{month}}","updated":"Updated: "},"next":"Estimated earnings in {{month}}","title":"My Earnings","view_history":"View history"},"not_post_agreed_events":{"charges_not_enabled":"There seems to be a problem with your actual bank details. Please contact Helpling Service by email at [email protected].","confirm_modal":{"back":"No, take me back","confirm":"Yes","message_first":"Do you confirm that the cleaning event on ","message_last":" already occured?","success":{"message":"We will take the customer payment shortly","title":"Confirmed!"}},"convert_modal":{"ask":"Why not ask {{customerName}} to book you again?","cta":"Talk to {{customerName}}","description":"Regular customers help you get more income.","small":"(Don\u2019t forget to tell them when you are available!)","title":"Want to clean for {{customerName}} again?"},"edit":{"agreed_with_customer":"Yes, I agreed the change with the customer","cancelled":{"confirm_reason":"Please tell us the reason:","title":"Booking was cancelled"},"date_time":{"confirm_reason":"Please confirm the new date and time:","title":"Date or time changed"},"duration":{"confirm_reason":"Please confirm the new duration:","title":"Duration changed"},"messages":{"agreed_message":"We will take the customer payment shortly.","agreed_title":"Payment c
4108onfirmed!","cancelled_message":"The clean has been cancelled.","cancelled_title":"Clean cancelled!","not_agreed_message":"We have sent an email to the customer to confirm the change.","not_agreed_title":"Email sent!","other_message":"We will review the change information and get back to you shortly.","other_title":"Request sent"},"not_agreed_with_customer":"I have not agreed the change with the customer","other":{"confirm_reason":"Please provide more details","placeholder":"Write here ...","title":"Other change"},"send":"Send","title":"What changed?"},"modify":"Modify","pending_customer_confirmation":"Pending customer confirmation","review_modal":{"body":"Now that you\'ve completed your appointment with {{customerName}}, what was your overall experience like?","cta":"Leave a public Comment!","title":"How would you rate this appointment?"},"skip":"Skip","subtitle":"Confirm if your events happened","title":"Claim payments"},"requests":{"new_customers":{"subtitle":"Selected by new customers","tab":"New customers"},"new_requests":{"subtitle":"New request from existing customers","tab":"Previous customers"},"title":"New requests"},"unconfirmed_events":{"edit":{"confirm_reason":"Please provide more details","messages":{"cta":"Back","message":"Your changes were saved","title":"Event edited"},"placeholder":"Write here ...","send":"Send","title":"What happened?"},"modify":"Modify","success_cta":"Close","success_message":"Your event was confirmed successfully","success_title":"Event confirmed","title":"Your Upcoming Booking"}},"event_cancellation":{"cancellation_claim_cta":"Claim compensation","cancellation_claim_description":"The cancellation happened less than {{hours}} hours before the event.","cancelled":"Cancelled","claim":{"call_us":{"cta":"Back","description":"To verify whether you are able to charge this customer please get in touch with Helpling Service.","title":"You haven\u2019t cleaned with {{name}} yet"},"modal":{"claim":"Claim {{amount}}","description":"As you were notified of this less than {{hours}} hours before the start of the appointment, you are able to claim back partial compensation by charging the customer the following amount:","title":"We\'re sorry that your customer {{name}} cancelled the appointment on short notice"},"success":{"cta":"Back","message":"Once successfully charged, {{amount}}\u20ac will be added to your next payout!","title":"Your Customer will be charged immediately"}},"support_tip":{"description":"One or more of your events were canceled but your customer gave you a compensation. Helpling doesn\'t take any commission on this.","title":"For this event you received a {{amount}} donation from {{customer}}"},"title":"One of your events was cancelled by a customer."},"frequency_names":{"finite":"Finite","fortnight":"Every two weeks","month":"Monthly","once":"Once","week":"Weekly"},"hours":{"one":"1 hour","other":"{{count}} hours"},"menu":{"calendar":"Calendar","more":"More","offers":"Offers"},"new_request":{"clashing_warning":"This new request is interfering with another event, you can accept or decline it.","success":{"accepted":"New request accepted","rejected":"New request"}},"notifications":{"awaiting_onfido":{"title":"Your account is currently pending approval as we\'re waiting to get your ID verified.\\nWe\'ll let you know as soon as you can start receiving offers!"},"covid":{"title":"Coronavirus (COVID-19): Current Information"},"one_relationship_limit":{"description":"Not to worry - you are almost there! As soon as you have successfully completed your first clean, you will gain access to an unlimited customer base.","title":"One clean away!"},"show_references":{"description":"Optimize your profile by requesting references from past employers or customers.","title":"Request References"},"show_share_banner":{"title":"New: share your profile online and get new customers!"},"suspended":{"description":"For this reason, you are currently not receiving any new customer requests.\\nTo make your profile visible to customers again, contact Helpling Service on 030 568 39 280.","title":"You have received urgent customer feedback!"},"title":"Notifications"},"price":"{{price}} \u20ac","relationship_cancellation":{"title":"Relationship Cancelled"},"stripe_account":{"document_verification_faq":{"link":"Problems? How to avoid common mistakes:"},"status_2":{"description":"You\'ll have to verify your ID in order to get paid","title":"Don\xb4t forget: Verify Documents NOW"},"status_3":{"description":"Payouts can\'t be processed after {{date}} unless you verify your identity","title":"WARNINIG: Verify your Identiy"},"status_4":{"description":"Your payouts can\'t be processed until you verify your ID","title":"WARNING: Verify your Identity"},"status_5":{"description":"You payouts are on hold. Please contact us on [email protected]","title":"WARNING: Verify your Identiy"}}}')},10389(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Switzerland","de":"Deutschland","fr":"France","ie":"Ireland","it":"Italy","sg":"Singapore","uk":"United Kingdom"},"sign_in":{"back":"Take me back","button":"Sign In","email":"Email Address","error":"Invalid email or password.","forgot_password":"Forgot your password?","password":"Password","title":"Login to your account","languages":{"ch":"Deutsch","ch_en":"English","ch_fr":"Fran\xe7aise","de":"Deutsch","de_en":"English"}}
4108,"password_recovery":{"desc":"Enter the email address you signed up with and we\'ll\\nsend you a link to reset your password by email.","email":"Email address","error":"Invalid email","send":"Send","success":"Email was sent.","title":"Forgotten your password?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"You are not authorized to view this page","header":"OOOPS!!","subheader":"You are not authorized to view this page","cta":"Back to home page"},"404":{"title":"This page was not found","header":"OOOPS!!","subheader":"This page was not found.","cta":"Back to home page","help":"Need help?"},"critical":{"line2":"Something went wrong","restart":"Restart App","title":"Oh no!"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Your session has expired. Please log in again."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"New","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OR","phoneNumber":"800-989","updates":{"ota_update":{"main":"An update is required to continue - the app will restart once the update is complete."},"finished":{"body":"Please restart the app now","cta":"Restart App","headline":"Update complete!","headline_downloaded":"A new update has been released","new_update":"Please install the new update to enjoy the best experience.","install_later":"Install later","install_now":"Install now"},"in_progress":{"installing":"We are installing the latest app update for you!"}}},"offline_banner":{"text":"No internet"},"back":"back","barriers":{"next_step":"Next Step","steps":{"in_house_training":"MySkills Academy","registration":"Registration","registration_fee":"Registration Fee","upload_documents":"Upload Documents","verify_documents":"Verify Documents","webinar":"Webinar"}},"cancellation_reasons":{"EC_1":"Customer on holiday","EC_3":"Customer wanted to skip booking","EC_6":"I was ill","EC_99":"Other"},"change_request":{"clashing_warning":"The change request interfere with your other events  on that day","success":{"accepted":"Change request accepted","cta":"OK","rejected":"Change request rejected"},"title":"Change request"},"dashboard":{"my_earnings":{"current":"Estimated earnings this month","current_paid":{"title":"Current earnings in {{month}}","updated":"Updated: "},"next":"Estimated earnings in {{month}}","title":"My Earnings","view_history":"View history"},"not_post_agreed_events":{"cancel":"Cancel","charges_not_enabled":"You are currently unable to claim payments, contact our Support Team","confirm_modal":{"back":"No, take me back","confirm":"Yes","message_first":"Do you confirm that the cleaning event on ","message_last":"  already occured?","success":{"message":"We will take the customer payment shortly.","title":"Payment confirmed!"}},"convert_modal":{"ask":"Why not ask {{customerName}} to book you again?","cta":"Talk to {{customerName}}","description":"Regular customers help you get more income.","small":"(Don\u2019t forget to tell them when you are available!)","title":"Want to clean for {{customerName}} again?"},"edit":{"agreed_with_customer":"Yes, I agreed the change with the customer","cancelled":{"confirm_reason":"Please tell us the reason:","title":"Booking was cancelled"},"date_time":{"confirm_reason":"Please confirm the new date and time:","title":"Date or time changed"},"duration":{"confirm_reason":"Please confirm the new duration:","title":"Duration changed"},"messages":{"agreed_message":"We will take the customer payment shortly.","agreed_title":"Payment confirmed!","cancelled_message":"The clean has been cancelled.","cancelled_title":"Clean cancelled!","cta":"OK","not_agreed_message":"We have sent an email to the customer to confirm the change.","not_agreed_title":"Email sent!","other_message":"We will review the change information and get back to you shortly.","other_title":"Request sent"},"not_agreed_with_customer":"I have not agreed the change with the customer","other":{"confirm_reason":"Please provide more details:","placeholder":"Write here...","title":"Other change"},"send":"Send","title":"What changed?"},"formatted_time":"{{start}} - {{end}} ({{duration}}
4108 hours)","modify":"Modify","pending_customer_confirmation":"Pending customer confirmation","review_modal":{"body":"Now that you\'ve completed your appointment with {{customerName}}, what was your overall experience like?","cta":"Leave a public Comment!","title":"How would you rate this appointment?"},"skip":"Skip","subtitle":"Confirm if your event happened","title":"Claim payments"},"requests":{"new_customers":{"subtitle":"New customer who selected you","tab":"New Customers"},"new_requests":{"subtitle":"Customer you\'ve already events in the past","tab":"Previous Customers"},"title":"New Requests"},"unconfirmed_events":{"cancel":"Cancel","edit":{"confirm_reason":"Please provide more details","messages":{"cta":"Back","message":"Your changes were saved","title":"Event edited"},"placeholder":"Write here ...","send":"Send","title":"What happened?"},"formatted_time":"{{start}} - {{end}} ({{duration}} hours)","modify":"Modify","skip":"Skip","success_cta":"Close","success_message":"Your event was confirmed successfully","success_title":"Event confirmed","title":"Your Upcoming Booking"}},"event_cancellation":{"cancellation_claim_cta":"Claim compensation","cancellation_claim_description":"The cancellation happen less than {{hours}} hours before the event.","cancelled":"Cancelled","claim":{"call_us":{"cta":"Back","description":"To verify whether you are able to charge this customer please get in touch with Helpling Service.","title":"You haven\u2019t cleaned with {{customerName}} yet"},"modal":{"claim":"Claim {{amount}}","description":"As you were notified of this less than {{hours}} hours before the start of the appointment, you are able to claim back partial compensation by charging the customer the following amount: ","title":"We\'re sorry that your customer {{customerName}} cancelled the appointment on short notice.","waive":"I do not wish to charge my customer for this short notice cancellation."},"success":{"cta":"Back","message":"Once successfully charged, {{amount}} will be added to your next payout!","title":"We will proceed to take payment from the customer"}},"support_tip":{"description":"One or more of your events were canceled but your customer gave you a compensation. Helpling doesn\'t take any commission on this.","title":"You\'ve just received a {{amount}} donation from {{customer}}"},"title":"One of your events was cancelled by a customer"},"formatted_duration_short":"{{duration}} h","formatted_time_duration":"{{start}} - {{end}} ({{duration}} hours)","frequency_names":{"finite":"Finite","fortnight":"Every two weeks","month":"Monthly","once":"Once","week":"Weekly"},"hours":{"one":"1 hour","other":"{{count}} hours"},"menu":{"calendar":"Calendar","chat":"Chat","home":"Home","more":"More","offers":"Offers"},"new_request":{"clashing_warning":"This new request is interfering with another event, you can accept or decline it.","success":{"accepted":"New request accepted","rejected":"New request"}},"notifications":{"awaiting_onfido":{"title":"Your account is currently pending approval as we\'re waiting to get your ID verified.\\nWe\'ll let you know as soon as you can start receiving offers!"},"covid":{"title":"Coronavirus (COVID-19): Current Information"},"one_relationship_limit":{"description":"Not to worry - you are almost there! As soon as you have successfully completed your first clean, you will gain access to an unlimited customer base.","title":"One clean away!"},"show_references":{"description":"Optimize your profile by requesting references from past employers or customers.","title":"Request References"},"show_share_banner":{"title":"New: share your profile online and get new customers!"},"suspended":{"description":"Please give Helpling a call at 020 3322 1136 to speak with us and resolve this issue!","title":"There is an issue with your account!"},"temperature":{"title":"Check your temperature before heading out."},"title":"Notifications"},"price":"{{price}}\u20ac","relationship_cancellation":{"title":"A relationship got cancelled"},"stripe_account":{"document_verification_faq":{"identity":{"details":"You registered at Helpling as {{name}}, with the address {{address}} and with the birthdate {{birthdate}}. To successfully set up your account, you need to upload a document that matches this information.","intro":"To get started with Helpling, you need to complete a verification process. Please follow the instructions below to make sure you get this right.","title":"Verify your identity"},"link":"Need help?","title":"Document verification FAQ","update":{"details":"Step 1:  Upload your passport, identity card, or driver\'s license to verify your identity. \\nStep 2: A supporting document is required for verification, on which your current address must be recognizable. You can use e.g. a utility bill, a bank statement including address, or any other official document for this purpose. \\n\\nCommon mistakes:  \\n1. This process requires you to use two different documents. A document that was already used in step 1 cannot be used again in step 2. \\n2. For verification purposes, it is necessary that the uploaded document shows a recent date.\\n3. If the verification request appears again, this may be due to the quality of the uploaded document. \\n\\nPlease check whether you have one of these errors and carry out the process again if necessary. The documents you submit will only be sent to the payment service provider and cannot be viewed by Helpling. \\n\\nIs any of the above no longer up-to-date? If any of the information above has changed since you signed up or if you have created too many upload attempts, please contact us to change it before you re-submit your document.","title":"Is any of the above no longer up-to-date?"}},"status_2":{"description":"You will have to verify your ID in order to get paid","title":"Don\'t forget: Verify Documents NOW"},"status_3":{"description":"Payouts can\'t be processed on {{date}} unless you verify your ID","title":"Verify documents"},"status_4":{"description":"Your payouts can\'t be processed until you verify your ID.","title":"Verify documents"},"status_5":{"description":"You payouts are on hold. Please contact us.","title":"Payouts not processed"}}}')},52841(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Suisse","de":"Allemagne","fr":"France","ie":"Irlande","it":"Italie","sg":"Singapour","uk":"Royaume-Uni"}
4108,"sign_in":{"back":"Revenir en arri\xe8re","button":"Se connecter","email":"Adresse Email","error":"Email ou mot de passe incorrect.","forgot_password":"Mot de passe Oubli\xe9?","password":"Mot de passe","title":"Connectez-vous \xe0 votre compte"},"password_recovery":{"desc":"Entrez l\'adresse email avec laquelle vous vous \xeates inscrit et nous vous enverrons un lien\\npour r\xe9initialiser votre mot de passe par email.","email":"Addresse email","error":"Email incorrect","send":"Envoyer","success":"Un email a \xe9t\xe9 envoy\xe9.","title":"Mot de passe oubli\xe9 ?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"Vous n\'\xeates pas autoris\xe9s \xe0 voir cette page !","header":"Ouuups !","subheader":"Vous n\'\xeates pas autoris\xe9s \xe0 voir cette page !","cta":"Retour \xe0 l\'accueil"},"404":{"title":"Page introuvable","header":"Ouuups !","subheader":"Page introuvable","cta":"Retour \xe0 l\'accueil","help":"Besoin d\'aide ?"},"critical":{"line2":"Une erreur est survenue","restart":"Relancer l\'application","title":"Oh non !"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later.","session_expired":"Votre session a expir\xe9. Veuillez vous reconnecter."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"Nouveau","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OU","phoneNumber":"800-989","updates":{"ota_update":{"main":"Une mise \xe0 jour est n\xe9cessaire pour continuer - l\'application red\xe9marrera une fois celle-ci effectu\xe9e."},"finished":{"body":"Veuillez red\xe9marrer l\'application maintenant","cta":"Red\xe9marrer l\'application","headline":"Mise \xe0 jour termin\xe9e\xa0!","headline_downloaded":"Une nouvelle mise \xe0 jour a \xe9t\xe9 publi\xe9e","new_update":"Veuillez installer la nouvelle mise \xe0 jour pour profiter de la meilleure exp\xe9rience.","install_later":"Installer plus tard","install_now":"Installer maintenant"},"in_progress":{"installing":"Nous installons la derni\xe8re mise \xe0 jour de l\'application pour vous\xa0!"}}},"offline_banner":{"text":"Hors connexion"},"barriers":{"steps":{"registration":"Inscription","upload_documents":"T\xe9l\xe9charger Documents"}},"cancellation_reasons":{"EC_1":"Client en vacances","EC_3":"Client souhaitait passer cette r\xe9servation","EC_6":"J\'\xe9tais malade","EC_99":"Autre"},"change_request":{"clashing_warning":"Ce changement est en conflit avec une autre prestation, vous pouvez l\'accepter ou le refuser.","success":{"accepted":"Demande de changement accept\xe9e","cta":"OK","rejected":"Demande de changement refus\xe9e"},"title":"Demande de changement"},"dashboard":{"my_earnings":{"current":"Revenus du mois","current_paid":{"title":"Revenus actuels en {{month}}","updated":"Mis \xe0 jour : "},"next":"Estimation CA en {{month}}","title":"Informations sur mes revenus","view_history":"Voir l\'historique"},"not_post_agreed_events":{"confirm_modal":{"back":"Non","confirm":"Oui","message_first":"Confirmez-vous que la prestation du ","message_last":" a bien \xe9t\xe9 effectu\xe9e?","success":{"message":"Nous collecterons le paiement du client sous peu","title":"Confirm\xe9!"}},"convert_modal":{"ask":"Pourquoi ne pas demander \xe0 {{customerName}} de commander une nouvelle prestation?","cta":"Parler avec {{customerName}}","description":"Un client r\xe9gulier vous permet de g\xe9n\xe9rer un chiffre d\'affaires stable","small":"(N\'oubliez pas de leur pr\xe9ciser vos disponibilit\xe9s)","title":"Vous souhaitez prester de nouveau chez {{customerName}}?"},"edit":{"agreed_with_customer":"Oui, je me suis mis d\u2019accord avec le client","cancelled":{"confirm_reason":"Merci de nous communiquer la raison :","title":"R\xe9servation a \xe9t\xe9 annul\xe9e"},"date_time":{"confirm_reason":"Merci de confirmer la nouvelle date et l\'heure :","title":"Date ou heure modifi\xe9e"},"duration":{"confirm_reason":"Veuillez svp confirmer la nouvelle dur\xe9e :","title":"Dur\xe9e modifi\xe9e"},"messages":{"agreed_message":"Vous recevrez le paiement du client sous peu.","agreed_title":"Paiement confirm\xe9 !","cancelled_message":"Cette prestation a \xe9t\xe9 annul\xe9e.","cancelled_title":"Prestation annul\xe9e !","not_agreed_message":"Email envoy\xe9 au client afin de confirmer le changement. ","not_agreed_title":"Email envoy\xe9 !","other_message":"Nous allons \xe9tudier cette demande de changement et revenir vers vous d\xe8s que possible.","other_title":"Demande envoy\xe9e"},"not_agreed_with_customer":"Je ne me suis pas mis d\'accord sur ce changement avec le client","other":{"confirm_reason":"Veuillez svp donner plus de d\xe9tails","placeholder":"Ecrivez ici...","title":"Autre changement"},"send":"Envoy\xe9","title":"Qu\'est ce qui a chang\xe9 ?"},"modify":"Modifier","pending_customer_confirmation":"Demande de modification client en attente","review_modal":{"body":"D\xeetes-nous comme s\'est pass\xe9e votre exp\xe9rience avec {{customerName}}.","cta":"Laissez un avis public","title":"Quelle note donnez-vous \xe0 cette prestation ?"},"skip":"Passer","subtitle":"Confirmer que la prestation a eu lieu ","title":"Activer le paiement"},"requests":{"new_customers":{"subtitle":"S\xe9lectionn\xe9(e) par des nouveaux clients","tab":"Nouveaux clients"},"new_requests":{"subtitle":"Nouvelles demandes de clients existants","tab":"Anciens clients"},"title":"Nouvelles demandes"},"unconfirmed_events":{"edit":{"confirm_reason":"Veuillez svp donner plus de d\xe9tails","messages":{"cta":"Retour","message":"Vos modifications ont \xe9t\xe9 enregistr\xe9es","title":"Prestation modifi\xe9e"},"placeholder":"Ecrivez ici...","send":"Envoy\xe9","title":"Que s\'est-il pass\xe9 ? "},"modify":"Modifier","success_cta":"Fermer","success_message":"Votre prestation a \xe9t\xe9 confirm\xe9e avec succ\xe8s","success_title":"Prestation confirm\xe9e","title":"Votre prochaine r\xe9servation"}},"event_cancellation":{"cancellation_claim_cta":"Demander des frais d\'annulation tardive","cancellation_claim_description":"L\'annulation a \xe9t\xe9 effectu\xe9e moins de {{hours}} heures avant la prestation.","cancelled":"Annul\xe9","support_tip":{"description":"Une ou plusieurs de vos prestations ont \xe9t\xe9 annul\xe9es mais votre client vous a envoy\xe9 un paiement de solidarit\xe9 pour vous d\xe9dommager. Helpling ne prend pas de commission sur cette transaction. ","title":"Vous avez re\xe7u un don de {{amount}} de {{customer}} pour cette prestation."},"title":"Une de vos prestations a \xe9t\xe9 annul\xe9e par un client."},"frequency_names":{"finite":"Finie","fortnight":"Toutes les deux semaines","month":"Mensuel","once":"Ponctuel","week":"Hebdomadaire"},"hours":{"one":"1 heure","other":"{{count}} heures"},"menu":{"calendar":"Calendrier","more":"Plus","offers":"Offres"},"new_request":{"clashing_warning":"Cette nouvelle demande est en conflit avec un autre \xe9v\xe9nement, vous pouvez l\'accepter ou la refuser.","success":{"accepted":"Nouvelle demande accept\xe9e","rejected":"Nouvelle demande"}},"notifications":{"awaiting_onfido":{"title":"Votre compte est actuellement en cours de validation, nous sommes en train d\'authentifier votre pi\xe8ce d\'identit\xe9.\\nNous vous ferons savoir d\xe8s que vous pourrez recevoir des offres !"},"covid":{"title":"Coronavirus (COVID-19): Politique Helpling"},"show_share_banner":{"title":"Nouveau : partagez votre profil en ligne et acqu\xe9rez de nouveaux clients ! "},"suspended":{"description":"Suite \xe0 ce probl\xe8me, vous pouvez nous joindre au 0975182112 ou par email \xe0 [email protected] pour que l\'on puisse vous apporter une solution.","title":"Nous rencontrons un probl\xe8me avec votre compte."},"title":"Notifications"},"price":"{{price}} \u20ac","relationship_cancellation":{"title":"Relations annul\xe9es"},"stripe_account":{"document_verification_faq":{"link":"Besoin d\'aide ? "},"status_2":{"description":"Vous devez v\xe9rifier votre identit\xe9 pour recevoir vos versements","title":"V\xe9rification des documents"},"status_3":{"description":"Vos versements seront bloqu\xe9s \xe0 partir du {{date}} si votre pi\xe8ce d\'identit\xe9 n\'a pas \xe9t\xe9 v\xe9rifi\xe9e d\'ici l\xe0.","title":"V\xe9rification des documents"},"status_4":{"description":"Vos versements sont bloqu\xe9s jusqu\'\xe0 v\xe9rification de votre pi\xe8ce d\'identit\xe9. ","title":"V\xe9rification des documents"},"status_5":{"description":"Vos versements sont bloqu\xe9s, merci de nous contacter \xe0 [email protected]. ","title":"Versements bloqu\xe9s"}}}')},29196(e){"use strict";e.exports=JSON.parse('{"country_selector":{"ch":"Switzerland","de":"Germany","fr":"France","ie":"Ireland","it":"Italy","sg":"Singapore","uk":"United Kingdom"},"barriers":{"steps":{"in_house_training":"Cleaner Training"}},"dashboard":{"my_earnings":{"current_paid":{"title":"Current earnings in {{month}}","updated":"Updated: "},"view_history":"View history"},"not_post_agreed_events":{"charges_not_enabled":"You are currently unable to claim payments, contact our Support Team at [email protected]."}},"event_cancellation":{"claim":{"success":{"message":"Once successfully charged, \u20ac{{amount}} will be added to your next payout!"}}},"notifications":{"awaiting_onfido":{"title":"Your account is currently pending ID verification. This usually happens within seconds, but it might take up to a couple of hours if the images are not very clear. We\'ll let you know as soon as you can start receiving offers!\\n"},"show_share_banner":{"title":"New: share your profile online and get new customers!"},"suspended":{"description":"Please drop us an email at your earliest convenience to [email protected] to discu
4108ss what might have gone wrong. In the meantime, not all functions will be available.\\n","title":"We\'d like to discuss some recent customer feedback!\\n"}},"price":"{{price}} \u20ac","stripe_account":{"document_verification_faq":{"link":"Experiencing issues? Here\'s how to avoid common mistakes:"},"status_2":{"description":"You will have to verify your ID in order to get paid","title":"Don\'t forget: Verify Documents NOW"},"status_3":{"description":"Payouts can\'t be processed after {{date}} unless you verify your identity","title":"WARNING: Verify Your Identity"},"status_4":{"description":"Your payouts can\'t be processed until you verify your ID","title":"WARNING: Verify Your Identity"},"status_5":{"description":"Your payouts are on hold. Please add your bank details (More -> Edit Bank Details) or contact us at [email protected]","title":"WARNING: Verify Your Identity"}},"ui":{"updates":{"ota_update":{"main":"An update is required to continue - the app will restart once the update is complete."},"finished":{"body":"Please restart the app now","cta":"Restart App","headline":"Update complete!","headline_downloaded":"A new update has been released","new_update":"Please install the new update to enjoy the best experience.","install_later":"Install later","install_now":"Install now"},"in_progress":{"installing":"We are installing the latest app update for you!"}}}}')},34895(e){"use strict";e.exports=JSON.parse('{"sign_in":{"back":"Torna indietro","button":"Accedi","email":"Indirizzo email","error":"Email o password non validi.","forgot_password":"Password dimenticata?","password":"Password","title":"Accedi al tuo profilo"},"password_recovery":{"desc":"Inserisci l\'indirizzo email che hai usato per registrarti e\\nti invieremo un link per fare il reset della password.","email":"Indirizzo email","error":"Email non valida","send":"Invia","success":"L\'email \xe8 stata inviata.","title":"Hai dimenticato la password?"},"ui":{"boolean":{"no":"No","yes":"Yes"},"cancel":"Cancel","error":{"403":{"title":"Non hai le autorizzazioni per visualizzare questa pagina","header":"Oooops!","subheader":"Non hai le autorizzazioni per visualizzare questa pagina","cta":"Torna alla homepage"},"404":{"title":"Pagina non trovata","header":"Oooops!","subheader":"Pagina non trovata","cta":"Torna alla homepage","help":"Serve aiuto?"},"critical":{"line2":"Qualcosa non ha funzionato","restart":"Riavvia app","title":"Oh no!"},"fetching":"Error fetching data\u2026","generic":"There was an error. Please try again later.","network":"There was a network error. Please try again later."},"loading":"Loading\u2026","misc":"Miscellaneous","new":"Nuovo","none":"None","notFound":"Could not find this object","notification":{"networkIssues":{"action":"Retry","message":"Network issues. Please try again"}},"ok":"OK","or":"OPPURE","phoneNumber":"800-989","updates":{"ota_update":{"main":"Aggiornamento necessario per continuare - l\'app si riavvier\xe0 al termine dell\'aggiornamento."},"finished":{"body":"Riavvia l\'app ora","cta":"Riavvia app","headline":"Aggiornamento completato!","headline_downloaded":"Un nuovo aggiornamento \xe8 stato rilasciato","new_update":"Per favore installa il nuovo aggiornamento per una migliore esperienza.","install_later":"Installa dopo","install_now":"Installa ora"},"in_progress":{"installing":"Stiamo installando l\'ultimo aggiornamento dell\'app per te!"}}},"barriers":{"next_step":"Prossimo passo","steps":{"registration":"Registrazione","registration_fee":"Quota di registrazione","upload_documents":"Carica documenti","verify_documents":"Verifica documenti","webinar":"Workshop online"}},"cancellation_reasons":{"EC_1":"Cliente in vacanza","EC_3":"Il cliente ha voluto saltare un appuntamento","EC_6":"Ero malato","EC_99":"Altro"},"change_request":{"clashing_warning":"Questa modifica si sovrappone a un altro appuntamento, puoi accettare o rifiutare","success":{"accepted":"Richiesta di modifica accettata","cta":"Ok","rejected":"Richiesta di modifica rifiutata"},"title":"Richiesta modifica"},"dashboard":{"my_earnings":{"current":"Compensi stimati in questo mese","next":"C
4108ompensi stimati a {{month}}","title":"I miei compensi"},"not_post_agreed_events":{"charges_not_enabled":"Il tuo account \xe8 bloccato per l\u2019accredito dei pagamenti, per favore scrivi a [email protected]","confirm_modal":{"back":"No, torna indietro","confirm":"S\xec","message_first":"La pulizia \xe8 stata effettuata esattamente come era stata prenotata ","message_last":"? Se s\xec, conferma qui, altrimenti torna indietro per indicare le modifiche.","success":{"message":"Il pagamento verr\xe0 addebitato al cliente","title":"Confermato!"}},"convert_modal":{"ask":"Perch\xe9 non provi a chiedere a {{customerName}} di prenotarti nuovamente?","cta":"Scrivi a {{customerName}}","description":"I clienti ricorrenti ti permettono di avere entrate pi\xf9 regolari.","small":"(Non dimenticarti di segnalare quando sei disponibile!)","title":"Vorresti tornare ancora da {{customerName}}?"},"edit":{"agreed_with_customer":"S\xec, ho concordato la modifica con il cliente","cancelled":{"confirm_reason":"Per favore, dicci il motivo:","title":"L\'appuntamento \xe8 stato cancellato!"},"date_time":{"confirm_reason":"Per favore conferma la nuova data e orario:","title":"Data o orario modificati"},"duration":{"confirm_reason":"Per favore conferma la nuova durata:","title":"Durata modificata"},"messages":{"agreed_message":"Tra poco il pagamento verr\xe0 addebitato al cliente.","agreed_title":"Pagamento confermato!","cancelled_message":"La pulizia \xe8 stata cancellata.","cancelled_title":"Pulizia cancellata!","not_agreed_message":"Abbiamo inviato una email al cliente per confermare la modifica.","not_agreed_title":"Email inviata!","other_message":"Controlleremo le informazioni di modifica e ti ricontatteremo a breve.","other_title":"Richiesta inviata"},"not_agreed_with_customer":"Non ho concordato la modifica con il cliente","other":{"confirm_reason":"Per favore fornisci pi\xf9 dettagli","placeholder":"Scrivi qui...","title":"Altra modifica"},"send":"Invia","title":"Cosa \xe8 cambiato?"},"modify":"Modifica","pending_customer_confirmation":"In attesa della conferma cliente","review_modal":{"body":"Ora che hai completato l\'appuntamento, come valuti la tua esperienza con {{customerName}}?","cta":"Lascia una valutazione pubblica","title":"Come valuti questo appuntamento?"},"skip":"Salta","subtitle":"Conferma se hai effettuato gli appuntamenti","title":"Attiva pagamenti"},"requests":{"new_customers":{"subtitle":"Selezionato da nuovi clienti","tab":"Nuovi clienti"},"new_requests":{"subtitle":"Nuove richieste da clienti esistenti","tab":"Clienti passati"},"title":"Nuove richieste"},"unconfirmed_events":{"edit":{"confirm_reason":"Per favore fornisci pi\xf9 dettagli","messages":{"cta":"Indietro","message":"Le tue modifiche sono state salvate","title":"Appuntamento modificato"},"placeholder":"Scrivi qui...","send":"Invia","title":"Cosa \xe8 successo?"},"modify":"Modifica","success_cta":"Chiudi","success_message":"Il tuo appuntamento \xe8 stato confermato correttamente","success_title":"Appuntamento confermato","title":"Il tuo primo appuntamento"}},"event_cancellation":{"cancellation_claim_cta":"Richiedi penale di cancellazione","cancellation_claim_description":"La cancellazione \xe8 avvenuta a meno di {{hours}} ore dall\'evento","cancelled":"Cancellato","support_tip":{"description":"Uno o pi\xf9 eventi sono stati cancellati, ma il cliente ti ha inviato un pagamento di supporto. Helpling non trattiene commissioni su questi pagamenti.","title":"Per questo appuntamento hai ricevuto un pagamento di supporto di {{amount}} da {{customer}}"},"title":"Uno dei tuoi appuntamenti \xe8 stato cancellato da un cliente"},"frequency_names":{"finite":"Singola","fortnight":"Ogni due settimane","month":"Mese","once":"Una volta","week":"Settimanale"},"hours":{"one":"1 ora","other":"{{count}} ore"},"menu":{"calendar":"Calendario","more":"Di pi\xf9","offers":"Richieste"},"new_request":{"clashing_warning":"Questa nuova richiesta si sovrappone a un altro appuntamento, puoi accettare o rifiutare","success":{"accepted":"Nuova richiesta accettata","rejected":"Nuova richiesta"}},"notifications":{"awaiting_onfido":{"title":"La creazione del tuo profilo non \xe8 ancora completata: siamo in attesa della verifica del documento d\'identit\xe0 che hai fornito.\\nTi faremo sapere al pi\xf9 presto quando potrai iniziare a utilizzare la piattaforma!"},"covid":{"title":"Coronavirus (COVID-19): informazioni utili"},"one_relationship_limit":{"description":"Ce l\'hai quasi fatta! Non appena avrai completato la tua prima pulizia, inizierai a ricevere ogni giorno nuove offerte nella tua zona. I tuoi futuri clienti ti aspettano!","title":"Manca poco!"}
4108,"show_references":{"description":"Puoi migliorare il tuo profilo richiedendo delle referenze ai tuoi passati clienti o datori di lavoro.","title":"Chiedi delle referenze"},"show_share_banner":{"title":"Novit\xe0: ora puoi condividere online il tuo profilo Helpling per trovare nuovi clienti!"},"suspended":{"description":"Per favore scrivi a [email protected] o chiama il numero 0294759349 per parlarne e risolvere la questione.","title":"Il tuo profilo al momento \xe8 bloccato!"},"title":"Notifiche"},"price":"\u20ac {{price}}","relationship_cancellation":{"title":"Relazione cancellata"},"stripe_account":{"document_verification_faq":{"link":"Hai dei dubbi? Leggi qui!"},"status_2":{"description":"I pagamenti saranno bloccati se non effettui questo controllo aggiuntivo. Clicca qui per sapere cosa serve.","title":"ATTENZIONE - VERIFICA URGENTE!"},"status_3":{"description":"I pagamenti saranno bloccati in data {{date}}. se non effettui i controlli aggiuntivi richiesti. Clicca qui per sapere cosa serve.","title":"ATTENZIONE - VERIFICA URGENTE!"},"status_4":{"description":"I pagamenti saranno bloccati se non effettui questo controllo aggiuntivo. Clicca qui per sapere cosa serve.","title":"ATTENZIONE - VERIFICA URGENTE!"},"status_5":{"description":"I tuoi pagamenti sono bloccati. Per favore, contattaci a [email protected]","title":"ATTENZIONE - VERIFICA URGENTE!"}}}')},39084(e){"use strict";e.exports=JSON.parse('{"offline_banner":{"text":"No internet"},"country_selector":{"ch":"Switzerland","de":"Germany","fr":"France","ie":"Ireland","it":"Italy","sg":"Singapore","uk":"United Kingdom"},"dashboard":{"my_earnings":{"current_paid":{"title":"Current earnings in {{month}}","updated":"Updated: "},"view_history":"View history"},"not_post_agreed_events":{"edit":{"cancelled":{"title":"Booking was cancelled"},"date_time":{"title":"Date or time changed"},"duration":{"title":"Duration changed"},"messages":{"agreed_message":"We will notify customers re changing schedule.","agreed_title":"Payment confirmed!"}}}},"notifications":{"show_share_banner":{"title":"New: share your profile online and get new customers!"},"suspended":{"description":"Please e-mail us at [email protected] to resolve this issue!","title":"There is an issue with your account!"},"temperature":{"title":"Check your temperature before heading out."}},"price":"${{price}}","ui":{"error":{"session_expired":"Your session has expired. Please log in again."},"updates":{"ota_update":{"main":"An update is required to continue - the app will restart once the update is complete."},"finished":{"body":"Please restart the app now","cta":"Restart App","headline":"Update complete!","headline_downloaded":"A new update has been released","new_update":"Please install the new update to enjoy the best experience.","install_later":"Install later","install_now":"Install now"},"in_progress":{"installing":"We are installing the latest app update for you!"}}}}')},58230(e){"use strict";e.exports=JSON.parse('{"barriers":{"steps":{"in_house_training":"CCA Cleaner Training"}},"dashboard":{"my_earnings":{"current_paid":{"title":"Current earnings in {{month}}","updated":"Updated: "},"view_history":"View history"},"not_post_agreed_events":{"charges_not_enabled":"You are currently unable to claim payments, contact our Support Team at [email protected]."}},"event_cancellation":{"claim":{"success":{"message":"Once successfully charged, \xa3{{amount}} will be added to your next payout!"}}},"notifications":{"awaiting_onfido":{"title":"Your account is currently pending ID verification. This usually happens within seconds, but it might take up to a couple of hours if the images are not very clear. We\'ll let you know as soon as you can start receiving offers!"},"one_relationship_limit":{"description":"Not to worry - you are almost there! Once you have successfully completed your first clean, you will gain access to an unlimited customer base. Try to choose an offer less than a week away to get started as soon as possible!"},"show_share_banner":{"title":"New: share your profile online and get new customers!"},"suspended":{"description":"Please drop us an email at your earliest convenience to [email protected] to discu
4108ss what might have gone wrong. In the meantime, not all functions will be available.","title":"We\'d like to discuss some recent customer feedback!"}},"price":"\xa3{{price}}","stripe_account":{"document_verification_faq":{"link":"Experiencing issues? Here\'s how to avoid common mistakes:"},"status_2":{"description":"You will have to verify your ID in order to get paid","title":"Don\'t forget: Verify Documents NOW"},"status_3":{"description":"Payouts can\'t be processed after {{date}} unless you verify your identity","title":"WARNING: Verify Your Identity"},"status_4":{"description":"Your payouts can\'t be processed until you verify your ID","title":"WARNING: Verify Your Identity"},"status_5":{"description":"Your payouts are on hold. Please add your bank details (More -> Edit Bank Details) or contact us at [email protected] ","title":"WARNING: Verify Your Identity"}},"ui":{"updates":{"ota_update":{"main":"An update is required to continue - the app will restart once the update is complete."},"finished":{"body":"Please restart the app now","cta":"Restart App","headline":"Update complete!","headline_downloaded":"A new update has been released","new_update":"Please install the new update to enjoy the best experience.","install_later":"Install later","install_now":"Install now"},"in_progress":{"installing":"We are installing the latest app update for you!"}}}}')}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.amdO={},(()=>{var e=[];n.O=(t,i,o,a)=>{if(!i){var s=1/0;for(c=0;c<e.length;c++){for(var[i,o,a]=e[c],r=!0,l=0;l<i.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every(e=>n.O[e](i[l]))?i.splice(l--,1):(r=!1,a<s&&(s=a));if(r){e.splice(c--,1);var d=o();void 0!==d&&(t=d)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[i,o,a]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;if("object"===typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"===typeof i.then)return i}var a=Object.create(null);n.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var r=2&o&&i;("object"==typeof r||"function"==typeof r)&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach(e=>s[e]=()=>i[e]);return s.default=()=>i,n.d(a,s),a}})(),n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,i)=>(n.f[i](e,t),t),[])),n.u=e=>"static/js/"+e+"."+{165:"f6253f8c",255:"53a9416f",464:"7988a31f",617:"7138eda5",809:"6956531e"}[e]+".chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="web:";n.l=(i,o,a,s)=>{if(e[i])e[i].push(o);else{var r,l;if(void 0!==a)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==t+a){r=u;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",n.nc&&r.setAttribute("nonce",n.nc),r.setAttribute("data-webpack",t+a),r.src=i),e[i]=[o];var p=(t,n)=>{r.onerror=r.onload=null,clearTimeout(m);var o=e[i];if(delete e[i],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(e=>e(n)),t)return t(n)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=p.bind(null,r.onerror),r.onload=p.bind(null,r.onload),l&&document.head.appendChild(r)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/h2-provider-app-expo/",(()=>{var e={792:0};n.f.j=(t,i)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)i.push(o[2]);else{var a=new Promise((n,i)=>o=e[t]=[n,i]);i.push(o[2]=a);var s=n.p+n.u(t),r=new Error;n.l(s,i=>
4108{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;r.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",r.name="ChunkLoadError",r.type=a,r.request=s,o[1](r)}},"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,i)=>{var o,a,[s,r,l]=i,d=0;if(s.some(t=>0!==e[t])){for(o in r)n.o(r,o)&&(n.m[o]=r[o]);if(l)var c=l(n)}for(t&&t(i);d<s.length;d++)a=s[d],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(c)},i=self.webpackChunkweb=self.webpackChunkweb||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),n.nc=void 0;var i=n.O(void 0,[620],()=>n(86839));i=n.O(i)})();
4109//# sourceMappingURL=main.170052fa.js.map

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.