import{r as t}from"./p-d55626d1.js";import{m as s}from"./p-4203430b.js";const o=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,o=s(t),e=document.querySelectorAll("head style#corejam-user-style");if(o.length>0)if(e.length>0)e[0].innerHTML=`\n            :root {\n              ${o}\n            }\n          `;else{const t=document.createElement("style");t.id="corejam-user-style",t.innerHTML=`\n          :root {\n            ${o}\n          }\n        `,document.head.appendChild(t)}}}};export{o as corejam_ui_theme}