@openremote/or-dashboard-builder 1.34.0-snapshot.20261104153615 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/umd/index.bundle.js +1 -1
- package/build/dist/umd/index.js +1 -1
- package/build/dist/umd/index.orbundle.js +1087 -1087
- package/package.json +19 -19
|
@@ -141,7 +141,7 @@ var ORDashboardBuilder;(()=>{var e={8621(e){"use strict";var t,n="object"==typeo
|
|
|
141
141
|
`}
|
|
142
142
|
</div>
|
|
143
143
|
</div>
|
|
144
|
-
`}updated(e){super.updated(e),e.has("_open")&&this._open&&this.open()}onClose(e){this.buttonAction&&this.buttonAction(),this.dispatchChangedEvent({opened:!1,closeReason:e})}onOpen(){this.dispatchChangedEvent({opened:!0})}dispatchChangedEvent(e){this.dispatchEvent(new tD(e))}};tS([eK({type:String,attribute:!1})],tO.prototype,"text",void 0),tS([eK({type:String})],tO.prototype,"buttonText",void 0),tS([eK({type:Object,attribute:!1})],tO.prototype,"buttonAction",void 0),tS([eK({type:Number})],tO.prototype,"timeout",void 0),tS([eK({type:Boolean})],tO.prototype,"_open",void 0),tS([eQ("#mdc-snackbar")],tO.prototype,"_mdcElem",void 0),tO=tS([eX("or-mwc-snackbar")],tO);var tY=n(2727),tR=function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})};(ef=eM||(eM={}))[ef.DESKTOP=0]="DESKTOP",ef[ef.MOBILE=1]="MOBILE";class tP{static create(e){return tR(this,arguments,void 0,function*(e,t=eM.DESKTOP,n=e8().displayRealm,i=!0){var r;return(e?(e.id=void 0,e.template&&(e.template.id=e6.Util.generateUniqueUUID(),null==(r=e.template.widgets)||r.forEach(e=>e.id=e6.Util.generateUniqueUUID()))):e={realm:n,displayName:this.getDefaultDisplayName(t),template:{id:e6.Util.generateUniqueUUID(),columns:this.getDefaultColumns(t),maxScreenWidth:this.getDefaultMaxScreenWidth(t),refreshInterval:"OFF",screenPresets:this.getDefaultScreenPresets(t)}},i)?(yield e8().rest.api.DashboardResource.create(e)).data:e})}static delete(e){return tR(this,arguments,void 0,function*(e,t=e8().displayRealm){return(yield e8().rest.api.DashboardResource.delete(t,e)).data})}static getDefaultColumns(e){switch(e){case eM.MOBILE:return 4;case eM.DESKTOP:default:return 12}}static getDefaultDisplayName(e){switch(e){case eM.DESKTOP:return te.i18next.t("dashboard.initialName");case eM.MOBILE:return te.i18next.t("dashboard.initialName")+" ("+te.i18next.t("dashboard.size.mobile")+")"}}static getDefaultScreenPresets(e){return e===eM.MOBILE?[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"KEEP_LAYOUT"}]:[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"WRAP_TO_SINGLE_COLUMN"}]}static getDefaultMaxScreenWidth(e){switch(e){case eM.DESKTOP:return 4e3;case eM.MOBILE:return 640}}}var tN=n(9207);window.Vaadin||={},window.Vaadin.featureFlags||={};let tH={};function tz(e,t="25.3.4"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||tH[t]){if(tH[t])return void tH[t].add(e)}else{tH[t]=new Set,tH[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===tH[t].size,set(e){e&&tH[t].size>0&&(tH[t].forEach(e=>{customElements.define(e.is,e)}),tH[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let tj=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,t$=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tF(e,t){if("function"!=typeof e)return;let n=tj.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let tB=function(e,t){if(window.Vaadin.developmentMode)return tF(e,t)};function tW(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(t$)return!(t$&&Object.keys(t$).map(e=>t$[e]).filter(e=>e.productionMode).length>0);return!tF(function(){return!0})}catch(e){return!1}}());let tV=function(){if("function"==typeof tB)return tB(tW)},tU=0,tG=0,tX=[],tq=!1,tK={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},tJ={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},tZ={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},tQ={run(e){tq||(tq=!0,queueMicrotask(()=>(function(){tq=!1;let e=tX.length;for(let t=0;t<e;t++){let e=tX[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}tX.splice(0,e),tG+=e})())),tX.push(e);let t=tU;return tU+=1,t},cancel(e){let t=e-tG;if(t>=0){if(!tX[t])throw Error(`invalid async handle: ${e}`);tX[t]=null}}},t0=new Set;class t1{static debounce(e,t,n){return e instanceof t1?e._cancelAsync():e=new t1,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,t0.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),t0.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let t2=()=>{let e;do e=function(){let e=!!t0.size;return t0.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},t5=[];function t4(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function t3(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=t3();t5.forEach(t=>{t4(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let t7=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),t4(this,t3(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=t3(),r=n===i&&-1===t5.indexOf(this),a=!n&&t&&-1===t5.indexOf(this),o=n!==i&&t===i;r||a?(this.__subscribe(),t4(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=t5.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){t5.includes(this)||t5.push(this)}__unsubscribe(){t5.includes(this)&&t5.splice(t5.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tV()};let t6=new Set,t8=e=>class extends t7(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!t6.has(e)){window.Vaadin.registrations.push(this),t6.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=t1.debounce(t,tZ,()=>{i["vaadin-usage-statistics"]()}),t0.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},t9=new WeakMap;function ne(e){return t=>{if(function(e,t){let n=t;for(;n;){if(t9.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return t9.set(n,e),n}}function nt(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}let nn={},ni=/([A-Z])/gu;function nr(e){return nn[e]||(nn[e]=e.replace(ni,"-$1").toLowerCase()),nn[e]}function na(e){return e[0].toUpperCase()+e.substring(1)}function no(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function ns(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let nl=ne(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ns(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=no(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];L(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${na(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${na(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=no(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=nr(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ns(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=no(e);t.set(n,i)}_createPropertyObserver(e,t){ns(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${nr(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return nt(e,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function nd(e){return new Set(e?e.split(" ").filter(Boolean):[])}function nc(e){return e?[...e].join(" "):""}function nh(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function nu(e){return nd(Array.isArray(e)?e.join(" "):e)}function nm(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.add(e)),nh(e,t,nc(i))}function np(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.delete(e)),nh(e,t,nc(i))}class nf{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let n_=0;class ng extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${n_++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new nf(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class nb extends ng{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function nv(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class ny extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#o(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
144
|
+
`}updated(e){super.updated(e),e.has("_open")&&this._open&&this.open()}onClose(e){this.buttonAction&&this.buttonAction(),this.dispatchChangedEvent({opened:!1,closeReason:e})}onOpen(){this.dispatchChangedEvent({opened:!0})}dispatchChangedEvent(e){this.dispatchEvent(new tD(e))}};tS([eK({type:String,attribute:!1})],tO.prototype,"text",void 0),tS([eK({type:String})],tO.prototype,"buttonText",void 0),tS([eK({type:Object,attribute:!1})],tO.prototype,"buttonAction",void 0),tS([eK({type:Number})],tO.prototype,"timeout",void 0),tS([eK({type:Boolean})],tO.prototype,"_open",void 0),tS([eQ("#mdc-snackbar")],tO.prototype,"_mdcElem",void 0),tO=tS([eX("or-mwc-snackbar")],tO);var tY=n(2727),tR=function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})};(ef=eM||(eM={}))[ef.DESKTOP=0]="DESKTOP",ef[ef.MOBILE=1]="MOBILE";class tP{static create(e){return tR(this,arguments,void 0,function*(e,t=eM.DESKTOP,n=e8().displayRealm,i=!0){var r;return(e?(e.id=void 0,e.template&&(e.template.id=e6.Util.generateUniqueUUID(),null==(r=e.template.widgets)||r.forEach(e=>e.id=e6.Util.generateUniqueUUID()))):e={realm:n,displayName:this.getDefaultDisplayName(t),template:{id:e6.Util.generateUniqueUUID(),columns:this.getDefaultColumns(t),maxScreenWidth:this.getDefaultMaxScreenWidth(t),refreshInterval:"OFF",screenPresets:this.getDefaultScreenPresets(t)}},i)?(yield e8().rest.api.DashboardResource.create(e)).data:e})}static delete(e){return tR(this,arguments,void 0,function*(e,t=e8().displayRealm){return(yield e8().rest.api.DashboardResource.delete(t,e)).data})}static getDefaultColumns(e){switch(e){case eM.MOBILE:return 4;case eM.DESKTOP:default:return 12}}static getDefaultDisplayName(e){switch(e){case eM.DESKTOP:return te.i18next.t("dashboard.initialName");case eM.MOBILE:return te.i18next.t("dashboard.initialName")+" ("+te.i18next.t("dashboard.size.mobile")+")"}}static getDefaultScreenPresets(e){return e===eM.MOBILE?[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"KEEP_LAYOUT"}]:[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"WRAP_TO_SINGLE_COLUMN"}]}static getDefaultMaxScreenWidth(e){switch(e){case eM.DESKTOP:return 4e3;case eM.MOBILE:return 640}}}var tN=n(9207);window.Vaadin||={},window.Vaadin.featureFlags||={};let tH={};function tz(e,t="25.3.5"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||tH[t]){if(tH[t])return void tH[t].add(e)}else{tH[t]=new Set,tH[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===tH[t].size,set(e){e&&tH[t].size>0&&(tH[t].forEach(e=>{customElements.define(e.is,e)}),tH[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let tj=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,t$=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tF(e,t){if("function"!=typeof e)return;let n=tj.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let tB=function(e,t){if(window.Vaadin.developmentMode)return tF(e,t)};function tW(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(t$)return!(t$&&Object.keys(t$).map(e=>t$[e]).filter(e=>e.productionMode).length>0);return!tF(function(){return!0})}catch(e){return!1}}());let tV=function(){if("function"==typeof tB)return tB(tW)},tU=0,tG=0,tX=[],tq=!1,tK={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},tJ={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},tZ={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},tQ={run(e){tq||(tq=!0,queueMicrotask(()=>(function(){tq=!1;let e=tX.length;for(let t=0;t<e;t++){let e=tX[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}tX.splice(0,e),tG+=e})())),tX.push(e);let t=tU;return tU+=1,t},cancel(e){let t=e-tG;if(t>=0){if(!tX[t])throw Error(`invalid async handle: ${e}`);tX[t]=null}}},t0=new Set;class t1{static debounce(e,t,n){return e instanceof t1?e._cancelAsync():e=new t1,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,t0.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),t0.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let t2=()=>{let e;do e=function(){let e=!!t0.size;return t0.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},t5=[];function t4(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function t3(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=t3();t5.forEach(t=>{t4(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let t7=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),t4(this,t3(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=t3(),r=n===i&&-1===t5.indexOf(this),a=!n&&t&&-1===t5.indexOf(this),o=n!==i&&t===i;r||a?(this.__subscribe(),t4(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=t5.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){t5.includes(this)||t5.push(this)}__unsubscribe(){t5.includes(this)&&t5.splice(t5.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tV()};let t6=new Set,t8=e=>class extends t7(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!t6.has(e)){window.Vaadin.registrations.push(this),t6.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=t1.debounce(t,tZ,()=>{i["vaadin-usage-statistics"]()}),t0.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},t9=new WeakMap;function ne(e){return t=>{if(function(e,t){let n=t;for(;n;){if(t9.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return t9.set(n,e),n}}function nt(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}let nn={},ni=/([A-Z])/gu;function nr(e){return nn[e]||(nn[e]=e.replace(ni,"-$1").toLowerCase()),nn[e]}function na(e){return e[0].toUpperCase()+e.substring(1)}function no(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function ns(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let nl=ne(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ns(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=no(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];L(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${na(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${na(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=no(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=nr(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ns(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=no(e);t.set(n,i)}_createPropertyObserver(e,t){ns(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${nr(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return nt(e,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function nd(e){return new Set(e?e.split(" ").filter(Boolean):[])}function nc(e){return e?[...e].join(" "):""}function nh(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function nu(e){return nd(Array.isArray(e)?e.join(" "):e)}function nm(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.add(e)),nh(e,t,nc(i))}function np(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.delete(e)),nh(e,t,nc(i))}class nf{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let n_=0;class ng extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${n_++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new nf(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class nb extends ng{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function nv(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class ny extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#o(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
145
145
|
:root::before, :host::before {
|
|
146
146
|
content: '' !important;
|
|
147
147
|
position: absolute !important;
|
package/build/dist/umd/index.js
CHANGED
|
@@ -141,7 +141,7 @@ var ORDashboardBuilder;(()=>{var e={8621(e){"use strict";var t,n="object"==typeo
|
|
|
141
141
|
`}
|
|
142
142
|
</div>
|
|
143
143
|
</div>
|
|
144
|
-
`}updated(e){super.updated(e),e.has("_open")&&this._open&&this.open()}onClose(e){this.buttonAction&&this.buttonAction(),this.dispatchChangedEvent({opened:!1,closeReason:e})}onOpen(){this.dispatchChangedEvent({opened:!0})}dispatchChangedEvent(e){this.dispatchEvent(new tD(e))}};tS([eK({type:String,attribute:!1})],tO.prototype,"text",void 0),tS([eK({type:String})],tO.prototype,"buttonText",void 0),tS([eK({type:Object,attribute:!1})],tO.prototype,"buttonAction",void 0),tS([eK({type:Number})],tO.prototype,"timeout",void 0),tS([eK({type:Boolean})],tO.prototype,"_open",void 0),tS([eQ("#mdc-snackbar")],tO.prototype,"_mdcElem",void 0),tO=tS([eX("or-mwc-snackbar")],tO);var tY=n(2727),tR=function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})};(ef=eM||(eM={}))[ef.DESKTOP=0]="DESKTOP",ef[ef.MOBILE=1]="MOBILE";class tP{static create(e){return tR(this,arguments,void 0,function*(e,t=eM.DESKTOP,n=e8().displayRealm,i=!0){var r;return(e?(e.id=void 0,e.template&&(e.template.id=e6.Util.generateUniqueUUID(),null==(r=e.template.widgets)||r.forEach(e=>e.id=e6.Util.generateUniqueUUID()))):e={realm:n,displayName:this.getDefaultDisplayName(t),template:{id:e6.Util.generateUniqueUUID(),columns:this.getDefaultColumns(t),maxScreenWidth:this.getDefaultMaxScreenWidth(t),refreshInterval:"OFF",screenPresets:this.getDefaultScreenPresets(t)}},i)?(yield e8().rest.api.DashboardResource.create(e)).data:e})}static delete(e){return tR(this,arguments,void 0,function*(e,t=e8().displayRealm){return(yield e8().rest.api.DashboardResource.delete(t,e)).data})}static getDefaultColumns(e){switch(e){case eM.MOBILE:return 4;case eM.DESKTOP:default:return 12}}static getDefaultDisplayName(e){switch(e){case eM.DESKTOP:return te.i18next.t("dashboard.initialName");case eM.MOBILE:return te.i18next.t("dashboard.initialName")+" ("+te.i18next.t("dashboard.size.mobile")+")"}}static getDefaultScreenPresets(e){return e===eM.MOBILE?[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"KEEP_LAYOUT"}]:[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"WRAP_TO_SINGLE_COLUMN"}]}static getDefaultMaxScreenWidth(e){switch(e){case eM.DESKTOP:return 4e3;case eM.MOBILE:return 640}}}var tN=n(9207);window.Vaadin||={},window.Vaadin.featureFlags||={};let tH={};function tz(e,t="25.3.4"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||tH[t]){if(tH[t])return void tH[t].add(e)}else{tH[t]=new Set,tH[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===tH[t].size,set(e){e&&tH[t].size>0&&(tH[t].forEach(e=>{customElements.define(e.is,e)}),tH[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let tj=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,t$=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tF(e,t){if("function"!=typeof e)return;let n=tj.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let tB=function(e,t){if(window.Vaadin.developmentMode)return tF(e,t)};function tW(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(t$)return!(t$&&Object.keys(t$).map(e=>t$[e]).filter(e=>e.productionMode).length>0);return!tF(function(){return!0})}catch(e){return!1}}());let tV=function(){if("function"==typeof tB)return tB(tW)},tU=0,tG=0,tX=[],tq=!1,tK={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},tJ={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},tZ={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},tQ={run(e){tq||(tq=!0,queueMicrotask(()=>(function(){tq=!1;let e=tX.length;for(let t=0;t<e;t++){let e=tX[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}tX.splice(0,e),tG+=e})())),tX.push(e);let t=tU;return tU+=1,t},cancel(e){let t=e-tG;if(t>=0){if(!tX[t])throw Error(`invalid async handle: ${e}`);tX[t]=null}}},t0=new Set;class t1{static debounce(e,t,n){return e instanceof t1?e._cancelAsync():e=new t1,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,t0.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),t0.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let t2=()=>{let e;do e=function(){let e=!!t0.size;return t0.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},t5=[];function t4(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function t3(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=t3();t5.forEach(t=>{t4(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let t7=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),t4(this,t3(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=t3(),r=n===i&&-1===t5.indexOf(this),a=!n&&t&&-1===t5.indexOf(this),o=n!==i&&t===i;r||a?(this.__subscribe(),t4(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=t5.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){t5.includes(this)||t5.push(this)}__unsubscribe(){t5.includes(this)&&t5.splice(t5.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tV()};let t6=new Set,t8=e=>class extends t7(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!t6.has(e)){window.Vaadin.registrations.push(this),t6.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=t1.debounce(t,tZ,()=>{i["vaadin-usage-statistics"]()}),t0.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},t9=new WeakMap;function ne(e){return t=>{if(function(e,t){let n=t;for(;n;){if(t9.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return t9.set(n,e),n}}function nt(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}let nn={},ni=/([A-Z])/gu;function nr(e){return nn[e]||(nn[e]=e.replace(ni,"-$1").toLowerCase()),nn[e]}function na(e){return e[0].toUpperCase()+e.substring(1)}function no(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function ns(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let nl=ne(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ns(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=no(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];L(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${na(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${na(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=no(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=nr(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ns(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=no(e);t.set(n,i)}_createPropertyObserver(e,t){ns(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${nr(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return nt(e,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function nd(e){return new Set(e?e.split(" ").filter(Boolean):[])}function nc(e){return e?[...e].join(" "):""}function nh(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function nu(e){return nd(Array.isArray(e)?e.join(" "):e)}function nm(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.add(e)),nh(e,t,nc(i))}function np(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.delete(e)),nh(e,t,nc(i))}class nf{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let n_=0;class ng extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${n_++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new nf(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class nb extends ng{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function nv(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class ny extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#o(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
144
|
+
`}updated(e){super.updated(e),e.has("_open")&&this._open&&this.open()}onClose(e){this.buttonAction&&this.buttonAction(),this.dispatchChangedEvent({opened:!1,closeReason:e})}onOpen(){this.dispatchChangedEvent({opened:!0})}dispatchChangedEvent(e){this.dispatchEvent(new tD(e))}};tS([eK({type:String,attribute:!1})],tO.prototype,"text",void 0),tS([eK({type:String})],tO.prototype,"buttonText",void 0),tS([eK({type:Object,attribute:!1})],tO.prototype,"buttonAction",void 0),tS([eK({type:Number})],tO.prototype,"timeout",void 0),tS([eK({type:Boolean})],tO.prototype,"_open",void 0),tS([eQ("#mdc-snackbar")],tO.prototype,"_mdcElem",void 0),tO=tS([eX("or-mwc-snackbar")],tO);var tY=n(2727),tR=function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})};(ef=eM||(eM={}))[ef.DESKTOP=0]="DESKTOP",ef[ef.MOBILE=1]="MOBILE";class tP{static create(e){return tR(this,arguments,void 0,function*(e,t=eM.DESKTOP,n=e8().displayRealm,i=!0){var r;return(e?(e.id=void 0,e.template&&(e.template.id=e6.Util.generateUniqueUUID(),null==(r=e.template.widgets)||r.forEach(e=>e.id=e6.Util.generateUniqueUUID()))):e={realm:n,displayName:this.getDefaultDisplayName(t),template:{id:e6.Util.generateUniqueUUID(),columns:this.getDefaultColumns(t),maxScreenWidth:this.getDefaultMaxScreenWidth(t),refreshInterval:"OFF",screenPresets:this.getDefaultScreenPresets(t)}},i)?(yield e8().rest.api.DashboardResource.create(e)).data:e})}static delete(e){return tR(this,arguments,void 0,function*(e,t=e8().displayRealm){return(yield e8().rest.api.DashboardResource.delete(t,e)).data})}static getDefaultColumns(e){switch(e){case eM.MOBILE:return 4;case eM.DESKTOP:default:return 12}}static getDefaultDisplayName(e){switch(e){case eM.DESKTOP:return te.i18next.t("dashboard.initialName");case eM.MOBILE:return te.i18next.t("dashboard.initialName")+" ("+te.i18next.t("dashboard.size.mobile")+")"}}static getDefaultScreenPresets(e){return e===eM.MOBILE?[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"KEEP_LAYOUT"}]:[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"WRAP_TO_SINGLE_COLUMN"}]}static getDefaultMaxScreenWidth(e){switch(e){case eM.DESKTOP:return 4e3;case eM.MOBILE:return 640}}}var tN=n(9207);window.Vaadin||={},window.Vaadin.featureFlags||={};let tH={};function tz(e,t="25.3.5"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||tH[t]){if(tH[t])return void tH[t].add(e)}else{tH[t]=new Set,tH[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===tH[t].size,set(e){e&&tH[t].size>0&&(tH[t].forEach(e=>{customElements.define(e.is,e)}),tH[t].clear())}});return}}let n=customElements.get(e.is);if(n){let t=n.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let tj=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,t$=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tF(e,t){if("function"!=typeof e)return;let n=tj.exec(e.toString());if(n)try{e=Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}window.Vaadin=window.Vaadin||{};let tB=function(e,t){if(window.Vaadin.developmentMode)return tF(e,t)};function tW(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(t$)return!(t$&&Object.keys(t$).map(e=>t$[e]).filter(e=>e.productionMode).length>0);return!tF(function(){return!0})}catch(e){return!1}}());let tV=function(){if("function"==typeof tB)return tB(tW)},tU=0,tG=0,tX=[],tq=!1,tK={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},tJ={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},tZ={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},tQ={run(e){tq||(tq=!0,queueMicrotask(()=>(function(){tq=!1;let e=tX.length;for(let t=0;t<e;t++){let e=tX[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}tX.splice(0,e),tG+=e})())),tX.push(e);let t=tU;return tU+=1,t},cancel(e){let t=e-tG;if(t>=0){if(!tX[t])throw Error(`invalid async handle: ${e}`);tX[t]=null}}},t0=new Set;class t1{static debounce(e,t,n){return e instanceof t1?e._cancelAsync():e=new t1,e.setConfig(t,n),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,t0.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),t0.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let t2=()=>{let e;do e=function(){let e=!!t0.size;return t0.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e}();while(e)},t5=[];function t4(e,t,n=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function t3(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=t3();t5.forEach(t=>{t4(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let t7=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),t4(this,t3(),null))}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),"dir"!==e)return;let i=t3(),r=n===i&&-1===t5.indexOf(this),a=!n&&t&&-1===t5.indexOf(this),o=n!==i&&t===i;r||a?(this.__subscribe(),t4(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=t5.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,n)}_attributeToProperty(e,t,n){"dir"!==e||t?super._attributeToProperty(e,t,n):this.dir=""}__subscribe(){t5.includes(this)||t5.push(this)}__unsubscribe(){t5.includes(this)&&t5.splice(t5.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tV()};let t6=new Set,t8=e=>class extends t7(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!t6.has(e)){window.Vaadin.registrations.push(this),t6.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=t1.debounce(t,tZ,()=>{i["vaadin-usage-statistics"]()}),t0.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},t9=new WeakMap;function ne(e){return t=>{if(function(e,t){let n=t;for(;n;){if(t9.get(n)===e)return!0;n=Object.getPrototypeOf(n)}return!1}(e,t))return t;let n=e(t);return t9.set(n,e),n}}function nt(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}let nn={},ni=/([A-Z])/gu;function nr(e){return nn[e]||(nn[e]=e.replace(ni,"-$1").toLowerCase()),nn[e]}function na(e){return e[0].toUpperCase()+e.substring(1)}function no(e){let[t,n]=e.split("(");return{method:t,observerProps:n.replace(")","").split(",").map(e=>e.trim())}}function ns(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let nl=ne(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ns(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:n,observerProps:i}=no(t);e.set(n,i)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,n){let i=super.getPropertyDescriptor(e,t,n),r=i;if(this.getOrCreateMap("__propKeys").set(e,t),n.sync&&(r={get:i.get,set(i){let r=this[e];L(i,r)&&(this[t]=i,this.requestUpdate(e,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let t=r.set;this.addCheckedInitializer(n=>{n[`_set${na(e)}`]=function(e){t.call(n,e)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(t=>{let i="function"==typeof n.value?n.value.call(t):n.value;n.readOnly?t[`_set${na(e)}`](i):t[e]=i}),n.observer){let t=n.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(n.computed){let t=`__assignComputed${e}`,i=no(n.computed);this.prototype[t]=function(...t){this[e]=this[i.method](...t)},this.getOrCreateMap("__computedObservers").set(t,i.observerProps)}return n.attribute||(n.attribute=nr(e)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let n=this.constructor.__propKeys.get(e),i=this[n];this[n]=t,this.requestUpdate(e,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ns(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=no(e);t.set(n,i)}_createPropertyObserver(e,t){ns(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,n)=>{t.some(t=>e.has(t))&&(this[n]?this[n](...t.map(e=>this[e])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,n)=>{e.has(t)&&this[n]&&this[n](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,n)=>{let i=t.get(n);void 0!==i&&this[i]&&this[i](this[n],e)})}__runNotifyProps(e,t){e.forEach((e,n)=>{t.has(n)&&this.dispatchEvent(new CustomEvent(`${nr(n)}-changed`,{detail:{value:this[n]}}))})}_get(e,t){return nt(e,t)}_set(e,t,n){let i,r;r=(i=e.split(".")).pop(),i.reduce((e,t)=>e[t],n)[r]=t}});function nd(e){return new Set(e?e.split(" ").filter(Boolean):[])}function nc(e){return e?[...e].join(" "):""}function nh(e,t,n){n?e.setAttribute(t,n):e.removeAttribute(t)}function nu(e){return nd(Array.isArray(e)?e.join(" "):e)}function nm(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.add(e)),nh(e,t,nc(i))}function np(e,t,n){n=nu(n);let i=nd(e.getAttribute(t));n.forEach(e=>i.delete(e)),nh(e,t,nc(i))}class nf{constructor(e,t,n={}){this.target=e,this.callback=t,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=e instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(e=>e.assignedNodes({flatten:!0})))]}_groupNodesBySlot(e){let t=new Map;return e.forEach(e=>{let n=e.assignedSlot;t.set(n,t.get(n)??[]),t.get(n).push(e)}),t}_collectMovedNodes(e){let t=this._groupNodesBySlot(e),n=this._groupNodesBySlot(this._storedNodes),i=[];return t.forEach((e,t)=>{let r=n.get(t)||[];new Set(r).difference(new Set(e)).size>0||r.forEach((t,n)=>{e.indexOf(t)!==n&&i.push(t)})}),i}_processNodes(){let e=this._collectNodes(),t=e.filter(e=>!this._storedNodes.includes(e)),n=this._storedNodes.filter(t=>!e.includes(t)),i=this._collectMovedNodes(e);(t.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=e}}let n_=0;class ng extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${n_++}`}constructor(e,t,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=e,this.slotName=t,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(e,l||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){let e=this.getSlotChildren();if(0===e.length){let e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=e,e.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){let{host:e,slotName:t,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==t&&i.setAttribute("slot",t),this.defaultNode=i),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){let{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore"))&&(t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&""===e))}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){let{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){let{slotName:e}=this,t=""===e?"slot:not([name])":`slot[name=${e}]`;new nf(this.host.shadowRoot.querySelector(t),({addedNodes:e,removedNodes:t})=>{let n=this.multiple?this.nodes:[this.node],i=e.filter(e=>(e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim())&&!n.includes(e)&&!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore")));t.length&&(this.multiple?this.nodes=n.filter(e=>!t.includes(e)):t.includes(this.node)&&(this.node=null),t.forEach(e=>{this.teardownNode(e)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(e=>e!==this.defaultNode),i.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class nb extends ng{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.#e(e),e.addEventListener("content-changed",this.#t)}teardownNode(e){this.manual||this.host.removeAttribute("has-tooltip"),e.removeEventListener("content-changed",this.#t),this.#e(null)}setAriaTarget(e){this.ariaTarget=e;let t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;let t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;let t=this.node;t&&(t.manual=e)}setPosition(e){this.position=e;let t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;let t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;let t=this.node;t&&(t.target=e)}open(e){let t=this.node;t?.isConnected&&t._stateController.open(e)}close(e){let t=this.node;t&&t._stateController.close(e)}#t=e=>{this.#e(e.target)};#e(e){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:e}}))}}function nv(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class ny extends EventTarget{#n;#i=new Set;#r;#a=!1;constructor(e){super(),this.#n=e,this.#r=new CSSStyleSheet}#o(e){let{propertyName:t}=e;this.#i.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#i.has(e)||(this.#i.add(e),this.#r.replaceSync(`
|
|
145
145
|
:root::before, :host::before {
|
|
146
146
|
content: '' !important;
|
|
147
147
|
position: absolute !important;
|