import{r as t,e as i,h as e,H as a}from"./p-a881e3a2.js";import{f as r}from"./p-fc1add8d.js";let n=!1,o=class{constructor(e){t(this,e),this.iconStyle="fill"===document.getElementsByTagName("html")[0].getAttribute("data-icon-style")?"fill":"line",this.fetchIcons=async()=>{const t=await r().url(i("./assets/remixicon.symbol.svg")).options({credentials:"omit",mode:"cors"}).get().text(),e=document.createElement("div");e.innerHTML=t,document.body.append(e)}}componentWillLoad(){n||(n=!0,this.fetchIcons().catch((t=>{console.log("Failed to load icons",t)})))}render(){return e(a,{icon:this.icon,"aria-hidden":"true"},e("svg",null,e("use",{href:`#ri-${this.icon}${void 0!==this.iconStyle?"-"+this.iconStyle:""}`})))}static get assetsDirs(){return["assets"]}};o.style={default:"@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.sc-stencila-icon-default-h{--height:1.25em;--width:1.25em;color:currentColor;display:inline-block;line-height:1;vertical-align:middle}.sc-stencila-icon-default-h svg.sc-stencila-icon-default{fill:currentColor;display:block;height:auto;height:var(--height);max-height:100%;position:relative;width:100%;width:var(--width)}[icon^=loader].sc-stencila-icon-default-h svg.sc-stencila-icon-default{-webkit-animation:spin 3s linear infinite;animation:spin 3s linear infinite}",material:"@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.sc-stencila-icon-material-h{--height:1.25em;--width:1.25em;color:currentColor;display:inline-block;line-height:1;vertical-align:middle}.sc-stencila-icon-material-h svg.sc-stencila-icon-material{fill:currentColor;stroke-linecap:butt;display:block;height:auto;height:var(--height);max-height:100%;position:relative;width:100%;width:var(--width)}[icon^=loader].sc-stencila-icon-material-h svg.sc-stencila-icon-material{-webkit-animation:spin 3s linear infinite;animation:spin 3s linear infinite}"};export{o as stencila_icon}