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

2 lines
782 B
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[9221],{39221:(e,t,l)=>{l.r(t),l.d(t,{AdSubtitle:()=>b,default:()=>c});var n=l(59496),r=l(61740),i=l(50346),a=l(20386),o=l(2831),s=l(63120),u=l(4637);const d={"data-testid":"context-item-info-ad-subtitle"},b=({item:e,onClick:t})=>{const l=(0,r.I0)(),{subtitle:b,url:c,blurbUri:f}=(0,a.Q)(e),h=(0,n.useMemo)((()=>(0,i.EC)(f)?.toURLPath(!0)),[f]);return h?(0,u.jsx)(s.default,{to:h,...d,dir:"auto",children:b}):c?(0,u.jsx)("a",{...d,onClick:e=>(t?.(e,c),l((0,o.nX)("advertiser_subtitle"))),href:c,rel:"noopener noreferrer",target:"_blank",dir:"auto",children:b}):(0,u.jsx)("span",{dir:"auto",children:b})},c=b}}]);
//# sourceMappingURL=9221.js.map