/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
import b from"./ZN5DPJ47.js";import"./JCTU3MST.js";import"./BXKNMJRR.js";import"./IJQZON2Z.js";import{O as a,Q as c,U as l,a as r,b as n}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([p])=>{var h=r`:host{display:contents}.root{position:absolute}`,e=class extends a{constructor(){super(...arguments),this.trackLocation=!1,this.screenLocation=p(this)}static{this.properties={trackLocation:5,screenLocation:32,label:1,location:0,view:0}}static{this.styles=h}_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?n`<calcite-loader class="root" .label=${this.label??""} inline style=${c(this._getPositionStyles())}></calcite-loader>`:null}};l("arcgis-spinner",e);return e},b)