-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2758.js
1 lines (1 loc) · 12.6 KB
/
2758.js
1
(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[2758],{6936:function(t,o,e){t.exports=function(t){"use strict";function o(t,o,n,a){return void 0===o&&(o={}),Object.keys(o).reduce((function(i,r){if(/^on.*/.test(r))return i;var s=r;/^(data|aria)-/.test(r)||0===n.filter((function(t){return t instanceof RegExp?t.test(r):t===r})).length&&(s=e(r));var c,u,p=a(t,s);if("style"===p.name)i[p.name]=(c=o.style,u={},c.split(";").filter((function(t){return""!==t.trim()})).forEach((function(t){var o,n=t.split(":");if(n.length>1){var a=function(t){return/^-ms-/.test(t)&&(t=t.substr(1)),t.startsWith("--")?t:e(t)}(n[0].trim()),i=(o=n.slice(1).join(":").trim(),/^\d+$/.test(o)?Number(o):o.replace(/'/g,'"'));u[a]=i}})),u);else{var l=o[r],h=""===l||String(l).toLowerCase()===s.toLowerCase();i[p.name]=p.isBoolean?h:l}return i}),{})}function e(t){return t.replace(/(-|:)(.)/g,(function(t,o,e){return e.toUpperCase()}))}t=t&&t.hasOwnProperty("default")?t.default:t;var n=["table","tbody","thead","tfoot","tr"],a={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function i(t,o){var e=a[o],n=document.createElement(t);if(e)return{name:Array.isArray(e)?e[0]:e,isBoolean:r(n,Array.isArray(e)?e[1]||o:e)};for(var i in n)if(i.toLowerCase()===o.toLowerCase())return{name:i,isBoolean:r(n,i)};return{name:o,isBoolean:r(n,o)}}function r(t,o){return t.setAttribute(o,""),!0===t[o]||s.indexOf(o)>-1}var s=["itemScope"];function c(o,e,n,a){void 0===a&&(a=null);var i=n[o],r=n._;return i?t.createElement(i,e,a):r?r(o,e,a):t.createElement(o,e,a)}return function(t,e){if(void 0===e&&(e={}),"string"!=typeof t)throw new TypeError("Expected HTML string");var a=document.createElement("div");a.innerHTML=t.trim();var r=Array.from(a.childNodes).map((function(t,a){return function t(e,a,r){var s=r.transform||{},u=r.preserveAttributes||[],p=r.dangerouslySetChildren||["style"],l=s._;if(8===e.nodeType)return null;if(3===e.nodeType){var h=e.textContent;return l?l(h):h}for(var _={},m=e.attributes,d=0;d<m.length;d++)_[m[d].name]=m[d].value;_.key=a.toString();var L=e.tagName.toLowerCase(),g=o(L,_,u,i),b=Array.from(e.childNodes).map((function(o,e){return n.indexOf(L)>-1&&3===o.nodeType&&(o.textContent=o.textContent.trim(),""===o.textContent)?null:t(o,a+"."+e,r)})).filter(Boolean);if(p.indexOf(L)>-1){var f=e.innerHTML;return f&&("style"!==L&&"script"!==L&&(f=f.replace(/"/g,""")),g.dangerouslySetInnerHTML={__html:f.trim()}),c(L,g,s)}var A=0===b.length?null:b;return c(L,g,s,A)}(t,String(a),e)})).filter(Boolean);return 1===r.length?r[0]:r}}(e(30758))},18143:(t,o,e)=>{"use strict";e.d(o,{m:()=>s});const n="music",a="2.1.0",i="default",r="15.1.0";function s(t){return new c(t)}class c{constructor(t){this._path=[{name:"desktop-audiobook-list-row",...t.data}],t?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=t.parentAbsoluteLocation)}playButtonFactory(){return new c.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveToLibraryButtonFactory(){return new c.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new c.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareButtonFactory(){return new c.ShareButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new c.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addButtonFactory(){return new c.AddButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}genreLinkFactory(t){return new c.GenreLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_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()]}}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}}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}}}!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.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={})),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.ShareButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"share_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()]}}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.ContextMenuButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"context_menu_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.AddButtonEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({name:"add_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()]}}hitAddToPlaylist({playlist:t,itemToBeAdded:o}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[t.toString(),o.toString()],actionName:"add_to_playlist",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.GenreLinkEventFactory=class{constructor({path:t,parentAbsoluteLocation:o,data:e}){this._path=t.concat({...e,name:"genre_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()]}}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}}}}(c||(c={}))}}]);