PageSourceSearch

https://www.fanatical.com/static/js/AcquisitionMidPageBanner.0484740f.js

js fanatical.com collected 2026-09-24 09:00:16 UTC 2,471 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[176],{70022:(n,e,o)=>{o.r(e),o.d(e,{default:()=>u});var t=o(67294),i=o(86706);const a=["competitionMidPageBanner","emailSignUpMidPageBanner"];var r=o(2857);const l=n=>{let{allowedComponents:e=a,appearsOn:o}=n;const l=Date.now()-localStorage.getItem("newsletterSubscribedDate")<=864e5,d=(0,r.d)(),s=(0,i.v9)((n=>{var e;return null===n||void 0===n||null===(e=n.auth)||void 0===e?void 0:e.email_newsletter})),u=(d||[]).filter((n=>{var e,t;const i=null===n||void 0===n||null===(e=n.placements)||void 0===e?void 0:e.midPageBanner;return(null===i||void 0===i?void 0:i.enabled)&&(null===i||void 0===i||null===(t=i.appearsOn)||void 0===t?void 0:t[o])})),p=(0,t.useMemo)((()=>{if(!u.length)return null;const n=Math.floor(Math.random()*u.length);return u[n]}),[u.length]),c=p&&e.includes("competitionMidPageBanner"),m=!l&&!s&&e.includes("emailSignUpMidPageBanner");if(c){const{background:n,foreground:e,mobile:o}=p.placements.midPageBanner;return{shouldShow:!0,bannerComponentType:"competitionMidPageBanner",bannerConfig:{url:`/competition/${p.slug}`,background:n,foreground:e,mobile:o}}}return m?{shouldShow:!0,bannerComponentType:"emailSignUpMidPageBanner",bannerConfig:{}}:{shouldShow:!1,bannerComponentType:null,bannerConfig:null}},d=(0,t.lazy)((()=>Promise.all([o.e(251),o.e(190)]).then(o.bind(o,5530)))),s={competitionMidPageBanner:(0,t.lazy)((()=>o.e(198).then(o.bind(o,10239)))),emailSignUpMidPageBanner:d};function u(n){let{appearsOn:e=!1,needsContainer:o=!1,customClass:i="",allowedComponents:r=a}=n;const{shouldShow:d,bannerComponentType:u,bannerConfig:p}
1=l({allowedComponents:r,appearsOn:e}),c=s[u];if(!d||!c)return!1;const m=t.createElement(c,Object.assign({appearsOn:e,bannerType:"landscape",customClass:i},p));return o?t.createElement("div",{className:"container"},m):m}},2857:(n,e,o)=>{o.d(e,{G:()=>i,d:()=>a});var t=o(86706);const i=n=>(0,t.v9)((n=>{var e;return(null===n||void 0===n||null===(e=n.competition)||void 0===e?void 0:e.competitionEntries)||[]})).some((e=>e.competitionId===n)),a=()=>{const n=(0,t.v9)((n=>{var e;return null===n||void 0===n||null===(e=n.competition)||void 0===e?void 0:e.competitions})),e=(0,t.v9)((n=>{var e;return(null===n||void 0===n||null===(e=n.competition)||void 0===e?void 0:e.competitionEntries)||[]})),o=new Set(e.map((n=>n.competitionId)));return(n||[]).filter((n=>!o.has(n._id)))}}}]);
2//# sourceMappingURL=AcquisitionMidPageBanner.0484740f.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.