Module 566492

1,131 characters · in no known chunk
Dependencies
Required by (1)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{P:()=>g});var r=n(508425),i=n(945096);let s="--custom-display-name-styles-gradient-start-color",a="--custom-display-name-styles-gradient-end-color",o="--custom-display-name-styles-main-color",l="--custom-display-name-styles-light-1-color",u="--custom-display-name-styles-light-2-color",c="--custom-display-name-styles-dark-1-color",d="--custom-display-name-styles-dark-2-color",_="--custom-display-name-styles-toon-stroke-color",f="--custom-display-name-styles-neon-stroke-color",p="--custom-display-name-styles-wrap",h="--custom-display-name-styles-font-opacity";function m(e){let{main:t,light1:n,light2:r,dark1:s,dark2:a,toonStroke:p,neonStroke:h}=(0,i.$0)(e);return{[o]:t,[l]:n,[u]:r,[c]:s,[d]:a,[_]:p,[f]:h}}function E(e){return 0===e.length?{}:{[s]:e[0],[a]:e.length>1?e[1]:e[0],[o]:e[0]}}function g(e,t){let{shouldWrap:n=!1,fontOpacity:i=1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={};switch(e){case r.z.GRADIENT:case r.z.GLOW:s=E(t);break;case r.z.NEON:case r.z.POP:case r.z.TOON:case r.z.SOLID:default:t.length>0&&(s=m(t[0]))}return{...s,[p]:n?"wrap":"nowrap",[h]:i}}}