-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3222.js
1 lines (1 loc) · 9.83 KB
/
3222.js
1
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[3222],{54981:(t,o,e)=>{e.d(o,{A:()=>y});var n=e(3205),a=e(32511),i=e(30758),r=e(63616),s=e(67899),c=e(70585),p=e(32037),l=e(21528),u=e(61e3),h=e(27508),_=e(13505),b=e(33813),d=["colorSet","popoverTitle","popoverTitleId","children","as","onClose","className","large","closeButtonAriaLabel","closeButtonRef","arrow"];function m(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,n)}return e}var L=i.forwardRef((function(t,o){var e=t.colorSet,m=void 0===e?"base":e,L=t.popoverTitle,g=t.popoverTitleId,y=t.children,A=t.as,V=t.onClose,f=t.className,v=t.large,C=t.closeButtonAriaLabel,P=void 0===C?"Close":C,w=t.closeButtonRef,N=t.arrow,T=(0,a.A)(t,d);N&&(0,b.PO)(N,"Popover");var B=A||"div",M=(0,s.E)(N);return i.createElement(B,Object.assign({ref:o,role:"dialog","aria-labelledby":g,className:(0,l.ZP)(["popover","baseline","overlay",(0,n.A)({"popover--padded-body":!(!V||L),"popover--large":v,"popover--arrow":!!M},"popover--arrow-".concat(M&&(0,c.j1)(M)),!!M),(0,c.W3)("bodySmall"),(0,p.Ju)(m)],f)},T,{"data-encore-id":r.j.Popover}),L&&i.createElement(_.E,{id:g,variant:"bodyMediumBold",as:"h1",className:(0,l.ZP)(["popover__title"])},L),y,V&&i.createElement(u.H,{ref:w,onClick:V,"aria-label":P,type:"button",iconOnly:h.M,className:(0,l.ZP)(["popover__close-button"])}))})),g=function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?m(Object(e),!0).forEach((function(o){(0,n.A)(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}({},s.G),y=Object.assign(L,g)},33746:(t,o,e)=>{e.d(o,{d:()=>s});const n="music",a="2.1.0",i="default",r="12.2.0";function s(t){return new c(t)}class c{constructor(t){this._path=[{name:"desktop-episode-block",...t.data}],t?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=t.parentAbsoluteLocation)}playButtonFactory(){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}moreButtonFactory(){return new c.MoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}copyLinkFactory(){return new c.CopyLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new c.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveToLibraryButtonFactory(){return new c.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[a,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const t=this._parentAbsoluteLocation?.locations;return{locations:[...t||[],this._getCurrentLocation()]}}hitUiNavigate({destination:t}){return{actionParameterNames:["destination"],actionParameterValues:[t.toString()],actionName:"ui_navigate",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}secondaryHitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:n,generatorVersion:r,interactionType:"secondary_hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:n,generatorVersion:r,specificationVersion:a,specificationMode:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(t){t.PlayButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"play_button"}),o&&(this._parentAbsoluteLocation=o)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[a,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const t=this._parentAbsoluteLocation?.locations;return{locations:[...t||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:t}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[t.toString()],actionName:"play",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:t}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[t.toString()],actionName:"pause",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:t}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[t.toString()],actionName:"resume",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(t){t.MoreButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"more_button"}),o&&(this._parentAbsoluteLocation=o)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[a,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const t=this._parentAbsoluteLocation?.locations;return{locations:[...t||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(t){t.CopyLinkEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"copy_link"}),o&&(this._parentAbsoluteLocation=o)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[a,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const t=this._parentAbsoluteLocation?.locations;return{locations:[...t||[],this._getCurrentLocation()]}}hitShare({entityToBeShared:t,shareId:o}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[t.toString(),o.toString()],actionName:"share",actionVersion:2,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(t){t.DownloadButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"download_button"}),o&&(this._parentAbsoluteLocation=o)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[a,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const t=this._parentAbsoluteLocation?.locations;return{locations:[...t||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:t}){return{actionParameterNames:["item_to_download"],actionParameterValues:[t.toString()],actionName:"download",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:t}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[t.toString()],actionName:"remove_download",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={})),function(t){t.SaveToLibraryButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"save_to_library_button"}),o&&(this._parentAbsoluteLocation=o)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[a,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const t=this._parentAbsoluteLocation?.locations;return{locations:[...t||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:t}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[t.toString()],actionName:"like",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:t}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[t.toString()],actionName:"remove_like",actionVersion:1,app:n,generatorVersion:r,interactionType:"hit",specificationMode:i,specificationVersion:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(c||(c={}))}}]);