import{r as t,h as e,H as s}from"./p-7217ae02.js";import{m as n}from"./p-1e2665b1.js";const o=class{constructor(e){t(this,e),this.theme=null}async componentWillRender(){if(this.theme){const t="string"==typeof this.theme?JSON.parse(this.theme):this.theme,e=n(t),s=document.querySelectorAll("head style#corejam-user-style");if(e.length>0)if(s.length>0)s[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)}}}render(){return e(s,null)}};export{o as corejam_ui_theme}