mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
19 KiB
JavaScript
Executable File
2 lines
19 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[7174],{61521:(e,n,t)=>{t.d(n,{A:()=>Ce});var r=t(62822),a=t(12341),o=t(93091),c=t.n(o),i=(t(65050),t(47994),t(76588),t(30758)),l=t(88677),u=t(12072),s=t(31682),d=t(64399),m=t(11854),f=t(93493),h=t(92107),v=t(85093),g=(t(83234),t(30456),t(40065),t(34518),t(25550),t(43379),t(34192),t(88856),t(4865),t(15342),t(2648)),x=t(2378),p=t(58017),j=t(13534),y=t(57973),b=t(96027),R=t(74901),C=t(47540),w=(t(78551),["Escape","ArrowDown","ArrowUp","Tab"]),_=function(e){return w.includes(e)},N=t(86295),k=t(87718),D=new N.l("searchConcertLocations","query","43ededefcba8b3f519fd0c2d6c025dfeec9f742cf47d04a3c3711d95b27deda3",null),A=t(69583),L=t(34300);const S="pdkMNbSQl8Yi5tl0iOF9",I="lbKmnVjXCdZ3kRBxjKQZ",M="VAJ54U4IyPKmKRWXweMn",E="r3oh3bOf2I7DZQEND5Uz",Z="XwomR4z9c60ph1tYBcdm",B="bQATTxDxEbS7xXRsr_Mt",V="wFdZQwoko8rVRTLeFG5G",O="jcDbJiJUoAVWZ7h1Rhhy",T="UkSUgC7NQnYbptBJEAM9",q="xfncDja0wZotJaVS3aq9",z="gJedMi0s8_RQ4d2aWYzI";var F=t(86070);const U=function(e){var n,t,r=e.onCancel,o=e.onChange,c=e.onBack,l=e.title,u=e.children,s=(0,L.x)("recent-locations",[]),m=(0,a.A)(s,2),f=m[0],w=m[1],N=(0,i.useState)(""),U=(0,a.A)(N,2),H=U[0],W=U[1],J=(0,A.W)(),G=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(-1),P=(n={query:H},(0,k.I)(D,n,t)).data,X=function(e){var n;return"items"in(null!==(n=null==e?void 0:e.concertLocations)&&void 0!==n?n:{})}(P)?P.concertLocations.items:[];return(0,F.jsx)("div",{onKeyDown:function(e){var n,t,r=e.key;if(_(r)){e.preventDefault();var a,o=function(e,n,t){switch(t){case"ArrowDown":case"Tab":return Math.min(e+1,n);case"ArrowUp":return Math.max(e-1,-1);default:return e}}(null!==(n=null==Q?void 0:Q.current)&&void 0!==n?n:-1,X.length,r),c=null===(t=G.current)||void 0===t||null===(t=t.childNodes[o])||void 0===t?void 0:t.firstChild;if(o>=0&&c instanceof HTMLButtonElement&&c.focus(),-1===o)null===(a=K.current)||void 0===a||a.focus();Q.current=o}},"data-interaction-context":"location-selector",children:(0,F.jsx)(C.A,{isOpen:!0,onRequestClose:r,children:(0,F.jsxs)("section",{className:S,children:[c&&(0,F.jsx)("div",{className:E,children:(0,F.jsx)(g.H,{iconOnly:J?x.V:p.g,size:"small",onClick:c,"aria-label":h.Ru.get("navbar.go-back")})}),(0,F.jsx)("div",{className:M,children:(0,F.jsx)(g.H,{iconOnly:d.M,size:"small",onClick:r,"aria-label":h.Ru.get("close")})}),(0,F.jsxs)("div",{className:I,children:[(0,F.jsxs)("div",{className:Z,children:[(0,F.jsx)(j.E,{as:"h3",variant:"bodyMediumBold",children:null!=l?l:h.Ru.get("concert.location.search.header")}),(0,F.jsx)(y.E,{iconLeading:(0,F.jsx)(b.C,{}),children:(0,F.jsx)(R.Z,{placeholder:h.Ru.get("concert.location.search.placeholder"),onChange:function(e){return W(e.currentTarget.value)},value:H,ref:K,autoFocus:!0})})]}),!H&&(0,F.jsx)(F.Fragment,{children:u}),H&&(null==P?void 0:P.concertLocations)&&0===X.length&&(0,F.jsx)(j.E,{as:"p",variant:"bodyMedium",children:h.Ru.get("concert.error.no_locations_found_subtitle")}),H&&(0,F.jsx)("ol",{className:B,ref:G,children:X.map((function(e,n){return(0,F.jsx)("li",{children:(0,F.jsx)("button",{tabIndex:n+1,className:q,onClick:function(){var n={geonameId:Number(e.geonameId),name:e.name,country:e.country,geohash:e.geoHash,fullName:e.fullName};f.find((function(e){return e.geonameId===n.geonameId}))||w([].concat((0,v.A)(f),[n])),o(n)},children:e.fullName})},e.geonameId)}))}),!(null==f||!f.length)&&!H&&(0,F.jsxs)("div",{className:V,children:[(0,F.jsx)("div",{className:O,children:(0,F.jsx)(j.E,{as:"h3",variant:"bodyMediumBold",children:h.Ru.get("concert.location.search.recent")})}),(0,F.jsx)("ol",{children:f.map((function(e,n){var t;return(0,F.jsxs)("li",{className:T,children:[(0,F.jsx)("button",{tabIndex:n+1,className:q,onClick:function(){return o({geonameId:Number(e.geonameId),name:e.name,country:e.country,geohash:e.geohash})},children:(0,F.jsx)("div",{className:z,children:null!==(t=e.fullName)&&void 0!==t?t:[e.name,e.country].join(h.Ru.getSeparator())})}),(0,F.jsx)(g.H,{"aria-label":h.Ru.get("remove"),iconOnly:d.M,size:"small",onClick:function(n){n.stopPropagation(),w(f.filter((function(n){return n.geonameId!==e.geonameId})))}})]},e.geonameId)}))})]})]})]})})})};t(184),t(42486);var H=t(14955),W=new N.l("saveLocation","mutation","5502351e9f201ae29014ca55d3b24b755ba261a1a9eb35fb498cb4c7df419353",null),J=t(85726);const G="WZzy7tMC5xlIMwoZ32JU",K="LkdC_QJiLoD0OTOWnkJV",Q="WqruN54NvYqlA2XlTJ0Z",P="GS4yLEr0XMj8kw2iMAd8",X="prICvcudVq_SL6dqkZBw",Y="YLM_DWbpYGBpvqtDEhum",$="h8jjXJERT64OZi2sHCbi";var ee=function(e,n){return e(W,{geonameId:n})};const ne=function(e){var n=e.onCancel,t=e.onSave,o=e.location,l=e.storeConcertLocation,u=void 0===l?ee:l,f=(0,i.useState)(!1),v=(0,a.A)(f,2),x=v[0],p=v[1],j=(0,i.useState)(!1),y=(0,a.A)(j,2),b=y[0],R=y[1],w=(0,(0,J.mv)().getGraphQLLoader)(),N=function(){var e=(0,r.A)(c().mark((function e(){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),R(!1),e.prev=2,e.next=5,u(w,String(o.geonameId));case 5:if(r=e.sent,void 0!==(a=null==r||null===(n=r.data)||void 0===n?void 0:n.storeUserLocation)&&"success"in a&&!0===a.success){e.next=8;break}throw Error();case 8:t(),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(2),R(!0),p(!1);case 15:case"end":return e.stop()}var a}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)("div",{onKeyDown:function(e){var t=e.key;_(t)&&"Escape"===t&&n()},"data-interaction-context":"location-selector",children:(0,F.jsx)(C.A,{isOpen:!0,onRequestClose:n,children:(0,F.jsxs)("section",{className:G,children:[(0,F.jsx)("div",{className:Q,children:(0,F.jsx)(g.H,{iconOnly:d.M,size:"medium",onClick:n,"aria-label":h.Ru.get("close")})}),(0,F.jsxs)("div",{className:K,children:[(0,F.jsx)("div",{className:P,children:(0,F.jsx)(H.Z,{variant:"celloCanon",children:h.Ru.get("concerts.location.change.confirm",o.name)})}),(0,F.jsx)("div",{className:X,children:(0,F.jsx)(s.t,{size:"xlarge"})}),(0,F.jsx)("div",{className:Y,children:(0,F.jsx)(H.Z,{semanticColor:"textSubdued",children:h.Ru.get("concerts.location.change.info")})}),(0,F.jsx)(m.$,{onClick:N,disabled:x,children:h.Ru.get("concerts.location.change.button")}),b&&(0,F.jsx)("div",{className:$,children:(0,F.jsx)(H.Z,{semanticColor:"textWarning",children:h.Ru.get("concerts.location.change.error")})})]})]})})})};var te=t(11656),re=t(18367),ae=function(){return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,F.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"})})},oe=new N.l("concertLocationsByLatLon","query","8a059d072a17a1199feb21fe846271f1680eda87010c832852ced0c55c6c7c96",null),ce=t(75355),ie=t(68576),le=t(60256);const ue="LUZuAtOgmXbneOoxnP8P",se="dIOLAcD26GH01pNjZHBL",de="tXNcvSNL8Kx6wKUOej2I",me="XZ1RzeF1kz6ch8idhAAD",fe="GQeQjsi5dPF4PFO7BzvL";var he=function(e){var n,t,o,l,u,s=(0,i.useState)(!1),d=(0,a.A)(s,2),m=d[0],f=d[1],v=(0,i.useState)(!1),g=(0,a.A)(v,2),x=g[0],p=g[1],y=(t=(n=oe).name,o=n.sha256Hash,l=(0,te.jE)(),u=(0,i.useContext)(ce.j).request,function(e){return l.ensureQueryData({queryFn:function(){return(0,ie.c)(u,n,e)},queryKey:[t,e,o]})}),b=(0,le.t)(e.spec),R=function(){var n=(0,r.A)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:p(!0),e.getCurrentPosition(function(){var n=(0,r.A)(c().mark((function n(t){var r,o,i,l;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,y({lat:t.coords.latitude,lon:t.coords.longitude});case 2:if(o=n.sent,void 0!==(c=null==o||null===(r=o.data)||void 0===r?void 0:r.concertLocations)&&"items"in c){n.next=6;break}return p(!1),n.abrupt("return",f(!0));case 6:return i=(0,a.A)(o.data.concertLocations.items,1),l=i[0],n.abrupt("return",e.onChange({geonameId:Number(l.geonameId),name:l.name}));case 8:case"end":return n.stop()}var c}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,F.jsxs)(F.Fragment,{children:[m&&(0,F.jsx)("div",{children:h.Ru.get("concert.location.search.current_location.error")}),(0,F.jsx)("button",{ref:b,className:de,onClick:R,children:(0,F.jsx)(j.E,{semanticColor:"textSubdued",className:fe,children:x?(0,F.jsx)(re.U,{}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ae,{})," ",h.Ru.get("concert.location.search.current_location")]})})})]})},ve=new N.l("userLocation","query","079939378ca79b67c6d047be9152ea940d21f10bbfa2f5d4cf4d8320d87774c2",null),ge=function(e,n){return(0,k.I)(ve,e,n)};const xe="Hj5kpRfIocJic5jcxsW_",pe="aJduGcVsoCwJvV1jVqjl";const je=function(e){var n,t=e.onClick,r=ge({}).data;return r?(0,F.jsxs)("div",{className:xe,children:[(0,F.jsxs)("div",{className:pe,children:[(0,F.jsx)(s.t,{size:"small"}),(0,F.jsxs)("div",{children:[(0,F.jsx)(H.Z,{as:"div",semanticColor:"textPositive",variant:"ballad",children:null===(n=r.me)||void 0===n||null===(n=n.profile)||void 0===n||null===(n=n.location)||void 0===n?void 0:n.name}),(0,F.jsx)(H.Z,{as:"div",semanticColor:"textSubdued",children:h.Ru.get("concerts.location.preferred")})]}),(0,F.jsx)(u.n,{onClick:t,size:"small",children:h.Ru.get("concerts.location.change")})]}),(0,F.jsx)(H.Z,{semanticColor:"textSubdued",variant:"finale",children:h.Ru.get("concerts.location.preferred.info")})]}):null};var ye=t(58114),be=t(65249),Re=t(70566);const Ce=function(e){var n,t,o,v=(0,l.d4)(be.Ht).isAnonymous,g=ge({}),x=g.data,p=g.invalidate,j=null==x||null===(n=x.me)||void 0===n||null===(n=n.profile)||void 0===n?void 0:n.location,y=(0,i.useState)(),b=(0,a.A)(y,2),R=b[0],C=b[1],w=e.handleLocationChange,_=e.locationStr,N=e.headerSpec,k=(0,i.useState)(null!==(t=e.isDialogDefaultOpen)&&void 0!==t&&t),D=(0,a.A)(k,2),A=D[0],L=D[1],S=(0,i.useState)(null!==(o=e.dialog)&&void 0!==o?o:"browse"),I=(0,a.A)(S,2),M=I[0],E=I[1],Z=(0,i.useState)(),B=(0,a.A)(Z,2),V=B[0],O=B[1];(0,i.useEffect)((function(){R||C(null==j?void 0:j.name)}),[null==j?void 0:j.name,C,R]);var T=(0,i.useMemo)((function(){return null==N?void 0:N.changeLocationButtonFactory()}),[N]),q=(0,i.useMemo)((function(){return null==N?void 0:N.changeLocationUiFactory({identifier:_})}),[N,_]),z=(0,i.useMemo)((function(){return q&&"currentLocationButtonFactory"in q?null==q?void 0:q.currentLocationButtonFactory():void 0}),[q]),H=(0,Re.s)(),W=(0,f.NC)(ye.tE2),J=function(){T&&!A&&H.logInteraction(T.hitUiReveal()),L(!A)},G=function(){var n;L(!1),E(null!==(n=e.dialog)&&void 0!==n?n:"browse"),O(void 0)},K=function(e){w(e),G()},Q=void 0!==R&&e.locationStr!==h.Ru.get("concerts.default_location")&&R!==e.locationStr;R!==(null==j?void 0:j.name)&&e.locationStr===(null==j?void 0:j.name)&&C(j.name);var P=Q?(0,F.jsxs)("div",{className:se,children:[j&&(0,F.jsx)(u.n,{size:"small",iconOnly:d.M,"aria-label":h.Ru.get("close"),onClick:function(){return w({geonameId:Number(j.geonameId),name:j.name})}}),(0,F.jsx)(m.$,{size:"small",iconTrailing:d.M,onClick:function(){return L(!0)},className:me,children:_})]}):(0,F.jsx)(u.n,{iconLeading:s.t,onClick:J,size:"small",className:me,children:_}),X=e.action?(0,i.cloneElement)(e.action,{onClick:J}):P;return(0,F.jsxs)("div",{className:ue,children:[X,A&&"browse"===M&&(0,F.jsx)(U,{title:h.Ru.get("concert.location.search.header"),onChange:K,onCancel:G,spec:q,children:!v&&(0,F.jsx)(je,{onClick:function(){return E("preferred")}})}),A&&"preferred"===M&&(0,F.jsx)(U,{title:h.Ru.get("concerts.location.preferred"),onChange:function(e){E("confirm"),O(e)},onCancel:G,onBack:e.dialog?void 0:function(){return E("browse")},spec:q,children:W&&"geolocation"in navigator&&(0,F.jsx)(he,{spec:z,getCurrentPosition:navigator.geolocation.getCurrentPosition.bind(navigator.geolocation),onChange:function(e){null==z||z.hitUiReveal(),E("confirm"),O(e)}})}),A&&"confirm"===M&&V&&(0,F.jsx)(ne,{location:V,onCancel:G,onSave:(0,r.A)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(void 0),e.next=3,p();case 3:K(V);case 4:case"end":return e.stop()}}),e)})))})]})}},41257:(e,n,t)=>{t.d(n,{k:()=>v});var r=t(13534),a=t(11854),o=t(39242),c=t(92107),i=t(61521),l=t(86295),u=t(87718),s=new l.l("inferredUserLocation","query","5db4c507ea735d2a1f37bd1166eca2c1a0e3387bb875ebca5d6031b6eccceeba",null),d=t(60256),m=t(12574);const f="g8vV54lx3mRkeseb5Bf2";var h=t(86070),v=function(e){var n,t,l,v=(t={},(0,u.I)(s,t,l)).data,g=(0,m.r)(o.F,{}).spec,x=(0,d.t)(g);return v&&null!==(n=v.me)&&void 0!==n&&null!==(n=n.profile)&&void 0!==n&&null!==(n=n.location)&&void 0!==n&&n.isInferred?(0,h.jsxs)("div",{className:f,ref:x,children:[(0,h.jsx)(r.E,{as:"h2",variant:"titleSmall",semanticColor:"textBase",children:c.Ru.get("concert.feed.set_location")}),(0,h.jsx)(r.E,{paddingBottom:"tighter-2",children:c.Ru.get("concert.feed.set_location_description")}),(0,h.jsx)(i.A,{locationStr:"london",dialog:"preferred",headerSpec:g,handleLocationChange:e.onLocationChange,action:(0,h.jsx)(a.$,{children:c.Ru.get("concert.feed.set_location_button")})})]}):null}},12595:(e,n,t)=>{t.d(n,{A:()=>x});var r=t(30758),a=t(13534),o=t(92562),c=t(93051),i=t(62813);const l="D_V60ibMxH9Vy7kyvWvc",u="anRK1X9LKn5HxZQJB5Tl",s="shUifmqVle_F5ILRpCqe",d="_WibGTg4OzGdsTf18zK1",m="LHhL2094jqvK0MNwlGAu",f="yRQGIh3Y05BG51IHUW2b",h="fT86P9Div4C8GXI9hZ36",v="G8sU0RZZT_ZhaEv7B26V";var g=t(86070);const x=(0,r.memo)((function(e){var n=e.date,t=e.image,r=e.title,x=e.subTitle,p=e.dateRange,j=e.uri,y=e.onClick,b=n?(0,i.l4)(n):void 0;return(0,g.jsxs)(c.N,{to:j,className:l,"data-testid":"concert-row",onClick:y,children:[(0,g.jsx)("time",{dateTime:n,className:u,children:b&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.E,{as:"div",variant:"bodySmall",children:(0,i.tj)(b)}),(0,g.jsx)(a.E,{variant:"bodyMediumBold",children:(0,i.Py)(b)})]})}),t&&(0,g.jsx)(o._,{src:t,alt:"",role:"presentation",className:s}),(0,g.jsxs)("div",{className:m,children:[(0,g.jsxs)("div",{className:f,children:[(0,g.jsx)(a.E,{variant:"bodyMedium",className:d,children:r}),(0,g.jsx)(a.E,{variant:"bodySmall","data-testid":"event-venue",semanticColor:"textSubdued",children:x})]}),(0,g.jsx)(a.E,{as:"span",variant:"bodyMedium",semanticColor:"textSubdued",className:h,children:p}),(0,g.jsx)("div",{className:v,children:b&&(0,g.jsx)(a.E,{variant:"bodyMedium",semanticColor:"textSubdued",children:(0,i.WB)(b)})})]})]})}))},65345:(e,n,t)=>{t.d(n,{$V:()=>r,Bw:()=>l,V5:()=>s,dR:()=>c,eO:()=>i,se:()=>o,w1:()=>u,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:{})},o=function(e){return null!=e},c=function(e){return"__typename"in e&&"AllEvents"===e.__typename},i=function(e){return"__typename"in e},l=function(e){return!!e&&"sections"in e},u=function(e){return"__typename"in e},s=function(e){return Object.keys(e).includes("data")}},62813:(e,n,t)=>{t.d(n,{Fn:()=>f,MW:()=>h,Py:()=>d,VJ:()=>m,Vi:()=>p,WB:()=>v,WZ:()=>g,Y:()=>l,dp:()=>u,l4:()=>i,m7:()=>x,tX:()=>y,tj:()=>s});var r=t(12341),a=(t(83234),t(68216),t(2823),t(4672),t(12058)),o=t(92107),c=t(65345),i=function(e){return new Date(e.substring(0,16))},l=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"})},s=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"})},h=function(e){return o.Ru.formatDate(e,{weekday:"short",hour:"numeric",minute:"numeric"})},v=function(e){return o.Ru.formatDate(e,{hour:"numeric",minute:"numeric"})},g=function(e,n){if(e.toDateString()===n.toDateString())return l(e);if(e.getMonth()===n.getMonth()){var t=o.Ru.formatDate(e,{day:"numeric",month:"short"}),r=o.Ru.formatDate(n,{day:"numeric"});return"".concat(t,"–").concat(r)}var a=o.Ru.formatDate(e,{day:"numeric",month:"short"}),c=o.Ru.formatDate(n,{day:"numeric",month:"short"});return"".concat(a,"–").concat(c)},x=function(e){if(!e)return!1;var n=new Date(e);return new Date>n},p=function(e){var n=(0,r.A)(e,1)[0],t=e[e.length-1];return(0,c.$V)(n)&&(0,c.$V)(t)?{startDate:i(n.data.startDateIsoString),endDate:i(t.data.startDateIsoString)}:{startDate:new Date,endDate:new Date}},j={month:"short",day:"numeric"},y=function(e){if((0,a.r)(e.from,e.to))return o.Ru.formatDate(e.from,j);var n=o.Ru.formatDate(e.from,j).replace(/ /g," "),t=o.Ru.formatDate(e.to,j).replace(/ /g," ");return"".concat(n," - ").concat(t)}},62657:(e,n,t)=>{t.d(n,{Ac:()=>i,a9:()=>l,i3:()=>d,im:()=>s,re:()=>u,tI:()=>o});var r=t(85093),a=(t(83234),t(30456),t(34518),t(25550),t(47994),t(43379),t(34192),t(88856),t(15342),t(92107)),o=function(e,n,t){return!!e&&(n||!t.length)},c=function(e){return e.artists.map((function(e){return e.name}))},i=function(e){return 1===e.length?a.Ru.get.apply(a.Ru,["concert.header.upcoming_concert_title_1"].concat((0,r.A)(e))):2===e.length?a.Ru.get.apply(a.Ru,["concert.header.upcoming_concert_title_2"].concat((0,r.A)(e))):3===e.length?a.Ru.get.apply(a.Ru,["concert.header.upcoming_concert_title_3"].concat((0,r.A)(e))):4===e.length?a.Ru.get.apply(a.Ru,["concert.header.upcoming_concert_title_4"].concat((0,r.A)(e))):e.length>4?a.Ru.get.apply(a.Ru,["concert.header.upcoming_concert_title_more"].concat((0,r.A)(e))):""},l=function(e){var n=c(e);return o(e.title,e.festival,n)?e.title:i(n)},u=function(e){return 1===e.length?a.Ru.get.apply(a.Ru,["concert.header.entity_title_1"].concat((0,r.A)(e))):2===e.length?a.Ru.get.apply(a.Ru,["concert.header.entity_title_2"].concat((0,r.A)(e))):3===e.length?a.Ru.get.apply(a.Ru,["concert.header.entity_title_3"].concat((0,r.A)(e))):4===e.length?a.Ru.get.apply(a.Ru,["concert.header.entity_title_4"].concat((0,r.A)(e))):e.length>4?a.Ru.get.apply(a.Ru,["concert.header.entity_title_more"].concat((0,r.A)(e))):""},s=function(e){return[e.name,e.city,e.region,e.country].filter((function(e){return!!e&&"unknown"!==e.toLowerCase()})).join(a.Ru.getSeparator())},d=function(e){if(!e.artists||0===e.artists.items.length)return e.title;if(e.festival)return e.title;var n=e.artists.items.map((function(e){return e.profile.name}));return u(n)}},608:(e,n,t)=>{t.d(n,{gq:()=>i,K9:()=>c,zV:()=>l});t(83234),t(70750),t(68216);var r=t(92107),a=function(e){return r.Ru.formatDate(e,{year:"numeric",month:"numeric",day:"numeric"})},o=function(e){return r.Ru.formatDate(e,{hour:"numeric",minute:"numeric"})},c=function(e,n,t,c){if(!e)return"";if(e&&n&&t&&c){var i=a(c),l=o(c);return r.Ru.get("concert.entity_metadata.title_with_date_and_time",e,n,t,i,l)}return r.Ru.get("concert.entity_metadata.title",e,n,t)},i=function(e){if(!e)return"";var n=(new Date).getFullYear();return"".concat(e," Tickets - ").concat(n," Concert Tour Dates | Spotify")},l=function(e){return"Concert Tickets & Tour Dates for you".concat(e?" in ".concat(e):""," | Spotify")}}}]);
|
||
//# sourceMappingURL=7174.js.map
|