"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[3632],{37576:(e,t,r)=>{r.d(t,{d:()=>n});var n=new(r(86295).l)("addConcertToLibrary","mutation","c4670bb9503f201cff5a61ee426a0aa93cac0eaa1c1b9b8c66d53e058f270f7c",null)},24101:(e,t,r)=>{r.d(t,{$:()=>n});var n=new(r(86295).l)("removeConcertFromLibrary","mutation","2b6a3dc45db6b423eb36c628ccb26768f2c03e75ae274e09a1701336d46dd21d",null)},65345:(e,t,r)=>{r.d(t,{$V:()=>n,Bw:()=>i,V5:()=>l,dR:()=>c,eO:()=>s,se:()=>o,w1:()=>u,ys:()=>a});r(78551),r(5672),r(82467);var n=function(e){return"data"in e&&Object.keys(e.data).length>0},a=function(e){return"concerts"in(null!=e?e:{})},o=function(e){return null!=e},c=function(e){return"__typename"in e&&"AllEvents"===e.__typename},s=function(e){return"__typename"in e},i=function(e){return!!e&&"sections"in e},u=function(e){return"__typename"in e},l=function(e){return Object.keys(e).includes("data")}},22151:(e,t,r)=>{r.r(t),r.d(t,{ConcertsCarousel:()=>I,default:()=>I});r(25550),r(15342);var n=r(30758),a=r(13534),o=r(58017),c=r(2378),s=r(92107),i=r(96992),u=(r(7651),r(30456),r(26701),r(37417),r(11737),r(51691),r(702),r(5672),r(43379),r(34192),r(88856),r(51565),r(18316),r(52542)),l=r(12072),d=r(93051),m=r(70566),f=r(60256),v=r(87106),h=r(86070);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=function(e){var t=e.artistName,r=e.artistConcertsUri,n=e.position,o=e.spec,c=(0,m.s)(),i=o.concertsCarouselFactory().allEventsCardFactory({position:n,uri:r}),u=(0,f.t)(i);return(0,h.jsx)("section",{ref:u,children:(0,h.jsx)("div",{className:v.A.cards,children:(0,h.jsx)("div",{className:v.A.allEventsCard,children:(0,h.jsxs)("div",{className:v.A.cardContent,children:[(0,h.jsx)(a.E,{as:"p",variant:"bodySmall",semanticColor:"textSubdued",className:v.A.subtitle,children:s.Ru.get("concerts_on_tour")}),(0,h.jsx)(a.E,{as:"h1",variant:"bodyMediumBold",className:v.A.title,semanticColor:"textBase",children:t}),(0,h.jsx)(d.N,{to:r,className:v.A.cardLink,onClick:function(){var e=i.hitUiNavigate({destination:r});c.logInteraction(e)},children:(0,h.jsx)(l.n,{as:"span",size:"small",className:v.A.cardButton,children:s.Ru.get("concerts_see_all_events")})})]})})})})};const p=function(e){return e.artistName&&e.artistConcertsUri?(0,h.jsx)(y,function(e){for(var t=1;t0&&(0,h.jsxs)("div",{className:v.A.concertsCarouselControls,children:[(0,h.jsx)(i.a,{size:"sm",onClick:function(){var e;null===(e=d.current)||void 0===e||e.scrollBy({left:-420,behavior:"smooth"});var t=l.concertsCarouselFactory().previousButtonFactory().hitUiReveal();f.logInteraction(t)},icon:o.g,ariaLabel:s.Ru.get("carousel.left"),tabIndex:-1,className:v.A.carouselControlPrev}),(0,h.jsx)(i.a,{size:"sm",onClick:function(){var e;null===(e=d.current)||void 0===e||e.scrollBy({left:420,behavior:"smooth"});var t=l.concertsCarouselFactory().nextButtonFactory().hitUiReveal();f.logInteraction(t)},icon:c.V,ariaLabel:s.Ru.get("carousel.right"),tabIndex:-1,className:v.A.carouselControlNext})]})]})}},62813:(e,t,r)=>{r.d(t,{Fn:()=>f,MW:()=>v,Py:()=>d,VJ:()=>m,Vi:()=>p,WB:()=>h,WZ:()=>b,Y:()=>i,dp:()=>u,l4:()=>s,m7:()=>y,tX:()=>g,tj:()=>l});var n=r(12341),a=(r(83234),r(68216),r(2823),r(4672),r(12058)),o=r(92107),c=r(65345),s=function(e){return new Date(e.substring(0,16))},i=function(e){return o.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric"})},u=function(e){return o.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"})},l=function(e){return o.Ru.formatDate(e,{month:"short"})},d=function(e){return o.Ru.formatDate(e,{day:"numeric"})},m=function(e){return o.Ru.formatDate(e,{weekday:"short"})},f=function(e){return o.Ru.formatDate(e,{month:"short",day:"numeric"})},v=function(e){return o.Ru.formatDate(e,{weekday:"short",hour:"numeric",minute:"numeric"})},h=function(e){return o.Ru.formatDate(e,{hour:"numeric",minute:"numeric"})},b=function(e,t){if(e.toDateString()===t.toDateString())return i(e);if(e.getMonth()===t.getMonth()){var r=o.Ru.formatDate(e,{day:"numeric",month:"short"}),n=o.Ru.formatDate(t,{day:"numeric"});return"".concat(r,"–").concat(n)}var a=o.Ru.formatDate(e,{day:"numeric",month:"short"}),c=o.Ru.formatDate(t,{day:"numeric",month:"short"});return"".concat(a,"–").concat(c)},y=function(e){if(!e)return!1;var t=new Date(e);return new Date>t},p=function(e){var t=(0,n.A)(e,1)[0],r=e[e.length-1];return(0,c.$V)(t)&&(0,c.$V)(r)?{startDate:s(t.data.startDateIsoString),endDate:s(r.data.startDateIsoString)}:{startDate:new Date,endDate:new Date}},j={month:"short",day:"numeric"},g=function(e){if((0,a.r)(e.from,e.to))return o.Ru.formatDate(e.from,j);var t=o.Ru.formatDate(e.from,j).replace(/ /g," "),r=o.Ru.formatDate(e.to,j).replace(/ /g," ");return"".concat(t," - ").concat(r)}}}]); //# sourceMappingURL=this-is-playlist-concerts-carousel.js.map