PageSourceSearch

https://app.sundancetv.com/code/js/chunks/account-container.a0c47b37a83557e8b933.js

js sundancetv.com collected 2026-09-24 20:32:01 UTC 10,399 bytes, 3 lines download raw bytes

1(()=>{(function(){try{var T=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},D=new T.Error().stack;D&&(T._sentryDebugIds=T._sentryDebugIds||{},T._sentryDebugIds[D]="4c74be25-0f1c-4aeb-aa9c-32385a4e3fae",T._sentryDebugIdIdentifier="sentry-dbid-4c74be25-0f1c-4aeb-aa9c-32385a4e3fae")}catch(e){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[31290],{25278:((T,D,e)=>{e.d(D,{LX:()=>i,qS:()=>E});var a=e(68407),L=e(21904),i;(function(l){l.MANAGE="MANAGE",l.UPGRADE="UPGRADE",l.DOWNGRADE="DOWNGRADE"})(i||(i={}));const A=l=>l.type===SubEventDetailsType.PARTICIPANTS,E=(l,u=i.MANAGE)=>{if(l&&L.QN[l]){const C=L.QN[l];switch(u){case i.UPGRADE:return{label:"upgradeSubscriptionStore",data:{store:C}};case i.DOWNGRADE:return{label:"downgradeSubscriptionStore",data:{store:C}};default:return{label:"manageSubscriptionStore",data:{store:C}}}}switch(u){case i.UPGRADE:return{label:"upgradeSubscriptionWeb"};case i.DOWNGRADE:return{label:"downgradeSubscriptionWeb"};default:return{label:"manageSubscriptionWeb"}}}}),38412:((T,D,e)=>{e.d(D,{Gg:()=>i,j6:()=>E,lR:()=>l});var a=e(16505);const L=/(\?|&)provider=([^&]*)/i,i=u=>`oauth/${u}`,A=(u,I)=>`https://${window.DOMAINS[0]}/oauth/${u}`,E=(u,I,C,O="/")=>{const f=`${A(I,C)}?redirect_path=${O}`;return a.LV.get(`/login/oauth2/${I}/callback`,{queryParams:{callback_url:f,code:u},useAuth:!1})},l=u=>{const I=u.match(L),{AUTH_PROVIDERS:C=[]}=window;return(I&&I.length>=3?C.filter(({name:R})=>R.toLowerCase()===I[2].toLowerCase()):C)[0]||C[0]}}),38537:((T,D,e)=>{e.d(D,{Br:()=>q,Bt:()=>k,Gw:()=>I.G,IR:()=>C.I,K9:()=>n,Ko:()=>G,M2:()=>h,OZ:()=>Y,PJ:()=>nt,Q9:()=>c,T1:()=>lt,Wo:()=>d,_L:()=>st,cD:()=>et,fC:()=>o,iX:()=>it,nJ:()=>U,pw:()=>ot,rw:()=>ct,yd:()=>M,ye:()=>tt});var a=e(84657),L=e(76046),i=e(52360),A=e(22707),E=e(16505),l=e(79544),u=e(18364),I=e(99776),C=e(18568),O=Object.defineProperty,f=Object.defineProperties,R=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,y=(t,s,r)=>s in t?O(t,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[s]=r,m=(t,s)=>{for(var r in s||(s={}))N.call(s,r)&&y(t,r,s[r]);if(_)for(var r of _(s))K.call(s,r)&&y(t,r,s[r]);return t},S=(t,s)=>f(t,R(s));const{ENV_CONF:{httpapi:b}}=window;var M=(t=>(t.ELIGIBLE="ELIGIBLE",t.NOT_ELIGIBLE="NOT_ELIGIBLE",t))(M||{});const V=(t,s)=>!!t.licences.filter(({licence:{id:r}})=>r===s).length,H=(t,s)=>t.filter(r=>V(r,s))[0],g=t=>Promise.all(t?[]:[getUserDetails(),getCards(http)]),F=({type:t,purchaseStrategy:s={type:null},managed:r},v=!1)=>r&&t!==BLANKET&&t!==FREE&&!(s.type===PPV&&v),J=()=>http.get(URLS.CURRENT_LICENCE),Y=()=>E.LV.get(l.tl.ALL_LICENCES),o=(t,s=[])=>{const r={};return t&&(r.includeEntitlements="ALL_ACTIVE_USER_ENTITLEMENTS"),s.length&&(r.licenceId=s),E.LV.get(l.tl.LICENCE_FAMILIES,{queryParams:r})},n=(t,s)=>{const r=s?a.C.LEAVE:a.C.CONTINUE;return E.LV.put(`${b}${l.tl.PRICE_MIGRATION}/${t}/consent`,{status:r})},c=({licenceId:t,cardId:s,checkBillingDetails:r=!1})=>E.LV.post(`${l.tl.ALL_LICENCES}/${t}/card/${s}${r?`?checkBillingDetails=${r}`:""}`,null),d=(t,s)=>E.LV.post(`${(0,E.bL)(E.LV.baseUrl)}${l.tl.ACTIVE_LICENCES}/${t}/pause`,m({},s&&{config:{resumeAfter:s}})),U=t=>E.LV.post(`${(0,E.bL)(E.LV.baseUrl)}${l.tl.ACTIVE_LICENCES}/${t}/resume`,{}),h=(t,s)=>{let r=`${l.tl.ACTIVE_LICENCES}/${t}`;return s&&(r+="?cancellationDiscount=IGNORE"),E.LV.delete(r).cat
1ch(({messages:v})=>{const B=v.join(" ");return Promise.reject(B)})},G=t=>E.LV.get(`${l.tl.CANCELATION_PROMO}/${t}/verify`,{}),k=t=>E.LV.post(`${l.tl.CANCELATION_PROMO}/${t}/redeem`,{}),q=t=>E.LV.post(`${l.tl.CANCELATION_PROMO}/${t}/refuse`,{}),tt=t=>{const s=`${l.tl.REACTIVATE_LICENCE}/${t}`;return E.LV.put(s,{},{method:"PATCH"})},et=t=>{const s=t&&t.some(v=>v.local),r=t&&t.some(v=>v.default);return s||r},nt=(t,s,r)=>{switch(t){case a.Nt.ACTIVE:return"activeStatus";case a.Nt.UPCOMING:return s?r?"licencePausedStatus":null:"upcomingStatus";case a.Nt.EXPIRED:return"expiredStatus";default:}},st=t=>{if(t.type===a.oQ.PERCENTAGE)return`${t.percentage}%`;if(t.type===a.oQ.AMOUNT)return(0,A.e)(t.amount,!0)},at=(t,s)=>s?t.state!==a.Nt.UPCOMING:!0,rt=(t,s)=>t.lifeTimeRepeat?s?t.state===a.Nt.ACTIVE:t.state===a.Nt.UPCOMING:!0,ot=(t,s,r)=>at(t,s)&&rt(t,r),ct=({licence:t,licenceStatus:{autoRenewingStatus:s,expiryTimestamp:r,status:v,licencePayment:{paymentEventType:B}={paymentEventType:null}},paymentProviderInfo:{managed:$}={managed:!0}})=>S(m({},t),{managed:$,willRenew:s==="AUTO_RENEWING",expiry:r,status:v,paymentStatus:B}),lt=t=>{var s,r;const v=P=>{var p,W;return(0,i.U0)((p=P.licenceStatus)==null?void 0:p.tierChangeDetails)||(0,i.xL)((W=P.licenceStatus)==null?void 0:W.tierChangeDetails)},B=P=>{var p;return(0,i.VG)((p=P.licenceStatus)==null?void 0:p.tierChangeDetails)},$=P=>P.status===a.uX.ACTIVE&&!v(P)&&!B(P),j=P=>P.licenceStatus.status===a.uX.EXPIRED&&P.licenceStatus.pauseState===a.WF.PAUSED,w=P=>{var p;return(0,i.Yn)((p=P.licenceStatus)==null?void 0:p.tierChangeDetails)},X=P=>$(P)||j(P)||w(P),x=((s=t==null?void 0:t.licenceFamilies)==null?void 0:s.reduce((P,p)=>{const W=p==null?void 0:p.licences.filter(X);return W?[...P,...W]:P},[]))||[],z=((r=t==null?void 0:t.nonFamilyBasedLicences)==null?void 0:r.filter(X))||[],Q=[...x,...z];return Q.length?Q:null},it=t=>{const{description:s,familyRank:r,id:v,name:B,purchaseStrategy:$,amount:j,trialDetails:w,defaultMarketingPricePeriod:X,activationStrategy:x,cta:z,ctaControl:Q,licenceDisplayStyle:P}=t,{amount:p,currency:W,periodAmounts:Et,scale:ut,sku:Pt,taxInclusive:Ot,autoAppliedDiscount:dt}=j||{},Z={name:B,id:v,description:s,family:r[0].family,rank:r[0].rank,type:j?a.AV.STANDARD:a.AV.FREE,purchaseStrategy:$,trialDetails:w,defaultMarketingPricePeriod:X,amounts:j?[{amount:p,currency:W,default:!0,id:null,local:!0,periodAmounts:Et,scale:ut,sku:Pt,taxInclusive:Ot,autoAppliedDiscount:dt}]:[],cta:z,ctaControl:Q,displayStyle:P};return(x==null?void 0:x.type)===a.oL.CONFIRM_PAYMENT&&(Z.licenceStatus={status:a.uX.INACTIVE,autoRenewingStatus:a.l$.UNKNOWN_RENEWING,pauseState:a.WF.NOT_ALLOWED,subscriptionPendingActions:[{action:a.Vq.CONFIRMED_PAYMENT_REQUIRED,requestedAt:null,actionDueBy:null}],licencePayment:{paymentEventType:u.dX.UNCONFIRMED,purchaseTimestamp:null,expiryTimestamp:null,paymentProviderInfo:null,cardId:null,purchaseId:null}}),Z}}),62865:((T,D,e)=>{e.d(D,{ML:()=>l,Nd:()=>i,Nh:()=>A,UC:()=>E});var a=e(45322),L=e(87585);const i=u=>(0,L.ak)({type:a._.SET_IMPRESSION_ID,promoItem:u},a._.SET_IMPRESSION_ID),A=u=>(0,L.ak)({type:a._.SET_ERROR,message:u},a._.SET_ERROR),E=u=>(0,L.ak)({type:a._.SUBSCRIPTION_PACKAGE_SELECTION,payload:u},a._.SUBSCRIPTION_PACKAGE_SELECTION),l=u=>(0,L.ak)({type:a._.SUBSCRIPTION_PURCHASE_STARTED,payload:u},a._.SUBSCRIPTION_PURCHASE_STARTED)}),63792:((T,D,e)=>{e.d(D,{Lv:()=>i,jC:()=>L});var a={ERROR_IOS_RESTORE_FAILED:"restore_failed",ERROR_IOS_USER_CANCELED:"user_cancelled",ERROR_RESTORE_EMPTY:"restore_empty"};const L="freePrice";var i;(function(A){A.IOS="FREETRIAL",A.ANDROID="Free"})(i||(i={}))}),86924:((T,D,e)=>{e.r(D),e.d(D,{default:()=>Y});var a=e(96540),L=e(86364),i=e(56347),A=e(76046),E=e(62865),l=e(87913),u=e(47243),I=e(1357),C=e(38412),O=e(97963),f=Object.defineProperty,R=Object.defineProperties,_=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(o,n,c)=>n in o?f(o,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[n]=c,S=(o,n)=>{for(var c in n||(n={}))K.call(n,c)&&m(o,c,n[c]);if(N)for(var c of N(n))y.call(n,c)&&m(o,c,n[c]);return o},b=(o,n)=>R(o,_(n)),M=(o,n)=>{var c={};for(var d in o)K.call(o,d)&&n.indexOf(d)<0&&(c[d]=o[d]);
1if(o!=null&&N)for(var d of N(o))n.indexOf(d)<0&&y.call(o,d)&&(c[d]=o[d]);return c};const V=a.lazy(()=>Promise.all([e.e(94708),e.e(44125),e.e(70077),e.e(8571),e.e(4525),e.e(17350),e.e(52118),e.e(85128),e.e(47056),e.e(60408),e.e(34675),e.e(96746),e.e(43913),e.e(31865),e.e(90137),e.e(19267),e.e(99414),e.e(11543),e.e(93262),e.e(5029),e.e(39088),e.e(92516),e.e(59906),e.e(8899),e.e(97659),e.e(48644)]).then(e.bind(e,21085)));class H extends a.PureComponent{render(){const{props:n}=this;return a.createElement(V,S({},n))}}const g=({views:{account:o},services:{licences:n,payment:c,session:{user:{id:d}},app:{previousLocation:U,isRtL:h},preferences:G}})=>({account:o,licences:n,payment:c,profileID:d,preferences:G,previousLocation:U,isRtL:h}),F=o=>({setUserAddress:(n,c)=>o((0,A.od)(n,c)),setBillingDetails:n=>o((0,A.KA)(n)),subscriptionPackageSelection:n=>{const c=(0,E.UC)(n);o(c)},subscriptionPurchaseStarted:n=>{const c=(0,E.ML)(n);o(c)},getCards:async n=>o({type:I.TH.CARDS,payload:n}),getAccountDetails:n=>o({type:I.TH.ADDRESSES,payload:n}),getUser:n=>{o({type:I.TH.DETAILS,payload:n})},getPaymentHistory:n=>o({type:I.TH.PAYMENTS,payload:n}),setLoadingPreferences:n=>{const c=(0,u.PD)(n);return o(c)},setPreferencesError:n=>{const c=(0,u.Jh)(n);return o(c)},setGeneralPreferences:n=>{const c=(0,u.dF)(n);return o(c)},setMarketingPreferences:n=>o((0,A.zN)(n)),getConsentDetails:()=>o((0,A.ro)()),getLicences:async n=>{const{licenceFamilies:c,nonFamilyBasedLicences:d}=n,U={id:null,familyName:null,title:null,description:null,realm:null,created:null,licences:d},h=d.length?c.concat(U):c,G=(0,l.jG)(h);o(G)}}),J=(o,n,c)=>{var d=c,{location:{search:U}}=d,h=M(d,["location"]);return b(S(S(S({},o),n),h),{getProvider:()=>(0,C.lR)(U),getAuthProvider:()=>(0,O.Iz)()})},Y=(0,i.y)((0,L.Ng)(g,F,J)(H))}),87913:((T,D,e)=>{e.d(D,{jG:()=>C,qj:()=>u});var a=e(79544),L=e(38537),i=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,l=(O,f)=>{var R={};for(var _ in O)A.call(O,_)&&f.indexOf(_)<0&&(R[_]=O[_]);if(O!=null&&i)for(var _ of i(O))f.indexOf(_)<0&&E.call(O,_)&&(R[_]=O[_]);return R};const u=(O,f)=>async R=>{const _=await(0,L.OZ)(),{response:N,parsedData:K}=_,y=l(_,["response","parsedData"]),m=Object.keys(y).map(g=>(0,L.rw)(y[g])),S=m.find(({status:g,type:F})=>g===a.Hc&&F===a.jC),M=m.find(({status:g,type:F})=>g===a.Hc&&F!==a.jC)||S,V=M?M.id:null;f&&f();const H=I(m,O,V);return R(H),m},I=(O,f,R)=>({type:a.TH.SET_LICENCES,licences:O,callback:f,activeLicenceId:R}),C=O=>({type:a.TH.SET_LICENCES_FAMILIES,families:O})})}]);})();
2
3//# sourceMappingURL=account-container.a0c47b37a83557e8b933.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.