2 lines
2.5 KiB
JavaScript
Executable File
2 lines
2.5 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[3696],{73861:(s,e,t)=>{t.d(e,{A:()=>p});var o=t(3802),a=t(59359);const n={podcastSponsorsWrapper:"o7CiEtNVpaEvKhoXW2qf"};var r=t(4637);function p({shelfHeaderProps:s,listProps:e}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.r,{title:o.ag.get("podcast-ads.recent_ads"),...s}),(0,r.jsx)("aside",{className:n.podcastSponsorsWrapper,...e})]})}},73400:(s,e,t)=>{t.r(e),t.d(e,{ALL_EPISODE_SPONSORS_TESTID:()=>c,AllEpisodeSponsors:()=>E,allEpisodeSponsorsPath:()=>i.e,default:()=>h});var o=t(59496),a=t(89605),n=t(70304),r=t(2906);var p=t(5358),d=t(47998),l=t(4637),i=t(87468);const c="all-episode-sponsors",S=(0,o.lazy)((()=>t.e(4089).then(t.bind(t,94089)))),f=(0,o.lazy)((()=>t.e(9273).then(t.bind(t,49248)))),u=(0,o.lazy)((async()=>({default:(await Promise.resolve().then(t.bind(t,50042))).InstrumentedRedirect})));function E({EpisodeSponsorsWrapper:s=f}){const{[n.hd]:e}=(0,a.UO)(),t=(0,r.P)(),i=(0,d.o)();return(0,l.jsx)(o.Suspense,{fallback:!0,children:t.location.state?.[p.H]?(0,l.jsx)(S,{"data-testid":c,children:(0,l.jsx)(s,{...i,numberOfSponsorsToDisplay:1/0,reason:"Episode page See All"})}):(0,l.jsx)(u,{to:e?(0,n.lc)(e):"/"})})}const h=E},53696:(s,e,t)=>{t.r(e),t.d(e,{EpisodeSponsorsWrapperWithData:()=>S,default:()=>f});var o=t(89605),a=t(3802),n=t(73400),r=t(49248),p=t(5358),d=t(47823),l=t(73861);const i={podcastSponsorsWrapper:"Sz0l_S50BASJj1qXB30_",episodeSponsorsWrapperOld:"WRSm7FRmpw9HsGfCPutw"};var c=t(4637);function S({version:s,state:e,numberOfSponsorsToDisplay:t,reason:S}){const f=(0,o.TH)(),u=(0,d.X)({...e,reason:S});return(0,c.jsx)(l.A,{shelfHeaderProps:{title:2===s?a.ag.get("podcast-ads.recent_ads"):a.ag.get("episode.sponsors"),hasMoreElements:e.fetchedEpisodeSponsorsData.length>t?{pathname:(0,n.allEpisodeSponsorsPath)(e.episodeBase62Id),state:{...f.state,[p.H]:e}}:void 0,seeAllProps:{"data-testid":r.SEE_ALL_EPISODE_SPONSORS_TESTID,onClick(){u({cta_card_see_all:!0})}}},listProps:{"data-testid":r.EPISODE_SPONSORS_SHELF_TESTID,children:e.displayedSponsors,...1===s?{className:i.episodeSponsorsWrapperOld}:void 0}})}const f=S},2906:(s,e,t)=>{t.d(e,{P:()=>p});var o=t(59496),a=t(47122);let n;const r=!1;function p(){const s=(0,a.D)(),{listen:e,location:t}=s;return r&&(n=t.state),(0,o.useEffect)((function(){return e(((s,e)=>{"POP"===e&&(s.state={...r?Object(n):void 0,...t.state,...s.state})}))})),s}}}]);
|
|
//# sourceMappingURL=3696.js.map
|