PageSourceSearch

https://app.sundancetv.com/code/js/chunks/hero-licences.f70d46252a89806560d8.js

js sundancetv.com collected 2026-10-02 06:59:28 UTC 2,903 bytes, 29 lines download raw bytes

1(()=>{(function(){try{var i=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},d=new i.Error().stack;d&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[d]="6647551d-af32-4d9a-ba5c-2be34d8ef06b",i._sentryDebugIdIdentifier="sentry-dbid-6647551d-af32-4d9a-ba5c-2be34d8ef06b")}catch(a){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[12468],{58581:((i,d,a)=>{a.d(d,{HeroLicences:()=>z});var s=a(96540),O=a(76213),C=a(1346),E=a(68407),P=a(58562),x=a(53045),I=a(59530),L=a(57611),D=a(87585),w=a(69866),H=a(30190),T=a(63679),p=a(16231);const $=400,R=1800,u=14,A=T.Ay.div`
2	padding-top: 20px;
3	max-width: ${({$count:e})=>e>3?R:e*$}px;
4	display: grid;
5	grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
6	gap: 1.5%;
7	color: ${p.zT.white};
8
9	@media (min-width: ${p.R8+1}px) {
10		${({$firstPromoIndex:e})=>e>=0&&`padding-top: ${20+u}px;`}
11	}
12
13	@media (max-width: ${p.R8}px) {
14		column-gap: 12px;
15		row-gap: ${({$firstPromoIndex:e})=>e>=2?u+12:12}px;
16		${({$firstPromoIndex:e})=>e>=0&&e<2&&`padding-top: ${20+u}px;`}
17		grid-template-columns: repeat(${({$count:e})=>e>=3?2:e}, 1fr);
18
19		${({$count:e})=>e===3&&`
20				& > *:last-child {
21					grid-column: 1 / -1;
22					justify-self: center;
23					width: calc((100% - 12px) / 2);
24				}
25			`}
26	}
27`;var N=Object.defineProperty,M=Object.defineProperties,j=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))S.call(t,r)&&v(e,r,t[r]);if(f)for(var r of f(t))W.call(t,r)&&v(e,r,t[r]);return e},X=(e,t)=>M(e,j(t));const z=({heroId:e,licences:t})=>{const r=(0,L.W)(),l=(0,O.zy)(),{routes:y}=(0,s.useContext)(I.P),c=(0,s.useMemo)(()=>t.map(n=>{var o;return(0,w.IR)(((o=n.acquirableLicence.purchaseStrategy)==null?void 0:o.subscriptionPeriod)||"","/")}),[t]),b=(0,P.b0)(c.filter(Boolean)),F=(0,s.useMemo)(()=>t.findIndex(n=>{var o;return(o=n.acquirableLicence.licenceDisplayStyle)==null?void 0:o.promotionText}),[t]),B=(0,s.useMemo)(()=>t.map((n,o)=>{var g,h;return X(m({},n),{frequencyLabel:c[o]?(h=(g=b[c[o]])==null?void 0:g.value)==null?void 0:h.replace(/^\s*\/\s*/,""):void 0})}),[t,c,b]),K=(0,s.useCallback)(n=>{if(n.active)return;(0,D.u4)(C.AX.HERO_LICENCE_CTA,m({licenceId:n.acquirableLicence.id,ctaDestination:n.ctaDestination},e!=null?{heroId:e}:{}));const o=n.ctaDestination===E.OV.LICENCE_CHECKOUT?[n.acquirableLicence.id]:void 0;(0,H.z)(null,null,l,r,y,l.pathname+l.search+l.hash,!1,void 0,o)},[e,l,r,y]);return s.createElement(A,{$count:t.length,$firstPromoIndex:F},B.map(n=>s.createElement(x.r,{key:n.acquirableLicence.id,licence:n,onCtaClick:K,maxLines:3})))}})}]);})();
28
29//# sourceMappingURL=hero-licences.f70d46252a89806560d8.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.