import{r as t,i,h as e,e as a}from"./p-5da71329.js";import{f as r}from"./p-b5e1aaf0.js";const n="@-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}";const s="@-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}";let o=false;const l=()=>document.getElementsByTagName("html")[0].getAttribute("data-icon-style")==="fill"?"fill":"line";let c=class{constructor(e){t(this,e);this.iconStyle=l();this.fetchIcons=async()=>{const t=await r().url(i(`./assets/remixicon.symbol.svg`)).options({credentials:"omit",mode:"cors"}).get().text();const e=document.createElement("div");e.innerHTML=t;document.body.append(e)}}componentWillLoad(){if(!o){o=true;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}${this.iconStyle!==undefined?"-"+this.iconStyle:""}`})))}static get assetsDirs(){return["assets"]}};c.style={default:n,material:s};export{c as stencila_icon};
//# sourceMappingURL=p-95541f9a.entry.js.map