"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[258],{93140:(e,t,a)=>{a.d(t,{q:()=>y});var n=a(67154),r=a.n(n),s=a(6479),i=a.n(s),o=a(67294),c=a.n(o),l=a(94184),d=a.n(l),p=a(82716),m=a(28760),u=a(74516),E=a(85404),g=a(94613);const v="RSgScVFD1lR6ekFN1hC9",f="dkOx6BEJI1d0RStHWUm5",O="GVQFdUwCGkHZmyuz4emj",A="BeY8E5ONYVNnO_iOKyvA",P="bPM8ckhKJay0joUDdCMw",S="ge4yAlYYoeKvB29FiG1W",b="og4J6XJtHE8zrFOD3WYQ",h="SMUcY5tIlrmkS1O8tUji",k=["figureProps","imageProps","advertiserTypeProps","taglineProps","callToActionButtonProps","externalLinkIconProps"],N="110px";function y(e){let{figureProps:t,imageProps:a,advertiserTypeProps:n,taglineProps:s,callToActionButtonProps:o,externalLinkIconProps:l}=e,y=i()(e,k);return c().createElement("a",r()({target:"_blank"},y,{className:d()(v,y.className)}),c().createElement("figure",r()({className:f},t),c().createElement(p.Ee,r()({placeholderSrc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8LwkAAh0BGumlBj4AAAAASUVORK5CYII=",imageWidth:N,imageHeight:N,crop:!0},a,{className:d()(A,a.className)})),c().createElement("figcaption",{className:P},c().createElement(m.Dy,r()({variant:"balladBold",className:S},n)),c().createElement(g.S,r()({className:b},s)),o&&c().createElement("div",{className:h},c().createElement(E.K,o))),l&&c().createElement(u.T,r()({className:O,iconSize:16},l))))}},85404:(e,t,a)=>{a.d(t,{K:()=>g});var n=a(67154),r=a.n(n),s=a(6479),i=a.n(s),o=a(67294),c=a.n(o),l=a(94184),d=a.n(l),p=a(99450),m=a(28760);const u="G8b_VGQSxRwZSatAhUTd",E=["children","data-testid","className"];function g(e){let{children:t,"data-testid":a,className:n}=e,s=i()(e,E);return c().createElement("div",{className:d()(u,n),"data-testid":a},c().createElement(p.D,r()({},s,{buttonSize:s.buttonSize||p.D.sm}),c().createElement(m.Dy,{variant:"mestoBold"},t)))}},94613:(e,t,a)=>{a.d(t,{S:()=>p});var n=a(67154),r=a.n(n),s=a(67294),i=a.n(s),o=a(94184),c=a.n(o),l=a(28760);const d="eaiLXk0FzOrdfkM6O8jp";function p(e){return i().createElement(l.Dy,r()({},e,{variant:e.variant||"mesto",className:c()(d,e.className)}))}},87258:(e,t,a)=>{a.r(t),a.d(t,{EPISODE_SPONSOR_ADVERTISER_TEST_ID:()=>v,EPISODE_SPONSOR_CTA_BUTTON_TEST_ID:()=>O,EPISODE_SPONSOR_TAGLINE_TEST_ID:()=>f,EPISODE_SPONSOR_TEST_ID:()=>g,EpisodeSponsor:()=>A,default:()=>P});var n=a(59713),r=a.n(n),s=a(6479),i=a.n(s),o=a(67294),c=a.n(o),l=a(73012),d=a(93140);const p="XprNUdYetvZ2rGm_D6w6",m=["firedViewedEvents","fireTrackingEvent","version","onClick"];function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function E(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){r()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}const g="episode-sponsor",v="episode-sponsor-advertiser",f="episode-sponsor-tagline",O="episode-sponsor-cta-button";function A(e){var t;let{firedViewedEvents:a,fireTrackingEvent:n=(e=>fetch(e)),version:r,onClick:s}=e,u=i()(e,m);return(0,o.useEffect)((function(){var e;null===(e=u.trackingEvents)||void 0===e||e.viewed.forEach((async e=>{await n(e),a.add(e)}))}),[null===(t=u.trackingEvents)||void 0===t?void 0:t.viewed,a,n]),c().createElement(d.q,{href:u.clickthrough,onClick:async e=>{var t;null==s||s(e),null===(t=u.trackingEvents)||void 0===t||t.clicked.forEach(n)},"data-testid":g,figureProps:1===r?{className:p}:void 0,imageProps:E({src:u.display,alt:`${u.metadata.advertiser} - ${u.metadata.buttonMessage}`},2===r?{}:{imageWidth:l.uOY,imageHeight:l.uOY}),advertiserTypeProps:{"data-testid":v,children:u.metadata.advertiser},taglineProps:{"data-testid":f,children:2===r?u.metadata.tagline:u.metadata.buttonMessage},callToActionButtonProps:2===r?{"data-testid":O,children:u.metadata.buttonMessage}:void 0,externalLinkIconProps:2===r?void 0:{}})}const P=A}}]);
//# sourceMappingURL=258.js.map