PageSourceSearch

https://app.sundancetv.com/code/js/chunks/licences-wrapper-preview.82952bc3d26dbbbbd3f9.js

js sundancetv.com collected 2026-09-24 20:31:06 UTC 12,643 bytes, 3 lines download raw bytes

1(()=>{(function(){try{var m=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},p=new m.Error().stack;p&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[p]="aafb8e2f-9f55-4fc1-a670-219c90de1f73",m._sentryDebugIdIdentifier="sentry-dbid-aafb8e2f-9f55-4fc1-a670-219c90de1f73")}catch(r){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[4770,40967],{9279:((m,p,r)=>{r.d(p,{E:()=>P,l:()=>u});var c=r(52118),f=r.n(c);const u=(0,c.all)().reduce((l,o)=>Object.assign(Object.assign({},l),{[o.countryCode]:{countryCallingCode:o.countryCallingCode,countryCode:o.countryCode,countryNameEn:o.countryNameEn,countryNameLocal:o.countryNameLocal,currencyCode:o.currencyCode,currencyNameEn:o.currencyNameEn,flag:o.flag,officialLanguageCode:o.officialLanguageCode,officialLanguageNameEn:o.officialLanguageNameEn,officialLanguageNameLocal:o.officialLanguageNameLocal,region:o.region,tinName:o.tinName,tinType:o.tinType}}),{}),P=(l,o)=>`${(l?`+${l}`:"").replace(/ /g,"")}${o.replace(/ /g,"")}`}),25278:((m,p,r)=>{r.d(p,{LX:()=>u,qS:()=>l});var c=r(68407),f=r(21904),u;(function(o){o.MANAGE="MANAGE",o.UPGRADE="UPGRADE",o.DOWNGRADE="DOWNGRADE"})(u||(u={}));const P=o=>o.type===SubEventDetailsType.PARTICIPANTS,l=(o,I=u.MANAGE)=>{if(o&&f.QN[o]){const C=f.QN[o];switch(I){case u.UPGRADE:return{label:"upgradeSubscriptionStore",data:{store:C}};case u.DOWNGRADE:return{label:"downgradeSubscriptionStore",data:{store:C}};default:return{label:"manageSubscriptionStore",data:{store:C}}}}switch(I){case u.UPGRADE:return{label:"upgradeSubscriptionWeb"};case u.DOWNGRADE:return{label:"downgradeSubscriptionWeb"};default:return{label:"manageSubscriptionWeb"}}}}),26969:((m,p,r)=>{r.d(p,{Bm:()=>N,Hk:()=>d,J9:()=>Z,QF:()=>ne,St:()=>H,YI:()=>O,fI:()=>X,fP:()=>V,l2:()=>U,tV:()=>M});var c=r(85537),f=r(21904),u=r(84657),P=r(57320),l=r(12776),o=Object.defineProperty,I=Object.defineProperties,b=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,$=(e,a,i)=>a in e?o(e,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[a]=i,S=(e,a)=>{for(var i in a||(a={}))K.call(a,i)&&$(e,i,a[i]);if(C)for(var i of C(a))w.call(a,i)&&$(e,i,a[i]);return e},F=(e,a)=>I(e,b(a));const T=e=>e.replace("/v2","/v4"),V=(e,a)=>e.get(`${T(e.baseUrl)}${l.U.GET_GIFTS}?countryCode=${a}`),M=(e,a)=>e.post(`${T(e.baseUrl)}${l.U.REDEEM_GIFT}/${a}`,{}),X=(e,a)=>e.get(`${T(e.baseUrl)}${l.U.REDEEM_GIFT}/${a}`),H=(e,a)=>e.post(l._.SET_PII,a),N=e=>e.get(T(e.baseUrl)+l.U.GET_BASKET),R=e=>e.delete(T(e.baseUrl)+l.U.GET_BASKET_CHANGES),Z=async(e,{recipient:a,duration:i,message:D},v,E)=>(await R(E),await k(e,a,i,D,v,E)),k=(e,a,i,D="",v="",E)=>{const h={recipientEmail:a,note:D,options:i?{numberOfPeriods:{type:"INT_RANGE",value:i}}:{}};return E.post(`${T(E.baseUrl)}${l.U.ADD_GIFT_TO_BASKET}/${e}?countryCode=${v}`,h)},Q=e=>{try{return(0,c.s)(e)}catch(a){return null}},ne=async e=>{const a=localStorage.getItem(P.h0),i=Q(a);return i?(i.isGuest=i.gue,i.loc=i.loc||i.lo2,i):Y(e)},Y=async e=>{try{const{authorisationToken:a,refreshToken:i}=await e.post("/login/guest/checkin",null,{useAuth:!1}),{sub:D,gue:v,rol:E,loc:A,lo2:h}=Q(a),j={id:D,rol:E,isGuest:v,loc:A||h};return localStorage.setItem(P.h0,a),localStorage.setItem(P.US,i),j}catch(a){g()}},g=()=>{localStorage.removeItem(P.h0),localStorage.removeItem(P.US)},d=e=>{var a,i;const{options:D}=e,v=!Object.keys(D||{}).length,E=v?{type:u.bK.PPV,subscriptionPeriod:null}:{subscriptionPeriod:(a=D.period)==null?void 0:a.value,type:u.bK.SUBSCRIPTION};return{id:e.externalId,badge:null,description:e.description,name:e.name,amounts:[F(S({},e.itemPrice),{default:!0})],purchaseStrategy:E,type:v?u.bK.PPV:u.AV.STANDARD,defaultMarketingPricePeriod:v?null:(i=D.period)==null?void 0:i.value,status:null,managed:!0}},O=e=>({id:e.externalId,badge:null,description:e.description,name:e.name,amounts:[F(S({},e.total),{default:!0})],type:null,defaultMarketingPricePeriod:null,status:null,managed:!0,purchaseStrategy:null}),U=e=>{var a;return{basketItems:e.basketItems.map(B),paymentProvider:x((a=e.availablePaymentProviders)==null?void 0:a[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===f.yS.CREDIT_CARD?f.eq.CARD:e.paymentProviderGroupType,targetPaymentProvider:e.targetPaymentProvider,details:e.details}),B=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,p,r)=>{r.r(p),r.d(p,{default:()=>Y});
1var c=r(96540),f=r(91443),u=r(79299),P=r(16231),l=r(21904),o=r(13516),I=r(15503),b=r(94566),C=r(90953),K=r(32248),w=r(42942),$=r(2275),S=r(40332),F=Object.defineProperty,T=Object.defineProperties,V=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,N=(g,d,O)=>d in g?F(g,d,{enumerable:!0,configurable:!0,writable:!0,value:O}):g[d]=O,R=(g,d)=>{for(var O in d||(d={}))X.call(d,O)&&N(g,O,d[O]);if(M)for(var O of M(d))H.call(d,O)&&N(g,O,d[O]);return g},Z=(g,d)=>T(g,V(d));const k="v2",Q="PREVIEW_READY",Y=()=>{var g;const[d,O]=c.useState(null),{settings:{CHECKOUT_PAGE_BACKGROUND_COLOUR:U,CHECKOUT_PAGE_TEXT_COLOUR_SCHEME:x,CHECKOUT_PAGE_BACKGROUND_IMAGE:B},checkoutFlow:e}=(0,C.U)(),a=x===K.PageTextColorScheme.DARK,i=e===l.nn.STREAMLINED_FLOW,[D,v]=c.useState(null),E=B,A=U||(a?P.zT.black:void 0),h=a?P.zT.black:P.zT.white,j=ae=>{const{data:oe,origin:se}=ae;if(se===window.location.origin)return;const t=JSON.parse(oe),{licences:n}=t;n&&(O(n),window.parent.postMessage(Q,"*"))};c.useEffect(()=>((0,f.p)(),window.parent.postMessage({paginationVersion:k},"*"),window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j,!1)}),[]),c.useEffect(()=>{v(R(R({},B&&{image:Z(R({gradientLeft:E.gradientLeft,gradientRight:E.gradientRight,gradientTop:E.gradientTop,gradientBottom:E.gradientBottom},(E==null?void 0:E.opacity)!==void 0&&{opacity:`${E.opacity}`}),{fillType:E.fillType===K.PageBackgroundImageFillType.REPEATED?w.ImageFillType.REPEATED:w.ImageFillType.FIXED,imageUrl:E.imageUrl})}),A&&{colour:A}))},[B,U]),c.useEffect(()=>{A&&document.documentElement.style.setProperty("--signup-color-bg",A)},[A]);const re={isSignUp:!0,ready:!0,allowAutoSelect:!1,onLicenceSelect:()=>null,onLicenceCancel:()=>null,onLicenceReactivate:()=>null,clearActiveLicence:()=>null};return d&&c.createElement("div",{className:(0,o.AH)(`signup-wrapper ${(0,I.j)(i,a)}`,"step-0-1")},c.createElement(b.u,{logoSrc:window.APP_CONF.LOGO_WEB||((g=window.APP_CONF.settings)==null?void 0:g.LOGO_WEB),currentStep:0,handleLogoClick:()=>null,hideSignupSteps:!1}),(0,$.Im)(D)?null:c.createElement(S.$,{background:D,delaySetCustomColorBg:!1,gradientDefaultColor:h}),c.createElement(u.cx,R({licences:d,isDarkMode:a},re)))}}),38537:((m,p,r)=>{r.d(p,{Br:()=>i,Bt:()=>a,Gw:()=>b.G,IR:()=>C.I,K9:()=>d,Ko:()=>e,M2:()=>B,OZ:()=>Y,PJ:()=>E,Q9:()=>O,T1:()=>oe,Wo:()=>U,_L:()=>A,cD:()=>v,fC:()=>g,iX:()=>se,nJ:()=>x,pw:()=>re,rw:()=>ae,yd:()=>N,ye:()=>D});var c=r(84657),f=r(76046),u=r(52360),P=r(22707),l=r(16505),o=r(79544),I=r(18364),b=r(99776),C=r(18568),K=Object.defineProperty,w=Object.defineProperties,$=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,V=(t,n,s)=>n in t?K(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,M=(t,n)=>{for(var s in n||(n={}))F.call(n,s)&&V(t,s,n[s]);if(S)for(var s of S(n))T.call(n,s)&&V(t,s,n[s]);return t},X=(t,n)=>w(t,$(n));const{ENV_CONF:{httpapi:H}}=window;var N=(t=>(t.ELIGIBLE="ELIGIBLE",t.NOT_ELIGIBLE="NOT_ELIGIBLE",t))(N||{});const R=(t,n)=>!!t.licences.filter(({licence:{id:s}})=>s===n).length,Z=(t,n)=>t.filter(s=>R(s,n))[0],k=t=>Promise.all(t?[]:[getUserDetails(),getCards(http)]),Q=({type:t,purchaseStrategy:n={type:null},managed:s},y=!1)=>s&&t!==BLANKET&&t!==FREE&&!(n.type===PPV&&y),ne=()=>http.get(URLS.CURRENT_LICENCE),Y=()=>l.LV.get(o.tl.ALL_LICENCES),g=(t,n=[])=>{const s={};return t&&(s.includeEntitlements="ALL_ACTIVE_USER_ENTITLEMENTS"),n.length&&(s.licenceId=n),l.LV.get(o.tl.LICENCE_FAMILIES,{queryParams:s})},d=(t,n)=>{const s=n?c.C.LEAVE:c.C.CONTINUE;return l.LV.put(`${H}${o.tl.PRICE_MIGRATION}/${t}/consent`,{status:s})},O=({licenceId:t,cardId:n,checkBillingDetails:s=!1})=>l.LV.post(`${o.tl.ALL_LICENCES}/${t}/card/${n}${s?`?checkBillingDetails=${s}`:""}`,null),U=(t,n)=>l.LV.post(`${(0,l.bL)(l.LV.baseUrl)}${o.tl.ACTIVE_LICENCES}/${t}/pause`,M({},n&&{config:{resumeAfter:n}})),x=t=>l.LV.post(`${(0,l.bL)(l.LV.baseUrl)}${o.tl.ACTIVE_LICENCES}/${t}/resume`,{}),B=(t,n)=>{let s=`${o.tl.ACTIVE_LICENCES}/${t}`;return n&&(s+="?cancellationDiscount=IGNORE"),l.LV.delete(s).catch(({messages:y})=>{const G=y.join(" ");return Promise.reject(G)})},e=t=>l.LV.get(`${o.tl.CANCELATION_PROMO}/${t}/verify`,{}),a=t=>l.LV.post(`${o.tl.CANCELATION_PROMO}/${t}/redeem`,{}),i=t=>l.LV.post(`${o.tl.CANCELATION_PROMO}/${t}/refuse`,{}),D=t=>{const n=`${o.tl.REACTIVATE_LICENCE}/${t}`;return l.LV.put(n,{},{method:"PATCH"})},v=t=>{const n=t&&t.some(y=>y.local),s=t&&t.some(y=>y.default);return n||s},E=(t,n,s)=>{switch(t){case c.Nt.ACTIVE:return"activeStatus";case c.Nt.UPCOMING:return n?s?"licencePausedStatus":null:"upcomingStatus";case c.Nt.EXPIRED:return"expiredStatus";default:}},A=t=>{if(t.type===c.oQ.PERCENTAGE)return`${t.percentage}%`;if(t.type===c.oQ.AMOUNT)return(0,P.e)(t.amount,!0)},h=(t,n)=>n?t.state!==c.Nt.UPCOMING:!0,j=(t,n)=>t.lifeTimeRepeat?n?t.state===c.Nt.ACTIVE:t.state===c.Nt.UPCOMING:!0,re=(t,n,s)=>h(t,n)&&j(t,s),ae=({licence:t,licenceStatus:{autoRenewingStatus:n,expiryTimestamp:s,status:y,licencePayment:{paymentEventType:G}={paymentEventType:null}},paymentProviderInfo:{managed:J}={managed:!0}})=>X(M({},t),{managed:J,willRenew:n==="AUTO_RENEWING",expiry:s,status:y,paymentStatus:G}),oe=t=>{var n,s;const y=_=>{var L,W;return(0,u.U0)((L=_.licenceStatus)==null?void 0:L.tierChangeDetails)||(0,u.xL)((W=_.licenceStatus)==null?void 0:W.tierChangeDetails)},G=_=>{var L;return(0,u.VG)((L=_.licenceStatus)==null?void 0:L.tierChangeDetails)},J=_=>_.status===c.uX.ACTIVE&&!y(_)&&!G(_),z=_=>_.licenceStatus.status===c.uX.EXPIRED&&_.licenceStatus.pauseState===c.WF.PAUSED,ce=_=>{var L;return(0,u.Yn)((L=_.licenceStatus)==null?void 0:L.tierChangeDetails)},q=_=>J(_)||z(_)||ce(_),ee=((n=t==null?void 0:t.licenceFamilies)==null?void 0:n.reduce((_,L)=>{const W=L==null?void 0:L.licences.filter(q);return W?[..._,...W]:_},[]))||[],le=((s=t==null?void 0:t.nonFamilyBasedLicences)==null?void 0:s.filter(q))||[],te=[...ee,...le];return te.length?te:null},se=t=>{const{description:n,familyRank:s,id:y,name:G,purchaseStrategy:J,amount:z,trialDetails:ce,defaultMarketingPricePeriod:q,activationStrategy:ee,cta:le,ctaControl:te,licenceDisplayStyle:_}=t,{amount:L,currency:W,periodAmounts:ue,scale:_e,sku:Ee,taxInclusive:de,autoAppliedDiscount:pe}=z||{},ie={name:G,id:y,description:n,family:s[0].family,rank:s[0].rank,type:z?c.AV.STANDARD:c.AV.FREE,purchaseStrategy:J,trialDetails:ce,defaultMarketingPricePeriod:q,amounts:z?[{amount:L,currency:W,default:!0,id:null,local:!0,periodAmounts:ue,scale:_e,sku:Ee,taxInclusive:de,autoAppliedDiscount:pe}]:[],cta:le,ctaControl:te,displayStyle:_};return(ee==null?void 0:ee.type)===c.oL.CONFIRM_PAYMENT&&(ie.licenceStatus={status:c.uX.INACTIVE,autoRenewingStatus:c.l$.UNKNOWN_RENEWING,pauseState:c.WF.NOT_ALLOWED,subscriptionPendingActions:[{action:c.Vq.CONFIRMED_PAYMENT_REQUIRED,requestedAt:null,actionDueBy:null}],licencePayment:{paymentEventType:I.dX.UNCONFIRMED,purchaseTimestamp:null,expiryTimestamp:null,paymentProviderInfo:null,cardId:null,purchaseId:null}}),ie}}),63792:((m,p,r)=>{r.d(p,{Lv:()=>u,jC:()=>f});var c={ERROR_IOS_RESTORE_FAILED:"restore_failed",ERROR_IOS_USER_CANCELED:"user_cancelled",ERROR_RESTORE_EMPTY:"restore_empty"};const f="freePrice";var u;(function(P){P.IOS="FREETRIAL",P.ANDROID="Free"})(u||(u={}))}),91443:((m,p,r)=>{r.d(p,{p:()=>f});var c=r(47393);const f=()=>c.eG.dismissBanner()}),97966:((m,p,r)=>{r.d(p,{E:()=>f});var c=r(96540);const f=(0,c.createContext)(null)})}]);})();
2
3//# sourceMappingURL=licences-wrapper-preview.82952bc3d26dbbbbd3f9.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.