"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[9209],{79509:(e,t,n)=>{n.d(t,{w:()=>m});var r=n(30758),i=n(97500),a=n.n(i),o=n(43727),c=n(92107),s=n(96992),l=n(52708);const u="pvGZ831aNzHTQMZ8CA_u";var d=n(86070),m=(0,r.memo)((function(e){var t=e.onClick,n=void 0===t?function(){}:t,i=e.size,m=e.className,f=e.uri,v=e.sharingInfo,h=e.interactionData,p=e.ariaLabel,g=void 0===p?c.Ru.get("mwp.list.item.share"):p,x=e.condensedAll,j=e.placement,y=e.semanticColor,b=e.disableTooltip,_=(0,l.L)({sharingInfo:v,uri:f,interactionData:h}).onCopyLink,C=(0,r.useCallback)((function(){_(),n()}),[n,_]);return(0,d.jsx)(s.a,{ariaLabel:g,size:i,onClick:C,className:a()(u,m),icon:o.C,condensedAll:x,placement:j,condensed:!0,semanticColor:y,disableTooltip:b})}))},2185:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(30758),i=n(13758),a=n(86070),o=(0,r.memo)((function(e){var t=e.children;return(0,a.jsx)("span",{className:i.A.detailsText,children:t})}))},37089:(e,t,n)=>{n.d(t,{q:()=>l});var r=n(30758),i=n(97500),a=n.n(i),o=n(81699),c=n(91488),s=n(86070),l=r.memo(r.forwardRef((function(e,t){var n=e.html,i=e.onTimeStampClick,l=e.enableTimestamps,u=void 0!==l&&l,d=e.enableAutomaticLinkification,m=void 0!==d&&d,f=e.semanticColor,v=void 0===f?"textSubdued":f,h=e.className,p=e.asTextContent,g=void 0!==p&&p,x=(0,r.useMemo)((function(){return(0,o.v)(n,i,u,v,m,g)}),[u,m,n,i,v,g]);return(0,s.jsx)("div",{ref:t,className:a()(c.A.HTMLDescription,h),children:x})})))},81699:(e,t,n)=>{n.d(t,{v:()=>j});var r=n(52542),i=(n(7651),n(30456),n(26701),n(37417),n(11737),n(51691),n(702),n(5672),n(43379),n(19264),n(34192),n(88856),n(51565),n(18316),n(30758)),a=n(6936),o=n.n(a),c=n(13534),s=(n(34518),n(25550),n(2823),n(91281),n(4672),n(34072),n(15342),/(\((?:[0-9]{1,3}:){1,2}[0-9]{2}\))/g);n(83234),n(65594);var l=n(93051),u=n(86070),d=/((?:(?:https?:\/\/)|www\.)(?:(?:(?:[a-z\u00a1-\uffff0-9][-_]*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?:[/?#][^\s"]*)?)/gi,m=/^https?:\/\//;function f(e){return"string"==typeof e?(0,u.jsx)(u.Fragment,{children:e.split(d).map((function(e,t){return t%2?(0,u.jsx)(l.N,{to:"".concat(m.test(e)?"":"https://").concat(e),children:e},t):e}))}):e}var v=n(89687),h=n(91488);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=0,o={_:function(e,t,o){var c=void 0===t?e:o;return(0,u.jsx)(i.Fragment,{children:n&&!r?f(c):c},"fragment".concat(a++))}};return r?o:g(g({},o),{},{p:function(e){return(0,u.jsx)(c.E,{as:"p",variant:"bodyMedium",semanticColor:t,className:h.A.Paragraph,children:n?f(e.children):e.children})},a:function(t){var n;return null!==(n=t.href)&&void 0!==n&&n.startsWith("#t=")?(0,u.jsx)(v.D,{onClick:e,children:t.children}):t.href?(0,u.jsx)(l.N,{to:t.href,children:t.children}):(0,u.jsx)(u.Fragment,{children:t.children})},ul:function(e){return(0,u.jsx)("ul",{className:h.A.List,children:e.children})},ol:function(e){return(0,u.jsx)("ol",{className:h.A.List,children:e.children})},li:function(e){return(0,u.jsx)(c.E,{as:"li",variant:"bodyMedium",semanticColor:t,className:h.A.ListItem,children:n?f(e.children):e.children})},br:function(){return(0,u.jsx)("br",{})},h1:function(e){return(0,u.jsx)(c.E,{as:"h1",variant:"bodyMediumBold",semanticColor:t,className:h.A.Heading,children:e.children})},h2:function(e){return(0,u.jsx)(c.E,{as:"h2",variant:"bodyMediumBold",semanticColor:t,className:h.A.Heading,children:e.children})},h3:function(e){return(0,u.jsx)(c.E,{as:"h3",variant:"bodyMediumBold",semanticColor:t,className:h.A.Heading,children:e.children})},h4:function(e){return(0,u.jsx)(c.E,{as:"h4",variant:"bodyMediumBold",semanticColor:t,className:h.A.Heading,children:e.children})},h5:function(e){return(0,u.jsx)(c.E,{as:"h5",variant:"bodyMediumBold",semanticColor:t,className:h.A.Heading,children:e.children})},h6:function(e){return(0,u.jsx)(c.E,{as:"h6",variant:"bodyMediumBold",semanticColor:t,className:h.A.Heading,children:e.children})},time:function(t){return(0,u.jsx)(v.D,{onClick:e,children:t.children})}})},j=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"textSubdued",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?e.split(s).map((function(e){if(e.match(s)){var t=e.replace("(","").replace(")","");return"()")}return e})).join(""):e;try{t=o()(c,{transform:x(n,r,i,a),dangerouslySetChildren:[]})}catch(n){t=e}return t}},76497:(e,t,n)=>{n.d(t,{I:()=>m});var r=n(52542),i=(n(83234),n(30456),n(25550),n(47994),n(43379),n(2823),n(4672),n(46794),n(34192),n(88856),n(15342),n(44286)),a=n(83800),o=n(89255),c=n(80366),s=n(92107),l=n(65345),u=n(70566),d=n(86070),m=function(e){var t=e.concepts,n=e.spec,m=(0,i.Zp)(),f=t.filter(l.V5),v=(0,u.s)();return(0,d.jsx)("div",{style:(0,r.A)({},"--background-base","transparent"),children:(0,d.jsx)(a.I,{mode:"navigation","aria-label":s.Ru.get("card.tag.genre"),children:f.map((function(e,t){var r,i="/concerts/genre/".concat(null===(r=(0,c.o_)(e.data.uri))||void 0===r?void 0:r.id,"-").concat(e.data.name.replaceAll(" ","-"));return(0,d.jsx)(o.v,{onClick:function(r){!function(e,t,r,i){var a;e.preventDefault(),m(t);var o=null===(a=(0,c.o_)(r))||void 0===a?void 0:a.id;if(o&&n){var s=n.conceptButtonFactory({uri:r,position:i}).hitUiNavigate({destination:"spotify:concerts:genre:".concat(o)});v.logInteraction(s)}}(r,i,e.data.uri,t+1)},href:i,children:e.data.name},e.data.uri)}))})})}},62445:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(30758),i=n(90430),a=n(13534),o=n(22976),c=n(93051),s=n(62813),l=n(15566);const u="wedRUk4eiBo9n9vqXLhU",d="hMbtEskyvMbDiwq1EScA",m="HYVIJaYYiCTgSCHie70L",f="SPbe_Q1wtiZQCmo0QKUy",v="TRp4tgG7_cymGIXDevIP",h="tC1Y_nwyyly7cpIGqF5K",p="l93AfoV_qHnMQSQBB5GK",g="DgDBmSR2sbwji2UfqxIf",x="EkGb0ZzhswreSvpZoioY";var j=n(86070);const y=(0,r.memo)((function(e){var t=e.uri,n=e.title,r=e.imageUrl,y=e.date,b=e.subTitle,_=e.firstParty,C=e.onClick,N=y?(0,s.l4)(y):void 0;return(0,j.jsx)(c.N,{to:t,className:u,"data-testid":"concert-card",onClick:C,children:(0,j.jsxs)("div",{className:d,children:[(0,j.jsx)(l.b,{children:(0,j.jsx)("div",{role:"img",className:x,style:{backgroundImage:"url(".concat(r,")")},children:!r&&(0,j.jsx)(i.r,{role:"img",size:"xxlarge",semanticColor:"textSubdued"})})}),N&&(0,j.jsxs)("time",{className:m,dateTime:y,children:[(0,j.jsx)(a.E,{as:"div",variant:"bodySmall",children:(0,s.tj)(N)}),(0,j.jsx)(a.E,{as:"div",variant:"bodyMediumBold",children:(0,s.Py)(N)})]}),(0,j.jsxs)("div",{className:f,dir:"auto",children:[(0,j.jsx)(a.E,{as:"h3",variant:"bodyMedium",className:v,children:n}),(0,j.jsxs)("div",{className:h,children:[_&&(0,j.jsx)("span",{className:g,children:(0,j.jsx)(o.D,{size:"small"})}),(0,j.jsx)(a.E,{as:"span",className:p,variant:"bodySmall","data-testid":"location-name",semanticColor:"textSubdued",children:b})]})]})]})})}))},68600:(e,t,n)=>{n.d(t,{DL:()=>s,Qe:()=>l,bU:()=>d,he:()=>u,nm:()=>c});var r=n(12341),i=(n(7651),n(14551),n(9267),n(184),n(42486),n(83234),n(75380),n(86746),n(78551),n(45434),n(79024),n(34518),n(38408),n(70750),n(28430),n(68216),n(47994),n(43379),n(2823),n(65594),n(78397),n(82467),n(97460),n(4672),n(46794),n(79210),n(34192),n(80456),n(9582),n(93577),n(42534));var a=function(e,t){if(e.includes(t)){var n=e.split("/"),r=n.findIndex((function(e){return e===t}));return n[r+1]}},o=function(e,t){var n,r,i=["/concerts"];(t.location||e.includes("location")&&null!==t.location)&&(i.push("location"),i.push(String(null!==(n=t.location)&&void 0!==n?n:a(e,"location"))));(t.genre||e.includes("genre")&&null!==t.genre)&&(i.push("genre"),i.push(String(null!==(r=t.genre)&&void 0!==r?r:a(e,"genre"))));return i.join("/")},c=function(e,t,n){if(!t)return o(e,{location:null});var r=null==n?void 0:n.normalize().replaceAll(/\W+/g,"-");return o(e,r?{location:"".concat(t,"-").concat(r)}:{location:t})},s=function(e,t,n){if(!t)return o(e,{genre:null});var r=null==n?void 0:n.normalize().replaceAll(/\W+/g,"-");return o(e,r?{genre:"".concat(t,"-").concat(r)}:{genre:t})},l=function(e){if(e){var t=e.split("-"),n=(0,r.A)(t,1)[0],i=t.reduce((function(e,t,n){return 0===n?e:"".concat(e," ").concat(t)}),"").trim();return{id:"spotify:concept:".concat(n),name:i}}};var u=function(e){return e.ticketers.some((function(e){return"spotify"===e.partnerDisplayName.toLowerCase()}))},d=function(e){return(0,i.x)(e,{representation:"date"})}},37576:(e,t,n)=>{n.d(t,{d:()=>r});var r=new(n(86295).l)("addConcertToLibrary","mutation","c4670bb9503f201cff5a61ee426a0aa93cac0eaa1c1b9b8c66d53e058f270f7c",null)},24101:(e,t,n)=>{n.d(t,{$:()=>r});var r=new(n(86295).l)("removeConcertFromLibrary","mutation","2b6a3dc45db6b423eb36c628ccb26768f2c03e75ae274e09a1701336d46dd21d",null)},65345:(e,t,n)=>{n.d(t,{$V:()=>r,Bw:()=>s,V5:()=>u,dR:()=>o,eO:()=>c,se:()=>a,w1:()=>l,ys:()=>i});n(78551),n(5672),n(82467);var r=function(e){return"data"in e&&Object.keys(e.data).length>0},i=function(e){return"concerts"in(null!=e?e:{})},a=function(e){return null!=e},o=function(e){return"__typename"in e&&"AllEvents"===e.__typename},c=function(e){return"__typename"in e},s=function(e){return!!e&&"sections"in e},l=function(e){return"__typename"in e},u=function(e){return Object.keys(e).includes("data")}},54312:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Xt});n(30456),n(24302),n(25550),n(57149),n(47994),n(43379),n(34192),n(88856),n(49166),n(15342);var r=n(44286),i=n(13534),a=n(93493),o=n(15143),c=n(80366),s=n(92107),l=n(867),u=n(45625),d=n(2185),m=n(9754),f=n(33598),v=n(17067),h=n(85925),p=n(88420),g=n(44206),x=n(76497),j=n(52542),y=(n(7651),n(26701),n(60184),n(37417),n(11737),n(51691),n(702),n(5672),n(79210),n(51565),n(18316),n(30758)),b=n(31682),_=n(46496),C=n(27476),N=n(37089),S=n(93051),k=n(68600),R=n(62657),w=n(70566);const D="m8qhw073nx4vyHqaKQNk",I="ynP6muypg8KBMGNcHY5O",O="oDWtgFmvo78XypRSXSZE",A="XWKf1nJGSBaIxrSQhIft",T="nodWKfeO11pb9KDWwHMz",E="oFT4l9ImW_EmgL7n4Gpw";var M=n(86070);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t{n.d(t,{Fn:()=>f,MW:()=>v,Py:()=>d,VJ:()=>m,Vi:()=>x,WB:()=>h,WZ:()=>p,Y:()=>s,dp:()=>l,l4:()=>c,m7:()=>g,tX:()=>y,tj:()=>u});var r=n(12341),i=(n(83234),n(68216),n(2823),n(4672),n(12058)),a=n(92107),o=n(65345),c=function(e){return new Date(e.substring(0,16))},s=function(e){return a.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric"})},l=function(e){return a.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})},u=function(e){return a.Ru.formatDate(e,{month:"short"})},d=function(e){return a.Ru.formatDate(e,{day:"numeric"})},m=function(e){return a.Ru.formatDate(e,{weekday:"short"})},f=function(e){return a.Ru.formatDate(e,{month:"short",day:"numeric"})},v=function(e){return a.Ru.formatDate(e,{weekday:"short",hour:"numeric",minute:"numeric"})},h=function(e){return a.Ru.formatDate(e,{hour:"numeric",minute:"numeric"})},p=function(e,t){if(e.toDateString()===t.toDateString())return s(e);if(e.getMonth()===t.getMonth()){var n=a.Ru.formatDate(e,{day:"numeric",month:"short"}),r=a.Ru.formatDate(t,{day:"numeric"});return"".concat(n,"–").concat(r)}var i=a.Ru.formatDate(e,{day:"numeric",month:"short"}),o=a.Ru.formatDate(t,{day:"numeric",month:"short"});return"".concat(i,"–").concat(o)},g=function(e){if(!e)return!1;var t=new Date(e);return new Date>t},x=function(e){var t=(0,r.A)(e,1)[0],n=e[e.length-1];return(0,o.$V)(t)&&(0,o.$V)(n)?{startDate:c(t.data.startDateIsoString),endDate:c(n.data.startDateIsoString)}:{startDate:new Date,endDate:new Date}},j={month:"short",day:"numeric"},y=function(e){if((0,i.r)(e.from,e.to))return a.Ru.formatDate(e.from,j);var t=a.Ru.formatDate(e.from,j).replace(/ /g," "),n=a.Ru.formatDate(e.to,j).replace(/ /g," ");return"".concat(t," - ").concat(n)}},62657:(e,t,n)=>{n.d(t,{Ac:()=>c,a9:()=>s,i3:()=>d,im:()=>u,re:()=>l,tI:()=>a});var r=n(85093),i=(n(83234),n(30456),n(34518),n(25550),n(47994),n(43379),n(34192),n(88856),n(15342),n(92107)),a=function(e,t,n){return!!e&&(t||!n.length)},o=function(e){return e.artists.map((function(e){return e.name}))},c=function(e){return 1===e.length?i.Ru.get.apply(i.Ru,["concert.header.upcoming_concert_title_1"].concat((0,r.A)(e))):2===e.length?i.Ru.get.apply(i.Ru,["concert.header.upcoming_concert_title_2"].concat((0,r.A)(e))):3===e.length?i.Ru.get.apply(i.Ru,["concert.header.upcoming_concert_title_3"].concat((0,r.A)(e))):4===e.length?i.Ru.get.apply(i.Ru,["concert.header.upcoming_concert_title_4"].concat((0,r.A)(e))):e.length>4?i.Ru.get.apply(i.Ru,["concert.header.upcoming_concert_title_more"].concat((0,r.A)(e))):""},s=function(e){var t=o(e);return a(e.title,e.festival,t)?e.title:c(t)},l=function(e){return 1===e.length?i.Ru.get.apply(i.Ru,["concert.header.entity_title_1"].concat((0,r.A)(e))):2===e.length?i.Ru.get.apply(i.Ru,["concert.header.entity_title_2"].concat((0,r.A)(e))):3===e.length?i.Ru.get.apply(i.Ru,["concert.header.entity_title_3"].concat((0,r.A)(e))):4===e.length?i.Ru.get.apply(i.Ru,["concert.header.entity_title_4"].concat((0,r.A)(e))):e.length>4?i.Ru.get.apply(i.Ru,["concert.header.entity_title_more"].concat((0,r.A)(e))):""},u=function(e){return[e.name,e.city,e.region,e.country].filter((function(e){return!!e&&"unknown"!==e.toLowerCase()})).join(i.Ru.getSeparator())},d=function(e){if(!e.artists||0===e.artists.items.length)return e.title;if(e.festival)return e.title;var t=e.artists.items.map((function(e){return e.profile.name}));return l(t)}},14546:(e,t,n)=>{n.d(t,{f:()=>c,z:()=>o});var r=n(30758),i=n(23100),a=n(19424);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l0o,n=(0,a.as)();return(0,r.useEffect)((function(){return e&&n((0,a.Mo)(e)),function(){n((0,a.Hf)())}}),[e,n]),e||t}var c=function(e){return o(e.color,e.fallbackColor),null}},608:(e,t,n)=>{n.d(t,{gq:()=>c,K9:()=>o,zV:()=>s});n(83234),n(70750),n(68216);var r=n(92107),i=function(e){return r.Ru.formatDate(e,{year:"numeric",month:"numeric",day:"numeric"})},a=function(e){return r.Ru.formatDate(e,{hour:"numeric",minute:"numeric"})},o=function(e,t,n,o){if(!e)return"";if(e&&t&&n&&o){var c=i(o),s=a(o);return r.Ru.get("concert.entity_metadata.title_with_date_and_time",e,t,n,c,s)}return r.Ru.get("concert.entity_metadata.title",e,t,n)},c=function(e){if(!e)return"";var t=(new Date).getFullYear();return"".concat(e," Tickets - ").concat(t," Concert Tour Dates | Spotify")},s=function(e){return"Concert Tickets & Tour Dates for you".concat(e?" in ".concat(e):""," | Spotify")}},91488:(e,t,n)=>{n.d(t,{A:()=>r});const r={Heading:"playlist-playlist-heading",HTMLDescription:"playlist-playlist-playlistDescription",List:"playlist-playlist-list",ListItem:"playlist-playlist-listItem",Paragraph:"playlist-playlist-paragraph"}}}]); //# sourceMappingURL=xpui-routes-concert.js.map