solorice/config/spicetify/Extracted/Raw/xpui/5043.js

2 lines
7.8 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[5043],{48035:(e,t,r)=>{r.d(t,{I:()=>l});var n=r(12341),i=r(30758),o=r(28112),c=r(8574),a=r(99888),s=r(86070),l=i.memo((function(e){var t=e.uri,r=e.size,l=void 0===r?o.M.md:r,u=e.className,d=e.onClick,p=e.canDownload,f=e.condensedAll,b=(0,a.A)(t),v=(0,n.A)(b,2),O=v[0],y=v[1],h=(0,c.W)(),j=(0,i.useCallback)((function(){h({targetUri:t,intent:O?"unsave":"save",type:"click"}),y(!O)}),[h,t,O,y]);return(0,s.jsx)(o.f,{className:u,isFollowing:O,onFollow:j,onClick:d,uri:t,size:l,canDownload:p,condensedAll:f,condensed:!0})}))},87389:(e,t,r)=>{r.d(t,{k:()=>b});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),i=r(13734),o=r(30758),c=r(97500),a=r.n(c),s=r(96971),l=r(75905),u=r(50028),d=r(86070),p=["breakpoint","className","showSeparator","isActive"];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}var b=(0,o.memo)((function(e){var t=e.breakpoint,r=e.className,o=e.showSeparator,c=e.isActive,b=(0,i.A)(e,p);return(0,d.jsx)(s.v,function(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,n.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}({className:a()(r,u.A.entityRow,(0,n.A)((0,n.A)({},u.A.separator,o),u.A.active,c)),hoverBackgroundColor:"backgroundTintedHighlight",activeBackgroundColor:"backgroundTintedBase",layout:t===l.e.SMALL?"regular":"wide",hoverAnimationDuration:"0ms",horizontalGap:t===l.e.SMALL?"12px":"16px",paddingBlockStart:"12px",paddingBlockEnd:"12px"},b))}))},21308:(e,t,r)=>{r.d(t,{X:()=>u});var n=r(13534),i=r(64348),o=r(57186),c=r(46198);const a="dK79XxAEu3SEKJ2jS_Qy",s="guiUbDD6Ga8Qpatq2jQ8";var l=r(86070),u=function(e){var t=e.isExplicit,r=e.is19PlusOnly,u=e.isPaid,d=e.children;return(0,l.jsxs)("div",{className:a,children:[t&&(0,l.jsx)(i.U,{}),u&&(0,l.jsx)(o.y,{}),r&&(0,l.jsx)(c.q,{size:16}),(0,l.jsx)(n.E,{variant:"bodySmall",className:s,children:d})]})}},77836:(e,t,r)=>{r.d(t,{q:()=>a});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),i=r(99365),o=r(86070);function c(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 a=function(e){return(0,o.jsx)(i.R,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({size:"small",version:i.H.secondary},e))}},85703:(e,t,r)=>{r.d(t,{k:()=>a});r(7651),r(14551);var n=r(30749),i=r(37089),o=r(50028),c=r(86070),a=function(e){var t=e.description,r=e.children;return(0,c.jsxs)("div",{className:o.A.body,children:[t&&(0,c.jsx)(n.v,{lineClamp:2,as:"div",dir:"auto",children:(0,c.jsx)(i.q,{asTextContent:!0,html:t})}),r]})}},59950:(e,t,r)=>{r.d(t,{F:()=>o});var n=r(50028),i=r(86070),o=function(e){var t=e.actions,r=e.playButton;return(0,i.jsxs)("div",{className:n.A.footer,children:[(0,i.jsx)("div",{className:n.A.actions,children:t}),r]})}},83263:(e,t,r)=>{r.d(t,{e:()=>s});r(47994);var n=r(75905),i=r(18180),o=r(44113),c=r(99990),a=r(86070),s=function(e){var t=e.images,r=e.breakpoint,s=e.type,l=e.name,u=(0,c._)(),d=r===n.e.SMALL?o.Qe.SIZE_64:o.Qe.SIZE_112;return(0,a.jsx)(i.b,{fadeIn:!0,images:u(t,o.BZ[d]),shape:i.u.ROUNDED_CORNERS,size:d,iconSize:r===n.e.SMALL?"medium":"xlarge",type:s,title:l,loadingMode:"eager"})}},49757:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(26173),i=r(50028),o=r(86070),c=function(e){var t=e.children;return(0,o.jsx)(n.d,{lineClamp:2,as:"div",dir:"auto",className:i.A.title,children:t})}},71666:(e,t,r)=>{r.d(t,{M:()=>b});var n=r(52542),i=(r(7651),r(83234),r(30456),r(26701),r(25550),r(37417),r(11737),r(51691),r(702),r(5672),r(43379),r(34192),r(88856),r(51565),r(15342),r(18316),r(57574)),o=(r(40065),r(75380),r(40122),r(30758));function c(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 a=[],s=function(e){var t,r=(null===(t=a.find((function(t){return t.key===e})))||void 0===t?void 0:t.heights)||{},i=(0,o.useCallback)((function(t){if(e){var r=a.findIndex((function(t){return t.key===e}));-1===r?a.push({key:e,heights:t}):(a[r].heights=t,a.push(a.splice(r,1)[0])),a.length>10&&a.shift()}}),[e]),s=(0,o.useRef)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r));return(0,o.useEffect)((function(){return function(){i(s.current)}}),[i]),s.current},l=function(e,t){for(var r=[],n=e,i=t;n>0;){var o=Math.ceil(n/i);r.push({first:e-n,nrItems:o}),n-=o,i--}return r},u=r(86070);function d(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?d(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=function(e){var t,r,n=e.itemsInNode,o=e.renderItem,c=e.renderPlaceholder,a=e.estimatedHeight,s=e.scrollNodeRef,d=e.nrRowsOverscan,b=void 0===d?10:d,v=e.nrInitialInView,O=void 0===v?0:v,y=e.firstIndex,h=e.heights,j=e.fanOut,g=void 0===j?2:j,m=(0,i.Wx)({root:s.current,rootMargin:"".concat(b*a,"px 0px"),initialInView:y<O}),w=m.ref,x=m.inView,P=m.entry,A="".concat(y,"-").concat(n);null!==(t=h[A])&&void 0!==t||(h[A]=a*n),null!=P&&null!==(r=P.boundingClientRect)&&void 0!==r&&r.height&&(h[A]=P.boundingClientRect.height);var k=h[A];return 0===n?null:x?1===n?(0,u.jsx)("div",{ref:w,role:"presentation",children:o(y,k)}):(0,u.jsx)("div",{ref:w,role:"presentation",children:l(n,g).map((function(t,r){var n=t.first,i=t.nrItems;return(0,u.jsx)(f,p(p({},e),{},{itemsInNode:i,firstIndex:y+n}),r)}))}):(0,u.jsx)("div",{ref:w,role:"presentation",children:c("".concat(k,"px"))})},b=function(e){var t=s(e.persistanceKey);return(0,u.jsx)(f,p(p({},e),{},{itemsInNode:e.totalCount,firstIndex:0,heights:t,nrInitialInView:e.nrInitialInView}))}},31247:(e,t,r)=>{r.d(t,{u:()=>n});var n=function(e){return e.TITLE="title",e.SUBTITLE="subTitle",e}({})},75905:(e,t,r)=>{r.d(t,{$:()=>c,e:()=>o});var n=r(47795),i=r(60455),o={SMALL:"small",LARGE:"large"},c=function(){return(0,i.y)()===n.E.SMALL?"small":"large"}},50028:(e,t,r)=>{r.d(t,{A:()=>n});const n={entityRow:"ci11tAmTK1LnxThQkXPy",actions:"_2sJPwAAp1wY1Ftke6iFe",visibleAction:"yuNzasMLs7hvemHI4d8Q",active:"dNymWGRudMrTI6ot9FBg",title:"luWcW9hkbLdFxRQB0yGb",body:"abYR6tZoE7BdzThmWTb0",footer:"GOcKQxqNMhGzbGiAXBig",separator:"yFQjuDAhri_egM1pwn70"}}}]);
//# sourceMappingURL=5043.js.map