mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
12 KiB
JavaScript
Executable File
2 lines
12 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[7241],{79509:(e,n,t)=>{t.d(n,{w:()=>m});var r=t(30758),a=t(97500),i=t.n(a),s=t(43727),o=t(92107),c=t(96992),l=t(52708);const u="pvGZ831aNzHTQMZ8CA_u";var d=t(86070),m=(0,r.memo)((function(e){var n=e.onClick,t=void 0===n?function(){}:n,a=e.size,m=e.className,v=e.uri,h=e.sharingInfo,f=e.interactionData,x=e.ariaLabel,p=void 0===x?o.Ru.get("mwp.list.item.share"):x,g=e.condensedAll,y=e.placement,j=e.semanticColor,C=e.disableTooltip,w=(0,l.L)({sharingInfo:h,uri:v,interactionData:f}).onCopyLink,b=(0,r.useCallback)((function(){w(),t()}),[t,w]);return(0,d.jsx)(c.a,{ariaLabel:p,size:a,onClick:b,className:i()(u,m),icon:s.C,condensedAll:g,placement:y,condensed:!0,semanticColor:j,disableTooltip:C})}))},61089:(e,n,t)=>{t.d(n,{p:()=>S});var r=t(52542),a=t(30758),i=t(97500),s=t.n(i),o=t(13534),c=t(11854),l=t(65707),u=t(89241);const d="(min-width: 0px)",m="(min-width: 0px) and (max-width: 767px)",v="(min-width: 768px)",h="(min-width: 768px) and (max-width: 1023px)",f="(min-width: 1024px)",x="(min-width: 1024px) and (max-width: 1279px)",p="(min-width: 1280px)",g="(min-width: 1280px) and (max-width: 1919px)",y="(min-width: 1920px)";const j="FvfvGU3jvHRskUU9v9_8",C="Q9AlbZn2EGzy3MTWXa8X",w="mxmxS0y8LiwSs5nueKPT",b="GXxVAveNFStY3pBI_NO4",D="eHcXC2s97InYP7rMNT0H";var k=t(86070),S=(0,a.memo)((function(e){var n=e.children,t=e.message,a=e.title,i=e.linkTitle,S=e.linkTo,R=e.onClick,N=e.renderInline,I=void 0!==N&&N,M={isXS:(0,u.U)(d),isXSOnly:(0,u.U)(m),isSM:(0,u.U)(v),isSMOnly:(0,u.U)(h),isMD:(0,u.U)(f),isMDOnly:(0,u.U)(x),isLG:(0,u.U)(p),isLGOnly:(0,u.U)(g),isXL:(0,u.U)(y)},_=M.isXSOnly||M.isSMOnly;return(0,k.jsxs)("section",{className:s()(j,(0,r.A)({},C,I)),children:[n,(0,k.jsx)(o.E,{as:"h1",variant:_?"titleSmall":"titleMedium",className:b,children:a}),(0,k.jsx)(o.E,{variant:_?"bodySmall":"bodyMedium",className:D,children:t}),i&&(S||R)&&(0,k.jsx)(c.$,{colorSet:"invertedLight",className:w,href:S,onClick:R,component:l.v,children:i})]})}))},2185:(e,n,t)=>{t.d(n,{Z:()=>s});var r=t(30758),a=t(13758),i=t(86070),s=(0,r.memo)((function(e){var n=e.children;return(0,i.jsx)("span",{className:a.A.detailsText,children:n})}))},74351:(e,n,t)=>{t.d(n,{B:()=>s});var r=t(13534),a=t(13758),i=t(86070),s=function(e){var n=e.children;return(0,i.jsx)(r.E,{variant:"bodySmall",className:a.A.pretitle,children:n})}},76497:(e,n,t)=>{t.d(n,{I:()=>m});var r=t(52542),a=(t(83234),t(30456),t(25550),t(47994),t(43379),t(2823),t(4672),t(46794),t(34192),t(88856),t(15342),t(44286)),i=t(83800),s=t(89255),o=t(80366),c=t(92107),l=t(65345),u=t(70566),d=t(86070),m=function(e){var n=e.concepts,t=e.spec,m=(0,a.Zp)(),v=n.filter(l.V5),h=(0,u.s)();return(0,d.jsx)("div",{style:(0,r.A)({},"--background-base","transparent"),children:(0,d.jsx)(i.I,{mode:"navigation","aria-label":c.Ru.get("card.tag.genre"),children:v.map((function(e,n){var r,a="/concerts/genre/".concat(null===(r=(0,o.o_)(e.data.uri))||void 0===r?void 0:r.id,"-").concat(e.data.name.replaceAll(" ","-"));return(0,d.jsx)(s.v,{onClick:function(r){!function(e,n,r,a){var i;e.preventDefault(),m(n);var s=null===(i=(0,o.o_)(r))||void 0===i?void 0:i.id;if(s&&t){var c=t.conceptButtonFactory({uri:r,position:a}).hitUiNavigate({destination:"spotify:concerts:genre:".concat(s)});h.logInteraction(c)}}(r,a,e.data.uri,n+1)},href:a,children:e.data.name},e.data.uri)}))})})}},62445:(e,n,t)=>{t.d(n,{A:()=>j});var r=t(30758),a=t(90430),i=t(13534),s=t(22976),o=t(93051),c=t(62813),l=t(15566);const u="wedRUk4eiBo9n9vqXLhU",d="hMbtEskyvMbDiwq1EScA",m="HYVIJaYYiCTgSCHie70L",v="SPbe_Q1wtiZQCmo0QKUy",h="TRp4tgG7_cymGIXDevIP",f="tC1Y_nwyyly7cpIGqF5K",x="l93AfoV_qHnMQSQBB5GK",p="DgDBmSR2sbwji2UfqxIf",g="EkGb0ZzhswreSvpZoioY";var y=t(86070);const j=(0,r.memo)((function(e){var n=e.uri,t=e.title,r=e.imageUrl,j=e.date,C=e.subTitle,w=e.firstParty,b=e.onClick,D=j?(0,c.l4)(j):void 0;return(0,y.jsx)(o.N,{to:n,className:u,"data-testid":"concert-card",onClick:b,children:(0,y.jsxs)("div",{className:d,children:[(0,y.jsx)(l.b,{children:(0,y.jsx)("div",{role:"img",className:g,style:{backgroundImage:"url(".concat(r,")")},children:!r&&(0,y.jsx)(a.r,{role:"img",size:"xxlarge",semanticColor:"textSubdued"})})}),D&&(0,y.jsxs)("time",{className:m,dateTime:j,children:[(0,y.jsx)(i.E,{as:"div",variant:"bodySmall",children:(0,c.tj)(D)}),(0,y.jsx)(i.E,{as:"div",variant:"bodyMediumBold",children:(0,c.Py)(D)})]}),(0,y.jsxs)("div",{className:v,dir:"auto",children:[(0,y.jsx)(i.E,{as:"h3",variant:"bodyMedium",className:h,children:t}),(0,y.jsxs)("div",{className:f,children:[w&&(0,y.jsx)("span",{className:p,children:(0,y.jsx)(s.D,{size:"small"})}),(0,y.jsx)(i.E,{as:"span",className:x,variant:"bodySmall","data-testid":"location-name",semanticColor:"textSubdued",children:C})]})]})]})})}))},65345:(e,n,t)=>{t.d(n,{$V:()=>r,Bw:()=>c,V5:()=>u,dR:()=>s,eO:()=>o,se:()=>i,w1:()=>l,ys:()=>a});t(78551),t(5672),t(82467);var r=function(e){return"data"in e&&Object.keys(e.data).length>0},a=function(e){return"concerts"in(null!=e?e:{})},i=function(e){return null!=e},s=function(e){return"__typename"in e&&"AllEvents"===e.__typename},o=function(e){return"__typename"in e},c=function(e){return!!e&&"sections"in e},l=function(e){return"__typename"in e},u=function(e){return Object.keys(e).includes("data")}},62813:(e,n,t)=>{t.d(n,{Fn:()=>v,MW:()=>h,Py:()=>d,VJ:()=>m,Vi:()=>g,WB:()=>f,WZ:()=>x,Y:()=>c,dp:()=>l,l4:()=>o,m7:()=>p,tX:()=>j,tj:()=>u});var r=t(12341),a=(t(83234),t(68216),t(2823),t(4672),t(12058)),i=t(92107),s=t(65345),o=function(e){return new Date(e.substring(0,16))},c=function(e){return i.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric"})},l=function(e){return i.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})},u=function(e){return i.Ru.formatDate(e,{month:"short"})},d=function(e){return i.Ru.formatDate(e,{day:"numeric"})},m=function(e){return i.Ru.formatDate(e,{weekday:"short"})},v=function(e){return i.Ru.formatDate(e,{month:"short",day:"numeric"})},h=function(e){return i.Ru.formatDate(e,{weekday:"short",hour:"numeric",minute:"numeric"})},f=function(e){return i.Ru.formatDate(e,{hour:"numeric",minute:"numeric"})},x=function(e,n){if(e.toDateString()===n.toDateString())return c(e);if(e.getMonth()===n.getMonth()){var t=i.Ru.formatDate(e,{day:"numeric",month:"short"}),r=i.Ru.formatDate(n,{day:"numeric"});return"".concat(t,"–").concat(r)}var a=i.Ru.formatDate(e,{day:"numeric",month:"short"}),s=i.Ru.formatDate(n,{day:"numeric",month:"short"});return"".concat(a,"–").concat(s)},p=function(e){if(!e)return!1;var n=new Date(e);return new Date>n},g=function(e){var n=(0,r.A)(e,1)[0],t=e[e.length-1];return(0,s.$V)(n)&&(0,s.$V)(t)?{startDate:o(n.data.startDateIsoString),endDate:o(t.data.startDateIsoString)}:{startDate:new Date,endDate:new Date}},y={month:"short",day:"numeric"},j=function(e){if((0,a.r)(e.from,e.to))return i.Ru.formatDate(e.from,y);var n=i.Ru.formatDate(e.from,y).replace(/ /g," "),t=i.Ru.formatDate(e.to,y).replace(/ /g," ");return"".concat(n," - ").concat(t)}},37610:(e,n,t)=>{t.r(n),t.d(n,{default:()=>G});t(30456),t(34518),t(47994),t(43379),t(34192),t(88856);var r=t(23100),a=t(93493),i=t(71631),s=t(92107),o=t(867),c=t(79509),l=t(61089),u=t(2185),d=t(9754),m=t(26552),v=t(33598),h=t(17067),f=t(85925),x=t(74351),p=t(88420),g=t(44206),y=t(76497),j=(t(60482),t(31682)),C=t(13534);const w="Xlgy72kupmfCZqmbBxcw";var b=t(86070);const D=function(e){var n=e.venue,t=e.address;return(0,b.jsxs)("div",{className:w,children:[(0,b.jsx)(j.t,{semanticColor:"textBase"}),(0,b.jsxs)("div",{children:[(0,b.jsx)(C.E,{as:"div",semanticColor:"textBase",variant:"bodyMediumBold",children:n}),(0,b.jsx)(C.E,{semanticColor:"textSubdued",variant:"bodySmall",children:Object.values(t).join(s.Ru.getSeparator())})]})]})};t(25550),t(15342);var k=t(1349),S=t(62445),R=(t(78551),t(5672),t(82467),function(e){return"uri"in e}),N=function(e){return null!=e},I=function(e){return Object.keys(e).includes("data")},M=t(70566),_=function(e){var n=e.concerts,t=e.spec,r=(0,M.s)();return(0,b.jsx)(k.$,{total:n.items.length,title:s.Ru.get("web-player.venues.concerts"),showAll:!0,withEncoreCards:!1,children:n.items.map((function(e){return e.data})).filter(R).map((function(e,n){var a,i=e.artists.items[0].data,o="visuals"in i?null===(a=i.visuals.avatarImage)||void 0===a?void 0:a.sources[0]:void 0;return(0,b.jsx)(S.A,{imageUrl:null==o?void 0:o.url,uri:e.uri,title:e.title,subTitle:[e.location.name,e.location.city].join(s.Ru.getSeparator()),date:e.startDateIsoString,onClick:function(){return a=e.uri,i=n+1,s=t.eventCardFactory({uri:a,position:i}).hitUiNavigate({destination:a}),void r.logInteraction(s);var a,i,s}},n)})).filter(N)})},L=function(e){return(0,b.jsx)("svg",{width:e.iconSize,height:e.iconSize,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,b.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"})})},A=t(86295),U=t(87718),E=new A.l("venue","query","8a96c7481b28e46ab0013e8dd91518752657bca7a31648618ae3ae3372dc34e5",null),B=t(44286),V=t(18180),Z=t(12574),T=t(79916);const z="kpMIZFDu12cMBsz4ZxlE",H="gxdwhiUmWKrrk4VLbLJw",O="bARY0skKvlL8wtcg1Y2g";var X=[r.gbI,r.hQT,r.r5P,r.t2r,r.$26,r.EoP,r.w8D,r.ka3,r.zQs,r.kTx,r.CMo,r.ARx,r.D0c,r.CZt],G=function(e){var n,t,r,j=(0,a.NC)(T.eh),C=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.g)().venueId;return"spotify:venue:".concat(e)}(),w=(n={uri:C},(0,U.I)(E,n,t)),k=w.data,S=w.loading,R=w.error,N=(0,Z.r)(i.L,{}).spec;if(S)return(0,b.jsx)(g.LoadingPage,{hasError:!1,errorMessage:""});if("NotFound"===(null==(r=null==k?void 0:k.venue)?void 0:r.__typename))return(0,b.jsx)(l.p,{title:s.Ru.get("web-player.venues.error.not_found.title"),message:s.Ru.get("web-player.venues.error.not_found.message"),renderInline:!0});if(R||!function(e){return Object.keys(null!=e?e:{}).includes("name")}(null==k?void 0:k.venue))return(0,b.jsx)(g.LoadingPage,{hasError:!0,errorMessage:s.Ru.get("web-player.venues.error.generic.title")});var M=X[(""!==k.venue.name?k.venue.name.charCodeAt(0):0)%(X.length-1)],A=k.venue.concepts.items.filter(I);return(0,b.jsxs)("section",{children:[(0,b.jsxs)(d.z,{size:d.K.SMALL,backgroundColor:M,children:[(0,b.jsx)(m.K,{renderImage:function(){return(0,b.jsx)("div",{className:H,children:(0,b.jsx)(L,{iconSize:48})})},name:k.venue.name,shape:V.u.CIRCLE,images:[]}),(0,b.jsxs)(v.Y,{children:[(0,b.jsx)(x.B,{children:s.Ru.get("web-player.venues.venue")}),(0,b.jsx)(p.mm,{children:k.venue.name}),(0,b.jsx)(u.Z,{children:[k.venue.address.city,k.venue.address.country].join(s.Ru.getSeparator())}),j&&(0,b.jsx)(u.Z,{children:(0,b.jsx)(y.I,{concepts:A,spec:N.venueConceptsFactory()})})]}),(0,b.jsx)(h.h,{children:(0,b.jsx)(f.X,{text:k.venue.name})})]}),(0,b.jsx)(o.K,{backgroundColor:M}),(0,b.jsxs)("div",{className:z,children:[(0,b.jsx)(c.w,{uri:C,sharingInfo:null,interactionData:{intent:"share",type:"click"}}),(0,b.jsx)(D,{venue:k.venue.name,address:k.venue.address}),(0,b.jsx)("div",{className:O,children:(0,b.jsx)(_,{concerts:k.venue.concerts,spec:N})})]})]})}}}]);
|
||
//# sourceMappingURL=xpui-routes-venues.js.map
|