1/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified. 2See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details. 3v3.0.2 */ 4import{a as r}from"./77BUHP3U.js";import{a as m}from"./SMJSXUYT.js";import{b as c}from"./FC7N6LLB.js";import{s as d}from"./GO4QOK2G.js";import"./P7S34RN4.js";import{J as o,e as n,f as s,w as l,x as i}from"./63TOND25.js";var h={scrim:"scrim",content:"content"},p={s:72,l:480},g=n`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends l{constructor(){super(...arguments),this.resizeObserver=r("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=m()}static{this.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0}}static{this.styles=g}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=d(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<p.s?"s":e>=p.l?"l":"m"}handleResize(){let{loaderEl:e,el:t}=this;e&&(this.loaderScale=this.getScale(Math.min(t.clientHeight,t.clientWidth)??0))}render(){let{hasContent:e,loading:t,messages:f}=this;return s`<div class=${i(h.scrim)}>${t?s`<calcite-loader .label=${f.loading} .scale=${this.loaderScale} ${c(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${i(h.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};o("calcite-scrim",a);export{a as Scrim};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.