mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
4.4 KiB
JavaScript
Executable File
2 lines
4.4 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[399],{91471:(e,i,t)=>{t.d(i,{k:()=>c});var r=t(30758),n=t(92107),l=t(57581),o=t(8574),u=t(91442),a=t(36273),d=t(86070),c=function(e){var i=e.id,t=e.children,c=e.targetURI,g=e.fadeOut,s=void 0!==g&&g,p=(0,r.useCallback)((function(){window.open((0,u.rw)(c).href)}),[c]),v={getTitle:function(){return n.Ru.get("action-trigger.available-in-app-only")},getDescription:function(){return n.Ru.get("action-trigger.listen-mixed-media-episode")},primaryButtonText:function(){return n.Ru.get("action-trigger.button.get-app")},secondaryButtonText:function(){return n.Ru.get("action-trigger.button.not-now")},isCTA:!0,intentPrimaryButton:"download-app",onLogInteraction:(0,o.W)(),shouldHideOnScroll:!0,fadeOut:s};return(0,d.jsx)(l.U,{className:a.A.container,id:i,onPrimaryButtonClick:p,options:v,children:t})}},62699:(e,i,t)=>{t.r(i),t.d(i,{EpisodeMoreLikeThis:()=>d});var r=t(30758),n=t(44286),l=t(92107),o=t(45625),u=t(77034),a=t(86070),d=r.memo((function(){var e=(0,n.g)().episodeId,i=function(e){return"spotify:episode:".concat(e)}(void 0===e?"":e);return(0,a.jsxs)("div",{className:"contentSpacing",children:[(0,a.jsx)(o.Q,{children:l.Ru.get("internal-link-recommender.more-episodes-like-this")}),(0,a.jsx)(u.W,{uri:i,isFullPage:!0})]})}))},62562:(e,i,t)=>{t.d(i,{C:()=>b});var r=t(30758),n=t(93493),l=t(8574),o=t(58114),u=t(52542),a=(t(7651),t(42486),t(30456),t(26701),t(78551),t(68216),t(47994),t(37417),t(11737),t(51691),t(702),t(5672),t(43379),t(78397),t(82467),t(34192),t(88856),t(51565),t(18316),function(e){return e<=64?"small":e>640?"xlarge":e>300?"large":"standard"});function d(e,i){return e.filter((function(e){return e.label?e.label===i:e.width?a(e.width)===i:!!e.height&&a(e.height)===i}))[0]}var c=t(37851);t(47710);var g=t(53670);function s(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?s(Object(t),!0).forEach((function(i){(0,u.A)(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}function v(e){var i,t,r,n,l,o,u,a,c=d(e,"standard"),g=d(e,"large"),s=d(e,"small"),p=d(e,"xlarge");return{image_url:null==c?void 0:c.url,image_height:null==c||null===(i=c.height)||void 0===i?void 0:i.toString(),image_width:null==c||null===(t=c.width)||void 0===t?void 0:t.toString(),image_url_large:null==g?void 0:g.url,image_height_large:null==g||null===(r=g.height)||void 0===r?void 0:r.toString(),image_width_large:null==g||null===(n=g.width)||void 0===n?void 0:n.toString(),image_url_small:null==s?void 0:s.url,image_height_small:null==s||null===(l=s.height)||void 0===l?void 0:l.toString(),image_width_small:null==s||null===(o=s.width)||void 0===o?void 0:o.toString(),image_url_xlarge:null==p?void 0:p.url,image_height_xlarge:null==p||null===(u=p.height)||void 0===u?void 0:u.toString(),image_width_xlarge:null==p||null===(a=p.width)||void 0===a?void 0:a.toString()}}var f=t(64869),h=t(11404),m=t(16920);function b(e,i){var t=(0,l.W)(),u=(0,f.z)(),a=(0,h.te)((null==e?void 0:e.uri)||""),d=a.isPlaying,s=a.isActive,b=(0,h.l_)((null==i?void 0:i.uri)||"").isActive,y=(0,n.NC)(o.pZ0),_=(0,r.useCallback)((function(r){if(i&&e){var n=function(e,i){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=((null===(t=e.coverArt)||void 0===t?void 0:t.sources)||[]).sort((function(e,i){return(i.width||0)-(e.width||0)})),l=(0,c.QH)(e,i),o=(0,c.gf)(i)||l,u=e.mediaTypes&&e.mediaTypes.includes(g.Cx.Video)?"video":"audio";return p(p({uri:e.uri,title:e.name,subtitle:i.name,type:"episode",album_uri:i.uri,album_title:i.name,artist_uri:i.uri,artist_name:i.name},v(n)),{},{media_type:r?u:"audio",isTrailer:l,anonymousPlaybackAllowed:o})}(e,i,y);b&&!d&&s&&!r?u.resume():b&&d&&!r?(t({type:"click",intent:"pause",targetUri:e.uri}),u.pause()):(t({type:"click",intent:"play",targetUri:e.uri}),u.play({uri:i.uri,pages:[{items:[{type:m.c.EPISODE,uri:e.uri,uid:null,metadata:n,provider:null}]}]},{referrerIdentifier:u.getReferrer(),featureIdentifier:"episode"},r))}}),[i,e,y,b,d,s,u,t]);return _}}}]);
|
|
//# sourceMappingURL=xpui-routes-episode-more-like-this.js.map
|