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

2 lines
5.8 KiB
JavaScript
Raw Normal View History

2024-07-11 00:01:49 +05:30
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[1744],{3715:(o,t,e)=>{e.d(t,{K:()=>h});var s=e(59496),n=e(84875),a=e.n(n),r=e(7695),i=e(97401),c=e(71619);const l={podcastSponsorCallToActionButton:"WI4OWZsbabgCus7t7tbe"};var d=e(4637);const p=(0,s.lazy)((()=>e.e(5503).then(e.bind(e,5503))));function h({children:o,"data-testid":t,className:e,crossPromoVariant:n,...h}){const S=(0,s.useMemo)((()=>(0,d.jsx)(i.x,{..."to"in h?{to:h.to}:void 0,children:(0,d.jsx)(r.PodcastSponsorCallToActionButtonBase,{children:o,...h})})),[o,h]);return(0,d.jsx)("div",{className:a()(l.podcastSponsorCallToActionButton,e),"data-testid":t,children:n&&n.buttonAction!==c.kI?(0,d.jsx)(s.Suspense,{fallback:S,children:(0,d.jsx)("div",{children:(0,d.jsx)(p,{crossPromoVariant:n,children:o,potentiallyMalformedUri:"to"in h?h.to:void 0,...h})})}):S})}},7695:(o,t,e)=>{e.r(t),e.d(t,{PodcastSponsorCallToActionButtonBase:()=>r,default:()=>i});var s=e(79475),n=e(56162),a=e(4637);function r({children:o,...t}){return(0,a.jsx)(s.D,{as:"div",...t,buttonSize:t.buttonSize||s.D.sm,children:(0,a.jsx)(n.D,{variant:"mestoBold",children:o})})}const i=r},97401:(o,t,e)=>{e.d(t,{x:()=>r});var s=e(59496),n=e(4637);const a=(0,s.lazy)((()=>Promise.resolve().then(e.bind(e,63120))));function r(o){return"to"in o?(0,n.jsx)(a,{...o}):(0,n.jsx)("div",{...o})}},14505:(o,t,e)=>{e.d(t,{G:()=>r,I:()=>a});var s=e(59496),n=e(61740);const a=o=>o?async o=>{const{adsCosmos:t}=await Promise.resolve().then(e.bind(e,43630));return await t.get(o)}:o=>fetch(o,{mode:"no-cors"});function r(o){const{isDesktop:t}=(0,n.v9)((o=>o.platform));return(0,s.useMemo)((()=>o(t)),[o,t])}},71619:(o,t,e)=>{e.d(t,{Pu:()=>n,kI:()=>s});const s="navigate",n="follow"},71744:(o,t,e)=>{e.r(t),e.d(t,{MAX_SPONSORS_TO_DISPLAY_IN_PREVIEW_IF_SOME_ARE_HIDDEN:()=>A,ShowSponsorsPreviewWithData:()=>I,default:()=>C});var s=e(59496),n=e(56162),a=e(64265),r=e(55760),i=e(84875),c=e.n(i),l=e(3802);const d={showSponsorAdvertiserName:"uMyxpLDoyTt8opzZ0Xmx"};var p=e(4637);function h(o){return(0,p.jsx)("span",{...o,className:c()(d.showSponsorAdvertiserName,o.className)})}const S={podcastSponsorWrapper:"wt_FLmr6yURrIEKAA1wq",podcastSponsor:"J7w1VFgufp6CwJfmBDqK",podcastSponsorExternalLink:"wDt8lZZDmfLSLf7gk_3t",podcastSponsorImage:"KfZtrIdxxMAXCPOXYmqa",podcastSponsorCaption:"jjySUpFnQoCfwrR2OL39",podcastSponsorAdvertiser:"rgcyNV3UEw3xd9_eQIVQ",podcastSponsorButtonMessage:"IJekfqpvW_dR0nJ0ErSQ",podcastSponsorCtaButtonWrapper:"LRT3GXRFbcLP1ls6zNW3",podcastSponsorCtaCardButton:"nPvT8P4sxeJDkRfrwO9V",container:"RxXawUmIzkwqVa0_ZiW3",isActive:"ZvoHFdRRo4chlAW1RsOs",title:"tr_1lx1gxyfA_z9IfGDC",main:"aAky0So7RUnwZ7RXG9l1",titleContainer:"MIDLeGE8OhRry3u0Varg",duration:"MrqiFBAyFydsw7VGXw7E",trailerContainer:"a_axzMhl0y_bp1Q4Jdp4",image:"S89qLyeJv1Bixu02smaz",imageContainer:"ZWYzMN1PQdwTk51bFHzK",playButton:"QynaKkVPIYRR227Q8h47",entityImageLarge:"b60TzAfy2fgI8kebahjA",entityImageSmall:"vTnjFyiWK393qyqmS0T7",showSponsorsPreview:"AJ7wtAniAY9zInlir0Fs",showSponsorsMeta:"YY79N31sxgwGlWiVgcWP",showSponsorsPreviewSingle:"FWr_c93thPLuvdjQVM5O",showSponsorsMetaSingle:"egcFmDmn9BO1r3yccCwq",showSponsorLogo:"E4xmwEEWQwLRazD9tysL",additionalSponsorsCount:"jLyG04llcQpQAZZM428Y"};function u({thereIsOnlyASingleShowSponsor:o,firstShowSponsor:t,showSponsorsDataThatActuallyGetDisplayedInPreview:e}){return(0,p.jsxs)(n.D,{className:c()(S.showSponsorsMeta,{[S.showSponsorsMetaSingle]:o}),children:[l.ag.get("podcast-ads.recent_ads_from"),(0,p.jsx)(h,{children:o?t.metadata.advertiser:e.length>2?l.ag.get("podcast-ads.recent_ads_more_than_two",...e.map((o=>o.metadata.advertiser))):l.ag.get("podcast-ads.recent_ads_just_two",...e.map((o=>o.metadata.advertiser)))}),"."]})}var w=e(33103),m=e(14505),g=e(97401);const v=6,f=38,x=`${f}px`;var y=e(3715),_=e(88294);const A=v-1;function I(o){const t={...o,fireTrackingEvent:o.fireTrackingEvent??m.I},{showSponsorsData:e,showId:i}=t,l=(0,_.D)(i),d=(0,s.useMemo)((()=>e.length>v?e.length-A:0),[e]),h=(0,s.useMemo)((()=>e.slice(0,d?A:v)),[e,d]),I=1==
//# sourceMappingURL=1744.js.map