dotfiles/.config/spicetify/Extracted/Themed/xpui/2845.js

2 lines
5.8 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[2845,4089],{94089:(o,a,s)=>{s.r(a),s.d(a,{AllPodcastSponsors:()=>c,default:()=>i});var t=s(84875),e=s.n(t);const n={allPodcastSponsorsContainer:"JMUhU_hkyHgGt0sXHzZJ"};var r=s(4637);function c(o){return(0,r.jsx)("section",{...o,className:e()(n.allPodcastSponsorsContainer,o.className)})}const i=c},74923:(o,a,s)=>{s.d(a,{q:()=>h});var t=s(84875),e=s.n(t),n=s(24697),r=s(56162),c=s(94285),i=s(3715),d=s(97401),p=s(95535);const l={podcastSponsorWrapper:"dV4xfunhSR2t1b2_DGmQ",podcastSponsor:"U1vrFpapHsO_5IjmIFcH",podcastSponsorExternalLink:"NJfpfM604qpHFMZ6JhvB",podcastSponsorImage:"kRTpwQVjlqFf5Czksi3t",podcastSponsorCaption:"kXzypcYbihi6FOKwI1pL",podcastSponsorAdvertiser:"hbTMMsp2awkqMs24k79g",podcastSponsorButtonMessage:"jZzLKoZ2KgeSV72GKgG1",podcastSponsorCtaButtonWrapper:"R754clNSpXq5kl8V0Nh9",podcastSponsorCtaCardButton:"GTm8hzK6khl4JmocUp_i"};var u=s(4637);const m="110px";function h({figureProps:o,imageProps:a,advertiserTypeProps:s,taglineProps:t,callToActionButtonProps:h,externalLinkIconProps:S,children:v,...g}){return(0,u.jsxs)(d.x,{...g,className:e()(l.podcastSponsorWrapper,g.className),children:[(0,u.jsxs)("figure",{className:l.podcastSponsor,...o,children:[(0,u.jsx)(n.E,{placeholderSrc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8LwkAAh0BGumlBj4AAAAASUVORK5CYII=",imageWidth:m,imageHeight:m,crop:!0,...a,className:e()(l.podcastSponsorImage,a.className)}),(0,u.jsxs)("figcaption",{className:l.podcastSponsorCaption,children:[(0,u.jsx)(r.D,{variant:"balladBold",className:l.podcastSponsorAdvertiser,...s}),(0,u.jsx)(p.S,{className:l.podcastSponsorButtonMessage,...t}),h&&(0,u.jsx)("div",{className:l.podcastSponsorCtaButtonWrapper,children:(0,u.jsx)(i.K,{...h})})]}),S&&(0,u.jsx)(c.T,{className:l.podcastSponsorExternalLink,iconSize:16,...S})]}),v]})}},3715:(o,a,s)=>{s.d(a,{K:()=>u});var t=s(59496),e=s(84875),n=s.n(e),r=s(7695),c=s(97401),i=s(71619);const d={podcastSponsorCallToActionButton:"WI4OWZsbabgCus7t7tbe"};var p=s(4637);const l=(0,t.lazy)((()=>s.e(5503).then(s.bind(s,5503))));function u({children:o,"data-testid":a,className:s,crossPromoVariant:e,...u}){const m=(0,t.useMemo)((()=>(0,p.jsx)(c.x,{..."to"in u?{to:u.to}:void 0,children:(0,p.jsx)(r.PodcastSponsorCallToActionButtonBase,{children:o,...u})})),[o,u]);return(0,p.jsx)("div",{className:n()(d.podcastSponsorCallToActionButton,s),"data-testid":a,children:e&&e.buttonAction!==i.kI?(0,p.jsx)(t.Suspense,{fallback:m,children:(0,p.jsx)("div",{children:(0,p.jsx)(l,{crossPromoVariant:e,children:o,potentiallyMalformedUri:"to"in u?u.to:void 0,...u})})}):m})}},7695:(o,a,s)=>{s.r(a),s.d(a,{PodcastSponsorCallToActionButtonBase:()=>r,default:()=>c});var t=s(79475),e=s(56162),n=s(4637);function r({children:o,...a}){return(0,n.jsx)(t.D,{as:"div",...a,buttonSize:a.buttonSize||t.D.sm,children:(0,n.jsx)(e.D,{variant:"mestoBold",children:o})})}const c=r},97401:(o,a,s)=>{s.d(a,{x:()=>r});var t=s(59496),e=s(4637);const n=(0,t.lazy)((()=>Promise.resolve().then(s.bind(s,63120))));function r(o){return"to"in o?(0,e.jsx)(n,{...o}):(0,e.jsx)("div",{...o})}},95535:(o,a,s)=>{s.d(a,{S:()=>i});var t=s(84875),e=s.n(t),n=s(56162);const r={podcastSponsorWrapper:"J5CRaPNhkzTtun81ix4_",podcastSponsor:"Ydj9D6hTaRL_zq6TPLQi",podcastSponsorExternalLink:"X77gJ8bX8tndSN1hTjWR",podcastSponsorImage:"eHZ28TWANGnQvU01g2oY",podcastSponsorCaption:"v2F4iVnwnrHtPu5GC9HB",podcastSponsorAdvertiser:"DHBG_yrmCz0kKTXhkmbE",podcastSponsorButtonMessage:"wChs0Q3HkTdKiBoQ33bT",podcastSponsorCtaButtonWrapper:"gUwjluEACtt5LCUu5sxp",podcastSponsorCtaCardButton:"DJbGzgDKx2qXorbxCZzW",podcastSponsorTagline:"WQ3nvVdLWEI08Z4V2iY4"};var c=s(4637);function i(o){return(0,c.jsx)(n.D,{...o,variant:o.variant||"mesto",className:e()(r.podcastSponsorTagline,o.className)})}},73861:(o,a,s)=>{s.d(a,{A:()=>c});var t=s(3802),e=s(59359);const n={podcastSponsorsWrapper:"o7CiEtNVpaEvKhoXW2qf"};var r=s(4637);function c({shelfHeaderProps:o,listProps:a}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.r,{title:t.ag.get("podcast-ads.recent_ads"),...o}),(0,r.jsx)("aside",{className:n.podcastSponsorsWrapper,...a})]})}},14505:(o,a,s)=>{s.d(a,{G:()=>r,I:()=>n});var t=s(59496),e=s(61740);const n=o=>o?async o=>{const{adsCosmos:a}=await Promise.resolve().then(s.bind(s,43630));return await a.get(o)}:o=>fetch(o,{mode:"no-cors"});function r(o){const{isDesktop:a}=(0,e.v9)((o=>o.platform));return(0,t.useMemo)((()=>o(a)),[o,a])}},71619:(o,a,s)=>{s.d(a,{Pu:()=>e,kI:()=>t});const t="navigate",e="follow"},42845:(o,a,s)=>{s.r(a),s.d(a,{AllShowSponsorsWithData:()=>l,default:()=>u});var t=s(59496),e=s(64265),n=s(55760),r=s(94089),c=s(14505),i=s(74923),d=s(73861),p=s(4637);const l=({uri:o,showSponsorsData:a,fireTrackingEvent:s=c.I})=>{const l=(0,n.s4)(),u=(0,t.useCallback)((async s=>l.send((0,e.createPodcastAdCtaCardEvent)({uri:o,reason:"Show page See All",lineitem_id:a.map((o=>o.metadata.lineitemId)),...s}))),[o,a,l]),m=(0,c.G)(s);return(0,t.useEffect)((function(){a.forEach((({trackingEvents:{viewed:o}={}})=>o?.forEach(m))),u()}),[a,u,m]),(0,p.jsx)(r.AllPodcastSponsors,{children:(0,p.jsx)(d.A,{shelfHeaderProps:{hasMoreElements:!1},listProps:{children:a?.map(((o,s)=>(0,p.jsx)(i.q,{to:o.clickthrough,onClick:function(){o.trackingEvents?.clicked.forEach(m),u({ui_navigate:a.map((({clickthrough:o},a)=>s===a?o:"")),navigate_to_external_uri:a.map(((o,a)=>s===a))})},"data-testid":"to do",imageProps:{src:o.display,alt:`${o.metadata.advertiser} - ${o.metadata.buttonMessage}`},advertiserTypeProps:{"data-testid":"to do",children:o.metadata.advertiser},taglineProps:{"data-testid":"to do",children:o.metadata.tagline},callToActionButtonProps:{"data-testid":"to do",children:o.metadata.buttonMessage}},`${o.metadata.advertiser||o.metadata.creativeId||o.metadata.creative_id} ${s}`)))}})})},u=l}}]);
//# sourceMappingURL=2845.js.map