"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[381],{18693:(e,t,o)=>{o.d(t,{F:()=>a,m:()=>c});var n=o(67294),s=o(64005),r=o(31604);const a=420;function c({episodeBase62Id:e,getEpisodeSponsors:t,fetchedEpisodeSponsorsData:c=[],version:i}){const[l,u]=(0,n.useState)(c),p=(0,n.useCallback)((async()=>{try{if(!e)throw new Error("episodeBase62Id is required to fetch episode sponsors");const n=null!=t?t:(await Promise.resolve().then(o.bind(o,11401))).getEpisodeSponsors;u(await n(e,{version:i}))}catch(e){u([])}}),[e,t,i]),f=(0,s.y)(p,a);return(0,n.useEffect)((function(){c.length||f()}),[f,c.length]),(0,r.H)(f),{fetchedEpisodeSponsorsData:l}}},18381:(e,t,o)=>{o.r(t),o.d(t,{ShowSponsorsPreview:()=>h,default:()=>w});var n=o(67154),s=o.n(n),r=o(59713),a=o.n(r),c=o(67294),i=o.n(c),l=o(52883);var u=o(51976);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){a()(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const d=(0,c.lazy)((()=>Promise.all([o.e(814),o.e(188)]).then(o.bind(o,49188))));function h(e){const{location:{state:{showSponsorsData:t}={}}}=(0,l.k6)(),{showSponsorsData:o}=(0,u.O)(f(f({},e),{},{showSponsorsData:t}));return null!=o&&o.length?i().createElement(c.Suspense,{fallback:!0},i().createElement(d,s()({},e,{showSponsorsData:o}))):null}const w=h},51976:(e,t,o)=>{o.d(t,{O:()=>c});var n=o(67294),s=o(64005),r=o(18693),a=o(31604);function c({showId:e,showSponsorsData:t=[],getShowSponsors:c}){const[i,l]=(0,n.useState)(t),u=(0,n.useCallback)((async()=>{let t=!0;const n=(...e)=>{t&&l(...e)};try{if(!e)throw new Error("showId is required to fetch show sponsors");const t=null!=c?c:(await Promise.resolve().then(o.bind(o,1709))).getShowSponsors;n(await t(e))}catch(e){n([])}return()=>{t=!1}}),[e,c]),p=(0,s.y)(u,r.F);return(0,n.useEffect)((function(){t.length||p()}),[p,t.length]),(0,a.H)(p),{showSponsorsData:i}}},31604:(e,t,o)=>{o.d(t,{H:()=>l});var n=o(67294),s=o(87577),r=o(49207),a=o(40080),c=o(8341),i=o(89952);function l(e){const t=(0,s.W6)(r.oF),o=(0,c.Y)((e=>{var t,o;const n=null!==(t=null==e?void 0:e.item)&&void 0!==t?t:void 0;return(0,i.k6)(n)&&n.isPodcastAd&&null!==(o=n.id)&&void 0!==o?o:void 0})),l=(0,a.D)(o);(0,n.useEffect)((function(){o!==l&&Boolean(o)&&setTimeout(e,t)}),[e,o,l,t])}}}]);
//# sourceMappingURL=381.js.map