2 lines
62 KiB
JavaScript
2 lines
62 KiB
JavaScript
|
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[3878],{56359:(e,i,a)=>{a.r(i),a.d(i,{ThisIsTourCard:()=>S,default:()=>S,useThisisPlaylistExtensionQuery:()=>g});var n=a(56162),t=a(63082),l=a(3802),s=a(63120),r=a(96170);const d="nX5e9EyU1GmU42OFVHwH",o="pQmF4tvRpUeLWgPKUcW7",c="mGY3ER0iIvb1NbJ1d7X4",m="JHz_5gqDYpq9Lw3pIac_",u="HPCUzqQRn7oae4vJa3y9",k="WO2PkF5DO1fE25IrD2Gy",p="StPcf0AvSM0c18nwF4hJ";var v=a(4637);const S=e=>{const{artistImageUrl:i,artistName:a,artistConcertsUri:S,spec:h}=e,y=(0,r.$P)(),g=(0,r.Wi)(h.concertsCardFactory({identifier:a,uri:S,reason:"This is On Tour phase 1 MVP"}));return i&&a&&S?(0,v.jsxs)("section",{ref:g,className:d,children:[(0,v.jsx)(n.D,{as:"h1",variant:"cello",semanticColor:"textBase",children:l.ag.get("concerts")}),(0,v.jsxs)("div",{className:o,"data-testid":"on-tour-card",children:[(0,v.jsx)("img",{className:c,src:i,alt:""}),(0,v.jsxs)("div",{className:m,children:[(0,v.jsx)(n.D,{as:"p",variant:"mesto",semanticColor:"textSubdued",className:u,children:l.ag.get("concerts_on_tour")}),(0,v.jsx)(n.D,{as:"h1",variant:"cello",className:k,semanticColor:"textBase",children:a}),(0,v.jsx)(s.default,{to:S,className:p,children:(0,v.jsx)(t.P,{as:"span",buttonSize:"sm",onClick:()=>{const e=h.concertsCardFactory({identifier:a,uri:S,reason:"This is On Tour phase 1 MVP"}).hitUiNavigate({destination:S});y.logInteraction(e)},children:l.ag.get("concerts_see_all_events")})})]})]})]}):null};var h=a(72071);const y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"thisisPlaylistExtension"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"uri"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"playlistV2"},arguments:[{kind:"Argument",name:{kind:"Name",value:"uri"},value:{kind:"Variable",name:{kind:"Name",value:"uri"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Playlist"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"artistsOnTour"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"uri"}},{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"upcomingEventsCount"}}]}}]}}]}}]}}]},g=(e,i)=>(0,h.a)(y,e,i)},54191:(e,i,a)=>{a.r(i),a.d(i,{default:()=>ga});var n=a(59496),t=a(61740),l=a(89605),s=a(56162),r=a(36844),d=a(44501),o=a(50346),c=a(3802),m=a(92403),u=a(462),k=a(4637);const p=(e,i,a)=>({event:e,app_startup_id:null,ad_playback_id:null,ad_id:String(i),lineitem_id:String(a),creative_id:String(i),ad_format:"sponsored playlist",slot:null,in_focus:null,username:null,jsondata:JSON.stringify({platform:"WebPlayer",revision:"1.0.0"})}),v=({clickTracking:e,clickThrough:i,thirdPartyImpression:a,impression:l,logoUrl:r,advertiserName:d,creativeId:o,lineItemId:m})=>{const v=(0,t.I0)(),[S,h]=(0,n.useState)(!1);return(0,n.useEffect)((()=>(v((0,u.Vw)()),v((0,u.kh)(p("event_viewed",o,m))),()=>{v((0,u.AG)())})),[v,o,m]),(0,k.jsxs)("div",{className:"sponsor-container",children:[(0,k.jsx)(s.D,{variant:"minuet",className:"sponsor-text","data-ta-id":"sponsor-text",children:c.ag.get("playlist.presented_by",d)}),(0,k.jsxs)("div",{className:"sponsor-logo",children:[(0,k.jsx)("a",{draggable:!1,className:"sponsor-logo__link",target:"_blank",href:i,onClick:()=>{v((0,u.kh)(p("event_clicked",o,m))),h(!0)},children:(0,k.jsx)("img",{draggable:!1,className:"sponsor-logo__image",src:r,alt:d,"data-ta-id":"sponsor-logo"})}),(0,k.jsx)("img",{className:"sponsor-logo__imp-pixel",src:l,alt:""}),a&&(0,k.jsx)("img",{className:"sponsor-logo__3p-imp-pixel",src:a,alt:""}),S&&(0,k.jsx)("img",{className:"sponsor-logo__click-img-pixel",src:e,alt:""})]})]})},S=({playlist
|
||
|
//# sourceMappingURL=xpui-routes-playlist.js.map
|