mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
186 KiB
JavaScript
Executable File
2 lines
186 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[1206],{80439:(e,t,r)=>{r.d(t,{h:()=>d});var n=r(30758),a=r(92107),i=r(85673),s=r(39150),o=r(43837),c=r(53607),l=r(57863),u=r(86070),d=n.memo((function(e){var t=e.uri,r=(0,l.o)(t).spec;return(0,u.jsx)(c.pZ,{value:"generic",children:(0,u.jsx)(i.W,{children:(0,u.jsx)(o.h,{divider:"before",children:(0,u.jsx)(s.m,{spec:r,uri:t,displayText:a.Ru.get("context-menu.copy-generic-link")})})})})}))},20815:(e,t,r)=>{r.d(t,{a:()=>v});var n=r(52542),a=r(97500),i=r.n(a),s=r(37283),o=r(13534),c=r(92107);const l="main-editImage-buttonContainer",u="main-editImageButton-image",d="main-editImageButton-overlay",m="main-editImageButton-rounded",p="main-editImageButton-icon",g="main-editImageButton-copy";var f=r(86070),v=function(e){var t=e.overlay,r=void 0!==t&&t,a=e.rounded,v=void 0!==a&&a,b=e.onClick;return(0,f.jsx)("div",{className:l,children:(0,f.jsx)("button",{"data-testid":"edit-image-button",className:i()(u,(0,n.A)((0,n.A)({},m,v),d,r)),"aria-haspopup":"true",onClick:b,type:"button",children:(0,f.jsxs)("div",{className:i()(p,"icon"),children:[(0,f.jsx)(s.G,{size:"xlarge","aria-hidden":"true"}),(0,f.jsx)(o.E,{variant:"bodyMedium",className:g,children:c.Ru.get("choose_photo")})]})})})}},15436:(e,t,r)=>{r.d(t,{A:()=>i});r(58795);var n=r(92107),a=r(86070);const i=function(e){var t=e.fill,r=void 0===t?"#fff":t,i=e.width,s=void 0===i?32:i,o=e.height,c=void 0===o?32:o;return(0,a.jsxs)("svg",{width:s,height:c,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:n.Ru.get("close")}),(0,a.jsx)("path",{d:"M31.098 29.794L16.955 15.65 31.097 1.51 29.683.093 15.54 14.237 1.4.094-.016 1.508 14.126 15.65-.016 29.795l1.414 1.414L15.54 17.065l14.144 14.143",fill:r,fillRule:"evenodd"})]})}},42104:(e,t,r)=>{r.d(t,{u:()=>x,i:()=>h});r(7651),r(30456),r(26701),r(37417),r(11737),r(51691),r(702),r(5672),r(43379),r(34192),r(88856),r(51565),r(18316);var n=r(12341),a=r(62822),i=r(52542),s=r(13734),o=r(93091),c=r.n(o),l=(r(86746),r(78551),r(60482),r(82467),r(97460),r(30758));r(42486),r(68216),r(51234),r(78397);function u(e){return new Promise((function(t,r){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){var e,r;t(null!==(e=null===(r=n.result)||void 0===r?void 0:r.toString())&&void 0!==e?e:"")},n.onerror=function(e){return r(e)}}))}function d(e){return new Promise((function(t,r){var n=new Image;n.onload=function(){var e=n.width,r=n.height;t([e,r])},n.src=e,n.onerror=function(e){return r(e)}}))}const m="main-imagePicker-fileInput";var p=r(86070),g=["onChange","onError","isOpen","minImageWidth","minImageHeight","maxImageWidth","maxImageHeight","maxFileSizeMB"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,i.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b={accept:"image/.jpg, image/.jpeg, image/.png"},h=function(e){return e.FILE_TOO_BIG="FILE_TOO_BIG",e.IMAGE_TOO_SMALL="IMAGE_TOO_SMALL",e.IMAGE_TOO_BIG="IMAGE_TOO_BIG",e.IMAGE_TYPE_NOT_SUPPORTED="IMAGE_TYPE_NOT_SUPPORTED",e}({}),x=function(e){var t=e.onChange,r=e.onError,i=e.isOpen,o=void 0!==i&&i,f=e.minImageWidth,x=void 0===f?0:f,R=e.minImageHeight,y=void 0===R?0:R,E=e.maxImageWidth,k=void 0===E?1e4:E,j=e.maxImageHeight,O=void 0===j?1e4:j,C=e.maxFileSizeMB,w=void 0===C?1/0:C,S=(0,s.A)(e,g),A=l.useRef(null),N=v(v({},b),S);(0,l.useEffect)((function(){A.current&&o&&A.current.click()}),[A,o]);var _=1048576*w;function I(){return(I=(0,a.A)(c().mark((function e(a){var i,s,o,l,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.target,s=Array.from(i.files||[]),o=(0,n.A)(s,1),l=o[0],e.next=4,D(l);case 4:return u=e.sent,e.prev=5,e.next=8,T(u);case 8:t(u),e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(5),"string"!=typeof e.t0||!Object.values(h).includes(e.t0)){e.next=17;break}r(e.t0),e.next=18;break;case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,null,[[5,11]])})))).apply(this,arguments)}function T(e){return L.apply(this,arguments)}function L(){return(L=(0,a.A)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(["image/jpg","image/jpeg","image/png"].includes(t.imageFile.type)){e.next=3;break}throw h.IMAGE_TYPE_NOT_SUPPORTED;case 3:if(!(t.imageWidth<x||t.imageHeight<y)){e.next=5;break}throw h.IMAGE_TOO_SMALL;case 5:if(!(t.imageWidth>k||t.imageHeight>O)){e.next=7;break}throw h.IMAGE_TOO_BIG;case 7:if(!(t.imageFile.size>_)){e.next=9;break}throw h.FILE_TOO_BIG;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return P.apply(this,arguments)}function P(){return(P=(0,a.A)(c().mark((function e(t){var r,a,i,s,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(t);case 2:return r=e.sent,e.next=5,d(r);case 5:return a=e.sent,i=(0,n.A)(a,2),s=i[0],o=i[1],e.abrupt("return",{imageFile:t,imageDataUrl:r,imageWidth:s,imageHeight:o});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,p.jsx)("input",v(v({},N),{},{type:"file","data-testid":"image-file-picker",ref:A,className:m,onChange:function(e){return I.apply(this,arguments)}}))}},69395:(e,t,r)=>{r.d(t,{z:()=>p});var n=r(52542),a=r(97500),i=r.n(a),s=r(13534),o=r(81120);const c="pIZVZOfjnJGth1BcoA1E",l="ZBBTIITnUdwh05dCI0tm",u="sz8Nwj2lvhOZxDwYWRQr",d="jjPsW7vuG9xH9qhEGL3I";var m=r(86070),p=function(e){var t=e.message,r=e.isErrorMessage,a=void 0!==r&&r;return t?(0,m.jsx)("div",{role:"alert",children:(0,m.jsx)("div",{className:i()(c,(0,n.A)({},l,a)),children:(0,m.jsxs)(s.E,{as:"p",variant:"marginal",className:u,children:[(0,m.jsx)(o.b,{size:"small",className:d,"aria-hidden":"true"}),t]})})}):null}},32968:(e,t,r)=>{r.d(t,{M:()=>g});r(7651),r(30456),r(26701),r(37417),r(11737),r(51691),r(702),r(5672),r(43379),r(34192),r(88856),r(51565),r(18316);var n=r(52542),a=r(13734),i=r(30758),s=r(97500),o=r.n(s);const c="JCoroLSoJO7iJzBU1n2W",l="aOxbsZDBlepfQptv_EfI";var u=r(86070),d=["children","isOpen","onRequestClose","className","animated","shouldCloseOnEsc","shouldCloseOnBackdropClick"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(e){var t,r=e.children,s=e.isOpen,m=e.onRequestClose,g=e.className,f=e.animated,v=void 0!==f&&f,b=e.shouldCloseOnEsc,h=void 0===b||b,x=e.shouldCloseOnBackdropClick,R=void 0===x||x,y=(0,a.A)(e,d),E=(0,i.useRef)(null);return function(e,t,r){(0,i.useEffect)((function(){var n=t.current,a=function(t){t.preventDefault(),e&&r&&r()};return null==n||n.addEventListener("cancel",a),function(){null==n||n.removeEventListener("cancel",a)}}),[t,r,e])}(h,E,m),t=E,(0,i.useEffect)((function(){var e=t.current;return function(){null==e||e.close()}}),[t]),(0,i.useEffect)((function(){var e,t;s?null===(e=E.current)||void 0===e||e.showModal():null===(t=E.current)||void 0===t||t.close()}),[s]),(0,u.jsx)("dialog",p(p({ref:E,className:o()(c,g,(0,n.A)({},l,v)),onClick:function(e){var t=e.target;t instanceof HTMLElement&&"DIALOG"===t.nodeName&&R&&(null==m||m())}},y),{},{children:r}))}},4649:(e,t,r)=>{r.r(t),r.d(t,{RootDialogs:()=>Gu});var n=r(52542),a=r(62822),i=r(93091),s=r.n(i),o=(r(7651),r(30456),r(26701),r(79024),r(47994),r(37417),r(11737),r(51691),r(702),r(5672),r(43379),r(51234),r(97460),r(34192),r(88856),r(51565),r(18316),r(93577),r(30758)),c=r(88677),l=r(93493),u=(r(57383),r(23100)),d=r(13534),m=r(64399),p=r(92107),g=r(84532),f=r(47540);const v="tJeH2W2to1A7d9tWBRoi",b="oNjdJbGQ9ypf7KR0nYJW",h="ibrRlYShsgThsh8VNS8Q",x="Yl9jzsnP8e_5i9me3h7H",R="vxBybZOmHdDF_nmLE4sa";var y=r(86070),E=(0,o.memo)((function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.aboutRecs})).isOpen,r=(0,o.useCallback)((function(){e((0,g.oK)())}),[e]),n=u.wdA.substr(1),a="https://about-recommendations.spotify.com/?bg=".concat(n,"&hideHeader=true");return(0,y.jsx)(f.A,{animated:!0,isOpen:t,onRequestClose:r,contentLabel:p.Ru.get("context-menu.about-recommendations"),children:(0,y.jsxs)("div",{className:v,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleMedium",semanticColor:"textBase",className:b,children:p.Ru.get("context-menu.about-recommendations")}),(0,y.jsx)("div",{className:h,children:(0,y.jsx)("iframe",{className:x,title:p.Ru.get("context-menu.about-recommendations"),src:a})}),(0,y.jsx)("button",{"aria-label":p.Ru.get("close_button_action"),className:R,onClick:r,children:(0,y.jsx)(m.M,{size:"medium"})})]})})})),k=r(7352),j=r(2648),O=(r(14551),r(40065),r(96794),r(33067),r(4865),r(97500)),C=r.n(O),w=r(11854),S=function(e){var t=e.className;return(0,y.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,y.jsx)("rect",{width:"14.933",height:"14.933",x:"0.533",y:"0.533",fill:"#E22134",rx:"7.467"}),(0,y.jsx)("path",{fill:"#fff",d:"M6.143 12V4.437h-1.28c-.15.79-.907 1.387-1.995 1.419v1.003h1.813V12h1.462zm5.092-5.13c0 .82-.65 1.343-1.386 1.343-.758 0-1.387-.512-1.387-1.344 0-.81.64-1.333 1.387-1.333.736 0 1.386.533 1.386 1.333zm-4 4.874c.384.245 1.12.416 1.75.416 2.56 0 3.893-1.61 3.893-4.341 0-2.4-1.397-3.542-2.997-3.542-1.611 0-2.859 1.088-2.859 2.635 0 1.59 1.227 2.539 2.603 2.539.853 0 1.514-.363 1.802-.843-.074 1.397-.96 2.261-2.453 2.261-.512 0-1.067-.16-1.355-.32l-.384 1.195z"}),(0,y.jsx)("rect",{width:"14.933",height:"14.933",x:"0.533",y:"0.533",stroke:"#fff",strokeWidth:"1.067",rx:"7.467"})]})},A=r(12341);function N(e,t,r,n){if(r<=0||n<=0||n>1)return{height:-1,width:-1,parentHeight:e,parentWidth:t};var a=e*t,i=1/n*r,s=Math.sqrt(a/i);return{height:s,width:s*r,parentHeight:e,parentWidth:t}}r(83234);var _=r(43980);const I="SVnAziPF2z_cgAGrp6He",T="miG_SXrw265mkozdEHrJ",L="RWLySPhsOTyK2EsAGUgx",D="X_vuuyeQDD6IWI4aIE6k",P="VdyeU78LKQdX8Dclnfxr",M="Z12I3N4OnNvzRSNKOeUn",U="IDHZCFcj1ynmYu6Sm5SR",B="UmY163JiUcgJt2MKNyGW",F="SYKOtPBDhPSs6zGwbk6A";var G=r(47795),W=(0,n.A)((0,n.A)((0,n.A)((0,n.A)((0,n.A)({},G.E.XSMALL,M),G.E.SMALL,M),G.E.MEDIUM,U),G.E.LARGE,B),G.E.XLARGE,B),V=function(e){var t,r,n=e.image,a=e.title,i=e.description,s=e.primaryButton,o=e.secondaryButton,c=e.renderExtraInfo,l=e.style,u=e.className,d=e.size,m=void 0===d?G.E.SMALL:d,p="string"==typeof a?(0,y.jsx)("h2",{className:L,children:a}):(0,y.jsx)("div",{className:L,children:a});return i&&(t="string"==typeof i?(0,y.jsx)("p",{className:D,children:i}):(0,y.jsx)("div",{className:D,children:i})),o&&(r=(0,y.jsx)("div",{className:F,children:o})),(0,y.jsxs)("div",{className:C()("".concat(I," ").concat(W[m]),u),style:l,"data-testid":"dialog-root",children:[n&&(0,y.jsx)("div",{className:P,children:(0,y.jsx)(_._,{loading:"lazy",src:n})}),(0,y.jsxs)("div",{className:T,children:[p,t,s,r,c&&c()]})]})};const z="dzS9k6yn4XzF3jWcS3W2",H="ezHLQVkVclgu_n15ybG6",K="gQ3lUcmizympex29IHL7",Y="VDUUJg30Ewzy9OP54arn";function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Z=(0,n.A)((0,n.A)((0,n.A)({},G.E.SMALL,1),G.E.MEDIUM,.72),G.E.LARGE,1.82),J=(0,n.A)((0,n.A)((0,n.A)({},G.E.SMALL,0),G.E.MEDIUM,600),G.E.LARGE,1024),X=function(e){var t=e.image,r=e.onConfirm,a=e.backgroundColor,i=function(e){return Object.keys(J).reverse().find((function(t){var r=J[t];return e>=r?t:null}))}(window.innerWidth),s=function(e,t){var r=(0,o.useState)((function(){return N(window.innerHeight,window.innerWidth,e,t)})),n=(0,A.A)(r,2),a=n[0],i=n[1],s=(0,o.useRef)(),c=(0,o.useCallback)((function(){i(N(window.innerHeight,window.innerWidth,e,t))}),[e,t]);return(0,o.useEffect)((function(){return s.current||(i(N(window.innerHeight,window.innerWidth,e,t)),window.addEventListener("resize",c),s.current=!0),function(){s.current&&(i(N(window.innerHeight,window.innerWidth,e,t)),window.removeEventListener("resize",c),s.current=!1)}}),[e,t,c]),a}(Z[i],.3333333333333333),c=a?{backgroundColor:a}:{},l=function(e,t,r,n){return e===G.E.SMALL?{width:"100vw",height:"100vh"}:e===G.E.MEDIUM&&n<750||e===G.E.LARGE&&n<520?{width:"inherit",height:"inherit"}:{width:"".concat(Math.ceil(t),"px"),height:"".concat(Math.ceil(r),"px")}}(i,s.width,s.height,s.parentHeight),u=(0,y.jsxs)("span",{children:[(0,y.jsx)("span",{className:H,children:p.Ru.get("age.restriction.explicitContent")}),(0,y.jsx)(S,{className:K})]}),d=(0,y.jsx)(w.$,{colorSet:"invertedLight",onClick:r,children:p.Ru.get("age.restriction.continue")});return(0,y.jsx)(V,{className:C()(z,(0,n.A)({},Y,1===Z[i])),style:Q(Q({},l),c),image:t,title:p.Ru.get("age.restriction.confirmAge"),description:u,primaryButton:d,size:i})};const $="J2uBhFKAVeDnSUb6Diq_",ee="dlCbZFZLaxVOGbVUleiV";var te=function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){var t=e.ageRestriction;return{image:"",backgroundColor:t.dialog.backgroundColor,providerUrl:t.dialog.providerUrl}}),(function(e,t){return e.image===t.image&&e.backgroundColor===t.backgroundColor&&e.providerUrl===t.providerUrl})),r=t.image,n=t.backgroundColor,a=t.providerUrl;return(0,y.jsxs)("div",{className:$,children:[(0,y.jsx)(X,{image:r,onConfirm:function(){window.location.assign(a)},backgroundColor:n}),(0,y.jsx)("div",{className:ee,children:(0,y.jsx)(j.H,{onClick:function(){e((0,k.Rb)())},children:p.Ru.get("close")})})]})},re=function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ageRestriction.isOpen}));return(0,y.jsx)(f.A,{animated:!0,onRequestClose:function(){e((0,k.Rb)())},contentLabel:p.Ru.get("age.restriction.confirmAge"),isOpen:t,children:(0,y.jsx)(te,{})})},ne=r(38195),ae=r(61548),ie=r(62774),se=r(65249),oe=r(32218),ce=r(6963);const le="main-keyboardShortcutsHelpModal-container",ue="gPDYH11Cr1B2ZtS9z0P8",de="IIQWD0tGOaagAN9uP_4h",me="LdrQgiV3Kav0IR6Oqsej";var pe=(0,o.memo)((function(){var e=(0,c.wA)(),t=(0,c.d4)(se.Ht).user,r=(0,c.d4)((function(e){return e.ui.blockUserDialog})),n=r.name,i=r.uri,l=r.isOpen,u=(0,ie.d)().enqueueSnackbar,m=(0,ce.A9)(),g=(0,o.useCallback)((0,a.A)(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t&&i){r.next=2;break}return r.abrupt("return");case 2:return r.prev=2,r.next=5,(0,oe.rn)(m,{currentUserUri:null==t?void 0:t.uri,uri:i});case 5:e((0,ae.xF)()),u(p.Ru.get("feedback.block-user")),r.next=13;break;case 9:throw r.prev=9,r.t0=r.catch(2),e((0,ae.xF)()),r.t0;case 13:case"end":return r.stop()}}),r,null,[[2,9]])}))),[t,i,m,e,u]),v=(0,o.useCallback)((function(){e((0,ae.xF)())}),[e]),b=(0,o.useCallback)((function(){e((0,ae.xF)())}),[e]);return(0,y.jsx)(f.A,{animated:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:b,contentLabel:p.Ru.get("block-user.dialog.title",n),isOpen:l,children:(0,y.jsxs)("div",{className:le,children:[(0,y.jsx)(d.E,{as:"h2",variant:"bodyMediumBold",className:ue,children:p.Ru.get("block-user.dialog.title",n)}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",className:de,paddingBottom:ne.lT,children:p.Ru.get("block-user.dialog.description",n)}),(0,y.jsxs)("div",{className:C()("encore-light-theme",me),children:[(0,y.jsx)(j.H,{buttonSize:j.H.md,onClick:v,children:p.Ru.get("block-user.dialog.cancel")}),(0,y.jsx)(w.$,{onClick:g,buttonSize:w.$.md,children:p.Ru.get("block-user.dialog.block")})]})]})})})),ge=(r(9657),r(44286)),fe=r(80366),ve=r(1868),be=r(8574),he=r(77414),xe=(0,o.memo)((function(){var e=(0,c.wA)(),t=(0,be.W)(),r=(0,he.Z)().removeFolder,n=(0,ge.Zp)(),a=(0,ge.zy)(),i=(0,c.d4)((function(e){return e.ui.deleteFolderDialog})),s=i.uri,l=i.onDeleteCallback,u=(0,o.useCallback)((function(){e((0,ae.c$)())}),[e]),d=(0,o.useCallback)((function(){var e;s&&(t({targetUri:s,intent:"delete-folder",type:"click",itemIdSuffix:"delete"}),r(s),u(),null!==(e=(0,fe.o_)(s))&&void 0!==e&&e.toURLPath().endsWith(a.pathname)&&n("/",{replace:!0}),l&&l())}),[s,t,r,u,a.pathname,l,n]);return(0,y.jsx)(ve.T,{"aria-label":p.Ru.get("folder.delete-header"),titleText:p.Ru.get("folder.delete-header"),onConfirm:d,onClose:u,confirmText:p.Ru.get("contextmenu.delete"),confirmLabel:p.Ru.get("folder.delete-header"),cancelText:p.Ru.get("queue.cancel-button")})})),Re=r(99888),ye=r(38004),Ee=(r(34518),r(60482),r(94592),r(88345),r(2823),r(72865),r(65594),r(78397),r(4672),{"&":"&","<":"<",">":">",'"':""","'":"'"}),ke=/[&<>"']/g,je=RegExp(ke.source);var Oe=Object.values(Ee);RegExp("".concat(Oe.join("|")),"g"),RegExp("".concat(Oe.join("|")));var Ce=(0,o.memo)((function(e){var t,r=e.uri,n=(0,ge.Zp)(),a=(0,ge.zy)(),i=(0,c.wA)(),s=(0,be.W)(),l=(0,Re.A)(r),u=(0,A.A)(l,2)[1],d=(0,ye.J)(r),m=(0,o.useCallback)((function(){s({targetUri:r,intent:"delete-playlist",type:"click",itemIdSuffix:"delete"}),u(!1),i((0,ae._P)()),(0,fe.B2)(r,a.pathname)&&n("/",{replace:!0})}),[s,r,u,i,a.pathname,n]),g=(0,o.useCallback)((function(){i((0,ae._P)())}),[i]);return d&&(0,y.jsx)(ve.T,{"aria-label":p.Ru.get("playlist.delete",d.name),titleText:p.Ru.get("playlist.delete-title",d.name),descriptionText:p.Ru.get("playlist.delete-description",(t=d.name,t&&je.test(t)?t.replace(ke,(function(e){return e in Ee?Ee[e]:e})):t)),onConfirm:m,onClose:g,confirmText:p.Ru.get("contextmenu.delete"),confirmLabel:p.Ru.get("playlist.delete",d.name),cancelText:p.Ru.get("queue.cancel-button"),allowHTML:!0})})),we=function(){var e=(0,c.d4)((function(e){return e.ui.deletePlaylistDialog.uri}));return e?(0,y.jsx)(Ce,{uri:e}):null},Se=(0,o.lazy)((0,a.A)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(8493).then(r.bind(r,39192));case 2:return t=e.sent,n=t.AboutSpotifyModal,e.abrupt("return",{default:n});case 5:case"end":return e.stop()}}),e)})))),Ae=(0,o.lazy)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(8493).then(r.bind(r,18618));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))));function Ne(){return(0,y.jsxs)(o.Suspense,{fallback:null,children:[(0,y.jsx)(Se,{}),(0,y.jsx)(Ae,{})]})}var _e=r(42551),Ie=r(96334),Te=r(45017);const Le="main-duplicateTrackModal-container",De="main-duplicateTrackModal-title",Pe="main-duplicateTrackModal-description",Me="main-duplicateTrackModal-buttonContainer";function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe=(0,_e.Mz)((function(e){return e.duplicateTracks}),(function(e){var t=!!e.uri;return Be(Be({},e),{},{onlyOneTrack:t,uris:t&&e.uri?[e.uri]:e.uris})})),Ge=(0,o.memo)((function(){var e,t=(0,c.wA)(),r=(0,Te.m)(),n=(0,c.d4)(Fe),a=n.isOpen,i=n.playlistName,s=n.playlistUri,l=n.uris,u=void 0===l?[]:l,m=n.onlyOneTrack,g=n.position,v=void 0===g?{after:"end"}:g,b=n.newUris,h=void 0===b?[]:b,x=null==h?void 0:h.length,R=!m&&x,E=(0,o.useCallback)((function(){R&&r.add(s,h,v),t((0,Ie.Qo)())}),[r,R,h,v,s,t]),k=(0,o.useCallback)((function(){r.add(s,u,v),t((0,Ie.Qo)())}),[r,u,v,s,t]),O=(0,o.useCallback)((function(){t((0,Ie.Qo)())}),[t]);return e=R?p.Ru.get("duplicate.tracks.someAlreadyAddedDescription",i):m?p.Ru.get("duplicate.tracks.oneAlreadyAdded",i):p.Ru.get("duplicate.tracks.allAlreadyAdded",i),(0,y.jsx)(f.A,{animated:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:O,contentLabel:p.Ru.get("duplicate.tracks.alreadyAdded"),isOpen:a,children:(0,y.jsxs)("div",{className:Le,children:[(0,y.jsx)(d.E,{as:"h2",variant:"bodyMediumBold",className:De,children:R?p.Ru.get("duplicate.tracks.someAlreadyAdded"):p.Ru.get("duplicate.tracks.alreadyAdded")}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",className:Pe,paddingBottom:ne.lT,children:e}),(0,y.jsxs)("div",{className:C()("encore-light-theme",Me),children:[(0,y.jsx)(j.H,{onClick:k,children:R?p.Ru.get("duplicate.tracks.addAll"):p.Ru.get("duplicate.tracks.addAnyway")}),(0,y.jsx)(w.$,{onClick:E,children:R?p.Ru.get("duplicate.tracks.addNewOnes"):p.Ru.get("duplicate.tracks.dontAdd")})]})]})})})),We=r(79420),Ve=r(34995),ze=r(21908),He=r(25884),Ke=r(98558),Ye=r(65884),qe=r(78527),Qe=r(87213),Ze=r(71245),Je=r(29212),Xe=r(51236),$e=r(47305),et=r(12430),tt=r(12574),rt=function(){var e,t,r=(0,ge.Zp)(),n=(0,c.wA)(),i=(0,ge.zy)(),o=(0,c.d4)((function(e){return e.ui.history.canGoBack})),l=(0,c.d4)((function(e){return e.ui.history.canGoForward})),u=(0,Xe.A)().createPlaylist,d=(0,he.Z)().createFolder,m=(0,et.L)(),g=m.openURL,f=m.openURLWithSessionTransfer,v=(0,tt.r)(Ve.r,{data:{uri:null!==(e=null===(t=(0,fe.o_)(i.pathname))||void 0===t?void 0:t.toURI())&&void 0!==e?e:""},parentAbsoluteLocation:{locations:[]}}),b=v.spec,h=v.logger;return(0,qe.x)(Ye.W.CREATE_NEW_PLAYLIST,(0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:case"end":return e.stop()}}),e)})))),(0,qe.x)(Ye.W.CREATE_NEW_FOLDER,(0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(p.Ru.get("playlist.default_folder_name"),{before:"start"});case 2:case"end":return e.stop()}}),e)})))),(0,qe.x)(Ye.W.BROWSE_BACKWARD,(function(){o&&r(-1)})),(0,qe.x)(Ye.W.BROWSE_FORWARD,(function(){l&&r(1)})),(0,qe.x)(Ye.W.LOGOUT,(function(){n((0,$e.wH)())})),(0,qe.x)(Ye.W.SHOW_ABOUT,(function(){n((0,ze.Uu)())})),(0,qe.x)(Ye.W.SHOW_PREFERENCES,(function(){r("/preferences")})),(0,qe.x)(Ye.W.SHOW_ACCOUNT,(function(){f("https://spotify.com/account/overview/")})),(0,qe.x)(Ye.W.SHOW_COMMUNITY,(function(){f("https://community.spotify.com/")})),(0,qe.x)(Ye.W.SHOW_HELP,(function(){f("https://support.spotify.com/")})),(0,qe.x)(Ye.W.SHOW_LICENSES,(function(){n((0,He.FS)())})),(0,qe.x)(Ye.W.SHOW_LICENSING_INFORMATION,(function(){g("https://www.spotify.com/int/legal/licensing-info/")})),(0,qe.x)(Ye.W.SHOW_SCTA_INFORMATION,(function(){g("https://www.spotify.com/int/legal/specified-commercial-transactions")})),(0,qe.x)(Ye.W.ENTER_FULLSCREEN,(function(){h.logInteraction(b.fullscreenButtonFactory().hitUiReveal()),n((0,ae.Kk)())})),(0,qe.x)(Ye.W.LEAVE_FULLSCREEN,(function(){h.logInteraction(b.fullscreenButtonFactory().hitUiHide()),n((0,ae.DH)())})),(0,qe.x)(Ye.W.SET_PLATFORM_EMULATION_AUTO,(function(){(0,Ke.O)((0,Ze.My)(),(0,Je.D)())})),(0,qe.x)(Ye.W.SET_PLATFORM_EMULATION_MACOS,(function(){(0,Ke.O)((0,Ze.My)(),Qe.f.macOS)})),(0,qe.x)(Ye.W.SET_PLATFORM_EMULATION_WINDOWS,(function(){(0,Ke.O)((0,Ze.My)(),Qe.f.Windows)})),(0,qe.x)(Ye.W.SET_PLATFORM_EMULATION_LINUX,(function(){(0,Ke.O)((0,Ze.My)(),Qe.f.Linux)})),null},nt=r(15436),at=(r(25550),r(15342),r(70750),r(9856)),it=r.n(at);const st="main-keyboardShortcutsHelpModal-container",ot="main-keyboardShortcutsHelpModal-header",ct="main-keyboardShortcutsHelpModal-closeBtn",lt="main-keyboardShortcutsHelpModal-sectionsContainer",ut="main-keyboardShortcutsHelpModal-sections",dt="main-keyboardShortcutsHelpModal-sectionHeading",mt="main-keyboardShortcutsHelpModal-sectionItem",pt="main-keyboardShortcutsHelpModal-sectionItemName",gt="main-keyboardShortcutsHelpModal-key";var ft=function(e){switch(e){case"mod":return"macOS"===it().getParser(window.navigator.userAgent).getOSName()?"⌘":"Ctrl";case"command":return"⌘";case"alt":return"macOS"===it().getParser(window.navigator.userAgent).getOSName()?"⌥":"Alt";case"shift":case"ctrl":case"space":return e[0].toUpperCase()+e.slice(1);case"up":return"↑";case"right":return"→";case"down":return"↓";case"left":return"←";default:return e.toUpperCase()}},vt=(0,o.memo)((function(e){var t=e.children;return(0,y.jsx)(d.E,{as:"kbd",variant:"bodyMedium",className:gt,children:ft(t)})})),bt=function(e){var t=e.combinations;return(0,y.jsx)(y.Fragment,{children:t.map((function(e,r){var n=e.split("+");return(0,y.jsxs)(o.Fragment,{children:[n.map((function(e){return(0,y.jsx)(vt,{children:e},e)})),r<t.length-1&&(0,y.jsxs)(d.E,{variant:"bodyMedium",children:[" ",p.Ru.get("keyboard.shortcuts.or")," "]})]},e)}))})},ht=r(96673),xt=function(e){var t=e.shortcuts,r=e.sectionTitle;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.E,{as:"h2",className:dt,variant:"titleSmall",children:r}),(0,y.jsx)("ul",{children:t.map((function(e){return e.enabled?(0,y.jsxs)("li",{className:mt,children:[(0,y.jsx)(d.E,{variant:"bodyMedium",className:pt,children:e.description}),(0,y.jsx)(bt,{combinations:ht.g[e.action]})]},e.action):null}))})]})},Rt=r(64448),yt=r(58114);var Et=(0,o.memo)((function(){var e,t,r=(e=(0,l.NC)(yt.DHV,{loadingValue:!1}),t=(0,Ze.Ek)(),{basic:[{action:Rt.r.CREATE_NEW_PLAYLIST,get description(){return p.Ru.get("playlist.new-header")},enabled:!0},{action:Rt.r.CREATE_NEW_FOLDER,get description(){return p.Ru.get("keyboard.shortcuts.description.createNewFolder")},enabled:!0},{action:Rt.r.OPEN_CONTEXT_MENU,get description(){return p.Ru.get("keyboard.shortcuts.description.openContextMenu")},enabled:!0},{action:Rt.r.OPEN_SEARCH_MODAL,get description(){return p.Ru.get("keyboard.shortcuts.description.openSearchModal")},enabled:!0},{action:Rt.r.SELECT_ALL,get description(){return p.Ru.get("keyboard.shortcuts.description.selectAll")},enabled:t},{action:Rt.r.FILTER,get description(){return p.Ru.get("filter")},enabled:t},{action:Rt.r.FOCUS_YLX_TEXT_FILTER,get description(){return p.Ru.get("web-player.your-library-x.text-filter.generic-placeholder")},enabled:!0},{action:Rt.r.LOG_OUT,get description(){return p.Ru.get("user.log-out")},enabled:!0}],playback:[{action:Rt.r.TOGGLE_PLAY,get description(){return p.Ru.get("keyboard.shortcuts.description.togglePlay")},enabled:!0},{action:Rt.r.LIKE_DISLIKE_SONG,get description(){return p.Ru.get("keyboard.shortcuts.description.likeDislikeSong")},enabled:!0},{action:Rt.r.SHUFFLE,get description(){return p.Ru.get("keyboard.shortcuts.description.shuffle")},enabled:!0},{action:Rt.r.REPEAT,get description(){return p.Ru.get("keyboard.shortcuts.description.repeat")},enabled:!0},{action:Rt.r.SKIP_PREVIOUS,get description(){return p.Ru.get("keyboard.shortcuts.description.skipPrev")},enabled:!0},{action:Rt.r.SKIP_NEXT,get description(){return p.Ru.get("keyboard.shortcuts.description.skipNext")},enabled:!0},{action:Rt.r.SEEK_BACKWARD,get description(){return p.Ru.get("keyboard.shortcuts.description.seekBackward")},enabled:!0},{action:Rt.r.SEEK_FORWARD,get description(){return p.Ru.get("keyboard.shortcuts.description.seekForward")},enabled:!0},{action:Rt.r.RAISE_VOLUME,get description(){return p.Ru.get("keyboard.shortcuts.description.raiseVolume")},enabled:!0},{action:Rt.r.LOWER_VOLUME,get description(){return p.Ru.get("keyboard.shortcuts.description.lowerVolume")},enabled:!0}],navigation:[{action:Rt.r.GO_TO_HOME,get description(){return p.Ru.get("keyboard.shortcuts.description.home")},enabled:!0},{action:Rt.r.GO_BACKWARDS,get description(){return p.Ru.get("keyboard.shortcuts.description.goBackwards")},enabled:!0},{action:Rt.r.GO_FORWARDS,get description(){return p.Ru.get("keyboard.shortcuts.description.goForwards")},enabled:!0},{action:Rt.r.GO_TO_PREFERENCES,get description(){return p.Ru.get("keyboard.shortcuts.description.goToPreferences")},enabled:t},{action:Rt.r.GO_TO_NOW_PLAYING,get description(){return p.Ru.get("keyboard.shortcuts.description.currentlyPlaying")},enabled:!0},{action:Rt.r.GO_TO_SEARCH,get description(){return p.Ru.get("keyboard.shortcuts.description.search")},enabled:!0},{action:Rt.r.GO_TO_LIKED_SONGS,get description(){return p.Ru.get("keyboard.shortcuts.description.likedSongs")},enabled:!0},{action:Rt.r.GO_TO_QUEUE,get description(){return p.Ru.get("playback-control.queue")},enabled:!0},{action:Rt.r.GO_TO_LIBRARY,get description(){return p.Ru.get("web-player.your-library-x.your-library")},enabled:!0},{action:Rt.r.GO_TO_PLAYLISTS,get description(){return p.Ru.get("keyboard.shortcuts.description.yourPlaylists")},enabled:!0},{action:Rt.r.GO_TO_PODCASTS,get description(){return p.Ru.get("keyboard.shortcuts.description.yourPodcasts")},enabled:!0},{action:Rt.r.GO_TO_ARTISTS,get description(){return p.Ru.get("keyboard.shortcuts.description.yourArtists")},enabled:!0},{action:Rt.r.GO_TO_ALBUMS,get description(){return p.Ru.get("keyboard.shortcuts.description.yourAlbums")},enabled:!0},{action:Rt.r.GO_TO_AUDIOBOOKS,get description(){return p.Ru.get("keyboard.shortcuts.description.yourAudiobooks")},enabled:!0},{action:Rt.r.GO_TO_MADE_FOR_YOU,get description(){return p.Ru.get("keyboard.shortcuts.description.madeForYour")},enabled:!0},{action:Rt.r.GO_TO_NEW_RELEASES,get description(){return p.Ru.get("new_releases")},enabled:!0},{action:Rt.r.GO_TO_CHARTS,get description(){return p.Ru.get("keyboard.shortcuts.description.charts")},enabled:!0},{action:Rt.r.GO_TO_BUDDY_FEED,get description(){return p.Ru.get("buddy-feed.friend-activity")},enabled:!0},{action:Rt.r.GO_TO_DEVICE_PICKER,get description(){return p.Ru.get("spotify-connect")},enabled:!0}],layout:[{action:Rt.r.TOGGLE_YLX_SIDEBAR,get description(){return p.Ru.get("keyboard.shortcuts.layout.toggleLeftSidebar")},enabled:!0},{action:Rt.r.YLX_SIDEBAR_DECREASE_WIDTH,get description(){return p.Ru.get("keyboard.shortcuts.layout.navigationBarDecreaseWidth")},enabled:!0},{action:Rt.r.YLX_SIDEBAR_INCREASE_WIDTH,get description(){return p.Ru.get("keyboard.shortcuts.layout.navigationBarIncreaseWidth")},enabled:!0},{action:Rt.r.TOGGLE_NPV_SIDEBAR,get description(){return p.Ru.get("keyboard.shortcuts.layout.toggleRightSidebar")},enabled:!0},{action:Rt.r.NPV_SIDEBAR_DECREASE_WIDTH,get description(){return p.Ru.get("keyboard.shortcuts.layout.rightSidebarDecreaseWidth")},enabled:!0},{action:Rt.r.NPV_SIDEBAR_INCREASE_WIDTH,get description(){return p.Ru.get("keyboard.shortcuts.layout.rightSidebarIncreaseWidth")},enabled:!0}],employee:[{action:Rt.r.TOGGLE_DEBUG_WINDOW,description:"Toggle Debug Window",enabled:e}]}),n=(0,c.wA)(),a=(0,c.d4)((function(e){return e.ui.keyboardShortcutsHelpModal.isOpen})),i=(0,o.useCallback)((function(){n((0,ae.wi)(!1))}),[n]),s=r.employee.filter((function(e){return e.enabled}));return(0,y.jsx)(f.A,{isOpen:a,onRequestClose:i,contentLabel:p.Ru.get("keyboard.shortcuts.help.heading"),children:(0,y.jsxs)("div",{className:st,children:[(0,y.jsxs)("div",{className:ot,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleMedium",children:p.Ru.get("keyboard.shortcuts.help.heading")}),(0,y.jsx)("button",{"aria-label":p.Ru.get("close"),className:ct,onClick:i,children:(0,y.jsx)(nt.A,{width:18,height:18,fill:"currentColor"})}),(0,y.jsxs)(d.E,{variant:"bodyMedium",as:"p",children:[p.Ru.get("keyboard.shortcuts.help.subheading.press")," ",(0,y.jsx)(bt,{combinations:ht.g.OPEN_HELP})," ",p.Ru.get("keyboard.shortcuts.help.subheading.toToggle")]})]}),(0,y.jsx)("div",{className:lt,children:(0,y.jsxs)("div",{className:ut,tabIndex:0,children:[(0,y.jsx)(xt,{shortcuts:r.basic,sectionTitle:p.Ru.get("keyboard.shortcuts.section.basic")}),(0,y.jsx)(xt,{shortcuts:r.playback,sectionTitle:p.Ru.get("keyboard.shortcuts.section.playback")}),(0,y.jsx)(xt,{shortcuts:r.navigation,sectionTitle:p.Ru.get("keyboard.shortcuts.section.navigation")}),(0,y.jsx)(xt,{shortcuts:r.layout,sectionTitle:p.Ru.get("keyboard.shortcuts.section.layout")}),s.length>0?(0,y.jsx)(xt,{shortcuts:s,sectionTitle:"Employee"}):null]})})]})})})),kt=r(72316);const jt="ABD0FGjBGqGZG33bP7Lc",Ot="iV_SwHyMafiGlMDhlcB5",Ct="gMEKhUL8rKx7DhSDUVk7",wt="Z0v7BXnINL5FxFXjQIzE";var St=o.memo((function(e){var t,r=e.playlistUri,n=(0,c.wA)(),a=(0,ge.Zp)(),i=(0,be.W)(),s=(0,Re.A)(r),l=(0,A.A)(s,2),u=l[0],m=l[1],g=(0,c.d4)(se.Ht).user,v=(0,ye.J)(r),b=(0,kt.x)(r).removeMember,h=null==v||null===(t=v.permissions)||void 0===t?void 0:t.isPrivate,x=null==v?void 0:v.canAdd,R=(0,o.useCallback)((function(){null!=g&&g.id&&(i({intent:"playlisting",type:"click"}),u&&h&&m(!1),b(null==g?void 0:g.id),n((0,ae.mE)()),a("/"))}),[null==g?void 0:g.id,i,u,h,b,n,a,m]),E=(0,o.useCallback)((function(){n((0,ae.mE)())}),[n]),k=p.Ru.get("leave-playlist.dialog.leave"),O=p.Ru.get("leave-playlist.dialog.private-description");return h||(O=x?p.Ru.get("leave-playlist.dialog.public-contributor-description"):p.Ru.get("leave-playlist.dialog.public-listener-description")),(0,y.jsx)(f.A,{animated:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:E,contentLabel:k,isOpen:!0,children:(0,y.jsxs)("div",{className:jt,children:[(0,y.jsx)(d.E,{as:"h2",variant:"bodyMediumBold",className:Ot,children:p.Ru.get("leave-playlist.dialog.title")}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",className:Ct,paddingBottom:ne.lT,children:O}),(0,y.jsxs)("div",{className:C()("encore-light-theme",wt),children:[(0,y.jsx)(j.H,{onClick:E,children:p.Ru.get("leave-playlist.dialog.cancel")}),(0,y.jsx)(w.$,{onClick:R,children:k})]})]})})})),At=o.memo((function(){var e=(0,c.d4)((function(e){return e.ui.leavePlaylistDialog})),t=e.isOpen,r=e.playlistUri;return r&&t?(0,y.jsx)(St,{playlistUri:r}):null})),Nt=(r(65050),r(43772)),_t=r(51902),It=r(51403);function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Lt=function(e){return(0,y.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({alt:"Zara Larsson",src:(0,Nt.b)("images/zara-larsson-singles.png")},e))},Dt=r(74891),Pt=r(99426);const Mt="m7yI2BjDd8Jfq4bwU_IT",Ut="A0uXWh53dpxhad3t59v_",Bt="jN93nx_3NxRM0qYmOmjB",Ft="x_mFp6qsLw0AgSON4gdy",Gt="aS3WvPBqyZdP1S28pn6r",Wt="FvaVPD0bBm4QOZEKRYOm",Vt="nRjGqzP1Yyg9utpJtFEG",zt="lljaf1wMpxMQY1AVr1sf",Ht="Mhj98HFd0jXE916R2Ggz",Kt="TicfIwifH276e2046RzG",Yt="ONMHZOOfFwfCPGr5rKNp",qt="ZQ94gWpWwDhhvQ7bRv9S",Qt="DNkhD0rW2qSWeBj4HBIZ";var Zt=o.memo((function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ui.loginToListenDialog.isOpen})),r=(0,be.W)();r({intent:"navigate",type:"view"});var n=(0,o.useCallback)((function(){r({intent:"close",type:"click"}),e((0,ae.k0)())}),[e,r]),a=(0,ge.Zp)(),i=(0,It.k)(),s=i.url,l=i.isExternal,u=(0,o.useCallback)((function(t){r({intent:"upgrade-to-premium",type:"click"}),e((0,ae.k0)()),t?!1===l?a("/premium"):window.open(s,"_blank"):window.open(Pt.zd,"_blank")}),[r,e,s,l,a]);return(0,y.jsx)(_t.u,{property:yt.StW,renderOldExperience:function(){return(0,y.jsx)(f.A,{animated:!0,isOpen:t,className:Vt,overlayClassName:zt,contentLabel:p.Ru.get("mwp.d2p.modal.title"),onRequestClose:n,children:(0,y.jsxs)("div",{className:Mt,children:[(0,y.jsx)("div",{className:Wt,children:(0,y.jsx)(Lt,{className:Ut})}),(0,y.jsxs)("div",{className:"".concat(Wt),children:[(0,y.jsx)("div",{className:Bt,children:(0,y.jsx)(Dt.T,{color:"var(--spice-text)",height:"23"})}),(0,y.jsx)(d.E,{as:"h1",variant:"titleMedium",children:p.Ru.get("mwp.d2p.modal.title")}),(0,y.jsx)(d.E,{as:"p",variant:"bodyMedium",children:p.Ru.get("mwp.d2p.modal.description")}),(0,y.jsx)(w.$,{onClick:u.bind(null,!0),className:"".concat(Ft),children:p.Ru.get("mwp.d2p.modal.cta")}),(0,y.jsx)(j.H,{onClick:n,className:"".concat(Ft," ").concat(Gt),children:p.Ru.get("mwp.d2p.modal.dismiss")})]})]})})},renderNewExperience:function(){return(0,y.jsx)(f.A,{animated:!0,isOpen:t,className:Vt,overlayClassName:zt,contentLabel:p.Ru.get("mwp.d2p.modal.title"),onRequestClose:n,children:(0,y.jsxs)("div",{className:"".concat(Mt," ").concat(Ht),children:[(0,y.jsx)("div",{className:"".concat(Wt," ").concat(Qt),children:(0,y.jsx)("img",{alt:p.Ru.get("midyear.cta"),src:(0,Nt.b)("images/mid-year.png")})}),(0,y.jsxs)("div",{className:"".concat(Wt),children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleMedium",children:p.Ru.get("midyear.title")}),(0,y.jsx)(d.E,{as:"p",variant:"bodyMedium",children:p.Ru.get("midyear.intro")}),(0,y.jsx)(w.$,{onClick:u.bind(null,!1),className:"".concat(Ft," ").concat(Kt),children:p.Ru.get("midyear.cta")}),(0,y.jsx)(j.H,{onClick:n,className:"".concat(Ft," ").concat(Gt," ").concat(Yt),children:p.Ru.get("mwp.d2p.modal.dismiss")}),(0,y.jsx)(d.E,{as:"p",className:qt,variant:"marginal",dangerouslySetInnerHTML:{__html:p.Ru.get("midyear.terms",{help_link:"https://www.spotify.com/legal/premium-promotional-offer-terms/"})}})]})]})})}})})),Jt=o.memo((function(){return(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Zt,{})})})),Xt=r(48161),$t=r(14515),er=r(72918),tr=r(27842),rr=r(2881),nr=r(70566);const ar="Gq0nmqrHqipmGwpzAmPM",ir="SlF1l98yxyaNXDn4clyB";var sr=function(){var e=(0,c.wA)(),t=(0,ge.Zp)(),r=(0,nr.s)(),n=(0,tr.j)(),a=(0,c.d4)((function(e){return e.ui.learnMorePersonalizedRecommendationsModal})).isOpen,i=function(){e(rr.r8.actions.close()),r.logInteraction(n.cancelButtonFactory().hitUiHide())};return(0,y.jsx)(f.A,{isOpen:a,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:i,contentLabel:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-header"),animated:!0,children:(0,y.jsx)(Xt.Q,{className:ar,dialogTitle:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-header"),"aria-label":p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-header"),body:(0,y.jsxs)("div",{className:ir,children:[(0,y.jsx)(d.E,{variant:"bodySmall",semanticColor:"textSubdued",as:"p",children:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-body")}),(0,y.jsx)(d.E,{variant:"bodySmallBold",semanticColor:"textBase",as:"h2",children:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-body-missing-features-intro")}),(0,y.jsxs)($t.b,{as:"ul",children:[(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-1")}),(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-2")}),(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-3")})]}),(0,y.jsx)(d.E,{variant:"bodySmallBold",semanticColor:"textBase",as:"h2",children:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-body-persistent-features-intro")}),(0,y.jsx)($t.b,{condensed:!0,as:"ul",children:(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-persistent-features-1")})})]}),footer:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j.H,{onClick:i,size:"small",condensed:!0,children:p.Ru.get("web-player.settings.personalized-recommendations.modal-cancel")}),(0,y.jsx)(w.$,{onClick:function(){t("/preferences?highlight=dsa"),e(rr.r8.actions.close()),r.logInteraction(n.goToSettingsButtonFactory().hitUiNavigate({destination:"/preferences"}))},size:"small",colorSet:"invertedLight",children:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-confirm")})]}),legal:(0,y.jsx)(d.E,{variant:"marginal",semanticColor:"textBase",as:"p",children:p.Ru.get("web-player.settings.personalized-recommendations-turned-off.modal-disclaimer")})})})},or=r(77724),cr=function(){var e=(0,c.wA)(),t=(0,nr.s)(),r=(0,or.H)(),n=(0,c.d4)((function(e){return e.ui.turnOffPersonalizedRecommendationsModal})),a=n.isOpen,i=n.onConfirm,s=function(){e(rr.UU.actions.close()),t.logInteraction(r.cancelButtonFactory().hitUiHide())};return(0,y.jsx)(f.A,{isOpen:a,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:s,contentLabel:p.Ru.get("web-player.settings.personalized-recommendations.modal-header"),animated:!0,children:(0,y.jsx)(Xt.Q,{className:ar,dialogTitle:p.Ru.get("web-player.settings.personalized-recommendations.modal-header"),"aria-label":p.Ru.get("web-player.settings.personalized-recommendations.modal-header"),body:(0,y.jsxs)("div",{className:ir,children:[(0,y.jsx)(d.E,{variant:"bodySmall",semanticColor:"textSubdued",as:"p",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body")}),(0,y.jsx)(d.E,{variant:"bodySmallBold",semanticColor:"textBase",as:"h2",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-intro")}),(0,y.jsxs)($t.b,{as:"ul",children:[(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-1")}),(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-2")}),(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-missing-features-3")})]}),(0,y.jsx)(d.E,{variant:"bodySmallBold",semanticColor:"textBase",as:"h2",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-persistent-features-intro")}),(0,y.jsx)($t.b,{condensed:!0,as:"ul",children:(0,y.jsx)(er.K,{condensed:!0,semanticColor:"textSubdued",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-body-persistent-features-1")})})]}),footer:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j.H,{onClick:s,size:"small",condensed:!0,children:p.Ru.get("web-player.settings.personalized-recommendations.modal-cancel")}),(0,y.jsx)(w.$,{onClick:function(){i(),e(rr.UU.actions.close()),t.logInteraction(r.turnOffPersonalizedRecommendationsButtonFactory().hitSettingDisable())},size:"small",colorSet:"invertedLight",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-confirm")})]}),legal:(0,y.jsx)(d.E,{variant:"marginal",semanticColor:"textBase",as:"p",children:p.Ru.get("web-player.settings.personalized-recommendations.modal-delay-disclaimer")})})})},lr=r(99723),ur=(r(19264),r(37865)),dr=r(20815),mr=r(20837),pr=r(42104),gr=r(54180),fr=r(69395),vr=r(12776),br=r(99430),hr=r(99159),xr=r(80021),Rr=r(85673),yr=r(67963);const Er="main-playlistEditDetailsModal-container",kr="main-playlistEditDetailsModal-content",jr="main-playlistEditDetailsModal-header",Or="main-playlistEditDetailsModal-closeBtn",Cr="main-playlistEditDetailsModal-albumCover",wr="main-playlistEditDetailsModal-imageLoadingContainer",Sr="main-playlistEditDetailsModal-imageChangeButton",Ar="main-playlistEditDetailsModal-imageDropDownContainer",Nr="main-playlistEditDetailsModal-imageDropDownButton",_r="main-playlistEditDetailsModal-textElement",Ir="main-playlistEditDetailsModal-textElementError",Tr="main-playlistEditDetailsModal-textElementInfo",Lr="main-playlistEditDetailsModal-title",Dr="main-playlistEditDetailsModal-textElementLabel",Pr="main-playlistEditDetailsModal-description",Mr="main-playlistEditDetailsModal-titleInput",Ur="main-playlistEditDetailsModal-titleInputWithPadding",Br="main-playlistEditDetailsModal-descriptionTextarea",Fr="main-playlistEditDetailsModal-save",Gr="main-playlistEditDetailsModal-disclaimer",Wr="main-playlistEditDetailsModal-characterCounter",Vr="main-playlistEditDetailsModal-titleCharacterCounter",zr="main-playlistEditDetailsModal-descriptionCharacterCounter",Hr="main-playlistEditDetailsModal-insertLinkButton";var Kr=function(e){var t=e.openImagePicker,r=e.onRemoveImage;return(0,y.jsx)("div",{className:Ar,children:(0,y.jsx)(xr.b,{menu:(0,y.jsxs)(Rr.W,{children:[(0,y.jsx)(yr.D,{role:"menuitem",onClick:t,leadingIcon:(0,y.jsx)(vr.d,{semanticColor:"textSubdued",size:"small"}),children:p.Ru.get("playlist.edit-details.change-photo")}),(0,y.jsx)(yr.D,{role:"menuitem",onClick:r,leadingIcon:(0,y.jsx)(br.x,{semanticColor:"textSubdued",size:"small"}),children:p.Ru.get("playlist.edit-details.remove-photo")})]}),children:(0,y.jsxs)("button",{className:Nr,type:"button",children:[(0,y.jsx)(hr.x,{size:"small","aria-hidden":"true"}),(0,y.jsx)("span",{className:"hidden-visually",children:p.Ru.get("edit_photo")})]})})})},Yr=r(9243),qr=function(e){var t=e.onClick;return(0,y.jsx)("button",{title:"Insert link",className:Hr,onClick:t,children:(0,y.jsx)(Yr.b,{size:"small","aria-hidden":"true"})})},Qr=r(79133),Zr=r.n(Qr);var Jr=function(e){var t=e.className,r=e.usedCharacters,a=e.maxCharacters,i=e.isVisible,s=void 0===i||i,o=function(e){var t,r;return e<=20?(t="assertive",r=!0):e<=60?(t="polite",r=!1):e<=70?(t="polite",r=!0):(t="off",r=!0),{ariaLive:t,ariaAtomic:r}}(a-r),c=o.ariaLive,l=o.ariaAtomic;return(0,y.jsx)("span",{className:C()(Wr,t,(0,n.A)({},"hidden-visually",!s)),"aria-label":p.Ru.get("character-counter"),"aria-live":c,"aria-atomic":l,children:"".concat(r,"/").concat(a)})},Xr=r(35609),$r=(0,o.forwardRef)((function(e,t){var r=e.autoFocus,a=e.handleOnChange,i=e.playlistDescription,s=e.maxNumCharacters,c=void 0===s?300:s,l=(0,o.useMemo)((function(){return"text-input-".concat((0,Xr.Yu)(8))}),[]),u=c-20,m=(0,o.useState)(!1),g=(0,A.A)(m,2),f=g[0],v=g[1],b=Zr()(i).length;return(0,o.useEffect)((function(){var e;r&&"function"!=typeof t&&(null==t||null===(e=t.current)||void 0===e||e.select())}),[r,t]),(0,y.jsxs)("div",{className:Pr,children:[(0,y.jsx)(d.E,{htmlFor:l,as:"label",variant:"marginalBold",className:Dr,children:p.Ru.get("playlist.edit-details.description-label")}),(0,y.jsx)("textarea",{ref:t,"data-testid":"playlist-edit-details-description-input",autoFocus:r,className:C()(_r,Br,(0,n.A)({},Tr,f)),onChange:function(e){var t=a(Zr()(e.target.value).slice(0,c).join(""));v(!!t)},placeholder:p.Ru.get("playlist.edit-details.description-placeholder"),value:i}),(0,y.jsx)(Jr,{className:zr,maxCharacters:c,usedCharacters:b,isVisible:b>=u})]})})),en=function(e){return e.CONTAINS_NEW_LINE="CONTAINS_NEW_LINE",e.CONTAINS_HTML="CONTAINS_HTML",e.SAVE_WARNING="SAVE_WARNING",e.OFFLINE_WARNING="OFFLINE_WARNING",e.FILE_TOO_BIG="FILE_TOO_BIG",e.IMAGE_TOO_SMALL="IMAGE_TOO_SMALL",e.IMAGE_TOO_BIG="IMAGE_TOO_BIG",e.IMAGE_TYPE_NOT_SUPPORTED="IMAGE_TYPE_NOT_SUPPORTED",e.IMAGE_FILE_UPLOAD_FAILED="IMAGE_FILE_UPLOAD_FAILED",e.NAME_REQUIRED="NAME_REQUIRED",e.UPDATE_DETAILS_FAILED="UPDATE_DETAILS_FAILED",e.IMAGE_INVALID_JPG="IMAGE_INVALID_JPG",e}(en||{}),tn={type:"info",code:en.CONTAINS_NEW_LINE,get message(){return p.Ru.get("playlist.edit-details.error.description-breaks")}},rn={type:"info",code:en.CONTAINS_HTML,get message(){return p.Ru.get("playlist.edit-details.error.invalid-html")}},nn={type:"info",code:en.SAVE_WARNING,get message(){return p.Ru.get("playlist.edit-details.error.unsaved-changes")}},an={type:"info",code:en.OFFLINE_WARNING,get message(){return p.Ru.get("playlist.edit-details.error.no-internet")}},sn={type:"error",code:en.FILE_TOO_BIG,get message(){return p.Ru.get("playlist.edit-details.error.file-size-exceeded",10)}},on={type:"error",code:en.IMAGE_TOO_SMALL,get message(){return p.Ru.get("playlist.edit-details.error.too-small",300,300)}},cn={type:"error",code:en.IMAGE_TOO_BIG,get message(){return p.Ru.get("playlist.edit-details.error.too-big",1e4,1e4)}},ln={type:"error",code:en.IMAGE_TYPE_NOT_SUPPORTED,get message(){return p.Ru.get("playlist.edit-details.error.image-type-not-supported")}},un={type:"error",code:en.IMAGE_FILE_UPLOAD_FAILED,get message(){return p.Ru.get("playlist.edit-details.error.file-upload-failed")}},dn={type:"error",code:en.NAME_REQUIRED,get message(){return p.Ru.get("playlist.edit-details.error.missing-name")}},mn={type:"error",code:en.UPDATE_DETAILS_FAILED,get message(){return p.Ru.get("playlist.edit-details.error.failed-to-save")}},pn=function(e){var t=e.autoFocus,r=e.handleOnChange,a=e.maxNumCharacters,i=void 0===a?100:a,s=e.playlistName,c=e.onSubmit,l=(0,o.useState)(!1),u=(0,A.A)(l,2),m=u[0],g=u[1],f=(0,o.useMemo)((function(){return"text-input-".concat((0,Xr.Yu)(8))}),[]),v=i-10,b=Zr()(s).length,h=b>=v,x=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e;t&&(null===(e=x.current)||void 0===e||e.select())}),[t]),(0,y.jsxs)("div",{className:Lr,children:[(0,y.jsx)(d.E,{as:"label",htmlFor:f,variant:"marginalBold",className:Dr,children:p.Ru.get("playlist.edit-details.name-label")}),(0,y.jsx)("input",{"data-testid":"playlist-edit-details-name-input",id:f,autoFocus:t,ref:x,type:"text",className:C()(_r,Mr,(0,n.A)((0,n.A)({},Ur,h),Ir,m)),onKeyDown:function(e){"Enter"===e.key&&c()},onChange:function(e){var t=r(Zr()(e.target.value).slice(0,i).join(""));g(!!t)},placeholder:p.Ru.get("playlist.edit-details.name-placeholder"),value:s}),(0,y.jsx)(Jr,{isVisible:h,maxCharacters:i,usedCharacters:b,className:Vr})]})},gn=r(56039);function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bn={name:"",description:"",image:void 0,loading:!1,message:null,hasWarnedAboutUnsavedChanges:!1};function hn(e){return{type:"setPlaylistDescription",data:e}}function xn(e){return{type:"setLoading",data:e}}function Rn(e){return{type:"setMessage",data:e}}function yn(e,t){switch(t.type){case"setImageData":return vn(vn({},e),{},{loading:!1,image:{width:gn.B.SMALL,height:gn.B.SMALL,url:t.data}});case"removeImage":return vn(vn({},e),{},{loading:!1,imageToken:null,image:void 0});case"setImageToken":return vn(vn({},e),{},{imageToken:t.data});case"setPlaylistName":return vn(vn({},e),{},{name:t.data});case"setPlaylistDescription":return vn(vn({},e),{},{description:t.data});case"setLoading":return vn(vn({},e),{},{loading:t.data,message:null});case"setHasWarnedAboutUnsavedChanges":return vn(vn({},e),{},{hasWarnedAboutUnsavedChanges:t.data});case"setMessage":return vn(vn({},e),{},{loading:!1,message:t.data});case"reset":return vn(vn({},bn),{},{name:t.data.name,description:t.data.description,image:t.data.image});default:return e}}var En=r(89923),kn=/[\b\f\n\r\t\v\0]/,jn=/<[bi]/i,On=function(e){var t=e.isOpen,r=e.isImagePickerOpen,n=e.focusedElement,i=e.name,l=e.description,u=e.image,g=e.uri,v=e.onClose;l=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}(l);var b=(0,kt.x)(g),h=b.uploadImage,x=b.updateDetails,R=function(e){var t=e.name,r=e.description,n=e.image,a=(0,o.useReducer)(yn,vn(vn({},bn),{},{name:t,description:r,image:n})),i=(0,A.A)(a,2);return[i[0],i[1]]}({name:i,description:l,image:u}),E=(0,A.A)(R,2),k=E[0],j=E[1],O=(0,gr.p)(),C=(0,A.A)(O,2),S=C[0],N=C[1],_=!(0,En.n)(),I=(0,o.useRef)(null),T=(0,c.d4)((function(e){var t;return"1"===(null===(t=e.session.productState)||void 0===t?void 0:t["playlist-annotations-markup"])}));(0,o.useEffect)((function(){j(Rn(_?an:null))}),[_,j]),(0,o.useEffect)((function(){r&&N()}),[r,N]);var L=(0,o.useCallback)((function(){j({type:"removeImage"})}),[j]),D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null===k.imageToken,r=k.imageToken;!(i!==k.name||l!==k.description||r||t)||k.hasWarnedAboutUnsavedChanges||e?(j(function(e){return{type:"reset",data:e}}({name:i,description:l,image:u})),v()):(j(Rn(nn)),j({type:"setHasWarnedAboutUnsavedChanges",data:!0}))};function P(){return(P=(0,a.A)(s().mark((function e(t){var r,n,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(r=t.imageFile,n=t.imageDataUrl,j(Rn(null)),j({type:"setImageData",data:n}),!r){e.next=16;break}return e.prev=6,a=h(r),j({type:"setImageToken",data:a}),e.next=11,a;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),j(Rn(un));case 16:case"end":return e.stop()}}),e,null,[[6,13]])})))).apply(this,arguments)}function M(){return U.apply(this,arguments)}function U(){return(U=(0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k.loading){e.next=2;break}return e.abrupt("return");case 2:if(0!==k.name.length){e.next=5;break}return j(Rn(dn)),e.abrupt("return");case 5:return j(xn(!0)),e.prev=6,e.next=9,B();case 9:j(xn(!1)),!0,D(true),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),j(Rn(mn));case 17:case"end":return e.stop()}}),e,null,[[6,14]])})))).apply(this,arguments)}function B(){return F.apply(this,arguments)}function F(){return(F=(0,a.A)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={},i!==k.name&&(t.name=k.name),l!==k.description&&(t.description=k.description),!k.imageToken){e.next=9;break}return e.next=6,k.imageToken;case 6:t.imageUploadToken=e.sent,e.next=10;break;case 9:null===k.imageToken&&(t.imageUploadToken=null);case 10:return t.image=k.image,e.next=13,x(t);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,y.jsx)(f.A,{isOpen:t,onRequestClose:function(){D()},contentLabel:p.Ru.get("playlist.edit-details.title"),children:(0,y.jsxs)("div",{"data-testid":"playlist-edit-details-modal",className:Er,children:[(0,y.jsxs)("div",{className:jr,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleSmall",children:p.Ru.get("playlist.edit-details.title")}),(0,y.jsx)("button",{className:Or,onClick:function(){D()},children:(0,y.jsx)(m.M,{size:"small","aria-label":p.Ru.get("close")})})]}),k.message&&(0,y.jsx)(fr.z,{isErrorMessage:"error"===k.message.type,message:k.message.message}),T?(0,y.jsx)(qr,{onClick:function(){if(I.current){var e=I.current,t=e.selectionStart,r=e.selectionEnd,n=k.description.substring(t,r),a=n,i=!!(0,fe.o_)(a);!a.startsWith("http://")&&!a.startsWith("https://")&&!i&&(a="https://".concat(a)),j(hn([k.description.substring(0,t),'<a href="'.concat(a,'">').concat(n,"</a>"),k.description.substring(r)].join("")))}}}):null,(0,y.jsxs)("div",{className:kr,children:[(0,y.jsx)(pr.u,{isOpen:S,minImageWidth:300,minImageHeight:300,maxFileSizeMB:10,onChange:function(e){return P.apply(this,arguments)},onError:function(e){e===pr.i.FILE_TOO_BIG?j(Rn(sn)):e===pr.i.IMAGE_TOO_SMALL?j(Rn(on)):e===pr.i.IMAGE_TOO_BIG?j(Rn(cn)):e===pr.i.IMAGE_TYPE_NOT_SUPPORTED&&j(Rn(ln))}}),(0,y.jsxs)("div",{className:Cr,children:[(0,y.jsx)(mr.b,{loading:"eager",name:k.name,images:k.image?[k.image]:[],placeholderType:"playlist"}),(0,y.jsx)("div",{className:Sr,children:(0,y.jsx)(dr.a,{overlay:!!k.image,onClick:N})}),(0,y.jsx)(Kr,{onRemoveImage:L,openImagePicker:N}),!!k.imageToken&&k.loading&&(0,y.jsx)("div",{className:wr,children:(0,y.jsx)(ur.I,{})})]}),(0,y.jsx)(pn,{autoFocus:n===lr.NV.TITLE,handleOnChange:function(e){return j({type:"setPlaylistName",data:e}),0===e.length?(j(Rn(dn)),dn):(j(Rn(null)),null)},playlistName:k.name,onSubmit:M}),(0,y.jsx)($r,{ref:I,autoFocus:n===lr.NV.DESCRIPTION,handleOnChange:function(e){var t=e;return jn.test(t)?(j(Rn(rn)),rn):kn.test(t)?(t=(e||"").replace(kn,""),j(Rn(tn)),tn):(j(hn(t)),null)},playlistDescription:k.description}),(0,y.jsx)("div",{className:Fr,children:(0,y.jsx)(w.$,{colorSet:"invertedLight",onClick:M,disabled:k.loading,"data-testid":"playlist-edit-details-save-button",children:p.Ru.get("save")})}),(0,y.jsx)(d.E,{as:"p",variant:"marginalBold",className:Gr,children:p.Ru.get("image-upload.legal-disclaimer")})]})]})})},Cn=function(){var e=(0,o.useContext)(lr.iE),t=e.isOpen,r=e.isImagePickerOpen,n=e.playlistDetails,a=e.focusedElement,i=(0,o.useContext)(lr.$$),s=(0,o.useCallback)((function(){i({type:"close"})}),[i]),c=n.name,l=n.description,u=n.uri,d=n.image;return t?(0,y.jsx)(On,{isOpen:t,isImagePickerOpen:r,onClose:s,focusedElement:a,uri:u,name:c,description:l,image:d}):null},wn=(r(71425),new Map);wn.set("ad","€ 9,99"),wn.set("ar","$ 69,00"),wn.set("at","€ 9,99"),wn.set("au","$11.99"),wn.set("be","€ 9,99"),wn.set("bg","4.99 EUR"),wn.set("bo","5.99 USD"),wn.set("br","R$ 16,90"),wn.set("ca","9.99 CAD"),wn.set("ch","Fr. 12.95"),wn.set("cl","$ 3.490,00"),wn.set("co","$ 14.900,00"),wn.set("cr","5.99 USD"),wn.set("cy","6.99 EUR"),wn.set("cz","5.99 EUR"),wn.set("de","9,99 €"),wn.set("dk","kr 99,00"),wn.set("do","5.99 USD"),wn.set("ec","5.99 USD"),wn.set("ee","6.99 EUR"),wn.set("es","9,99 €"),wn.set("fi","9,99 €"),wn.set("fr","9,99 €"),wn.set("uk","£9.99"),wn.set("gr","6.99 EUR"),wn.set("gt","5.99 USD"),wn.set("hk","HK$58.00"),wn.set("hn","5.99 USD"),wn.set("hu","4.99 EUR"),wn.set("id","Rp 49.990"),wn.set("ie","€9.99"),wn.set("is","9.99 EUR"),wn.set("it","€ 9,99"),wn.set("kr","₩10,900"),wn.set("li","12.95 CHF"),wn.set("lt","6.99 EUR"),wn.set("lu","9.99 EUR"),wn.set("lv","6.99 EUR"),wn.set("mc","9.99 EUR"),wn.set("mt","6.99 EUR"),wn.set("mx","$ 99.00"),wn.set("my","RM14.90"),wn.set("ni","5.99 USD"),wn.set("nl","€9,99"),wn.set("no","kr109,00"),wn.set("nz","$14.99"),wn.set("pa","5.99 USD"),wn.set("pe","S/ 18.90"),wn.set("ph","₱129"),wn.set("pl","19,99 zł"),wn.set("pt","6.99 EUR"),wn.set("py","5.99 USD"),wn.set("se","99,00 kr"),wn.set("sg","S$9.90"),wn.set("sk","5.99 EUR"),wn.set("sv","5.99 USD"),wn.set("th","฿129.00"),wn.set("tr","13,99 TL"),wn.set("tw","NT$149.00"),wn.set("us","$9.99"),wn.set("uy","5.99 USD");var Sn=new Map;Sn.set("ad","€ 0,00"),Sn.set("ar","$ 0,00"),Sn.set("at","€ 0,00"),Sn.set("au","$0.00"),Sn.set("be","€ 0,00"),Sn.set("bg","0.00 EUR"),Sn.set("bo","0.00 USD"),Sn.set("br","R$ 0,00"),Sn.set("ca","0.00 CAD"),Sn.set("ch","Fr. 0.00"),Sn.set("cl","$ 0,00"),Sn.set("co","$ 0,00"),Sn.set("cr","0.00 USD"),Sn.set("cy","0.00 EUR"),Sn.set("cz","0.00 EUR"),Sn.set("de","0,00 €"),Sn.set("dk","kr 0,00"),Sn.set("do","0.00 USD"),Sn.set("ec","0.00 USD"),Sn.set("ee","0.00 EUR"),Sn.set("es","0,00 €"),Sn.set("fi","0,00 €"),Sn.set("fr","0,00 €"),Sn.set("uk","£0.00"),Sn.set("gr","0.00 EUR"),Sn.set("gt","0.00 USD"),Sn.set("hk","HK$0.00"),Sn.set("hn","0.00 USD"),Sn.set("hu","0.00 EUR"),Sn.set("id","Rp 0.00"),Sn.set("ie","€0.00"),Sn.set("is","0.00 EUR"),Sn.set("it","€ 0,00"),Sn.set("li","0.00 CHF"),Sn.set("lt","0.00 EUR"),Sn.set("lu","0.00 EUR"),Sn.set("lv","0.00 EUR"),Sn.set("mc","0.00 EUR"),Sn.set("mt","0.00 EUR"),Sn.set("mx","$ 0.00"),Sn.set("my","RM0.00"),Sn.set("ni","0.00 USD"),Sn.set("nl","€0,00"),Sn.set("no","kr0,00"),Sn.set("nz","$0.00"),Sn.set("pa","0.00 USD"),Sn.set("pe","S/ 0.00"),Sn.set("ph","₱0.00"),Sn.set("pl","0,00 zł"),Sn.set("pt","0.00 EUR"),Sn.set("py","0.00 USD"),Sn.set("se","0,00 kr"),Sn.set("sg","S$0.00"),Sn.set("sk","0.00 EUR"),Sn.set("sv","0.00 USD"),Sn.set("th","฿0.00"),Sn.set("tr","0,00 TL"),Sn.set("tw","NT$0.00"),Sn.set("us","$0.00"),Sn.set("uy","0.00 USD");var An=r(74512);const Nn="jqvEr4MvCdQ1QA_FSpe7",_n="sRkNI1Gya5aBxtf_vS1S",In="WShxRrLdX9LzzqlCmWZy",Tn="rlMoP29GxtDlHkDK_aci";var Ln=(0,o.memo)((function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ui.premiumDialog.isOpen})),r=(0,c.d4)((function(e){var t=function(e){var t=e.toLowerCase();return{premiumPrice:wn.has(t)?wn.get(t):"99,00 kr",freePrice:Sn.has(t)?Sn.get(t):"0,00 kr"}}((0,An.JJ)(e));return t.premiumPrice})),n=(0,c.d4)(An.q),a=(0,o.useCallback)((function(){return e((0,$e.wH)())}),[e]),i=(0,et.L)().openURLWithSessionTransfer,s=(0,be.W)(),l=(0,ge.Zp)(),u=(0,It.k)(),d=u.url,m=u.isExternal,g=(0,o.useCallback)((function(){s({intent:"upgrade-to-premium",type:"click"}),!1===m?l("/premium"):i(d)}),[l,s,i,m,d]);return(0,y.jsx)(f.A,{isOpen:t,shouldCloseOnEsc:!1,shouldCloseOnOverlayClick:!1,contentLabel:p.Ru.get("premium.dialog.title"),children:(0,y.jsxs)("div",{className:Nn,children:[(0,y.jsx)("h1",{className:_n,children:p.Ru.get("premium.dialog.title")}),(0,y.jsx)("p",{className:In,children:p.Ru.get("premium.dialog.description",n?3:1)}),(0,y.jsx)(w.$,{colorSet:"invertedLight",onClick:g,children:p.Ru.get("premium.dialog.subscribe")}),(0,y.jsx)(j.H,{semanticColor:"textBase",onClick:a,children:p.Ru.get("user.log-out")}),(0,y.jsx)("p",{className:Tn,children:n?p.Ru.get("premium.dialog.disclaimer.noprice"):p.Ru.get("premium.dialog.disclaimer",{price:r})})]})})})),Dn=(r(16347),r(18653),r(57261)),Pn=r(5958),Mn=r(10789),Un=r(53670),Bn=(0,o.memo)((function(){var e,t=(0,c.wA)(),r=(0,Mn.T)(),n=(0,c.d4)((function(e){return e.ui.removeFromLibraryDialog})),i=n.uri,l=n.isPrerelease,u=(0,Re.A)(null!=i?i:""),d=(0,A.A)(u,2),m=d[0],g=d[1],f=(0,Pn.p)("prerelease").remove,v=(0,Dn.o)("prerelease",i?[i]:[]).at(0),b=null===(e=(0,fe.o_)(i))||void 0===e?void 0:e.type,h=(0,o.useState)(""),x=(0,A.A)(h,2),R=x[0],E=x[1];(0,o.useEffect)((function(){var e=function(){var e=(0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=b,e.next=e.t0===fe.NQ.PRERELEASE||e.t0===fe.NQ.ALBUM?3:e.t0===fe.NQ.ARTIST?5:e.t0===fe.NQ.SHOW?7:e.t0===fe.NQ.PLAYLIST||e.t0===fe.NQ.PLAYLIST_V2?20:22;break;case 3:return E(p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-description-album")),e.abrupt("break",24);case 5:return E(p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-description-artist")),e.abrupt("break",24);case 7:return e.t1=E,e.t2=Un.Go,e.next=11,r.getMetadata(null!=i?i:"");case 11:if(e.t3=e.sent,!(0,e.t2)(e.t3)){e.next=16;break}e.t4=p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-description-audiobook"),e.next=17;break;case 16:e.t4=p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-description-show");case 17:return e.t5=e.t4,(0,e.t1)(e.t5),e.abrupt("break",24);case 20:return E(p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-description-playlist")),e.abrupt("break",24);case 22:return E(p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-description")),e.abrupt("break",24);case 24:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[r,b,i]);var k=(0,o.useCallback)((function(){t((0,ae.yh)())}),[t]),j=(0,o.useCallback)((function(){if(i){if(l){if(!v)return;f(i)}else{if(!m)return;g(!1)}k()}}),[i,l,k,v,f,m,g]);return(0,y.jsx)(ve.T,{"aria-label":"".concat(p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-title")," ").concat(R),titleText:p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-title"),descriptionText:R,onConfirm:j,onClose:k,confirmText:p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-confirm-button"),cancelText:p.Ru.get("web-player.your-library-x.feedback-remove-from-library-dialog-cancel-button"),allowHTML:!0})}));const Fn="ZjyLlDvxh8QqNVY2vMsF",Gn="sx8Bf4udHt_kPAnxmGW8",Wn="sfaREUmOnuxlr99uOYnS",Vn="RTGGeDA2P3rKc6r96vqA",zn="e1NO8ZuDIwSef3E4ppfX",Hn="Fo3Fe1PpXtQ3G32BqnwP",Kn="aRZZo0b_4ktkI0mPQ7Vw";var Yn=function(e){var t=e.name,r=e.onRename,n=(0,c.wA)(),a=(0,o.useState)(null),i=(0,A.A)(a,2),s=i[0],l=i[1],u=(0,o.useCallback)((function(e){null!==e&&l(e)}),[]);(0,o.useEffect)((function(){null==s||s.select()}),[s]);var g=function(){n((0,ae.Yk)())},v=function(){var e;r(null!==(e=null==s?void 0:s.value)&&void 0!==e?e:""),g()};return(0,y.jsx)(f.A,{contentLabel:p.Ru.get("playlist.edit-details.title"),shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:g,shouldFocusAfterRender:!0,isOpen:!0,children:(0,y.jsxs)("div",{"data-testid":"playlist-edit-details-modal",className:Fn,children:[(0,y.jsxs)("div",{className:Wn,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleSmall",children:p.Ru.get("web-player.your-library-x.rename-folder")}),(0,y.jsx)("button",{className:Vn,onClick:g,children:(0,y.jsx)(m.M,{size:"medium","aria-label":p.Ru.get("close")})})]}),(0,y.jsxs)("form",{className:Gn,onSubmit:function(e){e.preventDefault(),v()},children:[(0,y.jsx)("input",{ref:u,type:"text",defaultValue:t,onSubmit:v,className:C()(zn,Hn)}),(0,y.jsx)("div",{className:Kn,children:(0,y.jsx)(w.$,{colorSet:"invertedLight",type:"submit",children:p.Ru.get("save")})})]})]})})};function qn(){return null}var Qn=r(34300);function Zn(){var e,t=(0,Qn.x)("lintHtmlWithCss",!1);(0,A.A)(t,1)[0];return e=qn,(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(e,{})})}r(86746);var Jn=r(77894),Xn=r(76999),$n=r(84066),ea=r(86308),ta=r(79036),ra=(r(28430),r(9582),r(86295)),na=r(87718),aa=new ra.l("showItemsPlayedState","query","4a070b9bfab2e8537a5271e6839bc3ef51501dcac8170b5fb69a98f967c5fb60",null),ia=3e4;function sa(e){var t,r,n=(t={uri:e,limit:arguments.length>1&&void 0!==arguments[1]?arguments[1]:100},r={staleTime:0,gcTime:18e5},(0,na.I)(aa,t,r)),a=n.data,i=n.loading,s=function(e){var t=null==e?void 0:e.lookup.at(0);if("PodcastOrAudiobookResponseWrapper"===(null==t?void 0:t.__typename)){if("Audiobook"===t.data.__typename){var r,n=t.data;return"ContextChapterPage"===(null===(r=n.chaptersV2)||void 0===r?void 0:r.__typename)&&n.chaptersV2.items.some((function(e){var t=e.entity;return"Chapter"===t.data.__typename&&oa(t.data)}))}if("Podcast"===t.data.__typename){var a,i=t.data;return"ContextEpisodePage"===(null===(a=i.episodesV2)||void 0===a?void 0:a.__typename)&&i.episodesV2.items.some((function(e){var t=e.entity;return"Episode"===t.data.__typename&&oa(t.data)}))}}return!1}(a);return{hasUserListenedToShow:s,loading:i}}function oa(e){return"COMPLETED"===e.playedState.state||e.playedState.playPositionMilliseconds>=ia}var ca=r(56820),la=r(93240),ua=r(58296);var da=r(18809);const ma="osuFIR_6Jo9yKsmLL4y2",pa="r1F2okBwH7F8pEGF7MEG",ga="H2z72R8YxQVQF8UU_ymH",fa="Pq5dXGGJ3mlXY0HFuhCS",va="plZRpYfm5PMEiSYLRj8P",ba="B8OPJYenwKO45OLDwLyY",ha="HwHP6Y0kc7ksENQMXJ75",xa="l2w2Hl3YN3bb4TcgyXcb",Ra="hWmnoRh1uj8ciMRAgL4f",ya="MXT688TwrGLq4tvesXwc",Ea="hQIFH0LbkGEHIdsQ20tQ";var ka=function(e){var t=e.uri,r=e.rating,n=e.isBook,i=e.closeRatingModal,c=(0,o.useState)(null!=r?r:null),l=(0,A.A)(c,2),u=l[0],d=l[1],m=function(e,t){var r,n=(0,Mn.T)(),i=(0,la.dh)().enqueueSnackbar,o=(0,tt.r)(ua.b,{}),c=o.spec,l=o.logger,u=(0,ca.n)({mutationFn:(r=(0,a.A)(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t){r.next=3;break}return r.next=3,n.updateUserRating(e,t);case 3:case"end":return r.stop()}}),r)}))),function(){return r.apply(this,arguments)}),onSuccess:function(){var r=c.submitRatingButtonFactory().hitSubmitRating({rating:t,entityUri:e});l.logInteraction(r),i(p.Ru.get("web-player.show.rating.snackbarSuccess"))},onError:function(){i(p.Ru.get("web-player.show.rating.snackbarFailure"))}});return{onSubmitRating:u.mutateAsync}}(t,null!=u?u:0),g=m.onSubmitRating,f=null!==u&&u!==r,v=Array.from(Array(5).keys(),(function(e){return e+1}));return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:ya,children:v.map((function(e){return(0,y.jsx)(j.H,{"aria-label":n?p.Ru.get("web-player.audiobooks.rating.starAriaLabel",e):p.Ru.get("web-player.show.rating.starAriaLabel",e),className:Ea,onClick:function(){return d(e)},iconOnly:function(){return u&&u>=e?(0,y.jsx)(Jn.j,{size:"large",semanticColor:"textBase"}):(0,y.jsx)(Xn.a,{size:"large"})}},e)}))}),(0,y.jsx)(w.$,{"aria-label":p.Ru.get("web-player.show.rating.submit"),colorSet:"invertedLight",disabled:!f,onClick:function(){u&&g(),i()},children:p.Ru.get("web-player.show.rating.submit")})]})},ja=function(e){var t=e.isBook,r=e.onDismiss;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.E,{as:"p",variant:"titleSmall",className:xa,children:t?p.Ru.get("web-player.audiobooks.rating.listenFirstTitle"):p.Ru.get("web-player.show.rating.listenFirstTitle")}),(0,y.jsx)(d.E,{as:"p",className:Ra,variant:"bodyMedium",children:t?p.Ru.get("web-player.audiobooks.rating.listenFirstDescription"):p.Ru.get("web-player.show.rating.listenFirstDescription")}),(0,y.jsx)(w.$,{colorSet:"invertedLight",onClick:r,children:p.Ru.get("web-player.audiobooks.rating.ok")})]})},Oa=function(e){var t,r,n=e.uri,a=e.isBook,i=e.rating,s=e.spec,o=e.logger,c=e.closeRatingModal,l=sa(n),u=l.hasUserListenedToShow;return l.loading?(0,y.jsx)(ta.m,{}):null!=i&&i.canRate&&u?(0,y.jsx)(ka,{uri:n,rating:null!==(t=null==i||null===(r=i.rating)||void 0===r?void 0:r.rating)&&void 0!==t?t:null,isBook:a,closeRatingModal:c}):(0,y.jsx)(ja,{isBook:a,onDismiss:function(){o.logInteraction(s.okButtonFactory().hitUiNavigateBack()),c()}})},Ca=o.memo((function(e){var t=e.uri,r=e.metadata,n=e.isOpen,a=(0,c.wA)(),i=Boolean(r&&(0,Un.Go)(r)),s=(0,da.g)(null==r?void 0:r.coverArt,{desiredSize:320}),o=(0,tt.r)($n.e,{data:{identifier:i?ea.$h.RATINGS_AND_REVIEWS_RATINGS_AUDIOBOOK:ea.$h.RATINGS_AND_REVIEWS_RATINGS,uri:t}}),l=o.spec,u=o.logger,g=null==r?void 0:r.rating,v=function(){a((0,ae.Kc)())};return(0,y.jsx)(f.A,{contentLabel:"podcast-rating-modal",isOpen:n,onRequestClose:v,children:(0,y.jsxs)("div",{className:ma,children:[(0,y.jsxs)("div",{className:ga,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleSmall",className:ha,children:i?p.Ru.get("web-player.audiobooks.rating.rateAudiobook"):p.Ru.get("web-player.show.rating.header")}),(0,y.jsxs)("button",{className:fa,onClick:function(){var e=l.closeButtonFactory().hitUiNavigateBack();u.logInteraction(e),v()},children:[(0,y.jsx)(m.M,{role:"presentation"}),(0,y.jsx)("span",{className:"hidden-visually",children:p.Ru.get("web-player.audiobooks.rating.closeModal")})]})]}),(0,y.jsxs)("div",{className:va,children:[(0,y.jsx)(_._,{loading:"eager",src:null==s?void 0:s.url,className:pa}),(0,y.jsx)("div",{className:ba,children:(0,y.jsx)(_t.u,{property:yt.skl,renderNewExperience:function(){return(0,y.jsx)(Oa,{uri:t,rating:g,isBook:i,closeRatingModal:v,spec:l,logger:u})},renderOldExperience:function(){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.E,{as:"p",variant:"bodyMediumBold",className:xa,children:i?p.Ru.get("web-player.audiobooks.rating.wantToRate"):p.Ru.get("web-player.show.rating.want-to-rate")}),(0,y.jsx)(d.E,{as:"p",className:Ra,children:p.Ru.get("web-player.audiobooks.rating.goToApp")}),(0,y.jsx)(w.$,{colorSet:"invertedLight",onClick:function(){var e=l.okButtonFactory().hitUiNavigateBack();u.logInteraction(e),v()},children:p.Ru.get("web-player.audiobooks.rating.ok")})]})}})})]})]})})})),wa=function(){var e=(0,c.d4)((function(e){return e.ui.showRatingModalState})),t=e.uri,r=e.isOpen,n=e.metadata;return t&&n?(0,y.jsx)(Ca,{uri:t,metadata:n,isOpen:r}):null},Sa=(r(29426),r(35186)),Aa=r(85726),Na=r(69583),_a=r(53607),Ia=(r(78551),r(82467),r(92251)),Ta={macOS:"https://download.scdn.co/SpotifyInstaller.zip",Windows:"https://download.scdn.co/SpotifySetup.exe"},La={iOS:"https://app.adjust.com/wp2zrj?adgroup=signup_to_listen&campaign=default&tracker_limit=250000",Android:"https://app.adjust.com/ff0trr?adgroup=signup_to_listen&campaign=default&tracker_limit=250000"};const Da="nA6L5ghQWwxyiSLduNyb",Pa="CgsDbaLb2DCGHkrw4wiw",Ma="qp1xbhJfglEmJAWm6pdy",Ua="fFk09sW_YL0Qsk8lYOfD",Ba="BDNNVyxsxgQQvGmij9M1",Fa="ChX5nojraEtlxQULfJFk",Ga="XV07akXqG5L_suY2X8ML",Wa="j8qAQ6XAb2YSBUEzUqEV",Va="xZnbvSzpNSY7qnC6X8Rf",za="FZncbwv9M2sxuY27K8YO";var Ha=(0,o.memo)((function(){var e,t=(0,c.wA)(),r=(0,c.d4)((function(e){return e.ui.signupToListenDialog.isOpen})),n=(0,Na.W)(),a=(0,c.d4)((function(e){return e.session.userCountry})),i=(0,c.d4)((function(e){return e.features.isPodcastEnabled})),s=(0,be.W)(),l=(e=(0,Ia.f)(),Object.keys(Ta).includes(e)?Ta[e]:Object.keys(La).includes(e)?La[e]:"https://spotify.com/download"),u=(0,Aa.vh)();(0,o.useEffect)((function(){s({intent:"navigate",type:"view"})}),[s]);var m=(0,o.useCallback)((function(){var e={category:"in_app_message",action:"click",label:"dismiss",destination_url:"open.spotify.com",os:(0,Je.f)(),country:a,context:window.location.search},r=(0,Sa._)(e);u.send(r),s({intent:"close",type:"click"}),t((0,ae.BY)())}),[t,s,u,a]),g=(0,o.useCallback)((function(){var e={category:"in_app_message",action:"click",label:"download",destination_url:l,os:(0,Je.f)(),country:a,context:window.location.search},r=(0,Sa._)(e);u.send(r),s({intent:"download",type:"click"}),t((0,ae.BY)()),window.open(l,"_self")}),[t,s,l,u,a]);return(0,y.jsx)(f.A,{animated:!0,isOpen:r,className:Da,overlayClassName:Pa,contentLabel:p.Ru.get("s2l.download_spotify"),onRequestClose:m,children:(0,y.jsxs)("div",{className:Ma,children:[(0,y.jsxs)("div",{className:Ua,children:[(0,y.jsx)("div",{className:"".concat(Fa),children:(0,y.jsx)("img",{className:Ga,alt:"Web Player",src:(0,Nt.b)(n?"images/s2l-desktopui-rtl.png":"images/s2l-desktopui-ltr.png")})}),(0,y.jsxs)("div",{className:Ba,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleSmall",className:Wa,children:p.Ru.get("s2l.download_spotify")}),(0,y.jsx)(d.E,{as:"p",semanticColor:"textSubdued",className:Va,children:i?p.Ru.get("s2l.play_millions_podcasts"):p.Ru.get("s2l.play_millions")}),(0,y.jsx)(w.$,{onClick:g,children:p.Ru.get("s2l.download")})]})]}),(0,y.jsx)(j.H,{onClick:m,semanticColor:"textBase",className:za,children:p.Ru.get("s2l.dismiss")})]})})})),Ka=(0,o.memo)((function(){return(0,y.jsx)(_a.pZ,{value:"signup-to-listen",children:(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Ha,{})})})})),Ya=r(5679),qa=r(62801),Qa=r(36368),Za=r(63389),Ja=r(40492),Xa=r(93463);function $a(e){switch(e){case"Performers":return p.Ru.get("track-credits.performers");case"Writers":return p.Ru.get("track-credits.writers");case"Producers":return p.Ru.get("track-credits.producers");default:return e}}function ei(e){switch(e){case"assistant recording engineer":return p.Ru.get("track-credits.assistant-recording-engineer");case"engineer":return p.Ru.get("track-credits.engineer");case"assistant engineer":return p.Ru.get("track-credits.assistant-engineer");case"trumpet":return p.Ru.get("track-credits.trumpet");case"guitar":return p.Ru.get("track-credits.guitar");case"composer and lyricist":return p.Ru.get("track-credits.composer-and-lyricist");case"associated performer":return p.Ru.get("track-credits.associated-performer");case"background vocals":return p.Ru.get("track-credits.background-vocals");case"bass":return p.Ru.get("track-credits.bass");case"co-producer":return p.Ru.get("track-credits.co-producer");case"additional engineer":return p.Ru.get("track-credits.additional-engineer");case"masterer":return p.Ru.get("track-credits.masterer");case"mixer":return p.Ru.get("track-credits.mixer");case"recording engineer":return p.Ru.get("track-credits.recording-engineer");case"accordion":return p.Ru.get("track-credits.accordion");case"piano":return p.Ru.get("track-credits.piano");case"organ":return p.Ru.get("track-credits.organ");case"background vocal":return p.Ru.get("track-credits.background-vocal");case"recorded by":return p.Ru.get("track-credits.recorded-by");case"mixing engineer":return p.Ru.get("track-credits.mixing-engineer");case"editor":return p.Ru.get("track-credits.editor");case"fiddle":return p.Ru.get("track-credits.fiddle");case"additional vocals":return p.Ru.get("track-credits.additional-vocals");case"violin":return p.Ru.get("track-credits.violin");case"viola":return p.Ru.get("track-credits.viola");case"percussion":return p.Ru.get("track-credits.percussion");case"mastering engineer":return p.Ru.get("track-credits.mastering-engineer");case"composer":return p.Ru.get("track-credits.composer");case"additional keyboards":return p.Ru.get("track-credits.additional-keyboards");case"mix engineer":return p.Ru.get("track-credits.mix-engineer");case"mandolin":return p.Ru.get("track-credits.mandolin");case"acoustic guitar":return p.Ru.get("track-credits.acoustic-guitar");case"keyboards":return p.Ru.get("track-credits.keyboards");case"synthesizer":return p.Ru.get("track-credits.synthesizer");case"drum programmer":return p.Ru.get("track-credits.drum-programmer");case"programmer":return p.Ru.get("track-credits.programmer");case"assistant mixer":return p.Ru.get("track-credits.assistant-mixer");case"assistant mixing engineer":return p.Ru.get("track-credits.assistant-mixing-engineer");case"digital editor":return p.Ru.get("track-credits.digital-editor");case"drums":return p.Ru.get("track-credits.drums");case"drum programming":return p.Ru.get("track-credits.drum-programming");case"conga":return p.Ru.get("track-credits.conga");case"samples":return p.Ru.get("track-credits.samples");case"audio recording engineer":return p.Ru.get("track-credits.audio-recording-engineer");case"audio additional mix engineer":return p.Ru.get("track-credits.audio-additional-mix-engineer");case"recording":return p.Ru.get("track-credits.recording");case"assistant producer":return p.Ru.get("track-credits.assistant-producer");case"writer":return p.Ru.get("track-credits.writer");case"strings":return p.Ru.get("track-credits.strings");case"music publisher":return p.Ru.get("track-credits.music-publisher");case"programming":return p.Ru.get("track-credits.programming");case"music production":return p.Ru.get("track-credits.music-production");case"background vocalist":return p.Ru.get("track-credits.background-vocalist");case"producer":return p.Ru.get("track-credits.producer");case"vocal":return p.Ru.get("track-credits.vocal");case"songwriter":return p.Ru.get("track-credits.songwriter");case"lyricist":return p.Ru.get("track-credits.lyricist");case"additional mixer":return p.Ru.get("track-credits.additional-mixer");case"upright bass":return p.Ru.get("track-credits.upright-bass");case"clapping":return p.Ru.get("track-credits.clapping");case"electric bass":return p.Ru.get("track-credits.electric-bass");case"horn arranger":return p.Ru.get("track-credits.horn-arranger");case"flugelhorn":return p.Ru.get("track-credits.flugelhorn");case"second engineer":return p.Ru.get("track-credits.second-engineer");case"rhythm guitar":return p.Ru.get("track-credits.rhythm-guitar");case"bass guitar":return p.Ru.get("track-credits.bass-guitar");case"electric guitar":return p.Ru.get("track-credits.electric-guitar");case"dobro":return p.Ru.get("track-credits.dobro");case"instruments":return p.Ru.get("track-credits.instruments");case"vocal ensemble":return p.Ru.get("track-credits.vocal-ensemble");case"recording arranger":return p.Ru.get("track-credits.recording-arranger");case"arranger":return p.Ru.get("track-credits.arranger");case"steel guitar":return p.Ru.get("track-credits.steel-guitar");case"executive producer":return p.Ru.get("track-credits.executive-producer");case"additional production":return p.Ru.get("track-credits.additional-production");case"designer":return p.Ru.get("track-credits.designer");case"assistant mix engineer":return p.Ru.get("track-credits.assistant-mix-engineer");case"studio musician":return p.Ru.get("track-credits.studio-musician");case"voice performer":return p.Ru.get("track-credits.voice-performer");case"orchestra":return p.Ru.get("track-credits.orchestra");case"chamber ensemble":return p.Ru.get("track-credits.chamber-ensemble");case"additional percussion":return p.Ru.get("track-credits.additional-percussion");case"cajon":return p.Ru.get("track-credits.cajon");case"miscellaneous production":return p.Ru.get("track-credits.miscellaneous-production");case"backing vocals":return p.Ru.get("track-credits.backing-vocals");case"pedal steel":return p.Ru.get("track-credits.pedal-steel");case"additional producer":return p.Ru.get("track-credits.additional-producer");case"keyboard arrangements":return p.Ru.get("track-credits.keyboards-arrangements");case"saxophone":return p.Ru.get("track-credits.saxophone");case"sound engineer":return p.Ru.get("track-credits.sound-engineer");case"assistant remix engineer":return p.Ru.get("track-credits.assistant-remix-engineer");case"double bass":return p.Ru.get("track-credits.double-bass");case"co-writer":return p.Ru.get("track-credits.co-writer");case"pro tools":return p.Ru.get("track-credits.pro-tools");case"tape realization":return p.Ru.get("track-credits.tape-realization");case"ambient sounds":return p.Ru.get("track-credits.ambient-sounds");case"sound effects":return p.Ru.get("track-credits.sound-effects");case"harp":return p.Ru.get("track-credits.harp");case"cymbals":return p.Ru.get("track-credits.cymbals");case"vocal engineer":return p.Ru.get("track-credits.vocal-engineer");case"mellotron":return p.Ru.get("track-credits.mellotron");case"recorder":return p.Ru.get("track-credits.recorder");case"main artist":return p.Ru.get("track-credits.main-artist");case"production":return p.Ru.get("track-credits.production");case"artist":return p.Ru.get("track-credits.artist");case"vocals":return p.Ru.get("track-credits.vocals");case"featuring":return p.Ru.get("track-credits.featuring");case"featured artist":return p.Ru.get("track-credits.featured-artist");case"work arranger":return p.Ru.get("track-credits.work-arranger");case"mixing engineers":return p.Ru.get("track-credits.mixing-engineers");case"re-mixer":return p.Ru.get("track-credits.re-mixer");case"recording producer":return p.Ru.get("track-credits.recording-producer");case"co-mixer":return p.Ru.get("track-credits.co-mixer");case"bells":return p.Ru.get("track-credits.bells");case"pro tools editing":return p.Ru.get("track-credits.pro-tools-editing");case"vibraphone":return p.Ru.get("track-credits.vibraphone");case"additional recording":return p.Ru.get("track-credits.additional-recording");case"vocal producer":return p.Ru.get("track-credits.vocal-producer");case"sitar":return p.Ru.get("track-credits.sitar");case"cello":return p.Ru.get("track-credits.cello");case"flute":return p.Ru.get("track-credits.flute");case"horn":return p.Ru.get("track-credits.horn");case"brass band":return p.Ru.get("track-credits.brass-band");case"programming and keyboards":return p.Ru.get("track-credits.programming-and-keyboards");case"all instruments":return p.Ru.get("track-credits.all-instruments");case"programmed and arranged by":return p.Ru.get("track-credits.programmed-and-arranged-by");case"additional programmer":return p.Ru.get("track-credits.additional-programmer");case"recording and mixing":return p.Ru.get("track-credits.recording-and-mixing");case"engineer and mixer":return p.Ru.get("track-credits.engineer-and-mixer");case"vocal arranger":return p.Ru.get("track-credits.vocal-arranger");case"income participant":return p.Ru.get("track-credits.income-participant");default:return e}}var ti=r(82316),ri=function(e,t){return e.build().withHost(ti.i6).withPath("/v0/experimental/".concat(t,"/credits")).withoutMarket().withEndpointIdentifier("/v0/experimental/{trackId}/credits").send()},ni=r(12988);const ai="main-trackCreditsModal-container",ii="main-trackCreditsModal-header",si="main-trackCreditsModal-closeBtn",oi="main-trackCreditsModal-mainSection",ci="main-trackCreditsModal-originalCredits",li="main-trackCreditsModal-sectionTitle",ui="main-trackCreditsModal-creditsGroup",di="main-trackCreditsModal-creditsEntry",mi="main-trackCreditsModal-clickableCreditsEntry",pi="main-trackCreditsModal-sourceNames",gi="main-trackCreditsModal-additionalCredits";var fi=(0,o.memo)((function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ui.trackCreditsModal})),r=t.isOpen,n=t.trackUri,a=n.split(":"),i=a[a.length-1],s=(0,ni.Z)(ri,[i]),l=s.data,u=s.error,m=s.loading,g=(0,o.useCallback)((function(){e((0,ae.P0)(!1,""))}),[e]),v=(0,Aa.vh)(),b=(0,c.d4)(se.Ht).isAnonymous,h=(0,tt.r)(Xa.i,{data:{uri:n}}),x=h.spec,R=h.logger;return(0,y.jsx)(f.A,{contentLabel:p.Ru.get("track-credits.label"),isOpen:r,onRequestClose:g,children:!m&&!u&&l&&(0,y.jsxs)("div",{className:ai,children:[(0,y.jsxs)("div",{className:ii,children:[(0,y.jsx)(d.E,{as:"h1",variant:"titleMedium",children:p.Ru.get("track-credits.label")}),(0,y.jsx)("button",{"aria-label":p.Ru.get("close"),className:si,onClick:g,children:(0,y.jsx)(nt.A,{width:18,height:18,fill:"white"})})]}),(0,y.jsxs)("div",{className:oi,onScroll:b?function(){return v.send((0,Ja.s)({track_uri:n}))}:function(){return v.send((0,Za.h)({track_uri:n}))},children:[(0,y.jsxs)("div",{className:ci,children:[(0,y.jsx)(d.E,{as:"h2",className:li,variant:"bodyMediumBold",children:l.body.trackTitle}),l.body.roleCredits.map((function(e,t){var r=x.creditSectionFactory({position:t});return(0,y.jsxs)("div",{className:ui,children:[(0,y.jsx)(d.E,{as:"p",variant:"bodySmallBold",children:$a(e.roleTitle)}),e.artists.length>0?e.artists.map((function(t){var a=t.name,i=t.uri,s=t.externalUrl;return s?(0,y.jsx)("a",{href:s,draggable:!1,rel:"noopener noreferrer",onClick:function(){var t=r.artistNameFactory({uri:null!=i?i:""}).hitNavigateToExternalUri({destination:s});R.logInteraction(t),b?v.send((0,Qa._)({track_uri:n,clickable_text:a,role:e.roleTitle,external_url:s})):v.send((0,qa.d)({track_uri:n,clickable_text:a,role:e.roleTitle,external_url:s}))},target:"_blank",className:mi,children:a},a):(0,y.jsx)(d.E,{className:di,variant:"bodySmall",semanticColor:"textSubdued",children:a},a)})):"-"]},e.roleTitle)})),(0,y.jsxs)(d.E,{as:"p",variant:"bodySmall",children:[p.Ru.get("track-credits.source"),":"," ",l.body.sourceNames.join(p.Ru.getSeparator())]})]}),l.body.extendedCredits&&l.body.extendedCredits.length>0&&(0,y.jsxs)("div",{className:gi,children:[(0,y.jsx)(d.E,{as:"h3",className:li,variant:"bodyMediumBold",children:p.Ru.get("track-credits.additional-credits")}),l.body.extendedCredits.map((function(e){return(0,y.jsxs)("div",{className:ui,children:[(0,y.jsx)(d.E,{as:"p",variant:"bodySmallBold",children:ei(e.roleTitle.toLowerCase())}),e.artists.map((function(t){return(0,y.jsx)("a",{href:t.url,draggable:!1,rel:"noopener noreferrer",onClick:function(){b||v.send((0,Ya.L)({track_uri:n,clickable_text:t.name,role:e.roleTitle,external_url:t.url}))},target:"_blank",className:mi,children:t.name},t.name)}))]},e.roleTitle)})),(0,y.jsxs)(d.E,{as:"p",variant:"bodySmall",className:pi,semanticColor:"textSubdued",children:[p.Ru.get("track-credits.source"),":"," ",(0,y.jsx)("a",{draggable:!1,rel:"noopener noreferrer",target:"_blank",href:"https://soundbetter.com",children:"SoundBetter"})]})]})]})]})})})),vi=r(55569),bi=r.n(vi),hi=r(58076);r(58795);function xi(){var e=document.createElement("canvas"),t=e.getContext("2d");return t&&(function(e){e.beginPath(),e.fillStyle="rgb(0, 200, 255)",e.arc(50,50,50,0,2*Math.PI,!0),e.fill(),e.stroke(),e.closePath()}(t),function(e){e.textBaseline="top",e.font="13pt Arial",e.textBaseline="alphabetic",e.fillStyle="rgb(255, 5, 5)",e.rotate(.8),e.fillText("random#$%^@£éú",4,17),e.fillStyle="rgb(165,205,5)",e.shadowBlur=8,e.shadowColor="green",e.fillRect(20,12,105,5)}(t)),e}var Ri=function(){var e=(0,Aa.vh)();return(0,o.useEffect)((function(){var t=xi().toDataURL("image/png"),r=bi()(t);e.send((0,hi.u)({h:r}))}),[e]),null},yi=function(){var e=(0,o.useRef)(!1);return!(0,l.NC)(yt.x_7)||e.current?null:(e.current=!0,(0,y.jsx)(Ri,{}))},Ei=r(28925),ki=r(81349),ji=r(62807),Oi=r(72698),Ci=r(75844),wi=r(74898),Si=r(10741),Ai=r(9063),Ni=r(51653),_i=null;var Ii=function(){var e=function(){var e,t=(0,o.useState)(null),r=(0,A.A)(t,2),n=r[0],i=r[1],c=(0,Aa.vh)(),l=(0,Oi.d)(),u=l.isTrustedRef,d=l.isTrustedFn,m=(0,Ei.I)({enabled:!1,queryKey:["fetchVerification"],queryFn:(e=(0,a.A)(s().mark((function e(){var t,r,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ci.n.getInstance(),e.next=3,(0,wi.Q)(t);case 3:return r=e.sent,n=r.body,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}),p=m.data,g=m.refetch,f=m.error;return(0,o.useEffect)((function(){p&&p.length>0&&(0,a.A)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:t=null==p?void 0:p[0].id,i(t),c.send((0,ki.n)({id:t,method:"IN_APP_VERIFICATION_V0",is_trusted:u.current}));case 5:case"end":return e.stop()}}),e)})))(),f&&c.send((0,ji.D)({method:"IN_APP_VERIFICATION_V0",error_message:f instanceof Si.O?f.name:null,http_method:"get",http_path:"/verifications"}))}),[p,f,c,d,u]),{verificationId:n,refetch:g}}(),t=e.verificationId,r=e.refetch;return(0,Ni.p)(Ai.gd.UPDATE,(function(e){var n,a;if(!t){var i,s="number"==typeof(null==e||null===(n=e.data)||void 0===n?void 0:n.positionAsOfTimestamp)&&e.data.positionAsOfTimestamp>=0&&e.data.positionAsOfTimestamp<=1e3;null!=e&&null!==(a=e.data)&&void 0!==a&&a.isPaused||!s||(i=performance.now(),_i&&i-_i<6e5||(_i=i,0))||r()}})),t},Ti=(0,o.lazy)((function(){return Promise.all([r.e(4151),r.e(4708)]).then(r.bind(r,34708))})),Li=function(){var e=(0,l.NC)(yt.IqJ),t=(0,o.useState)(!1),r=(0,A.A)(t,2),n=r[0],a=r[1],i=Ii();return(0,o.useEffect)((function(){a(!!i)}),[i]),e&&n?(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Ti,{verificationId:"".concat(i)})}):null},Di=r(93960),Pi=r(57039),Mi=r(3424),Ui=r(37212),Bi=r(79916),Fi=function(){var e=(0,c.wA)(),t=(0,Ui.D)(),r=(0,l.NC)(Bi.vF),n=(0,Pi.Z)(),i=(0,Mi.v)((function(e){return{activeDevice:r?n.getActiveDevice():e.activeDevice}})).activeDevice,u=(0,tt.r)(Di.h,{}),d=u.spec,m=u.logger,g=(0,c.d4)((function(e){return e.ui.videoNotSupportedModal})),f=g.onConfirm,v=g.onCancel,b=(0,o.useCallback)((function(){m.logInteraction(d.cancelButtonFactory().hitUiHide()),e(rr.ug.actions.close()),null==v||v()}),[e,m,v,d]),h=(0,o.useCallback)((0,a.A)(s().mark((function r(){var n,a,o;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=m.logInteraction(d.confirmButtonFactory().hitDisconnectFromRemoteDevice({remoteDeviceId:null!==(n=null==i?void 0:i.connectStateId)&&void 0!==n?n:""})),o=a.interactionId,e(rr.ug.actions.close()),r.next=4,t.pullToLocalDevice({interactionId:o});case 4:f();case 5:case"end":return r.stop()}}),r)}))),[t,null==i?void 0:i.connectStateId,e,m,f,d]),x=p.Ru.get("video-not-supported.modal.title"),R=p.Ru.get("video-not-supported.modal.cancel"),E=p.Ru.get("video-not-supported.modal.confirm");return(0,y.jsx)(ve.T,{isOpen:!0,onConfirm:h,onClose:b,titleText:x,"aria-label":x,cancelText:R,confirmText:E,width:{minWidth:420,maxWidth:600}})},Gi=(r(90489),r(56068)),Wi=r(2970),Vi=r(2113),zi=r(93311),Hi=r(39564),Ki=r(48109);function Yi(e,t,r){return t=(0,zi.A)(t),(0,Vi.A)(e,qi()?Reflect.construct(t,r||[],(0,zi.A)(e).constructor):t.apply(e,r))}function qi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qi=function(){return!!e})()}var Qi=function(e){function t(){return(0,Gi.A)(this,t),Yi(this,t,arguments)}return(0,Hi.A)(t,e),(0,Wi.A)(t,[{key:"handleRequestClose",value:function(){this.props.closeModal()}},{key:"render",value:function(){var e=this.props,t=e.isOpen,r=e.closeModal;return(0,y.jsx)(Ki.x,{animated:!0,headingMessage:p.Ru.get("offline-error.device-limit-reached.header"),message:p.Ru.get("offline-error.device-limit-reached.message"),buttonLabel:p.Ru.get("close"),isOpen:t,onDismissDialog:r})}}])}(o.PureComponent);const Zi=(0,c.Ng)((function(e){return{isOpen:e.ui.offlineDeviceLimitReachedDialog.isOpen}}),(function(e){return{closeModal:function(){return e((0,ae.kC)())}}}))(Qi);function Ji(e,t,r){return t=(0,zi.A)(t),(0,Vi.A)(e,Xi()?Reflect.construct(t,r||[],(0,zi.A)(e).constructor):t.apply(e,r))}function Xi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xi=function(){return!!e})()}var $i=function(e){function t(e){var r;return(0,Gi.A)(this,t),(r=Ji(this,t,[e])).handleRequestClose=r.handleRequestClose.bind(r),r.browserName=it().getParser(window.navigator.userAgent).getBrowserName(),r}return(0,Hi.A)(t,e),(0,Wi.A)(t,[{key:"handleRequestClose",value:function(){this.props.closeModal()}},{key:"render",value:function(){var e=this.props,t=e.isOpen,r=e.closeModal;return(0,y.jsx)(Ki.x,{headingMessage:p.Ru.get("fatal-error.header"),onDismissDialog:r,buttonLabel:p.Ru.get("close"),message:p.Ru.get("browser_upgrade_notice",this.browserName),isOpen:t})}}])}(o.PureComponent);const es=(0,c.Ng)((function(e){return{isOpen:e.ui.playbackNotSupportedErrorDialog.isOpen}}),(function(e){return{closeModal:function(){return e((0,ae.e$)())}}}))($i);r(42486),r(68216);var ts=r(12072),rs=r(96234),ns=r(60455),as=r(27386),is=r(52636);const ss="kRjJnLKzSkQegtH6S7zD";var os=function(e){return e[e.SIGNUP=0]="SIGNUP",e[e.LOGIN=1]="LOGIN",e[e.DOWNLOAD=2]="DOWNLOAD",e}(os||{}),cs=(0,o.memo)((function(e){var t=e.image,r=e.mediaType,n=e.backgroundColor,a=e.onSignupClick,i=e.onLoginClick,s=e.onDownloadClick,o=e.downloadLink,c=function(e){return function(t){switch(t.preventDefault(),e){case os.DOWNLOAD:s&&s(),window.open(o,"_top","noopener");break;case os.SIGNUP:a&&a(),(0,is.ie)();break;case os.LOGIN:i&&i(),(0,is.PW)()}}},l=(0,as.g)(),u="audio"===r?p.Ru.get("fta.wall.start-listening"):p.Ru.get("fta.wall.start-watching"),m=(0,y.jsx)(w.$,{onClick:c(os.SIGNUP),children:p.Ru.get("mwp.cta.sign.up.free")}),g=!l&&o?(0,y.jsx)(ts.n,{"data-testid":"upsell-download-app-button",onClick:c(os.DOWNLOAD),children:p.Ru.get("mwp.cta.download.app")}):void 0,f=(0,ns.y)();return(0,y.jsx)(V,{image:t,title:u,primaryButton:m,secondaryButton:g,size:f,style:n?{backgroundColor:n}:{},renderExtraInfo:function(){return(0,y.jsxs)("p",{className:ss,onKeyDown:function(){return c(os.LOGIN)},role:"presentation",children:[(0,y.jsx)(d.E,{variant:"bodySmall",children:p.Ru.get("already_have_account")}),(0,y.jsx)(rs.Y,{href:"#",onClick:c(os.LOGIN),children:p.Ru.get("login")})]})}})})),ls=r(53406),us=r(91442);const ds="anllJYN1jeYGGE1iAJUJ",ms="YQRQdqiQ_iT0eo0owsJL",ps="ftlV6Ixmq4wkKMg7hJ1v";var gs=(0,n.A)((0,n.A)((0,n.A)({},G.E.SMALL,0),G.E.MEDIUM,600),G.E.LARGE,1024),fs=function(e){var t,r=e.image,n=e.mediaType,a=e.backgroundColor,i=e.onClose,s=(0,be.W)(),c=function(e){return function(){s({intent:e,type:"click"})}},l=(0,ls.x)(gs),u=l.ref,d=l.breakpoint;return(0,o.useEffect)((function(){var e=function(e){"Escape"===e.key&&(i(),s({intent:"close-upsell",type:"key-escape"}))};return s({intent:"open-upsell",type:"impression"}),window.addEventListener("keyup",e,!1),function(){return window.removeEventListener("keyup",e)}}),[s,i]),(0,y.jsx)(ns.o.Provider,{value:d,children:(0,y.jsx)("div",{className:"dialog ".concat(ps),role:"presentation",ref:u,onClick:function(e){/dialog/.test(e.target.className)&&(s({intent:"close-upsell",type:"click",itemIdSuffix:"backdrop"}),i())},children:(0,y.jsxs)("div",{className:ds,style:{backgroundColor:a},children:[(0,y.jsx)(cs,{image:r,mediaType:n,onDownloadClick:c("download-app"),onLoginClick:c("login"),onSignupClick:c("signup"),downloadLink:(t=(0,us.mb)(),t.searchParams.set("referrer","dwp"),t).toString()}),(0,y.jsx)("div",{className:ms,children:(0,y.jsx)(j.H,{onClick:function(){s({intent:"close-upsell",type:"click",itemIdSuffix:"close-button"}),i()},children:p.Ru.get("close")})})]})})})},vs=r(69047),bs=o.memo((function(e){var t=e.uri,r=(0,c.wA)(),n=(0,Nt.b)("images/focused_stroy_play.png"),a=(0,vs.h)(t,"#9BF0E1",n),i=(0,A.A)(a,2),s=i[0],o=i[1];return(0,y.jsx)(_a.pZ,{value:"signup-modal",children:(0,y.jsx)(fs,{image:s,mediaType:(0,fe.WB)(null!=t?t:"")?"mixed":"audio",onClose:function(){r((0,ae.BU)())},backgroundColor:o})})})),hs=r(33496),xs=r(53586),Rs=function(){var e,t,r=(0,c.wA)(),n=(0,c.d4)((function(e){return e.ui.artistAboutDialog})).data;if(!n)return null;var a=n.artist,i=n.artistUri,s=n.visuals,o=n.stats,l=n.externalLinks,u=s.gallery,d=o.monthlyListeners,m=o.worldRank,p=o.followers,g=o.topCities,f=[];return u.items.forEach((function(e){var t=e.sources.map(xs.m),r=(0,da.g)(t,{desiredLabel:"large",desiredSize:600});r&&f.push(r)})),(0,y.jsx)(hs.y,{artistUri:i,name:a.name,bio:null===(e=a.biography)||void 0===e?void 0:e.text,bioSource:null===(t=a.biography)||void 0===t?void 0:t.type,worldRank:m||0,isOpen:!0,closeModal:function(){r((0,ae.lM)())},images:f,externalLinks:l,topCities:null==g?void 0:g.items,followers:p,monthlyListeners:d})},ys=r(92562),Es=r(93645),ks=r(42239);function js(e){var t=e.children,r=e.ctaUrl,n=e.spec,a=(0,c.wA)(),i=(0,nr.s)(),s=(0,o.useCallback)((function(){a((0,ae.us)()),i.logInteraction(n.consumptionCapModalFactory().topUpButtonFactory().hitUiHide())}),[a,i,n]),l=(0,o.useCallback)((function(){i.logInteraction(n.consumptionCapModalFactory().topUpButtonFactory().hitNavigateToExternalUri({destination:r}))}),[r,i,n]);return r?(0,y.jsx)(w.$,{as:"a",href:r,target:"_blank",colorSet:"invertedLight",iconTrailing:ks.p,onClick:l,children:t}):(0,y.jsx)(w.$,{colorSet:"invertedLight",onClick:s,children:t})}function Os(e){var t=e.children,r=e.onClick;return t?(0,y.jsx)(j.H,{onClick:r,semanticColor:"textSubdued",children:t}):null}var Cs=r(72520);const ws="NxTiDyoRCvpiMZga0txl",Ss="uEd5tll92zN6mh4YiQ6E",As="YQEvA2GajE9nCaNVxwuq",Ns="F12mp8xs0gc5ri9361Ap";var _s=function(){var e=(0,c.wA)(),t=(0,tt.r)(Es.M,{}),r=t.spec,n=t.logger,a=(0,c.d4)((function(e){return e.ui.bookConsumptionCapModal})),i=a.consumptionCapExplanation,s=a.isOpen,l=(0,o.useCallback)((function(){e((0,ae.us)()),n.logInteraction(r.consumptionCapModalFactory().dismissButtonFactory().hitUiHide())}),[e,n,r]),u=(0,o.useCallback)((function(t){t.data.explanation?e((0,ae._3)(t.data.explanation)):e((0,ae.us)())}),[e]);return(0,Cs.l)(u),(0,y.jsx)(f.A,{animated:!0,shouldCloseOnEsc:!1,shouldCloseOnOverlayClick:!1,onRequestClose:l,contentLabel:i.title,isOpen:s,children:(0,y.jsxs)("div",{className:ws,children:[(0,y.jsx)(ys._,{className:Ss,src:(0,Nt.b)("images/top-up.png"),alt:"",imageWidth:"200px",imageHeight:"196px"}),(0,y.jsxs)("div",{className:As,children:[(0,y.jsx)(d.E,{as:"h2",variant:"titleMedium",semanticColor:"textBase",children:i.title}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",semanticColor:"textBase",children:i.body}),(0,y.jsxs)("div",{className:Ns,children:[(0,y.jsx)(js,{ctaUrl:i.ctaUrl,spec:r,children:i.cta}),(0,y.jsx)(Os,{onClick:l,children:i.dismiss})]})]})]})})},Is=r(8143),Ts=r(20607),Ls=r(10015),Ds=(0,o.lazy)((0,a.A)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(4151),r.e(9683),r.e(983)]).then(r.bind(r,8769));case 2:return t=e.sent,n=t.DebugWindowContents,e.abrupt("return",{default:n});case 5:case"end":return e.stop()}}),e)})))),Ps=function(){var e=(0,Ts.j)(),t=e.handle,r=e.show;return(0,qe.x)(Ye.W.SHOW_DEBUG_WINDOW,(function(){r()})),null!==t?(0,Is.createPortal)((0,y.jsx)(Ls.IF,{handle:t,children:(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Ds,{})})}),t.document.body):null},Ms=r(11517),Us=function(e){var t=e.uri,r=e.onConfirm,n=e.onCancel,a=e.remoteDeviceInfo,i=(0,nr.s)(),s=(0,o.useMemo)((function(){return(0,Ms.c)()}),[]);(0,o.useEffect)((function(){i.logImpression(s.impression())}),[i,s]);var l=(0,c.wA)();return(0,y.jsx)(ve.T,{"aria-label":p.Ru.get("web-player.download.remove-download-confirmation-dialog.title"),titleText:p.Ru.get("web-player.download.remove-download-confirmation-dialog.title"),descriptionText:a?p.Ru.get("web-player.download.remove-download-confirmation-dialog.message-remote",a.deviceName):p.Ru.get("web-player.download.remove-download-confirmation-dialog.message"),onConfirm:function(){r(),l((0,ae.Kf)()),i.logInteraction(a?s.confirmRemoveDownloadButtonFactory().hitRemoveDownloadFromRemoteDevice({itemToRemoveFromDownloads:t,remoteDeviceId:a.deviceId,remoteDeviceType:a.deviceType.toString(),remoteClientPlatform:a.clientPlatform.toString()}):s.confirmRemoveDownloadButtonFactory().hitRemoveDownload({itemToRemoveFromDownloads:t}))},onClose:function(){n(),l((0,ae.Kf)()),i.logInteraction(s.cancelButtonFactory().hitUiHide())},confirmText:p.Ru.get("web-player.download.remove-download-confirmation-dialog.confirm-button-text"),confirmLabel:p.Ru.get("web-player.download.remove-download-confirmation-dialog.confirm-button-label"),cancelText:p.Ru.get("web-player.download.remove-download-confirmation-dialog.cancel-button-text"),allowHTML:!0})},Bs=r(43888),Fs=r(25060),Gs=r(88183),Ws=r(21713),Vs=r(67924),zs=r(83643),Hs=r(24804),Ks=r(93051),Ys=r(61616),qs=r(53731),Qs=r(27151),Zs=r(55876),Js=function(e){var t=e.onChangePermission,r=e.onRemoveMember,n=e.onLeave,a=e.member,i=e.capabilities;return(0,y.jsxs)(Rr.W,{children:[i.canAdministratePermissions&&"VIEWER"===a.permissionLevel&&(0,y.jsx)(yr.D,{role:"menuitemradio","aria-checked":!1,onClick:function(){return t("CONTRIBUTOR")},leadingIcon:(0,y.jsx)(Qs.u,{size:"small"}),children:(0,y.jsx)(d.E,{variant:"bodySmall",children:p.Ru.get("contextmenu.make-collaborator")})}),i.canAdministratePermissions&&"CONTRIBUTOR"===a.permissionLevel&&(0,y.jsx)(yr.D,{role:"menuitemradio","aria-checked":!1,onClick:function(){return t("VIEWER")},leadingIcon:(0,y.jsx)(Qs.u,{size:"small"}),children:(0,y.jsx)(d.E,{variant:"bodySmall",children:p.Ru.get("contextmenu.make-listener")})}),i.canAdministratePermissions&&(0,y.jsx)(yr.D,{role:"menuitemradio","aria-checked":!1,onClick:function(){return r()},leadingIcon:(0,y.jsx)(Zs.r,{size:"small"}),children:(0,y.jsx)(d.E,{variant:"bodySmall",children:p.Ru.get("contextmenu.remove-user-from-playlist")})}),i.canCancelMembership&&(0,y.jsx)(yr.D,{role:"menuitemradio","aria-checked":!1,onClick:function(){return n()},leadingIcon:(0,y.jsx)(Zs.r,{size:"small"}),children:(0,y.jsx)(d.E,{variant:"bodySmall",children:p.Ru.get("contextmenu.leave-playlist")})})]})},Xs=r(82491);const $s="uv2sbcK86mvObEP6I6hA",eo="biDFn_kFEWlTdVmGaI4c",to="EW1t5mbo9hvxGC_ptS6k",ro="qEJiFwRQbUiOdb9xXQIa",no="SexldtxY9c9V6RANcuod",ao="zW45u2gfu8HHBqbm745Z",io="vxjT7DTxVfyAxy3WcErT",so="llgv1BhpY3BwLUvcQ3Hx",oo="aCyb8gmETLFf6lQmJs2v",co="ZKrl2b1JEsPzkUo5X9hG",lo="gaPaX1jusmGCAKSG5L7N",uo="Nhe2Q_5EbptALoVW3V4K",mo="s9rTnCluVsYXlqj5OdMg",po="FJrwM8ylEu9MfQEclH24",go="olUpKnRVm_c2P5yQwddx";var fo=function(e){var t=e.uri,r=e.member,i=e.capabilities,l=e.isCurrentUser,u=(0,c.wA)(),m=(0,o.useState)(!1),g=(0,A.A)(m,2),f=g[0],v=g[1],b=function(e){var t=(0,Xs.a)(),r=(0,o.useCallback)(function(){var r=(0,a.A)(s().mark((function r(n,a){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.setMemberPermission(e,n,a);case 2:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}(),[t,e]),n=(0,o.useCallback)(function(){var r=(0,a.A)(s().mark((function r(n){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.removeMember(e,n);case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),[t,e]),i=(0,o.useCallback)(function(){var r=(0,a.A)(s().mark((function r(n){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.setBasePermission(e,n);case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),[t,e]);return{uri:e,changeMemberPermission:r,removeMember:n,changeBasePermission:i}}(t),h=b.changeMemberPermission,x=b.removeMember,R=(0,o.useCallback)((function(e){r.user&&(h(r.user.username,e),v(!0))}),[h,r.user]),E=(0,o.useCallback)((function(){r.user&&(x(r.user.username),v(!0))}),[r.user,x]),k=(0,o.useCallback)((function(){u((0,ae.aP)(t))}),[u,t]),j=!r.isOwner&&((null==i?void 0:i.canAdministratePermissions)||(null==i?void 0:i.canCancelMembership)&&l),O="CONTRIBUTOR"===r.permissionLevel?p.Ru.get("permissions.collaborator"):p.Ru.get("permissions.listener");return r.isOwner&&(O=p.Ru.get("permissions.creator")),j&&i?(0,y.jsx)(xr.b,{renderInline:!0,menu:(0,y.jsx)(Js,{onChangePermission:R,onRemoveMember:E,onLeave:k,capabilities:i,member:r}),children:function(e,t,r){return(0,y.jsxs)("button",{className:C()(mo,po,(0,n.A)({},go,f)),onClick:t,ref:r,type:"button","data-testid":"permissions-menu",children:[(0,y.jsx)(d.E,{variant:"bodySmall",children:O}),e?(0,y.jsx)(Ys.J,{size:"small"}):(0,y.jsx)(qs.y,{size:"small"})]})}}):(0,y.jsx)(d.E,{variant:"bodySmall",className:mo,children:O})},vo=function(e){var t=e.member,r=e.playlistUri,n=e.username,a=e.capabilities,i=e.onClose;if(!t.user)return null;var s=n===t.user.username,o=s&&t.user.displayName?p.Ru.get("permissions.current-user-name",t.user.displayName):t.user.displayName;return(0,y.jsxs)("div",{className:so,children:[(0,y.jsxs)("div",{className:oo,children:[(0,y.jsx)(Vs.e,{label:t.user.displayName,images:t.user.images.map((function(e){return{url:e.url,width:e.width||null,height:e.height||null}})),width:32,userIconSize:"small"}),(0,y.jsxs)("div",{className:co,children:[(0,y.jsx)(zs.h,{menu:(0,y.jsx)(Hs.B,{uri:t.user.uri}),children:(0,y.jsx)(Ks.N,{title:null!=o?o:t.user.username,to:t.user.uri,dir:"auto",onClick:i,children:(0,y.jsx)(d.E,{variant:"bodySmallBold",children:o})})}),t.songsAdded>0&&(0,y.jsx)(d.E,{className:lo,variant:"marginal",children:p.Ru.get("permissions.songs-added",t.songsAdded)})]})]}),(0,y.jsx)(fo,{uri:r,member:t,capabilities:a,isCurrentUser:s})]},t.user.uri)};var bo=function(e){var t=e.isPublicPlaylist;return(0,y.jsx)("div",{className:no,children:t?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Fs.d,{size:"small"}),(0,y.jsx)(d.E,{className:ao,variant:"marginal",children:p.Ru.get("permissions.public-playlist")})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Gs.u,{size:"small"}),(0,y.jsx)(d.E,{className:ao,variant:"marginal",children:p.Ru.get("permissions.private-playlist")})]})})},ho=function(e){var t,r=e.isOpen,n=e.uri,a=e.onClose,i=function(e){var t=(0,Xs.a)(),r=(0,o.useState)(null),n=(0,A.A)(r,2),a=n[0],i=n[1],s=(0,o.useCallback)((function(e,t){i(e||!t?null:t)}),[]);return(0,o.useEffect)((function(){return t.subscribeToMembers(e,s)}),[t,e,s]),a}(n),s=(0,c.d4)((function(e){var t,r=e.session;return null==r||null===(t=r.user)||void 0===t?void 0:t.id}))||null;return i?(0,y.jsx)(f.A,{isOpen:r,onRequestClose:a,contentLabel:p.Ru.get("permissions.modal-label"),children:(0,y.jsxs)("div",{"data-testid":"playlist-permissions-modal",className:$s,children:[(0,y.jsxs)("div",{className:eo,children:[(0,y.jsxs)("div",{className:to,children:[(0,y.jsx)(bo,{isPublicPlaylist:(t=i.basePermissionLevel,"VIEWER"===t||"CONTRIBUTOR"===t)}),(0,y.jsx)("button",{className:io,onClick:a,children:(0,y.jsx)(m.M,{size:"small","aria-label":p.Ru.get("close")})})]}),(0,y.jsx)(d.E,{as:"h1",variant:"titleMedium",children:p.Ru.get("permissions.shared-with")})]}),(0,y.jsx)(Ws.a,{className:uo,children:(0,y.jsx)("div",{className:ro,children:(0,y.jsx)("div",{children:i.members&&i.members.map((function(e){var t;return(0,y.jsx)(vo,{playlistUri:n,member:e,username:s,capabilities:i.capabilities,onClose:a},null===(t=e.user)||void 0===t?void 0:t.username)}))})})})]})}):null},xo=r(25525),Ro=function(){var e=(0,l.NC)(yt.G6N),t=(0,o.useContext)(xo.cM),r=t.isOpen,n=t.uri,a=(0,o.useContext)(xo.VV),i=(0,o.useCallback)((function(){a({type:"close"})}),[a]);return e&&r&&n?(0,y.jsx)(ho,{isOpen:r,onClose:i,uri:n}):null},yo=r(55828),Eo="search-modal-listbox",ko=r(96027);const jo="search-modal-searchBar",Oo="search-modal-searchIcon",Co="search-modal-input";var wo=(0,o.memo)((function(e){var t=e.value,r=e.onChange,n=e.onKeyPress,a=e.hasResults,i=e.activeResultId;return(0,y.jsxs)("div",{className:jo,children:[(0,y.jsx)(ko.C,{className:Oo,"aria-hidden":!0}),(0,y.jsx)(d.E,{as:"input",variant:"bodyMedium",className:Co,value:t,onKeyDown:n,onChange:r,placeholder:p.Ru.get("web-player.search-modal.placeholder"),autoFocus:!0,role:"combobox","aria-expanded":a,"aria-controls":Eo,"aria-owns":Eo,"aria-activedescendant":i})]})}));const So={SearchModalInstructions:"search-modal-keyboard-accessibility-bar",hidden:"KOpaRxg8Q8z9XEMKrRp4",key:"c4hmXDjs2Dv8n3VCLz1g"};var Ao=function(e){var t=e.canOpen,r=e.canPlay,n=e.canSelect;return t||r||n?(0,y.jsxs)("div",{className:So.SearchModalInstructions,children:[(0,y.jsx)(Lo,{isActive:n,children:(0,y.jsx)(No,{})}),(0,y.jsx)(Lo,{isActive:t,children:(0,y.jsx)(_o,{})}),(0,y.jsx)(Lo,{isActive:r,children:(0,y.jsx)(Io,{})})]}):null};function No(){return p.Ru.get("web-player.search-modal.instructions.navigate",{keys:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(To,{children:"↑"}),(0,y.jsx)(To,{children:"↓"})]})})}function _o(){return p.Ru.get("web-player.search-modal.instructions.open",{keys:(0,y.jsx)(To,{children:"Enter"})})}function Io(){return p.Ru.get("web-player.search-modal.instructions.play",{keys:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(To,{children:"Shift"}),(0,y.jsx)(To,{children:"Enter"})]})})}function To(e){var t=e.children;return(0,y.jsx)(d.E,{as:"kbd",variant:"bodySmall",className:So.key,semanticColor:"textBase",children:t})}function Lo(e){var t=e.children,r=e.isActive;return(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",semanticColor:"textSubdued",className:C()((0,n.A)({},So.hidden,!r)),children:t})}r(79210);var Do=new ra.l("searchModalResults","query","34f48bca447d3420a9310ea259bfd4b89d2f7a3608c461d5c121d6232379fb22",null),Po=r(82704);function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bo=(0,o.memo)((function(e){var t,r,n=e.query,a=e.onResults,i=e.numberOfResults,s=(0,En.n)(),c=(t={limit:i,numberOfTopResults:i,offset:0,searchTerm:n,includeAudiobooks:!0},r={gcTime:18e5,staleTime:3e5,enabled:n.trim().length>0&&s},(0,na.I)(Do,t,r)),l=c.data,u=c.error,d=c.loading;return(0,o.useEffect)((function(){for(var e,t,r,i,s=null!==(e=null==l||null===(t=l.searchV2)||void 0===t||null===(t=t.topResultsV2)||void 0===t?void 0:t.itemsV2)&&void 0!==e?e:[],o=[],c=0;c<s.length;c++){var m=s[c],p=m.item,g=m.matchedFields;if("UnknownTypeWrapper"!==p.__typename&&"PreReleaseResponseWrapper"!==p.__typename&&p.data)switch(p.data.__typename){case"Genre":o.push(Uo(Uo({},p.data),{},{uri:(r=p.data.uri,i=void 0,i=(0,fe.o_)(r),i?r:"spotify:genre:".concat(r)),matchedFields:g}));break;case"Album":case"Artist":case"Track":case"Playlist":case"User":case"Episode":case"Podcast":case"Audiobook":o.push(Uo(Uo({},p.data),{},{matchedFields:g}));break;case"NotFound":case"RestrictedContent":case"GenericError":break;default:(0,Po.k)(p.data)}}a({query:n,error:!!u,loading:d,results:o})}),[l,u,d,a,n]),null}));var Fo=r(59739),Go=r(51943),Wo=r(86533),Vo=r(53163),zo=r(80439),Ho=r(54068),Ko=r(64877),Yo=r(51725),qo=r(56052);const Qo="XUU9nKfSDuNkadzFz_OQ";var Zo=function(e){var t=e.children;return(0,y.jsx)(d.E,{variant:"bodySmall",semanticColor:"textSubdued",className:Qo,children:t})},Jo=function(e){return"search-modal-result-".concat(e)},Xo=r(11404);const $o="search-modal-resultItem",ec="mvQT8XMnLMFMikaUfHqO",tc="hEPIW_7QH4X3m4QrRPsP",rc="bFrnKMII6LDDL6NbaYnZ",nc="dJtLqNpbjiE4oggCyFSQ",ac="mx8mS84MYJW_9iHyXNJu";var ic=function(e){var t=e.position,r=e.uri,a=e.title,i=e.image,s=e.color,c=e.subtitle,l=e.isSelected,u=e.onClick,m=e.tag,p=e.label,g=e.menu,f=(0,o.useRef)(null);(0,o.useEffect)((function(){var e;l&&(null===(e=f.current)||void 0===e||e.scrollIntoView({behavior:"auto",block:"nearest"}))}),[l]);var v=(0,Xo.l_)(r).isActive,b=(0,o.useCallback)((function(){u({uri:r,position:t})}),[u,t,r]),h=(0,n.A)({},"--position",t);return(0,y.jsx)(zs.h,{menu:g,children:(0,y.jsxs)(Ks.N,{ref:f,to:r,className:C()($o,(0,n.A)({},ec,l)),role:"option","aria-selected":l,onClick:b,id:Jo(r),style:h,tabIndex:-1,children:[(0,y.jsx)("span",{className:"hidden-visually",children:p}),(0,y.jsx)("div",{className:rc,"aria-hidden":!0,children:(0,y.jsx)(qo.M,{images:[{url:i,width:40,height:40}],color:s,isCircular:(0,fe.ec)(r)})}),(0,y.jsxs)("div",{className:nc,"aria-hidden":!0,children:[(0,y.jsx)(d.E,{as:"p",variant:"bodyMedium",className:tc,semanticColor:v?"textBrightAccent":"textBase",children:a}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",className:tc,semanticColor:"textSubdued",children:c})]}),(0,y.jsx)("div",{className:ac,"aria-hidden":!0,children:(0,y.jsx)(Zo,{children:m})})]})})},sc=r(42010),oc=r(4140),cc=function(e){var t=e.results,r=e.onClick,n=e.selectedIndex;return(0,y.jsx)(y.Fragment,{children:t.map((function(e,t){return(0,y.jsx)(o.Fragment,{children:lc(e,t,r,n===t)},t)}))})};function lc(e,t,r,n){var a,i,s,o,c,l,u,d,m,g,f,v,b,h,x,R,E,k,j;switch(e.__typename){case"Album":var O,C,w,S=e.artists.items.map((function(e){return e.profile.name})).join(p.Ru.getSeparator());return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(O=null===(C=e.coverArt)||void 0===C||null===(C=C.sources)||void 0===C||null===(C=C[0])||void 0===C?void 0:C.url)&&void 0!==O?O:"",color:(0,sc.m)(null===(w=e.coverArt)||void 0===w?void 0:w.extractedColors),subtitle:S,uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.album"),label:p.Ru.get("web-player.search-modal.a11y.contentbyartist",{item:e.name,creator:S,type:p.Ru.get("web-player.search-modal.result.album")}),menu:(0,y.jsx)(Fo.h,{uri:e.uri})});case"Artist":return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.profile.name,image:null!==(a=null===(i=e.visuals.avatarImage)||void 0===i||null===(i=i.sources)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.url)&&void 0!==a?a:"",color:(0,sc.m)(null===(s=e.visuals.avatarImage)||void 0===s?void 0:s.extractedColors),subtitle:"",uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.artist"),label:p.Ru.get("web-player.search-modal.a11y.label",{item:e.profile.name,type:p.Ru.get("web-player.search-modal.result.artist")}),menu:(0,y.jsx)(Go.t,{uri:e.uri})});case"Track":var A,N,_,I=e.artists.items.map((function(e){return e.profile.name})).join(p.Ru.getSeparator()),T=I;if(e.matchedFields.includes(oc.tC.Lyrics)){var L=p.Ru.get("web-player.search-modal.lyrics-match");T="".concat(T," · ").concat(L)}return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(A=null===(N=e.albumOfTrack)||void 0===N||null===(N=N.coverArt)||void 0===N||null===(N=N.sources)||void 0===N||null===(N=N[0])||void 0===N?void 0:N.url)&&void 0!==A?A:"",color:(0,sc.m)(null===(_=e.albumOfTrack)||void 0===_||null===(_=_.coverArt)||void 0===_?void 0:_.extractedColors),subtitle:T,uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.track"),label:p.Ru.get("web-player.search-modal.a11y.contentbyartist",{item:e.name,creator:I,type:p.Ru.get("web-player.search-modal.result.track")}),menu:(0,y.jsx)(Yo.P,{uri:e.uri})});case"Playlist":var D,P,M,U="User"===(null===(D=e.ownerV2.data)||void 0===D?void 0:D.__typename)?e.ownerV2.data.name:"",B=e.images.items.find((function(e){return e.sources}));return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(P=null==B||null===(M=B.sources)||void 0===M?void 0:M[0].url)&&void 0!==P?P:"",color:(0,sc.m)(null==B?void 0:B.extractedColors),subtitle:U,uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.playlist"),label:p.Ru.get("web-player.search-modal.a11y.contentbyartist",{item:e.name,creator:U,type:p.Ru.get("web-player.search-modal.result.playlist")}),menu:(0,y.jsx)(Ho.W,{uri:e.uri})});case"User":return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(o=null===(c=e.avatar)||void 0===c||null===(c=c.sources)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.url)&&void 0!==o?o:"",color:(0,sc.m)(null===(l=e.avatar)||void 0===l?void 0:l.extractedColors),subtitle:"",uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.user"),label:p.Ru.get("web-player.search-modal.a11y.label",{item:e.name,type:p.Ru.get("web-player.search-modal.result.user")}),menu:(0,y.jsx)(Hs.B,{uri:e.uri})});case"Genre":return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(u=null===(d=e.image)||void 0===d||null===(d=d.sources)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.url)&&void 0!==u?u:"",color:(0,sc.m)(null===(m=e.image)||void 0===m?void 0:m.extractedColors),subtitle:"",uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.genre"),label:p.Ru.get("web-player.search-modal.a11y.label",{item:e.name,type:p.Ru.get("web-player.search-modal.result.genre")}),menu:(0,y.jsx)(zo.h,{uri:e.uri})});case"Episode":var F,G,W,V,z="Podcast"===e.podcastV2.data.__typename&&e.podcastV2.data.name||void 0,H=[null!==(F=e.releaseDate)&&void 0!==F&&F.isoString?p.Ru.formatDate(new Date(e.releaseDate.isoString)):void 0,z].filter(Boolean).join(" • "),K=z?p.Ru.get("web-player.search-modal.a11y.contentbyartist",{item:e.name,creator:z,type:p.Ru.get("web-player.search-modal.result.episode")}):e.name;return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(G=null===(W=e.coverArt)||void 0===W||null===(W=W.sources)||void 0===W||null===(W=W[0])||void 0===W?void 0:W.url)&&void 0!==G?G:"",color:(0,sc.m)(null===(V=e.coverArt)||void 0===V?void 0:V.extractedColors),subtitle:H,uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.episode"),label:K,menu:(0,y.jsx)(Vo.b,{uri:e.uri})});case"Podcast":return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(g=null===(f=e.coverArt)||void 0===f||null===(f=f.sources)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.url)&&void 0!==g?g:"",color:(0,sc.m)(null===(v=e.coverArt)||void 0===v?void 0:v.extractedColors),subtitle:null!==(b=null===(h=e.publisher)||void 0===h?void 0:h.name)&&void 0!==b?b:"",uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.podcast"),label:p.Ru.get("web-player.search-modal.a11y.label",{item:e.name,type:p.Ru.get("web-player.search-modal.result.podcast")}),menu:(0,y.jsx)(Ko.H,{uri:e.uri})});case"Audiobook":return(0,y.jsx)(ic,{isSelected:n,position:t,onClick:r,title:e.name,image:null!==(x=null===(R=e.coverArt)||void 0===R||null===(R=R.sources)||void 0===R||null===(R=R[0])||void 0===R?void 0:R.url)&&void 0!==x?x:"",color:(0,sc.m)(null===(E=e.coverArt)||void 0===E?void 0:E.extractedColors),subtitle:null!==(k=null===(j=e.publisher)||void 0===j?void 0:j.name)&&void 0!==k?k:"",uri:e.uri,tag:p.Ru.get("web-player.search-modal.result.audiobook"),label:p.Ru.get("web-player.search-modal.a11y.label",{item:e.name,type:p.Ru.get("web-player.search-modal.result.audiobook")}),menu:(0,y.jsx)(Wo.p,{uri:e.uri})});default:return(0,Po.d)(e)}}var uc=r(826),dc=r(64869),mc=r(60256);const pc="N9tnwm0XDrt_eGJd2D2A",gc="zZMsUUWG29PYcwWPXhOV",fc="_kfmGT75UTPoF_D2afwa",vc="search-modal-listbox",bc="Bn7PjpLWU6TcPCoeP98S",hc="QVqrI1qDRcHQgBn2uuWd",xc="mXdNvIO9PYnBFoyoMyUO",Rc="Xf30G8NSPQ3pex0iD4zB",yc="ixdB7tx1aniI9zfMECIi";var Ec={modal:{base:xc,afterOpen:Rc,beforeClose:yc},overlay:{base:xc,afterOpen:Rc,beforeClose:yc}},kc=function(){var e=(0,ge.Zp)(),t=(0,uc.Nf)(),r=(0,tt.r)(yo.I,{}),a=r.spec,i=r.logger,s=r.UBIFragment,c=(0,mc.t)(a),l=(0,o.useState)(""),u=(0,A.A)(l,2),m=u[0],g=u[1],f=(0,o.useState)([]),v=(0,A.A)(f,2),b=v[0],h=v[1],x=(0,o.useState)(0),R=(0,A.A)(x,2),E=R[0],k=R[1],j=(0,o.useState)(!1),O=(0,A.A)(j,2),w=O[0],S=O[1],N=!(0,En.n)(),_=(0,o.useMemo)((function(){return(0,fe.o_)(m,{parseUnknown:!0})}),[m]),I=_&&_.type!==fe.NQ.AD,T=(0,o.useCallback)((function(e){var t=e.target.value;t!==m&&(g(t),k(0),i.logInteraction(a.inputFactory().keyStrokeChangeSearchQuery({searchQueryString:t})))}),[i,m,a]),L=(0,o.useCallback)((function(){g(""),t({type:"CLOSE"})}),[t]),D=(0,o.useCallback)((function(e){var t=e.uri,r=e.position;i.logInteraction(a.searchResultFactory({position:r}).hitUiNavigate({destination:t})),L()}),[L,i,a]),P=(0,dc.z)(),M=(0,o.useCallback)((function(t){var r=t.key;if("ArrowUp"===r)k((function(e){return Math.max(e-1,0)})),t.preventDefault();else if("ArrowDown"===r)k((function(e){return Math.min(e+1,b.length-1)})),t.preventDefault();else if("Enter"===r){if(I)return e(_.toURLPath(!0)),void L();var n=b[E];if(n){var a=(0,fe.o_)(n.uri);if(t.shiftKey)Oc(null==a?void 0:a.type)&&P.play({uri:n.uri},{featureIdentifier:"quick_search",referrerIdentifier:"PlayerStub_UnknownReferrer"});else{var i=null==a?void 0:a.toURLPath(!0);i&&(e(i),D({uri:n.uri,position:E}))}}t.preventDefault()}}),[I,L,D,e,P,_,b,E]),U=(0,o.useCallback)((function(e){S(e.loading),e.query===m&&h(e.results)}),[m]),B=b.length>0,F=b[E],G=F?Jo(F.uri):void 0,W=(0,fe.o_)(null==F?void 0:F.uri),V=Oc(null==W?void 0:W.type);return(0,y.jsxs)(s,{spec:a,children:[(0,y.jsx)(Bo,{query:I?"":m,numberOfResults:30,onResults:U}),(0,y.jsxs)("div",{className:pc,ref:c,children:[(0,y.jsx)("div",{className:C()(gc,(0,n.A)({},fc,b.length)),children:(0,y.jsx)(wo,{value:m,onChange:T,onKeyPress:M,hasResults:B,activeResultId:G})}),(0,y.jsx)(Ao,{canSelect:B&&!I,canPlay:V,canOpen:B||!!I}),m&&!I&&B&&(0,y.jsx)("div",{className:vc,id:Eo,role:"listbox",children:(0,y.jsx)(cc,{results:b,onClick:D,selectedIndex:E})}),!w&&m&&!B&&(0,y.jsxs)("div",{className:bc,onClick:L,children:[(0,y.jsx)(d.E,{className:hc,as:"h1",variant:"titleSmall",semanticColor:"textBase",children:p.Ru.get("search.empty-results-title",m)}),N&&(0,y.jsx)(d.E,{as:"p",semanticColor:"textBase",children:p.Ru.get("web-player.search-modal.offline")})]})]})]})},jc=function(){var e=(0,uc.Qc)().isOpen,t=(0,uc.Nf)(),r=(0,o.useCallback)((function(){t({type:"CLOSE"})}),[t]);return e?(0,y.jsx)(f.A,{contentLabel:p.Ru.get("web-player.search-modal.title"),isOpen:e,onRequestClose:r,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,animation:Ec,children:(0,y.jsx)(kc,{})}):null};function Oc(e){switch(e){case"album":case"artist":case"track":case"playlist":case"playlist-v2":case"episode":case"show":return!0;default:return!1}}var Cc=function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ui.personalizedRecommendationsErrorModal})).isOpen;return(0,y.jsx)(Ki.x,{headingMessage:p.Ru.get("error-dialog.generic.header"),message:p.Ru.get("web-player.settings.personalized-recommendations.error-modal-message"),buttonLabel:p.Ru.get("web-player.settings.personalized-recommendations.error-modal-button"),onDismissDialog:function(){e(rr.bL.actions.close())},animated:!0,isOpen:t})},wc=(r(184),r(32968));const Sc="t1hN4Ju87afc5N5fDTnm",Ac="kq4vSktBwa0pcc1zklAo",Nc="KSUTPJtu2PnuTb_RoGQX";var _c=function(e){var t=e.onClose,r=e.handleRemove,n=e.primaryButtonText,a=e.secondaryButtonText,i=e.primaryButtonLabel,s=void 0===i?n:i;return(0,y.jsxs)("div",{className:Nc,children:[(0,y.jsx)(j.H,{onClick:t,semanticColor:"textSubdued","aria-label":"Cancel",children:a}),(0,y.jsx)(w.$,{"aria-label":s,autofocus:"true",onClick:r,children:n})]})},Ic=function(e){var t=e.onClose,r=e.primaryButtonText,n=e.secondaryButtonText;return(0,y.jsxs)("div",{className:Nc,children:[(0,y.jsx)(j.H,{onClick:t,semanticColor:"textSubdued",as:"a",href:Pt.nw,children:n}),(0,y.jsx)(w.$,{autofocus:"true",onClick:t,children:r})]})},Tc=r(69819),Lc=function(){var e=(0,c.wA)(),t=(0,ie.d)().enqueueSnackbar,r=(0,Tc.B)(),n=(0,o.useState)(null),i=(0,A.A)(n,2),l=i[0],u=i[1],m=(0,o.useCallback)((function(){e((0,ae.MB)())}),[e]),g=(0,o.useCallback)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.removeAllDownloads();case 3:m(),t(p.Ru.get("desktop.settings.storage.downloads.success")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),u(e.t0 instanceof Error?e.t0:new Error("Error when deleting all downloads."));case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),[r,m,t]);return(0,y.jsx)(wc.M,{animated:!0,className:Ac,onRequestClose:m,"aria-describedby":"remove-downloads-dialog-heading",isOpen:!0,children:(0,y.jsxs)("div",{className:C()("encore-light-theme",Sc),children:[(0,y.jsx)(d.E,{as:"h2",variant:"titleSmall",semanticColor:"textBase","aria-live":"polite",id:"remove-downloads-dialog-heading",children:l?p.Ru.get("error.generic"):p.Ru.get("desktop.settings.storage.downloads.dialog.heading")}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",paddingBottom:ne.CD,semanticColor:"textSubdued","aria-live":"polite",children:l?p.Ru.get("desktop.settings.storage.downloads.dialog.error"):p.Ru.get("desktop.settings.storage.downloads.dialog.text")}),l?(0,y.jsx)(Ic,{onClose:m,primaryButtonText:p.Ru.get("desktop.settings.storage.close"),secondaryButtonText:p.Ru.get("desktop.settings.storage.help")}):(0,y.jsx)(_c,{onClose:m,handleRemove:g,primaryButtonLabel:p.Ru.get("desktop.settings.storage.downloads.button"),primaryButtonText:p.Ru.get("desktop.settings.storage.downloads.remove"),secondaryButtonText:p.Ru.get("desktop.settings.storage.cancel")})]})})},Dc=function(){var e=(0,c.wA)(),t=(0,ie.d)().enqueueSnackbar,r=(0,Tc.B)(),n=(0,o.useState)(null),i=(0,A.A)(n,2),l=i[0],u=i[1],m=(0,o.useCallback)((function(){e((0,ae.QK)())}),[e]),g=(0,o.useCallback)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.removeCache();case 3:m(),t(p.Ru.get("desktop.settings.storage.cache.success")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),u(e.t0 instanceof Error?e.t0:new Error("Error when clearing cache."));case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),[t,r,m]);return(0,y.jsx)(wc.M,{animated:!0,className:Ac,onRequestClose:m,"aria-describedby":"clear-cache-dialog-heading",isOpen:!0,children:(0,y.jsxs)("div",{className:C()("encore-light-theme",Sc),children:[(0,y.jsx)(d.E,{id:"clear-cache-dialog-heading",as:"h2",variant:"titleSmall",semanticColor:"textBase","aria-live":"polite",children:l?p.Ru.get("error.generic"):p.Ru.get("desktop.settings.storage.cache.dialog.heading")}),(0,y.jsx)(d.E,{as:"p",variant:"bodySmall",paddingBottom:ne.CD,semanticColor:"textSubdued","aria-live":"polite",children:l?p.Ru.get("desktop.settings.storage.cache.dialog.error"):p.Ru.get("desktop.settings.storage.cache.dialog.text")}),l?(0,y.jsx)(Ic,{onClose:m,primaryButtonText:p.Ru.get("desktop.settings.storage.close"),secondaryButtonText:p.Ru.get("desktop.settings.storage.help")}):(0,y.jsx)(_c,{onClose:m,handleRemove:g,primaryButtonText:p.Ru.get("desktop.settings.storage.cache.button"),secondaryButtonText:p.Ru.get("desktop.settings.storage.cancel")})]})})},Pc=r(35085);const Mc="KmvydY9aOuhL7pSuUhCP",Uc="yfp_lJM0XpzDc1TJz6Qc",Bc="rqMR6HWbOuHuIQEMFrRv";var Fc=function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ui.introducingSmartShuffleModal})).isOpen,r=function(){e(rr.cI.actions.close())};return(0,y.jsx)(f.A,{isOpen:t,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,onRequestClose:r,contentLabel:p.Ru.get("web-player.smart-shuffle.introduction-modal-title"),overlayClassName:Bc,children:(0,y.jsxs)("div",{className:Mc,children:[(0,y.jsx)(Pc.k,{size:"xxlarge",semanticColor:"textBrightAccent"}),(0,y.jsxs)("div",{className:Uc,children:[(0,y.jsx)(d.E,{variant:"titleMedium",semanticColor:"textBase",children:p.Ru.get("web-player.smart-shuffle.introduction-modal-title")}),(0,y.jsx)(d.E,{variant:"bodyMedium",semanticColor:"textBase",children:p.Ru.get("web-player.smart-shuffle.introduction-modal-description")})]}),(0,y.jsx)(w.$,{onClick:r,children:p.Ru.get("web-player.smart-shuffle.introduction-modal-ok-button")})]})})},Gc=r(62604);var Wc=r(94201),Vc=r(29745),zc=r(72001);var Hc=r(41149),Kc=r(79142);var Yc=r(73606),qc=r(44551),Qc=r(27483);var Zc=r(84186),Jc=r(77970),Xc=r(51126),$c=r(31650),el={get DEFAULT_PLAYBACK_STUCK(){return p.Ru.get("feedback.cant-play-track")},get FORCED_OFFLINE_MODE(){return p.Ru.get("feedback.track-not-available-forced-offline")},get CANT_OFFLINE_SYNC_PLAYLIST_IN_OFFLINE_MODE(){return p.Ru.get("feedback.cant-offline-sync-playlist-in-offline-mode")},get ARTIST_BANNED_BY_USER(){return p.Ru.get("feedback.artist-banned-by-user")},get TRACK_BANNED_BY_USER(){return p.Ru.get("feedback.track-banned-by-user")},get REGION_RESTRICTED(){return p.Ru.get("feedback.track-not-available-in-region-import")},get DEFAULT_PLAYER_ERROR(){return p.Ru.get("feedback.track-not-available-import")},get NETWORK_ERROR(){return p.Ru.get("feedback.video-playback-network-error")},get PREMIUM_RESTRICTED(){return p.Ru.get("feedback.track-exclusive-premium")},get CANT_SKIP_ADS(){return p.Ru.get("feedback.cant-skip-ads")},get CANT_PLAY_DURING_ADS(){return p.Ru.get("feedback.cant-play-during-ads")},get SKIP_ADS_TO_HEAR_SONG(){return p.Ru.get("feedback.skip-ads-to-hear-song")},get SKIP_AFTER_DELAY(){return p.Ru.get("feedback.skip-ads-after-delay")},get CAPPING_REACHED(){return p.Ru.get("capping.upsell-title")},get VIDEO_GEORESTRICTED(){return p.Ru.get("feedback.video-georestricted")},get VIDEO_UNSUPPORTED_CLIENT_VERSION(){return p.Ru.get("feedback.video-unsupported-client-version")},get VIDEO_UNSUPPORTED_PLATFORM_VERSION(){return p.Ru.get("feedback.video-unsupported-platform-version")},get VIDEO_COUNTRY_RESTRICTED(){return p.Ru.get("feedback.video-country-restricted")},get VIDEO_UNAVAILABLE(){return p.Ru.get("feedback.video-unavailable")},get VIDEO_CATALOGUE_RESTRICTED(){return p.Ru.get("feedback.video-catalogue-restricted")},get VIDEO_PLAYBACK_ERROR(){return p.Ru.get("feedback.video-playback-error")},get VIDEO_UNSUPPORTED_KEY_SYSTEM(){return p.Ru.get("feedback.video-unsupported-key-system")},get EXPLICIT_CONTENT_FILTERED(){return p.Ru.get("feedback.explicit-content-filtered")},get INTERRUPT_PLAYBACK_RESTRICTED(){return p.Ru.get("feedback.play-after-ad")}};function tl(e){var t,r=null!==(t=null==e?void 0:e.item)&&void 0!==t?t:void 0;return(0,Jc.N)(r)&&r.isSkippableAd}function rl(e,t,r){switch(t.code){case Zc.Z9.PLAYBACK_STUCK:return el.DEFAULT_PLAYBACK_STUCK;case Zc.Z9.ONE_TRACK_UNPLAYABLE:case Zc.Z9.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED:case Zc.Z9.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED:return(n=t.reasons).includes(Zc.K7.NOT_AVAILABLE_IN_CURRENT_REGION)?el.REGION_RESTRICTED:n.includes(Zc.K7.NOT_AVAILABLE_IN_NON_PREMIUM)?el.PREMIUM_RESTRICTED:n.includes(Zc.K7.NOT_AVAILABLE_OFFLINE)?el.FORCED_OFFLINE_MODE:n.includes(Zc.K7.USER_CAPPING_REACHED)?el.CAPPING_REACHED:n.includes(Zc.K7.BANNED_BY_USER_ARTIST)?el.ARTIST_BANNED_BY_USER:n.includes(Zc.K7.BANNED_BY_USER_TRACK)?el.TRACK_BANNED_BY_USER:n.includes(Zc.K7.EXPLICIT_CONTENT_FILTERED)?el.EXPLICIT_CONTENT_FILTERED:el.DEFAULT_PLAYER_ERROR;case Zc.Z9.INTERRUPT_PLAYBACK_RESTRICTED:return el.INTERRUPT_PLAYBACK_RESTRICTED;case Zc.Z9.VIDEO_GEORESTRICTED:return el.VIDEO_GEORESTRICTED;case Zc.Z9.VIDEO_UNSUPPORTED_CLIENT_VERSION:return el.VIDEO_UNSUPPORTED_CLIENT_VERSION;case Zc.Z9.VIDEO_UNSUPPORTED_PLATFORM_VERSION:return el.VIDEO_UNSUPPORTED_PLATFORM_VERSION;case Zc.Z9.VIDEO_COUNTRY_RESTRICTED:return el.VIDEO_COUNTRY_RESTRICTED;case Zc.Z9.VIDEO_UNAVAILABLE:return el.VIDEO_UNAVAILABLE;case Zc.Z9.VIDEO_CATALOGUE_RESTRICTED:return el.VIDEO_CATALOGUE_RESTRICTED;case Zc.Z9.VIDEO_PLAYBACK_ERROR:return el.VIDEO_PLAYBACK_ERROR;case Zc.Z9.VIDEO_UNSUPPORTED_KEY_SYSTEM:return el.VIDEO_UNSUPPORTED_KEY_SYSTEM;case Zc.Z9.PAUSE_RESTRICTED:return t.reasons.some((function(e){return[Zc.K7.ALREADY_PAUSED,Zc.K7.NOT_PLAYING_LOCALLY].includes(e)}))?null:el.DEFAULT_PLAYER_ERROR;case Zc.Z9.RESUME_RESTRICTED:return t.reasons.includes(Zc.K7.NOT_PAUSED)?null:el.DEFAULT_PLAYER_ERROR;case Zc.Z9.PLAY_RESTRICTED:return t.reasons.includes(Zc.K7.AD_DISALLOW)?tl(e)?el.SKIP_ADS_TO_HEAR_SONG:el.CANT_SKIP_ADS:null;case Zc.Z9.SKIP_TO_NEXT_RESTRICTED:return t.reasons.includes(Zc.K7.AD_DISALLOW)?tl(e)?el.SKIP_AFTER_DELAY:el.CANT_PLAY_DURING_ADS:null;case Zc.Z9.TIMEOUT:return el.NETWORK_ERROR;case Zc.Z9.SKIP_TO_PREV_RESTRICTED:return t.reasons.includes(Zc.K7.THROTTLED)?null:el.DEFAULT_PLAYER_ERROR;default:return function(e,t){return!(t||!e.cause||!("status"in e.cause))&&0===e.cause.status}(t,r)?el.NETWORK_ERROR:el.DEFAULT_PLAYER_ERROR}var n}var nl=r(38035);var al=r(50875),il=r(63175);var sl=r(85093),ol=r(15057),cl=r(94704),ll=r(77168),ul=r(49941),dl=function(){var e,t,r,n;return e=(0,dc.z)(),t=(0,En.n)(),r=(0,$c.D)().currentSession,n=(0,ie.d)().enqueueSnackbar,(0,Ni.p)(Ai.gd.ERROR,(function(a){var i,s=a.data,o=e.getState(),c=rl(o,s,t);null!==c&&(null!=r&&r.active&&s.code===Zc.Z9.STOP_RESTRICTED||(0,Xc.d)(null!==(i=null==o?void 0:o.item)&&void 0!==i?i:void 0)||n(c))})),function(){var e=(0,ie.d)().enqueueSnackbar,t=(0,En.n)();(0,Ni.p)(Ai.gd.QUEUE_ACTION_COMPLETE,(function(r){var n=r.data;n.action===Ai.UC.ADD&&(n.error?t?((0,Gc.$)("feedback_banner","error","error.generic"),e(p.Ru.get("error.generic"))):e(p.Ru.get("offline.feedback-text")):e(p.Ru.get("queue.added-to-queue")))}))}(),function(){var e=(0,ie.d)().enqueueSnackbar,t=(0,Wc.W)(),r=(0,Te.m)(),n=(0,En.n)();(0,zc.e)(Vc.Lj.OPERATION_COMPLETE,function(){var i=(0,a.A)(s().mark((function a(i){var o,c,l,u,d;return s().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if((o=i.data).operation===Vc.sP.ADD){a.next=3;break}return a.abrupt("return");case 3:if(!o.silent){a.next=5;break}return a.abrupt("return");case 5:if(!o.error){a.next=8;break}return n?((0,Gc.$)("feedback_banner","error","error.generic"),e(p.Ru.get("error.generic"))):e(p.Ru.get("offline.feedback-text")),a.abrupt("return");case 8:return a.prev=8,a.next=11,r.getMetadata(o.uri);case 11:c=a.sent,l=c.name,u=c.images,d=(0,da.g)(u,{desiredSize:24}),t({message:p.Ru.get("feedback.added-to-playlist-specific",l),imageSrc:null==d?void 0:d.url}),a.next=21;break;case 18:a.prev=18,a.t0=a.catch(8),e(p.Ru.get("feedback.added-to-playlist-generic"));case 21:case"end":return a.stop()}}),a,null,[[8,18]])})));return function(e){return i.apply(this,arguments)}}())}(),function(){var e=(0,Xs.a)().getEvents(),t=(0,En.n)(),r=(0,ie.d)().enqueueSnackbar,n=(0,c.d4)((function(e){var t;return null===(t=e.session)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.id}));(0,o.useEffect)((function(){return e.addListener(nl.GV.OPERATION_COMPLETE,(function(e){var a,i=e.data;if(i.error)t?((0,Gc.$)("feedback_banner","error","error.generic"),r(p.Ru.get("error.generic"))):r(p.Ru.get("offline.feedback-text"));else switch(i.operation){case nl.mA.SET_BASE_PERMISSION:return a="VIEWER"===i.permissionLevel?p.Ru.get("feedback.playlist-made-public"):p.Ru.get("feedback.playlist-made-private"),void r(a);case nl.mA.SET_MEMBER_PERMISSION:return a="VIEWER"===i.permissionLevel?p.Ru.get("feedback.member-made-listener"):p.Ru.get("feedback.member-made-contributor"),void r(a);case nl.mA.REMOVE_MEMBER:return a=n===i.username?p.Ru.get("feedback.left-playlist"):p.Ru.get("feedback.removed-member"),void r(a)}}))}),[n,r,t,e])}(),function(){var e=(0,al._)().getEvents(),t=(0,En.n)(),r=(0,ie.d)().enqueueSnackbar;(0,o.useEffect)((function(){return e.addListener(il.tD.OPERATION_COMPLETE,(function(e){var n=e.data;if(!n.silent)if(n.error)t?((0,Gc.$)("feedback_banner","error","error.generic"),r(p.Ru.get("error.generic"))):r(p.Ru.get("offline.feedback-text"));else switch(n.operation){case il.ut.ADD:return void r(p.Ru.get("web-player.aligned-curation.feedback.added-to-library"));case il.ut.REMOVE:return void r(p.Ru.get("web-player.aligned-curation.feedback.removed-from-library"));case il.ut.MOVE:return void(n.showAddConfirmation&&r(p.Ru.get("web-player.aligned-curation.feedback.added-to-library")))}}))}),[r,t,e])}(),function(){var e=(0,ie.d)().enqueueSnackbar,t=(0,Wc.W)(),r=(0,En.n)();(0,Qc.l)(qc.UV.OPERATION_COMPLETE,function(){var n=(0,a.A)(s().mark((function n(a){var i,o,c,l,u,d,m,g,f,v;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.data.silent){n.next=2;break}return n.abrupt("return");case 2:if(!a.data.error){n.next=5;break}return r?((0,Gc.$)("feedback_banner","error","error.generic"),e(p.Ru.get("error.generic"))):e(p.Ru.get("offline.feedback-text")),n.abrupt("return");case 5:if(o=(0,A.A)(a.data.uris,1),c=o[0],(l=null===(i=(0,fe.o_)(c))||void 0===i?void 0:i.type)!==fe.NQ.TRACK&&l!==fe.NQ.LOCAL_TRACK){n.next=14;break}if(d=(0,Yc.zK)()){n.next=11;break}return n.abrupt("return");case 11:return m=a.data.operation===qc.tS.ADD?p.Ru.get("web-player.aligned-curation.feedback.added",d.name):p.Ru.get("web-player.aligned-curation.feedback.removed",d.name),t({message:m,imageSrc:null===(u=(0,da.g)(d.images,{desiredSize:24}))||void 0===u?void 0:u.url}),n.abrupt("return");case 14:if(l!==fe.NQ.EPISODE){n.next=21;break}if(f=(0,Yc.dB)()){n.next=18;break}return n.abrupt("return");case 18:return v=a.data.operation===qc.tS.ADD?p.Ru.get("web-player.aligned-curation.feedback.added",f.name):p.Ru.get("web-player.aligned-curation.feedback.removed",f.name),t({message:v,imageSrc:null===(g=(0,da.g)(f.images,{desiredSize:24}))||void 0===g?void 0:g.url}),n.abrupt("return");case 21:e(a.data.operation===qc.tS.ADD?p.Ru.get("web-player.aligned-curation.feedback.added-to-library"):p.Ru.get("web-player.aligned-curation.feedback.removed-from-library"));case 22:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}(),function(){var e=(0,Kc.l)(),t=(0,ie.d)().enqueueSnackbar;(0,o.useEffect)((function(){var r=e.getEvents(),n=r.addListener(Hc.ar.ADDED,(function(e){var r=e.data;"client"===r.source&&"ignoreinrecs"===r.set&&t(p.Ru.get("feedback.exclude-playlist-from-recommendations"))})),a=r.addListener(Hc.ar.REMOVED,(function(e){var r=e.data;"client"===r.source&&"ignoreinrecs"===r.set&&t(p.Ru.get("feedback.include-playlist-in-recommendations"))}));return function(){n(),a()}}),[t,e])}(),function(){var e=(0,$c.D)().currentSession,t=(0,ie.d)().enqueueSnackbar,r=(0,o.useRef)([]),n=(0,o.useRef)([]),a=(0,ol.YQ)((function(e){var a,i,s,o,c,l,u,d;if(e.isSessionOwner){switch(r.current.length){case 0:break;case 1:t(p.Ru.get("web-player.social-connect.toast.one-person-joined",{user:null!==(a=r.current[0])&&void 0!==a?a:""})),r.current=[];break;case 2:t(p.Ru.get("web-player.social-connect.toast.two-people-joined",{firstUser:null!==(i=r.current[0])&&void 0!==i?i:"",secondUser:null!==(s=r.current[1])&&void 0!==s?s:""})),r.current=[];break;default:t(p.Ru.get("web-player.social-connect.toast.multiple-people-joined",{user:null!==(o=r.current[r.current.length-1])&&void 0!==o?o:"",userCount:r.current.length-1})),r.current=[]}switch(n.current.length){case 0:break;case 1:t(p.Ru.get("web-player.social-connect.toast.one-person-left",{user:null!==(c=n.current[0])&&void 0!==c?c:""})),n.current=[];break;case 2:t(p.Ru.get("web-player.social-connect.toast.two-people-left",{firstUser:null!==(l=n.current[0])&&void 0!==l?l:"",secondUser:null!==(u=n.current[1])&&void 0!==u?u:""})),n.current=[];break;default:t(p.Ru.get("web-player.social-connect.toast.multiple-people-left",{user:null!==(d=n.current[n.current.length-1])&&void 0!==d?d:"",userCount:n.current.length-1})),n.current=[]}}}),3e3,{leading:!0,trailing:!0}),i=(0,o.useCallback)((function(e){var r,n=e.data;null===n.isSessionOwner||n.isSessionOwner||t(p.Ru.get("web-player.social-connect.toast.ended",{user:null!==(r=n.hostDisplayName)&&void 0!==r?r:""}))}),[t]),s=(0,o.useCallback)((function(e){var t=e.data;r.current=t.users?[].concat((0,sl.A)(r.current),(0,sl.A)(t.users)):r.current,a(t)}),[a]),c=(0,o.useCallback)((function(e){var t=e.data;n.current=t.users?[].concat((0,sl.A)(n.current),(0,sl.A)(t.users)):n.current,a(t)}),[a]),l=(0,o.useCallback)((function(r){var n=r.data;e&&((null==e?void 0:e.queueOnlyMode)!==(null==n?void 0:n.queueOnlyMode)&&(!1===(null==n?void 0:n.queueOnlyMode)?t(e.isSessionOwner?p.Ru.get("web-player.social-connect.toast.queue-only-mode.host.disabled"):p.Ru.get("web-player.social-connect.toast.queue-only-mode.guest.disabled")):!0===(null==n?void 0:n.queueOnlyMode)&&t(e.isSessionOwner?p.Ru.get("web-player.social-connect.toast.queue-only-mode.host.enabled"):p.Ru.get("web-player.social-connect.toast.queue-only-mode.guest.enabled"))),(null==e?void 0:e.participantVolumeControl)!==(null==n?void 0:n.participantVolumeControl)&&("ENABLED"===(null==n?void 0:n.participantVolumeControl)?t(p.Ru.get("web-player.social-connect.toast.participant-volume-control.enabled")):"DISABLED"===(null==n?void 0:n.participantVolumeControl)&&t(e.isSessionOwner?p.Ru.get("web-player.social-connect.toast.participant-volume-control.host.disabled"):p.Ru.get("web-player.social-connect.toast.participant-volume-control.guest.disabled"))))}),[e,t]),u=(0,o.useCallback)((function(e){e.data===ul.RG.PERMISSIONS_RESTRICTED_GENERIC&&t(p.Ru.get("web-player.social-connect.toast.queue-only-mode.guest.warning"))}),[t]);(0,ll.J)(cl.K.SESSION_ENDED,i),(0,ll.J)(cl.K.JOINED,s),(0,ll.J)(cl.K.LEFT,c),(0,ll.J)(cl.K.UPDATE,l),(0,ll.J)(cl.K.SESSION_MESSAGE,u)}(),null},ml=r(20880),pl=r(85419),gl=r(20735),fl=function(e,t){switch(e){case gl.EL.SESSION_ENDED:return{title:p.Ru.get("web-player.social-connect.session-ended.title"),description:p.Ru.get("web-player.social-connect.session-ended.sub-title"),confirmText:p.Ru.get("web-player.social-connect.session-ended.confirmation-button"),ubiIdentifier:pl.gw.SESSION_ENDED};case gl.EL.ERROR:return{title:p.Ru.get("web-player.social-connect.generic-error.title"),description:p.Ru.get("web-player.social-connect.generic-error.sub-title"),confirmText:p.Ru.get("web-player.social-connect.generic-error.confirmation-button"),ubiIdentifier:pl.gw.ERROR};case gl.EL.MOBILE_ONLY:return{title:p.Ru.get("web-player.social-connect.mobile-only.title"),description:p.Ru.get("web-player.social-connect.mobile-only.description"),confirmText:p.Ru.get("web-player.social-connect.mobile-only.confirmation-button"),ubiIdentifier:pl.gw.MOBILE_ONLY};case gl.EL.END_SESSION:return{title:p.Ru.get("web-player.social-connect.end-session.title"),description:p.Ru.get("web-player.social-connect.end-session.sub-title"),confirmText:p.Ru.get("web-player.social-connect.end-session.confirm"),cancelText:p.Ru.get("web-player.social-connect.end-session.cancel")};case gl.EL.LEAVE_SESSION:return{title:p.Ru.get("web-player.social-connect.leave-session.title"),description:p.Ru.get("web-player.social-connect.leave-session.sub-title"),confirmText:p.Ru.get("web-player.social-connect.leave-session.leave-session-button"),cancelText:p.Ru.get("web-player.social-connect.leave-session.cancel")};case gl.EL.REMOVE_PARTICIPANT:return{title:p.Ru.get("web-player.social-connect.participant-list.remove-guest-dialog",{displayName:t}),description:"",confirmText:p.Ru.get("web-player.social-connect.participant-list.remove-guest"),cancelText:p.Ru.get("web-player.social-connect.participant-list.remove-guest-cancel")};default:return(0,Po.k)(e),{confirmText:"",description:"",title:""}}},vl=r(71568),bl=r(60069),hl=function(e){var t,r,n,i=e.isOpen,l=(0,c.wA)(),u=(0,$c.D)(),d=u.currentSession,m=u.deleteSession,p=(t=(0,tt.r)(vl.Z,{}),r=t.spec,n=t.logger,{logEndJam:(0,o.useCallback)((function(){n.logInteraction(r.endButtonFactory().hitStopHostingSocialListeningSession())}),[n,r])}).logEndJam,g=(0,Aa.vh)(),f=fl(gl.EL.END_SESSION),v=f.title,b=f.description,h=f.confirmText,x=f.cancelText,R=(0,o.useCallback)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),e.next=3,m();case 3:g.send((0,ml.c)({session_id:null==d?void 0:d.sessionId,end_reason:bl.Mm.QUEUE_END_SESSION_BUTTON})),l((0,ae.cQ)());case 5:case"end":return e.stop()}}),e)}))),[null==d?void 0:d.sessionId,m,l,g,p]),E=(0,o.useCallback)((function(){l((0,ae.cQ)())}),[l]);return(0,y.jsx)(ve.T,{isOpen:i,onClose:E,onConfirm:R,titleText:v,"aria-label":v,descriptionText:b,confirmText:h,confirmLabel:h,cancelText:x})},xl=function(e){var t=e.isOpen,r=e.dialogType,n=(0,c.wA)(),a=fl(r),i=a.title,s=a.description,l=a.confirmText,u=a.ubiIdentifier,d=(0,tt.r)(pl.Fh,{data:{identifier:u}}),m=d.spec,p=d.logger,g=(0,o.useCallback)((function(){n((0,ae.cQ)())}),[n]);return(0,o.useEffect)((function(){t&&p.logImpression(m.impression())}),[t,p,m]),(0,y.jsx)(ve.T,{isOpen:t,onClose:g,onConfirm:g,titleText:i,"aria-label":i,descriptionText:s,confirmText:l,confirmLabel:l})},Rl=r(51274),yl=function(e){var t,r,n,i=e.isOpen,l=(0,c.wA)(),u=(0,$c.D)(),d=u.currentSession,m=u.leaveSession,p=(t=(0,tt.r)(Rl.Q,{}),r=t.spec,n=t.logger,{logLeaveJam:(0,o.useCallback)((function(){n.logInteraction(r.leaveButtonFactory().hitLeaveSocialListeningSession())}),[n,r])}).logLeaveJam,g=(0,Aa.vh)(),f=fl(gl.EL.LEAVE_SESSION),v=f.title,b=f.description,h=f.confirmText,x=f.cancelText,R=(0,o.useCallback)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(),e.next=3,m();case 3:g.send((0,ml.c)({session_id:null==d?void 0:d.sessionId,end_reason:bl.Mm.QUEUE_LEAVE_SESSION_BUTTON})),l((0,ae.cQ)());case 5:case"end":return e.stop()}}),e)}))),[null==d?void 0:d.sessionId,l,g,m,p]),E=(0,o.useCallback)((function(){l((0,ae.cQ)())}),[l]);return(0,y.jsx)(ve.T,{isOpen:i,onClose:E,onConfirm:R,titleText:v,"aria-label":v,descriptionText:b,confirmText:h,confirmLabel:h,cancelText:x})},El=r(8924),kl=function(e){var t,r,n,a=e.isOpen,i=(0,c.wA)(),s=(0,El.R)().logRemoveClick,l=(0,$c.D)(),u=l.currentSession,d=l.removeSessionMember,m=(0,c.d4)((function(e){return e.ui.jamModalState})).memberToRemove,p=null!==(t=null==m?void 0:m.id)&&void 0!==t?t:"",g=null!==(r=null==m?void 0:m.displayName)&&void 0!==r?r:"",f=null!==(n=null==u?void 0:u.sessionId)&&void 0!==n?n:"",v=fl(gl.EL.REMOVE_PARTICIPANT,g),b=v.title,h=v.description,x=v.confirmText,R=v.cancelText,E=(0,o.useCallback)((function(){s(p,f),p&&(d(p),i((0,ae.cQ)()))}),[s,p,f,d,i]),k=(0,o.useCallback)((function(){i((0,ae.cQ)())}),[i]);return(0,y.jsx)(ve.T,{isOpen:a,onClose:k,onConfirm:E,titleText:b,"aria-label":b,descriptionText:h,confirmText:x,confirmLabel:x,cancelText:R})},jl=function(e){var t=e.isOpen,r=e.dialogType;switch(r){case gl.EL.LEAVE_SESSION:return(0,y.jsx)(yl,{isOpen:t});case gl.EL.END_SESSION:return(0,y.jsx)(hl,{isOpen:t});case gl.EL.REMOVE_PARTICIPANT:return(0,y.jsx)(kl,{isOpen:t});case gl.EL.SESSION_ENDED:case gl.EL.MOBILE_ONLY:case gl.EL.ERROR:return(0,y.jsx)(xl,{isOpen:t,dialogType:r});default:return null}},Ol=r(68248),Cl=function(e){var t=e.size,r=void 0===t?60:t,n=e.className;return(0,y.jsx)("img",{className:n,src:(0,Nt.b)("images/group-session-logo.svg"),height:r,width:r,alt:p.Ru.get("web-player.social-connect.group-session-logo-alt")})};const wl="jav_0ddRdU3yOojQAq8w",Sl="ldkgyfJfn34VlQ2thtaB",Al="cHxs16ZqqJIr8OAcIG1h",Nl="tIfl33R3uqA7AyIa0OHf",_l="OEOcqiDA2mrxdAcZOXdj";var Il=function(e){var t=e.imageElement,r=e.title,n=e.subtitle,a=e.confirmButtonText,i=e.confirmButtonIcon,s=e.onConfirm,o=e.cancelButtonText,c=e.onCancel,l=e.disabled,u=e.footerText;return(0,y.jsxs)("div",{className:wl,children:[t,(0,y.jsxs)("div",{className:Sl,children:["string"==typeof r?(0,y.jsx)(d.E,{as:"h3",variant:"titleMedium",semanticColor:"textBase",className:Al,children:r}):r,"string"==typeof n?(0,y.jsx)(d.E,{variant:"bodyMedium",semanticColor:"textBase",children:n}):n]}),(0,y.jsxs)("div",{className:Nl,children:[(0,y.jsx)(w.$,{onClick:s,disabled:l,iconTrailing:i,"data-testid":"jam-modal-confirm-button",children:a}),o&&(0,y.jsx)(j.H,{semanticColor:"textSubdued",onClick:c,disabled:l,children:o})]}),u&&(0,y.jsx)("div",{className:_l,children:(0,y.jsx)(d.E,{variant:"marginal",semanticColor:"textSubdued",children:u})})]})},Tl=r(63744),Ll=r(21272),Dl=function(e){var t=e.setContentLabel,r=(0,$c.D)(),n=r.createSession,i=r.currentSession,l=r.deleteSession,u=(0,c.wA)(),d=(0,Aa.vh)(),m=(0,Tl.Z)(),g=(0,o.useCallback)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:case"end":return e.stop()}}),e)}))),[n]);(0,o.useEffect)((function(){g()}),[g]);var f=(0,Ll.c)(),v=(0,o.useCallback)((0,a.A)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==i?void 0:i.joinSessionUri){e.next=10;break}return e.next=4,n();case 4:if(null==(t=e.sent)||!t.joinSessionUri){e.next=9;break}d.send((0,Ol.q)({session_id:t.sessionId,device_type:f.deviceType,tech_type:f.techType,session_uri:t.joinSessionUri,session_type:bl.dF.REMOTE})),e.next=10;break;case 9:return e.abrupt("return");case 10:null!=i&&i.joinSessionShortLink&&m(null==i?void 0:i.joinSessionShortLink),u((0,ae.cQ)());case 12:case"end":return e.stop()}}),e)}))),[null==i?void 0:i.joinSessionUri,null==i?void 0:i.joinSessionShortLink,u,n,d,f.deviceType,f.techType,m]),b=(0,o.useCallback)((0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=5;break}return e.next=3,l();case 3:e.sent&&d.send((0,ml.c)({session_id:i.sessionId,end_reason:bl.Mm.INVITATION_MODAL_CANCEL_BUTTON}));case 5:u((0,ae.cQ)());case 6:case"end":return e.stop()}}),e)}))),[i,l,u,d]),h=p.Ru.get("web-player.social-connect.invitation-modal.title");return(0,o.useEffect)((function(){t(h)}),[h,t]),(0,y.jsx)(Il,{imageElement:(0,y.jsx)(Cl,{}),title:h,subtitle:p.Ru.get("web-player.social-connect.invitation-modal.subtitle"),confirmButtonText:p.Ru.get("web-player.social-connect.invitation-modal.button-primary"),onConfirm:v,cancelButtonText:p.Ru.get("web-player.social-connect.invitation-modal.button-tertiary"),onCancel:b})},Pl=(r(5728),r(24136),r(54520),r(91531),r(93678),r(34145),r(21958)),Ml=r(30595),Ul=r(77225),Bl=r(22976),Fl=r(89672),Gl=r(96783),Wl=r(60262),Vl=r(95797),zl=r(86594);function Hl(){var e=(0,Mi.v)((function(e){var t,r,n=e.activeDevice;return{isLocalDevice:null===(t=null==n?void 0:n.isLocal)||void 0===t||t,deviceName:null!==(r=null==n?void 0:n.name)&&void 0!==r?r:""}}),(function(e,t){return e.deviceName===t.deviceName&&e.isLocalDevice===t.isLocalDevice}));return function(e,t){var r=(0,zl.Ek)();return e?r?p.Ru.get("web-player.social-connect.join-modal.device-name.this-computer"):p.Ru.get("web-player.social-connect.join-modal.device-name.this-browser"):t}(e.isLocalDevice,e.deviceName)}var Kl=r(88139),Yl=r(61325);const ql="ZKSGhtcDgnOWkcSVee3k",Ql="H3UvfEgDtYPH0EL3aLwZ",Zl="LPVfHXRjItuJaNEQdlTT",Jl="DD2yyz7nKDIMIXhFOAkl",Xl="NQtJIrT4cCneGvSC152a",$l="xIKQXbFbxYFpBJfoOTFw",eu="Bs13fjYCTb2TKzoO13sA",tu="N6Pa7PkejWH5KojTMbfU",ru="Uz7GyGSJMC1Cz7Cz0G6t",nu="hN61FwfX0b6x78GshoG3",au="NNFeYiBvoDQFKQGqt_qE",iu="b_5KH6jkIhAV2xk50S8c";var su=function(){return(0,y.jsxs)("div",{className:nu,children:[(0,y.jsx)(Bl.D,{size:"xsmall",semanticColor:"textBase"}),(0,y.jsx)(d.E,{variant:"marginalBold",semanticColor:"textBase",children:p.Ru.get("navbar.premium")})]})},ou=function(e){var t=e.value,r=e.icon,n=e.title,a=e.subtitle,i=e.selected,s=e.onSelect,c=e.formWidth,l=e.setFormWidth,u=(0,o.useRef)(null);return(0,o.useLayoutEffect)((function(){if(u.current){var e=u.current.getBoundingClientRect().width;e>c&&l(Math.min(490,e+96+8))}}),[c,l]),(0,y.jsxs)("div",{className:Xl,children:[(0,y.jsxs)("label",{className:$l,htmlFor:t,children:[r,(0,y.jsxs)("div",{className:eu,style:{"--device-form-label-width":"".concat(c-96+8,"px")},ref:u,children:[(0,y.jsx)(d.E,{variant:i?"bodyMediumBold":"bodyMedium",semanticColor:i?"textBrightAccent":"textBase",className:ru,children:n}),(0,y.jsx)(d.E,{variant:"bodySmall",semanticColor:i?"textBrightAccent":"textSubdued",className:ru,children:a})]})]}),(0,y.jsx)(Fl.M,{value:t,id:t,"data-testid":t,className:tu,name:"session-type-radio",checked:i,onChange:function(){s(t)}})]})},cu=function(e){var t=e.sessionType,r=e.setSessionType,n=e.hostName,a=Hl(),i=(0,Mi.v)((function(e){var t,r=e.activeDevice;return null!==(t=null==r?void 0:r.type)&&void 0!==t?t:Yl.bq.COMPUTER})),s=(0,Vl.tf)(i),c=(0,Kl.l)(),l=(0,o.useState)(0),u=(0,A.A)(l,2),d=u[0],m=u[1];return(0,y.jsxs)(Gl.g,{className:Jl,style:{"--device-form-width":"".concat(d,"px")},children:[(0,y.jsx)(ou,{value:bl.dF.REMOTE,icon:(0,y.jsx)(s,{semanticColor:t===bl.dF.REMOTE?"textBrightAccent":"textBase"}),title:p.Ru.get("web-player.social-connect.join-modal.continue-on-this-device",{device:a}),subtitle:p.Ru.get("web-player.social-connect.join-modal.continue-on-this-device-subtitle"),onSelect:r,selected:t===bl.dF.REMOTE,formWidth:d,setFormWidth:m}),c&&(0,y.jsx)(su,{}),(0,y.jsx)(ou,{value:bl.dF.IN_PERSON,icon:(0,y.jsx)(Wl.H,{semanticColor:t===bl.dF.IN_PERSON?"textBrightAccent":"textBase"}),title:p.Ru.get("web-player.social-connect.join-modal.play-from-host-speaker",{host:n}),subtitle:p.Ru.get("web-player.social-connect.join-modal.play-from-host-speaker-subtitle"),onSelect:r,selected:t===bl.dF.IN_PERSON,formWidth:d,setFormWidth:m})]})},lu=function(e){var t=e.deviceName,r=e.deviceType,n=(0,Vl.tf)(r,!1);return(0,y.jsxs)(d.E,{variant:"bodyMediumBold",as:"div",className:C()(iu,au),semanticColor:"textBrightAccent",children:[(0,y.jsx)(n,{}),(0,y.jsx)("span",{className:au,children:p.Ru.get("web-player.social-connect.broadcasting.join-listening-session-modal.subtitle",{deviceName:t})})]})},uu=r(28121);const du="V8Nnr6rCPzkQv7MCvvKM",mu="A8jOuTXM1E0dlFYJlV39",pu="D0L83_9SDaOFBzZT8EKO";var gu=function(){return(0,y.jsx)("div",{className:wl,children:(0,y.jsxs)("div",{className:du,children:[(0,y.jsx)(uu.Y,{as:"h3",variant:"titleSmall",className:pu,charCount:16,isLoading:!0}),[[20,50,25],[40,28,35]].map((function(e,t){return(0,y.jsx)("div",{className:mu,children:e.map((function(e,t){return(0,y.jsx)(uu.Y,{as:"div",variant:"bodySmall",className:pu,charCount:e,isLoading:!0},"".concat(e,"-").concat(t))}))},"skeleton-section-".concat(t))}))]})})},fu=r(89246),vu=r(88983),bu=r(84081),hu=r(80677),xu=r(33983),Ru=function(e){return e.NONE="NONE",e.JOINING="JOINING",e.JOINED="JOINED",e.FAILED="FAILED",e}({}),yu=function(e){var t,r,n,i,u,m,g=e.modalType,f=e.joinToken,v=e.connectStateDeviceId,b=e.setContentLabel,h=(0,c.wA)(),x=(0,$c.D)(),R=x.getSessionInfo,E=x.joinSession,k=(0,et.L)().openURLWithSessionTransfer,j=(0,l.NC)(yt.vFH),O=(0,Pi.Z)(),C=(0,Mi.v)((function(e){return j?O.getDevices().find((function(e){return e.connectStateId===v})):e.devices.find((function(e){return e.connectStateId===v}))})),w=(0,hu.e)(),S=(0,Ui.D)(),N=(0,l.NC)(yt.p41),_=(i=(0,tt.r)(bu.U,{}),u=i.spec,m=i.logger,{logJoin:(0,o.useCallback)((function(){var e=u.joinButtonFactory().hitJoinSocialListeningSession();m.logInteraction(e)}),[m,u])}).logJoin,I=(0,Aa.vh)(),T=(0,o.useState)(null),L=(0,A.A)(T,2),D=L[0],P=L[1],M=g===gl.EL.JOIN_LISTENING_SESSION?bl.dF.IN_PERSON:bl.dF.REMOTE,U=(0,o.useState)(M),B=(0,A.A)(U,2),F=B[0],G=B[1],W=(0,vu.C)(),V=W===xu.lz.FREE&&F===bl.dF.REMOTE,z=g===gl.EL.JOIN_LISTENING_SESSION?xu.JO.TAKE_OVER_DIALOG:xu.JO.DEEPLINKING;(0,o.useEffect)((function(){R(f).then((function(e){if(e){var t;P(e);var r=e.sessionMembers.find((function(t){return t.id===e.sessionOwnerId}));b(p.Ru.get("web-player.social-connect.join-modal.title",{host:null!==(t=null==r?void 0:r.displayName)&&void 0!==t?t:""}))}else h((0,ae.A9)(gl.EL.SESSION_ENDED))}))}),[h,R,f,b]);var H=(0,o.useState)(Ru.NONE),K=(0,A.A)(H,2),Y=K[0],q=K[1],Q=(0,o.useCallback)((0,a.A)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(Ru.JOINING),_(),e.prev=2,e.next=5,E(f,z,F);case 5:(t=e.sent)&&(q(Ru.JOINED),I.send((0,Ml.X)({session_id:null==D?void 0:D.sessionId,join_type:z,join_url:t.joinSessionUri,participation_mode:F})),W!==xu.lz.FREE&&h((0,ae.cQ)())),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(2),q(Ru.FAILED),e.t0 instanceof Error&&I.send((0,Ml.X)({session_id:null==D?void 0:D.sessionId,error_category:e.t0.name,error_data:e.t0.message})),h((0,ae.A9)(gl.EL.ERROR));case 14:case"end":return e.stop()}}),e,null,[[2,9]])}))),[h,I,W,E,f,z,_,null==D?void 0:D.sessionId,F]),Z=(0,ge.Zp)(),J=(0,be.W)(),X=(0,It.k)(!0),$=(0,o.useMemo)((function(){var e=new URL(X.url);return e.searchParams.set("ref","jam"),e}),[X.url]),ee=(0,o.useCallback)((function(){J({intent:"upgrade-to-premium",type:"click"}),!1===X.isExternal?Z("/premium?ref=jam"):k($.href),h((0,ae.cQ)())}),[h,Z,J,k,X.isExternal,$]),te=(0,o.useCallback)((function(){g===gl.EL.JOIN_LISTENING_SESSION&&C&&(N?S:w).transferPlayback(C.id,{interactionId:""});h((0,ae.cQ)())}),[w,C,S,h,N,g]);if(!D)return(0,y.jsx)(gu,{});var re,ne=D.sessionMembers.find((function(e){return e.id===D.sessionOwnerId})),ie=D.sessionMembers.map(fu.c);if(Y===Ru.JOINED&&W===xu.lz.FREE)return(0,y.jsx)(Il,{imageElement:(0,y.jsx)(Ul.g,{users:ie,size:"xlarge",maxSlots:3}),title:(0,y.jsx)(d.E,{as:"h3",variant:"titleMedium",semanticColor:"textBase",className:ql,children:p.Ru.get("web-player.social-connect.join-modal.success.title",{host:(0,y.jsx)("span",{className:Ql,children:null!==(re=null==ne?void 0:ne.displayName)&&void 0!==re?re:""})})}),subtitle:(0,y.jsx)(d.E,{variant:"bodySmall",semanticColor:"textSubdued",className:Zl,children:p.Ru.get("web-player.social-connect.join-modal.success.subtitle")}),confirmButtonText:p.Ru.get("web-player.social-connect.generic-error.confirmation-button"),onConfirm:function(){h((0,ae.cQ)())}});var se=g===gl.EL.JOIN_LISTENING_SESSION?p.Ru.get("web-player.social-connect.broadcasting.join-listening-session-modal.button-tertiary"):p.Ru.get("web-player.social-connect.join-modal.button-tertiary");return(0,y.jsx)(Il,{imageElement:(0,y.jsx)(Ul.g,{users:ie,size:"xlarge",maxSlots:3}),title:(0,y.jsx)(d.E,{as:"h3",variant:"titleMedium",semanticColor:"textBase",className:ql,children:p.Ru.get("web-player.social-connect.join-modal.title",{host:(0,y.jsx)("span",{className:Ql,children:null!==(t=null==ne?void 0:ne.displayName)&&void 0!==t?t:""})})}),subtitle:g===gl.EL.JOIN_LISTENING_SESSION?(0,y.jsx)(lu,{deviceName:null!==(r=null==C?void 0:C.name)&&void 0!==r?r:"",deviceType:Yl.bq.SPEAKER}):(0,y.jsx)(cu,{sessionType:F,setSessionType:G,hostName:null!==(n=null==ne?void 0:ne.displayName)&&void 0!==n?n:""}),confirmButtonText:V?p.Ru.get("web-player.social-connect.premium-upsell.confirmation-button"):p.Ru.get("web-player.social-connect.join-modal.button-primary"),confirmButtonIcon:V?Pl.H:void 0,onConfirm:V?ee:Q,cancelButtonText:se,onCancel:te,disabled:Y===Ru.JOINING,footerText:p.Ru.get("web-player.social-connect.join-modal.privacy-notice")})},Eu=r(9255),ku=function(e){var t,r,n,a=e.joinToken,i=(0,c.wA)(),s=(t=(0,tt.r)(Eu.e,{}),r=t.spec,n=t.logger,{logGetAppClick:(0,o.useCallback)((function(){var e=r.downloadButtonFactory().hitNavigateToExternalUri({destination:(0,us.rw)().href});n.logInteraction(e)}),[n,r])}).logGetAppClick,l=(0,$c.D)().getSessionInfo,u=(0,o.useState)(null),m=(0,A.A)(u,2),g=m[0],f=m[1],v=(0,o.useState)([]),b=(0,A.A)(v,2),h=b[0],x=b[1];(0,o.useEffect)((function(){l(a).then((function(e){if(e){var t,r=null==e?void 0:e.sessionOwnerId,n=null==e?void 0:e.sessionMembers.find((function(e){return e.id===r})),a=null!==(t=null==e?void 0:e.sessionMembers.map(fu.c))&&void 0!==t?t:[];if(x(a),!n)return;f(n.displayName)}else i((0,ae.A9)(gl.EL.SESSION_ENDED))}))}),[l,a,i]);var R=(0,o.useCallback)((function(){i((0,ae.cQ)())}),[i]),E=(0,o.useCallback)((function(){s();var e=(0,fe.MZ)(a);window.open((0,us.rw)(e).href),i((0,ae.cQ)())}),[i,a,s]);return(0,y.jsx)(Il,{imageElement:(0,y.jsx)(Ul.g,{users:h,size:"xlarge",maxSlots:3}),title:(0,y.jsx)(d.E,{as:"h3",variant:"titleMedium",semanticColor:"textBase",children:p.Ru.get("web-player.social-connect.redirect-modal.title",{host:null!=g?g:""})}),subtitle:p.Ru.get("web-player.social-connect.redirect-modal.sub-title"),confirmButtonText:p.Ru.get("web-player.social-connect.redirect-modal.confirmation-button"),onConfirm:E,cancelButtonText:p.Ru.get("web-player.social-connect.redirect-modal.cancel-button"),onCancel:R})},ju=function(){var e=(0,c.wA)(),t=(0,c.d4)((function(e){return e.ui.jamModalState})),r=t.isOpen,n=t.modalType,a=t.joinToken,i=t.connectStateDeviceId,s=(0,o.useState)(null),l=(0,A.A)(s,2),u=l[0],d=l[1],m=(0,o.useState)(void 0),p=(0,A.A)(m,2),g=p[0],v=p[1];return(0,o.useEffect)((function(){switch(v(void 0),n){case gl.EL.INVITE:d((0,y.jsx)(Dl,{setContentLabel:v}));break;case gl.EL.JOIN:if(!a)throw new Error("trying to open JoinModal without providing a joinToken!");d((0,y.jsx)(yu,{modalType:gl.EL.JOIN,joinToken:a,setContentLabel:v}));break;case gl.EL.JOIN_LISTENING_SESSION:if(!a||!i)throw new Error("trying to open JoinModal without providing a joinToken and connectDeviceId!");d((0,y.jsx)(yu,{modalType:gl.EL.JOIN_LISTENING_SESSION,joinToken:a,connectStateDeviceId:i,setContentLabel:v}));break;case gl.EL.REDIRECT:if(!a)throw new Error("trying to open RedirectModal without providing a joinToken!");d((0,y.jsx)(ku,{joinToken:a}));break;case gl.EL.LEAVE_SESSION:case gl.EL.END_SESSION:case gl.EL.REMOVE_PARTICIPANT:case gl.EL.SESSION_ENDED:case gl.EL.MOBILE_ONLY:case gl.EL.ERROR:d((0,y.jsx)(jl,{isOpen:r,dialogType:n}));break;default:d(null)}}),[r,n,a,i]),n?function(e){return e===gl.EL.LEAVE_SESSION||e===gl.EL.END_SESSION||e===gl.EL.REMOVE_PARTICIPANT||e===gl.EL.SESSION_ENDED||e===gl.EL.MOBILE_ONLY||e===gl.EL.ERROR}(n)?u:(0,y.jsx)(f.A,{isOpen:r,onRequestClose:function(){return e((0,ae.cQ)())},shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,animated:!0,contentLabel:g,children:u}):null},Ou=function(){return null},Cu=r(67),wu=r(43661);function Su(e,t){if(e){var r=(0,fe.o_)(e,{parseUnknown:!0});if(r){t(r.toURLPath(!0))}else{var n=document.createElement("a");n.href=e,n.target="_blank",n.click()}}}var Au=function(e,t){return function(r){switch(r.action){case"DISMISS":default:return void e();case"URL":var n=r.url;return Su(void 0===n?"":n,t),void e();case"EXTERNAL_URL":var a=r.url;return void Su(void 0===a?"":a,t)}}};var Nu=r(81303),_u=r(62413);function Iu(e,t,r,n){if(e&&""===e.innerHTML){var a=function(e,t,r){var n=(0,Nu.kp)();if(n){var a=n.createIframe(e,r);return a.setAttribute("data-testid","inAppMessageIframe"),a.style.borderRadius="5px",a.style.margin="auto",a.style.opacity="0",a.style.transition="opacity 150ms linear",a.addEventListener("load",(function(){var e=a.contentWindow,r=a.contentDocument;e&&function(e){e&&e.focus()}(e),r&&(_u.M.setup(r),function(e,t){var r=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=r[0],a=r[r.length-1];e.addEventListener("keydown",(function(e){"Tab"===e.key&&e.target===a&&(e.preventDefault(),n.focus()),e.shiftKey&&"Tab"===e.key&&a.focus(),"Escape"!==e.key&&27!==e.keyCode||t()}),!0)}(r,t)),a.style.opacity="1"})),a}return null}(t,r,n);a&&e.appendChild(a)}}function Tu(e){var t=e.message,r=(0,o.useRef)(null);return function(e,t){var r=(0,c.wA)(),n=(0,ge.Zp)(),a=(0,o.useCallback)((function(){r((0,wu.yv)())}),[r]);(0,o.useEffect)((function(){var r=t.current;return Iu(r,e,a,Au(a,n)),function(){!function(e){e&&(e.innerHTML="")}(r)}}),[e,a,r,t,n])}(t,r),(0,y.jsx)("div",{"data-testid":"inAppMessageContainer",ref:r})}function Lu(){return(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Du,{})})}function Du(){var e,t=(0,l.NC)(yt.e6f),r=(e=(0,c.wA)(),{message:(0,c.d4)((function(e){var t;return null===(t=e.inAppMessaging)||void 0===t?void 0:t.message})),dismissMessage:(0,o.useCallback)((function(){e((0,wu.yv)())}),[e])}),n=r.message,a=r.dismissMessage,i=!!n&&n.format===Nu.m0;return t?(0,y.jsx)(f.A,{animated:!0,contentLabel:"In-App Message Modal",isOpen:i,onRequestClose:a,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!1,children:i&&!!n&&(0,y.jsx)(Tu,{message:n})}):null}var Pu=r(91074);function Mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mu(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bu=(0,o.lazy)((0,a.A)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(4151),r.e(8042)]).then(r.bind(r,48042));case 2:return t=e.sent,n=t.DsaModal,e.abrupt("return",{default:n});case 5:case"end":return e.stop()}}),e)})))),Fu=(0,o.lazy)((0,a.A)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.e(4151),r.e(4574)]).then(r.bind(r,64746));case 2:return t=e.sent,n=t.YourSoundCapsuleModal,e.abrupt("return",{default:n});case 5:case"end":return e.stop()}}),e)})))),Gu=o.memo((function(e){var t=e.isDesktop,r=(0,l.NC)(yt.SeK,{loadingValue:!1}),n=(0,l.NC)(yt.J1t,{loadingValue:!1}),a=(0,o.useRef)(null),i=(0,c.d4)((function(e){return e.ui.deletePlaylistDialog})),s=(0,c.d4)((function(e){return e.ui.deleteFolderDialog})),u=(0,c.d4)((function(e){return e.ui.removeFromLibraryDialog})),d=(0,c.d4)((function(e){return e.ui.premiumDialog})),m=(0,c.d4)((function(e){return e.ui.loginToListenDialog})),p=(0,c.d4)((function(e){return e.ui.signupToListenDialog})),g=(0,c.d4)((function(e){return e.ui.improvedSignupPromptDialog})),f=(0,c.d4)((function(e){return e.ui.removeDownloadsDialog})),v=(0,c.d4)((function(e){return e.ui.clearCacheDialog})),b=(0,c.d4)((function(e){return e.ui.renameFolderModal})),h=(0,c.d4)((function(e){return e.ui.removeDownloadConfirmationDialog})),x=(0,c.d4)((function(e){return e.ui.artistAboutDialog})),R=(0,c.d4)((function(e){return e.ui.yourDJUpsellDialog})),k=(0,c.d4)((function(e){return e.ui.dsaDialog})),j=(0,c.d4)((function(e){return e.ui.trackCreditsModal})),O=(0,c.d4)((function(e){return e.ui.changesTunaDialog})),C=(0,l.NC)(yt.wXB),w=(0,c.d4)(Pu.fl),S=(0,c.d4)(Pu.ml);return(0,y.jsxs)(y.Fragment,{children:[i.isOpen&&(0,y.jsx)(_a.pZ,{value:"delete-playlist-modal",children:(0,y.jsx)(we,{})}),s.isOpen&&(0,y.jsx)(_a.pZ,{value:"delete-folder-modal",children:(0,y.jsx)(xe,{})}),u.isOpen&&(0,y.jsx)(_a.pZ,{value:"delete-folder-modal",children:(0,y.jsx)(Bn,{})}),d.isOpen&&(0,y.jsx)(_a.pZ,{value:"premium-modal",children:(0,y.jsx)(Ln,{})}),m.isOpen&&(0,y.jsx)(_a.pZ,{value:"login-to-listen-modal",children:(0,y.jsx)(Jt,{})}),p.isOpen&&(0,y.jsx)(_a.pZ,{value:"signup-to-listen-modal",children:(0,y.jsx)(Ka,{})}),g.isOpen&&(0,y.jsx)(bs,{uri:g.uri}),f.isOpen&&(0,y.jsx)(Lc,{}),v.isOpen&&(0,y.jsx)(Dc,{}),b.isOpen&&(0,y.jsx)(Yn,{name:b.name,onRename:b.handleRename}),h.isOpen&&(0,y.jsx)(Us,Uu({},h)),x.isOpen&&(0,y.jsx)(Rs,{}),R.isOpen&&(0,y.jsx)(_a.pZ,{value:"your-dj-upsell-modal",children:(0,y.jsx)(Cu.tW,{})}),(0,y.jsx)(ju,{}),(0,y.jsx)(Fc,{}),(0,y.jsx)(cr,{}),(0,y.jsx)(sr,{}),(0,y.jsx)(Cc,{}),(0,y.jsx)(_s,{}),r&&k.isOpen&&k.item&&(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Bu,{item:k.item})}),(0,y.jsx)(wa,{}),(0,y.jsx)(Li,{}),(0,y.jsx)(yi,{}),(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Cn,{})}),(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Ro,{})}),(0,y.jsx)(We.kS,{}),(0,y.jsx)(Ge,{}),(0,y.jsx)(At,{}),(0,y.jsx)(pe,{}),t&&(0,y.jsx)(Ne,{}),(0,y.jsx)(E,{}),(0,y.jsx)(Bs.A,{languageSelectionModalRef:a}),(0,y.jsx)(Lu,{}),(0,y.jsx)(es,{}),(0,y.jsx)(Zi,{}),(0,y.jsx)(re,{}),(0,y.jsx)(Et,{}),(0,y.jsx)(Ps,{}),(0,y.jsx)(Zn,{}),(0,y.jsx)(jc,{}),(0,y.jsx)(rt,{}),(0,y.jsx)(dl,{}),w&&!t&&(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(Fu,{})}),j.isOpen&&(0,y.jsx)(fi,{}),(0,y.jsx)("div",{ref:a}),C&&O.isOpen&&(0,y.jsx)(o.Suspense,{fallback:null,children:(0,y.jsx)(_a.pZ,{value:"revert-changes-tuna-modal",children:(0,y.jsx)(Ou,{})})}),S&&n&&(0,y.jsx)(Fi,{})]})}))},33496:(e,t,r)=>{r.d(t,{y:()=>K});r(25550),r(47994),r(15342);var n=r(30758),a=r(64399),i=r(13534),s=r(64256),o=r(92107),c=r(67924),l=r(12341),u=r(97500),d=r.n(u),m=r(58017),p=r(2378),g=r(43980),f=r(44785);const v="od_kF1rLZbir8kM_F607",b="qyKJPLjz8o4jnbk92JOn",h="zsVdTdACMZA_MWB3HlEW",x="nsakAYOtgZOAcEO4ObrM",R="uJjmxe0T11dUVeW6Biz8",y="F1K3uW1jqwG0wxFHO5gl",E="Ii9XdJaXIuKbmR1zC4Rt";var k=r(86070),j=n.memo((function(e){var t=e.images,r=e.initialSelected,a=void 0===r?0:r,i=(0,n.useState)(a),s=(0,l.A)(i,2),c=s[0],u=s[1],j=(0,n.useState)(0),O=(0,l.A)(j,2),C=O[0],w=O[1],S=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=S.current;e&&w(e.clientWidth)}),[]),(0,f.s)((function(){var e=S.current;e&&w(e.clientWidth)})),0===t.length?null:(0,k.jsxs)("div",{className:v,children:[t.length>1&&(0,k.jsxs)(k.Fragment,{children:[0!==c&&(0,k.jsx)("button",{type:"button","aria-label":o.Ru.get("gallery.prev"),onClick:function(){return u(c-1)},className:d()(b,h),children:(0,k.jsx)(m.g,{})}),c!==t.length-1&&(0,k.jsx)("button",{type:"button","aria-label":o.Ru.get("gallery.next"),onClick:function(){return u(c+1)},className:d()(b,x),children:(0,k.jsx)(p.V,{})})]}),(0,k.jsx)("ul",{className:R,ref:S,dir:"auto",children:t.map((function(e,t){return(0,k.jsx)("li",{"aria-hidden":c!==t,className:y,style:{transform:"translateX(-".concat(c*C,"px)")},children:(0,k.jsx)(g._,{loading:"lazy",src:e.url,width:e.width,height:e.height,className:E})},t)}))})]})})),O=r(47540),C=r(93051),w=r(21713),S=(r(79024),r(43379),r(97460),r(56922),r(93577),r(5728),r(24136),r(54520),r(91531),r(93678),r(34145),r(1267)),A=r(2363),N=r(82435),_=r(62397),I=r(50517),T=r(42239),L=r(4140);const D="DVWIV41y6daOMjQKR8Zj",P="oORVTPvg6eTQflVKKgw8",M="muHL0_3HjlqTZDoapgc9";function U(e){switch(e){case L.EK.Facebook:return(0,k.jsx)(S.G,{className:P});case L.EK.Twitter:return(0,k.jsx)(A.f,{className:P});case L.EK.Instagram:return(0,k.jsx)(N.Y,{className:P});case L.EK.Wikipedia:return(0,k.jsx)(T.p,{className:P});case L.EK.Soundbetter:return(0,k.jsx)(_.S,{className:P});case L.EK.Whatsapp:return(0,k.jsx)(I.E,{className:P});case L.EK.Other:default:return null}}function B(e){if(e.name===L.EK.Soundbetter){var t=new URL(e.url);return t.searchParams.append("utm_source","open.spotify.com"),t.searchParams.append("utm_medium","referral"),t.searchParams.append("utm_campaign","hireme_link_spotify"),t.href}return e.url}function F(e){switch(e){case L.EK.Facebook:return"Facebook";case L.EK.Twitter:return"Twitter";case L.EK.Instagram:return"Instagram";case L.EK.Wikipedia:return"Wikipedia";case L.EK.Soundbetter:return"Hire Me on SoundBetter";case L.EK.Whatsapp:return"WhatsApp Channel";case L.EK.Other:default:return"Other"}}var G=function(e){var t=e.links;return 0===t.length?null:(0,k.jsx)("div",{className:D,children:t.map((function(e){return(0,k.jsxs)("a",{rel:"noopener noreferrer",target:"_blank",href:B(e),className:M,children:[U(e.name),(0,k.jsx)(i.E,{variant:"bodySmall",children:F(e.name)})]},e.url)}))})},W=r(73788),V=r(60256),z=r(12574),H=r(30308),K=n.memo((function(e){var t=e.artistUri,r=e.name,l=e.bio,u=void 0===l?"":l,d=e.bioSource,m=void 0===d?null:d,p=e.images,g=void 0===p?[]:p,f=e.avatarImages,v=void 0===f?[]:f,b=e.worldRank,h=e.monthlyListeners,x=e.topCities,R=e.followers,y=e.externalLinks,E=void 0===y?[]:y,S=e.isOpen,A=e.closeModal,N=(0,z.r)(s._,{data:{identifier:"",uri:t}}).spec,_=(0,n.useCallback)((function(){N.closeButtonFactory().hitUiHide(),A()}),[A,N]),I=(0,V.t)(N);return(0,k.jsxs)(O.A,{contentLabel:r,className:H.A.modal,isOpen:S,onRequestClose:_,animation:{modal:{base:H.A.modalBase,afterOpen:H.A.modalAfterOpen,beforeClose:H.A.modalBeforeClose}},animated:!0,children:[(0,k.jsx)("button",{type:"button","aria-label":o.Ru.get("close"),onClick:_,className:H.A.close,children:(0,k.jsx)(a.M,{size:"small"})}),(0,k.jsxs)(w.a,{className:H.A.scrollbars,children:[(0,k.jsx)(j,{images:g}),(0,k.jsx)("div",{className:H.A.content,ref:I,children:(0,k.jsxs)("div",{className:H.A.columnContainer,children:[(0,k.jsxs)("div",{className:H.A.statsContainer,children:[b>0?(0,k.jsxs)("div",{className:H.A.rank,children:[(0,k.jsxs)(i.E,{as:"div",variant:"titleSmall",children:["#",b]}),(0,k.jsx)(i.E,{as:"div",variant:"marginal",children:o.Ru.get("artist-page.world_rank")})]}):null,"number"==typeof R?(0,k.jsxs)("div",{className:H.A.stats,children:[(0,k.jsx)(i.E,{as:"div",variant:"titleMedium",semanticColor:"textBase",children:o.Ru.formatNumber(R)}),(0,k.jsx)(i.E,{as:"div",variant:"bodySmall",children:o.Ru.get("followers")})]}):null,"number"==typeof h?(0,k.jsxs)("div",{className:H.A.stats,children:[(0,k.jsx)(i.E,{as:"div",variant:"titleMedium",semanticColor:"textBase",children:o.Ru.formatNumber(h)}),(0,k.jsx)(i.E,{as:"div",variant:"bodySmall",children:o.Ru.get("monthly_listeners")})]}):null,x&&x.length?x.map((function(e,t){var r=e.city,n=e.numberOfListeners,a=e.country;return(0,k.jsxs)("div",{className:H.A.cityBlock,children:[(0,k.jsx)(i.E,{as:"div",variant:"bodySmallBold",semanticColor:"textBase",children:o.Ru.get("artist-page.where-people-listen-from",r||"",a||"")}),(0,k.jsx)(i.E,{as:"div",variant:"bodySmall",children:o.Ru.get("artist-page.how-many-listeners",n||0)})]},t)})):null,(0,k.jsx)(n.Suspense,{fallback:null,children:(0,k.jsx)(G,{links:E})})]}),(0,k.jsx)("div",{className:H.A.bioContainer,children:u?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(i.E,{as:"div",variant:"bodyMedium",className:H.A.bio,dir:"auto",children:(0,k.jsx)(W.y,{source:u,LinkComponent:C.N,onLinkClick:_})}),m===L.B3.Autobiography&&(0,k.jsxs)("div",{className:H.A.postedBy,children:[(0,k.jsx)(c.e,{images:v,label:r,width:32,userIconSize:"small",className:H.A.postedByAvatar}),(0,k.jsx)(i.E,{as:"div",variant:"bodySmall",children:o.Ru.get("acq.artist.about.attribution",{artist:r})})]})]}):null})]})})]})]})}))},77225:(e,t,r)=>{r.d(t,{g:()=>g});r(25550),r(70750),r(15342);var n=r(30758),a=r(97500),i=r.n(a),s=r(13534),o=r(92107),c=r(67924);const l="w0kwPDoelauN3C9dVoVe",u="xzLZD9uD3b4u9wecXAJY",d="DaFhhSm73r7rNpomErhI";var m=r(86070),p=function(e){var t=e.children;return(0,m.jsx)(m.Fragment,{children:t})},g=(0,n.forwardRef)((function(e,t){var r=e.users,n=e.maxSlots,a=void 0===n?3:n,g=e.size,f=e.withoutOverflowBadge,v=void 0!==f&&f,b=e.dropShadow,h=void 0!==b&&b,x=e.AvatarWrapper,R=void 0===x?p:x,y=Math.max(2,a),E=r.length>y?r.length-y+1:0,k=r.slice(0,y),j=function(e){switch(e){case"xxlarge":return{userIconSize:"xlarge",width:64,smallFontSize:24,largeFontSize:32};case"xlarge":return{userIconSize:"large",width:48,smallFontSize:18,largeFontSize:24};case"large":return{userIconSize:"medium",width:32,smallFontSize:12,largeFontSize:16};case"medium":default:return{userIconSize:"small",width:24,smallFontSize:9,largeFontSize:12};case"small":return{userIconSize:"xsmall",width:18,smallFontSize:8,largeFontSize:10}}}(g),O=j.userIconSize,C=j.width,w=j.smallFontSize,S=j.largeFontSize,A=E>9?w:S,N=(0,m.jsx)("span",{className:i()(u,"encore-inverted-light-set"),style:{width:C,height:C},role:"presentation",children:(0,m.jsx)(s.E,{variant:"bodySmallBold",style:{fontSize:A},semanticColor:"textBase",children:"+".concat(E)})});return(0,m.jsx)("div",{className:i()(l),ref:t,children:k.map((function(e,t){return!v&&E>0&&t===y-1?(0,m.jsx)(R,{index:t,children:(0,m.jsx)(c.e,{images:[],userIconSize:O,label:o.Ru.get("web-player.social-connect.facepile.and-others",E),width:C,piled:!0,customPlaceholder:N})},"others"):(0,m.jsx)(R,{index:t,user:e,children:(0,m.jsx)(c.e,{images:e.images,userIconSize:O,label:e.displayName,displayName:e.displayName,username:e.username,width:C,piled:t>0,imageClassName:h?d:void 0})},e.displayName)}))})}))},74891:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(23100),a=r(86070),i=function(e){var t=e.color,r=void 0===t?n.Ql9:t,i=e.height,s=void 0===i?"30":i,o=e.className;return(0,a.jsxs)("svg",{className:o,width:"114",role:"img",height:s,viewBox:"0 0 114 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{id:"spotify-premium-logo-icon",children:"Spotify logo"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7835 10.7851C37.7835 10.6921 37.86 10.6156 37.9545 10.6156L40.1039 10.6246C41.8485 10.6246 42.849 11.4421 42.849 12.9076C42.849 14.2486 41.745 15.1501 40.1039 15.1501L37.9545 15.1411C37.86 15.1411 37.7835 15.0646 37.7835 14.9701V10.7851ZM40.296 8.11502L35.232 8.10602C35.1375 8.10602 35.061 8.18252 35.061 8.27552V21.8085C35.061 21.903 35.1375 21.9795 35.232 21.9795H37.614C37.707 21.9795 37.7835 21.903 37.7835 21.8085V17.631L40.026 17.64C43.4175 17.64 45.6105 15.759 45.6105 12.81C45.6105 9.95852 43.524 8.11502 40.296 8.11502Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.4025 13.4759C59.9115 13.4759 60.6195 14.6519 60.7964 15.8174H55.956C56.217 14.3879 57.1605 13.4759 58.4025 13.4759ZM58.4218 11.217C55.4805 11.217 53.262 13.5765 53.262 16.704V16.743C53.262 19.911 55.5375 22.2105 58.6725 22.2105C60.264 22.2105 61.599 21.6705 62.6473 20.604C62.718 20.5305 62.8723 20.355 62.9775 20.2335C63.039 20.163 63.0315 20.058 62.961 19.995L61.5795 18.7695C61.5165 18.714 61.4235 18.714 61.362 18.7695C61.212 18.9075 60.957 19.14 60.93 19.161C60.24 19.7115 59.553 19.953 58.7115 19.953C57.2985 19.953 56.268 19.098 55.98 17.7075H63.4305L63.4485 17.4975C63.4663 17.28 63.4831 17.079 63.4831 16.878C63.4831 14.061 61.9185 11.217 58.4218 11.217Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.7895 11.217C75.414 11.217 74.289 11.76 73.3575 12.876C72.7245 11.8035 71.6474 11.217 70.296 11.217C68.8529 11.217 67.968 11.9145 67.356 12.645V11.5995C67.356 11.5065 67.2795 11.43 67.1865 11.43H64.8435C64.749 11.43 64.6724 11.5065 64.6724 11.5995V21.8085C64.6724 21.903 64.749 21.9795 64.8435 21.9795H67.1865C67.2795 21.9795 67.356 21.903 67.356 21.8085V16.0665C67.356 14.622 68.1465 13.6875 69.3675 13.6875C70.5719 13.6875 71.2635 14.5275 71.2635 15.99V21.8085C71.2635 21.903 71.34 21.9795 71.433 21.9795H73.776C73.8705 21.9795 73.9469 21.903 73.9469 21.8085V16.047C73.9469 14.5695 74.6985 13.6875 75.9585 13.6875C77.5245 13.6875 77.8529 14.9505 77.8529 16.0095V21.8085C77.8529 21.903 77.9295 21.9795 78.024 21.9795H80.367C80.4615 21.9795 80.5365 21.903 80.5365 21.8085V15.294C80.5365 12.741 79.1355 11.217 76.7895 11.217Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.0376 17.361C93.0376 18.795 92.2021 19.7205 90.9106 19.7205C89.6131 19.7205 88.8991 18.897 88.8991 17.4V11.5995C88.8991 11.5065 88.8226 11.43 88.7279 11.43H86.3849C86.2921 11.43 86.2156 11.5065 86.2156 11.5995V18.096C86.2156 20.622 87.6736 22.191 90.0211 22.191C91.2421 22.191 92.2321 21.7155 93.0376 20.7405V21.8085C93.0376 21.903 93.1141 21.9795 93.2071 21.9795H95.5501C95.6446 21.9795 95.7211 21.903 95.7211 21.8085V11.5995C95.7211 11.5065 95.6446 11.43 95.5501 11.43H93.2071C93.1141 11.43 93.0376 11.5065 93.0376 11.5995V17.361Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109.308 11.217C107.934 11.217 106.808 11.76 105.876 12.876C105.243 11.8035 104.166 11.217 102.815 11.217C101.373 11.217 100.487 11.9145 99.876 12.6435V11.5995C99.876 11.5065 99.7995 11.43 99.705 11.43H97.362C97.269 11.43 97.1925 11.5065 97.1925 11.5995V21.8085C97.1925 21.903 97.269 21.9795 97.362 21.9795H99.705C99.7995 21.9795 99.876 21.903 99.876 21.8085V16.0665C99.876 14.622 100.665 13.6875 101.888 13.6875C103.092 13.6875 103.782 14.5275 103.782 15.99V21.8085C103.782 21.903 103.859 21.9795 103.953 21.9795H106.296C106.389 21.9795 106.466 21.903 106.466 21.8085V16.047C106.466 14.5695 107.217 13.6875 108.477 13.6875C110.045 13.6875 110.373 14.9505 110.373 16.0095V21.8085C110.373 21.903 110.45 21.9795 110.543 21.9795H112.886C112.98 21.9795 113.057 21.903 113.057 21.8085V15.294C113.057 12.741 111.656 11.217 109.308 11.217Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.7354 11.232H52.4204C51.0464 11.2425 49.9229 11.919 49.1909 13.167V11.5995C49.1909 11.5065 49.1144 11.43 49.0199 11.43H46.6769C46.5824 11.43 46.5074 11.5065 46.5074 11.5995V21.8085C46.5074 21.903 46.5824 21.9795 46.6769 21.9795H49.0199C49.1144 21.9795 49.1909 21.903 49.1909 21.8085V17.922C49.1909 15.5085 50.3533 14.106 52.3859 14.0565L52.3889 14.055H52.7354C52.8119 14.055 52.8734 13.9935 52.8734 13.9155V11.3715C52.8734 11.295 52.8119 11.232 52.7354 11.232Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.5339 11.4975H82.2195C82.1265 11.4975 82.05 11.574 82.05 11.667V21.768C82.05 21.8625 82.1265 21.9375 82.2195 21.9375H84.5339C84.6285 21.9375 84.7035 21.8625 84.7035 21.768V11.667C84.7035 11.574 84.6285 11.4975 84.5339 11.4975Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M83.388 6.8985C82.4715 6.8985 81.7275 7.641 81.7275 8.5575C81.7275 9.4755 82.4715 10.2195 83.388 10.2195C84.306 10.2195 85.0485 9.4755 85.0485 8.5575C85.0485 7.641 84.306 6.8985 83.388 6.8985Z",fill:r}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.8725 13.2975C19.038 10.4265 11.0625 10.1625 6.44685 11.5635C5.7045 11.7885 4.9215 11.37 4.6965 10.629C4.4715 9.88648 4.89 9.10348 5.6325 8.87848C10.9305 7.26898 19.7385 7.58098 25.305 10.884C25.9723 11.28 26.19 12.141 25.7955 12.807C25.3995 13.473 24.5385 13.6935 23.8725 13.2975ZM23.715 17.55C23.376 18.1005 22.656 18.273 22.1055 17.9355C18.075 15.4575 11.9279 14.7405 7.15953 16.188C6.54003 16.374 5.88753 16.026 5.70003 15.408C5.51253 14.79 5.86203 14.1375 6.48003 13.95C11.9279 12.297 18.7005 13.098 23.3295 15.9435C23.88 16.281 24.0525 17.001 23.715 17.55ZM21.8789 21.6345C21.609 22.077 21.0345 22.215 20.5935 21.9465C17.0715 19.794 12.6375 19.3065 7.41602 20.5005C6.91352 20.616 6.41102 20.2995 6.29702 19.797C6.18152 19.293 6.49502 18.792 7.00052 18.678C12.714 17.3715 17.6159 17.934 21.5685 20.349C22.0095 20.619 22.149 21.195 21.8789 21.6345ZM15 0C6.7155 0 0 6.7155 0 15C0 23.2845 6.7155 30 15 30C23.2845 30 30 23.2845 30 15C30 6.7155 23.2845 0 15 0Z",fill:r})]})}},54180:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(12341),a=(r(60287),r(30758));function i(){var e=(0,a.useState)(!1),t=(0,n.A)(e,2),r=t[0],i=t[1];return[r,(0,a.useCallback)((function(){i(!0),setTimeout((function(){return i(!1)}),0)}),[i])]}},72698:(e,t,r)=>{r.d(t,{d:()=>Z});var n=r(62822),a=r(93091),i=r.n(a),s=r(30758);function o(){return"webkitRequestAnimationFrame"in window}function c(){var e;return!(null===(e=window)||void 0===e||null===(e=e.CSS)||void 0===e||!e.supports)}function l(){return!c()||CSS.supports("-webkit-border-vertical-spacing","0")}r(43821);var u=56.1124478168614,d=56.1124478168614,m=56.1124478168614,p=56.11244781686139;function g(){return Math.hypot(-24.42,-50.519999999999925)}r(42486),r(68216),r(43379),r(78397);var f=33,v=33,b=37,h=37;function x(){return eval.toString().length}r(47994);var R=r(9856),y=r.n(R);function E(){return"Chrome"===y().parse(navigator.userAgent).browser.name}function k(){return"Firefox"===y().parse(navigator.userAgent).browser.name}var j=r(27576),O=r(74641);function C(){return x()===b&&g()===p&&(!c()||CSS.supports("-moz-box-sizing","content-box"))&&"mozInnerScreenX"in window}function w(){return!(E()&&!(window.chrome&&x()===f&&g()===u&&l()&&o()))&&(!(k()&&!C())&&(!!(!(0,O.n)()||x()===h&&g()===m&&l()&&o())&&!!(!(0,j.k)()||x()===v&&g()===d&&l()&&o())))}r(5672),r(19264),r(2823),r(65594);function S(){var e=navigator,t=e.userAgent,r=e.appVersion,n=null!=r?r:"";return/headless/i.test(t)||/headless/i.test(n)}function A(){for(var e=0,t=Object.keys(document);e<t.length;e++){if(t[e].startsWith("$cdc_"))return!0}return!1}function N(){return _.apply(this,arguments)}function _(){return(_=(0,n.A)(i().mark((function e(){var t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("permissions"in navigator){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,navigator.permissions.query({name:"notifications"});case 4:return r=e.sent,e.abrupt("return","denied"===(null===(t=window)||void 0===t||null===(t=t.Notification)||void 0===t?void 0:t.permission)&&"prompt"===r.state);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){return T.apply(this,arguments)}function T(){return(T=(0,n.A)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=navigator.webdriver||S()||A()||""===navigator.languages||!(!navigator.plugins||navigator.plugins.length),e.t0){e.next=5;break}return e.next=4,N();case 4:e.t0=e.sent;case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var L=r(12341),D=r(92251),P=r(80112);function M(){return(0,D.D)()===P.f.ChromeOS}function U(){if(!("platform"in navigator))return!0;if(M())return!0;var e=function(e){var t=e.split(" "),r=(0,L.A)(t,1)[0],n={MacIntel:"macOS",Win32:"Windows",Win64:"Windows",Linux:"Linux"};return r in n?n[r]:""}(navigator.platform);return!e||e===y().parse(navigator.userAgent).os.name}var B=function(e){return e.Ok="0",e.Warning="1",e.Error="2",e}({});function F(){return G.apply(this,arguments)}function G(){return(G=(0,n.A)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:if(!e.sent){e.next=6;break}e.t0=B.Error,e.next=7;break;case 6:e.t0=B.Ok;case 7:return e.t1=e.t0,e.t2=w()?B.Ok:B.Error,e.t3=U()?B.Ok:B.Error,e.abrupt("return",{headless:e.t1,browser:e.t2,os:e.t3});case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var W=void 0;const V=(0,n.A)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=W)||void 0===t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,F();case 6:e.t0=e.sent;case 7:return W=e.t0,e.abrupt("return",W);case 9:case"end":return e.stop()}}),e)})));function z(e,t){if(!("platform"in t))return!0;if(M())return!0;var r=function(e){var t=e.split(" "),r=(0,L.A)(t,1)[0],n={MacIntel:"macOS",Win32:"Windows",Win64:"Windows",Linux:"Linux"};return r in n?n[r]:""}(t.platform);return!r||r===y().parse(e).os.name}function H(){return K.apply(this,arguments)}function K(){return(K=(0,n.A)(i().mark((function e(){var t,r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.chrome){e.next=2;break}return e.abrupt("return",!1);case 2:if(null!==(t=navigator.plugins)&&void 0!==t&&t.length){e.next=4;break}return e.abrupt("return",!1);case 4:if(""!==navigator.languages){e.next=6;break}return e.abrupt("return",!1);case 6:if(x()===f){e.next=8;break}return e.abrupt("return",!1);case 8:return e.next=10,navigator.permissions.query({name:"notifications"});case 10:if(n=e.sent,"denied"!==(null===(r=window)||void 0===r||null===(r=r.Notification)||void 0===r?void 0:r.permission)||"prompt"!==n.state){e.next=13;break}return e.abrupt("return",!1);case 13:return e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Y=function(){var e=(0,n.A)(i().mark((function e(){var t,r,n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!navigator.webdriver){e.next=2;break}return e.abrupt("return",!1);case 2:if(!S()){e.next=4;break}return e.abrupt("return",!1);case 4:if(e.t0=E(),!e.t0){e.next=9;break}return e.next=8,H();case 8:e.t0=!e.sent;case 9:if(!e.t0){e.next=11;break}return e.abrupt("return",!1);case 11:if(!k()||x()===b){e.next=13;break}return e.abrupt("return",!1);case 13:if(!(0,O.n)()||x()===h){e.next=15;break}return e.abrupt("return",!1);case 15:if(!(0,j.k)()||x()===v){e.next=17;break}return e.abrupt("return",!1);case 17:if(t=navigator,z(t.userAgent,navigator)){e.next=20;break}return e.abrupt("return",!1);case 20:r=Object.keys(document),n=0,a=r;case 22:if(!(n<a.length)){e.next=29;break}if(!a[n].startsWith("$cdc_")){e.next=26;break}return e.abrupt("return",!1);case 26:n++,e.next=22;break;case 29:return e.abrupt("return",!0);case 30:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=void 0;const Q=(0,n.A)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=q)||void 0===t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,Y();case 6:e.t0=e.sent;case 7:return q=e.t0,e.abrupt("return",q);case 9:case"end":return e.stop()}}),e)})));function Z(){var e=(0,s.useRef)(void 0),t=(0,s.useRef)(!1),r=(0,s.useRef)(!1),a=(0,s.useRef)({}),o=(0,s.useCallback)(function(){var s=(0,n.A)(i().mark((function n(s){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,V();case 2:if(a.current=n.sent,s){n.next=8;break}return n.next=6,Q();case 6:return e.current=n.sent,n.abrupt("return");case 8:return n.next=10,Q();case 10:if(n.t0=!n.sent,n.t0){n.next=13;break}n.t0=!s.isTrusted;case 13:if(!n.t0){n.next=17;break}e.current=!1,n.next=18;break;case 17:"click"!==s.type?e.current=!0:r.current?e.current=t.current:e.current=!0;case 18:case"end":return n.stop()}}),n)})));return function(e){return s.apply(this,arguments)}}(),[]);return(0,s.useEffect)((function(){function e(){t.current=!0}function n(e){r.current="mouse"===e.pointerType}return document.addEventListener("mousemove",e),document.addEventListener("pointerdown",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("pointerdown",n)}}),[]),{isTrustedRef:e,isTrustedFn:o,metadataRef:a}}},89246:(e,t,r)=>{r.d(t,{c:()=>s,t:()=>o});var n=r(85093),a=(r(83234),r(30456),r(40065),r(25550),r(43379),r(34192),r(88856),r(4865),r(15342),r(80366)),i=function(e){return{url:e}},s=function(e){var t=[];return e.largeImageUrl?t.push(i(e.largeImageUrl)):e.imageUrl&&t.push(i(e.imageUrl)),{displayName:e.displayName,images:t,username:e.username,uri:(0,a.Qj)(e.username).toURI()}},o=function(e,t,r){var a=[],i=e.sessionMembers.find((function(t){return t.id===e.sessionOwnerId}));i&&a.push(i);var o=e.isSessionOwner||null==e?void 0:e.sessionMembers.find((function(e){return e.username===t}));o&&(null!=r&&r.userFirst?a.unshift(o):a.push(o));var c=e.sessionMembers.filter((function(r){var n=r.username;return r.id!==e.sessionOwnerId&&n!==t}));return[].concat(a,(0,n.A)(c)).map(s)}},8924:(e,t,r)=>{r.d(t,{R:()=>s});var n=r(30758),a=r(44977),i=r(12574),s=function(){var e=(0,i.r)(a.T,{}),t=e.spec,r=e.logger;return{logRemoveClick:(0,n.useCallback)((function(e,n){r.logInteraction(t.buttonRowFactory().removeButtonFactory().hitRemoveParticipant({participantId:e,sessionId:n}))}),[r,t])}}},74898:(e,t,r)=>{r.d(t,{Q:()=>i,s:()=>s});var n=r(72060),a=r(82316);function i(e){return e.build().withHost(a.D8).withPath("/verifications/").withEndpointIdentifier("/verifications/").send()}function s(e,t){return e.build().withMethod(n.Method.PUT).withHost(a.D8).withPath("/verifications/".concat(t,"/")).withEndpointIdentifier("/verifications/{verificationId}/").send()}},37212:(e,t,r)=>{r.d(t,{D:()=>i});var n=r(51017),a=r(3376);function i(){return(0,a.N)(n.x)}},30308:(e,t,r)=>{r.d(t,{A:()=>n});const n={artistOverviewContent:"XtGI24gayCCOR69pcBao",artistOverviewContainer:"AK5MS4kVmpVJSnAPzApZ",popularTracks:"ih3vZ4qqibfclKQ2r3U8",artistShelfSpacer:"vsqOYUmRYepQ7AgGzPDk",artistShelfRelatedVideos:"Uv9uqBNRy4qsyhPSa7lY",artistSides:"YyjwPfOAdb6z73PerGUF",artistSidesBlock:"pAvBQUDkfvkyO47Kw71y",sideBlock:"PPoC4pYtYLuuzjV0RaQF",popularTracksBlock:"V168frZQBWaJ1OdnyyKO",about:"MZkAAYmEs5kAOXrbrBQQ",events:"IR0gsJCJYP1TqjMi6wUt",merch:"hGJN08YEbxIJ2HaEcHee",merchSmall:"GNdKACg7GTgIv75LT6Gv",overview:"FwIG_h9mHxGOTDxFRnWT",heading:"anPfvyDzeqR3CKW4gHUP",merchShelfContent:"ZpAXOWy3RgYX8ywKZZOI",container:"jW4eWdr_LUeOXwPpKhWG",content:"BPDHTIIFueJMvtDPZttw",backgroundImage:"DRXonbAbVN5Vg9anDL1X",bio:"xbKOOJ_NjLijBvdpAudQ",artistGridContainer:"M0yriEHOsE9ET707IXzC",image:"PwMuGFUCeHPjbHDy8M1T",columnContainer:"y_GaLKy76zj71zPYkLrs",bioContainer:"TV2j1oIRIkKH_6D1xP82",statsContainer:"T_AmQPlZ6wvE819I7A0D",stats:"zQy0G59IX5G4Cc9AtWRT",postedBy:"OyLgnahIHw63684ABRBF",postedByAvatar:"KguYS3oppxDrMNpTUJcB",avatar:"O9QEyBUMktZGNPifQqvY",modal:"JnpOnFaQfrRIA2fYe88A",scrollbars:"cacyLqtJhjhr95qRC_R7",close:"pSxFsY9Fgcj5f8Gf05mh",modalBase:"tsFfFt7SCIoA14JawrRf",modalAfterOpen:"_VADS4mdajCt5Yuf6KjW",modalBeforeClose:"TrS5BnDIiLtqz1i1QBVV",rank:"tLjX9htIKD_OCmEX01UN",cityBlock:"NPv26QCDgdnwsPOlYJmQ"}}}]);
|
|
//# sourceMappingURL=xpui-root-dialogs.js.map
|