1(()=>{(function(){try{var m=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},d=new m.Error().stack;d&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[d]="4ddd923d-eb86-4cdf-9a5a-d7e23f601036",m._sentryDebugIdIdentifier="sentry-dbid-4ddd923d-eb86-4cdf-9a5a-d7e23f601036")}catch(t){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[4770,40967,53777],{25278:((m,d,t)=>{t.d(d,{LX:()=>l,qS:()=>c});var o=t(68407),u=t(21904),l;(function(s){s.MANAGE="MANAGE",s.UPGRADE="UPGRADE",s.DOWNGRADE="DOWNGRADE"})(l||(l={}));const P=s=>s.type===SubEventDetailsType.PARTICIPANTS,c=(s,v=l.MANAGE)=>{if(s&&u.QN[s]){const p=u.QN[s];switch(v){case l.UPGRADE:return{label:"upgradeSubscriptionStore",data:{store:p}};case l.DOWNGRADE:return{label:"downgradeSubscriptionStore",data:{store:p}};default:return{label:"manageSubscriptionStore",data:{store:p}}}}switch(v){case l.UPGRADE:return{label:"upgradeSubscriptionWeb"};case l.DOWNGRADE:return{label:"downgradeSubscriptionWeb"};default:return{label:"manageSubscriptionWeb"}}}}),26969:((m,d,t)=>{t.d(d,{Bm:()=>L,Hk:()=>r,J9:()=>S,QF:()=>$,St:()=>y,YI:()=>E,fI:()=>W,fP:()=>K,l2:()=>w,tV:()=>b});var o=t(85537),u=t(21904),l=t(84657),P=t(57320),c=t(12776),s=Object.defineProperty,v=Object.defineProperties,A=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,h=(e,n,a)=>n in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,R=(e,n)=>{for(var a in n||(n={}))D.call(n,a)&&h(e,a,n[a]);if(p)for(var a of p(n))B.call(n,a)&&h(e,a,n[a]);return e},I=(e,n)=>v(e,A(n));const f=e=>e.replace("/v2","/v4"),K=(e,n)=>e.get(`${f(e.baseUrl)}${c.U.GET_GIFTS}?countryCode=${n}`),b=(e,n)=>e.post(`${f(e.baseUrl)}${c.U.REDEEM_GIFT}/${n}`,{}),W=(e,n)=>e.get(`${f(e.baseUrl)}${c.U.REDEEM_GIFT}/${n}`),y=(e,n)=>e.post(c._.SET_PII,n),L=e=>e.get(f(e.baseUrl)+c.U.GET_BASKET),T=e=>e.delete(f(e.baseUrl)+c.U.GET_BASKET_CHANGES),S=async(e,{recipient:n,duration:a,message:O},g,_)=>(await T(_),await G(e,n,a,O,g,_)),G=(e,n,a,O="",g="",_)=>{const F={recipientEmail:n,note:O,options:a?{numberOfPeriods:{type:"INT_RANGE",value:a}}:{}};return _.post(`${f(_.baseUrl)}${c.U.ADD_GIFT_TO_BASKET}/${e}?countryCode=${g}`,F)},C=e=>{try{return(0,o.s)(e)}catch(n){return null}},$=async e=>{const n=localStorage.getItem(P.h0),a=C(n);return a?(a.isGuest=a.gue,a.loc=a.loc||a.lo2,a):U(e)},U=async e=>{try{const{authorisationToken:n,refreshToken:a}=await e.post("/login/guest/checkin",null,{useAuth:!1}),{sub:O,gue:g,rol:_,loc:M,lo2:F}=C(n),j={id:O,rol:_,isGuest:g,loc:M||F};return localStorage.setItem(P.h0,n),localStorage.setItem(P.US,a),j}catch(n){i()}},i=()=>{localStorage.removeItem(P.h0),localStorage.removeItem(P.US)},r=e=>{var n,a;const{options:O}=e,g=!Object.keys(O||{}).length,_=g?{type:l.bK.PPV,subscriptionPeriod:null}:{subscriptionPeriod:(n=O.period)==null?void 0:n.value,type:l.bK.SUBSCRIPTION};return{id:e.externalId,badge:null,description:e.description,name:e.name,amounts:[I(R({},e.itemPrice),{default:!0})],purchaseStrategy:_,type:g?l.bK.PPV:l.AV.STANDARD,defaultMarketingPricePeriod:g?null:(a=O.period)==null?void 0:a.value,status:null,managed:!0}},E=e=>({id:e.externalId,badge:null,description:e.description,name:e.name,amounts:[I(R({},e.total),{default:!0})],type:null,defaultMarketingPricePeriod:null,status:null,managed:!0,purchaseStrategy:null}),w=e=>{var n;return{basketItems:e.basketItems.map(N),paymentProvider:x((n=e.availablePaymentProviders)==null?void 0:n[0]),paymentProvidersList:e.availablePaymentProviders.map(x),tax:e.tax,totalDiscount:e.totalDiscount,discountedTotal:e.total,subTotal:e.totalExcTax,voucherItems:null,taxRateEstimated:e.taxRateEstimated}},x=e=>({providerId:null,name:e.name,providerType:e.paymentProviderType,paymentProviderGroupType:e.paymentProviderGroupType,paymentMethodType:e.paymentProviderGroupType===u.yS.CREDIT_CARD?u.eq.CARD:e.paymentProviderGroupType,targetPaymentProvider:e.targetPaymentProvider,details:e.details}),N=e=>({catalogPrice:e.catalogPrice.amount,currency:e.total.currency,description:e.description,name:e.name,scale:e.total.scale,tax:e.tax.amount,total:e.total.amount,subscriptionSetting:null,subTotal:null,taxInclusive:null,taxRate:null,sku:null})}),36697:((m,d,t)=>{t.r(d),t.d(d,{default:()=>U});
1var o=t(96540),u=t(91443),l=t(77244),P=t(16231),c=t(21904),s=t(13516),v=t(15503),A=t(94566),p=t(90953),D=t(32248),B=t(42942),h=t(2275),R=t(40332),I=Object.defineProperty,f=Object.defineProperties,K=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,L=(i,r,E)=>r in i?I(i,r,{enumerable:!0,configurable:!0,writable:!0,value:E}):i[r]=E,T=(i,r)=>{for(var E in r||(r={}))W.call(r,E)&&L(i,E,r[E]);if(b)for(var E of b(r))y.call(r,E)&&L(i,E,r[E]);return i},S=(i,r)=>f(i,K(r));const G="v2",C="PREVIEW_READY",U=()=>{var i;const[r,E]=o.useState(null),{settings:{CHECKOUT_PAGE_BACKGROUND_COLOUR:w,CHECKOUT_PAGE_TEXT_COLOUR_SCHEME:x,CHECKOUT_PAGE_BACKGROUND_IMAGE:N},checkoutFlow:e}=(0,p.U)(),n=x===D.Bd.DARK,a=e===c.nn.STREAMLINED_FLOW,[O,g]=o.useState(null),_=N,M=w||(n?P.zT.black:void 0),F=n?P.zT.black:P.zT.white,j=Q=>{const{data:X,origin:Y}=Q;if(Y===window.location.origin)return;const z=JSON.parse(X),{licences:V}=z;V&&(E(V),window.parent.postMessage(C,"*"))};o.useEffect(()=>((0,u.p)(),window.parent.postMessage({paginationVersion:G},"*"),window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j,!1)}),[]),o.useEffect(()=>{g(T(T({},N&&{image:S(T({gradientLeft:_.gradientLeft,gradientRight:_.gradientRight,gradientTop:_.gradientTop,gradientBottom:_.gradientBottom},(_==null?void 0:_.opacity)!==void 0&&{opacity:`${_.opacity}`}
1),{fillType:_.fillType===D.Qk.REPEATED?B.DW.REPEATED:B.DW.FIXED,imageUrl:_.imageUrl})}),M&&{colour:M}))},[N,w]),o.useEffect(()=>{M&&document.documentElement.style.setProperty("--signup-color-bg",M)},[M]);const H={isSignUp:!0,ready:!0,allowAutoSelect:!1,onLicenceSelect:()=>null,onLicenceCancel:()=>null,onLicenceReactivate:()=>null,clearActiveLicence:()=>null};return r&&o.createElement("div",{className:(0,s.AH)(`signup-wrapper ${(0,v.j)(a,n)}`,"step-0-1")},o.createElement(A.u,{logoSrc:window.APP_CONF.LOGO_WEB||((i=window.APP_CONF.settings)==null?void 0:i.LOGO_WEB),currentStep:0,handleLogoClick:()=>null,hideSignupSteps:!1}),(0,h.Im)(O)?null:o.createElement(R.$,{background:O,delaySetCustomColorBg:!1,gradientDefaultColor:F}),o.createElement(l.cx,T({licences:r,isDarkMode:n},H)))}}),53777:((m,d,t)=>{t.r(d),t.d(d,{Modal:()=>h});var o=t(96540),u=t(40961),l=t(94708),P=t.n(l),c=t(58562),s=t(13516),v=t(39908),A=t(72210),p=t(81956);const B="[data-fallback-focus]",h=R=>{const I=document.getElementById("dice-modal"),{children:f,className:K,isRtL:b,allowEventPropagation:W,handleClose:y,icon:L,backgroundImage:T,initialFocusRef:S}=R,G=(0,s.AH)("messages",K,b&&"modal--right-left"),{close:C}=(0,c.b0)(["close"]),$=(C==null?void 0:C.value)||"Close",U=o.useRef(null);return o.useEffect(()=>{if(!y)return;const i=r=>{r.key==="Escape"&&(r.preventDefault(),r.stopPropagation(),y())};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[y]),I&&u.createPortal(o.createElement(p.Q,Object.assign({allowEventPropagation:W},T?{backgroundImage:T}:{}),o.createElement("div",{className:G},o.createElement(l.FocusTrap,{focusTrapOptions:{fallbackFocus:()=>U.current||B,initialFocus:()=>(S==null?void 0:S.current)||U.current||void 0,escapeDeactivates:!1,allowOutsideClick:i=>!!i.target.closest("#onetrust-consent-sdk")}},o.createElement("div",{className:"message","aria-modal":"true","aria-label":R.ariaLabel,"data-fallback-focus":!0,role:"dialog",ref:U,tabIndex:-1},f,L&&o.createElement("div",{className:"message__optional-icon"},L),y&&o.createElement(v.K0,{smallMode:!0,onClick:y,className:(0,s.AH)(v.k9.PRIMARY,"btn-close"),"aria-label":$},o.createElement(A.Close,{className:"btn-icon__icon"})))))),I)}}),81956:((m,d,t)=>{t.d(d,{Q:()=>P});var o=t(96540);const u=c=>{const s=document.querySelector(c);s&&s.classList.add("no-scroll")},l=c=>{const s=document.querySelector(c);s&&s.classList.remove("no-scroll")},P=c=>{const{children:s,allowEventPropagation:v}=c;(0,o.useEffect)(()=>(u("body"),()=>l("body")),[]);const A=D=>{v||D.stopPropagation()},p=D=>{v||D.stopPropagation()};return o.createElement("div",{className:"full-screen-overlay","data-testid":"overlay",onTouchStart:A,onClick:p},o.createElement("div",{className:"full-screen-overlay--content"},s))}}),91443:((m,d,t)=>{t.d(d,{p:()=>u});var o=t(47393);const u=()=>o.eG.dismissBanner()}),97966:((m,d,t)=>{t.d(d,{E:()=>u});var o=t(96540);const u=(0,o.createContext)(null)})}]);})(); 2 3//# sourceMappingURL=licences-wrapper-preview.57e0472407f420ba2b4e.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.