2 lines
1016 B
JavaScript
2 lines
1016 B
JavaScript
"use strict";var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,c=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;const s=require("../../../../common/vendor.js"),p=s.defineComponent((l=((e,r)=>{for(var t in r||(r={}))a.call(r,t)&&c(e,t,r[t]);if(o)for(var t of o(r))n.call(r,t)&&c(e,t,r[t]);return e})({},{name:"wd-config-provider",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"}}),i={props:s.configProviderProps,setup(e){const r=e,t=s.computed((()=>`wot-theme-${r.theme}`)),o=s.computed((()=>a(r.themeVars))),a=e=>{if(!e)return;const r={};return Object.keys(e).forEach((t=>{var o;r[`--wot-${o=t,(o=o.replace(o.charAt(0),o.charAt(0).toLocaleLowerCase())).replace(/([a-z])([A-Z])/g,((e,r,t)=>r+"-"+t.toLowerCase()))}`]=e[t]})),r};return(e,r)=>({a:s.n(t.value),b:s.s(o.value)})}},r(l,t(i))));var l,i;wx.createComponent(p);
|