"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[479],{87581:(e,t,r)=>{r.d(t,{Q:()=>l});var n=r(67154),o=r.n(n),s=r(67294),a=r.n(s),c=r(94184),p=r.n(c);const i="_pMNGOs2KBLWGpGmunYI";function l(e){return a().createElement("section",o()({},e,{className:p()(i,e.className)}))}},14784:(e,t,r)=>{r.r(t),r.d(t,{ALL_EPISODE_SPONSORS_TESTID:()=>b,AllEpisodeSponsors:()=>S,allEpisodeSponsorsPath:()=>O.e,default:()=>E});var n=r(67154),o=r.n(n),s=r(67294),a=r.n(s),c=r(52883),p=r(46886),i=r(28975),l=r(87581),d=r(77186);var u=r(88396),f=r(99922),O=r(61737);const b="all-episode-sponsors";function S({EpisodeSponsorsWrapper:e=u.EpisodeSponsorsWrapper}){const{[i.hd]:t}=(0,c.UO)(),r=(0,d.P)(),n=(0,f.o)();return r.location.state?a().createElement(l.Q,{"data-testid":b},a().createElement(e,o()({},n,{numberOfSponsorsToDisplay:1/0,reason:"Episode page See All"}))):a().createElement(p.AP,{to:(0,i.lc)(t)})}const E=S},27479:(e,t,r)=>{r.r(t),r.d(t,{EpisodeSponsorsWrapperWithData:()=>P,default:()=>y});var n=r(59713),o=r.n(n),s=r(67294),a=r.n(s),c=r(69518),p=r.n(c),i=r(1486),l=r(20657),d=r(27716),u=r(14784),f=r(88396);const O="GSz6Q5lt5PCmKrP2AHB3";function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const E=(0,s.lazy)((()=>r.e(774).then(r.bind(r,18774))));function P({version:e,state:t,numberOfSponsorsToDisplay:r,uri:n,reason:o}){const c=(0,d.s4)(),b=(0,s.useMemo)((()=>n||p().showURI(t.episodeBase62Id).toURI()),[n,t.episodeBase62Id]),P=(0,s.useCallback)((async e=>c.send((0,i.$)(S({uri:b,reason:o,lineitem_id:t.displayedEpisodeSponsorsData.map((e=>e.metadata.lineitemId))},e)))),[b,t.displayedEpisodeSponsorsData,o,c]);return(0,s.useEffect)((function(){P()}),[P]),a().createElement(E,{shelfHeaderProps:{title:2===e?l.ag.get("episode.sponsored_by"):l.ag.get("episode.sponsors"),hasMoreElements:t.fetchedEpisodeSponsorsData.length>r?{pathname:(0,u.allEpisodeSponsorsPath)(t.episodeBase62Id),state:t}:void 0,seeAllProps:{"data-testid":f.SEE_ALL_EPISODE_SPONSORS_TESTID,onClick(){P({cta_card_see_all:!0})}}},listProps:S({"data-testid":f.EPISODE_SPONSORS_SHELF_TESTID,children:t.displayedSponsors},1===e?{className:O}:void 0)})}const y=P},77186:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(59713),o=r.n(n),s=r(67294),a=r(52883);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(){const e=(0,a.k6)(),{listen:t,location:r}=e;return(0,s.useEffect)((function(){return t(((e,t)=>{"POP"===t&&(e.state=p(p(p({},void 0),r.state),e.state))}))})),e}}}]);
//# sourceMappingURL=479.js.map