1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8355],{4012:(e,a,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/debug/paywalls",function(){return l(5676)}])},4882:(e,a,l)=>{"use strict";l.d(a,{p:()=>s});var r=l(42955),t=l(35351);let s=()=>{let e=(0,t.rn)(r.g.debug_dashboard);return e?.value==="on"&&localStorage.getItem("debug-passphrase")===e?.payload?.key}},5676:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>h});var r=l(37876),t=l(42135),s=l(46107),i=l(95639),n=l(38930),o=l(4882),_=l(79395),c=l(84483),d=l(73463),g=l.n(d);let h=()=>{let{showPaywall:e,offerings:a,isLoading:l}=(0,n.i)(),d=(0,t.DE)(),h=(0,o.p)(),y=a?.all||{},u=Object.keys(y).length,f=Object.values(y).filter(e=>e.hasPaywall).length,p=async a=>{let l=Object.values(y).find(e=>e.identifier===a);if(!l)return void(0,s.m)("Offering not found","error");if(!l.hasPaywall)return void(0,s.m)("No paywall available for this offering","error");try{await e(a,{offering:l})}catch(e){console.error(`Failed to show paywall for offering ${a}:`,e),(0,s.m)(`Failed to show paywall for ${a}`,"error")}};return d?h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{backgroundImage:"/assets/backgrounds/general/settings-panel-background.jpg",navDirectionLeft:!0,navText:"Debug Dashboard",title:"Paywalls",showBackNav:!0,linkHref:"/settings/debug",className:g().headerBanner}),(0,r.jsxs)(c.N,{withBackground:!1,showFooter:!1,className:g().contentPage,children:[(0,r.jsx)("p",{className:g().infoText,children:"Tap an offering card to trigger its paywall. Only offerings with a paywall attached can be shown."}),(0,r.jsxs)("div",{className:g().stats,children:[(0,r.jsxs)("span",{className:g().statItem,children:[(0,r.jsx)("strong",{children:"Offerings:"})," ",u]}),(0,r.jsxs)("span",{className:g().statItem,children:[(0,r.jsx)("strong",{children:"With Paywall:"})," ",f]})]}),l?(0,r.jsx)("p",{className:g().message,children:"Loading offerings..."}):0===u?(0,r.jsx)("p",{className:g().message,children:"No offerings available"}):(0,r.jsx)("div",{className:g().offeringsGrid,children:Object.values(y).map(e=>(0,r.jsxs)("div",{role:"button",tabIndex:e.hasPaywall?0:-1,"aria-disabled":!e.hasPaywall,className:`${g().offeringCard} ${e.hasPaywall?g().offeringCardActive:g().offeringCardInactive}`,onClick:()=>e.hasPaywall&&p(e.identifier),onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&e.hasPaywall&&(a.preventDefault(),p(e.identifier))},children:[(0,r.jsxs)("div",{className:g().offeringHeader,children:[(0,r.jsx)("span",{className:g().offeringName,children:e.identifier}),(0,r.jsx)("span",{className:e.hasPaywall?g().badgeActive:g().badgeInactive,children:e.hasPaywall?"Paywall":"No Paywall"})]}),e.availablePackages&&e.availablePackages.length>0&&(0,r.jsx)("div",{className:g().packagesList,children:e.availablePackages.map(e=>(0,r.jsx)("code",{className:g().packageItem,children:e.identifier},e.identifier))})]},e.identifier))})]})]}):(0,r.jsx)(_.default,{}):null}},13542:e=>{e.exports={error:"error_error__QZUw6",button:"error_button__JCtHi",logo:"error_logo__To_4G",container:"error_container__SazQi",heading:"error_heading__ppcdP",details:"error_details__5MmFf"}},16778:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>x,errorTemplate:()=>w});var r=l(37876),t=l(14232),s=l(89099),i=l(46156),n=l(92540),o=l(82170),_=l(94171),c=l(82186);let d=async(e=_.Cy.brandSlug,a=_.Cy.stationSlug)=>{let l={};try{l=await (0,i.WR)(o.A.AMPLITUDE_API_KEY)}catch(e){c.A.error(`Failed to get server variants: ${e}`)}let r=await (0,n.hM)(e,a),t=await (0,n.ps)(r.id);return{station:{...r,heraldId:r.heraldId.toString()},ui:{showPlaybar:!0,showNav:!0},playable:t,variants:JSON.stringify(l)}};var g=l(30270),h=l(63401),y=l(54921),u=l(98531),f=l(72065),p=l(13542),v=l.n(p);let m={podcasts:{route:g.A.podcasts().as,text:"Podcasts"},catchup:{route:g.A.catchupLP(_.Cy.brandSlug,_.Cy.stationSlug).as,text:"Catchup"},playlists:{route:g.A.playlists().as,text:"Playlists"},videos:{route:g.A.videos().as,text:"Videos"}},w=(e,a)=>{let{title:l,text:t,alternativeText:s}=e,i=["podcasts","catchup","playlists","videos"].includes(a?.split("/")[1])?a.split("/")[1]:null;return(0,r.jsx)("div",{className:v().error,"data-testid":"error",children:(0,r.jsxs)("div",{className:v().container,children:[(0,r.jsx)(y.A,{alt:"Global Player",className:v().logo,icon:u.A.GlobalPlayerLogoBlueWhite}),(0,r.jsx)("h4",{className:v().heading,children:l}),(0,r.jsx)("p",{className:v().details,children:i?t:s}),i&&(0,r.jsxs)(h.v,{href:m[i].route,className:v().button,variant:"primary",level:"on",children:["See all ",m[i].text]}),(0,r.jsx)(h.v,{href:g.A.home().as,className:v().button,variant:"primary",level:"on",children:"Take Me Home"})]})})},b=({statusCode:e})=>{let a=(0,s.useRouter)();return(0,t.useEffect)(()=>{(0,f.MH)({trackingTitle:`Error | ${e}`})},[]),w((0,_.es)(e),a?.asPath)};b.getInitialProps=async({res:e,err:a})=>{let l;try{l=await d()}catch{l={ui:{showPlaybar:!1,showNav:!1}}}let r=500;return e&&e.statusCode&&(r=e.statusCode),a&&a.statusCode&&(r=a.statusCode,e&&(e.statusCode=r)),{...l,statusCode:r}};let x=b},43061:e=>{e.exports={container:"page-header_container__u6lFO",banner:"page-header_banner__MXa1c",backForwardNav:"page-header_backForwardNav__HHl6f",backForwardNavText:"page-header_backForwardNavText__ADtG_",isTouchScreen:"page-header_isTouchScreen__gnJss",videoHomeBanner:"page-header_videoHomeBanner__okHWa",logoContainer:"page-header_logoContainer__wzB5A"}},46746:e=>{e.exports={headerPanel:"style_headerPanel__wXMGP",navTitle:"style_navTitle__Vh37r",title:"style_title__tTCzB",hasLogo:"style_hasLogo__uKaHZ",top:"style_top__xcu4p",large:"style_large__wMboo",medium:"style_medium__5i4K2",small:"style_small__WD9Nw",none:"style_none__1opSW",headerContainer:"style_headerContainer__i_GD5",column:"style_column__hmPWx",logoContainer:"style_logoContainer__3YVNk",globalPlayerLogo:"style_globalPlayerLogo__dLb_t",globalPlayerIcon:"style_globalPlayerIcon__JvvR_",left:"style_left__FVB7s",right:"style_right__i2toy",text:"style_text__CWaW1",button:"style_button__qHwtD",login:"style_login__8XmSX",noBackgroun
1d:"style_noBackground__euvHL",capital:"style_capital__1uvoF","capital-chill":"style_capital-chill__jIvpD","capital-xtra":"style_capital-xtra__t0yH8","classic-fm":"style_classic-fm__lerCF",gold:"style_gold__qRzdE",heart:"style_heart__C0Yrt",lbc:"style_lbc__ehfGn","radio-x":"style_radio-x__QBIQg","radio-x-classic-rock":"style_radio-x-classic-rock__p9I5p",smooth:"style_smooth__x2X1J",wsqk:"style_wsqk__vuwtG",rivieraradio:"style_rivieraradio__WHAgR"}},63401:(e,a,l)=>{"use strict";l.d(a,{v:()=>d});var r=l(37876),t=l(48230),s=l.n(t),i=l(43503),n=l(70982),o=l.n(n),_=l(95578),c=l.n(_);function d({variant:e,href:a,children:l,level:t="surface",className:n,brand:_="globalplayer",disabled:g=!1,...h}){let y=(0,i.t4)([o().gpBtn,o()[e],o()[_],o()[t],g?c().isDisabled:"",n]);return(0,r.jsx)(s(),{href:a,role:"button",className:y,...h,children:l})}},73463:e=>{e.exports={headerBanner:"paywalls_headerBanner__BdX0s",contentPage:"paywalls_contentPage__6WPSX",infoText:"paywalls_infoText__oROcM",stats:"paywalls_stats__55uYr",statItem:"paywalls_statItem__Hq0Re",offeringsGrid:"paywalls_offeringsGrid__N6R_R",offeringCard:"paywalls_offeringCard__oUS5z",offeringCardActive:"paywalls_offeringCardActive__qJEer",offeringCardInactive:"paywalls_offeringCardInactive__3_FQ6",offeringHeader:"paywalls_offeringHeader__aVK_N",offeringName:"paywalls_offeringName__uKdO5",badgeActive:"paywalls_badgeActive__I2_y2",badgeInactive:"paywalls_badgeInactive__BBd91",packagesList:"paywalls_packagesList__bP6Ah",packageItem:"paywalls_packageItem__HmZrc",message:"paywalls_message__fhrVV"}},79395:(e,a,l)=>{"use strict";l.r(a),l.d(a,{__N_SSG:()=>o,default:()=>_});var r=l(14232),t=l(89099),s=l(94171),i=l(72065),n=l(16778),o=!0;let _=()=>{let e=(0,t.useRouter)();return(0,r.useEffect)(()=>{(0,i.MH)({trackingTitle:"Error | 404"})},[]),(0,n.errorTemplate)((0,s.es)(404),e?.asPath)}},89289:(e,a,l)=>{"use strict";l.d(a,{A:()=>y});var r=l(37876),t=l(98531),s=l(43503),i=l(54921),n=l(48230),o=l.n(n),_=l(97637),c=l.n(_);let d=({directionLeft:e=!0,longArrow:a=!0,navLinkClassname:l="",href:n,onBack:_,children:d})=>(0,r.jsx)(o(),{"data-testid":"backforwardlink",href:n||"#",onClick:e=>{!n&&_&&(e.preventDefault(),_())},className:(0,s.t4)([c().backForwardLink,e?"":c().arrowDirectionReverse,c()[l]]),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{icon:e?a?t.A.ArrowLeft:t.A.ChevronLeft:a?t.A.ArrowRight:t.A.ChevronRight}),(0,r.jsx)("div",{className:c().children,children:d})]})});var g=l(46746),h=l.n(g);let y=({className:e,titlePositioning:a,title:l,text:n,children:o,showBackNav:_=!1,navDirectionLeft:c,navText:g,headerStyles:y,brand:u,longNavArrow:f=!0,linkHref:p,hasLogo:v=!1,navLinkClassname:m="",titleMargin:w="large",backAction:b,includesLogo:x=!1,...N})=>{let P="none"===u?h().noBackground:h()[u];return(0,r.jsxs)("div",{className:(0,s.t4)([h().headerPanel,e,u&&P]),style:y,...N,children:[(0,r.jsx)("div",{className:(0,s.t4)([h().navTitle,`${c?h().left:h().right}`]),children:_&&(0,r.jsx)(d,{navLinkClassname:m,href:p,longArrow:f,directionLeft:c,onBack:b,children:g})}),(0,r.jsxs)("div",{className:(0,s.t4)([h().headerContainer,x?h().column:null]),children:[x&&(0,r.jsxs)("div",{className:h().logoContainer,children:[(0,r.jsx)(i.A,{icon:t.A.GlobalPlayerLogoStraplineWhite,className:h().globalPlayerLogo,alt:"Global Player logo"}),(0,r.jsx)(i.A,{icon:t.A.GlobalPlayerIconWhite,className:h().globalPlayerIcon,alt:"Global Player logo"})]}),l?(0,r.jsx)("h1",{className:(0,s.t4)([h().title,h()[w],a&&h()[a],v?h().hasLogo:""]),children:l}):null,n?(0,r.jsx)("p",{className:h().text,children:n}):null,o]})]})}},95578:e=>{e.exports={isDisabled:"style_isDisabled__vZIw5"}},95639:(e,a,l)=>{"use strict";l.d(a,{A:()=>o});var r=l(37876),t=l(89289),s=l(72065),i=l(43061),n=l.n(i);let o=({title:e="",titlePositioning:a="",className:l="",showBackNav:i=!1,navText:o="",navDirectionLeft:_,backgroundImage:c,logo:d,brand:g,linkHref:h,styles:y={},isTouchScreen:u=!1,navLinkClassname:f,...p})=>{let v=(0,s.t4)([n().banner,u?n().isTouchScreen:"",l]);return(0,r.jsx)("div",{className:n().container,style:{...y},...p,children:(0,r.jsx)(t.A,{longNavArrow:!0,className:v,title:e,titlePositioning:a,headerStyles:c?{backgroundImage:`url(${c})`}:{},showBackNav:i,navText:o,navDirectionLeft:_,brand:g,linkHref:h,hasLogo:!!d,navLinkClassname:f,children:d&&(0,r.jsx)("div",{className:n().logoContainer,children:(0,r.jsx)("img",{src:d,alt:"logo"})})})})}},97637:e=>{e.exports={backForwardLink:"style_backForwardLink__HLj5I",videoPage:"style_videoPage__6LPoG",videoCatgoryPage:"style_videoCatgoryPage__dFEc3",children:"style_children__IuDQZ",arrowDirectionReverse:"style_arrowDirectionReverse__GL83f"}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=4012)),_N_E=e.O()}]);
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.