dotfiles/.config/spicetify/Extracted/Raw/xpui/playlist-leavebehinds.js

2 lines
1.1 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[5457],{86226:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var s=l(59496),n=l(61740),i=l(33103),a=l(30366),c=l(50346),o=l(3802),d=l(78195),r=l(87810),f=l(48178),u=l(4637);const g={advertiser:"MeUndies Test",adId:"121",tagline:"Get 25% off Matching Pairs",displayImage:{src:"https://i.scdn.co/image/ab67616600001e01499cd20c0b8a4816617c5cd2",alt:"Advertiser logo"},buttonMessage:"Shop Now",cardOnClick:()=>{},buttonOnClick:()=>{}},p=Array.from({length:8},((e,t)=>({...g,adId:t.toString()}))),b=({playlistUri:e})=>{const t=(0,c.EC)(e)?.id,l=(0,n.I0)(),g=(0,n.v9)((e=>e.platform.isDesktop));(0,s.useEffect)((()=>{l((0,r.ZN)()),l((0,r.Gr)(p))}),[l]);const b=(0,n.v9)(d.v);if(!g||!t||!b)return null;const h=`${o.ag.get("view.see-all")} (${b.length})`;return(0,u.jsx)(f.Z,{leavebehinds:b.slice(0,3),playlistId:t,seeAllButton:b.length>3?(0,u.jsx)(i.rU,{to:`/playlist/${t}/see-all-ads`,children:(0,u.jsx)(a.o,{buttonSize:"sm",onClick:()=>{},children:h})}):null})}}}]);
//# sourceMappingURL=playlist-leavebehinds.js.map