/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import b from"./PU3CIOMW.js";import"./EH5576ZY.js";import"./7QZVR2UR.js";import"./ZNBKMZP7.js";import{O as n,Q as l,U as c,a,b as r}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";export default $arcgis.t(([p])=>{var h=a`:host{display:contents}.root{position:absolute}`,e=class extends n{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.trackLocation=!1,this.screenLocation=p(this)}static{this.properties={autoDestroyDisabled:5,trackLocation:5,screenLocation:32,label:1,location:0,view:0}}static{this.styles=h}async destroy(){await this.manager.destroy()}_getPositionStyles(){let{screenLocation:t,view:o}=this;if(o==null||t==null)return{};let{padding:i}=o,s=16;return{"--calcite-loader-size":`${s}px`,left:`${t.x-(i.left??0)-s/2}px`,top:`${t.y-(i.top??0)-s/2}px`}}render(){return this.screenLocation?r`<calcite-loader class="root" .label=${this.label??""} inline style=${l(this._getPositionStyles())}></calcite-loader>`:null}};c("arcgis-spinner",e);return e},b)