import{r as t,c as s,h as i,H as o}from"./p-d55626d1.js";import"./p-9bfc48ee.js";import{r,h as n}from"./p-097729d8.js";const a=class{constructor(i){t(this,i),this.routeChange=s(this,"routeChange",7),this.style=[],this.color="--cj-color-primary",this.hoverColor="--cj-color-secondary",this.decoration="--cj-link-decoration",this.hoverDecoration="--cj-link-hover-decoration"}async componentWillLoad(){await this.computeStyles()}async computeStyles(){const t=await(await import("./p-a272a252.js").then((function(t){return t.s}))).calculateStyles(this);this.hash=t}renderLink(){if(r.router){const t=n(this.href,r.router),s=Object.assign(Object.assign({},t),{onClick:s=>{this.routeChange.emit({type:"routechange",newUrl:this.href}),"function"==typeof t.onClick&&t.onClick(s),window.scrollTo({top:0})}});return i("a",Object.assign({},s,{class:this.hash}),i("slot",null))}return i("a",{href:this.href,class:this.hash},i("slot",null))}render(){return i(o,{class:this.hash},this.renderLink())}},c=class{constructor(s){t(this,s),this.display="block",this.droppableElements=["corejam-box"]}async componentWillRender(){const t=await(await import("./p-a272a252.js").then((function(t){return t.s}))).calculateStyles(this);this.hash=t}render(){return i(o,{class:this.hash},i("slot",null))}};export{a as corejam_base_link,c as corejam_box}