import{h,Host}from"@stencil/core";import loaderSvg from"../../assets/onto-loader.svg";export class OntoLoader{constructor(){this.size=100,this.messageText="",this.rawSvg=atob(loaderSvg.split(",")[1])}render(){return h(Host,{key:"5b05331f570eef1089c55de20f819570d8c4154a"},h("div",{key:"87d25191f23fb454c9830e2d3336e07d307833af",class:"onto-loader","guide-selector":"onto-loader"},h("div",{key:"f9d37b931b07a4d80c07da4817c7903a0ac86653",class:"loader-spinner",style:{width:this.size+"px",height:this.size+"px"},innerHTML:this.rawSvg}),this.messageText&&h("div",{key:"21bb912db49297312084fdfd766e6f14ce143287",class:"loader-message",style:{"font-size":this.size/4+"px"}},this.messageText)))}static get is(){return"onto-loader"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["onto-loader.scss"]}}static get styleUrls(){return{$:["onto-loader.css"]}}static get properties(){return{size:{type:"number",attribute:"size",mutable:!1,complexType:{original:"number",resolved:"number",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Size of the loader in pixels (width and height)."},getter:!1,setter:!1,reflect:!1,defaultValue:"100"},messageText:{type:"string",attribute:"message-text",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Optional message text to display below the loader."},getter:!1,setter:!1,reflect:!1,defaultValue:"''"}}}}