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

2 lines
1.6 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[2632],{42632:(t,e,r)=>{r.r(e),r.d(e,{CtaButton:()=>b,default:()=>p});var n=r(52542),o=(r(7651),r(42486),r(30456),r(26701),r(68216),r(37417),r(11737),r(51691),r(702),r(5672),r(43379),r(78397),r(34192),r(88856),r(51565),r(18316),r(30758)),c=r(84015),i=r(23100),a=r(11854),l=r(93051),u=r(86070);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=function(t){var e=t["aria-label"],r=t.text,n=t.onClick,s=t.clickUrl,b=t.backgroundColor,p=t.className,O=(0,o.useMemo)((function(){if(b){var t=(0,c.mA)(b);return f(f({},t),{},{text:f(f({},t.text),{},{base:i.LLE})})}}),[b]);return(0,u.jsx)(l.N,{"aria-label":e||r,className:p,"data-testid":"ad-cta-button",to:s,onClick:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){t.stopPropagation(),n()})),children:(0,u.jsx)(a.$,{UNSAFE_colorSet:O,colorSet:"invertedLight",size:"small",children:r})})};const p=b}}]);
//# sourceMappingURL=2632.js.map