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