1(()=>{(function(){try{var te=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},w=new te.Error().stack;w&&(te._sentryDebugIds=te._sentryDebugIds||{},te._sentryDebugIds[w]="5db26227-0640-4ede-8f1c-b3d120bcd9ca",te._sentryDebugIdIdentifier="sentry-dbid-5db26227-0640-4ede-8f1c-b3d120bcd9ca")}catch(t){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[83761],{5547:((te,w,t)=>{t.d(w,{Ih:()=>He,_y:()=>Ce,qs:()=>l});var e=t(96540),z=t(23154),m=t(47804),ne=t(13516),q=t(97966),S=t(59530),k=t(47101);if(t.j==25453)var W=t(44030);var me=t(26969),K=t(3248),oe=t(21975),pe=t(97963),se=t(53665),$=t(2275),L=Object.defineProperty,V=Object.defineProperties,he=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,C=(R,y,x)=>y in R?L(R,y,{enumerable:!0,configurable:!0,writable:!0,value:x}):R[y]=x,j=(R,y)=>{for(var x in y||(y={}))D.call(y,x)&&C(R,x,y[x]);if(X)for(var x of X(y))b.call(y,x)&&C(R,x,y[x]);return R},Oe=(R,y)=>V(R,he(y));const Se={preferredLanguage:""},ge=e.createContext(Se),Ce=e.createContext({http:null}),l=()=>{const{http:R}=e.useContext(Ce);return R},F=()=>React.useContext(SettingsContext),J=()=>{const R=F(),y=React.useContext(ge);return console.log(y,R),y},Ve=R=>{var y;const[x,Le]=e.useState(null),[Pe,_e]=e.useState({}),[Z,ae]=e.useState(null),[Ge,Me]=e.useState(!1),{setIsGuest:Fe,isGuest:ye,setUserId:Ye,setCountry:Ne}=e.useContext(q.E),{activeLocale:be}=e.useContext(z.L),xe=be.split("_")[1],re=l();e.useEffect(()=>{re&&Ie()},[re]);const Ie=async()=>{var ce;const Q=await(0,me.QF)(re),Ke=((ce=Q==null?void 0:Q.loc)==null?void 0:ce.split(",")[0])||xe;Ne(Ke==="ZZ"?xe:Ke),Fe(Q.isGuest),Ye(Q.sub)},ze=async()=>{const ce=R.realm?`/realm-settings/realm/${R.realm}`:`/realm-settings/domain/${R.url}`,{parsedData:Q}=await re.get(ce);window.AUTH_PROVIDERS=(0,pe.eC)(Q.authenticationProviders),window.APPS=Q,window.APP_CONF=j(Oe(j({},Q),{authenticationProviders:window.AUTH_PROVIDERS}),Q.settings),Le(Q)},ke=async()=>{const{parsedData:ce}=await re.get("/user/preferences");_e(ce)},we=async()=>{const{parsedData:ce}=await re.get("/label");ae(ce)};return e.useEffect(()=>{ye===!1&&ke()},[ye]),e.useEffect(()=>{ze(),we(),(0,se.V3)({ALGOLIA_APP_ID:"H99XLDR8MJ",ALGOLIA_APP_KEY:"e55ccb3db0399eabe2bfc37a0314c346",LANDING_BG:"",MAIN_TITLE:"",MAIN_INTRO:"",LOGO:"https://imggaming.s3.amazonaws.com/dice-web/assets/dce.sport/logo.png",PRIMARY_FONT_URL:"/assets/fonts/poppins-bold-webfont",SECONDARY_FONT_URL:"/assets/fonts/Roboto-Regular",TERTIARY_FONT_URL:"/assets/fonts/robotocondensed-bold-webfont",PRIMARY_COLOR:"#0076C0",SECONDARY_COLOR:"#FFFFFF",TERTIARY_COLOR:"#272727",BG_COLOR:"#000000",EPG_COLOR:"#000000",LOGO_SCALE:"1"})},[]),e.useEffect(()=>{x&&Pe&&Z&&Me(!0),R.onConfigurationChange({realmSettings:x,preferences:Pe,labels:Z})},[x,Pe,Z]),e.createElement(m.l.Provider,{value:x},e.createElement(ge.Provider,{value:Pe},e.createElement(ne.xK.Provider,{value:{imageType:window.ENV_CONF.IMAGE_RESIZER_FORMAT}},e.createElement(S.P.Provider,{value:{routes:(0,oe.X5)((y=window==null?void 0:window.APP_CONF)==null?void 0:y.URL_LANGUAGE)}},e.createElement(z.L.Provider,{value:{activeLocale:Z==null?void 0:Z.selected_locale,labels:Z==null?void 0:Z.translations[Z==null?void 0:Z.selected_locale]}},Ge?R.children:null)))))},He=R=>{var y,x;const Le=(x=(0,W.OE)((y=localStorage.getItem(k.Zt))!=null?y:"").split("_"))==null?void 0:x[0],[Pe,_e]=e.useState(Le||(0,$.xd)()),{ENV_CONF:{API_KEY:Z,httpapi:ae,VERSION:Ge},APP_CONF:{PRIMARY_COLOR:Me,BG_COLOR:Fe,LOGO_SCALE:ye}}={ENV_CONF:{env:"PROD",httpapi:"https://dce-frontoffice.imggaming.com",beaconapi:"https://guide.imggaming.com/prod",multibeaconapi:"https://guide.imggaming.com",matcheventsapi:"https://plugins.onvesper.com/match-events",vespersearchapi:"https://search.dce-prod.dicelaboratory.com/search",MUXKEY:"c603cae0cab019beb85f1c4c3",SENTRY_DSN:"https://[email protected]/1321936",API_KEY:"857a1e5d-e35e-4fdf-805b-a87b6f8364bf",PUBNUB_SUB_KEY:"sub-c-2e73f4e
10-1dd7-11e7-894d-0619f8945a4f",PUBNUB_SUB_KEY_DCE_PAYMENT:"sub-c-4ac0444a-b4b5-11eb-bcfa-02017f28bfc9",PUBNUB_SUB_KEY_VCID:"sub-c-eeba4cba-608a-11ea-aaa3-eab2515ceb0d",PUBNUB_SUB_KEY_PAYMENT:"sub-c-4ac0444a-b4b5-11eb-bcfa-02017f28bfc9",PUBNUB_SUB_KEY_MATCH_EVENTS:"sub-c-2e73f4e0-1dd7-11e7-894d-0619f8945a4f",turkcellRestUrl:"https://epayment.turkcell.com.tr/paymentmanagement/rest",gtaId:"UA-123989647-1",ADOBE_AUTH:"https://api.auth.adobe.com",IMAGE_RESIZER_FORMAT:"webp",GYGIA_AUTH:"https://idpassets.uefa.com/idp.js",VERSION:"6.60.0"},APP_CONF:{ALGOLIA_APP_ID:"H99XLDR8MJ",ALGOLIA_APP_KEY:"e55ccb3db0399eabe2bfc37a0314c346",LANDING_BG:"",MAIN_TITLE:"",MAIN_INTRO:"",LOGO:"https://imggaming.s3.amazonaws.com/dice-web/assets/dce.sport/logo.png",PRIMARY_FONT_URL:"/assets/fonts/poppins-bold-webfont",SECONDARY_FONT_URL:"/assets/fonts/Roboto-Regular",TERTIARY_FONT_URL:"/assets/fonts/robotocondensed-bold-webfont",PRIMARY_COLOR:"#0076C0",SECONDARY_COLOR:"#FFFFFF",TERTIARY_COLOR:"#272727",BG_COLOR:"#000000",EPG_COLOR:"#000000",LOGO_SCALE:"1"}};window.ENV_CONF={env:"PROD",httpapi:"https://dce-frontoffice.imggaming.com",beaconapi:"https://guide.imggaming.com/prod",multibeaconapi:"https://guide.imggaming.com",matcheventsapi:"https://plugins.onvesper.com/match-events",vespersearchapi:"https://search.dce-prod.dicelaboratory.com/search",MUXKEY:"c603cae0cab019beb85f1c4c3",SENTRY_DSN:"https://[email protected]/1321936",API_KEY:"857a1e5d-e35e-4fdf-805b-a87b6f8364bf",PUBNUB_SUB_KEY:"sub-c-2e73f4e0-1dd7-11e7-894d-0619f8945a4f",PUBNUB_SUB_KEY_DCE_PAYMENT:"sub-c-4ac0444a-b4b5-11eb-bcfa-02017f28bfc9",PUBNUB_SUB_KEY_VCID:"sub-c-eeba4cba-608a-11ea-aaa3-eab2515ceb0d",PUBNUB_SUB_KEY_PAYMENT:"sub-c-4ac0444a-b4b5-11eb-bcfa-02017f28bfc9",PUBNUB_SUB_KEY_MATCH_EVENTS:"sub-c-2e73f4e0-1dd7-11e7-894d-0619f8945a4f",turkcellRestUrl:"https://epayment.turkcell.com.tr/paymentmanagement/rest",gtaId:"UA-123989647-1",ADOBE_AUTH:"https://api.auth.adobe.com",IMAGE_RESIZER_FORMAT:"webp",GYGIA_AUTH:"https://idpassets.uefa.com/idp.js",VERSION:"6.60.0"},e.useEffect(()=>{document.documentElement.style.setProperty("--color-primary",(0,se.Tj)(Me)),document.documentElement.style.setProperty("--color-bg",(0,se.Tj)(Fe)),document.documentElement.style.setProperty("--color-bg-hex",Fe),document.documentElement.style.setProperty("--logo-multiplier",ye)},[]);const Ye=e.useCallback(()=>Pe,[]),Ne=e.useCallback(xe=>{var re;const Ie=(re=xe.labels)==null?void 0:re.selected_locale;_e(Ie),Ie&&localStorage.setItem(k.Zt,(0,W.OE)(Ie))},[]),be=e.useRef((0,K.P)(ae,Ge,Ye,Z,R.realm));return e.createElement(e.Fragment,null,e.createElement(Ce.Provider,{value:{http:be.current}},e.createElement(Ve,{realm:R.realm,url:R.url,onConfigurationChange:Ne},R.children)))}}),47078:((te,w,t)=>{t.d(w,{M:()=>W});var e=t(87719),z=t(70279),m=t(32248),ne=t(82705),q=t(79716),S=t(74528),k=t(97963);class W{static async createGooglePalNonces(K){var oe,pe;const $=this.getService().getContext(K);if(!$)return;const L={iconsSupported:((oe=window.APP_CONF.palSdkConfiguration)==null?void 0:oe.whyThisAdIcon)===ne.q.SHOW,playerType:"Website",playerVersion:window.VERSION,ppid:(pe=(0,k.MU)())!=null?pe:"fallback-ads-id",videoHeight:window.devicePixelRatio*window.screen.height,videoWidth:window.devicePixelRatio*window.screen.width,continuousPlayback:!1,descriptionUrl:document.location.origin,url:document.location.href};try{const V=new Map,he=this.getGooglePalSdkConfigurationAllows();if(he.includes(e.I.MEDIATAILOR)){if(window.APP_CONF.omSdkEnableMode===m.X4.ENABLED){const{getOmidParameters:D}=await Promise.all([t.e(34016),t.e(13980),t.e(73062),t.e(59892)]).then(t.bind(t,73062)),b=D();L.omidPartnerName=b.omidPartnerName,L.omidPartnerVersion=b.omidPartnerVersion,L.supportedApiFrameworks=b.supportedApiFrameworks}let X=$.getNonceManager(e.I.MEDIATAILOR);X||(X=await $.createNonceManager(e.I.MEDIATAILOR,L)),V.set("CM-DVC-GIVN-MEDIATAILOR",X.getNonce())}if(he.includes(e.I.YOSPACE)){if(window.APP_CONF.omSdkEnableMode===m.X4.ENABLED){const D=(0,S.m)();L.omidPartnerName=D.omidPartnerName,L.omidPartnerVersion=D.omidPartnerVersion,L.supportedApiFrameworks=D.supportedApiFrameworks}let X=$.getNonceManager(e.I.YOSPACE);X||(X=await $.createNonceManager(e.I.YOSPACE,L)),V.set("CM-DVC-GIVN-YOSPACE",X.getNonce())}return V}catch(V){return}}static async generateGooglePalContextId(){if(this.getIsGoogleSdkEnabled())return await(0,z.n)({adProvi
1ders:this.getGooglePalSdkConfigurationAllows(),googlePalService:this.getService()})}static getGooglePalSdkConfigurationAllows(){return this.getIsGoogleSdkEnabled()?window.APP_CONF.palSdkConfiguration.allows:[]}static getIsGoogleSdkEnabled(){var K,oe;return((oe=(K=window.APP_CONF)==null?void 0:K.palSdkConfiguration)==null?void 0:oe.enableMode)===m.X4.ENABLED&&!!window.APP_CONF.palSdkConfiguration.allows.length}static getService(){if(this.getIsGoogleSdkEnabled())return this._googlePalService||(this._googlePalService=new q.O),this._googlePalService}}}),51314:((te,w,t)=>{t.d(w,{q:()=>e});const e=(z,m)=>{if(!z)return m;try{return JSON.parse(z)}catch(ne){return m}}}),58146:((te,w,t)=>{t.r(w),t.d(w,{SignupWrapper:()=>X});var e=t(96540),z=t(71468),m=t(82511),ne=t(58562),q=t(53777),S=t(59530),k=t(57611),W=t(97963),me=t(85401),K=Object.defineProperty,oe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,$=(D,b,C)=>b in D?K(D,b,{enumerable:!0,configurable:!0,writable:!0,value:C}):D[b]=C,L=(D,b)=>{for(var C in b||(b={}))pe.call(b,C)&&$(D,C,b[C]);if(oe)for(var C of oe(b))se.call(b,C)&&$(D,C,b[C]);return D};const V=e.lazy(()=>Promise.all([t.e(37817),t.e(9279),t.e(62747),t.e(47056),t.e(7988),t.e(39147),t.e(29979),t.e(96746),t.e(31865),t.e(43913),t.e(90137),t.e(84431),t.e(46879),t.e(11543),t.e(93262),t.e(5029),t.e(39088),t.e(92516),t.e(59906),t.e(40967)]).then(t.bind(t,9087))),he=D=>{const{outsideAllowedTerritories:b}=window.APP_CONF,{isChild:C}=D,j=C?"kidPurchasePermissionDenied":b?"signupGeoRestriction":"vpnErrorMessage",Oe=(0,ne.b0)([j]),Se=(0,z.d4)(J=>J.services.app.isRtL),{routes:ge,defaultMenuParams:Ce}=e.useContext(S.P),l=(0,k.W)(),F=()=>(0,me.OS)(Ce,ge,l);return e.createElement(q.Modal,{isRtL:Se,handleClose:F},e.createElement(e.Fragment,null,Oe[j].value))},X=D=>{const{outsideAllowedTerritories:b,usingVpnOnDisallowingRealm:C}=window.APP_CONF,{type:j}=(0,W.sh)()||{},Oe=j===m.XE.CHILD;return b||C||Oe?e.createElement(he,{isChild:Oe}):e.createElement(V,L({},D))}}),59711:((te,w,t)=>{t.r(w),t.d(w,{GiftRoot:()=>dt,GiftingApp:()=>ut,GiftingAppWrapper:()=>ct,default:()=>Ft});var e=t(96540),z=t(71468),m=t(76213),ne=t(23154),q=t(47804),S=t(58562),k=t(57961),W=t(97966),me=t(74176),K=t(52360);const oe={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},pe=({goToMessage:n})=>{var o,s,i,a,r,f;const d=(0,S.b0)(["selectGiftDuration","continue"]),{selectedGift:c,giftMessage:{recipient:O,message:I,duration:E},setGiftMessage:v}=(0,e.useContext)(W.E),u=N=>{let M=N;const{numberOfPeriods:T}=c.options;return N>T.end?M=T.end:N<T.start&&(M=T.start),v({duration:M,recipient:O,message:I})},g=(0,K.IR)((s=(o=c.options)==null?void 0:o.period)==null?void 0:s.value)+(E>1?"s":""),G=()=>{setTimeout(()=>{n()},100)},_=d.selectGiftDuration.value;return e.createElement("div",{className:"gift-duration"},e.createElement("h2",null,_.toUpperCase()),e.createElement(me.E,{id:"gift-duration--in
1put",label:g,onChange:u,type:"number",value:E,maxValue:(a=(i=c.options)==null?void 0:i.numberOfPeriods)==null?void 0:a.end,minValue:(f=(r=c.options)==null?void 0:r.numberOfPeriods)==null?void 0:f.start,isValueFixed:!0,inputAriaLabel:`${g}, ${_}`}),e.createElement(k.$,{label:d.continue.value,style:{fill:!0},onClick:G}))};var se=t(39908),$=t(44421),L=t(26969),V=t(5547);const he={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},X=({goToLoginOrPay:n})=>{const o=(0,S.b0)(["emailIsInvalid","continue","recipientEmail","noteOptional",$.Rb]),[s,i]=e.useState(!1),[a,r]=e.useState(!1),f=(0,V.qs)(),{selectedGift:d,giftMessage:c,setGiftMessage:O,setError:I,country:E}=(0,e.useContext)(W.E),{message:v,recipient:u,duration:g}=c;e.useEffect(()=>{var p,A;const P=(A=(p=d==null?void 0:d.options)==null?void 0:p.numberOfPeriods)==null?void 0:A.start;!g&&P&&O({recipient:u,message:v,duration:P})},[g,u,v,d]);const G=p=>{I(null),i(!1),O({recipient:p,message:v,duration:g})},_=({target:{value:p}})=>{O({recipient:u,message:p,duration:g})},N=async()=>{var p;try{r(!0),I(null),await(0,L.J9)(d.externalId,c,E,f),r(!1),n()}catch(A){r(!1),(p=A.messages)!=null&&p.includes("emailIsInvalid")?i(!0):I(o[$.Rb].value)}},M=e.useCallback(()=>{u?N():i(!0)},[N,u,v]),T="noteOptional";return e.createElement("div",{className:"gift-recipient"},e.createElement(me.E,{label:o.recipientEmail.value,onChange:G,error:s&&o.emailIsInvalid.value,value:u,isValueFixed:!0,autofocus:!0}),e.createElement("div",{className:"form-textarea"},e.createElement("label",{id:T},o.noteOptional.value),e.createElement("textarea",{"aria-labelledby":T,rows:6,onChange:_,value:v})),e.createElement(se.$n,{className:se.k9.SECONDARY,onClick:M,isLoading:a},a?null:e.createElement("span",{className:"btn__label"},o.continue.value)))};var D=t(11456),b=t(70423),C=t(59530),j=t(57611),Oe=t(21678),Se=t(41078),ge=t(63492),Ce=t(16231),l=t(21975),F=t(81730),J=t(49280),Ve=t(60031),He=t(32248),R=t(90953),y=t(80636),x=t(19125),Le=t(59906),Pe=t(43482),_e=t(99208),Z=t(90634),ae=t(13516),Ge=t(20194),Me=t(85401);const Fe={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},ye=n=>{const{imageType:o}=e.useContext(ae.xK),{giftPageTitle:s}=(0,S.b0)(["giftPageTitle"]),{settings:{GIFT_BACKGROUND_IMAGE:i}}=(0,R.U)(),a=(0,ae.vy)(i,window.innerWidth*2,"AUTO",o);return e.createElement("div",{className:"gift-hero"},e.createElement("div",{className:"gift-hero__image",style:{backgroundImage:`url(${a})`}}),e.createElement("div",{className:"gift-hero__meta-container"},e.createElement("div",{className:"gift-hero__meta"},e.createElement("h1",{"aria-level":2},s.value),n.onClick?e.createElement(k.$,{label:n.ctaText,onClick:n.onClick}):null)))},Ye={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},Ne=n=>{const{giftHeroCta:o}=(0,S.b0)(["giftHeroCta"]),s=(0,j.W)(),i=(0,m.zy)(),{defaultMenuParams:a,routes:r}=e.useContext(C.P),f=()=>{const I=(0,m.tW)(r[l.xW.LOGOUT]);s.push(I)},d=()=>(0,Me.OS)(a,r,s),c=()=>{var I;!!(0,F.Y)(r[l.xW.GIFTS],i.pathname)?(I=n.scrollToGifts)==null||I.call(n,"smooth"):O()},O=()=>s.push(r[l.xW.GIFTS]);return e.createElement("div",{className:"gift-home"},e.createElement(be,{handleLogoutClick:f,handleLogoClick:d}),e.createElement(ye,{onClick:c,ctaText:o.value}),n.children)},be=({handleLogoutClick:n,handleLogoClick:o})=>{const{isGuest:s}=(0,e.useContext)(W.E),{imageType:i}=e.useContext(ae.xK),{logout:a,gifts:r}=(0,S.b0)(["logout","gifts"]),{settings:{LOGO_WEB:f}}=(0,R.U)(),{APPS:{WEB:d}}=window,c=d==null?void 0:d.languageBadgeStyle;return e.createElement("div",{className:(0,ae.AH)("gift-topbar",c&&"gift-topbar--with-language-toggle")},e.createElement("div",{className:"gift-topbar--logo",onClick:o},e.createElement("img",{alt:r.value,src:(0,ae.vy)(f,"AUTO",110,i)})),e.createElement("div",{className:"gift-topbar--actions"},s===!1&&n?e.createElement(se.$n,{className:(0,ae.AH)(se.k9.SECONDARY,"gift-topbar--login"),onClick:n,smallMode:!0},e.createElement("span",{className:"btn__label"},a.value)):null,c?e.createElement(Ge.J,{shouldReload:!0}):null))}
1,xe={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"};var re=Object.defineProperty,Ie=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,we=(n,o,s)=>o in n?re(n,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[o]=s,ce=(n,o)=>{for(var s in o||(o={}))ze.call(o,s)&&we(n,s,o[s]);if(Ie)for(var s of Ie(o))ke.call(o,s)&&we(n,s,o[s]);return n};const Q=(n,o,s=!0,i=1)=>{var a,r,f;if(!n.itemPrice.amount)return null;const d=(n.itemPrice.amount*i/Math.pow(10,n.itemPrice.scale)).toFixed(n.itemPrice.scale),c=(0,Ve.bT)(d,n.itemPrice.currency);if(!s)return{price:c};const O=o[(0,K.IR)((r=(a=n.options)==null?void 0:a.period)==null?void 0:r.value,"/")],I=(f=n.options.period)!=null&&f.value?`${O?O.value:n.options.period.value}`:"";return{price:c,period:I}},Ke=()=>{const n=(0,j.W)(),o=(0,S.b0)(["giftPickerTitle","giftPickerDescription","/day","/week","/month","/sixmonth","/year","freeTrialDuration","giftLicenceCta","selectCountryGift"]),{setSelectedGift:s,setGiftMessage:i,availableGifts:a,giftMessage:r,loading:f,error:d,setError:c,countries:O,country:I,setCountry:E}=(0,e.useContext)(W.E),{routes:v}=e.useContext(C.P),{APP_CONF:{PRIMARY_COLOR:u}}={APP_CONF:{ALGOLIA_APP_ID:"H99XLDR8MJ",ALGOLIA_APP_KEY:"e55ccb3db0399eabe2bfc37a0314c346",LANDING_BG:"",MAIN_TITLE:"",MAIN_INTRO:"",LOGO:"https://imggaming.s3.amazonaws.com/dice-web/assets/dce.sport/logo.png",PRIMARY_FONT_URL:"/assets/fonts/poppins-bold-webfont",SECONDARY_FONT_URL:"/assets/fonts/Roboto-Regular",TERTIARY_FONT_URL:"/assets/fonts/robotocondensed-bold-webfont",PRIMARY_COLOR:"#0076C0",SECONDARY_COLOR:"#FFFFFF",TERTIARY_COLOR:"#272727",BG_COLOR:"#000000",EPG_COLOR:"#000000",LOGO_SCALE:"1"}},{giftPurchaseInAnotherRegion:g}=(0,R.U)(),G=g===He.X4.ENABLED,_=e.useRef(null),N=e.useRef(null),M=P=>({action:()=>{s(P);const U=(0,m.tW)(v[l.xW.GIFT],{giftId:P.externalId});n.push(U)},title:o.giftLicenceCta.value}),T=(0,z.d4)(P=>P.services.app.previousLocation),p=(P="auto")=>{var U;(U=_==null?void 0:_.current)==null||U.scrollIntoView({behavior:P}),setTimeout(()=>{var Y;(Y=N==null?void 0:N.current)==null||Y.focus()},500)};e.useEffect(()=>(i(ce({},r)),(0,F.Y)(v[l.xW.GIFT],T)&&p(),()=>c(null)),[]);const A=()=>e.createElement(y.wP,{inputRef:N,countries:O,countryCode:I,onChange:E,label:o.selectCountryGift.value});return e.createElement(Ne,{scrollToGifts:p},e.createElement("div",{ref:_,className:"gift-picker"},e.createElement(_e.n,{title:o.giftPickerTitle.value,description:o.giftPickerDescription.value,extraComponent:G&&A()},f?e.createElement(ge.A,{color:u}):e.createElement(e.Fragment,null,d?e.createElement("p",{className:"gift-error"},d):null,e.createElement(Pe.M,null,a==null?void 0:a.map(P=>e.createElement(Le.I,{title:P.name,key:P.externalId,button:M(P),displayStyle:P.displayStyle,licencePriceDetails:Q(P,o)},e.createElement(x.A,{source:P.description,customRenderers:(0,Z.w)()}))))))))},xt={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},Qe=({title:n,handleLogin:o,secondaryButton:s})=>{const i=e.useRef(null),{signIn:a,alternativeAuthenticationSeparator:r}=(0,S.b0)(["signIn","alternativeAuthenticationSeparator"]);return(0,e.useEffect)(()=>{i.current&&i.current.focus()},[]),e.createElement("div",{className:"gift-registration"},e.createElement("h2",{ref:i,role:"alert",tabIndex:0},n),e.createElement(k.$,{label:a.value,onClick:o}),e.createElement("div",{className:"sign-up__label"},e.createElement("div",{className:"sign-up__text"},r.value)),s)},Ut={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"};var ft=Object.defineProperty,qe=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,et=(n,o,s)=>o in n?ft(n,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[o]=s,Et=(n,o)=>{for(var s in o||(o={}))mt.call(o,s)&&et(n,s,o[s]);if(qe)for(var s of qe(o))gt.call(o,s)&&et(n,s,o[s]);return n},vt=(n=>(n.GIFT_DURATION="GIFT_DURATION",n.GIFT_MESSAGE="GIFT_MESSAGE",n.GIFT_LOGIN="GIFT_LOGIN",n))(vt||{});const pt=()=>{var n,o,s;const i=(0,m.zy)(),a=(0,j.W)(),{selectedGift:r,availableGifts:f,
1setSelectedGift:d,isGuest:c,giftMessage:{recipient:O,message:I,duration:E},setGiftMessage:v,error:u,setError:g}=(0,e.useContext)(W.E),G=e.useRef(null),{alreadyHaveAnAccount:_,continueAsGuest:N,back:M}=(0,S.b0)(["alreadyHaveAnAccount","continueAsGuest","back"]),T=["GIFT_DURATION","GIFT_MESSAGE","GIFT_LOGIN"],p=r&&!((n=Object.keys(r.options||{}))!=null&&n.length),A=(o=r==null?void 0:r.options)==null?void 0:o.numberOfPeriods,P=Number(A==null?void 0:A.start)===Number(A==null?void 0:A.end),U=(0,z.d4)(B=>B.services.app.previousLocation);(p||P)&&T.shift();const[Y,H]=e.useState(T[0]),Ue=(0,Oe.Z)(Y),{routes:h}=e.useContext(C.P),le=(s=(0,F.Y)(h[l.xW.GIFT],i.pathname,!1))==null?void 0:s.params.giftId,{APP_CONF:{PRIMARY_COLOR:de}}={APP_CONF:{ALGOLIA_APP_ID:"H99XLDR8MJ",ALGOLIA_APP_KEY:"e55ccb3db0399eabe2bfc37a0314c346",LANDING_BG:"",MAIN_TITLE:"",MAIN_INTRO:"",LOGO:"https://imggaming.s3.amazonaws.com/dice-web/assets/dce.sport/logo.png",PRIMARY_FONT_URL:"/assets/fonts/poppins-bold-webfont",SECONDARY_FONT_URL:"/assets/fonts/Roboto-Regular",TERTIARY_FONT_URL:"/assets/fonts/robotocondensed-bold-webfont",PRIMARY_COLOR:"#0076C0",SECONDARY_COLOR:"#FFFFFF",TERTIARY_COLOR:"#272727",BG_COLOR:"#000000",EPG_COLOR:"#000000",LOGO_SCALE:"1"}},ue=(0,Se.l)();e.useEffect(()=>{const B=localStorage.getItem(J.Gx);c&&B==="GIFT_LOGIN"&&E&&O&&H("GIFT_LOGIN")},[c]),e.useEffect(()=>{localStorage.setItem(J.Gx,Y)},[Y]),e.useEffect(()=>{const B=G==null?void 0:G.current,ve=U===h[l.xW.LOGOUT];if(!B||ve||!r||u)return;const{bottom:Te,top:De}=B.getBoundingClientRect();if(Te>window.innerHeight||De<0){const Xe=Ue?"smooth":"auto",Ze=ue>=Ce.R8?"center":"start";B.scrollIntoView({behavior:Xe,block:Ze})}},[r,u]),e.useEffect(()=>{(p||P)&&Y==="GIFT_DURATION"&&(v({duration:1}),H("GIFT_MESSAGE"))},[r]);const ie=()=>{const{price:B,period:ve}=Q(r,null,!1,E),{price:Te,period:De}=Q(r,null,!1),Be=`${B}${ve||""}`;return{licenceName:r.name,licenceValue:`${Te}${De||""}`,licenceDescription:r.description,purchaseSubtotal:Be,purchaseTotal:Be,isGifting:!0,currency:r==null?void 0:r.itemPrice.currency,hideBackBtn:!0}},fe=()=>{if(g(null),Y===T[0])a.push(h[l.xW.GIFTS]);else{const B=T.indexOf(Y);H(T[B-1])}};e.useEffect(()=>{if(v({duration:1,message:I,recipient:O}),!r&&f){const B=le,ve=f.find(Te=>Te.externalId===B);ve?d(ve):fe()}},[r,f]);const Ee=()=>{if(c)H("GIFT_LOGIN");else{const B=(0,m.tW)(h[l.xW.GIFT_PAY],{giftId:r.externalId});return a.push(B)}},ee=()=>e.createElement(k.$,{label:N.value,onClick:Ae,className:"secondary-button"}),Re=(B,ve)=>{const Te=(0,m.tW)(h[B],{giftId:r.externalId}),De=new URLSearchParams(i.search),Be=new URLSearchParams(ve);return ve&&Be.forEach((Xe,Ze)=>De.set(Ze,Xe)),a.push({pathname:Te,search:De.toString()})},We=()=>{const B=(0,m.tW)(h[l.xW.GIFT_LOGIN_REDIRECT],{giftId:(r==null?void 0:r.externalId)||le});Re(l.xW.GIFT_LOGIN,{entryPage:B})},Ae=()=>Re(l.xW.GIFT_PAY),Je=()=>{switch(Y){case"GIFT_DURATION":return e.createElement(pe,{goToMessage:()=>H("GIFT_MESSAGE")});case"GIFT_MESSAGE":return e.createElement(X,{goToLoginOrPay:Ee});case"GIFT_LOGIN":return e.createElement(Qe,{title:_.value,handleLogin:We,secondaryButton:ee()})}};return e.createElement(Ne,null,e.createElement("div",{className:"gift-config",ref:G},r?e.createElement("div",{className:"gift-config__data"},e.createElement("button",{"aria-label":M.value,onClick:fe,className:"gift-config__topbar"},e.createElement(D.A,{height:15,width:15})),e.createElement("div",{className:"gift-config__content"},Je(),Y!=="GIFT_LOGIN"&&e.createElement(b.$,Et({},ie()))),u&&e.createElement("p",{className:"gift-config__error"},u)):u?e.createElement("p",{className:"gift-error"},u):e.createElement(ge.A,{color:de})))};var Ot=t(84045),Pt=Object.defineProperty,It=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,nt=(n,o,s)=>o in n?Pt(n,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[o]=s,Ct=(n,o)=>{for(var s in o||(o={}))At.call(o,s)&&nt(n,s,o[s]);if(tt)for(var s of tt(o))ht.call(o,s)&&nt(n,s,o[s]);return n},Gt=(n,o)=>It(n,Rt(o));const ot="redeemCode",$e="shouldRedeemGift";var Tt=(n=>(n.USER_ALREADY_ENTITLED="USER_ALREADY_ENTITLED",n.REDEEM_CODE_ALREADY_USED="REDEEM_CODE_ALREADY_USED",n.PRODUCT_NOT_AVAILABLE="PRODUCT_NOT_AVAILABLE",n))(Tt||{});const je=n=>n==="USER_ALREADY_ENTITLED"?"conflictingGift":n==="REDEEM_CODE_ALREADY_USED"?"giftRedeemCodeAlreadyUsed":n==="PRODUCT_NOT_AVAILABLE"?"giftNotAvailable":"errorOccurredPleaseTryAgain",St=()=>{var n,o;const s=(0,m.zy)(),{setGiftToRedeem:i,giftToRedeem:a,isGuest:r}=(0,e.useContext)(W.E),[f,d]=e.useState(null),c=(0,S.b0)(["giftDuration","giftRedeem","haveAnAccount","signUp","youGotAGift","noteFromSender","giftRedeemCodeAlreadyUsed","errorOccurredPleaseTryAgain","giftRedemptionSuccessful","conflictingGift","giftNotAvailable"],{giftRedemptionSuccessful:{licenceName:(n=a==null?void 0:a.summary)==null?void 0:n.name}}),[O,I]=e.useState(!1),[E,v]=e.useState(null),u=(0,V.qs)(),g=(0,j.W)(),{routes:G}=(0,e.useContext)(C.P),_=(o=s==null?void 0:s.state)==null?void 0:o.errorOnRedeeming;e.useEffect(()=>{_&&(v(_),g.replace(Gt(Ct({},g.location),{state:{}})))},[_]),e.useEffect(()=>{const h=new URLSearchParams(s.search).get(ot)||"";
1h||g.push(G[l.xW.GIFTS]),d(h)},[]),e.useEffect(()=>(window.sessionStorage.getItem($e)&&M(),()=>N()),[]);const N=()=>window.sessionStorage.removeItem($e),M=async()=>{const h=f||new URLSearchParams(window.location.search).get(ot);try{await(0,L.tV)(u,h),I(!0)}catch(le){const de=je(le.code);v(de)}N()};e.useEffect(()=>{f&&T()},[f]);const T=async()=>{try{const h=await(0,L.fI)(u,f);i(h)}catch(h){g.push(G[l.xW.GIFTS])}},p=()=>{const h=(0,m.tW)(G[l.xW.GIFT_REDEMPTION_LOGIN],{redeemCode:f});g.push(h)},A=()=>g.push(G[l.xW.GIFTS]),P=()=>{const h=(0,m.tW)(G[l.xW.GIFT_REDEMPTION_REGISTER],{redeemCode:f});g.push(h)},U=()=>({action:async()=>{if(r)I(!0);else try{v(null),await(0,L.tV)(u,f),I(!0)}catch({code:h,messages:le}){const de=je(h);v(c[de].value)}},title:c.giftRedeem.value}),Y=()=>{var h,le,de,ue,ie,fe,Ee,ee;if(((le=(h=a.options)==null?void 0:h.numberOfPeriods)==null?void 0:le.type)!=="INT_RANGE")return null;const Re=(0,K.IR)((ue=(de=a.options)==null?void 0:de.period)==null?void 0:ue.value)+(((fe=(ie=a.options)==null?void 0:ie.numberOfPeriods)==null?void 0:fe.value)>1?"s":"");return e.createElement(e.Fragment,null,e.createElement("p",null,c.giftDuration.value),e.createElement("p",null,`${(ee=(Ee=a.options)==null?void 0:Ee.numberOfPeriods)==null?void 0:ee.value} ${Re}`))},H=()=>e.createElement(k.$,{label:c.signUp.value,onClick:P,className:"secondary-button"}),Ue=()=>I(!1);return e.createElement("div",{className:"gift-redemption"},e.createElement(be,{handleLogoClick:A}),a?e.createElement("div",{className:"gift-config"},e.createElement("div",{className:"gift-config__data"},O&&r?e.createElement(e.Fragment,null,e.createElement("div",{className:"gift-config__topbar"},e.createElement(D.A,{height:15,width:15,onClick:Ue})),e.createElement(Qe,{title:c.haveAnAccount.value,handleLogin:p,secondaryButton:H()})):e.createElement(e.Fragment,null,e.createElement("h2",{className:"gift-config__title"},c.youGotAGift.value),e.createElement("div",{className:(0,ae.AH)("gift-config__redeem",!a.note&&"gift-config__redeem--no-note")},a.note&&e.createElement("div",{className:"gift-note"},e.createElement("h2",null,c.noteFromSender.value),e.createElement("p",{className:"note-from-sender"},a.note)),e.createElement(Le.I,{title:a.summary.name,key:a.summary.externalId,button:U(),getGiftDuration:Y},e.createElement(x.A,{source:a.summary.description,customRenderers:(0,Z.w)()}))),E?e.createElement("p",{className:"gift-config__error"},E):null)),O&&!r&&!E?e.createElement(Ot.L,{isGifting:!0,label:c.giftRedemptionSuccessful.value}):null):null)};var Lt=t(84454),st=t(81056),yt=t(97407),at=t(51314);const Yt={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},Nt=()=>{var n,o;const{setIsGuest:s,setUserId:i,selectedGift:a,giftMessage:r,country:f}=e.useContext(W.E),{routes:d}=(0,e.useContext)(C.P),{activeLocale:c}=e.useContext(ne.L),O=(0,st.ru)(c),I=(0,V.qs)(),E=(0,j.W)(),{pathname:v}=(0,m.zy)(),u=(n=(0,F.Y)(d[l.xW.GIFT_LOGIN],v,!1))==null?void 0:n.params.giftId,g=(o=(0,F.Y)(d[l.xW.GIFT_REDEMPTION_LOGIN],v,!1))==null?void 0:o.params.redeemCode,{APPS:{WEB:G}}=window,_=async U=>{s(!1),U&&i(U);const Y=g||new URLSearchParams(window.location.search).get("redeemCode");if(u&&r.recipient){await(0,L.J9)((a==null?void 0:a.externalId)||u,r,f,I);const H=(0,m.tW)(d[l.xW.GIFT_PAY],{giftId:u});return E.push(H)}else if(u&&!r.recipient){const H=(0,m.tW)(d[l.xW.GIFT],{giftId:u});E.push(H)}else if(Y){window.sessionStorage.setItem($e,"true");const H=`${d[l.xW.GIFT_REDEMPTION]}?redeemCode=${Y}`;return E.push(H)}else return E.push(d[l.xW.GIFTS])},N=()=>{const U={giftId:(a==null?void 0:a.externalId)||u,recipient:r.recipient,duration:r.duration,message:r.message,country:f,redeemCode:g};return localStorage.setItem(J.G0,JSON.stringify(U)),(0,m.tW)(d[l.xW.GIFT_LOGIN_REDIRECT],{giftId:(a==null?void 0:a.externalId)||u})},M=()=>{let U;return g?U=(0,m.tW)(d[l.xW.GIFT_REDEMPTION_REGISTER],{redeemCode:g}):U=(0,m.tW)(d[l.xW.GIFT_PAY],{giftId:u}),E.push(U,{willSignUpForGifting:!0})},T=()=>e.createElement(yt.default,{onSigninComplete:_,handleSignup:M,from:N()}),p=!!(0,F.Y)(d[l.xW.GIFT_LOGIN_REDIRECT],v,!1),A=!p&&!!(0,F.Y)(d[l.xW.GIFT_LOGIN
1],v,!1),P=!p&&!A&&!!(0,F.Y)(d[l.xW.GIFT_REDEMPTION_LOGIN],v,!1);return e.createElement("div",{className:"gift-login fullscreen-login-wrapper fullscreen-authentication"},G!=null&&G.languageBadgeStyle?e.createElement(Ge.J,{shouldReload:!0}):null,e.createElement(Lt.y,{isRtL:O},p?e.createElement(bt,null):A||P?T():null))},bt=()=>{const n=(0,V.qs)(),{routes:o}=(0,e.useContext)(C.P),s=(0,j.W)(),i=localStorage.getItem(J.G0),{giftId:a,recipient:r,duration:f,message:d,country:c,redeemCode:O}=(0,at.q)(i,{}),I=async()=>{if(a&&r){await(0,L.J9)(a,{duration:parseInt(f,10),message:d,recipient:r},c,n);const E=(0,m.tW)(o[l.xW.GIFT_PAY],{giftId:a});return s.push(E)}else if(a&&!r){const E=(0,m.tW)(o[l.xW.GIFT],{giftId:a});s.push(E)}else if(O){const E=`${o[l.xW.GIFT_REDEMPTION]}?redeemCode=${O}`;return s.push(E)}else return s.push(o[l.xW.GIFTS])};return e.useEffect(()=>(I(),()=>localStorage.removeItem(J.G0)),[]),e.createElement(ge.A,null)},rt=Nt;var Dt=t(58146);const wt={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},lt=()=>{var n,o;const s=(0,V.qs)(),i=(0,j.W)(),a=(0,m.zy)(),[r,f]=e.useState(!1),[d,c]=e.useState(!1),[O,I]=e.useState(null),[E,v]=e.useState(null),{isGuest:u,selectedGift:g,setIsGuest:G,setUserId:_,giftMe
1ssage:{recipient:N},error:M,setError:T}=(0,e.useContext)(W.E),{routes:p}=e.useContext(C.P),A=(n=(0,F.Y)(p[l.xW.GIFT_PAY],a.pathname,!1))==null?void 0:n.params.giftId,P=(o=(0,F.Y)(p[l.xW.GIFT_REDEMPTION_REGISTER],a.pathname,!1))==null?void 0:o.params.redeemCode,U=(0,S.b0)(["conflictingGift","giftRedeemCodeAlreadyUsed","errorOccurredPleaseTryAgain","giftNotAvailable"]),{APP_CONF:{PRIMARY_COLOR:Y}}={APP_CONF:{ALGOLIA_APP_ID:"H99XLDR8MJ",ALGOLIA_APP_KEY:"e55ccb3db0399eabe2bfc37a0314c346",LANDING_BG:"",MAIN_TITLE:"",MAIN_INTRO:"",LOGO:"https://imggaming.s3.amazonaws.com/dice-web/assets/dce.sport/logo.png",PRIMARY_FONT_URL:"/assets/fonts/poppins-bold-webfont",SECONDARY_FONT_URL:"/assets/fonts/Roboto-Regular",TERTIARY_FONT_URL:"/assets/fonts/robotocondensed-bold-webfont",PRIMARY_COLOR:"#0076C0",SECONDARY_COLOR:"#FFFFFF",TERTIARY_COLOR:"#272727",BG_COLOR:"#000000",EPG_COLOR:"#000000",LOGO_SCALE:"1"}},{APPS:{WEB:H}}=window,Ue=window.PAYMENT_PROVIDERS&&E&&O,h=JSON.parse(localStorage.getItem(J.Nf));e.useEffect(()=>(u||le(),()=>{u||localStorage.removeItem(J.Nf)}),[]),e.useEffect(()=>{P?c(!0):de()},[P]);const le=async ue=>{if(G(!1),ue&&_(ue),!A&&!P)i.push(p[l.xW.GIFTS]);else if(A&&!N&&!(h!=null&&h.recipient)){const ie=(0,m.tW)(p[l.xW.GIFT],{giftId:A});i.push(ie)}else if(P)try{await(0,L.tV)(s,P)}catch({code:ie}){const fe=`${p[l.xW.GIFT_REDEMPTION]}?redeemCode=${P}`,Ee=je(ie);return i.push(fe,{errorOnRedeeming:U[Ee].value})}},de=async()=>{var ue,ie,fe;const Ee=(ue=a==null?void 0:a.state)==null?void 0:ue.willSignUpForGifting;c(!1),f(!0);const ee=await(0,L.Bm)(s);if((ee==null?void 0:ee.availablePaymentProviders.length)===0){f(!1),T(U.errorOccurredPleaseTryAgain.value);const Ae=(0,m.tW)(p[l.xW.GIFTS]);return i.push(Ae)}const Re=(0,L.l2)(ee);let We;if(!((ie=ee==null?void 0:ee.basketItems)!=null&&ie.length)&&!Ee){const Ae=A?(0,m.tW)(p[l.xW.GIFT],{giftId:A}):p[l.xW.GIFTS];i.push(Ae)}else{if((!A||!N)&&Ee)return f(!1),c(!0);if(g)We=(0,L.Hk)(g);else{const Ae=(fe=ee==null?void 0:ee.basketItems)==null?void 0:fe.find(Je=>A===Je.externalId);if(!Ae)return i.push(p[l.xW.GIFTS]);We=(0,L.YI)(Ae)}}v(We),window.PAYMENT_PROVIDERS=Re==null?void 0:Re.paymentProvidersList,I(Re),f(!1)};return e.createElement("div",{className:"gift-pay"},H!=null&&H.languageBadgeStyle?e.createElement(Ge.J,{shouldReload:!0}):null,r?e.createElement(ge.A,{color:Y}):null,Ue||d?e.createElement(Dt.SignupWrapper,{didError:!!M,externalLicence:E,giftBasket:O,specificHttp:s,signUpComplete:le,giftId:A,redeemCode:P}):null)};var _t=t(21738),Mt=t(16505),it=t(2275);const ct=n=>{const[o,s]=e.useState(null),[i,a]=e.useState(null),[r,f]=e.useState(null),[d,c]=e.useState(!1),[O,I]=e.useState(n.isGuest),[E,v]=e.useState(n.userId),[u,g]=e.useState({}),[G,_]=e.useState(null),[N,M]=e.useState([]),[T,p]=e.useState(null),A=JSON.parse(localStorage.getItem(J.Nf));return e.useEffect(()=>{(0,it.Im)(A)||g(A)},[]),e.useEffect(()=>{u&&localStorage.setItem(J.Nf,JSON.stringify(u))},[u]),e.createElement(W.E.Provider,{value:{setSelectedGift:s,selectedGift:o,availableGifts:i,setAvailableGifts:a,error:r,setError:f,loading:d,setLoading:c,isGuest:O,setIsGuest:I,userId:E,setUserId:v,giftMessage:u,setGiftMessage:g,country:G,setCountry:_,giftToRedeem:T,setGiftToRedeem:p,countries:N,setCountries:M}},n.children)},dt=()=>{const{isGuest:n,id:o}=(0,z.d4)(s=>s.services.session.user);return e.createElement(V._y.Provider,{value:{http:Mt.LV}},e.createElement(q.l.Provider,{value:window.RAW_REALM_SETTINGS},e.createElement(ct,{isGuest:n,userId:o},e.createElement(ut,null))))},Ft=dt,ut=()=>{const n=(0,V.qs)(),{activeLocale:o}=e.useContext(ne.L),s=(0,st.ru)(o),{routes:i}=e.useContext(C.P),{pathname:a}=(0,m.zy)(),r=(0,S.b0)([$.Rb]),{setAvailableGifts:f,setError:d,setLoa
1ding:c,country:O,setCountry:I,setCountries:E,giftToRedeem:v,setGiftToRedeem:u}=e.useContext(W.E),{countries:g,defaultCountry:G}=(0,_t.o)();e.useEffect(()=>{const M=(0,at.q)(localStorage.getItem(J.eZ),null);!v&&M&&u(M)},[]),e.useEffect(()=>{v&&localStorage.setItem(J.eZ,JSON.stringify(v))},[v]),e.useEffect(()=>()=>localStorage.removeItem(J.Gx),[]),e.useEffect(()=>{g&&E(g)},[g]),e.useEffect(()=>{G&&I(G)},[G]),e.useEffect(()=>{O&&_(O)},[O]);const _=async M=>{try{d(null),c(!0);const{parsedData:T}=await(0,L.fP)(n,M);f(T),c(!1)}catch(T){d(r[$.Rb].value),c(!1)}},N=()=>(0,F.Y)(i[l.xW.GIFT_REDEMPTION_REGISTER],a,!1)?e.createElement(lt,null):(0,F.Y)(i[l.xW.GIFT_REDEMPTION_LOGIN],a,!1)||(0,F.Y)(i[l.xW.GIFT_LOGIN],a,!1)?e.createElement(rt,null):(0,F.Y)(i[l.xW.GIFT_PAY],a,!1)?e.createElement(lt,null):(0,F.Y)(i[l.xW.GIFT],a,!1)?e.createElement(pt,null):(0,F.Y)(i[l.xW.GIFT_REDEMPTION],a,!1)?e.createElement(St,null):(0,F.Y)(i[l.xW.GIFTS],a,!1)?e.createElement(Ke,null):e.createElement(m.C5,{to:i[l.xW.GIFTS],replace:!0});return e.createElement("div",{className:(0,it.AH)("app-container",s?"app-container--right-left":"")},N())}}),81956:((te,w,t)=>{t.d(w,{Q:()=>ne});var e=t(96540);const z=q=>{const S=document.querySelector(q);S&&S.classList.add("no-scroll")},m=q=>{const S=document.querySelector(q);S&&S.classList.remove("no-scroll")},ne=q=>{const{children:S,allowEventPropagation:k}=q;(0,e.useEffect)(()=>(z("body"),()=>m("body")),[]);const W=K=>{k||K.stopPropagation()},me=K=>{k||K.stopPropagation()};return e.createElement("div",{className:"full-screen-overlay","data-testid":"overlay",onTouchStart:W,onClick:me},e.createElement("div",{className:"full-screen-overlay--content"},S))}})}]);})(); 2 3//# sourceMappingURL=83761.f181eed154a9d8d10e9f.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.