dotfiles/.config/spicetify/Extracted/Raw/xpui/xpui-routes-concert.js

2 lines
16 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([[7288],{48532:(e,t,s)=>{s.d(t,{Z:()=>v});var a=s(59496),r=s(56162),n=s(3802),i=s(63120),o=s(23521),c=s(75252),l=s(97009),d=s(27532);const h="MUiWCNTfb6FcSwVPvQ1V",m="UAk3bMhekwJTV_wIyfsT",g="X9w6LPfKsZHMCs38sVIQ",u="NXn5KjeUOjLGlAfS1Gao",p="N0wgFMDDvCiby4QB5kLJ",x="nloNe2BLRHjz9dxlwfLU",j="JzXND83mXvcEuntCNR34",y="GR08E4L_rOGljyQQX30R";var f=s(4637);const v=(0,a.memo)((e=>{const{concert:t,isVirtual:s,onClick:a}=e,{venue:v,location:w}=t,N=t.artists[0],k=(0,l.CH)(t.startDate.localDate);return(0,f.jsxs)(i.Link,{to:`/concert/${t.id}`,className:h,onClick:a,children:[N.imageUri&&(0,f.jsx)(o.Z,{children:(0,f.jsx)("div",{role:"img",className:y,style:{backgroundImage:`linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, rgba(6, 6, 6, 0.6) 60%, rgba(0, 0, 0, 0.7) 100%), url(${N.imageUri})`}})}),(0,f.jsx)("time",{className:m,dateTime:t.startDate.localDate,children:(0,f.jsx)(r.D,{as:"h5",variant:"mestoBold",children:(0,l.jx)(k)})}),(0,f.jsxs)("div",{className:g,dir:"auto",children:[(0,f.jsxs)(r.D,{as:"h2",className:j,variant:"mesto",children:[(0,c.FO)(k)," • ",(0,l.hK)(k)]}),(0,f.jsx)(r.D,{as:"h2",variant:"cello",weight:"bold",className:u,children:(0,d.ij)(t)}),(0,f.jsx)("div",{className:p,children:(0,f.jsx)(r.D,{as:"h2",className:x,variant:"mesto","data-testid":"location-name",children:s?v:[v,w].join(n.ag.getSeparator())})})]})]})}))},64554:(e,t,s)=>{s.r(t),s.d(t,{default:()=>Re});var a=s(9102),r=s(61740),n=s(89605),i=s(3802),o=s(23627),c=s(25899),l=s(82710);const d=e=>{const[t,{username:s,concertUri:a}]=e.queryKey;return(async(e,t)=>{const s=await(0,l.checkConcertInCollection)(c.b.getInstance(),e,t);return s.body?.found[0]})(s,a)};var h=s(82108),m=s(59496),g=s(56162),u=s(67526),p=s(10198),x=s(22521),j=s(91703),y=s(41226),f=s(16743),v=s(73997),w=s(35725),N=s(96170),k=s(84875),b=s.n(k),C=s(63082),_=s(37433),D=s(8138),I=s(36844),S=s(35394),P=s(1996),U=s(98340),A=s(45118),L=s(91834),T=s(40778),K=s(4637);const F=m.memo((function({uri:e}){const{spec:t}=(0,A.T)(e);return(0,K.jsx)(U.ZP,{value:"concert",children:(0,K.jsxs)(P.v,{children:[(0,K.jsxs)(L.q,{children:[(0,K.jsx)(T.Jx,{spec:t,uri:e,displayText:i.ag.get("context-menu.copy-concert-link")}),(0,K.jsx)(T.W2,{spec:t,uri:e})]}),(0,K.jsx)(T.h$,{spec:t,uri:e})]})})}));var M=s(63120),E=s(31354),$=s(12243),V=s(46651);const H="Qy5TW6J4tm8_aomy4Shi",z=(0,m.memo)((e=>{const t=(0,V.F)(e.followers),{spec:s,logger:a}=(0,N.fU)(E.w,{});return(0,K.jsxs)("div",{className:H,onClick:()=>{a.logInteraction(s.hitNoAction())},children:[(0,K.jsx)($.D,{followers:e.followers,spec:s}),(0,K.jsx)(g.D,{as:"p",variant:"mesto",children:t})]})}));var W=s(41836),O=s(3289),Q=s(59200),R=s(52210),Y=s(95663),Z=s(51783),q=s(66721);const J="rvw6x7R5AiAT48dSkFl9",X="JRuVlk6wpKk6ok7zuW6l",G="YpfopxY2udneDY34uzRN",B="KI_0F1jtTR5tWgl7gZ1E",ee="gKtc3TdowDTXBaVESi1D",te="V8TIr8yJq4tYZfPEzm12",se="VvL91cIRcCi1hJh0K845",ae="vKcnOO1GNYoLKHg4T4lK",re="LdW0YNvo_Y77hgqhL4zY",ne="cTkykhjfHxkEGKbxSxXw",ie="XgeTnLs82tTjczDR6oKn",oe="P3fE7wn6Tqnibn3gljKV",ce="A8LG_5Dvp7IiXDtdR571",le="OVY7plwgy_AKAzhgoCAF",de="O0PSSw8ttrMn9lzq_L16",he="D_ffrfn62aOgZKOFfZVr",me="OH4mOZCual2ejIodzIkL",ge="se_ixDV6hBf7lve861oU",ue="YDAJHPP5lDmg71SdvJZC",pe="lKQxSRsi8KcoYx5D7mjh",xe="LUMel_X4gQK0J1i6X0sC",je="s1jEHgfOLzeY3WugmaoT",ye=(0,m.memo)((e=>{const{concertUri:t,position:s,ticketer:a,spec:r}=e,n=(0,N.$P)(),i=(0,Y.o)(),o=(0,m.useMemo)((()=>r.ticketProviderCellFactory({identifier:a.partnerDisplayName,position:s,uri:a.url})),[r,a.partnerDisplayName,s,a.url]),c=(0,N.Wi)(o);return(0,K.jsxs)(M.default,{to:a.url,className:ie,onClick:()=>{const e=o.hitNavigateToExternalUri({destination:a.url});n.logInteraction(e),i({targetUri:t,intent:"find-concert",type:"click"})},ref:c,children:[(0,K.jsx)("div",{className:oe,children:(0,K.jsx)(q.Ee,{loading:"eager",srcSet:a.imageURL,src:a.imageURL,height:"100%",width:"100%",children:(0,K.jsx)(R.i,{className:ce,iconSize:24})})}),(0,K.jsxs)("div",{className:de,children:[(0,K.jsx)(g.D.span,{child
//# sourceMappingURL=xpui-routes-concert.js.map