-
Notifications
You must be signed in to change notification settings - Fork 0
/
p-84b776a1.entry.js
5 lines (5 loc) · 3.29 KB
/
p-84b776a1.entry.js
1
2
3
4
5
/*!
* Built by BASIS
* Copyright BASIS International Ltd.
*/
import{r as t,f as e,h as a,H as i,g as s}from"./p-00e3df8e.js";import{S as o}from"./p-7ccdab1d.js";const r=class{constructor(e){t(this,e),this.message="",this.noBackdrop=!1,this.opened=!1,this.suppressSpinner=!1,this.suppressMessage=!1,this.spinnerClockwise=!0,this.spinnerExpanse=void 0,this.spinnerPaused=!1,this.spinnerTheme="default",this.spinnerSpeed=1e3}connectedCallback(){var t;null===(t=this.slotsObserver)||void 0===t||t.connect()}disconnectedCallback(){var t;null===(t=this.slotsObserver)||void 0===t||t.disconnect()}componentDidLoad(){this.configureSlotsObserver()}componentDidRender(){this.slotsObserver||(this.configureSlotsObserver(),e(this.el))}configureSlotsObserver(){this.slotsObserver||(this.slotsObserver=new o(this.el,"__main__"))}render(){var t,e;const s=(null===(t=this.message)||void 0===t?void 0:t.trim().length)>0||(null===(e=this.slotsObserver)||void 0===e?void 0:e.hasContent("__main__"));return a(i,{key:"494f3a71d39661b94bb456853163476946f0d641"},!this.noBackdrop&&a("dwc-backdrop",{key:"c69aef1b39a9182ee9c43b63c6c7e0b98489a3c8",part:"backdrop",visible:this.opened}),(!this.suppressMessage||!this.suppressSpinner)&&a("div",{key:"53ac9db033515899b20f198ff3471f2c2097b4e7",part:"control",role:"dialog","data-suppress-message":!s},!this.suppressSpinner&&a("slot",{key:"e1e247d65f0f2ec9a5058d5fe45b4f948b5de2ac",name:"spinner"},a("dwc-spinner",{key:"cbf2b08b38c0b063746b5c003110838c3970f678",part:"spinner",clockwise:this.spinnerClockwise,expanse:this.spinnerExpanse,paused:this.spinnerPaused,speed:this.spinnerSpeed,theme:this.spinnerTheme})),!this.suppressMessage&&a("focus-trap",{key:"ed80273a847ef99e1106ab2e4635e483a6a93ecf",part:"focus-trap"},a("slot",{key:"a7df6f3e1d90ec16db9b985af85f76d24f1c8dcd",innerHTML:this.message}))))}get el(){return s(this)}};r.style="@media (prefers-reduced-motion: reduce){*,::before,::after{animation-delay:-1ms !important;animation-duration:1ms !important;animation-iteration-count:1 !important;background-attachment:initial !important;scroll-behavior:auto !important;transition-delay:0s !important;transition-duration:0s !important}}:host{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative;-webkit-tap-highlight-color:transparent;text-size-adjust:100%}:host *,:host *::before,:host *::after{box-sizing:inherit}:host{align-items:center;contain:strict;display:none;inset:0;justify-content:center;position:fixed;touch-action:none;transform:translateZ(0);user-select:none;z-index:var(--dwc-backdrop-zindex, var(--dwc-zindex-h0))}:host([opened]){display:flex}[part=control]{align-items:inherit;animation:popup var(--dwc-transition) ease-out;background:var(--dwc-loading-background, var(--dwc-surface-3));border:var(--dwc-loading-border, var(--dwc-border-width) var(--dwc-border-style) var(--dwc-color-default));border-radius:var(--dwc-border-radius-l);box-shadow:var(--dwc-dialog-shadow, var(--dwc-shadow-xl));display:flex;gap:var(--dwc-space-s);justify-content:inherit;padding:var(--dwc-space-m);z-index:inherit}:host([opened][suppress-message]) [part=control],:host([opened]) [part=control][data-suppress-message]{gap:0}@keyframes popup{0%{opacity:0;transform:scale3d(0.8, 0.8, 1)}50%{opacity:1;transform:scale3d(1.05, 1.05, 1)}100%{transform:scale3d(1, 1, 1)}}";export{r as dwc_loading}