1import{K as o,O as s,P as i,R as c,T as d}from"./signal.CNCfU7Hw.js";import{e as m,n as h}from"./ref.D1KjxGgY.js";import{c as p}from"./observers.CL7pjy4z.js";import{c as u}from"./dom.CLWNH6N5.js";import{u as f}from"./useT9n.DgHKBKed.js";import"./directive-helpers.DS6Yk2X1.js";import"./guid.LcV_DAvu.js";import"./index.B3LrT0DQ.js";import"./proxyExports-CXEnG2Az.Ci2qtAtz.js";import"./index.DV2a7jmW.js";import"./index.Lhiybazs.js";const a={scrim:"scrim",content:"content"},n={s:72,l:480},g=c`: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}`;class b extends o{constructor(){super(...arguments),this.loaderRef=m(),this.resizeObserver=p("resize",()=>this.handleResize()),this.messages=f(),this.hasContent=!1,this.loading=!1}static{this.properties={hasContent:[16,{},{state:!0}],loaderScale:[16,{},{state:!0}],loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}]}}static{this.styles=g}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=u(e)}getScale(e){return e<n.s?"s":e>=n.l?"l":"m"}handleResize(){const{el:e}=this;this.loaderScale=this.getScale(Math.min(e.clientHeight,e.clientWidth)??0)}render(){const{hasContent:e,loading:l,loaderScale:t,messages:r}=this;return i`<div class=${s(a.scrim)}>${l&&t?i`<calcite-loader .label=${r.loading} .scale=${t} ${h(this.loaderRef)}></calcite-loader>`:null}<div class=${s(a.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}}d("calcite-scrim",b);export{b 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.