import{r as t}from"./p-bace3d90.js";import{m as s}from"./p-4203430b.js";const e=class{constructor(s){t(this,s),this.theme=null}async componentWillRender(){if(this.theme){const t="string"==typeof this.theme?JSON.parse(this.theme):this.theme,e=s(t),o=document.querySelectorAll("head style#corejam-user-style");if(e.length>0)if(o.length>0)o[0].innerHTML=`\n            :root {\n              ${e}\n            }\n          `;else{const t=document.createElement("style");t.id="corejam-user-style",t.innerHTML=`\n          :root {\n            ${e}\n          }\n        `,document.head.appendChild(t)}}}};export{e as corejam_ui_theme}