-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8024.js
1 lines (1 loc) · 18.1 KB
/
8024.js
1
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[8024],{74918:(e,t,n)=>{n.d(t,{B:()=>C});var a=n(30758),o=n(1648),r=n(13505),i=n(93492),c=n(92907),s=n(30848),l=n(36776),d=n(61894),u=n(60452),m=n(12367),h=n(26630),g=n(34855),x=n(5119),f=n(46775),j=n(59829),v=n(28019),y=n(86070);const b=(e,t)=>(n,a)=>{a&&e.logInteraction(t.cardLinkFactory({position:0}).hitUiNavigate({destination:a}))},C=({name:e,uri:t,images:n,description:C,authorName:p,authorUri:R,isHero:k=!1,onClick:N=()=>{},testId:w,index:_,requestId:I,color:D,isPlayable:L,variant:S,logCardImpressions:M=!1,leaveTitleVisible:F})=>{let E,B=(0,y.jsx)(h.W,{uri:t}),Z=L,T=!1;const A=R||"",H=(0,a.useCallback)((()=>{N?.(A)}),[N,A]);(0,j.c0)(t)&&(Z=!0,B=(0,y.jsx)(f.gb,{}),T=!0);const U=F||!("spotify:user:spotify"===R);return E=k?(0,y.jsx)(d.A,{index:_,onClick:N,headerText:e,featureIdentifier:"playlist",uri:t,isDownloadable:!0,playInsteadOfNavigating:T,renderCardImage:()=>(0,y.jsx)(s.M,{isHero:!0,images:n,color:D,FallbackComponent:e=>(0,y.jsx)(o.e,{size:"xxlarge",...e})}),renderSubHeaderContent:(e,t)=>(0,y.jsxs)(l.c,{isHero:!0,children:[(0,y.jsx)(u.t,{children:i.Ru.get("card.tag.playlist")}),C?(0,y.jsx)(v.N,{source:C,LinkComponent:x.N,onLinkClick:b(e,t)}):p&&R&&(0,y.jsx)(m.h,{menu:(0,y.jsx)(g.B,{uri:A}),children:(0,y.jsx)(r.E,{variant:"bodySmall",children:(0,y.jsx)(x.N,{to:A,onClick:H,children:p})})})]}),testId:w,requestId:I,isPlayable:Z,logCardImpressions:M}):(0,y.jsx)(c.Z,{variant:S,index:_,onClick:N,headerText:e,featureIdentifier:"playlist",uri:t,isDownloadable:!0,playInsteadOfNavigating:T,renderCardImage:()=>(0,y.jsx)(s.M,{images:n,color:D,FallbackComponent:e=>(0,y.jsx)(o.e,{size:"xxlarge",...e})}),renderSubHeaderContent:(e,t)=>(0,y.jsx)(l.c,{children:C?(0,y.jsx)(v.N,{source:C,LinkComponent:x.N,onLinkClick:b(e,t)}):p&&(0,y.jsx)("span",{children:i.Ru.get("search.playlist-by",p)})}),testId:w,requestId:I,isPlayable:Z,logCardImpressions:M,showTitle:U}),(0,y.jsx)(m.h,{menu:B,children:E})}},19549:(e,t,n)=>{n.d(t,{w:()=>i});var a=n(30758),o=n(62187),r=n(82362);const i=({seeAllUri:e,index:t,id:n})=>{const{spec:i,logger:c}=(0,r.r)(o.f,{data:{identifier:n,position:t,uri:e??""}}),s=(0,a.useCallback)((()=>{const e=i.swipeUiReveal();c.logInteraction(e)}),[c,i]),l=(0,a.useCallback)((e=>{const t=i.shelfHeaderFactory().shelfCarouselControlsFactory(),n="next"===e?t.shelfCarouselControlsNextFactory():t.shelfCarouselControlsPreviousFactory();c.logInteraction(n.hitUiReveal())}),[c,i]);return{onClickShelfTitle:(0,a.useCallback)((()=>{const t=i.shelfHeaderFactory().shelfHeaderTitleFactory().hitUiNavigate({destination:e??""});c.logInteraction(t)}),[c,e,i]),onClickShelfSeeAll:(0,a.useCallback)((()=>{const t=i.shelfHeaderFactory().shelfHeaderSeeAllFactory().hitUiNavigate({destination:e??""});c.logInteraction(t)}),[c,e,i]),onSwipe:s,onClickCarouselControls:l,spec:i}}},58101:(e,t,n)=>{n.d(t,{A:()=>ve});var a=n(30758),o=n(62411),r=n(21974),i=n(43871),c=n(27508),s=n(555),l=n(3118),d=n(93492),u=n(61e3),m=n(14259),h=n(81878),g=n(13505),x=n(74392),f=n(66758),j=n(93028),v=n(71353);const y=["Escape","ArrowDown","ArrowUp","Tab"],b=e=>y.includes(e);var C=n(44947),p=n(49810);const R=new C.l("searchConcertLocations","query","43ededefcba8b3f519fd0c2d6c025dfeec9f742cf47d04a3c3711d95b27deda3",null);var k=n(13867),N=n(72288);const w="pdkMNbSQl8Yi5tl0iOF9",_="lbKmnVjXCdZ3kRBxjKQZ",I="VAJ54U4IyPKmKRWXweMn",D="r3oh3bOf2I7DZQEND5Uz",L="XwomR4z9c60ph1tYBcdm",S="bQATTxDxEbS7xXRsr_Mt",M="wFdZQwoko8rVRTLeFG5G",F="jcDbJiJUoAVWZ7h1Rhhy",E="UkSUgC7NQnYbptBJEAM9",B="xfncDja0wZotJaVS3aq9",Z="gJedMi0s8_RQ4d2aWYzI";var T=n(86070);const A=({onCancel:e,onChange:t,onBack:n,title:o,children:r})=>{const[i,s]=(0,N.x)("recent-locations",[]),[l,y]=(0,a.useState)(""),C=(0,k.W)(),A=(0,a.useRef)(null),H=(0,a.useRef)(null),U=(0,a.useRef)(-1),{data:O}=(V={query:l},(0,p.I)(R,V,q));var V,q;const z=(e=>"items"in(e?.concertLocations??{}))(O)?O.concertLocations.items:[];return(0,T.jsx)("div",{onKeyDown:e=>{const t=e.key;if(!b(t))return;e.preventDefault();const n=((e,t,n)=>{switch(n){case"ArrowDown":case"Tab":return Math.min(e+1,t);case"ArrowUp":return Math.max(e-1,-1);default:return e}})(U?.current??-1,z.length,t),a=A.current?.childNodes[n]?.firstChild;n>=0&&a instanceof HTMLButtonElement&&a.focus(),-1===n&&H.current?.focus(),U.current=n},"data-interaction-context":"location-selector",children:(0,T.jsx)(v.A,{isOpen:!0,onRequestClose:e,children:(0,T.jsxs)("section",{className:w,children:[n&&(0,T.jsx)("div",{className:D,children:(0,T.jsx)(u.H,{iconOnly:C?m.V:h.g,size:"small",onClick:n,"aria-label":d.Ru.get("navbar.go-back")})}),(0,T.jsx)("div",{className:I,children:(0,T.jsx)(u.H,{iconOnly:c.M,size:"small",onClick:e,"aria-label":d.Ru.get("close")})}),(0,T.jsxs)("div",{className:_,children:[(0,T.jsxs)("div",{className:L,children:[(0,T.jsx)(g.E,{as:"h3",variant:"bodyMediumBold",children:o??d.Ru.get("concert.location.search.header")}),(0,T.jsx)(x.E,{iconLeading:(0,T.jsx)(f.C,{}),children:(0,T.jsx)(j.Z,{placeholder:d.Ru.get("concert.location.search.placeholder"),onChange:e=>y(e.currentTarget.value),value:l,ref:H,autoFocus:!0})})]}),!l&&(0,T.jsx)(T.Fragment,{children:r}),l&&O?.concertLocations&&0===z.length&&(0,T.jsx)(g.E,{as:"p",variant:"bodyMedium",children:d.Ru.get("concert.error.no_locations_found_subtitle")}),l&&(0,T.jsx)("ol",{className:S,ref:A,children:z.map(((e,n)=>(0,T.jsx)("li",{children:(0,T.jsx)("button",{tabIndex:n+1,className:B,onClick:()=>{const n={geonameId:Number(e.geonameId),name:e.name,country:e.country,geohash:e.geoHash,fullName:e.fullName};i.find((e=>e.geonameId===n.geonameId))||s([...i,n]),t(n)},children:e.fullName})},e.geonameId)))}),!!i?.length&&!l&&(0,T.jsxs)("div",{className:M,children:[(0,T.jsx)("div",{className:F,children:(0,T.jsx)(g.E,{as:"h3",variant:"bodyMediumBold",children:d.Ru.get("concert.location.search.recent")})}),(0,T.jsx)("ol",{children:i.map(((e,n)=>(0,T.jsxs)("li",{className:E,children:[(0,T.jsx)("button",{tabIndex:n+1,className:B,onClick:()=>t({geonameId:Number(e.geonameId),name:e.name,country:e.country,geohash:e.geohash}),children:(0,T.jsx)("div",{className:Z,children:e.fullName??[e.name,e.country].join(d.Ru.getSeparator())})}),(0,T.jsx)(u.H,{"aria-label":d.Ru.get("remove"),iconOnly:c.M,size:"small",onClick:t=>{t.stopPropagation(),s(i.filter((t=>t.geonameId!==e.geonameId)))}})]},e.geonameId)))})]})]})]})})})};var H=n(87732);const U=new C.l("saveLocation","mutation","5502351e9f201ae29014ca55d3b24b755ba261a1a9eb35fb498cb4c7df419353",null);var O=n(26906);const V="WZzy7tMC5xlIMwoZ32JU",q="LkdC_QJiLoD0OTOWnkJV",z="WqruN54NvYqlA2XlTJ0Z",W="GS4yLEr0XMj8kw2iMAd8",P="prICvcudVq_SL6dqkZBw",J="YLM_DWbpYGBpvqtDEhum",$="h8jjXJERT64OZi2sHCbi",G=(e,t)=>e(U,{geonameId:t}),K=({onCancel:e,onSave:t,location:n,storeConcertLocation:o=G})=>{const[r,l]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),{getGraphQLLoader:g}=(0,O.mv)(),x=g();return(0,T.jsx)("div",{onKeyDown:t=>{const n=t.key;b(n)&&"Escape"===n&&e()},"data-interaction-context":"location-selector",children:(0,T.jsx)(v.A,{isOpen:!0,onRequestClose:e,children:(0,T.jsxs)("section",{className:V,children:[(0,T.jsx)("div",{className:z,children:(0,T.jsx)(u.H,{iconOnly:c.M,size:"medium",onClick:e,"aria-label":d.Ru.get("close")})}),(0,T.jsxs)("div",{className:q,children:[(0,T.jsx)("div",{className:W,children:(0,T.jsx)(H.Z,{variant:"celloCanon",children:d.Ru.get("concerts.location.change.confirm",n.name)})}),(0,T.jsx)("div",{className:P,children:(0,T.jsx)(i.t,{size:"xlarge"})}),(0,T.jsx)("div",{className:J,children:(0,T.jsx)(H.Z,{semanticColor:"textSubdued",children:d.Ru.get("concerts.location.change.info")})}),(0,T.jsx)(s.$,{onClick:async()=>{l(!0),h(!1);try{const a=await o(x,String(n.geonameId));if(e=a?.data?.storeUserLocation,void 0===e||!("success"in e)||!0!==e.success)throw Error();t()}catch{h(!0),l(!1)}var e},disabled:r,children:d.Ru.get("concerts.location.change.button")}),m&&(0,T.jsx)("div",{className:$,children:(0,T.jsx)(H.Z,{semanticColor:"textWarning",children:d.Ru.get("concerts.location.change.error")})})]})]})})})};var Q=n(98929),X=n(58885);const Y=()=>(0,T.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)("path",{d:"M6.94875 9.48555V14.9935C6.94875 15.5494 7.42943 16 8.02239 16C8.42905 16 8.80081 15.7846 8.98268 15.4436L15.6347 2.9711L15.9539 2.07322C16.1803 1.43663 15.5343 0.830999 14.8552 1.0432L13.8975 1.34249L0.593494 7.57874C0.229762 7.74924 0 8.09776 0 8.47901C0 9.03491 0.480685 9.48555 1.07364 9.48555H6.94875Z",fill:"currentColor"})}),ee=new C.l("concertLocationsByLatLon","query","8a059d072a17a1199feb21fe846271f1680eda87010c832852ced0c55c6c7c96",null);var te=n(11663),ne=n(81652),ae=n(39876);const oe="LUZuAtOgmXbneOoxnP8P",re="dIOLAcD26GH01pNjZHBL",ie="tXNcvSNL8Kx6wKUOej2I",ce="XZ1RzeF1kz6ch8idhAAD",se="GQeQjsi5dPF4PFO7BzvL",le=e=>{const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(!1),i=(()=>{const e=ee,{name:t,sha256Hash:n}=e,o=(0,Q.jE)(),{request:r}=(0,a.useContext)(te.j);return a=>o.ensureQueryData({queryFn:()=>(0,ne.c)(r,e,a),queryKey:[t,a,n]})})(),c=(0,ae.t)(e.spec);return(0,T.jsxs)(T.Fragment,{children:[t&&(0,T.jsx)("div",{children:d.Ru.get("concert.location.search.current_location.error")}),(0,T.jsx)("button",{ref:c,className:ie,onClick:async()=>{r(!0),e.getCurrentPosition((async t=>{const a=await i({lat:t.coords.latitude,lon:t.coords.longitude});if(o=a?.data?.concertLocations,void 0===o||!("items"in o))return r(!1),n(!0);var o;const[c]=a.data.concertLocations.items;return e.onChange({geonameId:Number(c.geonameId),name:c.name})}))},children:(0,T.jsx)(g.E,{semanticColor:"textSubdued",className:se,children:o?(0,T.jsx)(X.U,{}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Y,{})," ",d.Ru.get("concert.location.search.current_location")]})})})]})},de=new C.l("userLocation","query","079939378ca79b67c6d047be9152ea940d21f10bbfa2f5d4cf4d8320d87774c2",null),ue=(e,t)=>(0,p.I)(de,e,t),me="Hj5kpRfIocJic5jcxsW_",he="aJduGcVsoCwJvV1jVqjl",ge=({onClick:e})=>{const{data:t}=ue({});return t?(0,T.jsxs)("div",{className:me,children:[(0,T.jsxs)("div",{className:he,children:[(0,T.jsx)(i.t,{size:"small"}),(0,T.jsxs)("div",{children:[(0,T.jsx)(H.Z,{as:"div",semanticColor:"textPositive",variant:"ballad",children:t.me?.profile?.location?.name}),(0,T.jsx)(H.Z,{as:"div",semanticColor:"textSubdued",children:d.Ru.get("concerts.location.preferred")})]}),(0,T.jsx)(r.n,{onClick:e,size:"small",children:d.Ru.get("concerts.location.change")})]}),(0,T.jsx)(H.Z,{semanticColor:"textSubdued",variant:"finale",children:d.Ru.get("concerts.location.preferred.info")})]}):null};var xe=n(90630),fe=n(98962),je=n(99802);const ve=e=>{const{isAnonymous:t}=(0,o.d4)(fe.Ht),{data:n,invalidate:u}=ue({}),m=n?.me?.profile?.location,[h,g]=(0,a.useState)(),{handleLocationChange:x,locationStr:f,headerSpec:j}=e,[v,y]=(0,a.useState)(e.isDialogDefaultOpen??!1),[b,C]=(0,a.useState)(e.dialog??"browse"),[p,R]=(0,a.useState)();(0,a.useEffect)((()=>{h||g(m?.name)}),[m?.name,g,h]);const k=(0,a.useMemo)((()=>j?.changeLocationButtonFactory()),[j]),N=(0,a.useMemo)((()=>j?.changeLocationUiFactory({identifier:f})),[j,f]),w=(0,a.useMemo)((()=>N&&"currentLocationButtonFactory"in N?N?.currentLocationButtonFactory():void 0),[N]),_=(0,je.s)(),I=(0,l.NC)(xe.tE2),D=()=>{k&&!v&&_.logInteraction(k.hitUiReveal()),y(!v)},L=()=>{y(!1),C(e.dialog??"browse"),R(void 0)},S=e=>{x(e),L()},M=void 0!==h&&e.locationStr!==d.Ru.get("concerts.default_location")&&h!==e.locationStr;h!==m?.name&&e.locationStr===m?.name&&g(m.name);const F=M?(0,T.jsxs)("div",{className:re,children:[m&&(0,T.jsx)(r.n,{size:"small",iconOnly:c.M,"aria-label":d.Ru.get("close"),onClick:()=>x({geonameId:Number(m.geonameId),name:m.name})}),(0,T.jsx)(s.$,{size:"small",iconTrailing:c.M,onClick:()=>y(!0),className:ce,children:f})]}):(0,T.jsx)(r.n,{iconLeading:i.t,onClick:D,size:"small",className:ce,children:f}),E=e.action?(0,a.cloneElement)(e.action,{onClick:D}):F;return(0,T.jsxs)("div",{className:oe,children:[E,v&&"browse"===b&&(0,T.jsx)(A,{title:d.Ru.get("concert.location.search.header"),onChange:S,onCancel:L,spec:N,children:!t&&(0,T.jsx)(ge,{onClick:()=>C("preferred")})}),v&&"preferred"===b&&(0,T.jsx)(A,{title:d.Ru.get("concerts.location.preferred"),onChange:e=>{C("confirm"),R(e)},onCancel:L,onBack:e.dialog?void 0:()=>C("browse"),spec:N,children:I&&"geolocation"in navigator&&(0,T.jsx)(le,{spec:w,getCurrentPosition:navigator.geolocation.getCurrentPosition.bind(navigator.geolocation),onChange:e=>{w?.hitUiReveal(),C("confirm"),R(e)}})}),v&&"confirm"===b&&p&&(0,T.jsx)(K,{location:p,onCancel:L,onSave:async()=>{g(void 0),await u(),S(p)}})]})}},9308:(e,t,n)=>{n.d(t,{k:()=>x});var a=n(13505),o=n(555),r=n(62470),i=n(93492),c=n(58101),s=n(44947),l=n(49810);const d=new s.l("inferredUserLocation","query","5db4c507ea735d2a1f37bd1166eca2c1a0e3387bb875ebca5d6031b6eccceeba",null);var u=n(39876),m=n(82362);const h="g8vV54lx3mRkeseb5Bf2";var g=n(86070);const x=e=>{const{data:t}=(n={},(0,l.I)(d,n,s));var n,s;const{spec:x}=(0,m.r)(r.F,{}),f=(0,u.t)(x);return t&&t.me?.profile?.location?.isInferred?(0,g.jsxs)("div",{className:h,ref:f,children:[(0,g.jsx)(a.E,{as:"h2",variant:"titleSmall",semanticColor:"textBase",children:i.Ru.get("concert.feed.set_location")}),(0,g.jsx)(a.E,{paddingBottom:"tighter-2",children:i.Ru.get("concert.feed.set_location_description")}),(0,g.jsx)(c.A,{locationStr:"london",dialog:"preferred",headerSpec:x,handleLocationChange:e.onLocationChange,action:(0,g.jsx)(o.$,{children:i.Ru.get("concert.feed.set_location_button")})})]}):null}},59013:(e,t,n)=>{n.d(t,{A:()=>j});var a=n(30758),o=n(13505),r=n(46489),i=n(5119),c=n(69249);const s="D_V60ibMxH9Vy7kyvWvc",l="anRK1X9LKn5HxZQJB5Tl",d="shUifmqVle_F5ILRpCqe",u="_WibGTg4OzGdsTf18zK1",m="LHhL2094jqvK0MNwlGAu",h="yRQGIh3Y05BG51IHUW2b",g="fT86P9Div4C8GXI9hZ36",x="G8sU0RZZT_ZhaEv7B26V";var f=n(86070);const j=(0,a.memo)((({date:e,image:t,title:n,subTitle:a,dateRange:j,uri:v,onClick:y})=>{const b=e?(0,c.l4)(e):void 0;return(0,f.jsxs)(i.N,{to:v,className:s,"data-testid":"concert-row",onClick:y,children:[(0,f.jsx)("time",{dateTime:e,className:l,children:b&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(o.E,{as:"div",variant:"bodySmall",children:(0,c.tj)(b)}),(0,f.jsx)(o.E,{variant:"bodyMediumBold",children:(0,c.Py)(b)})]})}),t?(0,f.jsx)(r._,{src:t,alt:"",role:"presentation",className:d}):(0,f.jsx)("div",{className:d}),(0,f.jsxs)("div",{className:m,children:[(0,f.jsxs)("div",{className:h,children:[(0,f.jsx)(o.E,{variant:"bodyMedium",className:u,children:n}),(0,f.jsx)(o.E,{variant:"bodySmall","data-testid":"event-venue",semanticColor:"textSubdued",children:a})]}),(0,f.jsx)(o.E,{as:"span",variant:"bodyMedium",semanticColor:"textSubdued",className:g,children:j}),(0,f.jsx)("div",{className:x,children:b&&(0,f.jsx)(o.E,{variant:"bodyMedium",semanticColor:"textSubdued",children:(0,c.WB)(b)})})]})]})}))},19469:(e,t,n)=>{n.d(t,{$V:()=>a,Bw:()=>l,Lw:()=>s,V5:()=>u,dR:()=>i,eO:()=>c,m4:()=>m,se:()=>r,w1:()=>d,ys:()=>o});const a=e=>"data"in e&&Object.keys(e.data).length>0,o=e=>"concerts"in(e??{}),r=e=>null!=e,i=e=>"__typename"in e&&"AllEvents"===e.__typename,c=e=>"__typename"in e,s=e=>"__typename"in e,l=e=>!!e&&"sections"in e,d=e=>"__typename"in e,u=e=>Object.keys(e).includes("data"),m=e=>void 0!==e&&Object.keys(e).includes("uri")},69249:(e,t,n)=>{n.d(t,{Fn:()=>m,MW:()=>h,Py:()=>d,VJ:()=>u,Vi:()=>j,WB:()=>g,WZ:()=>x,Y:()=>c,dp:()=>s,l4:()=>i,m7:()=>f,tX:()=>y,tj:()=>l});var a=n(12058),o=n(93492),r=n(19469);const i=e=>new Date(e.substring(0,16)),c=e=>o.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric"}),s=e=>o.Ru.formatDate(e,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}),l=e=>o.Ru.formatDate(e,{month:"short"}),d=e=>o.Ru.formatDate(e,{day:"numeric"}),u=e=>o.Ru.formatDate(e,{weekday:"short"}),m=e=>o.Ru.formatDate(e,{month:"short",day:"numeric"}),h=e=>o.Ru.formatDate(e,{weekday:"short",hour:"numeric",minute:"numeric"}),g=e=>o.Ru.formatDate(e,{hour:"numeric",minute:"numeric"}),x=(e,t)=>{if(e.toDateString()===t.toDateString())return c(e);if(e.getMonth()===t.getMonth()){return`${o.Ru.formatDate(e,{day:"numeric",month:"short"})}–${o.Ru.formatDate(t,{day:"numeric"})}`}return`${o.Ru.formatDate(e,{day:"numeric",month:"short"})}–${o.Ru.formatDate(t,{day:"numeric",month:"short"})}`},f=e=>{if(!e)return!1;const t=new Date(e);return new Date>t},j=e=>{const[t]=e,n=e[e.length-1];return(0,r.$V)(t)&&(0,r.$V)(n)?{startDate:i(t.data.startDateIsoString),endDate:i(n.data.startDateIsoString)}:{startDate:new Date,endDate:new Date}},v={month:"short",day:"numeric"},y=e=>{if((0,a.r)(e.from,e.to))return o.Ru.formatDate(e.from,v);return`${o.Ru.formatDate(e.from,v).replace(/ /g," ")} - ${o.Ru.formatDate(e.to,v).replace(/ /g," ")}`}},17381:(e,t,n)=>{n.d(t,{Ac:()=>r,a9:()=>i,i3:()=>l,im:()=>s,re:()=>c,tI:()=>o});var a=n(93492);const o=(e,t,n)=>!!e&&(t||!n.length),r=e=>1===e.length?a.Ru.get("concert.header.upcoming_concert_title_1",...e):2===e.length?a.Ru.get("concert.header.upcoming_concert_title_2",...e):3===e.length?a.Ru.get("concert.header.upcoming_concert_title_3",...e):4===e.length?a.Ru.get("concert.header.upcoming_concert_title_4",...e):e.length>4?a.Ru.get("concert.header.upcoming_concert_title_more",...e):"",i=e=>{const t=(e=>e.artists.map((e=>e.name)))(e);return o(e.title,e.festival,t)?e.title:r(t)},c=e=>1===e.length?a.Ru.get("concert.header.entity_title_1",...e):2===e.length?a.Ru.get("concert.header.entity_title_2",...e):3===e.length?a.Ru.get("concert.header.entity_title_3",...e):4===e.length?a.Ru.get("concert.header.entity_title_4",...e):e.length>4?a.Ru.get("concert.header.entity_title_more",...e):"",s=({name:e,city:t,region:n,country:o})=>[e,t,n,o].filter((e=>!!e&&"unknown"!==e.toLowerCase())).join(a.Ru.getSeparator()),l=e=>{if(!e.artists||0===e.artists.items.length)return e.title;if(e.festival)return e.title;const t=e.artists.items.map((e=>e.profile.name));return c(t)}},58053:(e,t,n)=>{n.d(t,{K9:()=>r,gq:()=>i,zV:()=>c});const a=(e,t)=>t.formatDate(e,{year:"numeric",month:"numeric",day:"numeric"}),o=(e,t)=>t.formatDate(e,{hour:"numeric",minute:"numeric"}),r=(e,t,n,r,i)=>{if(!e||!i)return"";if(e&&t&&n&&r){const c=a(r,i),s=o(r,i);return i.get("concert.entity_metadata.title_with_date_and_time",e,t,n,c,s)}return i.get("concert.entity_metadata.title",e,t,n)},i=e=>{if(!e)return"";return`${e} Tickets - ${(new Date).getFullYear()} Concert Tour Dates | Spotify`},c=e=>`Concert Tickets & Tour Dates for you${e?` in ${e}`:""} | Spotify`}}]);