PageSourceSearch

https://www.ploom.sk/_next/static/chunks/jti-user-vendor-6b71eef5-458a3cc8350d9b5e.js

js ploom.sk collected 2026-10-02 21:56:41 UTC 30,910 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[283],{3962:(e,r,n)=>{"use strict";n.d(r,{c:()=>d,y:()=>u});var i=n(54568),t=n(7620),o=n(41445),s=n(77722),a=n(62901),c=n(59804),l=function(){var e=(0,o.useHistory)(),r=(0,o.useLocation)();return(0,t.useMemo)(function(){return{getPathname:function(){return e.location.pathname},getSearch:function(){return e.location.search},getHash:function(){return e.location.hash},createHref:function(r){return e.createHref(r)},push:function(r){return e.push(r)},replace:function(r){return e.replace(r)},back:function(){return e.goBack()}}},[e,r.pathname,r.search,r.hash])},u=function(e){var r=e.children,n=l();return(0,i.jsx)(s.i,{value:n,children:(0,i.jsx)(c.s,{routes:a.K,children:r})})},d=function(){return(0,s.c)()}},11337:(e,r,n)=>{"use strict";n.d(r,{x:()=>a});var i=n(99103),t=n(74254),o=n(7620),s=n(98788),a=function(){var e=(0,s.useLazyProfile)().getUserProfile,r=(0,s.useSendOTC)().sendOTC,n=(0,s.useSendLoginOTC)().sendLoginOTC,a=(0,s.useSendEmailOTC)().sendEmailOTC,c=(0,s.useCheckPhone)().checkPhone;return{getUserProfile:e,sendOTC:(0,o.useCallback)(function(e,n,o){return(0,i._)(function(){return(0,t._)(this,function(i){switch(i.label){case 0:return[4,r(e,n,o)];case 1:return[2,i.sent()]}})})()},[r]),sendLoginOTC:(0,o.useCallback)(function(e,r,o,s){return(0,i._)(function(){return(0,t._)(this,function(i){switch(i.label){case 0:return[4,n(e,r,o,s)];case 1:return[2,i.sent()]}})})()},[n]),sendEmailOTC:(0,o.useCallback)(function(e){return(0,i._)(function(){return(0,t._)(this,function(r){switch(r.label){case 0:return[4,a(e)];case 1:return[2,r.sent()]}})})()},[a]),checkPhone:(0,o.useCallback)(function(e){return(0,i._)(function(){return(0,t._)(this,function(r){switch(r.label){case 0:return[4,c(e)];case 1:return[2,r.sent()]}})})()},[c])}}},13120:(e,r,n)=>{"use strict";n.d(r,{A:()=>i});let i=n(62901).K},17141:(e,r,n)=>{"use strict";n.d(r,{MV:()=>
1h.MV,NM:()=>T.A,d8:()=>k,kB:()=>j.A,sR:()=>d.s,$F:()=>R.$FW,aZ:()=>S.a,oV:()=>E,Et:()=>v.Et,M_:()=>v.M_});var i=n(54568),t=n(47931),o=n(41445),s=n(22536),a=n(98788),c=n(75816),l=n(7620),u=n(24963),d=n(59804),f=n(3962),p=function(e){var r=e.children,n=(0,f.c)(),i=(0,d.K)(),t=(0,u.Bv)();return(0,l.useEffect)(function(){return t.subscribe({channel:"user.auth.root.navigation",callback:function(){n.getPathname()!==i.login&&n.push({pathname:i.login})}}),function(){t.unsubscribe("user.auth.root.navigation")}},[n,i.login,t]),r},v=n(10950),g=n(17683);let _=function(){var e=(0,v.wA)(),r=(0,v.d4)(function(e){return e.referral}).isLoaded;return(0,l.useEffect)(function(){r||e((0,g.Qn)())},[]),(0,i.jsx)(l.Fragment,{})};var h=n(85376),m=n(77639),b=n(83017),w=function(e){var r=e.children;return(0,i.jsx)(m.zi.Provider,{value:b.k,children:r})},C=n(47689),x=n(59629),y=new a.QueryClient;let E=function(){var e=(0,c.UKg)().GOOGLE_PLACES_KEY,r=(0,h.U1)().uxRevamp,n=!!(null==r?void 0:r.isLoginRevampEnabled);return(0,i.jsx)(s.Di,{apiKey:e,options:{libraries:["places"]},children:(0,i.jsxs)(a.QueryClientProvider,{client:y,children:[(0,i.jsx)(_,{}),(0,i.jsx)(w,{children:(0,i.jsx)(o.HashRouter,{children:(0,i.jsxs)(f.y,{children:[(0,i.jsx)(C.A,{}),(0,i.jsx)(p,{children:(0,t.v)((0,x.X)(n||!1))})]})})})]})})};n(62901);var k=function(e){var r=e.children;return(0,a.useUsersPointsBalance)(),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_,{}),(0,i.jsx)(C.A,{}),(0,i.jsx)(p,{children:r})]})},S=n(76976),T=n(32470),j=n(30778),R=n(42575)},20772:(e,r,n)=>{"use strict";n.d(r,{E:()=>s});var i=n(42575),t=n(85376),o=n(77370),s=function(){var e,r=(0,o._J)(),n=r.isBackendDeviceRegistrationMandatory,s=r.isLoading,a=(0,t.U1)().deviceRegistration;return{isDeviceRegistrationByLeafletEnabled:(null==a?void 0:a.isDeviceRegistrationByLeafletEnabled)||!1,isBackendDeviceRegistrationMandatory:n,isRegistrationPublicConfigurationLoading:s,isScanDeviceQrEnabled:(null==a?void 0:a.isScanDeviceQrEnabled)||!1,deviceCodeLength:null!=(e=null==a?void 0:a.deviceCodeLength)?e:i.LDd}}},24448:(e,r,n)=>{"use strict";n.d(r,{Q:()=>u});var i=n(99103),t=n(74254),o=n(7620),s=n(50791),a=n(42575),c=n(98788),l=n(75816),u=function(e){var r=(0,l.c3P)(),n=(r.__,r.dictionary),u=(0,l.UKg)(),d=(0,c.useForgotPassword)(),f=d.isLoading,p=d.mutateAsync,v=d.error;return{isLoading:f,emailErrors:(0,o.useMemo)(function(){var e,r;return(null==(r=null==(e=null==v?void 0:v.errors)?void 0:e.email)?void 0:r.length)?v.errors.email.join(" "):void 0},[v]),resetPassword:(0,o.useCallback)(function(r){return(0,i._)(function(){var i,o,c,l,u;return(0,t._)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,p(r)];case 1:return t.sent(),null==(i=null==e?void 0:e.onSuccess)||i.call(e),[3,3];case 2:return l=t.sent(),(u=(0,a._b2)(null==l?void 0:l.error_code,null==l?void 0:l.message,n))?s.o.error(u):(null==(o=l.errors)?void 0:o.length)&&s.o.error(l.errors),null==(c=null==e?void 0:e.onError)||c.call(e,l),[3,3];case 3:return[2]}})})()},[p,e,n]),isRecaptchaEnabled:u.reCaptchaEnabled&&u.brandingInformationEnabled}}},27617:(e,r,n)=>{"use strict";n.d(r,{A:()=>v});var i=n(54568),t=n(7620),o=n(80827),s=n.n(o),a=n(9459),c=n(11378),l=n(60907),u=n(75816),d=n(10950),f=n(17683);let p=function(e){var r=e.code,n=e.message,o=e.isValidated;return void 0===o||o||!r?(0,i.jsx)(t.Fragment,{}):(0,i.jsx)("div",{className:"validation-row","data-testid":"voucherValidation",children:(0,i.jsx)(l.N,{variant:"error",children:n})})};n(41165);let v=function(e){var r=e.onChange,n=e.isValidated,o=e.errorMessage,v=(0,u.c3P)().__,g=(0,d.d4)(function(e){return e.referral}),_=(0,d.wA)(),h=s()("referral-input__input",{"referral-input__input--error":!n&&g.voucher}),m=s()("referral-input",{"referral-input--open":g.isOpen}),b=function(e){null==r||r(e),_(f.Qj.actions.saveVoucher(e))};return(0,t.useEffect)(function(){g.voucher&&b(g.voucher)},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:m,children:[(0,i.jsxs)("div",{className:"referral-input__title","data-testid":"referralInputTitle",onClick:function(){_(f.Qj.actions.saveOpenStatus(!g.isOpen))},children:[(0,i.jsx)(c.o,{className:"referral-input__gift-icon"}),(0,i.jsx)(u.DyV,{variant:"field-label-2",children:v("auth.loyalty.haveReferralCode")}),(0,i.jsx)(a.M,{className:"referral-input__arrow"})]}),(0,i.jsxs)("div",{className:"referral-input__content",children:[(0,i.jsx)("div",{className:"referral-input__content-desc",children:(0,i.jsx)(u.DyV,{variant:"field-label-2",children:v("auth.loyalty.description")})}),(0,i.jsxs)("div",{className:"referral-input__input-container",children:[(0,i.jsx)("label",{children:(0,i.jsx)(u.DyV,{variant:"field-label-2",children:v("auth.loyalty.referralTitle")})}),(0,i.jsx)("input",{"data-testid":"referral-input",className:h,placeholder:v("auth.loyalty.inputPlaceholder"),name:"referrer-code",onChange:function(e){b(e.currentTarget.value.trim())},value:g.voucher})]}),(0,i.jsx)("div",{className:"referral-input__input-desc",children:(0,i.jsx)(l.N,{children:v("auth.loyalty.inputDescription")})})]})]}),(0,i.jsx)(p,{message:void 0===o?"":o,code:!!g.voucher,isValidated:n})]})}},32004:(e,r,n)=>{"use strict";n.d(r,{c:()=>f});var i=n(54568),t=n(7620),o=n(42575),s=n(75816),a=n(85376),c=n(77370),l=n(65017),u=n(54741),d=n.n(u),f=function(e){var r,n=e.code,u=(0,c.G2)(),f=u.isGranted,p=u.isLoading,v=(0,l.uH)().pushToDeviceRegistration,g=(0,a.U1)().deviceRegistration,_=null!=(r=null==g?void 0:g.deviceCodeLength)?r:o.LD
1d,h=(0,s.c3P)().__;return(0,t.useEffect)(function(){!p&&f&&v(n)},[n,f,p,v]),(0,i.jsx)("div",{className:d().deviceCodeContainer,children:(0,i.jsxs)("div",{className:d().deviceCodeFieldWrapper,children:[(0,i.jsx)(s.JU7,{id:"device_code_input",label:h("auth.device.code_input_label"),required:!0,showRequiredAsterisk:!1}),(0,i.jsx)("div",{className:d().inputWrapper,children:(0,i.jsx)(s.QSo,{value:(0,o.bzN)(n," ",_),id:"device_code_input",dataTestId:"registrationCodeFromUrl",placeholder:h("profile.devices.register_new.registration_code"),disabled:!0})})]})})}},32680:(e,r,n)=>{"use strict";n.d(r,{O:()=>f});var i=n(54568),t=n(11378),o=n(53934),s=n(53112),a=n(22392),c=n(75816),l=n(38593),u=n.n(l),d=[{icon:s.q,textKey:"auth.register.success_page.benefits_banner.free_shipping",testId:"packageIcon"},{icon:t.o,textKey:"auth.register.success_page.benefits_banner.special_offers",testId:"giftIcon"},{icon:o.r,textKey:"auth.register.success_page.benefits_banner.exclusive_rewards",testId:"handCoinsIcon"}],f=function(){var e=(0,c.c3P)().__;return(0,i.jsx)(a.Z,{variant:"level-1-club",children:(0,i.jsxs)("div",{className:u().container,children:[(0,i.jsx)("div",{className:u().title,children:e("auth.register.success_page.benefits_banner.title")}),(0,i.jsx)("p",{className:u().description,children:e("auth.register.success_page.benefits_banner.description")}),(0,i.jsx)("div",{className:u().benefitsContainer,children:d.map(function(r){var n=r.icon,t=r.textKey,o=r.testId;return(0,i.jsxs)("div",{className:u().benefitBlock,"data-testid":"benefitBlock",children:[(0,i.jsx)("span",{"data-testid":o,children:(0,i.jsx)(n,{className:u().benefitIcon})}),(0,i.jsx)("p",{className:u().benefitText,children:e(t)})]},t)})})]})})}},33597:(e,r,n)=>{"use strict";n.d(r,{F:()=>t});var i=n(55412),t=function(e){return(0,i.I)().get(e)}},38593:e=>{e.exports={container:"PloomClubBenefitsBanner_container__chlt9",title:"PloomClubBenefitsBanner_title__D5f03",benefitText:"PloomClubBenefitsBanner_benefitText__vHJT0",benefitsContainer:"PloomClubBenefitsBanner_benefitsContainer__4TpMP",benefitBlock:"PloomClubBenefitsBanner_benefitBlock__HiXAQ",benefitIcon:"PloomClubBenefitsBanner_benefitIcon__0CfOM"}},40595:(e,r,n)=>{"use strict";n.d(r,{Ch:()=>l,SD:()=>c,jp:()=>d,rw:()=>s,tH:()=>a,tR:()=>u,z_:()=>o});var i=n(42575),t=n(98788),o=200,s=409,a={400:"profiles.devices.notification.bad_request_title",401:"profiles.devices.notification.unauthorized_user_title",406:"profiles.devices.notification.invalid_registration_code_title",409:"profiles.devices.notification.registered_already_another_user_title",500:"profiles.devices.notification.processing_error_title"},c={400:"profiles.devices.notification.action.try_later",401:"profiles.devices.notification.action.try_later",500:"profiles.devices.notification.action.try_later"},l=function(){var e=(0,i.zjv)(),r=(0,t.getUser)(),n=r.first_name,o=r.last_name,s=r.magento_token,a=r.unique_id,c=r.uuid,l=r.email,u=r.ciam_token;return(0,i.QxM)({unique_id:a,first_name:n,last_name:o,email:l,ciam_token:u,magento_token:s,uuid:c,tenant_code:e.CAS_X_DES_AK_TENANT_TOKEN,ciam_tenant_token:e.CAS_X_DES_AK_TENANT_TOKEN})},u=function(){var e=(0,t.useDevices)({enableDevicesQuery:!1});return{isLoadingRegisterDevice:e.isLoadingRegisterDevice,registerDevice:e.registerDevice,assignDeviceToUser:e.assignDeviceToUser}},d=function(e){return(0,t.useDeviceRegistrationStatus)(e)}},41165:()=>{},42073:e=>{e.exports={wrapper:"Stepper_wrapper__dlFML",stepper:"Stepper_stepper__YdrjA",stepperMobileRow:"Stepper_stepperMobileRow__331II",stepperMobileCurrent:"Stepper_stepperMobileCurrent__v1dmV",stepperMobileNext:"Stepper_stepperMobileNext__qzhur",icon:"Stepper_icon__VuZDw"}},42265:e=>{e.exports={submitButton:"NewPasswordForm_submitButton__ddbyW"}},49078:(e,r,n)=>{"use strict";n.d(r,{z:()=>u});var i=n(87790),t=n(7620),o=n(50791),s=n(42575),a=n(98788),c=n(75816),l=n(60016),u=function(e,r,n){var u=(0,c.c3P)().dictionary,d=(0,i._)((0,t.useState)(!1),2),f=d[0],p=d[1],v=(0,c.mNz)({defaultValues:{password:"",confirm_password:""}}),g=v.watch("password"),_=v.watch("confirm_password"),h=v.watch("purposes"),m=(0,a.useResetConsumerPassword)(),b=m.isLoading,w=m.resetConsumerPassword,C=(0,t.useCallback)(function(){w({newPassword:g,ciamToken:null!=n?n:"",confirmPassword:_,actionType:e,consents:r?(0,l.U)(h):[]}).then(function(){p(!0)}).catch(function(e){var r,n,i=(0,s._b2)(null==e?void 0:e.error_code,null!=(n=null==(r=null==e?void 0:e.errors)?void 0:r[0])?n:null==e?void 0:e.message,u);o.o.error(i)})},[g,_,r,w,n,h,p,e,u]);return{form:v,password:g,isLoading:b,isValidationError:0!==Object.values(v.formState.errors).length,handleSubmit:C,isPasswordChanged:f}}},49625:(e,r,n)=>{"use strict";n.d(r,{U:()=>f});var i=n(54568),t=n(7620),o=n(80827),s=n.n(o),a=n(75816),c=n(85376),l=n(98788),u=n(42265),d=n.n(u),f=(0,t.memo)(function(e){var r,n=e.form,t=e.password,o=e.ctaButtonText,u=e.hasConsents,f=e.isLoading,p=e.isValidationError,v=e.isRequiredLabelEnabled,g=e.ctaButtonClassNames,_=(u?l.useOtPurposesByStep:function(){return{data:void 0,isError:!1,isFetching:!1}})("set_password"),h=_.data,m=_.isError,b=_.isFetching,w=(0,c.U1)().consents,C=(0,a.c3P)().__,x=(0,a.UKg)(),y=x.reCaptchaEnabled&&x.brandingInformationEnabled,E=u&&(null==h?void 0:h.length)&&(null==h?void 0:h.length)>0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.xIk,{control:n.control,name:"password",render:function(e){var r=e.field;return(0,i.jsx)(a._22,Object.assign({},r,{id:"password_control",label:C("profile.password.new_password.field_label"),autoComplete:"new-password",placeholder:C("login.password.field_label"),dataTestId:"newPasswordInput",required:!0,withValidationRules:!0}))}}),(0,i.jsx)(a.xIk,{control:n.control,name:"confirm_password",rules:{required:C("profile.password.confirm_password.validation.field_required"),validate:function(e){return e===t||C("profile.password.confirm_password.validation.field_match")}}
1,render:function(e){var r,n=e.field,t=e.fieldState;return(0,i.jsx)(a._22,Object.assign({},n,{id:"confirm_password_control",label:C("profile.password.confirm_password.field_label"),placeholder:C("profile.password.confirm_password.field_placeholder"),dataTestId:"confirmPasswordInput",showRequiredAsterisk:!0,required:!0,isError:!!(null==t?void 0:t.error),errorText:null==(r=null==t?void 0:t.error)?void 0:r.message,isHelperTextVisible:!!(null==t?void 0:t.error)}))}}),E&&(0,i.jsx)("div",{className:d().consentsContainer,children:(0,i.jsx)(a.bIq,{isColumnDisplayOfConsents:null!=(r=null==w?void 0:w.isColumnDisplayOfConsents)&&r,policyFields:h,fieldName:function(e){return"purposes.".concat(e)},disabled:b||f,isError:m,oneTrustErrorLinkText:null==w?void 0:w.oneTrustErrorLinkText,oneTrustErrorMessage:null==w?void 0:w.oneTrustErrorMessage,oneTrustErrorRedirectUrl:null==w?void 0:w.oneTrustErrorRedirectUrl,consentOptionsListType:null==w?void 0:w.consentOptionsListType,consentsGroupingType:null==w?void 0:w.consentsGroupingType,acceptAllButtonMode:null==w?void 0:w.acceptAllButtonMode,singleOptionConsentsDefaultValue:null==w?void 0:w.singleOptionConsentDefaultValue,required:null==w?void 0:w.isOptionalConsentsRequired})}),(void 0===v||v)&&(0,i.jsx)("div",{className:d().requireLabel,"data-testid":"requireLabel",children:C("reset_password.required_field_text")}),(0,i.jsx)(a.$nd,{className:s()(d().submitButton,g),type:"submit",color:"primary",disabled:p||f,"data-testid":"changePasswordButton",children:o}),y&&(0,i.jsx)(a.P4E,{})]})})},54741:e=>{e.exports={deviceCodeContainer:"DeviceCode_deviceCodeContainer__BT_To",deviceCodeFieldWrapper:"DeviceCode_deviceCodeFieldWrapper__dmk8i",inputWrapper:"DeviceCode_inputWrapper___TwZc"}},55412:(e,r,n)=>{"use strict";n.d(r,{I:()=>o});var i=n(7620),t=n(3962),o=function(){var e=(0,t.c)().getSearch();return(0,i.useMemo)(function(){return new URLSearchParams(e)},[e])}},56057:(e,r,n)=>{"use strict";n.d(r,{P:()=>c});var i=n(54568),t=n(42584),o=n(75816),s=n(68260),a=n(92765),c=function(e){var r=e.form,n=e.fieldName,c=e.field,l=(0,s.c)().__;return(0,i.jsx)(t.xI,{control:r.control,name:n(a.T),render:function(e){var r,n=e.f
1ield,t=e.fieldState;return(0,i.jsx)(o.ksK,Object.assign({},n,{value:n.value?l((0,o.gPp)(n.value),[],n.value):"","aria-labelledby":"label-".concat(a.T),placeholder:l("address_fields.province",[],c.hint||""),dataTestId:"custom_attributes_field.province",label:l("address_fields.province",[],c.label||""),labelId:"label-".concat(a.T),isError:!!t.error,errorText:null==(r=null==t?void 0:t.error)?void 0:r.message,isHelperTextVisible:!!t.error,showRequiredAsterisk:c.is_required,disabled:!0}))},rules:{required:l("form_validation.field_required"),validate:function(e){var r=c.valid_values;return null==r||!r.length||!!r.includes(e)||l("address_fields.province.change_not_allowed")}}})}},59804:(e,r,n)=>{"use strict";n.d(r,{K:()=>a,s:()=>s});var i=n(54568),t=n(7620),o=(0,t.createContext)(null),s=function(e){var r=e.routes,n=e.children;return(0,i.jsx)(o.Provider,{value:r,children:n})},a=function(){var e=(0,t.useContext)(o);if(!e)throw Error("useAuthRoutes must be used within AuthRoutesProvider");return e}},62901:(e,r,n)=>{"use strict";n.d(r,{K:()=>i});var i={entry:"/entry",login:"/login",register:"/register",resetPassword:"/reset-password",newPassword:"/new-password",newPasswordOffline:"/new-password-set",verifiedEmail:"/verified-email",expiredEmail:"/expired-email",offlineRegistrationSuccess:"/offline-registration-success",offlineRegistrationSuccessWithClubCard:"/offline-registration-success-with-club-card",smsPhoneValidation:"/verify-phone",facebookLoginRedirect:"/facebook/redirect"}},65017:(e,r,n)=>{"use strict";n.d(r,{Rc:()=>d,uH:()=>f});var i=n(7620),t=n(95781),o=n(42575),s=n(24963),a=n(75816),c=n(85376),l=n(59804),u=n(3962),d=function(){var e=(0,c.U1)().loyaltyCardSuccessPage,r=(0,u.c)(),n=(0,l.K)(),i=(0,a.UKg)(),d=i.REDIRECT_AFTER_LOGIN_URL,f=i.REDIRECT_TO_DEVICE_REGISTRATION_ON_PROFILE,p=i.whitelistedDomains;return{pushToSuccessfullRegistration:function(e,r,n){var i,a=t.parse(e||""),c=a.returnUrl,l=a.s;i="string"==typeof c&&""!==c&&(0,o.qPo)(c,p)?c.replace(/\/\d+(?=\?|#|$)/,""):"string"!=typeof l||""===l||r?"".concat(d,"?").concat(o.o3B):"".concat(f,"?s=").concat(l),n&&((0,s.WW)(n,i),(0,s.aS)().publish("user.action.trigger",{payload:{trigger:n}},{sticky:!0})),window.location.href=i},pushToSuccessfullOfflineRegistration:function(i){var t=i.firstname,o=i.lastname,s=i.dob,a=i.userId,c=i.email,l=(null==e?void 0:e.isLoyaltyCardSuccessPageEnabled)?n.offlineRegistrationSuccessWithClubCard:n.offlineRegistrationSuccess;r.replace({pathname:l,search:"?firstname=".concat(t,"&lastname=").concat(o,"&dob=").concat(s,"&userId=").concat(a,"&email=").concat(c)})}}},f=function(){var e=(0,a.UKg)().REDIRECT_TO_DEVICE_REGISTRATION_ON_PROFILE;return{pushToDeviceRegistration:(0,i.useCallback)(function(r){window.location.href="".concat(e,"?s=").concat(r)},[])}}},65136:(e,r,n)=>{"use strict";n.d(r,{A:()=>t});var i="SESSION_AUTH_DATA",t=function(){return{saveRegisterData:function(e){sessionStorage.setItem(i,JSON.stringify(e))},getRegisterData:function(){var e=sessionStorage.getItem(i);if(e)try{return JSON.parse(e)}catch(e){console.error("Cannot parse SESSION_AUTH_DATA",e)}return null},clearRegisterData:function(){sessionStorage.removeItem(i)}}}},68593:(e,r,n)=>{"use strict";n.d(r,{A:()=>g});var i=n(54568),t=n(84027),o=n(90929),s=n(92842),a=n(7620),c=n(80827),l=n.n(c),u=n(95249),d=n.n(u);let f=(0,a.memo)(function(e){var r,n=e.current,t=e.stepNumber,o=e.title,a=e.className,c=e.handlePrev,u=e.canAccessPrev,f=e.canMoveToStep,p=void 0===f||f,v=e.hideTitles,g=void 0!==v&&v,_=t-n==-1,h=function(e){e.preventDefault(),p&&_&&u&&c()};return(0,i.jsxs)("div",{className:l()(d().step,void 0===a?"":a,(r={},(0,s._)(r,d().active,n===t),(0,s._)(r,d().prevStep,_),(0,s._)(r,d().passedStep,t-n<-1),(0,s._)(r,d().hideTitles,g),r)),"data-testid":"stepContainer",children:[(0,i.jsx)("div",{className:d().number,children:(0,i.jsx)("button",{"data-testid":"stepNumberButton",className:d().numberContent,onClick:h,disabled:!_||!u||!p,children:!g&&t})}),!g&&(0,i.jsx)("button",{"data-testid":"stepper-label",disabled:!_||!u||!p,onClick:h,className:d().title,children:o})]})});var p=n(42073),v=n.n(p);let g=function(e){var r,n=e.titles,s=e.children,a=e.canMoveToStep,c=e.hideTitles,l=void 0!==c&&c,u=(0,t.fS)(),d=u.prev,p=u.current;return(0,i.jsxs)("div",{className:v().wrapper,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:v().stepper,children:n.map(function(e,r){return(0,i.jsx)(f,{title:e.title,current:p,stepNumber:r+1,handlePrev:d,canAccessPrev:e.canAccessPrev,canMoveToStep:a,hideTitles:l},e.title)})}),!l&&(0,i.jsxs)("div",{className:v().stepperMobileRow,children:[(0,i.jsx)("div",{className:v().stepperMobileCurrent,children:n[p-1].title}),n[p]?(0,i.jsxs)("div",{className:v().stepperMobileNext,children:[null==(r=n[p])?void 0:r.title,(0,i.jsx)(o.P,{className:v().icon})]}):null]})]}),(0,i.jsx)("div",{className:v().stepper,children:s})]})}},75234:(e,r,n)=>{"use strict";n.d(r,{b9:()=>d,jp:()=>l});var i=n(7620),t=n(58983),o=n.n(t),s=n(75816),a=n(59804),c=n(3962),l="facebook-login-code",u=o()("desjti:useFacebookLogin"),d=function(e){var r=e.facebookAppId,n=e.onSuccessLogin,t=e.onReject,o=(0,s.UKg)(),d=o.facebookLoginScopes,f=void 0===d?"public_profile, email":d,p=o.facebookScript
1Version,v=void 0===p?"23.0":p,g=(0,c.c)(),_=(0,a.K)(),h=(0,i.useRef)(null),m=(0,i.useRef)(null),b=(0,i.useRef)(null),w=(0,i.useCallback)(function(){var e;u("Facebook login popup closed"),m.current&&window.removeEventListener("message",m.current),b.current&&window.removeEventListener("storage",b.current),localStorage.removeItem(l),null==(e=h.current)||e.close(),h.current=null},[]),C=(0,i.useCallback)(function(){u("Facebook login was called, starting building popup link");var e,i=v.startsWith("v")?v:"v".concat(v),o=new URL("https://www.facebook.com/".concat(i,"/dialog/oauth"));if(o.search=new URLSearchParams({client_id:r,redirect_uri:new URL(g.createHref({pathname:_.facebookLoginRedirect}),window.location.href).toString(),response_type:"code",scope:f}).toString(),(null==(e=h.current)?void 0:e.closed)&&w(),h.current){u("Facebook login popup was focused"),h.current.focus();return}h.current=window.open(o.toString(),"facebookLogin","width=600,height=700,popup"),u("Facebook login popup was opened");var s=function(e){if(u("Facebook login popup sent event"),e.origin!==window.location.origin||"facebook-code"!==e.data.type)return void u("Facebook login popup event was from the wrong origin, or event data type is not correct");if(!e.data.code){u("Facebook login popup did not return code for authentication"),"user_denied"===e.data.errorReason?(u("User denied permissions for facebook, redirect to registration will be performed"),t()):(u("Facebook login failed with error: ".concat(e.data.error)),console.error("[INFO] Facebook login failed: ".concat(e.data.error||"code not received"))),u("Closing Facebook login popup after failed attempt"),w();return}u("Facebook login successfully performed, starting with BE facebook login strategy"),n(e.data.code),w()};m.current=s,window.addEventListener("message",s);var a=function(e){if(e.key===l&&e.newValue){u("Facebook login code received via localStorage fallback");try{var r=JSON.parse(e.newValue);if(!r.code)return void("user_denied"===r.errorReason?(u("User denied permissions for facebook (storage fallback)"),t()):(u("Facebook login failed with error (storage fallback): ".concat(r.error)),console.error("[INFO] Facebook login failed: ".concat(r.error||"code not received"))));u("Facebook login successfully performed via storage fallback"),n(r.code)}catch(e){u("Failed to parse facebook login storage data")}finally{w()}}};b.current=a,window.addEventListener("storage",a)},[w,r,f,v,g,_.facebookLoginRedirect,t,n]);return(0,i.useEffect)(function(){return w},[w]),{login:C}}},76976:(e,r,n)=>{"use strict";n.d(r,{a:()=>o});var i=n(7620),t=n(75816),o=function(e){var r=e.children,n=(0,i.useRef)(!1),o=(0,t.UKg)().REDIRECT_AFTER_LOGIN_URL,s=(0,t.Jd3)(),a=s.isCheckingUser,c=s.isUserLoggedIn;return((0,i.useEffect)(function(){a||n.current||(n.current=!0,c&&window.location.replace(o))},[a,c,o]),a||c)?null:r}},77370:(e,r,n)=>{"use strict";n.d(r,{G2:()=>l,HD:()=>d,LR:()=>c,_J:()=>f,vz:()=>u});var i=n(99103),t=n(74254),o=n(7620),s=n(22536),a=n(98788),c=function(){return(0,a.useRegister)()},l=function(){var e=(0,a.getUser)().ciam_token,r=(0,a.useAuthenticationValidation)(e,{retry:!1,refetchOnWindowFocus:!1});return{isGranted:r.isGranted,isLoading:r.isLoading}},u=function(){var e=(0,a.useLogin)();return{login:(0,o.useCallback)(function(r){return(0,i._)(function(){var n;return(0,t._)(this,function(i){switch(i.label){case 0:return[4,e.login(r)];case 1:return n=i.sent(),s.l8.onLogin(),[2,n]}})})()},[e]),error:e.error,isLoading:e.isLoading,isFailed:e.isFailed,isSuccess:e.isSuccess}},d=function(){return(0,a.useVerifyConsumer)()},f=function(){return(0,a.useRegistrationPublicConfiguration)()}},85376:(e,r,n)=>{"use strict";n.d(r,{MV:()=>a,U1:()=>c});var i=n(54568),t=n(7620),o={ageVerificationMethodImages:{international_passport:"",passport:"",driving_license:""},deviceRegistration:{isDeviceRegistrationByLeafletEnabled:!1,isScanDeviceQrEnabled:!1,deviceCodeLength:n(42575).LDd},genderInformation:{isGenderEnabled:!1},registrationSuccessPage:{hidePloomClubBanner:!1,disclaimer:"",learnMoreLinkText:"",learnMoreLinkUrl:"",successBannerMessage:""},loyaltyCardSuccessPage:{isLoyaltyCardSuccessPageEnabled:!1,isPloomBenefitsBannerHidden:!1,clubCardLogo:""},offlineRegistration:{isAvEnabled:!1,isDeviceRegistrationEnabled:!1},phoneValidationOtp:{successValidationViaSmsMessage:"",failedValidationViaSmsMessage:"",isOtpNumeric:!1},emailValidation:{isOtpNumeric:!1},commonLoginSettings:{socialLoginSeparatorText:"",loginFormMode:"email",loginFormModeDefaultTab:"email",isKeepMeLoggedInEnabled:!1},consents:{oneTrustErrorMessage:"<p>We are currently facing&amp;nbsp;some&amp;nbsp;technical issues. You cannot update or change communication preferences regarding transaction and marketing communication as well as GDPR consents.</p>\r\n<p>Please retry in a few minutes or contact us through the contact form.</p>\r\n",oneTrustErrorRedirectUrl:"/content/ploom/automation/en/support/contact-us",oneTrustErrorLinkText:"Contact us",consentOptionsListType:"default",legalConditionsForConsents:"You can adjust your communication settings at any time in your profile, and/or restrict or withdraw your consent in full or in part.",consentsGroupingType:"default",acceptAllButtonMode:"none",isOptionalConsentsRequired:!0,isColumnDisplayOfConsents:!0}},s=t.createContext(o),a=function(e){var r=e.children,n=e.model;return(0,i.jsx)(s.Provider,{value:n,children:r})},c=function(){return(0,t.useContext)(s)}},88833:(e,r,n)=>{"use strict";n.d(r,{m:()=>l});var i=n(99103),t=n(74254),o=n(7620),s=n(42575),a=n(98788),c=n(75816),l=function(){var e=(0,a.useAvpActions)(),r=e.verify,n=e.initAsyncVerification,l=(0,a.usePolling)(),u=l.startPolling,d=l.stopPolling,f=(0,c.UKg)(),p=f.ISO_COUNTRY_CODE,v=f.asyncHiddenAvName,g=f.asyncHiddenAvTimeout,_=f.isPersonalInformationRequiredForAsyncAv,h=(0,c.c3P)().__,m=(0,o.useRef)(null),b=null!=g?g:6e4,w=(0,a.useIsAgeVerificationHidden)(),C=w.isAgeVerificationHidden,x=w.isAgeVerificationHiddenLoading,y=(0,o.useCallback)(function(e,n,o){return(0,i._)(function(){var i,s;return(0,t._)(this,function(t){switch(t.label){case 0:return[4,r(Object.assign({country_code:p,method_code:n,request_uuid:e},null!=o?o:{}))];case 1:return s=(i=t.sent()).is_verified,[2,{isDone:i.verification_performed,success:s}]}})})()},[p,r]),E=(0,o.useCallback)(function(e,r){return(0,i._)(function(){var i;return(0,t._)(this,function(t){switch(t.label){case 0:if(!r.userEmail)throw Error(h("ageverification.async_hidden_av.email_is_required"));t.label=1;case 1:return t.trys.push([1,3,,4]),[4,n({methodCode:e,userEmail:r.userEmail,fields:r.fields})];case 2:return[2,t.sent()];case 3:throw console.error("Failed to initialize age verification:",i=t.sent()),i;case 4:return[2]}})})()},[n,h]),k=function(){m.current=null},S=function(e){var r=window.open(e,"_blank","width=600,height=700,popup");return r||void console.warn("Verification popup was not opened")},T=(0,o.useCallback)(function(e,r){return(0,i._)(function(){var n,i;return(0,t._)(this,function(t){switch(t.label){case 0:if(m.current){if(!(Date.now()-m.current.createdAt>12e4))return[2,m.current];k()}return[4,E(e,r)];case 1:if(!(n=t.sent()).uuid||!n.data.redirectUrl)throw console.error("Missing crucial data in async AV response:",n),Error(h("ageverification.async_hidden_av.missing_data"));return m.current=i={uuid:n.uuid,redirectUrl:n.data.redirectUrl,createdAt:Date.now()},[2,i]}})})()},[E,h]),j=(0,o.useCallback)(function(e){return(0,i._)(function(){var r,n,o,a,c,l;return(0,t._)(this,function(f){switch(f.label){case 0:if(!v)throw console.error("Async hidden AV method n
1ame is not configured"),Error(h("ageverification.async_hidden_av.method_not_configured"));return[4,T(v,e)];case 1:if(!(n=S((r=f.sent()).redirectUrl)))throw console.warn("Popup was blocked by the browser"),new s.rf5(h("ageverification.async_hidden_av.popup_blocked"));a=_?{user_email:e.userEmail}:{},c=new Promise(function(e,o){u(function(){return(0,i._)(function(){var i,s,c,l;return(0,t._)(this,function(t){switch(t.label){case 0:if(t.trys.push([0,2,,3]),n.closed)return d(),o(Error(h("ageverification.async_hidden_av.closed"))),[2];return[4,y(r.uuid,v,a)];case 1:if(s=(i=t.sent()).isDone,c=i.success,!s)return[2];return d(),c?(e({ageVerificationId:r.uuid}),k()):o(Error(h("ageverification.async_hidden_av.failed"))),[3,3];case 2:return l=t.sent(),d(),o(l),[3,3];case 3:return[2]}})})()},5e3)}),l=new Promise(function(e,r){o=setTimeout(function(){console.warn("User was not validated after ".concat(b,"ms timeout, stopping polling and resetting session")),r(Error(h("ageverification.async_hidden_av.timeout")))},b)}),f.label=2;case 2:return f.trys.push([2,,4,5]),[4,Promise.race([c,l])];case 3:return[2,f.sent()];case 4:return d(),o&&clearTimeout(o),m.current=null,[7];case 5:return[2]}})})()},[v,T,_,h,u,y,d,b]);return{isAsyncHiddenVerificationEnabled:!!v,isAgeVerificationHidden:C,isAgeVerificationHiddenLoading:x,performAsyncHiddenVerification:j}}},92765:(e,r,n)=>{"use strict";n.d(r,{T:()=>i});var i="custom_attributes.province"},95249:e=>{e.exports={step:"Step_step__mSUIv",number:"Step_number__Lg2qn",title:"Step_title__PWm8m",numberContent:"Step_numberContent__Ocmeb",active:"Step_active__4cocA",prevStep:"Step_prevStep__5iEP5",passedStep:"Step_passedStep___TinF",hideTitles:"Step_hideTitles__MqzYU"}},99220:(e,r,n)=>{"use strict";n.d(r,{m:()=>l});var i=n(7620),t=n(58983),o=n.n(t),s=n(42575),a=n(75816),c=o()("desjti:useGoogleLogin"),l=function(e){var r,n,t=e.googleLoginClientLink,o=e.googleLoginClientId,l=e.onSuccessLogin,u=(0,a.UKg)(),d=u.googleLoginMode,f=void 0===d?"popup":d,p=u.googleLoginScopes,v=void 0===p?"email profile":p,g=(0,a.nWU)({scriptSrc:t}).scriptStatus,_=!(0,s.fLi)()&&"ready"===g&&!!(null==(n=null==(r=window.google)?void 0:r.accounts)?void 0:n.oauth2);return{login:(0,i.useCallback)(function(){if(!_||!(null==google?void 0:google.accounts))throw c("Google script was not initiated properly"),Error("[INFO] Google script was not initiated");c("Google was initiated, trying to retrieve the code from Google"),google.accounts.oauth2.initCodeClient({client_id:o,scope:v,ux_mode:f,callback:function(e){l(e.code)}}).requestCode()},[o,f,v,_,l]),scriptStatus:g,isScriptInitiated:_}}}}]);
2//# sourceMappingURL=jti-user-vendor-6b71eef5-458a3cc8350d9b5e.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.