solorice/config/spicetify/Extracted/Raw/xpui/xpui-routes-venues.js
Kristofers Solo a42ded1119 Use dotter
2024-08-28 09:02:07 +03:00

2 lines
6.0 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[7241],{6382:(e,s,r)=>{r.d(s,{A:()=>p});var n=r(30758),a=r(69725),t=r(12783),i=r(88497),l=r(59996),c=r(32912),o=r(56975);const d="wedRUk4eiBo9n9vqXLhU",u="hMbtEskyvMbDiwq1EScA",v="HYVIJaYYiCTgSCHie70L",m="SPbe_Q1wtiZQCmo0QKUy",x="TRp4tgG7_cymGIXDevIP",h="tC1Y_nwyyly7cpIGqF5K",C="l93AfoV_qHnMQSQBB5GK",j="DgDBmSR2sbwji2UfqxIf",g="EkGb0ZzhswreSvpZoioY";var b=r(86070);const p=(0,n.memo)((e=>{const{uri:s,title:r,imageUrl:n,date:p,subTitle:y,firstParty:f,onClick:w}=e,k=p?(0,c.l4)(p):void 0;return(0,b.jsx)(l.N,{to:s,className:d,"data-testid":"concert-card",onClick:w,children:(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)(o.b,{children:(0,b.jsx)("div",{role:"img",className:g,style:{backgroundImage:`url(${n})`},children:!n&&(0,b.jsx)(a.r,{role:"img",size:"xxlarge",semanticColor:"textSubdued"})})}),k&&(0,b.jsxs)("time",{className:v,dateTime:p,children:[(0,b.jsx)(t.E,{as:"div",variant:"bodySmall",children:(0,c.tj)(k)}),(0,b.jsx)(t.E,{as:"div",variant:"bodyMediumBold",children:(0,c.Py)(k)})]}),(0,b.jsxs)("div",{className:m,dir:"auto",children:[(0,b.jsx)(t.E,{as:"h2",variant:"bodyMedium",className:x,children:r}),(0,b.jsxs)("div",{className:h,children:[f&&(0,b.jsx)("span",{className:j,children:(0,b.jsx)(i.D,{size:"small"})}),(0,b.jsx)(t.E,{as:"span",className:C,variant:"bodySmall","data-testid":"location-name",semanticColor:"textSubdued",children:y})]})]})]})})}))},17738:(e,s,r)=>{r.r(s),r.d(s,{default:()=>V});var n=r(71306),a=r(83917),t=r(11808),i=r(38308),l=r(28754),c=r(53576),o=r(82442),d=r(56341),u=r(74793),v=r(59116),m=r(21752),x=r(79056),h=r(55194),C=r(83028),j=r(33973),g=r(12783);const b="Xlgy72kupmfCZqmbBxcw";var p=r(86070);const y=({venue:e,address:s})=>(0,p.jsxs)("div",{className:b,children:[(0,p.jsx)(j.t,{semanticColor:"textBase"}),(0,p.jsxs)("div",{children:[(0,p.jsx)(g.E,{as:"div",semanticColor:"textBase",variant:"bodyMediumBold",children:e}),(0,p.jsx)(g.E,{semanticColor:"textSubdued",variant:"bodySmall",children:Object.values(s).join(t.Ru.getSeparator())})]})]});var f=r(57734),w=r(6382);const k=e=>"uri"in e,S=e=>null!=e;var I=r(79303);const N=({concerts:e,spec:s})=>{const r=(0,I.s)();return(0,p.jsx)(f.$,{total:e.items.length,title:t.Ru.get("web-player.venues.concerts"),showAll:!0,withEncoreCards:!1,children:e.items.map((e=>e.data)).filter(k).map(((e,n)=>{const a=e.artists.items[0].data,i="visuals"in a?a.visuals.avatarImage?.sources[0]:void 0;return(0,p.jsx)(w.A,{imageUrl:i?.url,uri:e.uri,title:e.title,subTitle:[e.location.name,e.location.city].join(t.Ru.getSeparator()),date:e.startDateIsoString,onClick:()=>((e,n)=>{const a=s.eventCardFactory({uri:e,position:n}).hitUiNavigate({destination:e});r.logInteraction(a)})(e.uri,n+1)},n)})).filter(S)})},R=e=>(0,p.jsx)("svg",{width:e.iconSize,height:e.iconSize,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 0C21.0532 0 22.0879 0.278738 23 0.808199L38 9.51508C38.6081 9.86805 39.113 10.3757 39.4641 10.9871C39.8151 11.5984 40 12.2919 40 12.9978V39.9892C40 40.5225 39.7893 41.0339 39.4142 41.411C39.0391 41.7882 38.5304 42 38 42H26H14H2C1.46957 42 0.960859 41.7882 0.585786 41.411C0.210714 41.0339 0 40.5225 0 39.9892V12.9978C1.78369e-05 12.2919 0.184851 11.5984 0.535924 10.9871C0.886996 10.3757 1.39194 9.86805 2 9.51508L17 0.808199C17.9121 0.278738 18.9468 0 20 0ZM29.2728 14.7624H12.9091V27.5589H11.2728C10.5176 27.5589 9.77939 27.7841 9.15149 28.2059C8.52359 28.6277 8.03421 29.2273 7.74522 29.9287C7.45623 30.6302 7.38062 31.402 7.52794 32.1467C7.67527 32.8914 8.03891 33.5754 8.5729 34.1123C9.10688 34.6491 9.78721 35.0148 10.5279 35.1629C11.2685 35.311 12.0362 35.235 12.7339 34.9444C13.4316 34.6539 14.0279 34.1618 14.4475 33.5305C14.867 32.8992 15.0909 32.157 15.0909 31.3978V16.956H27.0909V27.5589H25.4546C24.6994 27.5589 23.9612 27.7841 23.3333 28.2059C22.7054 28.6277 22.216 29.2273 21.927 29.9287C21.638 30.6302 21.5624 31.402 21.7098 32.1467C21.8571 32.8914 22.2207 33.5754 22.7547 34.1123C23.2887 34.6491 23.969 35.0148 24.7097 35.1629C25.4503 35.311 26.2181 35.235 26.9157 34.9444C27.6134 34.6539 28.2097 34.1618 28.6293 33.5305C29.0488 32.8992 29.2728 32.157 29.2728 31.3978V14.7624Z",fill:"currentColor"})});var E=r(15742),M=r(8385);const B=new E.l("venue","query","c1f9cbd43884187f1fcf08a9689eb7ec854e4b8dbb1dc0442a2151d9aa8100cf",null);var A=r(9183);var L=r(67464),z=r(72091);const H="kpMIZFDu12cMBsz4ZxlE",Z="gxdwhiUmWKrrk4VLbLJw",_="bARY0skKvlL8wtcg1Y2g",D=[n.gbI,n.hQT,n.r5P,n.t2r,n.$26,n.EoP,n.w8D,n.ka3,n.zQs,n.kTx,n.CMo,n.ARx,n.D0c,n.CZt],V=e=>{const s=((e=A.g)=>{const{venueId:s}=e();return`spotify:venue:${s}`})(),{data:r,loading:n,error:j}=(g={uri:s},(0,M.I)(B,g,b));var g,b;const{spec:f}=(0,z.r)(a.L,{});if(n)return(0,p.jsx)(C.A,{hasError:!1,errorMessage:""});if(w=r?.venue,"NotFound"===w?.__typename)return(0,p.jsx)(l.p,{title:t.Ru.get("web-player.venues.error.not_found.title"),message:t.Ru.get("web-player.venues.error.not_found.message"),renderInline:!0});var w;if(j||!(e=>Object.keys(e??{}).includes("name"))(r?.venue))return(0,p.jsx)(C.A,{hasError:!0,errorMessage:t.Ru.get("web-player.venues.error.generic.title")});const k=D[(""!==r.venue.name?r.venue.name.charCodeAt(0):0)%(D.length-1)];return(0,p.jsxs)("section",{children:[(0,p.jsxs)(o.z,{size:o.K.SMALL,backgroundColor:k,children:[(0,p.jsx)(d.K,{renderImage:()=>(0,p.jsx)("div",{className:Z,children:(0,p.jsx)(R,{iconSize:48})}),name:r.venue.name,shape:L.u.CIRCLE,images:[]}),(0,p.jsxs)(u.Y,{children:[(0,p.jsx)(x.B,{children:t.Ru.get("web-player.venues.venue")}),(0,p.jsx)(h.mm,{children:r.venue.name}),(0,p.jsx)(c.Z,{children:[r.venue.address.city,r.venue.address.country].join(t.Ru.getSeparator())})]}),(0,p.jsx)(v.h,{children:(0,p.jsx)(m.X,{text:r.venue.name})})]}),(0,p.jsx)(i.K,{backgroundColor:k}),(0,p.jsxs)("div",{className:H,children:[(0,p.jsx)(y,{venue:r.venue.name,address:r.venue.address}),(0,p.jsx)("div",{className:_,children:(0,p.jsx)(N,{concerts:r.venue.concerts,spec:f})})]})]})}}}]);
//# sourceMappingURL=xpui-routes-venues.js.map