@everymatrix/general-registration-multistep 1.87.26 → 1.87.28
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-9ed15dae.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
4
4
|
const TRANSLATIONS$1 = {
|
|
@@ -401,7 +401,7 @@ const CheckboxGroupInput = class {
|
|
|
401
401
|
}
|
|
402
402
|
renderTooltip() {
|
|
403
403
|
if (this.showTooltip) {
|
|
404
|
-
return (h
|
|
404
|
+
return (h("div", { class: `checkboxgroup__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
405
405
|
}
|
|
406
406
|
return null;
|
|
407
407
|
}
|
|
@@ -413,13 +413,13 @@ const CheckboxGroupInput = class {
|
|
|
413
413
|
: [];
|
|
414
414
|
}
|
|
415
415
|
renderLabel() {
|
|
416
|
-
return (h
|
|
416
|
+
return (h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input`, slot: 'label' }, h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
417
417
|
}
|
|
418
418
|
render() {
|
|
419
|
-
return h
|
|
420
|
-
h
|
|
419
|
+
return h("div", { key: '9985f4050655bc2233090f63abb0e22f2fe0b556', class: `checkboxgroup__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '9922e45ae7ee74b137ffc8552b3d714b7e3b1f59', class: 'checkboxgroup__wrapper--flex' }, h("vaadin-checkbox", { key: 'f18bae7c3ee6df76edcde75924eb1ad51a227443', class: 'checkbox__input', checked: this.selectedValues.length === this.options.length || this.defaultValue === 'true', indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (e) => this.handleParentCheckbox(e) }, this.renderLabel()), this.tooltip &&
|
|
420
|
+
h("img", { key: '3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b', class: 'checkboxgroup__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h("small", { key: 'd55f25f75aa20007ff58cf45b6632517f49b6c00', class: 'checkboxgroup__error-message' }, this.errorMessage), this.showCheckboxes && (h("vaadin-checkbox-group", { key: '210c3cc2868a07a403494e04336c4f3091eea0e4', theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
|
|
421
421
|
this.selectedValues = event.detail.value;
|
|
422
|
-
} }, this.options.map((checkbox) => h
|
|
422
|
+
} }, this.options.map((checkbox) => h("vaadin-checkbox", { class: 'checkbox__input', name: checkbox.name, value: checkbox.name, label: checkbox.displayName })))));
|
|
423
423
|
}
|
|
424
424
|
get element() { return getElement(this); }
|
|
425
425
|
static get watchers() { return {
|
|
@@ -518,19 +518,19 @@ const CheckboxInput = class {
|
|
|
518
518
|
}
|
|
519
519
|
renderLabel() {
|
|
520
520
|
var _a;
|
|
521
|
-
return (h
|
|
521
|
+
return (h("label", { class: "checkbox__label", htmlFor: `${this.name}__input`, slot: "label" }, h("div", { class: {
|
|
522
522
|
'checkbox__label-text': true,
|
|
523
523
|
'mandatory': (_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory,
|
|
524
524
|
}, innerHTML: this.displayName })));
|
|
525
525
|
}
|
|
526
526
|
renderTooltip() {
|
|
527
527
|
if (this.showTooltip) {
|
|
528
|
-
return (h
|
|
528
|
+
return (h("div", { class: `checkbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => (this.tooltipReference = el), innerHTML: this.tooltip }));
|
|
529
529
|
}
|
|
530
530
|
return null;
|
|
531
531
|
}
|
|
532
532
|
render() {
|
|
533
|
-
return (h
|
|
533
|
+
return (h("div", { key: '80ed581cec5bb009ea5ea009f11c6453fe24ef7b', class: `checkbox__wrapper ${this.name}__input`, ref: (el) => (this.stylingContainer = el) }, h("vaadin-checkbox", { key: '42d793f607af77435f629218f9bdac7736522bc3', class: "checkbox__input", required: this.validation.mandatory, checked: this.defaultValue === 'true', onChange: (e) => this.handleCheckbox(e), "error-message": !this.isValid && this.errorMessage, ref: (el) => (this.vaadinCheckbox = el) }, this.renderLabel()), this.tooltip && (h("img", { key: 'ce3870810ede8f3905fd8c07c0892ab0d909bab5', class: "checkboxgroup__tooltip-icon", src: tooltipIconSvg, alt: "", ref: (el) => (this.tooltipIconReference = el), onClick: () => (this.showTooltip = !this.showTooltip) })), this.renderTooltip()));
|
|
534
534
|
}
|
|
535
535
|
static get watchers() { return {
|
|
536
536
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -6094,7 +6094,7 @@ const DateInput = class {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
renderTooltip() {
|
|
6096
6096
|
if (this.showTooltip) {
|
|
6097
|
-
return (h
|
|
6097
|
+
return (h("div", { class: `date__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
6098
6098
|
}
|
|
6099
6099
|
return null;
|
|
6100
6100
|
}
|
|
@@ -6103,8 +6103,8 @@ const DateInput = class {
|
|
|
6103
6103
|
if (this.touched) {
|
|
6104
6104
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
6105
6105
|
}
|
|
6106
|
-
return h
|
|
6107
|
-
h
|
|
6106
|
+
return h("div", { key: '9399c1be2edcbe3ed5c0e133cad52b1917e77e96', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("label", { key: '1094491a5fc441c4f704441d376ed965d6946637', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, h("span", { key: '14dd041cce018e22d82919f46eabc88f83e639e8', class: this.validation.mandatory ? 'date__label--required' : '' })), h("vaadin-date-picker", { key: 'eb720200d8d2b07ab00bca70c8e4a25dfc5cd08f', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e) }), h("small", { key: 'eedeea67c67bdc92ae1bb3e79cab745384bb0db7', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
|
|
6107
|
+
h("img", { key: '2b9cbbb972e4d07124a3d548eb932a26a44f75f3', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
6108
6108
|
}
|
|
6109
6109
|
get element() { return getElement(this); }
|
|
6110
6110
|
static get watchers() { return {
|
|
@@ -6247,7 +6247,7 @@ const EmailInput = class {
|
|
|
6247
6247
|
}
|
|
6248
6248
|
renderTooltip() {
|
|
6249
6249
|
if (this.showTooltip) {
|
|
6250
|
-
return (h
|
|
6250
|
+
return (h("div", { class: `email__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
6251
6251
|
}
|
|
6252
6252
|
return null;
|
|
6253
6253
|
}
|
|
@@ -6256,8 +6256,8 @@ const EmailInput = class {
|
|
|
6256
6256
|
if (this.touched) {
|
|
6257
6257
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
6258
6258
|
}
|
|
6259
|
-
return h
|
|
6260
|
-
h
|
|
6259
|
+
return h("div", { key: '723df8f3a6e8c57fe19082400971daf50f5c981d', class: `email__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '581d6e02b63d1c659ae44424518f64db450d5365', class: 'email__wrapper--flex' }, h("label", { key: '11e6a848f6f04903989b3ab2075865f6e279c087', class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: '73e11520cffbddda1a2aeb4b560e7f4cf456e2fb', class: 'email__wrapper--relative' }, this.tooltip &&
|
|
6260
|
+
h("img", { key: 'e8571ce14b9b98311daf1712ebde7d6da9b5a6a6', class: 'email__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("input", { key: 'dd05ef0b4d906598c6d5775a78ccbdc9ea81cb8c', id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), h("small", { key: '0d2d41207f8274d8c6f69143131265ef5b458689', class: 'email__error-message' }, this.errorMessage));
|
|
6261
6261
|
}
|
|
6262
6262
|
static get watchers() { return {
|
|
6263
6263
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -6267,51 +6267,51 @@ const EmailInput = class {
|
|
|
6267
6267
|
};
|
|
6268
6268
|
EmailInput.style = EmailInputStyle0;
|
|
6269
6269
|
|
|
6270
|
-
var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Gr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Mt$1=(s,t,e)=>t in s?qr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Gr.call(t,e)&&Mt$1(s,e,t[e]);if(lo)for(var e of lo(t))Xr.call(t,e)&&Mt$1(s,e,t[e]);return s},Nt$1=(s,t)=>Yr(s,Kr(t));var k$1=(s,t,e)=>(Mt$1(s,typeof t!="symbol"?t+"":t,e),e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
|
|
6270
|
+
var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var lo$1=Object.getOwnPropertySymbols;var Gr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Mt$1=(s,t,e)=>t in s?qr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we$1=(s,t)=>{for(var e in t||(t={}))Gr.call(t,e)&&Mt$1(s,e,t[e]);if(lo$1)for(var e of lo$1(t))Xr.call(t,e)&&Mt$1(s,e,t[e]);return s},Nt$1=(s,t)=>Yr(s,Kr(t));var k$1=(s,t,e)=>(Mt$1(s,typeof t!="symbol"?t+"":t,e),e);var Ce$1=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
|
|
6271
6271
|
* @license
|
|
6272
6272
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
6273
6273
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6274
|
-
*/function v
|
|
6274
|
+
*/function v(s,t="24.5.10"){Object.defineProperty(s,"version",{get(){return t}});const e=customElements.get(s.is);if(!e)customElements.define(s.is,s);else {const i=e.version;i&&s.version&&i===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${e.version} is already in use. Something will probably break.`);}}/**
|
|
6275
6275
|
* @license
|
|
6276
6276
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6277
6277
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6278
|
-
*/class Jr extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}v
|
|
6278
|
+
*/class Jr extends HTMLElement{static get is(){return "vaadin-lumo-styles"}}v(Jr);/**
|
|
6279
6279
|
* @license
|
|
6280
6280
|
* Copyright 2019 Google LLC
|
|
6281
6281
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6282
|
-
*/const lt$1=globalThis,Ei=lt$1.ShadowRoot&&(lt$1.ShadyCSS===void 0||lt$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai=Symbol(),co=new WeakMap;let ki=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ai)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const e=this.t;if(Ei&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=co.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&co.set(e,t));}return t}toString(){return this.cssText}};const Qr=s=>new ki(typeof s=="string"?s:s+"",void 0,Ai),p
|
|
6282
|
+
*/const lt$1=globalThis,Ei$1=lt$1.ShadowRoot&&(lt$1.ShadyCSS===void 0||lt$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai$1=Symbol(),co$1=new WeakMap;let ki$1=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ai$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const e=this.t;if(Ei$1&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=co$1.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&co$1.set(e,t));}return t}toString(){return this.cssText}};const Qr=s=>new ki$1(typeof s=="string"?s:s+"",void 0,Ai$1),p=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new ki$1(e,s,Ai$1)},as=(s,t)=>{if(Ei$1)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=lt$1.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i);}},ho$1=Ei$1?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Qr(e)})(s):s;/**
|
|
6283
6283
|
* @license
|
|
6284
6284
|
* Copyright 2017 Google LLC
|
|
6285
6285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6286
|
-
*/const{is:Zr,defineProperty:en,getOwnPropertyDescriptor:tn,getOwnPropertyNames:on,getOwnPropertySymbols:sn,getPrototypeOf:rn}=Object,q
|
|
6286
|
+
*/const{is:Zr,defineProperty:en,getOwnPropertyDescriptor:tn,getOwnPropertyNames:on,getOwnPropertySymbols:sn$1,getPrototypeOf:rn}=Object,q=globalThis,uo$1=q.trustedTypes,nn=uo$1?uo$1.emptyScript:"",Lt$1=q.reactiveElementPolyfillSupport,Oe=(s,t)=>s,ei$1={toAttribute(s,t){switch(t){case Boolean:s=s?nn:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s);}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s);}catch(i){e=null;}}return e}},ls=(s,t)=>!Zr(s,t),po$1={attribute:!0,type:String,converter:ei$1,reflect:!1,useDefault:!1,hasChanged:ls};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(q.litPropertyMetadata)!=null||(q.litPropertyMetadata=new WeakMap);let de$1=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=po$1){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&en(this.prototype,t,o);}}static getPropertyDescriptor(t,e,i){var n;const{get:o,set:r}=(n=tn(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get:o,set(a){const l=o==null?void 0:o.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return (e=this.elementProperties.get(t))!=null?e:po$1}static _$Ei(){if(this.hasOwnProperty(Oe("elementProperties")))return;const t=rn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(Oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Oe("properties"))){const e=this.properties,i=[...on(e),...sn$1(e)];for(const o of i)this.createProperty(o,e[o]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(ho$1(o));}else t!==void 0&&e.push(ho$1(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this));}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t));}removeController(t){var e;(e=this._$EO)==null||e.delete(t);}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return as(t,this.constructor.elementStyles),t}connectedCallback(){var e;(this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostConnected)==null?void 0:o.call(i)});}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return (i=e.hostDisconnected)==null?void 0:i.call(e)});}attributeChangedCallback(t,e,i){this._$AK(t,i);}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:ei$1).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null;}}_$AK(t,e){var r,n,a;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const l=i.getPropertyOptions(o),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:ei$1;this._$Em=o;const c=d.fromAttribute(e,l.type);this[o]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(o))!=null?a:c,this._$Em=null;}}requestUpdate(t,e,i,o=!1,r){var n,a;if(t!==void 0){const l=this.constructor;if(o===!1&&(r=this[t]),i!=null||(i=l.getPropertyOptions(t)),!(((n=i.hasChanged)!=null?n:ls)(r,e)||i.useDefault&&i.reflect&&r===((a=this._$Ej)==null?void 0:a.get(t))&&!this.hasAttribute(l._$Eu(t,i))))return;this.C(t,e,i);}this.isUpdatePending===!1&&(this._$ES=this._$EP());}C(t,e,{useDefault:i,reflect:o,wrapped:r},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t));}_$EP(){return Ce$1(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES;}catch(e){Promise.reject(e);}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0;}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d);}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(r=>{var n;return (n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM();}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM();}updated(t){}firstUpdated(t){}};var os;de$1.elementStyles=[],de$1.shadowRootOptions={mode:"open"},de$1[Oe("elementProperties")]=new Map,de$1[Oe("finalized")]=new Map,Lt$1==null||Lt$1({ReactiveElement:de$1}),((os=q.reactiveElementVersions)!=null?os:q.reactiveElementVersions=[]).push("2.1.2");/**
|
|
6287
6287
|
* @license
|
|
6288
6288
|
* Copyright 2017 Google LLC
|
|
6289
6289
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6290
|
-
*/const ze=globalThis,mo=s=>s,ht$1=ze.trustedTypes,fo=ht$1?ht$1.createPolicy("lit-html",{createHTML:s=>s}):void 0,ds="$lit$",W$1=`lit$${Math.random().toFixed(9).slice(2)}$`,cs="?"+W$1,an=`<${cs}>`,oe=document,Ne=()=>oe.createComment(""),Le=s=>s===null||typeof s!="object"&&typeof s!="function",Ii=Array.isArray,ln=s=>Ii(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Bt$1=`[
|
|
6291
|
-
\f\r]`,Ee=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_o=/-->/g,vo=/>/g,Q
|
|
6292
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),go=/'/g,bo=/"/g,hs=/^(?:script|style|textarea|title)$/i,fe=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),yo=new WeakMap,Z$1=oe.createTreeWalker(oe,129);function us(s,t){if(!Ii(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return fo!==void 0?fo.createHTML(t):t}const dn=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=Ee;for(let a=0;a<e;a++){const l=s[a];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===Ee?c[1]==="!--"?n=_o:c[1]!==void 0?n=vo:c[2]!==void 0?(hs.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=Q
|
|
6290
|
+
*/const ze=globalThis,mo$1=s=>s,ht$1=ze.trustedTypes,fo$1=ht$1?ht$1.createPolicy("lit-html",{createHTML:s=>s}):void 0,ds="$lit$",W$1=`lit$${Math.random().toFixed(9).slice(2)}$`,cs="?"+W$1,an$1=`<${cs}>`,oe$1=document,Ne$1=()=>oe$1.createComment(""),Le$1=s=>s===null||typeof s!="object"&&typeof s!="function",Ii$1=Array.isArray,ln$1=s=>Ii$1(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Bt$1=`[
|
|
6291
|
+
\f\r]`,Ee$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_o$1=/-->/g,vo$1=/>/g,Q=RegExp(`>|${Bt$1}(?:([^\\s"'>=/]+)(${Bt$1}*=${Bt$1}*(?:[^
|
|
6292
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),go$1=/'/g,bo$1=/"/g,hs=/^(?:script|style|textarea|title)$/i,fe$1=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),yo$1=new WeakMap,Z$1=oe$1.createTreeWalker(oe$1,129);function us(s,t){if(!Ii$1(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return fo$1!==void 0?fo$1.createHTML(t):t}const dn$1=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=Ee$1;for(let a=0;a<e;a++){const l=s[a];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===Ee$1?c[1]==="!--"?n=_o$1:c[1]!==void 0?n=vo$1:c[2]!==void 0?(hs.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=Q):c[3]!==void 0&&(n=Q):n===Q?c[0]===">"?(n=o!=null?o:Ee$1,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Q:c[3]==='"'?bo$1:go$1):n===bo$1||n===go$1?n=Q:n===_o$1||n===vo$1?n=Ee$1:(n=Q,o=void 0);const f=n===Q&&s[a+1].startsWith("/>")?" ":"";r+=n===Ee$1?l+an$1:h>=0?(i.push(d),l.slice(0,h)+ds+l.slice(h)+W$1+f):l+W$1+(h===-2?a:f);}return [us(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Be{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,c]=dn$1(t,e);if(this.el=Be.createElement(d,i),Z$1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes);}for(;(o=Z$1.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(ds)){const u=c[n++],f=o.getAttribute(h).split(W$1),_=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:_[2],strings:f,ctor:_[1]==="."?hn$1:_[1]==="?"?un$1:_[1]==="@"?pn$1:xt}),o.removeAttribute(h);}else h.startsWith(W$1)&&(l.push({type:6,index:r}),o.removeAttribute(h));if(hs.test(o.tagName)){const h=o.textContent.split(W$1),u=h.length-1;if(u>0){o.textContent=ht$1?ht$1.emptyScript:"";for(let f=0;f<u;f++)o.append(h[f],Ne$1()),Z$1.nextNode(),l.push({type:2,index:++r});o.append(h[u],Ne$1());}}}else if(o.nodeType===8)if(o.data===cs)l.push({type:2,index:r});else {let h=-1;for(;(h=o.data.indexOf(W$1,h+1))!==-1;)l.push({type:7,index:r}),h+=W$1.length-1;}r++;}}static createElement(t,e){const i=oe$1.createElement("template");return i.innerHTML=t,i}}function _e(s,t,e=s,i){var n,a,l;if(t===fe$1)return t;let o=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Le$1(t)?void 0:t._$litDirective$;return (o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(s),o._$AT(s,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=_e(s,o._$AS(s,t.values),o,i)),t}class cn$1{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,o=((d=t==null?void 0:t.creationScope)!=null?d:oe$1).importNode(e,!0);Z$1.currentNode=o;let r=Z$1.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new qe$1(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new mn$1(r,this,t)),this._$AV.push(c),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=Z$1.nextNode(),n++);}return Z$1.currentNode=oe$1,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++;}}class qe$1{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,o){var r;this.type=2,this._$AH=A$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.isConnected)!=null?r:!0;}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=_e(this,t,e),Le$1(t)?t===A$1||t==null||t===""?(this._$AH!==A$1&&this._$AR(),this._$AH=A$1):t!==this._$AH&&t!==fe$1&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ln$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==A$1&&Le$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe$1.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Be.createElement(us(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else {const n=new cn$1(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=yo$1.get(t.strings);return e===void 0&&yo$1.set(t.strings,e=new Be(t)),e}k(t){Ii$1(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new qe$1(this.O(Ne$1()),this.O(Ne$1()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o);}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t!==this._$AB;){const o=mo$1(t).nextSibling;mo$1(t).remove(),t=o;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class xt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=A$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A$1;}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(r===void 0)t=_e(this,t,e,0),n=!Le$1(t)||t!==this._$AH&&t!==fe$1,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=_e(this,a[i+l],e,l),d===fe$1&&(d=this._$AH[l]),n||(n=!Le$1(d)||d!==this._$AH[l]),d===A$1?t=A$1:t!==A$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!o&&this.j(t);}j(t){t===A$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class hn$1 extends xt{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$1?void 0:t;}}class un$1 extends xt{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A$1);}}class pn$1 extends xt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=_e(this,t,e,0))!=null?n:A$1)===fe$1)return;const i=this._$AH,o=t===A$1&&i!==A$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==A$1&&(i===A$1||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t);}}class mn$1{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(t){_e(this,t);}}const Ft$1=ze.litHtmlPolyfillSupport;var ss;Ft$1==null||Ft$1(Be,qe$1),((ss=ze.litHtmlVersions)!=null?ss:ze.litHtmlVersions=[]).push("3.3.2");const ps=(s,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let o=i._$litPart$;if(o===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=o=new qe$1(t.insertBefore(Ne$1(),a),a,void 0,e!=null?e:{});}return o._$AI(s),o};/**
|
|
6293
6293
|
* @license
|
|
6294
6294
|
* Copyright 2017 Google LLC
|
|
6295
6295
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6296
|
-
*/const te=globalThis;class ce extends de{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ps(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return fe}}var rs;ce._$litElement$=!0,ce.finalized=!0,(rs=te.litElementHydrateSupport)==null||rs.call(te,{LitElement:ce});const Vt=te.litElementPolyfillSupport;Vt==null||Vt({LitElement:ce});var ns;((ns=te.litElementVersions)!=null?ns:te.litElementVersions=[]).push("4.2.2");/**
|
|
6296
|
+
*/const te$1=globalThis;class ce$1 extends de$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ps(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return fe$1}}var rs;ce$1._$litElement$=!0,ce$1.finalized=!0,(rs=te$1.litElementHydrateSupport)==null||rs.call(te$1,{LitElement:ce$1});const Vt$1=te$1.litElementPolyfillSupport;Vt$1==null||Vt$1({LitElement:ce$1});var ns;((ns=te$1.litElementVersions)!=null?ns:te$1.litElementVersions=[]).push("4.2.2");/**
|
|
6297
6297
|
* @license
|
|
6298
6298
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6299
6299
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6300
|
-
*/const wt
|
|
6300
|
+
*/const wt=s=>class extends s{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o);}};/**
|
|
6301
6301
|
* @license
|
|
6302
6302
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6303
6303
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6304
|
-
*/const ms=[],ti=new Set,Si=new Set;function fs(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function fn(s){return fs(customElements.get(s))}function _n(s=[]){return [s].flat(1/0).filter(t=>t instanceof ki?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function _s(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function vs(s){return s.map(t=>t.cssText).join(`
|
|
6305
|
-
`)}const ut$1="vaadin-themable-mixin-style";function vn(s,t){const e=document.createElement("style");e.id=ut$1,e.textContent=vs(s),t.content.appendChild(e);}function gn(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof ce)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),as(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(ut$1),i=t.prototype._template;e.textContent=i.content.getElementById(ut$1).textContent;}}function bn(s){ti.forEach(t=>{const e=t.deref();e instanceof s?gn(e):e||ti.delete(t);});}function gs(s){if(s.prototype instanceof ce)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(ut$1).textContent=vs(s.getStylesForThis());}Si.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&gs(e);});}function yn(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m
|
|
6304
|
+
*/const ms=[],ti$1=new Set,Si$1=new Set;function fs(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function fn$1(s){return fs(customElements.get(s))}function _n$1(s=[]){return [s].flat(1/0).filter(t=>t instanceof ki$1?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function _s(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function vs(s){return s.map(t=>t.cssText).join(`
|
|
6305
|
+
`)}const ut$1="vaadin-themable-mixin-style";function vn$1(s,t){const e=document.createElement("style");e.id=ut$1,e.textContent=vs(s),t.content.appendChild(e);}function gn$1(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof ce$1)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),as(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(ut$1),i=t.prototype._template;e.textContent=i.content.getElementById(ut$1).textContent;}}function bn$1(s){ti$1.forEach(t=>{const e=t.deref();e instanceof s?gn$1(e):e||ti$1.delete(t);});}function gs(s){if(s.prototype instanceof ce$1)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(ut$1).textContent=vs(s.getStylesForThis());}Si$1.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&gs(e);});}function yn$1(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m(s,t,e={}){t=_n$1(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):ms.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId}),s&&Si$1.forEach(i=>{if(_s(s,i)&&fn$1(i)){const o=customElements.get(i);yn$1(o,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),gs(o),bn$1(o);}});}function ii$1(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ms}function xn$1(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function bs(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=ii$1().find(o=>o.moduleId===e);i?t.push(...bs(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},s.styles),t}function wn$1(s){const t=`${s}-default-theme`,e=ii$1().filter(i=>i.moduleId!==t&&_s(i.themeFor,s)).map(i=>Nt$1(we$1({},i),{styles:[...bs(i),...i.styles],includePriority:xn$1(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:ii$1().filter(i=>i.moduleId===t)}const x$1=s=>class extends wt(s){constructor(){super(),ti$1.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&Si$1.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||fs(this)||vn$1(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=s.__themes||[],i=Object.getPrototypeOf(this.prototype),o=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...o,...wn$1(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
|
|
6306
6306
|
* @license
|
|
6307
6307
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6308
6308
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6309
|
-
*/const Cn=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
|
|
6310
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},ge=(s,...t)=>{Cn(`lumo-${s}`,t);};/**
|
|
6309
|
+
*/const Cn$1=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
|
|
6310
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},ge$1=(s,...t)=>{Cn$1(`lumo-${s}`,t);};/**
|
|
6311
6311
|
* @license
|
|
6312
6312
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6313
6313
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6314
|
-
*/const En=p
|
|
6314
|
+
*/const En$1=p`
|
|
6315
6315
|
:host {
|
|
6316
6316
|
/* Base (background) */
|
|
6317
6317
|
--lumo-base-color: #fff;
|
|
@@ -6396,7 +6396,7 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6396
6396
|
--lumo-disabled-text-color: GrayText;
|
|
6397
6397
|
}
|
|
6398
6398
|
}
|
|
6399
|
-
`;ge("color-props",En);const An=p
|
|
6399
|
+
`;ge$1("color-props",En$1);const An$1=p`
|
|
6400
6400
|
[theme~='dark'] {
|
|
6401
6401
|
/* Base (background) */
|
|
6402
6402
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -6514,11 +6514,11 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6514
6514
|
pre code {
|
|
6515
6515
|
background: transparent;
|
|
6516
6516
|
}
|
|
6517
|
-
`;m
|
|
6517
|
+
`;m("",An$1,{moduleId:"lumo-color"});/**
|
|
6518
6518
|
* @license
|
|
6519
6519
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6520
6520
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6521
|
-
*/const kn=p
|
|
6521
|
+
*/const kn$1=p`
|
|
6522
6522
|
@font-face {
|
|
6523
6523
|
font-family: 'lumo-icons';
|
|
6524
6524
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -6571,11 +6571,11 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6571
6571
|
--lumo-icons-upload: '\\ea29';
|
|
6572
6572
|
--lumo-icons-user: '\\ea2a';
|
|
6573
6573
|
}
|
|
6574
|
-
`;ge("font-icons",kn);/**
|
|
6574
|
+
`;ge$1("font-icons",kn$1);/**
|
|
6575
6575
|
* @license
|
|
6576
6576
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6577
6577
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6578
|
-
*/const In=p
|
|
6578
|
+
*/const In$1=p`
|
|
6579
6579
|
:host {
|
|
6580
6580
|
--lumo-size-xs: 1.625rem;
|
|
6581
6581
|
--lumo-size-s: 1.875rem;
|
|
@@ -6590,11 +6590,11 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6590
6590
|
/* For backwards compatibility */
|
|
6591
6591
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
6592
6592
|
}
|
|
6593
|
-
`;ge("sizing-props",In);/**
|
|
6593
|
+
`;ge$1("sizing-props",In$1);/**
|
|
6594
6594
|
* @license
|
|
6595
6595
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6596
6596
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6597
|
-
*/const Sn=p
|
|
6597
|
+
*/const Sn$1=p`
|
|
6598
6598
|
:host {
|
|
6599
6599
|
/* Square */
|
|
6600
6600
|
--lumo-space-xs: 0.25rem;
|
|
@@ -6617,11 +6617,11 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6617
6617
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
6618
6618
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
6619
6619
|
}
|
|
6620
|
-
`;ge("spacing-props",Sn);/**
|
|
6620
|
+
`;ge$1("spacing-props",Sn$1);/**
|
|
6621
6621
|
* @license
|
|
6622
6622
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6623
6623
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6624
|
-
*/const Pn=p
|
|
6624
|
+
*/const Pn$1=p`
|
|
6625
6625
|
:host {
|
|
6626
6626
|
/* Border radius */
|
|
6627
6627
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -6638,7 +6638,7 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6638
6638
|
/* Clickable element cursor */
|
|
6639
6639
|
--lumo-clickable-cursor: default;
|
|
6640
6640
|
}
|
|
6641
|
-
`;p
|
|
6641
|
+
`;p`
|
|
6642
6642
|
html {
|
|
6643
6643
|
/* Button */
|
|
6644
6644
|
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
@@ -6721,11 +6721,11 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6721
6721
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
6722
6722
|
--vaadin-input-field-value-font-weight: 500;
|
|
6723
6723
|
}
|
|
6724
|
-
`;ge("style-props",Pn);/**
|
|
6724
|
+
`;ge$1("style-props",Pn$1);/**
|
|
6725
6725
|
* @license
|
|
6726
6726
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6727
6727
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6728
|
-
*/const Tn=p
|
|
6728
|
+
*/const Tn$1=p`
|
|
6729
6729
|
:host {
|
|
6730
6730
|
/* prettier-ignore */
|
|
6731
6731
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -6745,7 +6745,7 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6745
6745
|
--lumo-line-height-s: 1.375;
|
|
6746
6746
|
--lumo-line-height-m: 1.625;
|
|
6747
6747
|
}
|
|
6748
|
-
`,Dn=p
|
|
6748
|
+
`,Dn$1=p`
|
|
6749
6749
|
body,
|
|
6750
6750
|
:host {
|
|
6751
6751
|
font-family: var(--lumo-font-family);
|
|
@@ -6837,7 +6837,7 @@ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnProp
|
|
|
6837
6837
|
border-left: none;
|
|
6838
6838
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
6839
6839
|
}
|
|
6840
|
-
`;m
|
|
6840
|
+
`;m("",Dn$1,{moduleId:"lumo-typography"});ge$1("typography-props",Tn$1);m("vaadin-checkbox",p`
|
|
6841
6841
|
:host {
|
|
6842
6842
|
color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
|
|
6843
6843
|
font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
|
|
@@ -7157,7 +7157,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7157
7157
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7158
7158
|
Code distributed by Google as part of the polymer project is also
|
|
7159
7159
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7160
|
-
*/let On=/(url\()([^)]*)(\))/g,zn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,et$1,O;function Me(s,t){if(s&&zn.test(s)||s==="//")return s;if(et$1===void 0){et$1=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",et$1=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),et$1)try{return new URL(s,t).href}catch(e){return s}return O||(O=document.implementation.createHTMLDocument("temp"),O.base=O.createElement("base"),O.head.appendChild(O.base),O.anchor=O.createElement("a"),O.body.appendChild(O.anchor)),O.base.href=t,O.anchor.href=s,O.anchor.href||s}function Pi(s,t){return s.replace(On,function(e,i,o,r){return i+"'"+Me(o.replace(/["']/g,""),t)+"'"+r})}function Ti(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
|
|
7160
|
+
*/let On$1=/(url\()([^)]*)(\))/g,zn$1=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,et$1,O$1;function Me$1(s,t){if(s&&zn$1.test(s)||s==="//")return s;if(et$1===void 0){et$1=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",et$1=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),et$1)try{return new URL(s,t).href}catch(e){return s}return O$1||(O$1=document.implementation.createHTMLDocument("temp"),O$1.base=O$1.createElement("base"),O$1.head.appendChild(O$1.base),O$1.anchor=O$1.createElement("a"),O$1.body.appendChild(O$1.anchor)),O$1.base.href=t,O$1.anchor.href=s,O$1.anchor.href||s}function Pi$1(s,t){return s.replace(On$1,function(e,i,o,r){return i+"'"+Me$1(o.replace(/["']/g,""),t)+"'"+r})}function Ti$1(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
|
|
7161
7161
|
@license
|
|
7162
7162
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7163
7163
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7165,7 +7165,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7165
7165
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7166
7166
|
Code distributed by Google as part of the polymer project is also
|
|
7167
7167
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7168
|
-
*/const ys=!window.ShadyDOM||!window.ShadyDOM.inUse;const Mn=ys&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let Nn=window.Polymer&&window.Polymer.rootPath||Ti(document.baseURI||window.location.href),pt$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let mt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ln=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,xs=window.Polymer&&window.Polymer.legacyOptimizations||!1,ws=window.Polymer&&window.Polymer.legacyWarnings||!1,Bn=window.Polymer&&window.Polymer.syncInitialRender||!1,oi=window.Polymer&&window.Polymer.legacyUndefined||!1,Fn=window.Polymer&&window.Polymer.orderedComputed||!1,xo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Vn=window.Polymer&&window.Polymer.fastDomIf||!1,wo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let Rn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
7168
|
+
*/const ys=!window.ShadyDOM||!window.ShadyDOM.inUse;const Mn$1=ys&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let Nn$1=window.Polymer&&window.Polymer.rootPath||Ti$1(document.baseURI||window.location.href),pt$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let mt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ln$1=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,xs=window.Polymer&&window.Polymer.legacyOptimizations||!1,ws=window.Polymer&&window.Polymer.legacyWarnings||!1,Bn$1=window.Polymer&&window.Polymer.syncInitialRender||!1,oi$1=window.Polymer&&window.Polymer.legacyUndefined||!1,Fn$1=window.Polymer&&window.Polymer.orderedComputed||!1,xo$1=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Vn$1=window.Polymer&&window.Polymer.fastDomIf||!1,wo$1=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let Rn$1=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
7169
7169
|
@license
|
|
7170
7170
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7171
7171
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7173,7 +7173,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7173
7173
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7174
7174
|
Code distributed by Google as part of the polymer project is also
|
|
7175
7175
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7176
|
-
*/let $n=0;const w$1=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=$n++;function i(o){let r=o.__mixinSet;if(r&&r[e])return o;let n=t,a=n.get(o);if(!a){a=s(o),n.set(o,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l;}return a}return i};/**
|
|
7176
|
+
*/let $n$1=0;const w$1=function(s){let t=s.__mixinApplications;t||(t=new WeakMap,s.__mixinApplications=t);let e=$n$1++;function i(o){let r=o.__mixinSet;if(r&&r[e])return o;let n=t,a=n.get(o);if(!a){a=s(o),n.set(o,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l;}return a}return i};/**
|
|
7177
7177
|
@license
|
|
7178
7178
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7179
7179
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7181,7 +7181,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7181
7181
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7182
7182
|
Code distributed by Google as part of the polymer project is also
|
|
7183
7183
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7184
|
-
*/let Di={},Cs={};function Co(s,t){Di[s]=Cs[s.toLowerCase()]=t;}function Eo(s){return Di[s]||Cs[s.toLowerCase()]}function Hn(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class Fe extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=Eo(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Me(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Ti(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(mt$1&&Eo(t)!==void 0)throw Co(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Co(t,this),Hn(this);}}}Fe.prototype.modules=Di;customElements.define("dom-module",Fe);/**
|
|
7184
|
+
*/let Di$1={},Cs={};function Co$1(s,t){Di$1[s]=Cs[s.toLowerCase()]=t;}function Eo$1(s){return Di$1[s]||Cs[s.toLowerCase()]}function Hn$1(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class Fe$1 extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=Eo$1(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Me$1(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Ti$1(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(mt$1&&Eo$1(t)!==void 0)throw Co$1(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Co$1(t,this),Hn$1(this);}}}Fe$1.prototype.modules=Di$1;customElements.define("dom-module",Fe$1);/**
|
|
7185
7185
|
@license
|
|
7186
7186
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7187
7187
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7189,7 +7189,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7189
7189
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7190
7190
|
Code distributed by Google as part of the polymer project is also
|
|
7191
7191
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7192
|
-
*/const Un="link[rel=import][type~=css]",jn="include",Ao="shady-unscoped";function Es(s){return Fe.import(s)}function ko(s){let t=s.body?s.body:s;const e=Pi(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function Wn(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...qn(t[i]));return e}function qn(s){const t=Es(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...ks(t));const i=t.querySelector("template");i&&e.push(...As(i,t.assetpath)),t._styles=e;}return t._styles}function As(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(jn);n&&e.push(...Wn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Pi(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function Yn(s){let t=Es(s);return t?ks(t):[]}function ks(s){const t=[],e=s.querySelectorAll(Un);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(Ao);if(n&&!r._unscopedStyle){const a=ko(r);a.setAttribute(Ao,""),r._unscopedStyle=a;}else r._style||(r._style=ko(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
|
|
7192
|
+
*/const Un$1="link[rel=import][type~=css]",jn$1="include",Ao$1="shady-unscoped";function Es(s){return Fe$1.import(s)}function ko$1(s){let t=s.body?s.body:s;const e=Pi$1(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function Wn$1(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...qn$1(t[i]));return e}function qn$1(s){const t=Es(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...ks(t));const i=t.querySelector("template");i&&e.push(...As(i,t.assetpath)),t._styles=e;}return t._styles}function As(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(jn$1);n&&e.push(...Wn$1(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Pi$1(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function Yn$1(s){let t=Es(s);return t?ks(t):[]}function ks(s){const t=[],e=s.querySelectorAll(Un$1);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(Ao$1);if(n&&!r._unscopedStyle){const a=ko$1(r);a.setAttribute(Ao$1,""),r._unscopedStyle=a;}else r._style||(r._style=ko$1(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
|
|
7193
7193
|
@license
|
|
7194
7194
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7195
7195
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7197,7 +7197,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7197
7197
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7198
7198
|
Code distributed by Google as part of the polymer project is also
|
|
7199
7199
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7200
|
-
*/const I
|
|
7200
|
+
*/const I=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
|
|
7201
7201
|
@license
|
|
7202
7202
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7203
7203
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7205,7 +7205,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7205
7205
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7206
7206
|
Code distributed by Google as part of the polymer project is also
|
|
7207
7207
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7208
|
-
*/function si(s){return s.indexOf(".")>=0}function se(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function Is(s,t){return s.indexOf(t+".")===0}function Ve(s,t){return t.indexOf(s+".")===0}function Re(s,t,e){return t+e.slice(s.length)}function Kn(s,t){return s===t||Is(s,t)||Ve(s,t)}function Pe(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function Ss(s){return Array.isArray(s)?Pe(s).split("."):s.toString().split(".")}function D
|
|
7208
|
+
*/function si$1(s){return s.indexOf(".")>=0}function se$1(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function Is(s,t){return s.indexOf(t+".")===0}function Ve$1(s,t){return t.indexOf(s+".")===0}function Re$1(s,t,e){return t+e.slice(s.length)}function Kn$1(s,t){return s===t||Is(s,t)||Ve$1(s,t)}function Pe(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function Ss(s){return Array.isArray(s)?Pe(s).split("."):s.toString().split(".")}function D(s,t,e){let i=s,o=Ss(t);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n];}return e&&(e.path=o.join(".")),i}function Io(s,t,e){let i=s,o=Ss(t),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return o.join(".")}/**
|
|
7209
7209
|
@license
|
|
7210
7210
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7211
7211
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7213,7 +7213,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7213
7213
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7214
7214
|
Code distributed by Google as part of the polymer project is also
|
|
7215
7215
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7216
|
-
*/const ft$1={},Gn=/-[a-z]/g,Xn=/([A-Z])/g;function Ps(s){return ft$1[s]||(ft$1[s]=s.indexOf("-")<0?s:s.replace(Gn,t=>t[1].toUpperCase()))}function Ct$1(s){return ft$1[s]||(ft$1[s]=s.replace(Xn,"-$1").toLowerCase())}/**
|
|
7216
|
+
*/const ft$1={},Gn$1=/-[a-z]/g,Xn$1=/([A-Z])/g;function Ps(s){return ft$1[s]||(ft$1[s]=s.indexOf("-")<0?s:s.replace(Gn$1,t=>t[1].toUpperCase()))}function Ct$1(s){return ft$1[s]||(ft$1[s]=s.replace(Xn$1,"-$1").toLowerCase())}/**
|
|
7217
7217
|
@license
|
|
7218
7218
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7219
7219
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7221,7 +7221,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7221
7221
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7222
7222
|
Code distributed by Google as part of the polymer project is also
|
|
7223
7223
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7224
|
-
*/let Jn=0,Ts=0,he=[],Qn=0,ri=!1,Ds=document.createTextNode("");new window.MutationObserver(Zn).observe(Ds,{characterData:!0});function Zn(){ri=!1;const s=he.length;for(let t=0;t<s;t++){let e=he[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}he.splice(0,s),Ts+=s;}const ea={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Os={run(s){return ri||(ri=!0,Ds.textContent=Qn++),he.push(s),Jn++},cancel(s){const t=s-Ts;if(t>=0){if(!he[t])throw new Error("invalid async handle: "+s);he[t]=null;}}};/**
|
|
7224
|
+
*/let Jn$1=0,Ts=0,he$1=[],Qn$1=0,ri$1=!1,Ds=document.createTextNode("");new window.MutationObserver(Zn$1).observe(Ds,{characterData:!0});function Zn$1(){ri$1=!1;const s=he$1.length;for(let t=0;t<s;t++){let e=he$1[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}he$1.splice(0,s),Ts+=s;}const ea={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Os={run(s){return ri$1||(ri$1=!0,Ds.textContent=Qn$1++),he$1.push(s),Jn$1++},cancel(s){const t=s-Ts;if(t>=0){if(!he$1[t])throw new Error("invalid async handle: "+s);he$1[t]=null;}}};/**
|
|
7225
7225
|
@license
|
|
7226
7226
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7227
7227
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7229,7 +7229,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7229
7229
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7230
7230
|
Code distributed by Google as part of the polymer project is also
|
|
7231
7231
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7232
|
-
*/const ta=Os,zs=w$1(s=>{class t extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r);}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o));}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties();}});}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties();}ready(){this.__dataReady=!0,this._flushProperties();}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i]);}_initializeInstanceProperties(i){Object.assign(this,i);}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties();}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return !!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ta.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties());}));}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready());}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--;}_shouldPropertiesChange(i,o,r){return !!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,n){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,n);}_attributeToProperty(i,o,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,r||this.constructor.typeForProperty(a));}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1;}_valueToNodeAttribute(i,o,r){const n=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=I
|
|
7232
|
+
*/const ta=Os,zs=w$1(s=>{class t extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r);}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,o));}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties();}});}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties();}ready(){this.__dataReady=!0,this._flushProperties();}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i]);}_initializeInstanceProperties(i){Object.assign(this,i);}_setProperty(i,o){this._setPendingProperty(i,o)&&this._invalidateProperties();}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return !!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ta.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties());}));}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready());}_flushProperties(){this.__dataCounter++;const i=this.__data,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--;}_shouldPropertiesChange(i,o,r){return !!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,n){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,n);}_attributeToProperty(i,o,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,r||this.constructor.typeForProperty(a));}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1;}_valueToNodeAttribute(i,o,r){const n=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=I(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n);}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
|
|
7233
7233
|
@license
|
|
7234
7234
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7235
7235
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7245,7 +7245,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7245
7245
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7246
7246
|
Code distributed by Google as part of the polymer project is also
|
|
7247
7247
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7248
|
-
*/const ra={"dom-if":!0,"dom-repeat":!0};let So=!1,Po=!1;function na(){if(!So){So=!0;const s=document.createElement("textarea");s.placeholder="a",Po=s.placeholder===s.textContent;}return Po}function aa(s){na()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null);}const la=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return (t,e,i)=>{const o=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(o,i));return}t.setAttribute(i,o);}})();function da(s){let t=s.getAttribute("is");if(t&&ra[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];la(s,e,i),e.removeAttribute(i);}}return s}function Ns(s,t){let e=t.parentInfo&&Ns(s,t.parentInfo);if(e){for(let i=e.firstChild,o=0;i;i=i.nextSibling)if(t.parentIndex===o++)return i}else return s}function ca(s,t,e,i){i.id&&(t[i.id]=e);}function ha(s,t,e){if(e.events&&e.events.length)for(let i=0,o=e.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(t,r.name,r.value,s);}function ua(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i);}function pa(s,t,e){return s=s._methodHost||s,function(o){s[e]?s[e](o,o.detail):console.warn("listener method `"+e+"` not defined");}}const ma=w$1(s=>{class t extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null});}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,r)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),aa(a),a.firstChild&&this._parseTemplateChildNodes(a,o,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,r)||n),n||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=da(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&a++;}}static _parseTemplateNestedTemplate(i,o,r){let n=i,a=this._parseTemplate(n,o);return (a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,c=r.length,h;d<c&&(h=r[d]);d++){let u=l[d]=Ns(a,h);ca(this,a.$,u,h),ua(this,u,h,o),ha(this,u,h);}return a=a,a}_addMethodEventListenerToNode(i,o,r,n){n=n||i;let a=pa(n,o,r);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,r){i.addEventListener(o,r);}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r);}}return t});/**
|
|
7248
|
+
*/const ra={"dom-if":!0,"dom-repeat":!0};let So$1=!1,Po=!1;function na(){if(!So$1){So$1=!0;const s=document.createElement("textarea");s.placeholder="a",Po=s.placeholder===s.textContent;}return Po}function aa(s){na()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null);}const la=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return (t,e,i)=>{const o=e.getAttribute(i);if(s&&i.startsWith("on-")){t.setAttribute(i,s.createScript(o,i));return}t.setAttribute(i,o);}})();function da(s){let t=s.getAttribute("is");if(t&&ra[t]){let e=s;for(e.removeAttribute("is"),s=e.ownerDocument.createElement(t),e.parentNode.replaceChild(s,e),s.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];la(s,e,i),e.removeAttribute(i);}}return s}function Ns(s,t){let e=t.parentInfo&&Ns(s,t.parentInfo);if(e){for(let i=e.firstChild,o=0;i;i=i.nextSibling)if(t.parentIndex===o++)return i}else return s}function ca(s,t,e,i){i.id&&(t[i.id]=e);}function ha(s,t,e){if(e.events&&e.events.length)for(let i=0,o=e.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(t,r.name,r.value,s);}function ua(s,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i);}function pa(s,t,e){return s=s._methodHost||s,function(o){s[e]?s[e](o,o.detail):console.warn("listener method `"+e+"` not defined");}}const ma=w$1(s=>{class t extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null});}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,r)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),aa(a),a.firstChild&&this._parseTemplateChildNodes(a,o,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,r)||n),n||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=da(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&a++;}}static _parseTemplateNestedTemplate(i,o,r){let n=i,a=this._parseTemplate(n,o);return (a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,c=r.length,h;d<c&&(h=r[d]);d++){let u=l[d]=Ns(a,h);ca(this,a.$,u,h),ua(this,u,h,o),ha(this,u,h);}return a=a,a}_addMethodEventListenerToNode(i,o,r,n){n=n||i;let a=pa(n,o,r);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,r){i.addEventListener(o,r);}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r);}}return t});/**
|
|
7249
7249
|
* @fileoverview
|
|
7250
7250
|
* @suppress {checkPrototypalTypes}
|
|
7251
7251
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -7255,7 +7255,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7255
7255
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
7256
7256
|
* Google as part of the polymer project is also subject to an additional IP
|
|
7257
7257
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7258
|
-
*/let $e=0;const He=[],y$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ls="__computeInfo",fa=/[A-Z]/;function Rt(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Te(s,t,e,i,o,r){if(t){let n=!1;const a=$e++;for(let l in e){let d=o?se(l):l,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!o||Oi(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(s,l,e,i,f.info,o,r),n=!0);}return n}return !1}function _a(s,t,e,i,o,r,n,a){let l=!1,d=n?se(i):i,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Oi(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(s,i,o,r,f.info,n,a),l=!0);return l}function Oi(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&Is(e,s))||!!(t.wildcard&&Ve(e,s))}else return !0}function To(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function va(s,t,e,i,o){let r=s[y$1.NOTIFY],n,a=$e++;for(let d in t)t[d]&&(r&&_a(s,r,a,d,e,i,o)||o&&ga(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function ga(s,t,e){let i=se(t);if(i!==t){let o=Ct$1(i)+"-changed";return Bs(s,o,e[t],t),!0}return !1}function Bs(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),I$1(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function ba(s,t,e,i,o,r){let a=(r?se(t):t)!=t?t:null,l=a?D$1(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),Bs(s,o.eventName,l,a);}function ya(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Re(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[y$1.READ_ONLY]||!t[y$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function xa(s,t,e,i,o){let r=s.__data[t];pt$1&&(r=pt$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function wa(s,t,e,i){let o=s[y$1.COMPUTE];if(o)if(Fn){$e++;const r=Ea(s),n=[];for(let l in t)Do(l,o,n,r,i);let a;for(;a=n.shift();)Fs(s,"",t,e,a)&&Do(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Te(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const Ca=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},Do=(s,t,e,i,o)=>{const r=o?se(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==$e&&(!o||Oi(s,l.trigger))&&(l.info.lastRun=$e,Ca(l.info,e,i));}};function Ea(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[y$1.COMPUTE];let{counts:i,ready:o,total:r}=Aa(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Aa(s){const t=s[Ls],e={},i=s[y$1.COMPUTE],o=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0);}for(let n in i)t[n]||o.push(n);return {counts:e,ready:o,total:r}}function Fs(s,t,e,i,o){let r=ni(s,t,e,i,o);if(r===He)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function ka(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Ve(r,t)?(o=Re(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Ve(n,t)&&(o=Re(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function $t$1(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Da(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||Ct$1(o)+"-changed",a.listenerNegate=c;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,Ia(s,t,a,c,l);}}function Ia(s,t,e,i,o){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else {let r=i.dependencies,n={index:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Rs(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Sa,info:n,trigger:l});}}}function Sa(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=Re(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&s._enqueueClient(a);}else {let c=o.evaluator._evaluateBinding(s,d,t,e,i,r);c!==He&&Pa(s,a,l,d,c);}}function Pa(s,t,e,i,o){if(o=Ta(t,o,e,i),pt$1&&(o=pt$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[y$1.READ_ONLY]||!t[y$1.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function Ta(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function Da(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Oa(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];za(n,d),Ma(n,s,d);}n.__dataHost=s;}}function za(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=I$1(s)),s[r]=t.literal);}}function Ma(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){ya(o,t,e.target,i.source,i.negate);});}}function Oo(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ni(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===He?He:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const Na=[],Vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",La="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ba="(?:'(?:[^'\\\\]|\\\\.)*')",Fa='(?:"(?:[^"\\\\]|\\\\.)*")',Va="(?:"+Ba+"|"+Fa+")",zo="(?:("+Vs+"|"+La+"|"+Va+")\\s*)",Ra="(?:"+zo+"(?:,\\s*"+zo+")*)",$a="(?:\\(\\s*(?:"+Ra+"?)\\)\\s*)",Ha="("+Vs+"\\s*"+$a+"?)",Ua="(\\[\\[|{{)\\s*",ja="(?:]]|}})",Wa="(?:(!)\\s*)?",qa=Ua+Wa+Ha+ja,Mo=new RegExp(qa,"g");function No(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function Ht$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Na};if(t[2].trim()){let o=t[2].replace(/\\,/g,",").split(",");return Ya(o,i)}else return i}return null}function Ya(s,t){return t.args=s.map(function(e){let i=Rs(e);return i.literal||(t.static=!1),i},this),t}function Rs(s){let t=s.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=se(t),e.structured=si(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Lo(s,t,e){let i=D$1(s,e);return i===void 0&&(i=t[e]),i}function $s(s,t,e,i){const o={indexSplices:i};oi&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),oi&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function Ae(s,t,e,i,o,r){$s(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function Ka(s){return s[0].toUpperCase()+s.substring(1)}const zi=w$1(s=>{const t=ma(sa(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return y$1}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1;}_registerHost(){if(ke.length){let o=ke[ke.length-1];o._enqueueClient(this),this.__dataHost=o;}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={};}_initializeInstanceProperties(o){let r=this[y$1.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==y$1.READ_ONLY);let a=Rt(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=Rt(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,y$1.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,y$1.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,y$1.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,y$1.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||se(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=D$1(this,o);if(o=Io(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return ka(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=I$1(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&si(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[y$1.NOTIFY]&&this[y$1.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties();}_invalidateProperties(){this.__dataReady&&this._flushProperties();}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o);}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0);}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[y$1.READ_ONLY]||!this[y$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;wa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Te(this,this[y$1.REFLECT],r,n,a),Te(this,this[y$1.OBSERVE],r,n,a),l&&va(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[y$1.PROPAGATE]&&Te(this,this[y$1.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,c)=>{Te(this,o.propertyEffects,d,n,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=Pe(o),r=Pe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=Pe(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=D$1(this,o,n);$s(this,a,n.path,r);}get(o,r){return D$1(r||this,o)}set(o,r,n){n?Io(n,o,r):(!this[y$1.READ_ONLY]||!this[y$1.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=D$1(this,o,n),l=a.length,d=a.push(...r);return r.length&&Ae(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=D$1(this,o,r),a=!!n.length,l=n.pop();return a&&Ae(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=D$1(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let c;return arguments.length===2?c=d.splice(r):c=d.splice(r,n,...a),(a.length||c.length)&&Ae(this,d,l.path,r,a.length,c),c}shift(o){let r={path:""},n=D$1(this,o,r),a=!!n.length,l=n.shift();return a&&Ae(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=D$1(this,o,n),l=a.unshift(...r);return r.length&&Ae(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=D$1(this,o,a),n=a.path;}else Array.isArray(o)?n=Pe(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,y$1.READ_ONLY),r&&(this["_set"+Ka(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,y$1.OBSERVE,{fn:To,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,y$1.OBSERVE,{fn:To,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=Ht$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Oo(this,n,y$1.OBSERVE,ni,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,y$1.NOTIFY,{fn:ba,info:{eventName:Ct$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,y$1.REFLECT,{fn:xa,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=Ht$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Oo(this,a,y$1.COMPUTE,Fs,o,n);Rt(this,Ls)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,c=o.length;d<c;d++){let{name:h,structured:u,wildcard:f,value:_,literal:S}=o[d];if(!S)if(f){const P=Ve(h,r),E=Lo(a,n,P?r:h);_={path:P?r:h,value:E,base:P?D$1(a,h):E};}else _=u?Lo(a,n,h):a[h];if(oi&&!this._overrideLegacyUndefined&&_===void 0&&o.length>1)return He;l[d]=_;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),ke.push(this);let n=super._stampTemplate(o,r);if(ke.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l);}return n.templateInfo=r,Oa(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let c=0;c<d.length;c++){let h=d[c];I$1(I$1(h).parentNode).removeChild(h);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=No(l)||" ",$t$1(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let c=a,h="property";fa.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let u=No(d);return u&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Ps(a)),$t$1(this,r,n,h,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";xo&&(c||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(Vn&&c)u&&(r.hostProps=Object.assign(r.hostProps||{},u),xo||(n.parentInfo.noted=!0));else {let f="{";for(let _ in u){let S=[{mode:f,source:_,dependencies:[_],hostProp:!0}];$t$1(this,r,n,"property","_host_"+_,S);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=Mo.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],c=!!l[2],h=l[3].trim(),u=!1,f="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),u=!0);let S=Ht$1(h),P=[];if(S){let{args:E,methodName:C}=S;for(let xe=0;xe<E.length;xe++){let J=E[xe];J.literal||P.push(J);}let j=r.dynamicFns;(j&&j[C]||S.static)&&(P.push(C),S.dynamicFn=!0);}else P.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:S,dependencies:P,event:f}),a=Mo.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let c;return r.signature?c=ni(o,n,a,l,r.signature):n!=r.source?c=D$1(o,r.source):d&&si(n)?c=D$1(o,n):c=o.__data[n],r.negate&&(c=!c),c}}return e}),ke=[];/**
|
|
7258
|
+
*/let $e$1=0;const He=[],y={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ls="__computeInfo",fa=/[A-Z]/;function Rt$1(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Te$1(s,t,e,i,o,r){if(t){let n=!1;const a=$e$1++;for(let l in e){let d=o?se$1(l):l,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!o||Oi$1(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(s,l,e,i,f.info,o,r),n=!0);}return n}return !1}function _a(s,t,e,i,o,r,n,a){let l=!1,d=n?se$1(i):i,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Oi$1(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(s,i,o,r,f.info,n,a),l=!0);return l}function Oi$1(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&Is(e,s))||!!(t.wildcard&&Ve$1(e,s))}else return !0}function To$1(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function va(s,t,e,i,o){let r=s[y.NOTIFY],n,a=$e$1++;for(let d in t)t[d]&&(r&&_a(s,r,a,d,e,i,o)||o&&ga(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function ga(s,t,e){let i=se$1(t);if(i!==t){let o=Ct$1(i)+"-changed";return Bs(s,o,e[t],t),!0}return !1}function Bs(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),I(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function ba(s,t,e,i,o,r){let a=(r?se$1(t):t)!=t?t:null,l=a?D(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),Bs(s,o.eventName,l,a);}function ya(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Re$1(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[y.READ_ONLY]||!t[y.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function xa(s,t,e,i,o){let r=s.__data[t];pt$1&&(r=pt$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function wa(s,t,e,i){let o=s[y.COMPUTE];if(o)if(Fn$1){$e$1++;const r=Ea(s),n=[];for(let l in t)Do(l,o,n,r,i);let a;for(;a=n.shift();)Fs(s,"",t,e,a)&&Do(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Te$1(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const Ca=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},Do=(s,t,e,i,o)=>{const r=o?se$1(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==$e$1&&(!o||Oi$1(s,l.trigger))&&(l.info.lastRun=$e$1,Ca(l.info,e,i));}};function Ea(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[y.COMPUTE];let{counts:i,ready:o,total:r}=Aa(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Aa(s){const t=s[Ls],e={},i=s[y.COMPUTE],o=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0);}for(let n in i)t[n]||o.push(n);return {counts:e,ready:o,total:r}}function Fs(s,t,e,i,o){let r=ni$1(s,t,e,i,o);if(r===He)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function ka(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Ve$1(r,t)?(o=Re$1(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Ve$1(n,t)&&(o=Re$1(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function $t$1(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Da(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||Ct$1(o)+"-changed",a.listenerNegate=c;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,Ia(s,t,a,c,l);}}function Ia(s,t,e,i,o){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else {let r=i.dependencies,n={index:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Rs(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Sa,info:n,trigger:l});}}}function Sa(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=Re$1(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&s._enqueueClient(a);}else {let c=o.evaluator._evaluateBinding(s,d,t,e,i,r);c!==He&&Pa(s,a,l,d,c);}}function Pa(s,t,e,i,o){if(o=Ta(t,o,e,i),pt$1&&(o=pt$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[y.READ_ONLY]||!t[y.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function Ta(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function Da(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Oa(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];za(n,d),Ma(n,s,d);}n.__dataHost=s;}}function za(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=I(s)),s[r]=t.literal);}}function Ma(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){ya(o,t,e.target,i.source,i.negate);});}}function Oo(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ni$1(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===He?He:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const Na=[],Vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",La="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ba="(?:'(?:[^'\\\\]|\\\\.)*')",Fa='(?:"(?:[^"\\\\]|\\\\.)*")',Va="(?:"+Ba+"|"+Fa+")",zo="(?:("+Vs+"|"+La+"|"+Va+")\\s*)",Ra="(?:"+zo+"(?:,\\s*"+zo+")*)",$a="(?:\\(\\s*(?:"+Ra+"?)\\)\\s*)",Ha="("+Vs+"\\s*"+$a+"?)",Ua="(\\[\\[|{{)\\s*",ja="(?:]]|}})",Wa="(?:(!)\\s*)?",qa=Ua+Wa+Ha+ja,Mo$1=new RegExp(qa,"g");function No$1(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function Ht$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Na};if(t[2].trim()){let o=t[2].replace(/\\,/g,",").split(",");return Ya(o,i)}else return i}return null}function Ya(s,t){return t.args=s.map(function(e){let i=Rs(e);return i.literal||(t.static=!1),i},this),t}function Rs(s){let t=s.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=se$1(t),e.structured=si$1(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Lo(s,t,e){let i=D(s,e);return i===void 0&&(i=t[e]),i}function $s(s,t,e,i){const o={indexSplices:i};oi$1&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),oi$1&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function Ae(s,t,e,i,o,r){$s(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function Ka(s){return s[0].toUpperCase()+s.substring(1)}const zi$1=w$1(s=>{const t=ma(sa(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return y}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1;}_registerHost(){if(ke$1.length){let o=ke$1[ke$1.length-1];o._enqueueClient(this),this.__dataHost=o;}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={};}_initializeInstanceProperties(o){let r=this[y.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==y.READ_ONLY);let a=Rt$1(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=Rt$1(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,y.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,y.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,y.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,y.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||se$1(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=D(this,o);if(o=Io(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return ka(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=I(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&si$1(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[y.NOTIFY]&&this[y.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties();}_invalidateProperties(){this.__dataReady&&this._flushProperties();}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o);}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0);}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[y.READ_ONLY]||!this[y.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;wa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Te$1(this,this[y.REFLECT],r,n,a),Te$1(this,this[y.OBSERVE],r,n,a),l&&va(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[y.PROPAGATE]&&Te$1(this,this[y.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,c)=>{Te$1(this,o.propertyEffects,d,n,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=Pe(o),r=Pe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=Pe(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=D(this,o,n);$s(this,a,n.path,r);}get(o,r){return D(r||this,o)}set(o,r,n){n?Io(n,o,r):(!this[y.READ_ONLY]||!this[y.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=D(this,o,n),l=a.length,d=a.push(...r);return r.length&&Ae(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=D(this,o,r),a=!!n.length,l=n.pop();return a&&Ae(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=D(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let c;return arguments.length===2?c=d.splice(r):c=d.splice(r,n,...a),(a.length||c.length)&&Ae(this,d,l.path,r,a.length,c),c}shift(o){let r={path:""},n=D(this,o,r),a=!!n.length,l=n.shift();return a&&Ae(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=D(this,o,n),l=a.unshift(...r);return r.length&&Ae(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=D(this,o,a),n=a.path;}else Array.isArray(o)?n=Pe(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,y.READ_ONLY),r&&(this["_set"+Ka(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,y.OBSERVE,{fn:To$1,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,y.OBSERVE,{fn:To$1,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=Ht$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Oo(this,n,y.OBSERVE,ni$1,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,y.NOTIFY,{fn:ba,info:{eventName:Ct$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,y.REFLECT,{fn:xa,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=Ht$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Oo(this,a,y.COMPUTE,Fs,o,n);Rt$1(this,Ls)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,c=o.length;d<c;d++){let{name:h,structured:u,wildcard:f,value:_,literal:S}=o[d];if(!S)if(f){const P=Ve$1(h,r),E=Lo(a,n,P?r:h);_={path:P?r:h,value:E,base:P?D(a,h):E};}else _=u?Lo(a,n,h):a[h];if(oi$1&&!this._overrideLegacyUndefined&&_===void 0&&o.length>1)return He;l[d]=_;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),ke$1.push(this);let n=super._stampTemplate(o,r);if(ke$1.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l);}return n.templateInfo=r,Oa(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let c=0;c<d.length;c++){let h=d[c];I(I(h).parentNode).removeChild(h);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=No$1(l)||" ",$t$1(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let c=a,h="property";fa.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let u=No$1(d);return u&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Ps(a)),$t$1(this,r,n,h,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";xo$1&&(c||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(Vn$1&&c)u&&(r.hostProps=Object.assign(r.hostProps||{},u),xo$1||(n.parentInfo.noted=!0));else {let f="{";for(let _ in u){let S=[{mode:f,source:_,dependencies:[_],hostProp:!0}];$t$1(this,r,n,"property","_host_"+_,S);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=Mo$1.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],c=!!l[2],h=l[3].trim(),u=!1,f="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),u=!0);let S=Ht$1(h),P=[];if(S){let{args:E,methodName:C}=S;for(let xe=0;xe<E.length;xe++){let J=E[xe];J.literal||P.push(J);}let j=r.dynamicFns;(j&&j[C]||S.static)&&(P.push(C),S.dynamicFn=!0);}else P.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:S,dependencies:P,event:f}),a=Mo$1.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let c;return r.signature?c=ni$1(o,n,a,l,r.signature):n!=r.source?c=D(o,r.source):d&&si$1(n)?c=D(o,n):c=o.__data[n],r.negate&&(c=!c),c}}return e}),ke$1=[];/**
|
|
7259
7259
|
@license
|
|
7260
7260
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7261
7261
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7281,7 +7281,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7281
7281
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
7282
7282
|
* Google as part of the polymer project is also subject to an additional IP
|
|
7283
7283
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7284
|
-
*/const Ja="3.5.2",Bo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Qa=w$1(s=>{const t=Xa(zi(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h);}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,c,h){if(!Bo){const u=d.content.querySelectorAll("style"),f=As(d),_=Yn(c),S=d.content.firstElementChild;for(let E=0;E<_.length;E++){let C=_[E];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,S);}let P=0;for(let E=0;E<f.length;E++){let C=f[E],j=u[P];j!==C?(C=C.cloneNode(!0),j.parentNode.insertBefore(C,j)):P++,C.textContent=l._processStyleText(C.textContent,h);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Rn&&Bo&&Mn){const u=d.content.querySelectorAll("style");if(u){let f="";Array.from(u).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f);}}}function n(l){let d=null;if(l&&(!mt$1||Ln)&&(d=Fe.import(l,"template"),mt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Ja}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate();}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):xs||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let c in d)o(this.prototype,c,d[c],d);}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ti(d.url);else {const c=Fe.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Nn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,c){return Pi(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?Me(h):"";r(this,c,d,u),this.prototype._bindTemplate(c);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const c=I
|
|
7284
|
+
*/const Ja="3.5.2",Bo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Qa=w$1(s=>{const t=Xa(zi$1(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h);}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,c,h){if(!Bo){const u=d.content.querySelectorAll("style"),f=As(d),_=Yn$1(c),S=d.content.firstElementChild;for(let E=0;E<_.length;E++){let C=_[E];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,S);}let P=0;for(let E=0;E<f.length;E++){let C=f[E],j=u[P];j!==C?(C=C.cloneNode(!0),j.parentNode.insertBefore(C,j)):P++,C.textContent=l._processStyleText(C.textContent,h);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Rn$1&&Bo&&Mn$1){const u=d.content.querySelectorAll("style");if(u){let f="";Array.from(u).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f);}}}function n(l){let d=null;if(l&&(!mt$1||Ln$1)&&(d=Fe$1.import(l,"template"),mt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Ja}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate();}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):xs||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let c in d)o(this.prototype,c,d[c],d);}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ti$1(d.url);else {const c=Fe$1.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Nn$1,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,c){return Pi$1(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?Me$1(h):"";r(this,c,d,u),this.prototype._bindTemplate(c);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const c=I(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Bn$1&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d);}resolveUrl(d,c){return !c&&this.importPath&&(c=Me$1(this.importPath)),Me$1(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return ws&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,c,h)}}return a});/**
|
|
7285
7285
|
@license
|
|
7286
7286
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7287
7287
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7289,7 +7289,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7289
7289
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7290
7290
|
Code distributed by Google as part of the polymer project is also
|
|
7291
7291
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7292
|
-
*/const Fo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class Hs{constructor(t,e){js(t,e);const i=e.reduce((o,r,n)=>o+Us(r)+t[n+1],t[0]);this.value=i.toString();}toString(){return this.value}}function Us(s){if(s instanceof Hs)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Za(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof Hs)return Us(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const g
|
|
7292
|
+
*/const Fo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class Hs{constructor(t,e){js(t,e);const i=e.reduce((o,r,n)=>o+Us(r)+t[n+1],t[0]);this.value=i.toString();}toString(){return this.value}}function Us(s){if(s instanceof Hs)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Za(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof Hs)return Us(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const g=function(t,...e){js(t,e);const i=document.createElement("template");let o=e.reduce((r,n,a)=>r+Za(n)+t[a+1],t[0]);return Fo&&(o=Fo.createHTML(o)),i.innerHTML=o,i},js=(s,t)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||t.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
7293
7293
|
@license
|
|
7294
7294
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7295
7295
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7297,7 +7297,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7297
7297
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7298
7298
|
Code distributed by Google as part of the polymer project is also
|
|
7299
7299
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7300
|
-
*/const b
|
|
7300
|
+
*/const b=Qa(HTMLElement),el=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,dt$1=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tl(){function s(){return !0}return Ws(s)}function il(){try{return ol()?!0:sl()?dt$1?!rl():!tl():!1}catch(s){return !1}}function ol(){return localStorage.getItem("vaadin.developmentmode.force")}function sl(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function rl(){return !!(dt$1&&Object.keys(dt$1).map(t=>dt$1[t]).filter(t=>t.productionMode).length>0)}function Ws(s,t){if(typeof s!="function")return;const e=el.exec(s.toString());if(e)try{s=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return s(t)}window.Vaadin=window.Vaadin||{};const Vo=function(s,t){if(window.Vaadin.developmentMode)return Ws(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=il());function nl(){/*! vaadin-dev-mode:start
|
|
7301
7301
|
(function () {
|
|
7302
7302
|
'use strict';
|
|
7303
7303
|
|
|
@@ -7783,7 +7783,7 @@ try {
|
|
|
7783
7783
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7784
7784
|
* Code distributed by Google as part of the polymer project is also
|
|
7785
7785
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7786
|
-
*/let Ro=0,qs=0;const ue=[];let ai=!1;function ll(){ai=!1;const s=ue.length;for(let t=0;t<s;t++){const e=ue[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}ue.splice(0,s),qs+=s;}const Y$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Ue={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},Ys={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},_t$1={run(s){ai||(ai=!0,queueMicrotask(()=>ll())),ue.push(s);const t=Ro;return Ro+=1,t},cancel(s){const t=s-qs;if(t>=0){if(!ue[t])throw new Error(`invalid async handle: ${s}`);ue[t]=null;}}};/**
|
|
7786
|
+
*/let Ro=0,qs=0;const ue$1=[];let ai$1=!1;function ll(){ai$1=!1;const s=ue$1.length;for(let t=0;t<s;t++){const e=ue$1[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}ue$1.splice(0,s),qs+=s;}const Y$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Ue$1={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},Ys={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},_t$1={run(s){ai$1||(ai$1=!0,queueMicrotask(()=>ll())),ue$1.push(s);const t=Ro;return Ro+=1,t},cancel(s){const t=s-qs;if(t>=0){if(!ue$1[t])throw new Error(`invalid async handle: ${s}`);ue$1[t]=null;}}};/**
|
|
7787
7787
|
@license
|
|
7788
7788
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7789
7789
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7791,35 +7791,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7791
7791
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7792
7792
|
Code distributed by Google as part of the polymer project is also
|
|
7793
7793
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7794
|
-
*/const je=new Set;let z$1=class li{static debounce(t,e,i){return t instanceof li?t._cancelAsync():t=new li,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,je.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),je.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Ks(s){je.add(s);}function dl(){const s=!!je.size;return je.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const De=()=>{let s;do s=dl();while(s)};/**
|
|
7794
|
+
*/const je$1=new Set;let z$1=class li{static debounce(t,e,i){return t instanceof li?t._cancelAsync():t=new li,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,je$1.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),je$1.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Ks(s){je$1.add(s);}function dl(){const s=!!je$1.size;return je$1.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const De$1=()=>{let s;do s=dl();while(s)};/**
|
|
7795
7795
|
* @license
|
|
7796
7796
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7797
7797
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7798
|
-
*/const V
|
|
7798
|
+
*/const V=[];function di$1(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir");}function ci$1(){return document.documentElement.getAttribute("dir")}function cl(){const s=ci$1();V.forEach(t=>{di$1(t,s);});}const hl=new MutationObserver(cl);hl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const M=s=>class extends s{static get properties(){return {dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),di$1(this,ci$1(),null));}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const r=ci$1(),n=o===r&&V.indexOf(this)===-1,a=!o&&i&&V.indexOf(this)===-1;n||a?(this.__subscribe(),di$1(this,r,o)):o!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=V.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o);}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o);}__subscribe(){V.includes(this)||V.push(this);}__unsubscribe(){V.includes(this)&&V.splice(V.indexOf(this),1);}};/**
|
|
7799
7799
|
* @license
|
|
7800
7800
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7801
7801
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7802
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){al();};let Ut;const $o=new Set,N$1=s=>class extends M
|
|
7802
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){al();};let Ut$1;const $o=new Set,N$1=s=>class extends M(s){static finalize(){super.finalize();const{is:e}=this;e&&!$o.has(e)&&(window.Vaadin.registrations.push(this),$o.add(e),window.Vaadin.developmentModeCallback&&(Ut$1=z$1.debounce(Ut$1,Ys,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),Ks(Ut$1)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
|
|
7803
7803
|
* @license
|
|
7804
7804
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7805
7805
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7806
|
-
*/function ul(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function Gs(s){const t=[];let e;return s.localName==="slot"?e=s.assignedElements():(t.push(s),e=[...s.children]),e.forEach(i=>t.push(...Gs(i))),t}function Mi(s){return s?new Set(s.split(" ")):new Set}function Et$1(s){return s?[...s].join(" "):""}function Xs(s,t,e){const i=Mi(s.getAttribute(t));i.add(e),s.setAttribute(t,Et$1(i));}function pl(s,t,e){const i=Mi(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,Et$1(i));}function ml(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
|
|
7806
|
+
*/function ul(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function Gs(s){const t=[];let e;return s.localName==="slot"?e=s.assignedElements():(t.push(s),e=[...s.children]),e.forEach(i=>t.push(...Gs(i))),t}function Mi$1(s){return s?new Set(s.split(" ")):new Set}function Et$1(s){return s?[...s].join(" "):""}function Xs(s,t,e){const i=Mi$1(s.getAttribute(t));i.add(e),s.setAttribute(t,Et$1(i));}function pl(s,t,e){const i=Mi$1(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,Et$1(i));}function ml(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
|
|
7807
7807
|
* @license
|
|
7808
7808
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
7809
7809
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7810
|
-
*/class Ni{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
|
|
7810
|
+
*/class Ni$1{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
|
|
7811
7811
|
* @license
|
|
7812
7812
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7813
7813
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7814
|
-
*/let fl=0;function Ye(){return fl++}/**
|
|
7814
|
+
*/let fl=0;function Ye$1(){return fl++}/**
|
|
7815
7815
|
* @license
|
|
7816
7816
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7817
7817
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7818
|
-
*/class T
|
|
7818
|
+
*/class T extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${Ye$1()}`}constructor(t,e,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e));}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0);}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t));}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e));}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e);});}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return !o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host);}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t));}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ni$1(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!ml(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l);})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l);})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)));});}}/**
|
|
7819
7819
|
* @license
|
|
7820
7820
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
7821
7821
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7822
|
-
*/class U$1 extends T
|
|
7822
|
+
*/class U$1 extends T{constructor(t){super(t,"tooltip"),this.setTarget(t);}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange();}teardownNode(){this.__notifyChange();}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t);}setContext(t){this.context=t;const e=this.node;e&&(e.context=t);}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t);}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t);}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t);}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t);}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t);}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}));}}/**
|
|
7823
7823
|
@license
|
|
7824
7824
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7825
7825
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -7827,7 +7827,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
7827
7827
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
7828
7828
|
Code distributed by Google as part of the polymer project is also
|
|
7829
7829
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7830
|
-
*/const _l=s=>s,Js=typeof document.head.style.touchAction=="string",hi="__polymerGestures",jt$1="__polymerGesturesHandled",ui="__polymerGesturesTouchAction",Ho=25,Uo=5,vl=2,gl=["mousedown","mousemove","mouseup","click"],bl=[0,1,4,2],yl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function Li(s){return gl.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function wl(s){}const Cl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),El={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ie(s){const t=s.type;if(!Li(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!yl&&(i=bl[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function Al(s){if(s.type==="click"){if(s.detail===0)return !0;const t=K$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const R
|
|
7830
|
+
*/const _l=s=>s,Js=typeof document.head.style.touchAction=="string",hi$1="__polymerGestures",jt$1="__polymerGesturesHandled",ui$1="__polymerGesturesTouchAction",Ho=25,Uo=5,vl=2,gl=["mousedown","mousemove","mouseup","click"],bl=[0,1,4,2],yl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function Li$1(s){return gl.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function wl(s){}const Cl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),El={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ie$1(s){const t=s.type;if(!Li$1(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!yl&&(i=bl[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function Al(s){if(s.type==="click"){if(s.detail===0)return !0;const t=K$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const R={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function kl(s){let t="auto";const e=Zs(s);for(let i=0,o;i<e.length;i++)if(o=e[i],o[ui$1]){t=o[ui$1];break}return t}function Qs(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function pe$1(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null;}const Zs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],Bi$1={},ee$1=[];function Il(s,t){let e=document.elementFromPoint(s,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,t),o===i)break;i&&(e=i);}return e}function K$1(s){const t=Zs(s);return t.length>0?t[0]:s.target}function Sl(s){const t=s.type,i=s.currentTarget[hi$1];if(!i)return;const o=i[t];if(!o)return;if(!s[jt$1]&&(s[jt$1]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(R.touch.id=n.identifier),R.touch.id!==n.identifier)return;Js||(t==="touchstart"||t==="touchmove")&&Pl(s);}const r=s[jt$1];if(!r.skip){for(let n=0,a;n<ee$1.length;n++)a=ee$1[n],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ee$1.length;n++)a=ee$1[n],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s));}}function Pl(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")R.touch.x=t.clientX,R.touch.y=t.clientY,R.touch.scrollDecided=!1;else if(e==="touchmove"){if(R.touch.scrollDecided)return;R.touch.scrollDecided=!0;const i=kl(s);let o=!1;const r=Math.abs(R.touch.x-t.clientX),n=Math.abs(R.touch.y-t.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():vt$1("track");}}function B$1(s,t,e){return Bi$1[t]?(Tl(s,t,e),!0):!1}function Tl(s,t,e){const i=Bi$1[t],o=i.deps,r=i.name;let n=s[hi$1];n||(s[hi$1]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(Cl&&Li$1(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,Sl,wl()),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(t,e),i.touchAction&&er$1(s,i.touchAction);}function Fi$1(s){ee$1.push(s),s.emits.forEach(t=>{Bi$1[t]=s;});}function Dl(s){for(let t=0,e;t<ee$1.length;t++){e=ee$1[t];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===s)return e}return null}function er$1(s,t){Js&&s instanceof HTMLElement&&_t$1.run(()=>{s.style.touchAction=t;}),s[ui$1]=t;}function Vi$1(s,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,_l(s).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault();}}function vt$1(s){const t=Dl(s);t.info&&(t.info.prevent=!0);}Fi$1({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){pe$1(this.info);},mousedown(s){if(!ie$1(s))return;const t=K$1(s),e=this,i=r=>{ie$1(r)||(Ie$1("up",t,r),pe$1(e.info));},o=r=>{ie$1(r)&&Ie$1("up",t,r),pe$1(e.info);};Qs(this.info,i,o),Ie$1("down",t,s);},touchstart(s){Ie$1("down",K$1(s),s.changedTouches[0],s);},touchend(s){Ie$1("up",K$1(s),s.changedTouches[0],s);}});function Ie$1(s,t,e,i){t&&Vi$1(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return vt$1(o)}});}Fi$1({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>vl&&this.moves.shift(),this.moves.push(s);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,pe$1(this.info);},mousedown(s){if(!ie$1(s))return;const t=K$1(s),e=this,i=r=>{const n=r.clientX,a=r.clientY;jo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&vt$1("tap"),e.info.addMove({x:n,y:a}),ie$1(r)||(e.info.state="end",pe$1(e.info)),t&&Wt$1(e.info,t,r),e.info.started=!0);},o=r=>{e.info.started&&i(r),pe$1(e.info);};Qs(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY;},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(s){const t=K$1(s),e=s.changedTouches[0],i=e.clientX,o=e.clientY;jo(this.info,i,o)&&(this.info.state==="start"&&vt$1("tap"),this.info.addMove({x:i,y:o}),Wt$1(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(s){const t=K$1(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Wt$1(this.info,t,e));}});function jo(s,t,e){if(s.prevent)return !1;if(s.started)return !0;const i=Math.abs(s.x-t),o=Math.abs(s.y-e);return i>=Uo||o>=Uo}function Wt$1(s,t,e){if(!t)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Vi$1(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Il(e.clientX,e.clientY)}});}Fi$1({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(s){ie$1(s)&&(this.info.x=s.clientX,this.info.y=s.clientY);},click(s){ie$1(s)&&Wo(this.info,s);},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(s){Wo(this.info,s.changedTouches[0],s);}});function Wo(s,t,e){const i=Math.abs(t.clientX-s.x),o=Math.abs(t.clientY-s.y),r=K$1(e||t);!r||El[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=Ho&&o<=Ho||Al(t))&&(s.prevent||Vi$1(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
|
|
7831
7831
|
* @license
|
|
7832
7832
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7833
7833
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -7835,47 +7835,47 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7835
7835
|
* @license
|
|
7836
7836
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7837
7837
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7838
|
-
*/const re=w$1(s=>class extends s{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e);}),this.addEventListener("keyup",e=>{this._onKeyUp(e);});}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
7838
|
+
*/const re$1=w$1(s=>class extends s{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e);}),this.addEventListener("keyup",e=>{this._onKeyUp(e);});}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
7839
7839
|
* @license
|
|
7840
7840
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7841
7841
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7842
|
-
*/const Ri=s=>class extends be(re(s)){get _activeKeys(){return [" "]}ready(){super.ready(),B$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),B$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
|
|
7842
|
+
*/const Ri$1=s=>class extends be(re$1(s)){get _activeKeys(){return [" "]}ready(){super.ready(),B$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),B$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
|
|
7843
7843
|
* @license
|
|
7844
7844
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7845
7845
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7846
|
-
*/let $i=!1;window.addEventListener("keydown",()=>{$i=!0;},{capture:!0});window.addEventListener("mousedown",()=>{$i=!1;},{capture:!0});function pi(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function At$1(){return $i}function tr(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function Ol(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function zl(s,t){const e=[];for(;s.length>0&&t.length>0;)Ol(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function mi(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=mi(s.slice(0,e)),o=mi(s.slice(e));return zl(i,o)}function fi(s){return s.offsetParent===null&&s.clientWidth===0&&s.clientHeight===0?!0:tr(s)}function Hi(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ui(s){return s.getRootNode().activeElement===s}function Ml(s){if(!Hi(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function ir(s,t){if(s.nodeType!==Node.ELEMENT_NODE||tr(s))return !1;const e=s,i=Ml(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=ir(n,t)||o;}),o}function Nl(s){const t=[];return ir(s,t)?mi(t):t}/**
|
|
7846
|
+
*/let $i$1=!1;window.addEventListener("keydown",()=>{$i$1=!0;},{capture:!0});window.addEventListener("mousedown",()=>{$i$1=!1;},{capture:!0});function pi$1(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function At$1(){return $i$1}function tr$1(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function Ol(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function zl(s,t){const e=[];for(;s.length>0&&t.length>0;)Ol(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function mi$1(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=mi$1(s.slice(0,e)),o=mi$1(s.slice(e));return zl(i,o)}function fi$1(s){return s.offsetParent===null&&s.clientWidth===0&&s.clientHeight===0?!0:tr$1(s)}function Hi$1(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ui$1(s){return s.getRootNode().activeElement===s}function Ml(s){if(!Hi$1(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function ir$1(s,t){if(s.nodeType!==Node.ELEMENT_NODE||tr$1(s))return !1;const e=s,i=Ml(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=ir$1(n,t)||o;}),o}function Nl(s){const t=[];return ir$1(s,t)?mi$1(t):t}/**
|
|
7847
7847
|
* @license
|
|
7848
7848
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7849
7849
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7850
|
-
*/const ne=w$1(s=>class extends s{get _keyboardActive(){return At$1()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0);}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1);}),super.ready();}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1);}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive);}_shouldSetFocus(e){return !0}_shouldRemoveFocus(e){return !0}});/**
|
|
7850
|
+
*/const ne$1=w$1(s=>class extends s{get _keyboardActive(){return At$1()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0);}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1);}),super.ready();}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1);}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive);}_shouldSetFocus(e){return !0}_shouldRemoveFocus(e){return !0}});/**
|
|
7851
7851
|
* @license
|
|
7852
7852
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7853
7853
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7854
|
-
*/const or=s=>class extends be(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
|
|
7854
|
+
*/const or$1=s=>class extends be(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
|
|
7855
7855
|
* @license
|
|
7856
7856
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7857
7857
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7858
|
-
*/const kt$1=w$1(s=>class extends ne(or(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i);}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus);}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus);}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"));}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"));}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur();}_tabindexChanged(e){this.__forwardTabIndex(e);}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0);}});/**
|
|
7858
|
+
*/const kt$1=w$1(s=>class extends ne$1(or$1(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i);}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus);}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus);}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"));}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"));}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur();}_tabindexChanged(e){this.__forwardTabIndex(e);}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0);}});/**
|
|
7859
7859
|
* @license
|
|
7860
7860
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7861
7861
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7862
|
-
*/const ji=w$1(s=>class extends s{static get properties(){return {stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return []}static get delegateProps(){return []}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver();}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated());}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`);}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`);}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e]);});}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e]);});}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,o)=>{this._delegateAttribute(i,e[o]);});}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,o)=>{this._delegateProperty(i,e[o]);});}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e));}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i);}});/**
|
|
7862
|
+
*/const ji$1=w$1(s=>class extends s{static get properties(){return {stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return []}static get delegateProps(){return []}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver();}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated());}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`);}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`);}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e]);});}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e]);});}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,o)=>{this._delegateAttribute(i,e[o]);});}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,o)=>{this._delegateProperty(i,e[o]);});}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e));}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i);}});/**
|
|
7863
7863
|
* @license
|
|
7864
7864
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7865
7865
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7866
|
-
*/const Ke=w$1(s=>class extends s{static get properties(){return {inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this);}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return "value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e);}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue="";}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange);}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange);}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"");}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i);}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"));}__onInput(e){this._setHasInputValue(e),this._onInput(e);}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1;}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e);}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e));}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0;}});/**
|
|
7866
|
+
*/const Ke$1=w$1(s=>class extends s{static get properties(){return {inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this);}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return "value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e);}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue="";}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange);}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange);}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"");}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i);}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"));}__onInput(e){this._setHasInputValue(e),this._onInput(e);}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1;}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e);}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e));}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0;}});/**
|
|
7867
7867
|
* @license
|
|
7868
7868
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7869
7869
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7870
|
-
*/const Ll=w$1(s=>class extends ji(be(Ke(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
|
|
7870
|
+
*/const Ll=w$1(s=>class extends ji$1(be(Ke$1(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
|
|
7871
7871
|
* @license
|
|
7872
7872
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
7873
7873
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7874
|
-
*/const qt=new Map;function Wi(s){return qt.has(s)||qt.set(s,new WeakMap),qt.get(s)}function sr(s,t){s&&s.removeAttribute(t);}function rr(s,t){if(!s||!t)return;const e=Wi(t);if(e.has(s))return;const i=Mi(s.getAttribute(t));e.set(s,new Set(i));}function Bl(s,t){if(!s||!t)return;const e=Wi(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Xs(s,t,Et$1(i)),e.delete(s);}function me(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=Wi(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):rr(s,t),sr(s,t)),pl(s,t,o);const l=i||Et$1(a);l&&Xs(s,t,l);}function Fl(s,t){rr(s,t),sr(s,t);}/**
|
|
7874
|
+
*/const qt$1=new Map;function Wi$1(s){return qt$1.has(s)||qt$1.set(s,new WeakMap),qt$1.get(s)}function sr$1(s,t){s&&s.removeAttribute(t);}function rr$1(s,t){if(!s||!t)return;const e=Wi$1(t);if(e.has(s))return;const i=Mi$1(s.getAttribute(t));e.set(s,new Set(i));}function Bl(s,t){if(!s||!t)return;const e=Wi$1(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Xs(s,t,Et$1(i)),e.delete(s);}function me$1(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=Wi$1(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):rr$1(s,t),sr$1(s,t)),pl(s,t,o);const l=i||Et$1(a);l&&Xs(s,t,l);}function Fl(s,t){rr$1(s,t),sr$1(s,t);}/**
|
|
7875
7875
|
* @license
|
|
7876
7876
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7877
7877
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7878
|
-
*/class Vl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(Fl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Bl(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){me(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){me(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){me(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
|
|
7878
|
+
*/class Vl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(Fl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Bl(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){me$1(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){me$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){me$1(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
|
|
7879
7879
|
* @license
|
|
7880
7880
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7881
7881
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -7883,51 +7883,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7883
7883
|
* @license
|
|
7884
7884
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
7885
7885
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7886
|
-
*/const L
|
|
7886
|
+
*/const L=document.createElement("div");L.style.position="fixed";L.style.clip="rect(0px, 0px, 0px, 0px)";L.setAttribute("aria-live","polite");document.body.appendChild(L);let it$1;function ct$1(s,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(L.removeAttribute("aria-live"),L.removeAttribute("role"),it$1=z$1.debounce(it$1,Ue$1,()=>{L.setAttribute("role","alert");})):(it$1&&it$1.cancel(),L.removeAttribute("role"),L.setAttribute("aria-live",e)),L.textContent="",setTimeout(()=>{L.textContent=s;},i);}/**
|
|
7887
7887
|
* @license
|
|
7888
7888
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
7889
7889
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7890
|
-
*/class qi extends T
|
|
7890
|
+
*/class qi$1 extends T{constructor(t,e,i,o={}){super(t,e,i,Nt$1(we$1({},o),{useUniqueId:!0}));}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t);}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node));}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t);}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node);});}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0});}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}));}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId);}}/**
|
|
7891
7891
|
* @license
|
|
7892
7892
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7893
7893
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7894
|
-
*/class Rl extends qi{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&ct$1(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
|
|
7894
|
+
*/class Rl extends qi$1{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&ct$1(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
|
|
7895
7895
|
* @license
|
|
7896
7896
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7897
7897
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7898
|
-
*/class $l extends qi{constructor(t){super(t,"helper",null);}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
|
|
7898
|
+
*/class $l extends qi$1{constructor(t){super(t,"helper",null);}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
|
|
7899
7899
|
* @license
|
|
7900
7900
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7901
7901
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7902
|
-
*/class nr extends qi{constructor(t){super(t,"label","label");}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
|
|
7902
|
+
*/class nr$1 extends qi$1{constructor(t){super(t,"label","label");}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node);}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e);}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t);}initCustomNode(t){super.initCustomNode(t),this.observeNode(t);}}/**
|
|
7903
7903
|
* @license
|
|
7904
7904
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7905
7905
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7906
|
-
*/const Hl=w$1(s=>class extends F$1(s){static get properties(){return {label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new nr(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent);});}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController);}_labelChanged(e){this._labelController.setLabel(e);}});/**
|
|
7906
|
+
*/const Hl=w$1(s=>class extends F$1(s){static get properties(){return {label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new nr$1(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent);});}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController);}_labelChanged(e){this._labelController.setLabel(e);}});/**
|
|
7907
7907
|
* @license
|
|
7908
7908
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7909
7909
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7910
|
-
*/const Yi=w$1(s=>class extends s{static get properties(){return {invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return !this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e);}_shouldSetInvalid(e){return !0}});/**
|
|
7910
|
+
*/const Yi$1=w$1(s=>class extends s{static get properties(){return {invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return !this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e);}_shouldSetInvalid(e){return !0}});/**
|
|
7911
7911
|
* @license
|
|
7912
7912
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7913
7913
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7914
|
-
*/const It=s=>class extends Yi(Hl(F$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Vl(this),this._helperController=new $l(this),this._errorController=new Rl(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
|
|
7914
|
+
*/const It$1=s=>class extends Yi$1(Hl(F$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Vl(this),this._helperController=new $l(this),this._errorController=new Rl(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
|
|
7915
7915
|
* @license
|
|
7916
7916
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7917
7917
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7918
|
-
*/class Ge extends T
|
|
7918
|
+
*/class Ge$1 extends T{constructor(t,e,i={}){const{uniqueIdPrefix:o}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r);},useUniqueId:!0,uniqueIdPrefix:o});}}/**
|
|
7919
7919
|
* @license
|
|
7920
7920
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7921
7921
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7922
|
-
*/class Xe{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node);}),this.__initLabel(e.node);}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id));}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t);};this.input.addEventListener("click",t);}}/**
|
|
7922
|
+
*/class Xe$1{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node);}),this.__initLabel(e.node);}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id));}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t);};this.input.addEventListener("click",t);}}/**
|
|
7923
7923
|
* @license
|
|
7924
7924
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7925
7925
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7926
|
-
*/const Ul=s=>class extends It(Ll(kt$1(Ri(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new Ge(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Xe(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
|
|
7926
|
+
*/const Ul=s=>class extends It$1(Ll(kt$1(Ri$1(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new Ge$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Xe$1(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
|
|
7927
7927
|
* @license
|
|
7928
7928
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7929
7929
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7930
|
-
*/const jl=p
|
|
7930
|
+
*/const jl=p`
|
|
7931
7931
|
:host {
|
|
7932
7932
|
display: inline-block;
|
|
7933
7933
|
}
|
|
@@ -8019,7 +8019,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8019
8019
|
* @license
|
|
8020
8020
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8021
8021
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8022
|
-
*/m
|
|
8022
|
+
*/m("vaadin-checkbox",jl,{moduleId:"vaadin-checkbox-styles"});class Wl extends Ul(N$1(x$1(b))){static get is(){return "vaadin-checkbox"}static get template(){return g`
|
|
8023
8023
|
<div class="vaadin-checkbox-container">
|
|
8024
8024
|
<div part="checkbox" aria-hidden="true"></div>
|
|
8025
8025
|
<slot name="input"></slot>
|
|
@@ -8035,11 +8035,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8035
8035
|
</div>
|
|
8036
8036
|
</div>
|
|
8037
8037
|
<slot name="tooltip"></slot>
|
|
8038
|
-
`}ready(){super.ready(),this._tooltipController=new U$1(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}v
|
|
8038
|
+
`}ready(){super.ready(),this._tooltipController=new U$1(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}v(Wl);/**
|
|
8039
8039
|
* @license
|
|
8040
8040
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8041
8041
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8042
|
-
*/const ar=p
|
|
8042
|
+
*/const ar$1=p`
|
|
8043
8043
|
:host {
|
|
8044
8044
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
8045
8045
|
}
|
|
@@ -8099,7 +8099,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8099
8099
|
* @license
|
|
8100
8100
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8101
8101
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8102
|
-
*/const Ki=p
|
|
8102
|
+
*/const Ki$1=p`
|
|
8103
8103
|
[part='label'] {
|
|
8104
8104
|
align-self: flex-start;
|
|
8105
8105
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -8211,7 +8211,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8211
8211
|
margin-left: 0;
|
|
8212
8212
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
8213
8213
|
}
|
|
8214
|
-
`;m
|
|
8214
|
+
`;m("",Ki$1,{moduleId:"lumo-required-field"});const ql=p`
|
|
8215
8215
|
:host {
|
|
8216
8216
|
color: var(--lumo-body-text-color);
|
|
8217
8217
|
font-size: var(--lumo-font-size-m);
|
|
@@ -8254,15 +8254,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8254
8254
|
color: var(--lumo-secondary-text-color);
|
|
8255
8255
|
}
|
|
8256
8256
|
}
|
|
8257
|
-
`;m
|
|
8257
|
+
`;m("vaadin-checkbox-group",[Ki$1,ar$1,ql],{moduleId:"lumo-checkbox-group"});/**
|
|
8258
8258
|
* @license
|
|
8259
8259
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
8260
8260
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8261
|
-
*/const Yl=s=>class extends It(ne(be(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new U$1(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ni(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
|
|
8261
|
+
*/const Yl=s=>class extends It$1(ne$1(be(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new U$1(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ni$1(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
|
|
8262
8262
|
* @license
|
|
8263
8263
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
8264
8264
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8265
|
-
*/const Kl=p
|
|
8265
|
+
*/const Kl=p`
|
|
8266
8266
|
:host {
|
|
8267
8267
|
display: inline-flex;
|
|
8268
8268
|
}
|
|
@@ -8295,7 +8295,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8295
8295
|
* @license
|
|
8296
8296
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
8297
8297
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8298
|
-
*/m
|
|
8298
|
+
*/m("vaadin-checkbox-group",Kl,{moduleId:"vaadin-checkbox-group-styles"});class Gl extends Yl(N$1(x$1(b))){static get is(){return "vaadin-checkbox-group"}static get template(){return g`
|
|
8299
8299
|
<div class="vaadin-group-field-container">
|
|
8300
8300
|
<div part="label">
|
|
8301
8301
|
<slot name="label"></slot>
|
|
@@ -8316,11 +8316,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8316
8316
|
</div>
|
|
8317
8317
|
|
|
8318
8318
|
<slot name="tooltip"></slot>
|
|
8319
|
-
`}}v
|
|
8319
|
+
`}}v(Gl);/**
|
|
8320
8320
|
* @license
|
|
8321
8321
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8322
8322
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8323
|
-
*/const ye=p
|
|
8323
|
+
*/const ye=p`
|
|
8324
8324
|
:host {
|
|
8325
8325
|
top: var(--lumo-space-m);
|
|
8326
8326
|
right: var(--lumo-space-m);
|
|
@@ -8385,11 +8385,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8385
8385
|
opacity: 1;
|
|
8386
8386
|
}
|
|
8387
8387
|
}
|
|
8388
|
-
`;m
|
|
8388
|
+
`;m("",ye,{moduleId:"lumo-overlay"});/**
|
|
8389
8389
|
* @license
|
|
8390
8390
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8391
8391
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8392
|
-
*/const St
|
|
8392
|
+
*/const St=p`
|
|
8393
8393
|
:host([opening]),
|
|
8394
8394
|
:host([closing]) {
|
|
8395
8395
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -8419,7 +8419,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8419
8419
|
opacity: 0;
|
|
8420
8420
|
}
|
|
8421
8421
|
}
|
|
8422
|
-
`;m
|
|
8422
|
+
`;m("",St,{moduleId:"lumo-menu-overlay-core"});const Xl=p`
|
|
8423
8423
|
/* Small viewport (bottom sheet) styles */
|
|
8424
8424
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
8425
8425
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -8481,7 +8481,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8481
8481
|
transform: translateY(150%);
|
|
8482
8482
|
}
|
|
8483
8483
|
}
|
|
8484
|
-
`,Gi=[ye,St
|
|
8484
|
+
`,Gi$1=[ye,St,Xl];m("",Gi$1,{moduleId:"lumo-menu-overlay"});const Jl=p`
|
|
8485
8485
|
[part='overlay'] {
|
|
8486
8486
|
/*
|
|
8487
8487
|
Width:
|
|
@@ -8526,7 +8526,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8526
8526
|
max-height: 70vh;
|
|
8527
8527
|
}
|
|
8528
8528
|
}
|
|
8529
|
-
`;m
|
|
8529
|
+
`;m("vaadin-date-picker-overlay",[Gi$1,Jl],{moduleId:"lumo-date-picker-overlay"});const lr$1=p`
|
|
8530
8530
|
:host {
|
|
8531
8531
|
/* Sizing */
|
|
8532
8532
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -8802,7 +8802,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8802
8802
|
margin-left: 0;
|
|
8803
8803
|
margin-right: 0;
|
|
8804
8804
|
}
|
|
8805
|
-
`;m
|
|
8805
|
+
`;m("vaadin-button",lr$1,{moduleId:"lumo-button"});m("vaadin-date-picker-year",p`
|
|
8806
8806
|
:host([current]) [part='year-number'] {
|
|
8807
8807
|
color: var(--lumo-primary-text-color);
|
|
8808
8808
|
}
|
|
@@ -8826,7 +8826,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8826
8826
|
color: var(--lumo-disabled-text-color);
|
|
8827
8827
|
content: '\\2022';
|
|
8828
8828
|
}
|
|
8829
|
-
`,{moduleId:"lumo-date-picker-year"});m
|
|
8829
|
+
`,{moduleId:"lumo-date-picker-year"});m("vaadin-date-picker-overlay-content",p`
|
|
8830
8830
|
:host {
|
|
8831
8831
|
position: relative;
|
|
8832
8832
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -8976,7 +8976,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
8976
8976
|
padding-left: 50px;
|
|
8977
8977
|
}
|
|
8978
8978
|
}
|
|
8979
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});m
|
|
8979
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});m("vaadin-month-calendar",p`
|
|
8980
8980
|
:host {
|
|
8981
8981
|
-moz-user-select: none;
|
|
8982
8982
|
-webkit-user-select: none;
|
|
@@ -9123,7 +9123,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9123
9123
|
:host([disabled]) * {
|
|
9124
9124
|
color: var(--lumo-disabled-text-color) !important;
|
|
9125
9125
|
}
|
|
9126
|
-
`,{moduleId:"lumo-month-calendar"});m
|
|
9126
|
+
`,{moduleId:"lumo-month-calendar"});m("vaadin-input-container",p`
|
|
9127
9127
|
:host {
|
|
9128
9128
|
background: var(--_background);
|
|
9129
9129
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -9305,7 +9305,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9305
9305
|
* @license
|
|
9306
9306
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9307
9307
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9308
|
-
*/const Xi=p
|
|
9308
|
+
*/const Xi$1=p`
|
|
9309
9309
|
[part$='button'] {
|
|
9310
9310
|
flex: none;
|
|
9311
9311
|
width: 1em;
|
|
@@ -9332,11 +9332,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9332
9332
|
font-family: 'lumo-icons';
|
|
9333
9333
|
display: block;
|
|
9334
9334
|
}
|
|
9335
|
-
`;m
|
|
9335
|
+
`;m("",Xi$1,{moduleId:"lumo-field-button"});/**
|
|
9336
9336
|
* @license
|
|
9337
9337
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9338
9338
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9339
|
-
*/const Ql=p
|
|
9339
|
+
*/const Ql=p`
|
|
9340
9340
|
:host {
|
|
9341
9341
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
9342
9342
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -9467,7 +9467,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9467
9467
|
[part='clear-button']::before {
|
|
9468
9468
|
content: var(--lumo-icons-cross);
|
|
9469
9469
|
}
|
|
9470
|
-
`,ae=[Ki,Xi,ar,Ql];m
|
|
9470
|
+
`,ae$1=[Ki$1,Xi$1,ar$1,Ql];m("",ae$1,{moduleId:"lumo-input-field-shared-styles"});const Zl=p`
|
|
9471
9471
|
[part='toggle-button']::before {
|
|
9472
9472
|
content: var(--lumo-icons-calendar);
|
|
9473
9473
|
}
|
|
@@ -9489,7 +9489,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9489
9489
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
9490
9490
|
--_lumo-text-field-overflow-mask-image: none;
|
|
9491
9491
|
}
|
|
9492
|
-
`;m
|
|
9492
|
+
`;m("vaadin-date-picker",[ae$1,Zl],{moduleId:"lumo-date-picker"});/**
|
|
9493
9493
|
* @license
|
|
9494
9494
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9495
9495
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9497,7 +9497,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9497
9497
|
* @license
|
|
9498
9498
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9499
9499
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9500
|
-
*/const td=p
|
|
9500
|
+
*/const td=p`
|
|
9501
9501
|
:host {
|
|
9502
9502
|
display: flex;
|
|
9503
9503
|
align-items: center;
|
|
@@ -9566,15 +9566,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9566
9566
|
* @license
|
|
9567
9567
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9568
9568
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9569
|
-
*/m
|
|
9569
|
+
*/m("vaadin-input-container",td,{moduleId:"vaadin-input-container-styles"});class dr$1 extends ed(x$1(M(b))){static get is(){return "vaadin-input-container"}static get template(){return g`
|
|
9570
9570
|
<slot name="prefix"></slot>
|
|
9571
9571
|
<slot></slot>
|
|
9572
9572
|
<slot name="suffix"></slot>
|
|
9573
|
-
`}}v$1
|
|
9573
|
+
`}}v(dr$1);/**
|
|
9574
9574
|
* @license
|
|
9575
9575
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9576
9576
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9577
|
-
*/const Je=p
|
|
9577
|
+
*/const Je$1=p`
|
|
9578
9578
|
:host {
|
|
9579
9579
|
z-index: 200;
|
|
9580
9580
|
position: fixed;
|
|
@@ -9641,39 +9641,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
9641
9641
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9642
9642
|
Code distributed by Google as part of the polymer project is also
|
|
9643
9643
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9644
|
-
*/let _i=!1,id=[],cr=[];function od(){_i=!0,requestAnimationFrame(function(){_i=!1,sd(id),setTimeout(function(){rd(cr);});});}function sd(s){for(;s.length;)hr(s.shift());}function rd(s){for(let t=0,e=s.length;t<e;t++)hr(s.shift());}function hr(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function Ji(s,t,e){_i||od(),cr.push([s,t,e]);}/**
|
|
9644
|
+
*/let _i$1=!1,id=[],cr$1=[];function od(){_i$1=!0,requestAnimationFrame(function(){_i$1=!1,sd(id),setTimeout(function(){rd(cr$1);});});}function sd(s){for(;s.length;)hr$1(s.shift());}function rd(s){for(let t=0,e=s.length;t<e;t++)hr$1(s.shift());}function hr$1(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function Ji$1(s,t,e){_i$1||od(),cr$1.push([s,t,e]);}/**
|
|
9645
9645
|
* @license
|
|
9646
9646
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9647
9647
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9648
|
-
*/const Pt$1=s=>s.test(navigator.userAgent),vi=s=>s.test(navigator.platform),nd=s=>s.test(navigator.vendor);Pt$1(/Android/u);Pt$1(/Chrome/u)&&nd(/Google Inc/u);Pt$1(/Firefox/u);const ad=vi(/^iPad/u)||vi(/^Mac/u)&&navigator.maxTouchPoints>1,ld=vi(/^iPhone/u),Qi=ld||ad,dd=Pt$1(/^((?!chrome|android).)*safari/iu),gi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
|
|
9648
|
+
*/const Pt$1=s=>s.test(navigator.userAgent),vi$1=s=>s.test(navigator.platform),nd=s=>s.test(navigator.vendor);Pt$1(/Android/u);Pt$1(/Chrome/u)&&nd(/Google Inc/u);Pt$1(/Firefox/u);const ad=vi$1(/^iPad/u)||vi$1(/^Mac/u)&&navigator.maxTouchPoints>1,ld=vi$1(/^iPhone/u),Qi$1=ld||ad,dd=Pt$1(/^((?!chrome|android).)*safari/iu),gi$1=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
|
|
9649
9649
|
* @license
|
|
9650
9650
|
* Copyright (c) 2017 Anton Korzunov
|
|
9651
9651
|
* SPDX-License-Identifier: MIT
|
|
9652
|
-
*/let le=new WeakMap,ot$1=new WeakMap,st$1={},Yt=0;const qo=s=>s&&s.nodeType===Node.ELEMENT_NODE,Kt=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},cd=(s,t)=>qo(s)?t.map(e=>{if(!qo(e))return Kt(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return Kt(e,"is not contained inside",s),null}).filter(e=>!!e):(Kt(s,"is not a valid element"),[]),hd=(s,t,e,i)=>{const o=cd(t,Array.isArray(s)?s:[s]);st$1[e]||(st$1[e]=new WeakMap);const r=st$1[e],n=[],a=new Set,l=new Set(o),d=h=>{if(!h||a.has(h))return;a.add(h);const u=h.assignedSlot;u&&d(u),d(h.parentNode||h.host);};o.forEach(d);const c=h=>{if(!h||l.has(h))return;const u=h.shadowRoot;(u?[...h.children,...u.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else {const S=_.getAttribute(i),P=S!==null&&S!=="false",E=(le.get(_)||0)+1,C=(r.get(_)||0)+1;le.set(_,E),r.set(_,C),n.push(_),E===1&&P&&ot$1.set(_,!0),C===1&&_.setAttribute(e,"true"),P||_.setAttribute(i,"true");}});};return c(t),a.clear(),Yt+=1,()=>{n.forEach(h=>{const u=le.get(h)-1,f=r.get(h)-1;le.set(h,u),r.set(h,f),u||(ot$1.has(h)?ot$1.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e);}),Yt-=1,Yt||(le=new WeakMap,le=new WeakMap,ot$1=new WeakMap,st$1={});}},ur=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),hd(i,t,e,"aria-hidden")};/**
|
|
9652
|
+
*/let le$1=new WeakMap,ot$1=new WeakMap,st$1={},Yt$1=0;const qo=s=>s&&s.nodeType===Node.ELEMENT_NODE,Kt$1=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},cd=(s,t)=>qo(s)?t.map(e=>{if(!qo(e))return Kt$1(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return Kt$1(e,"is not contained inside",s),null}).filter(e=>!!e):(Kt$1(s,"is not a valid element"),[]),hd=(s,t,e,i)=>{const o=cd(t,Array.isArray(s)?s:[s]);st$1[e]||(st$1[e]=new WeakMap);const r=st$1[e],n=[],a=new Set,l=new Set(o),d=h=>{if(!h||a.has(h))return;a.add(h);const u=h.assignedSlot;u&&d(u),d(h.parentNode||h.host);};o.forEach(d);const c=h=>{if(!h||l.has(h))return;const u=h.shadowRoot;(u?[...h.children,...u.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else {const S=_.getAttribute(i),P=S!==null&&S!=="false",E=(le$1.get(_)||0)+1,C=(r.get(_)||0)+1;le$1.set(_,E),r.set(_,C),n.push(_),E===1&&P&&ot$1.set(_,!0),C===1&&_.setAttribute(e,"true"),P||_.setAttribute(i,"true");}});};return c(t),a.clear(),Yt$1+=1,()=>{n.forEach(h=>{const u=le$1.get(h)-1,f=r.get(h)-1;le$1.set(h,u),r.set(h,f),u||(ot$1.has(h)?ot$1.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e);}),Yt$1-=1,Yt$1||(le$1=new WeakMap,le$1=new WeakMap,ot$1=new WeakMap,st$1={});}},ur$1=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),hd(i,t,e,"aria-hidden")};/**
|
|
9653
9653
|
* @license
|
|
9654
9654
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9655
9655
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9656
|
-
*/class ud{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t;}showModal(){const t=this.callback();this.__showOthers=ur(t);}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null);}}/**
|
|
9656
|
+
*/class ud{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t;}showModal(){const t=this.callback();this.__showOthers=ur$1(t);}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null);}}/**
|
|
9657
9657
|
* @license
|
|
9658
9658
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9659
9659
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9660
|
-
*/class pd{saveFocus(t){this.focusNode=t||pi();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;pi()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
|
|
9660
|
+
*/class pd{saveFocus(t){this.focusNode=t||pi$1();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;pi$1()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
|
|
9661
9661
|
* @license
|
|
9662
9662
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9663
9663
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9664
|
-
*/const Gt=[];class md{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return Nl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ui).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Gt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Gt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Gt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
|
|
9664
|
+
*/const Gt$1=[];class md{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return Nl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ui$1).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Gt$1.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Gt$1.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Gt$1).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
|
|
9665
9665
|
* @license
|
|
9666
9666
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9667
9667
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9668
|
-
*/const fd=s=>class extends F$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ud(this),this.__focusTrapController=new md(this),this.__focusRestorationController=new pd;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!At$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=pi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
9668
|
+
*/const fd=s=>class extends F$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ud(this),this.__focusTrapController=new md(this),this.__focusRestorationController=new pd;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!At$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=pi$1();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
9669
9669
|
* @license
|
|
9670
9670
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9671
9671
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9672
|
-
*/const pr=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),bi=()=>pr().filter(s=>s.$.overlay),_d=s=>s===bi().pop(),mr=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return _d(this)}bringToFront(){let e="";const i=pr().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),bi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=bi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
9672
|
+
*/const pr$1=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),bi$1=()=>pr$1().filter(s=>s.$.overlay),_d=s=>s===bi$1().pop(),mr$1=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return _d(this)}bringToFront(){let e="";const i=pr$1().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),bi$1().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=bi$1();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
9673
9673
|
* @license
|
|
9674
9674
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9675
9675
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9676
|
-
*/const Qe=s=>class extends fd(mr(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Qi&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Ji(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
|
|
9676
|
+
*/const Qe$1=s=>class extends fd(mr$1(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Qi$1&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Ji$1(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
|
|
9677
9677
|
* @license
|
|
9678
9678
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
9679
9679
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9681,15 +9681,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9681
9681
|
* @license
|
|
9682
9682
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9683
9683
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9684
|
-
*/const Xt={start:"top",end:"bottom"},Jt={start:"left",end:"right"},Yo=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Zi=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=ul(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=vd(this.positionTarget,()=>{this._updatePosition();}));}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0);}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null);}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Yo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Yo.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[r],10);})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition());}}__positionSettingsChanged(){this._updatePosition();}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition();}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Xt,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Jt,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n);}__shouldAlignStartHorizontally(e,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,r,this.__margins,n,this.noHorizontalOverlap,Jt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Xt)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],c=e[a?l.start:l.end]-r[l.start],h=n?d:c,f=h>(n?c:d)||h>i;return n===f}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Xt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Jt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,c),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],f=h?`${h}px`:`${c+u*(a?-1:1)}px`;return {[l]:f,[d]:""}}};/**
|
|
9684
|
+
*/const Xt$1={start:"top",end:"bottom"},Jt$1={start:"left",end:"right"},Yo=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Zi$1=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=ul(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=vd(this.positionTarget,()=>{this._updatePosition();}));}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0);}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null);}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Yo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Yo.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[r],10);})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition());}}__positionSettingsChanged(){this._updatePosition();}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition();}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Xt$1,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Jt$1,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n);}__shouldAlignStartHorizontally(e,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,r,this.__margins,n,this.noHorizontalOverlap,Jt$1)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Xt$1)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],c=e[a?l.start:l.end]-r[l.start],h=n?d:c,f=h>(n?c:d)||h>i;return n===f}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Xt$1.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Jt$1.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,c),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],f=h?`${h}px`:`${c+u*(a?-1:1)}px`;return {[l]:f,[d]:""}}};/**
|
|
9685
9685
|
* @license
|
|
9686
9686
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
9687
9687
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9688
|
-
*/const gd=s=>class extends Zi(Qe(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Hi(e.composedPath()[0])&&e.preventDefault();}};/**
|
|
9688
|
+
*/const gd=s=>class extends Zi$1(Qe$1(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Hi$1(e.composedPath()[0])&&e.preventDefault();}};/**
|
|
9689
9689
|
* @license
|
|
9690
9690
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9691
9691
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9692
|
-
*/const bd=p
|
|
9692
|
+
*/const bd=p`
|
|
9693
9693
|
[part='overlay'] {
|
|
9694
9694
|
display: flex;
|
|
9695
9695
|
flex: auto;
|
|
@@ -9708,18 +9708,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9708
9708
|
* @license
|
|
9709
9709
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9710
9710
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9711
|
-
*/m
|
|
9711
|
+
*/m("vaadin-date-picker-overlay",[Je$1,bd],{moduleId:"vaadin-date-picker-overlay-styles"});class yd extends gd(M(x$1(b))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return g`
|
|
9712
9712
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
9713
9713
|
<div part="overlay" id="overlay">
|
|
9714
9714
|
<div part="content" id="content">
|
|
9715
9715
|
<slot></slot>
|
|
9716
9716
|
</div>
|
|
9717
9717
|
</div>
|
|
9718
|
-
`}}v
|
|
9718
|
+
`}}v(yd);/**
|
|
9719
9719
|
* @license
|
|
9720
9720
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9721
9721
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9722
|
-
*/const fr=p
|
|
9722
|
+
*/const fr$1=p`
|
|
9723
9723
|
:host {
|
|
9724
9724
|
display: inline-block;
|
|
9725
9725
|
position: relative;
|
|
@@ -9796,15 +9796,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9796
9796
|
* @license
|
|
9797
9797
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9798
9798
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9799
|
-
*/const eo=s=>class extends Ri(or(ne(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
|
|
9799
|
+
*/const eo$1=s=>class extends Ri$1(or$1(ne$1(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
|
|
9800
9800
|
* @license
|
|
9801
9801
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9802
9802
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9803
|
-
*/m
|
|
9803
|
+
*/m("vaadin-button",fr$1,{moduleId:"vaadin-button-styles"});class wd extends eo$1(N$1(x$1(F$1(b)))){static get is(){return "vaadin-button"}static get template(){return xd(g)}ready(){super.ready(),this._tooltipController=new U$1(this),this.addController(this._tooltipController);}}v(wd);/**
|
|
9804
9804
|
* @license
|
|
9805
9805
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9806
9806
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9807
|
-
*/function Cd(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function yi(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function H
|
|
9807
|
+
*/function Cd(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function yi$1(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function H(s,t,e=yi$1){return s instanceof Date&&t instanceof Date&&e(s).getTime()===e(t).getTime()}function to$1(s){return {day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function ve(s,t,e,i){let o=!1;if(typeof i=="function"&&s){const r=to$1(s);o=i(r);}return (!t||s>=t)&&(!e||s<=e)&&!o}function _r$1(s,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(e.getTime()-s.getTime());return o<r?i:e})}function vr$1(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function Ed(s,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let o=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,e,i)?o-=100:s>new Date(o+50,e,i)&&(o+=100),o}function Se$1(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function Ad(s){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",o=s.year;o<0?(o=-o,e="-",i="000000"):s.year>=1e4&&(e="+",i="000000");const r=e+t(o,i),n=t(s.month+1),a=t(s.day);return [r,n,a].join("-")}function kd(s){return s instanceof Date?Ad({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
|
|
9808
9808
|
@license
|
|
9809
9809
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
9810
9810
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -9812,7 +9812,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
9812
9812
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9813
9813
|
Code distributed by Google as part of the polymer project is also
|
|
9814
9814
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9815
|
-
*/class gt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,We.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),We.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof gt$1?t._cancelAsync():t=new gt$1,t.setConfig(e,i),t}}let We=new Set;const Id=function(s){We.add(s);},Sd=function(){const s=!!We.size;return We.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
|
|
9815
|
+
*/class gt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,We$1.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),We$1.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof gt$1?t._cancelAsync():t=new gt$1,t.setConfig(e,i),t}}let We$1=new Set;const Id=function(s){We$1.add(s);},Sd=function(){const s=!!We$1.size;return We$1.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
|
|
9816
9816
|
@license
|
|
9817
9817
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
9818
9818
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -9820,11 +9820,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
9820
9820
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9821
9821
|
Code distributed by Google as part of the polymer project is also
|
|
9822
9822
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9823
|
-
*/const io=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Sd();while(s||t)};/**
|
|
9823
|
+
*/const io$1=function(){let s,t;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Sd();while(s||t)};/**
|
|
9824
9824
|
* @license
|
|
9825
9825
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9826
9826
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9827
|
-
*/const gr=document.createElement("template");gr.innerHTML=`
|
|
9827
|
+
*/const gr$1=document.createElement("template");gr$1.innerHTML=`
|
|
9828
9828
|
<style>
|
|
9829
9829
|
:host {
|
|
9830
9830
|
display: block;
|
|
@@ -9874,11 +9874,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9874
9874
|
<div class="buffer"></div>
|
|
9875
9875
|
<div id="fullHeight"></div>
|
|
9876
9876
|
</div>
|
|
9877
|
-
`;class br extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(gr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),io();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=z$1.debounce(this._debouncerScrollFinish,Y$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=z$1.debounce(this._debouncerUpdateClones,Y$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${Ye()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
|
|
9877
|
+
`;class br$1 extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(gr$1.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),io$1();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=z$1.debounce(this._debouncerScrollFinish,Y$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=z$1.debounce(this._debouncerUpdateClones,Y$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${Ye$1()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
|
|
9878
9878
|
* @license
|
|
9879
9879
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9880
9880
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9881
|
-
*/const yr=document.createElement("template");yr.innerHTML=`
|
|
9881
|
+
*/const yr$1=document.createElement("template");yr$1.innerHTML=`
|
|
9882
9882
|
<style>
|
|
9883
9883
|
:host {
|
|
9884
9884
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -9890,11 +9890,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9890
9890
|
height: 100%;
|
|
9891
9891
|
}
|
|
9892
9892
|
</style>
|
|
9893
|
-
`;class Pd extends br{static get is(){return "vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(yr.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=vr(e);}}v
|
|
9893
|
+
`;class Pd extends br$1{static get is(){return "vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(yr$1.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=vr$1(e);}}v(Pd);/**
|
|
9894
9894
|
* @license
|
|
9895
9895
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9896
9896
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9897
|
-
*/const xr=document.createElement("template");xr.innerHTML=`
|
|
9897
|
+
*/const xr$1=document.createElement("template");xr$1.innerHTML=`
|
|
9898
9898
|
<style>
|
|
9899
9899
|
:host {
|
|
9900
9900
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -9928,7 +9928,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9928
9928
|
border-left-color: #000;
|
|
9929
9929
|
}
|
|
9930
9930
|
</style>
|
|
9931
|
-
`;class Td extends br{static get is(){return "vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(xr.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e);}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}v
|
|
9931
|
+
`;class Td extends br$1{static get is(){return "vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(xr$1.content.cloneNode(!0));}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e);}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}v(Td);/**
|
|
9932
9932
|
* @license
|
|
9933
9933
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9934
9934
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -9936,7 +9936,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9936
9936
|
* @license
|
|
9937
9937
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9938
9938
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9939
|
-
*/class Od extends x(Dd(b
|
|
9939
|
+
*/class Od extends x$1(Dd(b)){static get is(){return "vaadin-date-picker-year"}static get template(){return g`
|
|
9940
9940
|
<style>
|
|
9941
9941
|
:host {
|
|
9942
9942
|
display: block;
|
|
@@ -9945,7 +9945,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
9945
9945
|
</style>
|
|
9946
9946
|
<div part="year-number">[[year]]</div>
|
|
9947
9947
|
<div part="year-separator" aria-hidden="true"></div>
|
|
9948
|
-
`}}v
|
|
9948
|
+
`}}v(Od);/**
|
|
9949
9949
|
@license
|
|
9950
9950
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
9951
9951
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -9953,7 +9953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
9953
9953
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9954
9954
|
Code distributed by Google as part of the polymer project is also
|
|
9955
9955
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9956
|
-
*/function oo(s,t,e,i,o){let r;o&&(r=typeof e=="object"&&e!==null,r&&(i=s.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const so=w$1(s=>{class t extends s{_shouldPropertyChange(i,o,r){return oo(this,i,o,r,!0)}}return t}),zd=w$1(s=>{class t extends s{static get properties(){return {mutableData:Boolean}}_shouldPropertyChange(i,o,r){return oo(this,i,o,r,this.mutableData)}}return t});so._mutablePropertyChange=oo;/**
|
|
9956
|
+
*/function oo$1(s,t,e,i,o){let r;o&&(r=typeof e=="object"&&e!==null,r&&(i=s.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(s.__dataTemp[t]=e),n}const so$1=w$1(s=>{class t extends s{_shouldPropertyChange(i,o,r){return oo$1(this,i,o,r,!0)}}return t}),zd=w$1(s=>{class t extends s{static get properties(){return {mutableData:Boolean}}_shouldPropertyChange(i,o,r){return oo$1(this,i,o,r,this.mutableData)}}return t});so$1._mutablePropertyChange=oo$1;/**
|
|
9957
9957
|
@license
|
|
9958
9958
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
9959
9959
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -9961,7 +9961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
9961
9961
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9962
9962
|
Code distributed by Google as part of the polymer project is also
|
|
9963
9963
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9964
|
-
*/let xi=null;function wi(){return xi}wi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wi,writable:!0}});const wr=zi(wi),Md=so(wr);function Nd(s,t){xi=s,Object.setPrototypeOf(s,t.prototype),new t,xi=null;}const Ld=zi(class{});function Bd(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),I
|
|
9964
|
+
*/let xi$1=null;function wi$1(){return xi$1}wi$1.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wi$1,writable:!0}});const wr$1=zi$1(wi$1),Md=so$1(wr$1);function Nd(s,t){xi$1=s,Object.setPrototypeOf(s,t.prototype),new t,xi$1=null;}const Ld=zi$1(class{});function Bd(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),I(I(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const o=i.__polymerReplaced__;o&&I(I(o).parentNode).replaceChild(i,o);}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s);}}class X$1 extends Ld{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties();}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i]);}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this);}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,o=>{o.model=this,i(o);});else {let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(t,e,i);}}_showHideChildren(t){Bd(t,this.children);}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i);}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t;}return t}dispatchEvent(t){return !0}}const Fd=so$1(X$1);function Ko(s){let t=s.__dataHost;return t&&t._methodHost||t}function Vd(s,t,e){let i=e.mutableData?Fd:X$1;Ci$1.mixin&&(i=Ci$1.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(s),Hd(o,s,t,e),o}function Rd(s,t,e,i){let o=e.forwardHostProp;if(o&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?Md:wr$1;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=s.constructor;class d extends l{}n=t.templatizeTemplateClass=d;}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:$d(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);ws&&i&&Wd(t,e,i);}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)Nd(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else {Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d;}}}}function $d(s,t){return function(i,o,r){t.call(i.__templatizeOwner,o.substring(6),r[o]);}}function Hd(s,t,e,i){let o=e.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ud(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in o)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jd()});}function Ud(s,t){return function(i,o,r){t.call(i.__templatizeOwner,i,o,r[o]);}}function jd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function Ci$1(s,t,e){if(mt$1&&!Ko(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let o=(t?t.constructor:X$1)._parseTemplate(s),r=o.templatizeInstanceClass;r||(r=Vd(s,o,e),o.templatizeInstanceClass=r);const n=Ko(s);Rd(s,o,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=o.hostProps,a=a,a}function Wd(s,t,e){const i=e.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=t;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function qd(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=I(t).parentNode;return null}/**
|
|
9965
9965
|
@license
|
|
9966
9966
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
9967
9967
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -9977,15 +9977,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
9977
9977
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9978
9978
|
Code distributed by Google as part of the polymer project is also
|
|
9979
9979
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9980
|
-
*/const Kd=zd(b
|
|
9980
|
+
*/const Kd=zd(b);class Xo extends Kd{static get is(){return "dom-repeat"}static get template(){return null}static get properties(){return {items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!wo$1,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return ["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null;}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId);}connectedCallback(){if(super.connectedCallback(),Yd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=I(I(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render();}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ci$1(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r);},notifyInstanceProp:function(o,r,n){if(Kn$1(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Re$1(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n);}}});}return !0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render);}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ");}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay);}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render));}__debounceRender(t,e=0){this.__renderDebouncer=gt$1.debounce(this.__renderDebouncer,e>0?ea.after(e):Os,t.bind(this)),Id(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),io$1();}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking();})),this._setRenderedItemCount(this.__instances.length),(!wo$1||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}));}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,o,r)=>this.__filterFn(t[i],o,r))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(t[i],t[o])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+o,t)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now();}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1;}this.__shouldContinueChunking&&this.__debounceRender(this.__render);}__updateInstances(t,e,i){const o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];o[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a);}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n);}__detachInstance(t){let e=this.__instances[t];const i=I(e.root);for(let o=0;o<e.children.length;o++){let r=e.children[o];i.appendChild(r);}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this);}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1);}__stampInstance(t,e,i){let o={};return o[this.as]=t,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(t,e,i){const o=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return I(I(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties();}return !0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return qd(this.template,t)}}customElements.define(Xo.is,Xo);/**
|
|
9981
9981
|
* @license
|
|
9982
9982
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9983
9983
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9984
|
-
*/const Gd=s=>class extends ne(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>H
|
|
9984
|
+
*/const Gd=s=>class extends ne$1(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>H(e.date,this.focusedDate))}ready(){super.ready(),B$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!ve(r,i,o)&&!ve(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300);}_dateAdd(e,i){e.setDate(e.getDate()+i);}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return [];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(o,n).map((d,c)=>({weekDay:d,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>H(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true");}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return H(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((i,o,r)=>(r%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})));}_preventDefault(e){e.preventDefault();}__getWeekNumber(e){const i=e.reduce((o,r)=>!o&&r?r:o);return Cd(i)}__getDayAriaLabel(e){if(!e)return "";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
|
|
9985
9985
|
* @license
|
|
9986
9986
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
9987
9987
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9988
|
-
*/const Xd=p
|
|
9988
|
+
*/const Xd=p`
|
|
9989
9989
|
:host {
|
|
9990
9990
|
display: block;
|
|
9991
9991
|
}
|
|
@@ -10045,7 +10045,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10045
10045
|
* @license
|
|
10046
10046
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10047
10047
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10048
|
-
*/m
|
|
10048
|
+
*/m("vaadin-month-calendar",Xd,{moduleId:"vaadin-month-calendar-styles"});class Jd extends Gd(x$1(b)){static get template(){return g`
|
|
10049
10049
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
10050
10050
|
<table
|
|
10051
10051
|
id="monthGrid"
|
|
@@ -10087,19 +10087,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10087
10087
|
</template>
|
|
10088
10088
|
</tbody>
|
|
10089
10089
|
</table>
|
|
10090
|
-
`}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>yi(new Date),d=t<yi(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return H
|
|
10090
|
+
`}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>yi$1(new Date),d=t<yi$1(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return H(t,e)}__isDaySelected(t,e){return H(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,o){return !ve(t,e,i,o)}__getDayAriaDisabled(t,e,i,o){if(!(t===void 0||e===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(t,e,i,o))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}v(Jd);/**
|
|
10091
10091
|
* @license
|
|
10092
10092
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10093
10093
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10094
|
-
*/class ro{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this);}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery);}hostDisconnected(){this._removeListener();}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler);}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null;}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches);}}/**
|
|
10094
|
+
*/class ro$1{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this);}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery);}hostDisconnected(){this._removeListener();}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler);}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null;}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches);}}/**
|
|
10095
10095
|
* @license
|
|
10096
10096
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10097
10097
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10098
|
-
*/const Qd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){er(this.$.scrollers,"pan-y"),B$1(this.$.scrollers,"track",this._track.bind(this)),B$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),B$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),B$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new ro(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new T$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),B$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new T$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),B$1(e,"tap",this._cancel.bind(this)),this._cancelButton=e;}})),this.__initMonthScroller(),this.__initYearScroller();}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0);}focusCancel(){this._cancelButton.focus();}scrollToDate(e,i){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new T$1(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll();}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart();}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i);}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new T$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),B$1(e,"tap",i=>{this._onYearTap(i);}),e.addEventListener("custom-scroll",()=>{this._onYearScroll();}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart();}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")];}),this._yearScroller=e;}}));}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel);}__updateTodayButton(e,i,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,c,h){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,c?u.setAttribute("theme",c):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):r.removeAttribute("theme");});}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e);}_focusedDateChanged(e){this.revealDate(e);}revealDate(e,i=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=z$1.debounce(this._debouncer,Y$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(to(e)):o}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth();}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0);}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0);}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,c,h,u)=>(d/=u/2,d<1?h/2*d*d+c:(d-=1,-h/2*(d*(d-2)-1)+c));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const c=d-n;if(c<this.scrollDuration){const h=r(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l);}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1);};window.requestAnimationFrame(l);}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth});}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate");}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller();}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","");}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth;}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`);}_yearAfterXMonths(e){return vr(e).getFullYear()}_differenceInMonths(e,i){return (e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("");}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}));}_cancel(){this.focusedDate=this.selectedDate,this._close();}_preventDefault(e){e.preventDefault();}__toggleDate(e){H$1(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e);}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation());}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today");}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel");}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&H$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return Ce(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return Ce(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ji(this,()=>{io(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(_r(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return ve(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
|
|
10098
|
+
*/const Qd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){er$1(this.$.scrollers,"pan-y"),B$1(this.$.scrollers,"track",this._track.bind(this)),B$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),B$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),B$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new ro$1(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new T(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),B$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new T(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),B$1(e,"tap",this._cancel.bind(this)),this._cancelButton=e;}})),this.__initMonthScroller(),this.__initYearScroller();}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0);}focusCancel(){this._cancelButton.focus();}scrollToDate(e,i){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new T(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll();}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart();}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i);}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new T(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),B$1(e,"tap",i=>{this._onYearTap(i);}),e.addEventListener("custom-scroll",()=>{this._onYearScroll();}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart();}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")];}),this._yearScroller=e;}}));}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel);}__updateTodayButton(e,i,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,c,h){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,c?u.setAttribute("theme",c):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):r.removeAttribute("theme");});}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e);}_focusedDateChanged(e){this.revealDate(e);}revealDate(e,i=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=z$1.debounce(this._debouncer,Y$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(to$1(e)):o}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth();}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0);}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0);}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,c,h,u)=>(d/=u/2,d<1?h/2*d*d+c:(d-=1,-h/2*(d*(d-2)-1)+c));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const c=d-n;if(c<this.scrollDuration){const h=r(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l);}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1);};window.requestAnimationFrame(l);}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth});}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate");}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller();}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","");}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth;}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`);}_yearAfterXMonths(e){return vr$1(e).getFullYear()}_differenceInMonths(e,i){return (e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("");}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}));}_cancel(){this.focusedDate=this.selectedDate,this._close();}_preventDefault(e){e.preventDefault();}__toggleDate(e){H(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e);}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation());}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today");}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel");}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}));}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&H(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return Ce$1(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return Ce$1(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ji$1(this,()=>{io$1(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(_r$1(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return ve(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
|
|
10099
10099
|
* @license
|
|
10100
10100
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10101
10101
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10102
|
-
*/const Zd=p
|
|
10102
|
+
*/const Zd=p`
|
|
10103
10103
|
:host {
|
|
10104
10104
|
display: flex;
|
|
10105
10105
|
flex-direction: column;
|
|
@@ -10163,7 +10163,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10163
10163
|
* @license
|
|
10164
10164
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10165
10165
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10166
|
-
*/m
|
|
10166
|
+
*/m("vaadin-date-picker-overlay-content",Zd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class ec extends Qd(F$1(x$1(M(b)))){static get template(){return g`
|
|
10167
10167
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
10168
10168
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
10169
10169
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -10183,23 +10183,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10183
10183
|
<slot name="today-button"></slot>
|
|
10184
10184
|
<slot name="cancel-button"></slot>
|
|
10185
10185
|
</div>
|
|
10186
|
-
`}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}v
|
|
10186
|
+
`}static get is(){return "vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers();}}v(ec);/**
|
|
10187
10187
|
* @license
|
|
10188
10188
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10189
10189
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10190
|
-
*/const Qt=new WeakMap;function tc(s){return Qt.has(s)||Qt.set(s,new Set),Qt.get(s)}function ic(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const Cr=w$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=tc(e);this.slotStyles.forEach(o=>{i.has(o)||(ic(o,e),i.add(o));});}});/**
|
|
10190
|
+
*/const Qt$1=new WeakMap;function tc(s){return Qt$1.has(s)||Qt$1.set(s,new Set),Qt$1.get(s)}function ic(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const Cr$1=w$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=tc(e);this.slotStyles.forEach(o=>{i.has(o)||(ic(o,e),i.add(o));});}});/**
|
|
10191
10191
|
* @license
|
|
10192
10192
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10193
10193
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10194
|
-
*/const oc=s=>class extends Ke(re(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),gi||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
|
|
10194
|
+
*/const oc=s=>class extends Ke$1(re$1(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),gi$1||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
|
|
10195
10195
|
* @license
|
|
10196
10196
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10197
10197
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10198
|
-
*/const no=w$1(s=>class extends ji(Yi(Ke(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}__isValidConstraint(e){return !!e||e===0}});/**
|
|
10198
|
+
*/const no$1=w$1(s=>class extends ji$1(Yi$1(Ke$1(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}));}__isValidConstraint(e){return !!e||e===0}});/**
|
|
10199
10199
|
* @license
|
|
10200
10200
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10201
10201
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10202
|
-
*/const Tt$1=s=>class extends Cr(kt$1(no(It(oc(re(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
|
|
10202
|
+
*/const Tt$1=s=>class extends Cr$1(kt$1(no$1(It$1(oc(re$1(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
|
|
10203
10203
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
10204
10204
|
font: inherit;
|
|
10205
10205
|
color: inherit;
|
|
@@ -10208,7 +10208,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10208
10208
|
* @license
|
|
10209
10209
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
10210
10210
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10211
|
-
*/const sc=p
|
|
10211
|
+
*/const sc=p`
|
|
10212
10212
|
[part='clear-button'] {
|
|
10213
10213
|
display: none;
|
|
10214
10214
|
cursor: default;
|
|
@@ -10225,7 +10225,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10225
10225
|
* @license
|
|
10226
10226
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
10227
10227
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10228
|
-
*/const Er=p
|
|
10228
|
+
*/const Er$1=p`
|
|
10229
10229
|
:host {
|
|
10230
10230
|
display: inline-flex;
|
|
10231
10231
|
outline: none;
|
|
@@ -10263,7 +10263,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10263
10263
|
* @license
|
|
10264
10264
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
10265
10265
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10266
|
-
*/const Ar=p
|
|
10266
|
+
*/const Ar$1=p`
|
|
10267
10267
|
[class$='container'] {
|
|
10268
10268
|
display: flex;
|
|
10269
10269
|
flex-direction: column;
|
|
@@ -10275,7 +10275,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10275
10275
|
* @license
|
|
10276
10276
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
10277
10277
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10278
|
-
*/const Dt=[Er,Ar,sc];/**
|
|
10278
|
+
*/const Dt$1=[Er$1,Ar$1,sc];/**
|
|
10279
10279
|
* @license
|
|
10280
10280
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
10281
10281
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10283,15 +10283,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10283
10283
|
* @license
|
|
10284
10284
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10285
10285
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10286
|
-
*/class kr{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1);}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0));}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none");}}/**
|
|
10286
|
+
*/class kr$1{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1);}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0));}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none");}}/**
|
|
10287
10287
|
* @license
|
|
10288
10288
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10289
10289
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10290
|
-
*/const rc=s=>class extends Ze(F$1(kt$1(no(re(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Se(this.referenceDate):new Date;a=Ed(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Qi},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!At$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ro(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new kr(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Se(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(to(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||ve(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return kd(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=Se(e);if(e&&!o){this.value=i;return}e?H$1(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,c){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=c);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=ur(n);}_getInitialPosition(){const e=Se(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||ve(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?_r(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,H$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return Se(e)}};/**
|
|
10290
|
+
*/const rc=s=>class extends Ze(F$1(kt$1(no$1(re$1(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Se$1(this.referenceDate):new Date;a=Ed(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Qi$1},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!At$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ro$1(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new kr$1(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Se$1(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(to$1(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||ve(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return kd(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=Se$1(e);if(e&&!o){this.value=i;return}e?H(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,c){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=c);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=ur$1(n);}_getInitialPosition(){const e=Se$1(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||ve(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?_r$1(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,H(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return Se$1(e)}};/**
|
|
10291
10291
|
* @license
|
|
10292
10292
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10293
10293
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10294
|
-
*/const nc=p
|
|
10294
|
+
*/const nc=p`
|
|
10295
10295
|
:host([opened]) {
|
|
10296
10296
|
pointer-events: auto;
|
|
10297
10297
|
}
|
|
@@ -10308,7 +10308,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10308
10308
|
* @license
|
|
10309
10309
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10310
10310
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10311
|
-
*/m
|
|
10311
|
+
*/m("vaadin-date-picker",[Dt$1,nc],{moduleId:"vaadin-date-picker-styles"});class ac extends rc(Tt$1(x$1(N$1(b)))){static get is(){return "vaadin-date-picker"}static get template(){return g`
|
|
10312
10312
|
<div class="vaadin-date-picker-container">
|
|
10313
10313
|
<div part="label">
|
|
10314
10314
|
<slot name="label"></slot>
|
|
@@ -10350,11 +10350,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10350
10350
|
></vaadin-date-picker-overlay>
|
|
10351
10351
|
|
|
10352
10352
|
<slot name="tooltip"></slot>
|
|
10353
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new Xe(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this));}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault();}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open();}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0;}}v
|
|
10353
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new Xe$1(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this));}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault();}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open();}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0;}}v(ac);/**
|
|
10354
10354
|
* @license
|
|
10355
10355
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
10356
10356
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10357
|
-
*/m
|
|
10357
|
+
*/m("vaadin-text-field",ae$1,{moduleId:"lumo-text-field-styles"});/**
|
|
10358
10358
|
* @license
|
|
10359
10359
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10360
10360
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10362,11 +10362,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10362
10362
|
* @license
|
|
10363
10363
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10364
10364
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10365
|
-
*/const dc=s=>class extends lc(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Xe(this.inputElement,this._labelController));}};/**
|
|
10365
|
+
*/const dc=s=>class extends lc(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge$1(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Xe$1(this.inputElement,this._labelController));}};/**
|
|
10366
10366
|
* @license
|
|
10367
10367
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
10368
10368
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10369
|
-
*/m
|
|
10369
|
+
*/m("vaadin-text-field",Dt$1,{moduleId:"vaadin-text-field-styles"});class Ir extends dc(x$1(N$1(b))){static get is(){return "vaadin-text-field"}static get template(){return g`
|
|
10370
10370
|
<div class="vaadin-field-container">
|
|
10371
10371
|
<div part="label">
|
|
10372
10372
|
<slot name="label"></slot>
|
|
@@ -10395,11 +10395,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10395
10395
|
</div>
|
|
10396
10396
|
</div>
|
|
10397
10397
|
<slot name="tooltip"></slot>
|
|
10398
|
-
`}static get properties(){return {maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new U$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}v
|
|
10398
|
+
`}static get properties(){return {maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new U$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController);}}v(Ir);/**
|
|
10399
10399
|
* @license
|
|
10400
10400
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10401
10401
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10402
|
-
*/const cc=p
|
|
10402
|
+
*/const cc=p`
|
|
10403
10403
|
:host {
|
|
10404
10404
|
position: absolute;
|
|
10405
10405
|
right: 0;
|
|
@@ -10412,11 +10412,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10412
10412
|
background: transparent;
|
|
10413
10413
|
outline: none;
|
|
10414
10414
|
}
|
|
10415
|
-
`;m
|
|
10415
|
+
`;m("vaadin-password-field-button",[lr$1,cc],{moduleId:"lumo-password-field-button"});/**
|
|
10416
10416
|
* @license
|
|
10417
10417
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10418
10418
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10419
|
-
*/const hc=p
|
|
10419
|
+
*/const hc=p`
|
|
10420
10420
|
[part='reveal-button']::before {
|
|
10421
10421
|
content: var(--lumo-icons-eye);
|
|
10422
10422
|
}
|
|
@@ -10434,27 +10434,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10434
10434
|
[part='reveal-button'][hidden] {
|
|
10435
10435
|
display: none !important;
|
|
10436
10436
|
}
|
|
10437
|
-
`;m
|
|
10437
|
+
`;m("vaadin-password-field",[ae$1,hc],{moduleId:"lumo-password-field"});/**
|
|
10438
10438
|
* @license
|
|
10439
10439
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10440
10440
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10441
|
-
*/m
|
|
10441
|
+
*/m("vaadin-password-field-button",fr$1,{moduleId:"vaadin-password-field-button-styles"});class uc extends eo$1(M(x$1(b))){static get is(){return "vaadin-password-field-button"}static get template(){return g``}}v(uc);/**
|
|
10442
10442
|
* @license
|
|
10443
10443
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10444
10444
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10445
|
-
*/const pc=s=>class extends Cr(be(ne(Ke(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
|
|
10445
|
+
*/const pc=s=>class extends Cr$1(be(ne$1(Ke$1(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
|
|
10446
10446
|
${e} [slot="input"]::-ms-reveal {
|
|
10447
10447
|
display: none;
|
|
10448
10448
|
}
|
|
10449
|
-
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new T
|
|
10449
|
+
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new T(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown);}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off");}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value;}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return !(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else {const i=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!i);}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal);}__i18nChanged(e){this.__updateAriaLabel(e);}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e);}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible);}_onRevealButtonClick(){this._togglePasswordVisibility();}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")));}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false");}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e);}_disabledChanged(e,i){super._disabledChanged(e,i),this._revealNode&&(this._revealNode.disabled=e);}};/**
|
|
10450
10450
|
* @license
|
|
10451
10451
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10452
10452
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10453
|
-
*/const mc=g
|
|
10453
|
+
*/const mc=g`
|
|
10454
10454
|
<div part="reveal-button" slot="suffix">
|
|
10455
10455
|
<slot name="reveal"></slot>
|
|
10456
10456
|
</div>
|
|
10457
|
-
`;let rt$1;class fc extends pc(Ir){static get is(){return "vaadin-password-field"}static get template(){if(!rt$1){rt$1=super.template.cloneNode(!0);const t=mc.content.querySelector('[part="reveal-button"]');rt$1.content.querySelector('[part="input-field"]').appendChild(t);}return rt$1}}v
|
|
10457
|
+
`;let rt$1;class fc extends pc(Ir){static get is(){return "vaadin-password-field"}static get template(){if(!rt$1){rt$1=super.template.cloneNode(!0);const t=mc.content.querySelector('[part="reveal-button"]');rt$1.content.querySelector('[part="input-field"]').appendChild(t);}return rt$1}}v(fc);const Ot$1=p`
|
|
10458
10458
|
:host {
|
|
10459
10459
|
display: flex;
|
|
10460
10460
|
align-items: center;
|
|
@@ -10538,7 +10538,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10538
10538
|
width: var(--lumo-icon-size-m);
|
|
10539
10539
|
height: var(--lumo-icon-size-m);
|
|
10540
10540
|
}
|
|
10541
|
-
`;m
|
|
10541
|
+
`;m("vaadin-item",Ot$1,{moduleId:"lumo-item"});const Sr$1=p`
|
|
10542
10542
|
:host {
|
|
10543
10543
|
transition: background-color 100ms;
|
|
10544
10544
|
overflow: hidden;
|
|
@@ -10550,11 +10550,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10550
10550
|
:host([focused]:not([disabled])) {
|
|
10551
10551
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
10552
10552
|
}
|
|
10553
|
-
`;m
|
|
10553
|
+
`;m("vaadin-combo-box-item",[Ot$1,Sr$1],{moduleId:"lumo-combo-box-item"});/**
|
|
10554
10554
|
* @license
|
|
10555
10555
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
10556
10556
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10557
|
-
*/const Pr=p
|
|
10557
|
+
*/const Pr$1=p`
|
|
10558
10558
|
[part~='loader'] {
|
|
10559
10559
|
box-sizing: border-box;
|
|
10560
10560
|
width: var(--lumo-icon-size-s);
|
|
@@ -10596,7 +10596,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10596
10596
|
transform: rotate(360deg);
|
|
10597
10597
|
}
|
|
10598
10598
|
}
|
|
10599
|
-
`,Tr=p
|
|
10599
|
+
`,Tr$1=p`
|
|
10600
10600
|
[part='content'] {
|
|
10601
10601
|
padding: 0;
|
|
10602
10602
|
}
|
|
@@ -10617,7 +10617,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10617
10617
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
10618
10618
|
margin-bottom: var(--lumo-space-xs);
|
|
10619
10619
|
}
|
|
10620
|
-
`,Dr=p
|
|
10620
|
+
`,Dr=p`
|
|
10621
10621
|
[part~='loader'] {
|
|
10622
10622
|
position: absolute;
|
|
10623
10623
|
z-index: 1;
|
|
@@ -10625,24 +10625,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10625
10625
|
top: var(--lumo-space-s);
|
|
10626
10626
|
margin-inline: auto 0;
|
|
10627
10627
|
}
|
|
10628
|
-
`;m
|
|
10628
|
+
`;m("vaadin-combo-box-overlay",[ye,St,Tr$1,Pr$1,Dr,p`
|
|
10629
10629
|
:host {
|
|
10630
10630
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
10631
10631
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
10632
10632
|
}
|
|
10633
|
-
`],{moduleId:"lumo-combo-box-overlay"});const _c=p
|
|
10633
|
+
`],{moduleId:"lumo-combo-box-overlay"});const _c=p`
|
|
10634
10634
|
[part='toggle-button']::before {
|
|
10635
10635
|
content: var(--lumo-icons-dropdown);
|
|
10636
10636
|
}
|
|
10637
|
-
`;m
|
|
10637
|
+
`;m("vaadin-combo-box",[ae$1,_c],{moduleId:"lumo-combo-box"});/**
|
|
10638
10638
|
* @license
|
|
10639
10639
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10640
10640
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10641
|
-
*/const Or=s=>class extends s{static get properties(){return {index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return ["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return [...super.observedAttributes,"hidden"]}attributeChangedCallback(e,i,o){e==="hidden"&&o!==null?this.index=void 0:super.attributeChangedCallback(e,i,o);}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e);}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e);}__rendererOrItemChanged(e,i,o){o===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()));}__updateLabel(e,i){i||(this.textContent=e);}};/**
|
|
10641
|
+
*/const Or$1=s=>class extends s{static get properties(){return {index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return ["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return [...super.observedAttributes,"hidden"]}attributeChangedCallback(e,i,o){e==="hidden"&&o!==null?this.index=void 0:super.attributeChangedCallback(e,i,o);}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e);}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e);}__rendererOrItemChanged(e,i,o){o===void 0||i===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()));}__updateLabel(e,i){i||(this.textContent=e);}};/**
|
|
10642
10642
|
* @license
|
|
10643
10643
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10644
10644
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10645
|
-
*/class vc extends Or(x
|
|
10645
|
+
*/class vc extends Or$1(x$1(M(b))){static get template(){return g`
|
|
10646
10646
|
<style>
|
|
10647
10647
|
:host {
|
|
10648
10648
|
display: block;
|
|
@@ -10656,15 +10656,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10656
10656
|
<div part="content">
|
|
10657
10657
|
<slot></slot>
|
|
10658
10658
|
</div>
|
|
10659
|
-
`}static get is(){return "vaadin-combo-box-item"}}v
|
|
10659
|
+
`}static get is(){return "vaadin-combo-box-item"}}v(vc);/**
|
|
10660
10660
|
* @license
|
|
10661
10661
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10662
10662
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10663
|
-
*/const zr=s=>class extends Zi(s){static get observers(){return ["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200;}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i);}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return !i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Hi(e.composedPath()[0])&&e.preventDefault();}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i);}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition());}};/**
|
|
10663
|
+
*/const zr$1=s=>class extends Zi$1(s){static get observers(){return ["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200;}connectedCallback(){super.connectedCallback();const e=this._comboBox,i=e&&e.getAttribute("dir");i&&this.setAttribute("dir",i);}_shouldCloseOnOutsideClick(e){const i=e.composedPath();return !i.includes(this.positionTarget)&&!i.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Hi$1(e.composedPath()[0])&&e.preventDefault();}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);i===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i);}_setOverlayWidth(e,i){e&&i&&(this._updateOverlayWidth(),this._updatePosition());}};/**
|
|
10664
10664
|
* @license
|
|
10665
10665
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10666
10666
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10667
|
-
*/const gc=p
|
|
10667
|
+
*/const gc=p`
|
|
10668
10668
|
#overlay {
|
|
10669
10669
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
10670
10670
|
}
|
|
@@ -10674,13 +10674,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10674
10674
|
flex-direction: column;
|
|
10675
10675
|
height: 100%;
|
|
10676
10676
|
}
|
|
10677
|
-
`;m
|
|
10677
|
+
`;m("vaadin-combo-box-overlay",[Je$1,gc],{moduleId:"vaadin-combo-box-overlay-styles"});class bc extends zr$1(Qe$1(M(x$1(b)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return g`
|
|
10678
10678
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
10679
10679
|
<div part="overlay" id="overlay">
|
|
10680
10680
|
<div part="loader"></div>
|
|
10681
10681
|
<div part="content" id="content"><slot></slot></div>
|
|
10682
10682
|
</div>
|
|
10683
|
-
`}}v
|
|
10683
|
+
`}}v(bc);/**
|
|
10684
10684
|
* @license
|
|
10685
10685
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
10686
10686
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10692,11 +10692,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10692
10692
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
10693
10693
|
* Code distributed by Google as part of the polymer project is also
|
|
10694
10694
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10695
|
-
*/const Jo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),yc=Jo&&Jo[1]>=8,Qo=3,xc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),_t$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=h-d):(t=this._physicalEnd,e=c-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Qo,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Ys):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),_t$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Qo));},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ue));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!yc&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(De(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null;},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0;},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1);},Ue);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=z$1.debounce(this._debouncers[s],e,t.bind(this)),Ks(this._debouncers[s]);}};/**
|
|
10695
|
+
*/const Jo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),yc=Jo&&Jo[1]>=8,Qo=3,xc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),_t$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=h-d):(t=this._physicalEnd,e=c-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Qo,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Ys):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),_t$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Qo));},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ue$1));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!yc&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(De$1(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null;},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0;},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1);},Ue$1);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=z$1.debounce(this._debouncers[s],e,t.bind(this)),Ks(this._debouncers[s]);}};/**
|
|
10696
10696
|
* @license
|
|
10697
10697
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10698
10698
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10699
|
-
*/const wc=1e5,Zt=1e3;class Mr{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0;}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements();}));}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Zt?(i=t,this._vidxOffset=0):(i=Zt,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),De(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){De();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=z$1.debounce(this.__placeholderClearDebouncer,Ue,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),De(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),De(),this._debounce("_update",this._update,_t$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,wc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=z$1.debounce(this.__fixInvalidItemPositioningDebouncer,Y$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=z$1.debounce(this.__scrollReorderDebouncer,Y$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=z$1.debounce(this.__debouncerWheelAnimationFrame,Ue,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=z$1.debounce(this._debouncerIgnoreNewWheel,Y$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(dd){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Zt,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(Mr.prototype,xc);class Cc{constructor(t){this.__adapter=new Mr(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
|
|
10699
|
+
*/const wc=1e5,Zt$1=1e3;class Mr$1{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0;}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements();}));}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Zt$1?(i=t,this._vidxOffset=0):(i=Zt$1,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),De$1(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){De$1();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=z$1.debounce(this.__placeholderClearDebouncer,Ue$1,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),De$1(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),De$1(),this._debounce("_update",this._update,_t$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,wc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=z$1.debounce(this.__fixInvalidItemPositioningDebouncer,Y$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=z$1.debounce(this.__scrollReorderDebouncer,Y$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=z$1.debounce(this.__debouncerWheelAnimationFrame,Ue$1,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=z$1.debounce(this._debouncerIgnoreNewWheel,Y$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(dd){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Zt$1,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(Mr$1.prototype,xc);class Cc{constructor(t){this.__adapter=new Mr$1(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
|
|
10700
10700
|
* @license
|
|
10701
10701
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10702
10702
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10704,11 +10704,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10704
10704
|
* @license
|
|
10705
10705
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10706
10706
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10707
|
-
*/const Nr=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Ye()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof G$1?!1:o&&e!==void 0&&i!==void 0?bt$1(o,e)===bt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new Cc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof G$1&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
10707
|
+
*/const Nr$1=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Ye$1()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof G$1?!1:o&&e!==void 0&&i!==void 0?bt$1(o,e)===bt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new Cc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof G$1&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
10708
10708
|
* @license
|
|
10709
10709
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10710
10710
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10711
|
-
*/class Ec extends Nr(b
|
|
10711
|
+
*/class Ec extends Nr$1(b){static get is(){return "vaadin-combo-box-scroller"}static get template(){return g`
|
|
10712
10712
|
<style>
|
|
10713
10713
|
:host {
|
|
10714
10714
|
display: block;
|
|
@@ -10735,23 +10735,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10735
10735
|
<div id="selector">
|
|
10736
10736
|
<slot></slot>
|
|
10737
10737
|
</div>
|
|
10738
|
-
`}}v
|
|
10738
|
+
`}}v(Ec);/**
|
|
10739
10739
|
* @license
|
|
10740
10740
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10741
10741
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10742
|
-
*/const Ac=s=>class extends no(s){static get properties(){return {pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"pattern"]}static get constraints(){return [...super.constraints,"pattern"]}};/**
|
|
10742
|
+
*/const Ac=s=>class extends no$1(s){static get properties(){return {pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"pattern"]}static get constraints(){return [...super.constraints,"pattern"]}};/**
|
|
10743
10743
|
* @license
|
|
10744
10744
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10745
10745
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10746
|
-
*/function yt$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return yt$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function Lr({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=Lr({getItemId:s},r,e,i+1,n+1);if(a)return a}}function Br(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?Br(r,e,i+o+1):i+o}/**
|
|
10746
|
+
*/function yt$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return yt$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function Lr$1({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=Lr$1({getItemId:s},r,e,i+1,n+1);if(a)return a}}function Br$1(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?Br$1(r,e,i+o+1):i+o}/**
|
|
10747
10747
|
* @license
|
|
10748
10748
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10749
10749
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10750
|
-
*/class ao{constructor(t,e,i,o,r){k$1(this,"context");k$1(this,"pageSize");k$1(this,"items",[]);k$1(this,"pendingRequests",{});k$1(this,"__subCacheByIndex",{});k$1(this,"__size",0);k$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new ao(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=yt$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=yt$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
|
|
10750
|
+
*/class ao$1{constructor(t,e,i,o,r){k$1(this,"context");k$1(this,"pageSize");k$1(this,"items",[]);k$1(this,"pendingRequests",{});k$1(this,"__subCacheByIndex",{});k$1(this,"__size",0);k$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new ao$1(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=yt$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=yt$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
|
|
10751
10751
|
* @license
|
|
10752
10752
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10753
10753
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10754
|
-
*/class kc extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:c}){super();k$1(this,"host");k$1(this,"dataProvider");k$1(this,"dataProviderParams");k$1(this,"pageSize");k$1(this,"isExpanded");k$1(this,"getItemId");k$1(this,"rootCache");k$1(this,"placeholder");k$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=c,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return yt$1(this.rootCache,e)}getItemContext(e){return Lr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Br(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new ao(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=we(we({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
|
|
10754
|
+
*/class kc extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:c}){super();k$1(this,"host");k$1(this,"dataProvider");k$1(this,"dataProviderParams");k$1(this,"pageSize");k$1(this,"isExpanded");k$1(this,"getItemId");k$1(this,"rootCache");k$1(this,"placeholder");k$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=c,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return yt$1(this.rootCache,e)}getItemContext(e){return Lr$1({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Br$1(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new ao$1(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=we$1(we$1({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
|
|
10755
10755
|
* @license
|
|
10756
10756
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10757
10757
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10759,15 +10759,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10759
10759
|
* @license
|
|
10760
10760
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10761
10761
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10762
|
-
*/function zt(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
|
|
10762
|
+
*/function zt$1(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
|
|
10763
10763
|
* @license
|
|
10764
10764
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10765
10765
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10766
|
-
*/function Zo(s){return s!=null}function es(s,t){return s.findIndex(e=>e instanceof G$1?!1:t(e))}const Vr=s=>class extends Ze(F$1(Yi(ne(re(Ke(be(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this);}get _tagNamePrefix(){return "vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown));}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),zt(this),this.addController(new kr(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,c,h){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Ui(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!gi&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?bt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?bt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel());}else this.open();}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else {const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{gi&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit();}_onOpened(){this._lastCommittedValue=this.value;}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue();}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1;}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else {const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems);}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange();}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem);}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Zo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0);}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value);}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Zo(i)?-1:es(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:es(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof G$1)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(At$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
|
|
10766
|
+
*/function Zo(s){return s!=null}function es(s,t){return s.findIndex(e=>e instanceof G$1?!1:t(e))}const Vr=s=>class extends Ze(F$1(Yi$1(ne$1(re$1(Ke$1(be(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this);}get _tagNamePrefix(){return "vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown));}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),zt$1(this),this.addController(new kr$1(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,c,h){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Ui$1(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!gi$1&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?bt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?bt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel());}else this.open();}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else {const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{gi$1&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit();}_onOpened(){this._lastCommittedValue=this.value;}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue();}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1;}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else {const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems);}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange();}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem);}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Zo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0);}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value);}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Zo(i)?-1:es(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:es(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof G$1)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(At$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
|
|
10767
10767
|
* @license
|
|
10768
10768
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
10769
10769
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10770
|
-
*/m
|
|
10770
|
+
*/m("vaadin-combo-box",Dt$1,{moduleId:"vaadin-combo-box-styles"});class Ic extends Fr(Vr(Ac(Tt$1(x$1(N$1(b)))))){static get is(){return "vaadin-combo-box"}static get template(){return g`
|
|
10771
10771
|
<style>
|
|
10772
10772
|
:host([opened]) {
|
|
10773
10773
|
pointer-events: auto;
|
|
@@ -10812,11 +10812,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10812
10812
|
></vaadin-combo-box-overlay>
|
|
10813
10813
|
|
|
10814
10814
|
<slot name="tooltip"></slot>
|
|
10815
|
-
`}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Xe(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}v
|
|
10815
|
+
`}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge$1(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Xe$1(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}v(Ic);/**
|
|
10816
10816
|
* @license
|
|
10817
10817
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10818
10818
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10819
|
-
*/const Sc=p
|
|
10819
|
+
*/const Sc=p`
|
|
10820
10820
|
:host {
|
|
10821
10821
|
font-size: var(--lumo-font-size-xxs);
|
|
10822
10822
|
line-height: 1;
|
|
@@ -10905,27 +10905,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10905
10905
|
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
10906
10906
|
pointer-events: none;
|
|
10907
10907
|
}
|
|
10908
|
-
`;m
|
|
10908
|
+
`;m("vaadin-multi-select-combo-box-chip",[Xi$1,Sc],{moduleId:"lumo-multi-select-combo-box-chip"});/**
|
|
10909
10909
|
* @license
|
|
10910
10910
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10911
10911
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10912
|
-
*/const Pc=p
|
|
10912
|
+
*/const Pc=p`
|
|
10913
10913
|
@media (any-hover: hover) {
|
|
10914
10914
|
:host(:hover[readonly]) {
|
|
10915
10915
|
background-color: transparent;
|
|
10916
10916
|
cursor: default;
|
|
10917
10917
|
}
|
|
10918
10918
|
}
|
|
10919
|
-
`;m
|
|
10919
|
+
`;m("vaadin-multi-select-combo-box-item",[Ot$1,Sr$1,Pc],{moduleId:"lumo-multi-select-combo-box-item"});m("vaadin-multi-select-combo-box-overlay",[ye,St,Tr$1,Pr$1,Dr,p`
|
|
10920
10920
|
:host {
|
|
10921
10921
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
10922
10922
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
10923
10923
|
}
|
|
10924
|
-
`],{moduleId:"lumo-multi-select-combo-box-overlay"});m
|
|
10924
|
+
`],{moduleId:"lumo-multi-select-combo-box-overlay"});m("vaadin-multi-select-combo-box-container",p`
|
|
10925
10925
|
:host([auto-expand-vertically]) {
|
|
10926
10926
|
padding-block: var(--lumo-space-xs);
|
|
10927
10927
|
}
|
|
10928
|
-
`,{moduleId:"lumo-multi-select-combo-box-container"});const Tc=p
|
|
10928
|
+
`,{moduleId:"lumo-multi-select-combo-box-container"});const Tc=p`
|
|
10929
10929
|
:host([has-value]) {
|
|
10930
10930
|
padding-inline-start: 0;
|
|
10931
10931
|
}
|
|
@@ -10978,11 +10978,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
10978
10978
|
color: var(--lumo-contrast-60pct);
|
|
10979
10979
|
cursor: var(--lumo-clickable-cursor);
|
|
10980
10980
|
}
|
|
10981
|
-
`;m
|
|
10981
|
+
`;m("vaadin-multi-select-combo-box",[ae$1,Tc],{moduleId:"lumo-multi-select-combo-box"});/**
|
|
10982
10982
|
* @license
|
|
10983
10983
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10984
10984
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10985
|
-
*/class Dc extends x(b
|
|
10985
|
+
*/class Dc extends x$1(b){static get is(){return "vaadin-multi-select-combo-box-chip"}static get properties(){return {disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return g`
|
|
10986
10986
|
<style>
|
|
10987
10987
|
:host {
|
|
10988
10988
|
display: inline-flex;
|
|
@@ -11011,11 +11011,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11011
11011
|
</style>
|
|
11012
11012
|
<div part="label">[[label]]</div>
|
|
11013
11013
|
<div part="remove-button" on-click="_onRemoveClick"></div>
|
|
11014
|
-
`}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}));}}v
|
|
11014
|
+
`}_onRemoveClick(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}));}}v(Dc);/**
|
|
11015
11015
|
* @license
|
|
11016
11016
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11017
11017
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11018
|
-
*/m
|
|
11018
|
+
*/m("vaadin-multi-select-combo-box-container",p`
|
|
11019
11019
|
#wrapper {
|
|
11020
11020
|
display: flex;
|
|
11021
11021
|
width: 100%;
|
|
@@ -11025,11 +11025,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11025
11025
|
:host([auto-expand-vertically]) #wrapper {
|
|
11026
11026
|
flex-wrap: wrap;
|
|
11027
11027
|
}
|
|
11028
|
-
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let nt$1;class Oc extends dr{static get is(){return "vaadin-multi-select-combo-box-container"}static get template(){if(!nt$1){nt$1=super.template.cloneNode(!0);const t=nt$1.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1]);}return nt$1}static get properties(){return {autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}v
|
|
11028
|
+
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let nt$1;class Oc extends dr$1{static get is(){return "vaadin-multi-select-combo-box-container"}static get template(){if(!nt$1){nt$1=super.template.cloneNode(!0);const t=nt$1.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1]);}return nt$1}static get properties(){return {autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}v(Oc);/**
|
|
11029
11029
|
* @license
|
|
11030
11030
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11031
11031
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11032
|
-
*/class zc extends Or(x
|
|
11032
|
+
*/class zc extends Or$1(x$1(M(b))){static get is(){return "vaadin-multi-select-combo-box-item"}static get template(){return g`
|
|
11033
11033
|
<style>
|
|
11034
11034
|
:host {
|
|
11035
11035
|
display: block;
|
|
@@ -11043,11 +11043,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11043
11043
|
<div part="content">
|
|
11044
11044
|
<slot></slot>
|
|
11045
11045
|
</div>
|
|
11046
|
-
`}}v
|
|
11046
|
+
`}}v(zc);/**
|
|
11047
11047
|
* @license
|
|
11048
11048
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11049
11049
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11050
|
-
*/const Mc=p
|
|
11050
|
+
*/const Mc=p`
|
|
11051
11051
|
#overlay {
|
|
11052
11052
|
width: var(
|
|
11053
11053
|
--vaadin-multi-select-combo-box-overlay-width,
|
|
@@ -11060,17 +11060,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11060
11060
|
flex-direction: column;
|
|
11061
11061
|
height: 100%;
|
|
11062
11062
|
}
|
|
11063
|
-
`;m
|
|
11063
|
+
`;m("vaadin-multi-select-combo-box-overlay",[Je$1,Mc],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Nc extends zr$1(Qe$1(M(x$1(b)))){static get is(){return "vaadin-multi-select-combo-box-overlay"}static get template(){return g`
|
|
11064
11064
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
11065
11065
|
<div part="overlay" id="overlay">
|
|
11066
11066
|
<div part="loader"></div>
|
|
11067
11067
|
<div part="content" id="content"><slot></slot></div>
|
|
11068
11068
|
</div>
|
|
11069
|
-
`}}v
|
|
11069
|
+
`}}v(Nc);/**
|
|
11070
11070
|
* @license
|
|
11071
11071
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11072
11072
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11073
|
-
*/class Lc extends Nr(b
|
|
11073
|
+
*/class Lc extends Nr$1(b){static get is(){return "vaadin-multi-select-combo-box-scroller"}static get template(){return g`
|
|
11074
11074
|
<style>
|
|
11075
11075
|
:host {
|
|
11076
11076
|
display: block;
|
|
@@ -11097,11 +11097,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11097
11097
|
<div id="selector">
|
|
11098
11098
|
<slot></slot>
|
|
11099
11099
|
</div>
|
|
11100
|
-
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true");}_isItemSelected(t,e,i){return t instanceof G$1||this.owner.readonly?!1:this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly);}}v
|
|
11100
|
+
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true");}_isItemSelected(t,e,i){return t instanceof G$1||this.owner.readonly?!1:this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly);}}v(Lc);/**
|
|
11101
11101
|
* @license
|
|
11102
11102
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11103
11103
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11104
|
-
*/class Bc extends Fr(Vr(x(b
|
|
11104
|
+
*/class Bc extends Fr(Vr(x$1(b))){static get is(){return "vaadin-multi-select-combo-box-internal"}static get template(){return g`
|
|
11105
11105
|
<style>
|
|
11106
11106
|
:host([opened]) {
|
|
11107
11107
|
pointer-events: auto;
|
|
@@ -11119,7 +11119,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11119
11119
|
no-vertical-overlap
|
|
11120
11120
|
restore-focus-node="[[inputElement]]"
|
|
11121
11121
|
></vaadin-multi-select-combo-box-overlay>
|
|
11122
|
-
`}static get properties(){return {filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return ["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return "vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this));}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0);}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button");}_readonlyChanged(){this._setDropdownItems(this.filteredItems);}_setDropdownItems(t){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(t);return}if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(e));return}super._setDropdownItems(t);}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems);}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t);}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const e=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(e);}return}super._onEnter(t);}_onEscape(t){if(this.readonly){t.stopPropagation(),this.opened&&this.close();return}super._onEscape(t);}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter();}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter="";}_commitValue(){this.lastFilter=this.filter,super._commitValue();}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown();}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp();}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close();}_onClosed(){this._ignoreCommitValue=!0,super._onClosed();}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange();}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof G$1||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))));}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache();}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation();}}v
|
|
11122
|
+
`}static get properties(){return {filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return ["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return "vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this));}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0);}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button");}_readonlyChanged(){this._setDropdownItems(this.filteredItems);}_setDropdownItems(t){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(t);return}if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(e));return}super._setDropdownItems(t);}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems);}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t);}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const e=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(e);}return}super._onEnter(t);}_onEscape(t){if(this.readonly){t.stopPropagation(),this.opened&&this.close();return}super._onEscape(t);}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter();}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter="";}_commitValue(){this.lastFilter=this.filter,super._commitValue();}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown();}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp();}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close();}_onClosed(){this._ignoreCommitValue=!0,super._onClosed();}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange();}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof G$1||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))));}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache();}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation();}}v(Bc);/**
|
|
11123
11123
|
* @license
|
|
11124
11124
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11125
11125
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -11127,7 +11127,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11127
11127
|
* @license
|
|
11128
11128
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11129
11129
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11130
|
-
*/const Fc=p
|
|
11130
|
+
*/const Fc=p`
|
|
11131
11131
|
:host {
|
|
11132
11132
|
--input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
|
|
11133
11133
|
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
|
|
@@ -11165,7 +11165,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11165
11165
|
:host([auto-expand-horizontally]) [class$='container'] {
|
|
11166
11166
|
width: auto;
|
|
11167
11167
|
}
|
|
11168
|
-
`;m
|
|
11168
|
+
`;m("vaadin-multi-select-combo-box",[Dt$1,Fc],{moduleId:"vaadin-multi-select-combo-box-styles"});class Vc extends Rr(Tt$1(x$1(N$1(b)))){static get is(){return "vaadin-multi-select-combo-box"}static get template(){return g`
|
|
11169
11169
|
<div class="vaadin-multi-select-combo-box-container">
|
|
11170
11170
|
<div part="label">
|
|
11171
11171
|
<slot name="label"></slot>
|
|
@@ -11241,7 +11241,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11241
11241
|
color: transparent !important;
|
|
11242
11242
|
forced-color-adjust: none;
|
|
11243
11243
|
}
|
|
11244
|
-
`]}get clearElement(){return this.$.clearButton}get _chips(){return [...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Ge(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Xe(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new T
|
|
11244
|
+
`]}get clearElement(){return this.$.clearButton}get _chips(){return [...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Ge$1(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Xe$1(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new T(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",e=>this._preventBlur(e)),this._overflow=t;}}),this.addController(this._overflowController),this.__updateChips(),zt$1(this);}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),ct$1(this.i18n.cleared);}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache();}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate();}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips();}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t);}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate());}_onResize(){this.__updateChips();}_delegateAttribute(t,e){if(this.stateTarget){if(t==="required"){this._delegateAttribute("aria-required",e?"true":!1);return}super._delegateAttribute(t,e);}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips();}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips();}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips();}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||e==null)&&(this.filteredItems=e);}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache();}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips();}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize;}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e));}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e;}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth();}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map(e=>this._getItemLabel(e)).join(", ")}_findIndex(t,e,i){if(i&&t){for(let o=0;o<e.length;o++)if(e[o]&&e[o][i]===t[i])return o;return -1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter);}__announceItem(t,e,i){const o=e?"selected":"deselected",r=this.i18n.total.replace("{count}",i||0);ct$1(`${t} ${this.i18n[o]} ${r}`);}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length);}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),o=this._getItemLabel(t);let r=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}e.splice(i,1);}else e.push(t),r=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(o,r,e.length);}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}));}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[];}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",o=>this._onItemRemoved(o)),e.addEventListener("mousedown",o=>this._preventBlur(o)),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),o=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove();});const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=e-i;t.length>1&&(o-=this.__getOverflowWidth());const r=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=t.length-1,c=null;d>=0;d--){const h=this.__createChip(t[d]);this.insertBefore(h,c),c=h,n.unshift(h);}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(t.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(r,o)}px`);}this._overflowItems=a;return}for(let n=t.length-1,a=null;n>=0;n--){const l=this.__createChip(t[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(r,o)}px`;else {l.remove();break}t.pop(),a=l;}this._overflowItems=t;}__updateOverflowChip(t,e,i,o){if(t){const r=e.length;t.label=`${r}`,t.setAttribute("count",`${r}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",r===0),t.disabled=i,t.readonly=o;}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear();}_onClearButtonClick(t){t.stopPropagation(),this.clear();}_onChange(t){t.stopPropagation();}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[]);}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let o;this.__isRTL?i===t.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=t.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o);}_onArrowRight(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let o;this.__isRTL?i===-1?o=t.length-1:i>0&&(o=i-1):i===t.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o);}_onBackSpace(t){if(this.inputElement.selectionStart!==0)return;const e=this._focusedChipIndex;e===-1?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1);}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const i=this._chips;if(i.forEach((o,r)=>{o.toggleAttribute("focused",r===t);}),t>-1){const o=i[t].item,r=this._getItemLabel(o);ct$1(`${r} ${this.i18n.focused}`);}}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t);}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item);}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}));}_onItemRemoved(t){this.__removeItem(t.detail.item);}_preventBlur(t){t.preventDefault();}}v(Vc);m("vaadin-notification-card",p`
|
|
11245
11245
|
:host {
|
|
11246
11246
|
position: relative;
|
|
11247
11247
|
margin: var(--lumo-space-s);
|
|
@@ -11463,7 +11463,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11463
11463
|
* @license
|
|
11464
11464
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11465
11465
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11466
|
-
*/class $c extends mr(x(N$1(b
|
|
11466
|
+
*/class $c extends mr$1(x$1(N$1(b))){static get template(){return g`
|
|
11467
11467
|
<style>
|
|
11468
11468
|
:host {
|
|
11469
11469
|
position: fixed;
|
|
@@ -11530,7 +11530,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11530
11530
|
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
11531
11531
|
</div>
|
|
11532
11532
|
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
11533
|
-
`}static get is(){return "vaadin-notification-container"}static get properties(){return {opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Qi&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener));}_detectIosNavbar(){const t=window.innerHeight,i=window.innerWidth>t,o=document.documentElement.clientHeight;i&&o>t?this.style.bottom=`${o-t}px`:this.style.bottom="0";}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault();}}class Hc extends x(b
|
|
11533
|
+
`}static get is(){return "vaadin-notification-container"}static get properties(){return {opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Qi$1&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener));}_detectIosNavbar(){const t=window.innerHeight,i=window.innerWidth>t,o=document.documentElement.clientHeight;i&&o>t?this.style.bottom=`${o-t}px`:this.style.bottom="0";}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault();}}class Hc extends x$1(b){static get template(){return g`
|
|
11534
11534
|
<style>
|
|
11535
11535
|
:host {
|
|
11536
11536
|
display: block;
|
|
@@ -11552,14 +11552,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11552
11552
|
<slot></slot>
|
|
11553
11553
|
</div>
|
|
11554
11554
|
</div>
|
|
11555
|
-
`}static get is(){return "vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite");}}class $$1 extends Ze(wt
|
|
11555
|
+
`}static get is(){return "vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite");}}class $$1 extends Ze(wt(N$1(b))){static get template(){return g`
|
|
11556
11556
|
<style>
|
|
11557
11557
|
:host {
|
|
11558
11558
|
display: none !important;
|
|
11559
11559
|
}
|
|
11560
11560
|
</style>
|
|
11561
11561
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
11562
|
-
`}static get is(){return "vaadin-notification"}static get properties(){return {duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return ["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Rc(t)?$$1._createAndShowNotification(i=>{ps(t,i);},e):$$1._createAndShowNotification(i=>{i.innerText=t;},e)}static _createAndShowNotification(t,e){const i=document.createElement($$1.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove();}),i}get _container(){return $$1._container||($$1._container=document.createElement("vaadin-notification-container"),document.body.appendChild($$1._container)),$$1._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),zt(this);}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1);});}requestContentUpdate(){this.renderer&&this.renderer(this._card,this);}_rendererChanged(t,e,i){if(!i)return;const o=this._oldRenderer!==t;this._oldRenderer=t,o&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate());}open(){this.opened=!0;}close(){this.opened=!1;}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard();}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener);}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1;}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card);}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"));}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard();}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&t!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState();},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard();}_positionChanged(){this.opened&&this._animatedAppendNotificationCard();}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),t)));}}v
|
|
11562
|
+
`}static get is(){return "vaadin-notification"}static get properties(){return {duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return ["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Rc(t)?$$1._createAndShowNotification(i=>{ps(t,i);},e):$$1._createAndShowNotification(i=>{i.innerText=t;},e)}static _createAndShowNotification(t,e){const i=document.createElement($$1.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove();}),i}get _container(){return $$1._container||($$1._container=document.createElement("vaadin-notification-container"),document.body.appendChild($$1._container)),$$1._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),zt$1(this);}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1);});}requestContentUpdate(){this.renderer&&this.renderer(this._card,this);}_rendererChanged(t,e,i){if(!i)return;const o=this._oldRenderer!==t;this._oldRenderer=t,o&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate());}open(){this.opened=!0;}close(){this.opened=!1;}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard();}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener);}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1;}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card);}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"));}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard();}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&t!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState();},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard();}_positionChanged(){this.opened&&this._animatedAppendNotificationCard();}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),t)));}}v($c);v(Hc);v($$1);const $r=p`
|
|
11563
11563
|
:host {
|
|
11564
11564
|
-webkit-tap-highlight-color: transparent;
|
|
11565
11565
|
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
@@ -11573,11 +11573,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11573
11573
|
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
11574
11574
|
background-color: var(--lumo-contrast-10pct);
|
|
11575
11575
|
}
|
|
11576
|
-
`;m
|
|
11576
|
+
`;m("vaadin-list-box",$r,{moduleId:"lumo-list-box"});/**
|
|
11577
11577
|
* @license
|
|
11578
11578
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11579
11579
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11580
|
-
*/m
|
|
11580
|
+
*/m("vaadin-select-item",Ot$1,{moduleId:"lumo-select-item"});m("vaadin-select-list-box",$r,{moduleId:"lumo-select-list-box"});const Uc=p`
|
|
11581
11581
|
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
11582
11582
|
text-align: start;
|
|
11583
11583
|
}
|
|
@@ -11620,7 +11620,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11620
11620
|
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
11621
11621
|
--_lumo-selected-item-padding: 0;
|
|
11622
11622
|
}
|
|
11623
|
-
`;m
|
|
11623
|
+
`;m("vaadin-select",[ae$1,Uc],{moduleId:"lumo-select"});m("vaadin-select-value-button",p`
|
|
11624
11624
|
:host {
|
|
11625
11625
|
font-family: var(--lumo-font-family);
|
|
11626
11626
|
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
@@ -11639,7 +11639,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11639
11639
|
::slotted(*:hover) {
|
|
11640
11640
|
background-color: transparent;
|
|
11641
11641
|
}
|
|
11642
|
-
`,{moduleId:"lumo-select-value-button"});const jc=p
|
|
11642
|
+
`,{moduleId:"lumo-select-value-button"});const jc=p`
|
|
11643
11643
|
:host {
|
|
11644
11644
|
--_lumo-item-selected-icon-display: block;
|
|
11645
11645
|
}
|
|
@@ -11675,15 +11675,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11675
11675
|
:host([theme~='align-center']) {
|
|
11676
11676
|
text-align: center;
|
|
11677
11677
|
}
|
|
11678
|
-
`;m
|
|
11678
|
+
`;m("vaadin-select-overlay",[Gi$1,jc],{moduleId:"lumo-select-overlay"});/**
|
|
11679
11679
|
* @license
|
|
11680
11680
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11681
11681
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11682
|
-
*/const Hr=s=>class extends Ri(ne(s)){static get properties(){return {_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return ["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e;}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e);}focus(){this.disabled||(super.focus(),this._setFocused(!0));}_shouldSetActive(e){return !this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e);}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur());}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click());}};/**
|
|
11682
|
+
*/const Hr$1=s=>class extends Ri$1(ne$1(s)){static get properties(){return {_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return ["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e;}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e);}focus(){this.disabled||(super.focus(),this._setFocused(!0));}_shouldSetActive(e){return !this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e);}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur());}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click());}};/**
|
|
11683
11683
|
* @license
|
|
11684
11684
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11685
11685
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11686
|
-
*/class Wc extends Hr(x
|
|
11686
|
+
*/class Wc extends Hr$1(x$1(M(b))){static get is(){return "vaadin-select-item"}static get template(){return g`
|
|
11687
11687
|
<style>
|
|
11688
11688
|
:host {
|
|
11689
11689
|
display: inline-block;
|
|
@@ -11697,7 +11697,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11697
11697
|
<div part="content">
|
|
11698
11698
|
<slot></slot>
|
|
11699
11699
|
</div>
|
|
11700
|
-
`}ready(){super.ready(),this.setAttribute("role","option");}}v
|
|
11700
|
+
`}ready(){super.ready(),this.setAttribute("role","option");}}v(Wc);/**
|
|
11701
11701
|
* @license
|
|
11702
11702
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
11703
11703
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -11705,15 +11705,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11705
11705
|
* @license
|
|
11706
11706
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
11707
11707
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11708
|
-
*/const Yc=s=>class extends re(s){get focused(){return (this._getItems()||[]).find(Ui)}get _vertical(){return !0}focus(){const e=this._getItems();if(Array.isArray(e)){const i=this._getAvailableIndex(e,0,null,o=>!fi(o));i>=0&&this._focus(i);}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:i}=e,o=this._getItems()||[],r=o.indexOf(this.focused);let n,a;const d=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(i)?(a=-d,n=r-d):this.__isNextKey(i)?(a=d,n=r+d):i==="Home"?(a=1,n=0):i==="End"&&(a=-1,n=o.length-1),n=this._getAvailableIndex(o,n,a,c=>!fi(c)),n>=0&&(e.preventDefault(),this._focus(n,!0));}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,i=!1){const o=this._getItems();this._focusItem(o[e],i);}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""));}_getAvailableIndex(e,i,o,r){const n=e.length;let a=i;for(let l=0;typeof a=="number"&&l<n;l+=1,a+=o||1){a<0?a=n-1:a>=n&&(a=0);const d=e[a];if(!d.hasAttribute("disabled")&&this.__isMatchingItem(d,r))return a}return -1}__isMatchingItem(e,i){return typeof i=="function"?i(e):!0}};/**
|
|
11708
|
+
*/const Yc=s=>class extends re$1(s){get focused(){return (this._getItems()||[]).find(Ui$1)}get _vertical(){return !0}focus(){const e=this._getItems();if(Array.isArray(e)){const i=this._getAvailableIndex(e,0,null,o=>!fi$1(o));i>=0&&this._focus(i);}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:i}=e,o=this._getItems()||[],r=o.indexOf(this.focused);let n,a;const d=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(i)?(a=-d,n=r-d):this.__isNextKey(i)?(a=d,n=r+d):i==="Home"?(a=1,n=0):i==="End"&&(a=-1,n=o.length-1),n=this._getAvailableIndex(o,n,a,c=>!fi$1(c)),n>=0&&(e.preventDefault(),this._focus(n,!0));}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,i=!1){const o=this._getItems();this._focusItem(o[e],i);}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""));}_getAvailableIndex(e,i,o,r){const n=e.length;let a=i;for(let l=0;typeof a=="number"&&l<n;l+=1,a+=o||1){a<0?a=n-1:a>=n&&(a=0);const d=e[a];if(!d.hasAttribute("disabled")&&this.__isMatchingItem(d,r))return a}return -1}__isMatchingItem(e,i){return typeof i=="function"?i(e):!0}};/**
|
|
11709
11709
|
* @license
|
|
11710
11710
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11711
11711
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11712
|
-
*/const jr=s=>class extends Yc(s){static get properties(){return {disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return ["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return !this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],i=this._getAvailableIndex(e,0,null,o=>o.tabIndex===0&&!fi(o));i>=0?this._focus(i):super.focus();}ready(){super.ready(),this.addEventListener("click",i=>this._onClick(i));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ni(e,()=>{this._setItems(this._filterItems(Gs(this)));});}_getItems(){return this.items}_enhanceItems(e,i,o,r){if(!r&&e){this.setAttribute("aria-orientation",i||"vertical"),e.forEach(a=>{i?a.setAttribute("orientation",i):a.removeAttribute("orientation");}),this._setFocusable(o<0||!o?0:o);const n=e[o];e.forEach(a=>{a.selected=a===n;}),n&&!n.disabled&&this._scrollToItem(o);}}_filterItems(e){return e.filter(i=>i._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const i=this._filterItems(e.composedPath())[0];let o;i&&!i.disabled&&(o=this.items.indexOf(i))>=0&&(this.selected=o);}_searchKey(e,i){this._searchReset=z$1.debounce(this._searchReset,Y$1.after(500),()=>{this._searchBuf="";}),this._searchBuf+=i.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=i.toLowerCase());const o=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,o,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const i=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(i)&&i.length===1){const r=this._searchKey(o,i);r>=0&&this._focus(r);return}super._onKeyDown(e);}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const i=this.items[e];this.items.forEach(o=>{o.tabIndex=o===i?0:-1;});}_focus(e){this.items.forEach((i,o)=>{i.focused=o===e;}),this._setFocusable(e),this._scrollToItem(e),super._focus(e);}_scrollToItem(e){const i=this.items[e];if(!i)return;const o=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||i).getBoundingClientRect(),a=(this.items[e-1]||i).getBoundingClientRect();let l=0;!this._isRTL&&n[o[1]]>=r[o[1]]||this._isRTL&&n[o[1]]<=r[o[1]]?l=n[o[1]]-r[o[1]]:(!this._isRTL&&a[o[0]]<=r[o[0]]||this._isRTL&&a[o[0]]>=r[o[0]])&&(l=a[o[0]]-r[o[0]]),this._scroll(l);}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else {const i=this.getAttribute("dir")||"ltr",o=Ur(this._scrollerElement,i)+e;qc(this._scrollerElement,i,o);}}};/**
|
|
11712
|
+
*/const jr=s=>class extends Yc(s){static get properties(){return {disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return ["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return !this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],i=this._getAvailableIndex(e,0,null,o=>o.tabIndex===0&&!fi$1(o));i>=0?this._focus(i):super.focus();}ready(){super.ready(),this.addEventListener("click",i=>this._onClick(i));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ni$1(e,()=>{this._setItems(this._filterItems(Gs(this)));});}_getItems(){return this.items}_enhanceItems(e,i,o,r){if(!r&&e){this.setAttribute("aria-orientation",i||"vertical"),e.forEach(a=>{i?a.setAttribute("orientation",i):a.removeAttribute("orientation");}),this._setFocusable(o<0||!o?0:o);const n=e[o];e.forEach(a=>{a.selected=a===n;}),n&&!n.disabled&&this._scrollToItem(o);}}_filterItems(e){return e.filter(i=>i._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const i=this._filterItems(e.composedPath())[0];let o;i&&!i.disabled&&(o=this.items.indexOf(i))>=0&&(this.selected=o);}_searchKey(e,i){this._searchReset=z$1.debounce(this._searchReset,Y$1.after(500),()=>{this._searchBuf="";}),this._searchBuf+=i.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=i.toLowerCase());const o=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,o,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const i=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(i)&&i.length===1){const r=this._searchKey(o,i);r>=0&&this._focus(r);return}super._onKeyDown(e);}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const i=this.items[e];this.items.forEach(o=>{o.tabIndex=o===i?0:-1;});}_focus(e){this.items.forEach((i,o)=>{i.focused=o===e;}),this._setFocusable(e),this._scrollToItem(e),super._focus(e);}_scrollToItem(e){const i=this.items[e];if(!i)return;const o=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||i).getBoundingClientRect(),a=(this.items[e-1]||i).getBoundingClientRect();let l=0;!this._isRTL&&n[o[1]]>=r[o[1]]||this._isRTL&&n[o[1]]<=r[o[1]]?l=n[o[1]]-r[o[1]]:(!this._isRTL&&a[o[0]]<=r[o[0]]||this._isRTL&&a[o[0]]>=r[o[0]])&&(l=a[o[0]]-r[o[0]]),this._scroll(l);}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else {const i=this.getAttribute("dir")||"ltr",o=Ur(this._scrollerElement,i)+e;qc(this._scrollerElement,i,o);}}};/**
|
|
11713
11713
|
* @license
|
|
11714
11714
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11715
11715
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11716
|
-
*/class Kc extends jr(x
|
|
11716
|
+
*/class Kc extends jr(x$1(M(F$1(b)))){static get is(){return "vaadin-select-list-box"}static get template(){return g`
|
|
11717
11717
|
<style>
|
|
11718
11718
|
:host {
|
|
11719
11719
|
display: flex;
|
|
@@ -11733,15 +11733,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11733
11733
|
<div part="items">
|
|
11734
11734
|
<slot></slot>
|
|
11735
11735
|
</div>
|
|
11736
|
-
`}static get properties(){return {orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox");}}v
|
|
11736
|
+
`}static get properties(){return {orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox");}}v(Kc);/**
|
|
11737
11737
|
* @license
|
|
11738
11738
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11739
11739
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11740
|
-
*/const Gc=s=>class extends Zi(Qe
|
|
11740
|
+
*/const Gc=s=>class extends Zi$1(Qe$1(M(s))){static get observers(){return ["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0;}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,i){if(e&&i){const o="--vaadin-select-overlay-width",r=getComputedStyle(i).getPropertyValue(o);r===""?this.style.removeProperty(o):this.style.setProperty(o,r);}}};/**
|
|
11741
11741
|
* @license
|
|
11742
11742
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11743
11743
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11744
|
-
*/const Xc=p
|
|
11744
|
+
*/const Xc=p`
|
|
11745
11745
|
:host {
|
|
11746
11746
|
align-items: flex-start;
|
|
11747
11747
|
justify-content: flex-start;
|
|
@@ -11756,18 +11756,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11756
11756
|
outline: 3px solid;
|
|
11757
11757
|
}
|
|
11758
11758
|
}
|
|
11759
|
-
`;m
|
|
11759
|
+
`;m("vaadin-select-overlay",[Je$1,Xc],{moduleId:"vaadin-select-overlay-styles"});class Jc extends Gc(x$1(b)){static get is(){return "vaadin-select-overlay"}static get template(){return g`
|
|
11760
11760
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
11761
11761
|
<div part="overlay" id="overlay" tabindex="0">
|
|
11762
11762
|
<div part="content" id="content">
|
|
11763
11763
|
<slot></slot>
|
|
11764
11764
|
</div>
|
|
11765
11765
|
</div>
|
|
11766
|
-
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this;}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t);}}}v
|
|
11766
|
+
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this;}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t);}}}v(Jc);/**
|
|
11767
11767
|
* @license
|
|
11768
11768
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11769
11769
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11770
|
-
*/const Qc=p
|
|
11770
|
+
*/const Qc=p`
|
|
11771
11771
|
:host {
|
|
11772
11772
|
display: inline-block;
|
|
11773
11773
|
position: relative;
|
|
@@ -11813,17 +11813,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11813
11813
|
* @license
|
|
11814
11814
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11815
11815
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11816
|
-
*/m
|
|
11816
|
+
*/m("vaadin-select-value-button",Qc,{moduleId:"vaadin-select-value-button-styles"});class Zc extends eo$1(x$1(b)){static get is(){return "vaadin-select-value-button"}static get template(){return g`
|
|
11817
11817
|
<div class="vaadin-button-container">
|
|
11818
11818
|
<span part="label">
|
|
11819
11819
|
<slot></slot>
|
|
11820
11820
|
</span>
|
|
11821
11821
|
</div>
|
|
11822
|
-
`}}v
|
|
11822
|
+
`}}v(Zc);/**
|
|
11823
11823
|
* @license
|
|
11824
11824
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
11825
11825
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11826
|
-
*/const eh=p
|
|
11826
|
+
*/const eh=p`
|
|
11827
11827
|
.sr-only {
|
|
11828
11828
|
border: 0 !important;
|
|
11829
11829
|
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
@@ -11841,15 +11841,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11841
11841
|
* @license
|
|
11842
11842
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
11843
11843
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11844
|
-
*/class th extends T
|
|
11844
|
+
*/class th extends T{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(e,i)=>{i._setFocusElement(e),i.ariaTarget=e,i.stateTarget=e,e.setAttribute("aria-haspopup","listbox");}});}}/**
|
|
11845
11845
|
* @license
|
|
11846
11846
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11847
11847
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11848
|
-
*/const ih=s=>class extends Ze(kt$1(ji(re(It(s))))){static get properties(){return {items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return [...super.delegateAttrs,"invalid"]}static get observers(){return ["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Ye()}`,this._srLabelController=new nr(this),this._srLabelController.slotName="sr-label";}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new th(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ro(this._phoneMediaQuery,e=>{this._phone=e;})),this._tooltipController=new U$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController);}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items));}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}__itemsChanged(e,i){(e||i)&&this.requestContentUpdate();}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e);}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",i=>this._onKeyDownInside(i),!0),e.addEventListener("click",i=>{const o=i.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(o&&o.value!==void 0&&o.value!==this.value),this.opened=!1;},!0),this.__lastMenuElement=e);}__initMenuItems(e){e.items&&(this._items=e.items);}_valueChanged(e,i){this.toggleAttribute("has-value",!!e),i!==void 0&&!this.__dispatchChangePending&&this.validate();}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly);}_onToggleMouseDown(e){e.preventDefault();}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const i=this._menuElement.selected,o=i!==void 0?i:-1,r=this._menuElement._searchKey(o,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r);}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1);}_openedChanged(e,i,o){if(!(!i||!o)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),i.style.setProperty("--vaadin-select-text-field-width",`${o.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring");}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e;}}_updateAriaExpanded(e,i){i&&i.setAttribute("aria-expanded",e?"true":"false");}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"));}__attachSelectedItem(e){let i;const o=e.getAttribute("label");o?i=this.__createItemElement({label:o}):i=e.cloneNode(!0),i._sourceItem=e,this.__appendValueItemElement(i,this.focusElement),i.selected=!0;}__createItemElement(e){const i=document.createElement(e.component||"vaadin-select-item");return e.label&&(i.textContent=e.label),e.value&&(i.value=e.value),e.disabled&&(i.disabled=e.disabled),e.className&&(i.className=e.className),i}__appendValueItemElement(e,i){i.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId);}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null);}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e);}_setCustomAriaLabelledBy(e){const i=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(i,!0);}_getLabelIdWithItemId(e){const o=(this._items?this._items[this._menuElement.selected]:!1)||this.placeholder?this._itemId:"";return e?`${e} ${o}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const i=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(i))this.__attachSelectedItem(i);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","");}!this._valueChanging&&i&&(this._selectedChanging=!0,this.value=i.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const o=i||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};me(e,"aria-labelledby",o),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId);}_hasContent(e){if(!e)return !1;const i=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return i||o}_updateSelectedItem(e,i){if(i){const o=e==null?e:e.toString();this._menuElement.selected=i.reduce((r,n,a)=>r===void 0&&n.value===o?a:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging);}}_shouldRemoveFocus(){return !this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}checkValidity(){return !this.required||this.readonly||!!this.value}__defaultRenderer(e,i){if(!this.items||this.items.length===0){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(r=>{o.appendChild(this.__createItemElement(r));});}__dispatchChange(){return Ce(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1;})}};/**
|
|
11848
|
+
*/const ih=s=>class extends Ze(kt$1(ji$1(re$1(It$1(s))))){static get properties(){return {items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return [...super.delegateAttrs,"invalid"]}static get observers(){return ["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Ye$1()}`,this._srLabelController=new nr$1(this),this._srLabelController.slotName="sr-label";}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new th(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ro$1(this._phoneMediaQuery,e=>{this._phone=e;})),this._tooltipController=new U$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController);}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items));}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}__itemsChanged(e,i){(e||i)&&this.requestContentUpdate();}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e);}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",i=>this._onKeyDownInside(i),!0),e.addEventListener("click",i=>{const o=i.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(o&&o.value!==void 0&&o.value!==this.value),this.opened=!1;},!0),this.__lastMenuElement=e);}__initMenuItems(e){e.items&&(this._items=e.items);}_valueChanged(e,i){this.toggleAttribute("has-value",!!e),i!==void 0&&!this.__dispatchChangePending&&this.validate();}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly);}_onToggleMouseDown(e){e.preventDefault();}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const i=this._menuElement.selected,o=i!==void 0?i:-1,r=this._menuElement._searchKey(o,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r);}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1);}_openedChanged(e,i,o){if(!(!i||!o)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),i.style.setProperty("--vaadin-select-text-field-width",`${o.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring");}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e;}}_updateAriaExpanded(e,i){i&&i.setAttribute("aria-expanded",e?"true":"false");}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"));}__attachSelectedItem(e){let i;const o=e.getAttribute("label");o?i=this.__createItemElement({label:o}):i=e.cloneNode(!0),i._sourceItem=e,this.__appendValueItemElement(i,this.focusElement),i.selected=!0;}__createItemElement(e){const i=document.createElement(e.component||"vaadin-select-item");return e.label&&(i.textContent=e.label),e.value&&(i.value=e.value),e.disabled&&(i.disabled=e.disabled),e.className&&(i.className=e.className),i}__appendValueItemElement(e,i){i.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId);}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null);}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e);}_setCustomAriaLabelledBy(e){const i=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(i,!0);}_getLabelIdWithItemId(e){const o=(this._items?this._items[this._menuElement.selected]:!1)||this.placeholder?this._itemId:"";return e?`${e} ${o}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const i=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(i))this.__attachSelectedItem(i);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","");}!this._valueChanging&&i&&(this._selectedChanging=!0,this.value=i.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const o=i||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};me$1(e,"aria-labelledby",o),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId);}_hasContent(e){if(!e)return !1;const i=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return i||o}_updateSelectedItem(e,i){if(i){const o=e==null?e:e.toString();this._menuElement.selected=i.reduce((r,n,a)=>r===void 0&&n.value===o?a:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging);}}_shouldRemoveFocus(){return !this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}checkValidity(){return !this.required||this.readonly||!!this.value}__defaultRenderer(e,i){if(!this.items||this.items.length===0){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(r=>{o.appendChild(this.__createItemElement(r));});}__dispatchChange(){return Ce$1(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1;})}};/**
|
|
11849
11849
|
* @license
|
|
11850
11850
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
11851
11851
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11852
|
-
*/m
|
|
11852
|
+
*/m("vaadin-select",[Er$1,Ar$1,eh],{moduleId:"vaadin-select-styles"});class oh extends ih(N$1(x$1(b))){static get is(){return "vaadin-select"}static get template(){return g`
|
|
11853
11853
|
<style>
|
|
11854
11854
|
:host {
|
|
11855
11855
|
position: relative;
|
|
@@ -11902,7 +11902,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11902
11902
|
<div class="sr-only">
|
|
11903
11903
|
<slot name="sr-label"></slot>
|
|
11904
11904
|
</div>
|
|
11905
|
-
`}static get observers(){return ["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),zt(this);}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate());}_onOverlayOpen(){this._menuElement&&this._menuElement.focus();}}v
|
|
11905
|
+
`}static get observers(){return ["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),zt$1(this);}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate());}_onOverlayOpen(){this._menuElement&&this._menuElement.focus();}}v(oh);const Wr=p`
|
|
11906
11906
|
/* Optical centering */
|
|
11907
11907
|
:host::before,
|
|
11908
11908
|
:host::after {
|
|
@@ -12002,7 +12002,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12002
12002
|
transform: scale(1.02);
|
|
12003
12003
|
}
|
|
12004
12004
|
}
|
|
12005
|
-
`;m
|
|
12005
|
+
`;m("vaadin-dialog-overlay",[ye,Wr],{moduleId:"lumo-dialog"});m("vaadin-confirm-dialog-overlay",[ye,Wr,p`
|
|
12006
12006
|
[part='header'] ::slotted(h3) {
|
|
12007
12007
|
margin-top: 0 !important;
|
|
12008
12008
|
margin-bottom: 0 !important;
|
|
@@ -12045,7 +12045,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12045
12045
|
* @license
|
|
12046
12046
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12047
12047
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12048
|
-
*/const rh=p
|
|
12048
|
+
*/const rh=p`
|
|
12049
12049
|
[part='header'],
|
|
12050
12050
|
[part='header-content'],
|
|
12051
12051
|
[part='footer'] {
|
|
@@ -12123,7 +12123,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12123
12123
|
outline: 3px solid !important;
|
|
12124
12124
|
}
|
|
12125
12125
|
}
|
|
12126
|
-
`;p
|
|
12126
|
+
`;p`
|
|
12127
12127
|
[part='overlay'] {
|
|
12128
12128
|
position: relative;
|
|
12129
12129
|
overflow: visible;
|
|
@@ -12224,7 +12224,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12224
12224
|
* @license
|
|
12225
12225
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
12226
12226
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12227
|
-
*/const ah=p
|
|
12227
|
+
*/const ah=p`
|
|
12228
12228
|
:host {
|
|
12229
12229
|
--_vaadin-confirm-dialog-content-width: auto;
|
|
12230
12230
|
--_vaadin-confirm-dialog-content-height: auto;
|
|
@@ -12247,7 +12247,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12247
12247
|
* @license
|
|
12248
12248
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
12249
12249
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12250
|
-
*/m
|
|
12250
|
+
*/m("vaadin-confirm-dialog-overlay",[Je$1,rh,ah],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class lh extends Qe$1(M(x$1(b))){static get is(){return "vaadin-confirm-dialog-overlay"}static get template(){return g`
|
|
12251
12251
|
<div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
12252
12252
|
<div part="overlay" id="overlay" tabindex="0">
|
|
12253
12253
|
<section id="resizerContainer" class="resizer-container">
|
|
@@ -12268,7 +12268,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12268
12268
|
</footer>
|
|
12269
12269
|
</section>
|
|
12270
12270
|
</div>
|
|
12271
|
-
`}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","");}}v
|
|
12271
|
+
`}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","");}}v(lh);class dh extends nh(sh(Ze(wt(b)))){static get is(){return "vaadin-confirm-dialog-dialog"}static get template(){return g`
|
|
12272
12272
|
<style>
|
|
12273
12273
|
:host {
|
|
12274
12274
|
display: none;
|
|
@@ -12289,15 +12289,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12289
12289
|
restore-focus-on-close
|
|
12290
12290
|
focus-trap
|
|
12291
12291
|
></vaadin-confirm-dialog-overlay>
|
|
12292
|
-
`}}v
|
|
12292
|
+
`}}v(dh);/**
|
|
12293
12293
|
* @license
|
|
12294
12294
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
12295
12295
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12296
|
-
*/const ch=s=>class extends s{static get properties(){return {accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return ["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this);}get __slottedNodes(){return [this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new T
|
|
12296
|
+
*/const ch=s=>class extends s{static get properties(){return {accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return ["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this);}get __slottedNodes(){return [this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new T(this,"header","h3",{initializer:e=>{this._headerNode=e;}}),this.addController(this._headerController),this._messageController=new T(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const i=document.createElement("div");i.style.display="contents";const o=`confirm-dialog-message-${Ye$1()}`;i.id=o,this.appendChild(i),i.appendChild(e),this._messageNodes=[...this._messageNodes,i];}}),this.addController(this._messageController),this._cancelController=new T(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e);}}),this.addController(this._cancelController),this._rejectController=new T(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e);}}),this.addController(this._rejectController),this._confirmController=new T(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e);}}),this.addController(this._confirmController);}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog");}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(o=>{e.appendChild(o);});const i=e.querySelector('[slot="confirm-button"]');i&&i.focus();}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e);}),this.dispatchEvent(new CustomEvent("closed"));}__accessibleDescriptionRefChanged(e,i,o){!e||!i||(o!==void 0?me$1(e,"aria-describedby",{newId:o,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):i.forEach(r=>{me$1(e,"aria-describedby",{newId:r.id});}),this.__oldAccessibleDescriptionRef=o);}__setupSlottedButton(e,i){const o=`_${e}Button`,r=`__${e}`;this[o]&&this[o]!==i&&this[o].remove(),i.addEventListener("click",this[r]),this[o]=i;}__updateCancelButton(e,i,o,r){e&&(e===this._cancelController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r));}__updateConfirmButton(e,i,o){e&&e===this._confirmController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o));}__updateHeaderNode(e,i){e&&e===this._headerController.defaultNode&&(e.textContent=i);}__updateMessageNodes(e,i){if(e&&e.length>0){const o=e.find(r=>this._messageController.defaultNode&&r===this._messageController.defaultNode.parentElement);o&&(o.firstChild.textContent=i);}}__updateRejectButton(e,i,o,r){e&&(e===this._rejectController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r));}_escPressed(e){e.defaultPrevented||this.__cancel();}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1;}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1;}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1;}_getAriaLabel(e){return e||"confirmation"}};/**
|
|
12297
12297
|
* @license
|
|
12298
12298
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
12299
12299
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12300
|
-
*/class hh extends ch(N$1(wt
|
|
12300
|
+
*/class hh extends ch(N$1(wt(F$1(b)))){static get template(){return g`
|
|
12301
12301
|
<style>
|
|
12302
12302
|
:host,
|
|
12303
12303
|
[hidden] {
|
|
@@ -12324,7 +12324,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12324
12324
|
<slot name="reject-button"></slot>
|
|
12325
12325
|
<slot name="confirm-button"></slot>
|
|
12326
12326
|
</div>
|
|
12327
|
-
`}static get is(){return "vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement);}}v
|
|
12327
|
+
`}static get is(){return "vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement);}}v(hh);m("vaadin-tab",p`
|
|
12328
12328
|
:host {
|
|
12329
12329
|
box-sizing: border-box;
|
|
12330
12330
|
padding: 0.5rem 0.75rem;
|
|
@@ -12561,11 +12561,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12561
12561
|
* @license
|
|
12562
12562
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12563
12563
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12564
|
-
*/const uh=s=>class extends Hr(s){ready(){super.ready(),this.setAttribute("role","tab");}_onKeyUp(e){const i=this.hasAttribute("active");if(super._onKeyUp(e),i){const o=this.querySelector("a");o&&o.click();}}};/**
|
|
12564
|
+
*/const uh=s=>class extends Hr$1(s){ready(){super.ready(),this.setAttribute("role","tab");}_onKeyUp(e){const i=this.hasAttribute("active");if(super._onKeyUp(e),i){const o=this.querySelector("a");o&&o.click();}}};/**
|
|
12565
12565
|
* @license
|
|
12566
12566
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12567
12567
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12568
|
-
*/const ph=p
|
|
12568
|
+
*/const ph=p`
|
|
12569
12569
|
:host {
|
|
12570
12570
|
display: block;
|
|
12571
12571
|
}
|
|
@@ -12588,10 +12588,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12588
12588
|
* @license
|
|
12589
12589
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12590
12590
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12591
|
-
*/m
|
|
12591
|
+
*/m("vaadin-tab",ph,{moduleId:"vaadin-tab-styles"});class mh extends N$1(x$1(uh(F$1(b)))){static get template(){return g`
|
|
12592
12592
|
<slot></slot>
|
|
12593
12593
|
<slot name="tooltip"></slot>
|
|
12594
|
-
`}static get is(){return "vaadin-tab"}ready(){super.ready(),this._tooltipController=new U$1(this),this.addController(this._tooltipController);}}v
|
|
12594
|
+
`}static get is(){return "vaadin-tab"}ready(){super.ready(),this._tooltipController=new U$1(this),this.addController(this._tooltipController);}}v(mh);m("vaadin-tabs",p`
|
|
12595
12595
|
:host {
|
|
12596
12596
|
-webkit-tap-highlight-color: transparent;
|
|
12597
12597
|
}
|
|
@@ -12833,11 +12833,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12833
12833
|
* @license
|
|
12834
12834
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12835
12835
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12836
|
-
*/const fh=s=>class extends Rr(jr(s)){static get properties(){return {orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return ["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow());});}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return !this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Ji(this,()=>{this._updateOverflow();});}_onResize(){this._updateOverflow();}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(i=>{this.__itemsResizeObserver.observe(i);}),this._updateOverflow();}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=[...this.items].reverse().find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let d;if(this.__isRTL){const c=o.right-l;d=n.right-c;}else {const c=o.left+l;d=n.left-c;}-this.__direction*d<1&&(d=-this.__direction*(this._scrollOffset-l)),this._scroll(d);}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=this.items.find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let d;if(this.__isRTL){const c=o.left+l;d=n.left-c;}else {const c=o.right-l;d=n.right-c;}this.__direction*d<1&&(d=this.__direction*(this._scrollOffset-l)),this._scroll(d);}_isItemVisible(e,i,o,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?o:i,a=this.__isRTL?i:o,l=r.right-n,d=r.left+a,c=e.getBoundingClientRect();return l>Math.floor(c.left)&&d<Math.ceil(c.right)}_getNavigationButtonVisibleWidth(e){const i=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(i).opacity==="0"?0:i.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Ur(this._scrollerElement,this.getAttribute("dir")),i=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let o=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(i-this._scrollOffset)&&(o+=" end"),this.__direction===1&&(o=o.replace(/start|end/giu,r=>r==="start"?"end":"start")),o?this.setAttribute("overflow",o.trim()):this.removeAttribute("overflow");}};/**
|
|
12836
|
+
*/const fh=s=>class extends Rr(jr(s)){static get properties(){return {orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return ["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow());});}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return !this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Ji$1(this,()=>{this._updateOverflow();});}_onResize(){this._updateOverflow();}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(i=>{this.__itemsResizeObserver.observe(i);}),this._updateOverflow();}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=[...this.items].reverse().find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let d;if(this.__isRTL){const c=o.right-l;d=n.right-c;}else {const c=o.left+l;d=n.left-c;}-this.__direction*d<1&&(d=-this.__direction*(this._scrollOffset-l)),this._scroll(d);}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),i=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),n=this.items.find(c=>this._isItemVisible(c,e,i,o)).getBoundingClientRect(),l=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let d;if(this.__isRTL){const c=o.left+l;d=n.left-c;}else {const c=o.right-l;d=n.right-c;}this.__direction*d<1&&(d=this.__direction*(this._scrollOffset-l)),this._scroll(d);}_isItemVisible(e,i,o,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const n=this.__isRTL?o:i,a=this.__isRTL?i:o,l=r.right-n,d=r.left+a,c=e.getBoundingClientRect();return l>Math.floor(c.left)&&d<Math.ceil(c.right)}_getNavigationButtonVisibleWidth(e){const i=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(i).opacity==="0"?0:i.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Ur(this._scrollerElement,this.getAttribute("dir")),i=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let o=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(i-this._scrollOffset)&&(o+=" end"),this.__direction===1&&(o=o.replace(/start|end/giu,r=>r==="start"?"end":"start")),o?this.setAttribute("overflow",o.trim()):this.removeAttribute("overflow");}};/**
|
|
12837
12837
|
* @license
|
|
12838
12838
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12839
12839
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12840
|
-
*/const _h=p
|
|
12840
|
+
*/const _h=p`
|
|
12841
12841
|
:host {
|
|
12842
12842
|
display: flex;
|
|
12843
12843
|
align-items: center;
|
|
@@ -12917,7 +12917,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12917
12917
|
* @license
|
|
12918
12918
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
12919
12919
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12920
|
-
*/m
|
|
12920
|
+
*/m("vaadin-tabs",_h,{moduleId:"vaadin-tabs-styles"});class vh extends fh(N$1(x$1(b))){static get template(){return g`
|
|
12921
12921
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
12922
12922
|
|
|
12923
12923
|
<div id="scroll" part="tabs">
|
|
@@ -12925,7 +12925,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
12925
12925
|
</div>
|
|
12926
12926
|
|
|
12927
12927
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
12928
|
-
`}static get is(){return "vaadin-tabs"}}v
|
|
12928
|
+
`}static get is(){return "vaadin-tabs"}}v(vh);
|
|
12929
12929
|
|
|
12930
12930
|
const generalInputCss = ":host{display:block;height:100%}";
|
|
12931
12931
|
const GeneralInputStyle0 = generalInputCss;
|
|
@@ -13034,36 +13034,36 @@ const GeneralInput = class {
|
|
|
13034
13034
|
switch ((_a = this.type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) {
|
|
13035
13035
|
case 'text':
|
|
13036
13036
|
if (this.haspostalcodelookup && this.name === 'PostalCode') {
|
|
13037
|
-
return h
|
|
13037
|
+
return h("postalcode-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, postalcodelength: this.postalcodelength, addresses: this.addresses, ignoreCountry: this.ignoreCountry });
|
|
13038
13038
|
}
|
|
13039
13039
|
else {
|
|
13040
|
-
return h
|
|
13040
|
+
return h("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, haspostalcodelookup: this.haspostalcodelookup, "enable-south-african-mode": this.enableSouthAfricanMode });
|
|
13041
13041
|
}
|
|
13042
13042
|
case 'email':
|
|
13043
|
-
return h
|
|
13043
|
+
return h("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
13044
13044
|
case 'number':
|
|
13045
|
-
return h
|
|
13045
|
+
return h("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
13046
13046
|
case 'checkbox':
|
|
13047
|
-
return h
|
|
13047
|
+
return h("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
13048
13048
|
case 'checkboxgroup':
|
|
13049
|
-
return h
|
|
13049
|
+
return h("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
|
|
13050
13050
|
case 'togglecheckbox':
|
|
13051
|
-
return h
|
|
13051
|
+
return h("toggle-checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options, "emit-on-click": this.emitOnClick });
|
|
13052
13052
|
case 'datetime':
|
|
13053
|
-
return h
|
|
13053
|
+
return h("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, dateFormat: this.dateFormat, "emit-on-click": this.emitOnClick, "enable-south-african-mode": this.enableSouthAfricanMode });
|
|
13054
13054
|
case 'password':
|
|
13055
|
-
return h
|
|
13055
|
+
return h("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, hidePasswordComplexity: this.hidePasswordComplexity, "no-validation": this.noValidation, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, "enable-south-african-mode": this.enableSouthAfricanMode });
|
|
13056
13056
|
case 'radio':
|
|
13057
|
-
return h
|
|
13057
|
+
return h("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
13058
13058
|
case 'tel':
|
|
13059
|
-
return h
|
|
13059
|
+
return h("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
13060
13060
|
case 'dropdown':
|
|
13061
|
-
return h
|
|
13061
|
+
return h("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
13062
13062
|
case 'twofa':
|
|
13063
|
-
return h
|
|
13063
|
+
return h("twofa-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, destination: this.twofaDestination, "resend-interval-seconds": this.twofaResendIntervalSeconds, "enable-south-african-mode": this.enableSouthAfricanMode, "pin-attempts-exceeded": this.pinAttemptsExceeded, "mb-source": this.mbSource });
|
|
13064
13064
|
default:
|
|
13065
13065
|
if (this.displayName && this.displayName.trim() !== '') {
|
|
13066
|
-
return h
|
|
13066
|
+
return h("div", { class: "general-non-input", innerHTML: this.displayName });
|
|
13067
13067
|
}
|
|
13068
13068
|
else {
|
|
13069
13069
|
return null;
|
|
@@ -13071,7 +13071,7 @@ const GeneralInput = class {
|
|
|
13071
13071
|
}
|
|
13072
13072
|
}
|
|
13073
13073
|
render() {
|
|
13074
|
-
return (h
|
|
13074
|
+
return (h(Host, { key: '0474aad44033fe0c48473af7938e9ddb77b684e8', class: `general-input--${this.name}`, onClick: this.handleClick }, this.renderInput()));
|
|
13075
13075
|
}
|
|
13076
13076
|
get host() { return getElement(this); }
|
|
13077
13077
|
static get watchers() { return {
|
|
@@ -14217,19 +14217,19 @@ const checkEmptyValue = (val) => {
|
|
|
14217
14217
|
return false;
|
|
14218
14218
|
};
|
|
14219
14219
|
|
|
14220
|
-
var
|
|
14220
|
+
var PlayerConsentsBOZrluYI = {};
|
|
14221
14221
|
|
|
14222
|
-
var
|
|
14223
|
-
|
|
14224
|
-
var st=Object.defineProperty,it=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var S=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&S(e,n,t[n]);if(H)for(var n of H(t))ot.call(t,n)&&S(e,n,t[n]);return e},R=(e,t)=>it(e,ct(t));var f=(e,t,n)=>(S(e,typeof t!="symbol"?t+"":t,n),n);var U=(e,t,n)=>new Promise((s,c)=>{var i=o=>{try{u(n.next(o));}catch(l){c(l);}},r=o=>{try{u(n.throw(o));}catch(l){c(l);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,r);u((n=n.apply(e,t)).next());});function h(){}function I(e){return e()}function z(){return Object.create(null)}function b(e){e.forEach(I);}function N(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function lt(e){return Object.keys(e).length===0}function F(e,...t){if(e==null){for(const s of t)s(void 0);return h}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(F(t,n));}function ft(e){return e}function J(e,t){e.appendChild(t);}function V(e,t,n){const s=dt(e);if(!s.getElementById(t)){const c=w("style");c.id=t,c.textContent=n,ht(s,c);}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return J(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null);}function y(e){e.parentNode&&e.parentNode.removeChild(e);}function at(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function w(e){return document.createElement(e)}function q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function $t(){return T(" ")}function mt(){return T("")}function _t(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function M(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function pt(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:M(e,t,n);}function gt(e){return Array.from(e.childNodes)}function bt(e,t){t=""+t,e.data!==t&&(e.data=t);}class yt{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,n,s=null){this.e||(this.is_svg?this.e=q(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(s);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let n=0;n<this.n.length;n+=1)v(this.t,this.n[n],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(y);}}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function p(e){g=e;}function xt(){if(!g)throw new Error("Function called outside component initialization");return g}function K(e){xt().$$.on_mount.push(e);}const $=[],L=[];let m=[];const G=[],Et=Promise.resolve();let A=!1;function Lt(){A||(A=!0,Et.then(_));}function C(e){m.push(e);}const k=new Set;let a=0;function _(){if(a!==0)return;const e=g;do{try{for(;a<$.length;){const t=$[a];a++,p(t),vt(t.$$);}}catch(t){throw $.length=0,a=0,t}for(p(null),$.length=0,a=0;L.length;)L.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while($.length);for(;G.length;)G.pop()();A=!1,k.clear(),p(e);}function vt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C);}}function St(e){const t=[],n=[];m.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),m=t;}const kt=new Set;function At(e,t){e&&e.i&&(kt.delete(e),e.i(t));}function Ct(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nt(e,t,n){const{fragment:s,after_update:c}=e.$$;s&&s.m(t,n),C(()=>{const i=e.$$.on_mount.map(I).filter(N);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),c.forEach(C);}function Tt(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Mt(e,t){e.$$.dirty[0]===-1&&($.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function Q(e,t,n,s,c,i,r=null,u=[-1]){const o=g;p(e);const l=e.$$={fragment:null,ctx:[],props:i,update:h,not_equal:c,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:z(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};r&&r(l.root);let x=!1;if(l.ctx=n?n(e,t.props||{},(d,j,...O)=>{const P=O.length?O[0]:j;return l.ctx&&c(l.ctx[d],l.ctx[d]=P)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](P),x&&Mt(e,d)),j}):[],l.update(),x=!0,b(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const d=gt(t.target);l.fragment&&l.fragment.l(d),d.forEach(y);}else l.fragment&&l.fragment.c();t.intro&&At(e.$$.fragment),Nt(e,t.target,t.anchor),_();}p(o);}let W;typeof HTMLElement=="function"&&(W=class extends HTMLElement{constructor(t,n,s){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const c=this.$$c.$on(t,n);this.$$l_u.set(n,c);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n));}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let r;return {c:function(){r=w("slot"),i!=="default"&&M(r,"name",i);},m:function(l,x){v(l,r,x);},d:function(l){l&&y(r);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=wt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=E(r,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:R(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const c=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=E(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r);}this.$$r=!1;};this.$$c.$$.after_update.push(c),c();for(const i in this.$$l)for(const r of this.$$l[i]){const u=this.$$c.$on(i,r);this.$$l_u.set(r,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var c;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,this.$$p_d,"toProp"),(c=this.$$c)==null||c.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function E(e,t,n,s){var i;const c=(i=n[e])==null?void 0:i.type;if(t=c==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(c){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(c){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function X(e,t,n,s,c,i){let r=class extends W{constructor(){super(e,n,c),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(r.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=E(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(r.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=r,r}class Y{constructor(){f(this,"$$");f(this,"$$set");}$destroy(){Tt(this,1),this.$destroy=h;}$on(t,n){if(!N(n))return h;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1);}}$set(t){this.$$set&&!lt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const jt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);function Z(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function tt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const c=document.createElement("style");c.innerHTML=s,e&&e.appendChild(c);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function et(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,c=>{s.innerHTML=c,e&&e.appendChild(s);});}}function Ot(e){V(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function Pt(e){let t;return {c(){t=w("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){v(n,t,s),e[4](t);},p:h,i:h,o:h,d(n){n&&y(t),e[4](null);}}}function Ht(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,r;K(()=>()=>{});function u(o){L[o?"unshift":"push"](()=>{r=o,n(0,r);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,c=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&r&&Z(r,s),e.$$.dirty&5&&c&&r&&tt(r,c),e.$$.dirty&9&&i&&r&&et(r,`${i}.Style`);},[r,s,c,i,u]}class nt extends Y{constructor(t){super(),Q(this,t,Ht,Pt,D,{clientstyling:1,clientstylingurl:2,mbsource:3},Ot);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),_();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_();}}X(nt,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));GeneralAnimationLoadingCvjpSnS0.GeneralAnimationLoading_ce=Bt;GeneralAnimationLoadingCvjpSnS0.HtmlTag=yt;GeneralAnimationLoadingCvjpSnS0.SvelteComponent=Y;GeneralAnimationLoadingCvjpSnS0.append=J;GeneralAnimationLoadingCvjpSnS0.append_styles=V;GeneralAnimationLoadingCvjpSnS0.attr=M;GeneralAnimationLoadingCvjpSnS0.binding_callbacks=L;GeneralAnimationLoadingCvjpSnS0.component_subscribe=ut;GeneralAnimationLoadingCvjpSnS0.create_custom_element=X;GeneralAnimationLoadingCvjpSnS0.destroy_each=at;GeneralAnimationLoadingCvjpSnS0.detach=y;GeneralAnimationLoadingCvjpSnS0.element=w;GeneralAnimationLoadingCvjpSnS0.empty=mt;GeneralAnimationLoadingCvjpSnS0.ensure_array_like=Ct;GeneralAnimationLoadingCvjpSnS0.flush=_;GeneralAnimationLoadingCvjpSnS0.init=Q;GeneralAnimationLoadingCvjpSnS0.insert=v;GeneralAnimationLoadingCvjpSnS0.is_function=N;GeneralAnimationLoadingCvjpSnS0.listen=_t;GeneralAnimationLoadingCvjpSnS0.noop=h;GeneralAnimationLoadingCvjpSnS0.null_to_empty=ft;GeneralAnimationLoadingCvjpSnS0.onMount=K;GeneralAnimationLoadingCvjpSnS0.run_all=b;GeneralAnimationLoadingCvjpSnS0.safe_not_equal=D;GeneralAnimationLoadingCvjpSnS0.setClientStyling=Z;GeneralAnimationLoadingCvjpSnS0.setClientStylingURL=tt;GeneralAnimationLoadingCvjpSnS0.setStreamStyling=et;GeneralAnimationLoadingCvjpSnS0.set_custom_element_data=pt;GeneralAnimationLoadingCvjpSnS0.set_data=bt;GeneralAnimationLoadingCvjpSnS0.space=$t;GeneralAnimationLoadingCvjpSnS0.subscribe=F;GeneralAnimationLoadingCvjpSnS0.svg_element=q;GeneralAnimationLoadingCvjpSnS0.text=T;
|
|
14222
|
+
var GeneralAnimationLoadingBEgo5n3Q = {};
|
|
14225
14223
|
|
|
14226
14224
|
(function (exports) {
|
|
14227
|
-
var gr=Object.defineProperty,fr=Object.defineProperties;var _r=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var yr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var We=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&We(e,r,t[r]);if(qe)for(var r of qe(t))vr.call(t,r)&&We(e,r,t[r]);return e},Ze=(e,t)=>fr(e,_r(t));var ne=(e,t,r)=>new Promise((n,i)=>{var o=d=>{try{l(r.next(d));}catch(h){i(h);}},s=d=>{try{l(r.throw(d));}catch(h){i(h);}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=GeneralAnimationLoadingCvjpSnS0,X=[];function kr(e,t){return {subscribe:ke(e,t).subscribe}}function ke(e,t=a.noop){let r;const n=new Set;function i(l){if(a.safe_not_equal(e,l)&&(e=l,r)){const d=!X.length;for(const h of n)h[1](),X.push(h,e);if(d){for(let h=0;h<X.length;h+=2)X[h][0](X[h+1]);X.length=0;}}}function o(l){i(l(e));}function s(l,d=a.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,o)||a.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:s}}function Q(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return kr(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},k=i.map((_,g)=>a.subscribe(_,C=>{h[g]=C,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){a.run_all(k),m(),d=!1;}})}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er=function(t){return Cr(t)&&!Sr(t)};function Cr(e){return !!e&&typeof e=="object"}function Sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var xr=typeof Symbol=="function"&&Symbol.for,Tr=xr?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Tr}function wr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?q(wr(e),e,t):e}function Nr(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function Ar(e,t){if(!t.customMerge)return q;var r=t.customMerge(e);return typeof r=="function"?r:q}function Hr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Je(e){return Object.keys(e).concat(Hr(e))}function Et(e,t){try{return t in e}catch(r){return !1}}function Pr(e,t){return Et(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Br(e,t,r){var n={};return r.isMergeableObject(e)&&Je(e).forEach(function(i){n[i]=ae(e[i],r);}),Je(t).forEach(function(i){Pr(e,i)||(Et(e,i)&&r.isMergeableObject(t[i])?n[i]=Ar(i,r)(e[i],t[i],r):n[i]=ae(t[i],r));}),n}function q(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Nr,r.isMergeableObject=r.isMergeableObject||Er,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Br(e,t,r):ae(t,r)}q.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return q(n,i,r)},{})};var Or=q,zr=Or;const Ir=br(zr);var Pe=function(e,t){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},Pe(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pe(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var U=function(){return U=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},U.apply(this,arguments)};function jr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Te(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Me(e,t){var r=t&&t.cache?t.cache:Vr,n=t&&t.serializer?t.serializer:Gr,i=t&&t.strategy?t.strategy:Ur;return i(e,{cache:r,serializer:n})}function Lr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rr(e,t,r,n){var i=Lr(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Ct(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function St(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?Rr:Ct;return St(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return St(e,this,Ct,t.cache.create(),t.serializer)}var Gr=function(){return JSON.stringify(arguments)},Fr=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),Vr={create:function(){return new Fr}},we={variadic:Dr},_e=function(){return _e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},_e.apply(this,arguments)};var M;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(M||(M={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(A||(A={}));var W;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(W||(W={}));function Qe(e){return e.type===A.literal}function Xr(e){return e.type===A.argument}function xt(e){return e.type===A.number}function Tt(e){return e.type===A.date}function Mt(e){return e.type===A.time}function wt(e){return e.type===A.select}function Nt(e){return e.type===A.plural}function qr(e){return e.type===A.pound}function At(e){return e.type===A.tag}function Ht(e){return !!(e&&typeof e=="object"&&e.type===W.number)}function Be(e){return !!(e&&typeof e=="object"&&e.type===W.dateTime)}var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zr(e){var t={};return e.replace(Wr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var B=function(){return B=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},B.apply(this,arguments)};var Jr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jr).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Yr(e){return e.replace(/^(.*?)-/,"")}var Ye=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bt=/^(@+)?(\+|#+)?[rs]?$/g,Kr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function Ke(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Bt,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function zt(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function $r(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function $e(e){var t={},r=zt(e);return r||t}function en(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=B(B(B({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"engineering":t=B(B(B({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Kr,function(d,h,c,m,p,k){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(k)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Ot.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ye.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ye,function(d,h,c,m,p,k){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&k?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+k.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=B(B({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=B(B({},t),Ke(o)));continue}if(Bt.test(i.stem)){t=B(B({},t),Ke(i.stem));continue}var s=zt(i.stem);s&&(t=B(B({},t),s));var l=$r(i.stem);l&&(t=B(B({},t),l));}return t}var pe={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tn(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),l=o<2?1:3+(o>>1),d="a",h=rn(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function rn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=pe[n||""]||pe[r||""]||pe["".concat(r,"-001")]||pe["001"];return i[0]}var Ne,nn=new RegExp("^".concat(Pt.source,"*")),an=new RegExp("".concat(Pt.source,"*$"));function w(e,t){return {start:e,end:t}}var on=!!String.prototype.startsWith&&"_a".startsWith("a",1),sn=!!String.fromCodePoint,ln=!!Object.fromEntries,cn=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,dn=!!Number.isSafeInteger,mn=dn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Oe=!0;try{var pn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oe=((Ne=pn.exec("a"))===null||Ne===void 0?void 0:Ne[0])==="a";}catch(e){Oe=!1;}var et=on?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ze=sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},tt=ln?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=l;}return r},It=cn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},gn=un?function(t){return t.trimStart()}:function(t){return t.replace(nn,"")},fn=hn?function(t){return t.trimEnd()}:function(t){return t.replace(an,"")};function jt(e,t){return new RegExp(e,t)}var Ie;if(Oe){var rt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ie=function(t,r){var n;rt.lastIndex=r;var i=rt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Ie=function(t,r){for(var n=[];;){var i=It(t,r);if(i===void 0||Lt(i)||kn(i))break;n.push(i),r+=i>=65536?2:1;}return ze.apply(void 0,n)};var _n=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:A.pound,location:w(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(M.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&je(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:A.literal,value:"<".concat(i,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!je(this.char()))return this.error(M.INVALID_TAG,w(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(M.UNMATCHED_CLOSING_TAG,w(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:s,location:w(n,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,w(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(M.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=w(n,this.clonePosition());return {val:{type:A.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!yn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return ze.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ze(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ie(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=w(t,o);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,w(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=fn(m.val);if(p.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var k=w(c,this.clonePosition());h={style:p,styleLocation:k};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=w(i,this.clonePosition());if(h&&et(h==null?void 0:h.style,"::",0)){var C=gn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(C,h.styleLocation);return m.err?m:{val:{type:A.number,value:n,location:g,style:m.val},err:null}}else {if(C.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,g);var y=C;this.locale&&(y=tn(C,this.locale));var p={type:W.dateTime,pattern:y,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(y):{}},v=l==="date"?A.date:A.time;return {val:{type:v,value:n,location:g,style:p},err:null}}}return {val:{type:l==="number"?A.number:l==="date"?A.date:A.time,value:n,location:g,style:(o=h==null?void 0:h.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,w(S,_e({},S)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),N=this.parseIdentifierIfPossible(),E=m.val;}var H=this.tryParsePluralOrSelectOptions(t,l,r,N);if(H.err)return H;var _=this.tryParseArgumentClose(i);if(_.err)return _;var P=w(i,this.clonePosition());return l==="select"?{val:{type:A.select,value:n,options:tt(H.val),location:P},err:null}:{val:{type:A.plural,value:n,options:tt(H.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,w(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Qr(t);}catch(i){return this.error(M.INVALID_NUMBER_SKELETON,r)}return {val:{type:W.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,l=[],d=new Set,h=i.value,c=i.location;;){if(h.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=w(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var k=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(k);if(g.err)return g;l.push([h,{value:_.val,location:w(k,this.clonePosition())}]),d.add(h),this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=o.value,c=o.location;}return l.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var d=w(i,this.clonePosition());return o?(s*=n,mn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=It(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(et(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Lt(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function je(e){return e>=97&&e<=122||e>=65&&e<=90}function yn(e){return je(e)||e===47}function vn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Lt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Le(e){e.forEach(function(t){if(delete t.location,wt(t)||Nt(t))for(var r in t.options)delete t.options[r].location,Le(t.options[r].value);else xt(t)&&Ht(t.style)||(Tt(t)||Mt(t))&&Be(t.style)?delete t.style.location:At(t)&&Le(t.children);});}function bn(e,t){t===void 0&&(t={}),t=_e({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _n(e,t).parse();if(r.err){var n=SyntaxError(M[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Le(r.val),r.val}var Z;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(Z||(Z={}));var Ee=function(e){be(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),nt=function(e){be(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Z.INVALID_VALUE,o)||this}return t}(Ee),En=function(e){be(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Z.INVALID_VALUE,i)||this}return t}(Ee),Cn=function(e){be(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Z.MISSING_VALUE,n)||this}return t}(Ee),j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(j||(j={}));function Sn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==j.literal||r.type!==j.literal?t.push(r):n.value+=r.value,t},[])}function xn(e){return typeof e=="function"}function ge(e,t,r,n,i,o,s){if(e.length===1&&Qe(e[0]))return [{type:j.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Qe(c)){l.push({type:j.literal,value:c.value});continue}if(qr(c)){typeof o=="number"&&l.push({type:j.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var p=i[m];if(Xr(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?j.literal:j.object,value:p});continue}if(Tt(c)){var k=typeof c.style=="string"?n.date[c.style]:Be(c.style)?c.style.parsedOptions:void 0;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(Mt(c)){var k=typeof c.style=="string"?n.time[c.style]:Be(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(xt(c)){var k=typeof c.style=="string"?n.number[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;k&&k.scale&&(p=p*(k.scale||1)),l.push({type:j.literal,value:r.getNumberFormat(t,k).format(p)});continue}if(At(c)){var _=c.children,g=c.value,C=i[g];if(!xn(C))throw new En(g,"function",s);var y=ge(_,t,r,n,i,o),v=C(y.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(E){return {type:typeof E=="string"?j.literal:j.object,value:E}}));}if(wt(c)){var S=c.options[p]||c.options.other;if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i));continue}if(Nt(c)){var S=c.options["=".concat(p)];if(!S){if(!Intl.PluralRules)throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
14225
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=PlayerConsentsBOZrluYI;function f(e){i.append_styles(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function m(e){let t;return {c(){t=i.element("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(l,r){i.insert(l,t,r),e[4](t);},p:i.noop,i:i.noop,o:i.noop,d(l){l&&i.detach(t),e[4](null);}}}function y(e,t,l){let{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{mbsource:d}=t,n,a;i.onMount(()=>()=>{});function u(s){i.binding_callbacks[s?"unshift":"push"](()=>{n=s,l(0,n);});}return e.$$set=s=>{"clientstyling"in s&&l(1,r=s.clientstyling),"clientstylingurl"in s&&l(2,c=s.clientstylingurl),"mbsource"in s&&l(3,d=s.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&r&&n&&i.setClientStyling(n,r),e.$$.dirty&5&&c&&n&&i.setClientStylingURL(n,c),e.$$.dirty&9&&d&&n&&i.setStreamStyling(n,`${d}.Style`,a);},[n,r,c,d,u]}class o extends i.SvelteComponent{constructor(t){super(),i.init(this,t,y,m,i.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},f);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),i.flush();}}i.create_custom_element(o,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=o;
|
|
14226
|
+
}(GeneralAnimationLoadingBEgo5n3Q));
|
|
14227
|
+
|
|
14228
|
+
var an=Object.defineProperty,sn=Object.defineProperties;var ln=Object.getOwnPropertyDescriptors;var Tt=Object.getOwnPropertySymbols;var cn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable;var Je=(e,t,r)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,W=(e,t)=>{for(var r in t||(t={}))cn.call(t,r)&&Je(e,r,t[r]);if(Tt)for(var r of Tt(t))un.call(t,r)&&Je(e,r,t[r]);return e},Qe=(e,t)=>sn(e,ln(t));var U=(e,t,r)=>(Je(e,typeof t!="symbol"?t+"":t,r),r);var re=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c));}catch(l){i(l);}},a=c=>{try{s(r.throw(c));}catch(l){i(l);}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next());});function $(){}function nr(e){return e()}function Mt(){return Object.create(null)}function me(e){e.forEach(nr);}function _t(e){return typeof e=="function"}function Fe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function hn(e){return Object.keys(e).length===0}function ir(e,...t){if(e==null){for(const n of t)n(void 0);return $}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function dn(e,t,r){e.$$.on_destroy.push(ir(t,r));}function x(e,t){e.appendChild(t);}function or(e,t,r){const n=mn(e);if(!n.getElementById(t)){const i=w("style");i.id=t,i.textContent=r,fn(n,i);}}function mn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function fn(e,t){return x(e.head||e,t),t.sheet}function z(e,t,r){e.insertBefore(t,r||null);}function B(e){e.parentNode&&e.parentNode.removeChild(e);}function yt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t);}function w(e){return document.createElement(e)}function ot(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ee(e){return document.createTextNode(e)}function F(){return ee(" ")}function pn(){return ee("")}function Ce(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function k(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r);}function K(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:k(e,t,r);}function gn(e){return Array.from(e.childNodes)}function Me(e,t){t=""+t,e.data!==t&&(e.data=t);}class ar{constructor(t=!1){U(this,"is_svg",!1);U(this,"e");U(this,"n");U(this,"t");U(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,r,n=null){this.e||(this.is_svg?this.e=ot(r.nodeName):this.e=w(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(n);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let r=0;r<this.n.length;r+=1)z(this.t,this.n[r],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(B);}}function _n(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0;}),t}let Se;function Ee(e){Se=e;}function yn(){if(!Se)throw new Error("Function called outside component initialization");return Se}function sr(e){yn().$$.on_mount.push(e);}const oe=[],xe=[];let se=[];const Nt=[],vn=Promise.resolve();let at=!1;function bn(){at||(at=!0,vn.then(X));}function st(e){se.push(e);}const Ye=new Set;let ne=0;function X(){if(ne!==0)return;const e=Se;do{try{for(;ne<oe.length;){const t=oe[ne];ne++,Ee(t),kn(t.$$);}}catch(t){throw oe.length=0,ne=0,t}for(Ee(null),oe.length=0,ne=0;xe.length;)xe.pop()();for(let t=0;t<se.length;t+=1){const r=se[t];Ye.has(r)||(Ye.add(r),r());}se.length=0;}while(oe.length);for(;Nt.length;)Nt.pop()();at=!1,Ye.clear(),Ee(e);}function kn(e){if(e.fragment!==null){e.update(),me(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(st);}}function En(e){const t=[],r=[];se.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),se=t;}const Cn=new Set;function Sn(e,t){e&&e.i&&(Cn.delete(e),e.i(t));}function le(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function xn(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),st(()=>{const o=e.$$.on_mount.map(nr).filter(_t);e.$$.on_destroy?e.$$.on_destroy.push(...o):me(o),e.$$.on_mount=[];}),i.forEach(st);}function wn(e,t){const r=e.$$;r.fragment!==null&&(En(r.after_update),me(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[]);}function Tn(e,t){e.$$.dirty[0]===-1&&(oe.push(e),bn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function vt(e,t,r,n,i,o,a=null,s=[-1]){const c=Se;Ee(e);const l=e.$$={fragment:null,ctx:[],props:o,update:$,not_equal:i,bound:Mt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Mt(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let u=!1;if(l.ctx=r?r(e,t.props||{},(d,m,...y)=>{const g=y.length?y[0]:m;return l.ctx&&i(l.ctx[d],l.ctx[d]=g)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](g),u&&Tn(e,d)),m}):[],l.update(),u=!0,me(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const d=gn(t.target);l.fragment&&l.fragment.l(d),d.forEach(B);}else l.fragment&&l.fragment.c();t.intro&&Sn(e.$$.fragment),xn(e,t.target,t.anchor),X();}Ee(c);}let lr;typeof HTMLElement=="function"&&(lr=class extends HTMLElement{constructor(t,r,n){super();U(this,"$$ctor");U(this,"$$s");U(this,"$$c");U(this,"$$cn",!1);U(this,"$$d",{});U(this,"$$r",!1);U(this,"$$p_d",{});U(this,"$$l",{});U(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"});}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i);}super.addEventListener(t,r,n);}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r));}}connectedCallback(){return re(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return ()=>{let a;return {c:function(){a=w("slot"),o!=="default"&&k(a,"name",o);},m:function(l,u){z(l,a,u);},d:function(l){l&&B(a);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=_n(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=je(a,o.value,this.$$p_d,"toProp"));}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Qe(W({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=je(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a);}this.$$r=!1;};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s);}this.$$l={};}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function je(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bt(e,t,r,n,i,o){let a=class extends lr{constructor(){super(e,r,i),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){var l;c=je(s,c,t),this.$$d[s]=c,(l=this.$$c)==null||l.$set({[s]:c});}});}),n.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var c;return (c=this.$$c)==null?void 0:c[s]}});}),e.element=a,a}class kt{constructor(){U(this,"$$");U(this,"$$set");}$destroy(){wn(this,1),this.$destroy=$;}$on(t,r){if(!_t(r))return $;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1);}}$set(t){this.$$set&&!hn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const Mn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mn);const ae="__WIDGET_GLOBAL_STYLE_CACHE__";function cr(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r);}}function ur(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i);}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n);});}function hr(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Nn(e,t),r;window[ae]||(window[ae]={}),r=An(e,t);const o=r.unsubscribe.bind(r),a=()=>{if(window[ae][t]){const s=window[ae][t];s.refCount>1?s.refCount=s.refCount-1:delete window[ae][t];}o();};return r.unsubscribe=a,r}function Nn(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r));})}function An(e,t){return window.emMessageBus.subscribe(t,r=>{var s;if(!e)return;const n=e.getRootNode(),i=window[ae];let o=(s=i[t])==null?void 0:s.sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(o)||(n.adoptedStyleSheets=[...a,o]);})}const ie=[];function Hn(e,t){return {subscribe:$e(e,t).subscribe}}function $e(e,t=$){let r;const n=new Set;function i(s){if(Fe(e,s)&&(e=s,r)){const c=!ie.length;for(const l of n)l[1](),ie.push(l,e);if(c){for(let l=0;l<ie.length;l+=2)ie[l][0](ie[l+1]);ie.length=0;}}}function o(s){i(s(e));}function a(s,c=$){const l=[s,c];return n.add(l),n.size===1&&(r=t(i,o)||$),s(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:a}}function fe(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Hn(r,(a,s)=>{let c=!1;const l=[];let u=0,d=$;const m=()=>{if(u)return;d();const g=t(n?l[0]:l,a,s);o?a(g):d=_t(g)?g:$;},y=i.map((g,f)=>ir(g,S=>{l[f]=S,u&=~(1<<f),c&&m();},()=>{u|=1<<f;}));return c=!0,m(),function(){me(y),d(),c=!1;}})}function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bn=function(t){return On(t)&&!zn(t)};function On(e){return !!e&&typeof e=="object"}function zn(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||In(e)}var Ln=typeof Symbol=="function"&&Symbol.for,jn=Ln?Symbol.for("react.element"):60103;function In(e){return e.$$typeof===jn}function Rn(e){return Array.isArray(e)?[]:{}}function we(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ce(Rn(e),e,t):e}function Un(e,t,r){return e.concat(t).map(function(n){return we(n,r)})}function Dn(e,t){if(!t.customMerge)return ce;var r=t.customMerge(e);return typeof r=="function"?r:ce}function Gn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function At(e){return Object.keys(e).concat(Gn(e))}function dr(e,t){try{return t in e}catch(r){return !1}}function Fn(e,t){return dr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function $n(e,t,r){var n={};return r.isMergeableObject(e)&&At(e).forEach(function(i){n[i]=we(e[i],r);}),At(t).forEach(function(i){Fn(e,i)||(dr(e,i)&&r.isMergeableObject(t[i])?n[i]=Dn(i,r)(e[i],t[i],r):n[i]=we(t[i],r));}),n}function ce(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Un,r.isMergeableObject=r.isMergeableObject||Bn,r.cloneUnlessOtherwiseSpecified=we;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):$n(e,t,r):we(t,r)}ce.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ce(n,i,r)},{})};var Vn=ce,Xn=Vn;const qn=Pn(Xn);var lt=function(e,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},lt(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lt(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var Z=function(){return Z=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},Z.apply(this,arguments)};function Wn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function et(e,t){var r=t&&t.cache?t.cache:ti,n=t&&t.serializer?t.serializer:Kn,i=t&&t.strategy?t.strategy:Qn;return i(e,{cache:r,serializer:n})}function Zn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Jn(e,t,r,n){var i=Zn(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function mr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function fr(e,t,r,n,i){return r.bind(t,e,n,i)}function Qn(e,t){var r=e.length===1?Jn:mr;return fr(e,this,r,t.cache.create(),t.serializer)}function Yn(e,t){return fr(e,this,mr,t.cache.create(),t.serializer)}var Kn=function(){return JSON.stringify(arguments)},ei=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),ti={create:function(){return new ei}},tt={variadic:Yn},Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},Ue.apply(this,arguments)};var N;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(N||(N={}));var P;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(P||(P={}));var ue;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(ue||(ue={}));function Ht(e){return e.type===P.literal}function ri(e){return e.type===P.argument}function pr(e){return e.type===P.number}function gr(e){return e.type===P.date}function _r(e){return e.type===P.time}function yr(e){return e.type===P.select}function vr(e){return e.type===P.plural}function ni(e){return e.type===P.pound}function br(e){return e.type===P.tag}function kr(e){return !!(e&&typeof e=="object"&&e.type===ue.number)}function ct(e){return !!(e&&typeof e=="object"&&e.type===ue.dateTime)}var Er=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ii=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function oi(e){var t={};return e.replace(ii,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var O=function(){return O=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},O.apply(this,arguments)};var ai=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function si(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ai).filter(function(m){return m.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),l=0,u=c;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:c});}return r}function li(e){return e.replace(/^(.*?)-/,"")}var Pt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Cr=/^(@+)?(\+|#+)?[rs]?$/g,ci=/(\*)(0+)|(#+)(0+)|(0+)/g,Sr=/^(0+)$/;function Bt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Cr,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function xr(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function ui(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function Ot(e){var t={},r=xr(e);return r||t}function hi(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=li(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=O(O(O({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return O(O({},c),Ot(l))},{}));continue;case"engineering":t=O(O(O({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return O(O({},c),Ot(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ci,function(c,l,u,d,m,y){if(l)t.minimumIntegerDigits=u.length;else {if(d&&m)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Sr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Pt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Pt,function(c,l,u,d,m,y){return u==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&y?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+y.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=O(O({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=O(O({},t),Bt(o)));continue}if(Cr.test(i.stem)){t=O(O({},t),Bt(i.stem));continue}var a=xr(i.stem);a&&(t=O(O({},t),a));var s=ui(i.stem);s&&(t=O(O({},t),s));}return t}var Le={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function di(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),s=o<2?1:3+(o>>1),c="a",l=mi(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r;}else i==="J"?r+="H":r+=i;}return r}function mi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Le[n||""]||Le[r||""]||Le["".concat(r,"-001")]||Le["001"];return i[0]}var rt,fi=new RegExp("^".concat(Er.source,"*")),pi=new RegExp("".concat(Er.source,"*$"));function A(e,t){return {start:e,end:t}}var gi=!!String.prototype.startsWith&&"_a".startsWith("a",1),_i=!!String.fromCodePoint,yi=!!Object.fromEntries,vi=!!String.prototype.codePointAt,bi=!!String.prototype.trimStart,ki=!!String.prototype.trimEnd,Ei=!!Number.isSafeInteger,Ci=Ei?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ut=!0;try{var Si=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ut=((rt=Si.exec("a"))===null||rt===void 0?void 0:rt[0])==="a";}catch(e){ut=!1;}var zt=gi?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ht=_i?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320);}return n},Lt=yi?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],s=o[1];r[a]=s;}return r},wr=vi?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},xi=bi?function(t){return t.trimStart()}:function(t){return t.replace(fi,"")},wi=ki?function(t){return t.trimEnd()}:function(t){return t.replace(pi,"")};function Tr(e,t){return new RegExp(e,t)}var dt;if(ut){var jt=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dt=function(t,r){var n;jt.lastIndex=r;var i=jt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else dt=function(t,r){for(var n=[];;){var i=wr(t,r);if(i===void 0||Mr(i)||Ai(i))break;n.push(i),r+=i>=65536?2:1;}return ht.apply(void 0,n)};var Ti=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:P.pound,location:A(s,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(N.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&mt(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val);}else {var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:P.literal,value:"<".concat(i,"/>"),location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mt(this.char()))return this.error(N.INVALID_TAG,A(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(N.UNMATCHED_CLOSING_TAG,A(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:P.tag,value:i,children:a,location:A(n,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,A(s,this.clonePosition())))}else return this.error(N.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(N.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ni(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=A(n,this.clonePosition());return {val:{type:P.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!Mi(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return ht.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ht(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(N.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(N.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(N.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=dt(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=A(t,o);return {value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(N.EXPECT_ARGUMENT_TYPE,A(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=wi(d.val);if(m.length===0)return this.error(N.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var y=A(u,this.clonePosition());l={style:m,styleLocation:y};}var g=this.tryParseArgumentClose(i);if(g.err)return g;var f=A(i,this.clonePosition());if(l&&zt(l==null?void 0:l.style,"::",0)){var S=xi(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(S,l.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:f,style:d.val},err:null}}else {if(S.length===0)return this.error(N.EXPECT_DATE_TIME_SKELETON,f);var _=S;this.locale&&(_=di(S,this.locale));var m={type:ue.dateTime,pattern:_,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?oi(_):{}},v=s==="date"?P.date:P.time;return {val:{type:v,value:n,location:f,style:m},err:null}}}return {val:{type:s==="number"?P.number:s==="date"?P.date:P.time,value:n,location:f,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,A(C,Ue({},C)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),H=this.parseIdentifierIfPossible(),E=d.val;}var L=this.tryParsePluralOrSelectOptions(t,s,r,H);if(L.err)return L;var g=this.tryParseArgumentClose(i);if(g.err)return g;var J=A(i,this.clonePosition());return s==="select"?{val:{type:P.select,value:n,options:Lt(L.val),location:J},err:null}:{val:{type:P.plural,value:n,options:Lt(L.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:J},err:null}}default:return this.error(N.INVALID_ARGUMENT_TYPE,A(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,A(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=si(t);}catch(i){return this.error(N.INVALID_NUMBER_SKELETON,r)}return {val:{type:ue.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hi(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,s=[],c=new Set,l=i.value,u=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;u=A(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset());}else break}if(c.has(l))return this.error(r==="select"?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(a=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var f=this.tryParseArgumentClose(y);if(f.err)return f;s.push([l,{value:g.val,location:A(y,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location;}return s.length===0?this.error(r==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(N.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=A(i,this.clonePosition());return o?(a*=n,Ci(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=wr(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(zt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Mr(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function mt(e){return e>=97&&e<=122||e>=65&&e<=90}function Mi(e){return mt(e)||e===47}function Ni(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Mr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ai(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ft(e){e.forEach(function(t){if(delete t.location,yr(t)||vr(t))for(var r in t.options)delete t.options[r].location,ft(t.options[r].value);else pr(t)&&kr(t.style)||(gr(t)||_r(t))&&ct(t.style)?delete t.style.location:br(t)&&ft(t.children);});}function Hi(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ti(e,t).parse();if(r.err){var n=SyntaxError(N[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||ft(r.val),r.val}var he;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(he||(he={}));var Xe=function(e){Ve(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),It=function(e){Ve(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),he.INVALID_VALUE,o)||this}return t}(Xe),Pi=function(e){Ve(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),he.INVALID_VALUE,i)||this}return t}(Xe),Bi=function(e){Ve(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),he.MISSING_VALUE,n)||this}return t}(Xe),G;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(G||(G={}));function Oi(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==G.literal||r.type!==G.literal?t.push(r):n.value+=r.value,t},[])}function zi(e){return typeof e=="function"}function Ie(e,t,r,n,i,o,a){if(e.length===1&&Ht(e[0]))return [{type:G.literal,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c];if(Ht(u)){s.push({type:G.literal,value:u.value});continue}if(ni(u)){typeof o=="number"&&s.push({type:G.literal,value:r.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new Bi(d,a);var m=i[d];if(ri(u)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?G.literal:G.object,value:m});continue}if(gr(u)){var y=typeof u.style=="string"?n.date[u.style]:ct(u.style)?u.style.parsedOptions:void 0;s.push({type:G.literal,value:r.getDateTimeFormat(t,y).format(m)});continue}if(_r(u)){var y=typeof u.style=="string"?n.time[u.style]:ct(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:G.literal,value:r.getDateTimeFormat(t,y).format(m)});continue}if(pr(u)){var y=typeof u.style=="string"?n.number[u.style]:kr(u.style)?u.style.parsedOptions:void 0;y&&y.scale&&(m=m*(y.scale||1)),s.push({type:G.literal,value:r.getNumberFormat(t,y).format(m)});continue}if(br(u)){var g=u.children,f=u.value,S=i[f];if(!zi(S))throw new Pi(f,"function",a);var _=Ie(g,t,r,n,i,o),v=S(_.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map(function(E){return {type:typeof E=="string"?G.literal:G.object,value:E}}));}if(yr(u)){var C=u.options[m]||u.options.other;if(!C)throw new It(u.value,m,Object.keys(u.options),a);s.push.apply(s,Ie(C.value,t,r,n,i));continue}if(vr(u)){var C=u.options["=".concat(m)];if(!C){if(!Intl.PluralRules)throw new Xe(`Intl.PluralRules is not available in this environment.
|
|
14228
14229
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
14229
|
-
`,Z.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));S=c.options[N]||c.options.other;}if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i,p-(c.offset||0)));continue}}return Sn(l)}function Tn(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Mn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Tn(e[n],t[n]),r},U({},e)):e}function Ae(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function wn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.number),strategy:we.variadic}),getDateTimeFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.dateTime),strategy:we.variadic}),getPluralRules:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.pluralRules),strategy:we.variadic})}}var Nn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=o.formatToParts(d);if(h.length===1)return h[0].value;var c=h.reduce(function(m,p){return !m.length||p.type!==j.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return ge(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return {locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=jr(s,["formatters"]);this.ast=e.__parse(t,U(U({},l),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mn(e.formats,n),this.formatters=i&&i.formatters||wn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=bn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function An(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const F={},Hn=(e,t,r)=>r&&(t in F||(F[t]={}),e in F[t]||(F[t][e]=r),r),Rt=(e,t)=>{if(t==null)return;if(t in F&&e in F[t])return F[t][e];const r=Ce(t);for(let n=0;n<r.length;n++){const i=r[n],o=Bn(i,e);if(o)return Hn(e,t,o)}};let De;const se=ke({});function Pn(e){return De[e]||null}function Ut(e){return e in De}function Bn(e,t){if(!Ut(e))return null;const r=Pn(e);return An(r,t)}function On(e){if(e==null)return;const t=Ce(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ut(n))return n}}function Dt(e,...t){delete F[e],se.update(r=>(r[e]=Ir.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>De=e);const fe={};function zn(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Gt(e){return fe[e]}function In(e){return Ce(e).map(t=>{const r=Gt(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Re(e){return e==null?!1:Ce(e).some(t=>{var r;return (r=Gt(t))==null?void 0:r.size})}function jn(e,t){return Promise.all(t.map(n=>(zn(e,n),n().then(i=>i.default||i)))).then(n=>Dt(e,...n))}const ie={};function Ft(e){if(!Re(e))return e in ie?ie[e]:Promise.resolve();const t=In(e);return ie[e]=Promise.all(t.map(([r,n])=>jn(r,n))).then(()=>{if(Re(e))return Ft(e);delete ie[e];}),ie[e]}const Ln={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Rn={fallbackLocale:null,loadingDelay:200,formats:Ln,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Un=Rn;function J(){return Un}const He=ke(!1);var Dn=Object.defineProperty,Gn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,at=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))Vn.call(t,r)&&at(e,r,t[r]);if(it)for(var r of it(t))Xn.call(t,r)&&at(e,r,t[r]);return e},Wn=(e,t)=>Gn(e,Fn(t));let Ue;const ye=ke(null);function ot(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ce(e,t=J().fallbackLocale){const r=ot(e);return t?[...new Set([...r,...ot(t)])]:r}function V(){return Ue!=null?Ue:void 0}ye.subscribe(e=>{Ue=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Zn=e=>{if(e&&On(e)&&Re(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>He.set(!0),t):He.set(!0),Ft(e).then(()=>{ye.set(e);}).finally(()=>{clearTimeout(r),He.set(!1);})}return ye.set(e)},Y=Wn(qn({},ye),{set:Zn}),Se=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Jn=Object.defineProperty,ve=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,st=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&st(e,r,t[r]);if(ve)for(var r of ve(t))Xt.call(t,r)&&st(e,r,t[r]);return e},K=(e,t)=>{var r={};for(var n in e)Vt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&Xt.call(e,n)&&(r[n]=e[n]);return r};const oe=(e,t)=>{const{formats:r}=J();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=oe("number",n)),new Intl.NumberFormat(r,i)}),Yn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=oe("date",n):Object.keys(i).length===0&&(i=oe("date","short")),new Intl.DateTimeFormat(r,i)}),Kn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=oe("time",n):Object.keys(i).length===0&&(i=oe("time","short")),new Intl.DateTimeFormat(r,i)}),$n=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Qn(Ge({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Yn(Ge({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Kn(Ge({locale:r},n))},ri=Se((e,t=V())=>new Nn(e,t,J().formats,{ignoreTag:J().ignoreTag})),ni=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=V(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rt(e,d);if(!c)c=(o=(i=(n=(r=J()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ri(c,d).format(l);}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message);}return m},ii=(e,t)=>ti(t).format(e),ai=(e,t)=>ei(t).format(e),oi=(e,t)=>$n(t).format(e),si=(e,t=V())=>Rt(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>ai);Q([Y],()=>oi);Q([Y,se],()=>si);function lt(e,t){Dt(e,t);}function ci(e){Y.set(e);}const ct={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingCvjpSnS0).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ui(e){let t,r;return {c(){t=a.svg_element("svg"),r=a.svg_element("path"),a.attr(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),a.attr(t,"xmlns","http://www.w3.org/2000/svg"),a.attr(t,"viewBox","0 0 512 512");},m(n,i){a.insert(n,t,i),a.append(t,r);},p:a.noop,i:a.noop,o:a.noop,d(n){n&&a.detach(t);}}}class hi extends a.SvelteComponent{constructor(t){super(),a.init(this,t,null,ui,a.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",a.create_custom_element(hi,{},[],[],!0));function di(e){a.append_styles(e,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function ut(e,t,r){const n=e.slice();return n[64]=t[r],n}function ht(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function dt(e,t,r){const n=e.slice();return n[64]=t[r],n}function mi(e){let t,r,n=a.ensure_array_like(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=mt(ut(e,n,o));return {c(){t=a.element("div"),r=a.element("form");for(let o=0;o<i.length;o+=1)i[o].c();a.attr(r,"class","checkbox svelte-etk3ty"),a.attr(t,"class","legacyStyle");},m(o,s){a.insert(o,t,s),a.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(o,s){if(s[0]&590336){n=a.ensure_array_like(o[9]);let l;for(l=0;l<n.length;l+=1){const d=ut(o,n,l);i[l]?i[l].p(d,s):(i[l]=mt(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(o){o&&a.detach(t),a.destroy_each(i,o),e[31](null);}}}function pi(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&pt(e),p=a.ensure_array_like(e[8]),k=[];for(let g=0;g<p.length;g+=1)k[g]=kt(ht(e,p,g));let _=e[6]&&bt(e);return {c(){m&&m.c(),r=a.space();for(let g=0;g<k.length;g+=1)k[g].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=s=!e[14];},m(g,C){m&&m.m(g,C),a.insert(g,r,C);for(let y=0;y<k.length;y+=1)k[y]&&k[y].m(g,C);a.insert(g,n,C),a.insert(g,i,C),i.innerHTML=o,a.insert(g,l,C),_&&_.m(g,C),a.insert(g,d,C),h||(c=a.listen(i,"click",e[17]),h=!0);},p(g,C){if(C[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,C):(m=pt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),C[0]&867088){p=a.ensure_array_like(g[8]);let y;for(y=0;y<p.length;y+=1){const v=ht(g,p,y);k[y]?k[y].p(v,C):(k[y]=kt(v),k[y].c(),k[y].m(n.parentNode,n));}for(;y<k.length;y+=1)k[y].d(1);k.length=p.length;}C[0]&65536&&o!==(o=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),C[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,C):(_=bt(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(g),a.destroy_each(k,g),_&&_.d(g),h=!1,c();}}}function gi(e){let t,r,n;return {c(){t=a.element("div"),r=a.element("strong"),n=a.text(e[7]),a.attr(r,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ContainerCenter svelte-etk3ty");},m(i,o){a.insert(i,t,o),a.append(t,r),a.append(r,n);},p(i,o){o[0]&128&&a.set_data(n,i[7]);},d(i){i&&a.detach(t);}}}function fi(e){let t;return {c(){t=a.element("general-animation-loading"),a.set_custom_element_data(t,"clientstyling",e[1]),a.set_custom_element_data(t,"clientstylingurl",e[2]),a.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){a.insert(r,t,n);},p(r,n){n[0]&2&&a.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&a.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&a.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&a.detach(t);}}}function mt(e){let t,r,n,i,o,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,p,k,_,g,C,y,v,S;function N(...E){return e[30](e[64],...E)}return {c(){t=a.element("div"),r=a.element("input"),o=a.space(),s=a.element("label"),l=a.element("div"),d=new a.HtmlTag(!1),m=a.text(c),k=a.space(),_=a.element("small"),C=a.space(),a.attr(r,"class","checkbox__input svelte-etk3ty"),a.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",a.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,a.attr(l,"class","checkbox__label-text svelte-etk3ty"),a.attr(s,"class","checkbox__label svelte-etk3ty"),a.attr(s,"for",p=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-etk3ty"),a.attr(_,"id",g="checkBoxError__"+e[64].tagCode),a.attr(t,"class",y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,H){a.insert(E,t,H),a.append(t,r),a.append(t,o),a.append(t,s),a.append(s,l),d.m(h,l),a.append(l,m),a.append(t,k),a.append(t,_),a.append(t,C),v||(S=a.listen(r,"input",N),v=!0);},p(E,H){e=E,H[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),H[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),H[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),H[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),H[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&a.attr(s,"for",p),H[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",g),H[0]&512&&y!==(y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&a.attr(t,"class",y);},d(E){E&&a.detach(t),v=!1,S();}}}function pt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&>(e),s=i&&ft(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-etk3ty");},m(l,d){a.insert(l,t,d),o&&o.m(t,null),a.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?o?o.p(l,d):(o=gt(l),o.c(),o.m(t,n)):o&&(o.d(1),o=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=ft(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&a.detach(t),o&&o.d(),s&&s.d();}}}function gt(e){let t,r=e[16]("title")+"",n;return {c(){t=a.element("h2"),n=a.text(r),a.attr(t,"class","PlayerConsentsTitle");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function ft(e){let t,r=e[16]("description")+"",n;return {c(){t=a.element("p"),n=a.text(r),a.attr(t,"class","PlayerConsentsDescription");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function _t(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function yt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=a.element("p"),a.attr(t,"class","ConsentDescription svelte-etk3ty");},m(n,i){a.insert(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&a.detach(t);}}}function vt(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,k,_,g,C,y=e[64].mustAccept===!0&&_t(),v=e[4]==="true"&&yt(e);function S(...N){return e[29](e[64],...N)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),y&&y.c(),l=a.space(),v&&v.c(),d=a.space(),h=a.element("label"),c=a.element("input"),k=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-etk3ty"),a.attr(r,"class","ConsentContent"),a.attr(c,"type","checkbox"),c.disabled=m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,c.checked=p=e[13][e[64].tagCode],a.attr(c,"class","svelte-etk3ty"),a.attr(_,"class","Slider Round svelte-etk3ty"),a.attr(h,"class","ToggleSwitch svelte-etk3ty"),a.attr(t,"class","ConsentItem svelte-etk3ty");},m(N,E){a.insert(N,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),y&&y.m(n,null),a.append(r,l),v&&v.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,k),a.append(h,_),g||(C=a.listen(c,"input",S),g=!0);},p(N,E){e=N,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?y||(y=_t(),y.c(),y.m(n,null)):y&&(y.d(1),y=null),e[4]==="true"?v?v.p(e,E):(v=yt(e),v.c(),v.m(r,null)):v&&(v.d(1),v=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(N){N&&a.detach(t),y&&y.d(),v&&v.d(),g=!1,C();}}}function kt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,p,k;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function C(...S){return e[28](e[61],...S)}let y=a.ensure_array_like(e[9].filter(C)),v=[];for(let S=0;S<y.length;S+=1)v[S]=vt(dt(e,y,S));return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h3"),o=a.space(),s=a.element("label"),l=a.element("input"),d=a.space(),h=a.element("span"),c=a.space(),m=a.element("div");for(let S=0;S<v.length;S+=1)v[S].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-etk3ty"),a.attr(h,"class","Slider Round svelte-etk3ty"),a.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),a.attr(r,"class","AccordionHeader svelte-etk3ty"),a.attr(m,"class","AccordionContent svelte-etk3ty"),a.attr(t,"class","AccordionItem svelte-etk3ty");},m(S,N){a.insert(S,t,N),a.append(t,r),a.append(r,n),n.innerHTML=i,a.append(r,o),a.append(r,s),a.append(s,l),l.checked=e[11][e[61].categoryTagCode],a.append(s,d),a.append(s,h),a.append(t,c),a.append(t,m);for(let E=0;E<v.length;E+=1)v[E]&&v[E].m(m,null);p||(k=[a.listen(l,"change",_),a.listen(l,"change",g)],p=!0);},p(S,N){if(e=S,N[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),N[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),N[0]&602896){y=a.ensure_array_like(e[9].filter(C));let E;for(E=0;E<y.length;E+=1){const H=dt(e,y,E);v[E]?v[E].p(H,N):(v[E]=vt(H),v[E].c(),v[E].m(m,null));}for(;E<v.length;E+=1)v[E].d(1);v.length=y.length;}},d(S){S&&a.detach(t),a.destroy_each(v,S),p=!1,a.run_all(k);}}}function bt(e){let t,r,n,i,o;return {c(){t=a.element("div"),r=a.element("circle-exclamation-icon"),n=a.space(),i=a.element("strong"),o=a.text(e[6]),a.set_custom_element_data(r,"class","svelte-etk3ty"),a.attr(i,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ConsentErrorContainer svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),a.append(t,n),a.append(t,i),a.append(i,o);},p(s,l){l[0]&64&&a.set_data(o,s[6]);},d(s){s&&a.detach(t);}}}function _i(e){let t,r;function n(s,l){if(s[10])return fi;if(s[7])return gi;if(s[0])return pi;if(!s[0])return mi}let i=n(e),o=i&&i(e);return {c(){t=a.element("div"),r=a.element("div"),o&&o.c(),a.attr(r,"class","ConsentsContainer svelte-etk3ty"),a.attr(t,"class",a.null_to_empty("")+" svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),o&&o.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&o?o.p(s,l):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(r,null)));},i:a.noop,o:a.noop,d(s){s&&a.detach(t),o&&o.d(),e[32](null);}}}function yi(e,t,r){let n;a.component_subscribe(e,li,u=>r(16,n=u));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:p=""}=t,{modalconsents:k="false"}=t,_,g=!1,C=!1,y="",v="",S="",N="",E=[],H=[],P=[],$=!0,le=!0,L={},ce={},G={},I={},ee,ue,z={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},he=!1;Object.keys(ct).forEach(u=>{lt(u,ct[u]);});const Wt=()=>{ci(c);},Zt=()=>{let u=new URL(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(T=>{lt(T,f[T]);});}).catch(f=>{console.log(f);});},Jt=()=>{i&&(y=i,C=!0),o&&(v=o);},de=(u,f=!1)=>{f?r(7,N=u):(tr(),r(6,S=u));},te=(u,f,T,b=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,T);if(!x.ok)throw new Error(n(f));const O=yield x.json();return C?O:O.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,b),x}}),Qt=()=>ne(this,null,function*(){try{let u=[],f=[];if(C?[u,f]=yield Fe():u=yield Fe(),r(10,$=!1),H=[...u],r(8,E=Kt(H).sort((T,b)=>T.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,L=$t(E)),ce=D({},L),r(9,P=[...f]),H.forEach(T=>{let b=P.find(x=>x.tagCode===T.tagCode);b||(b=Ze(D({},T),{status:z.denied.value}),P.push(b)),b.description=T.description,b.orderNumber=T.orderNumber;}),k==="true"){if(r(9,P=P.filter(T=>T.status===z.expired.value)),P.length!==0)return;de(n("wrongModalConfig"),!0);}er();}catch(u){throw r(10,$=!1),de(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),Fe=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!C)return yield te(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${v}`);return yield Promise.all([te(u.href,"fetchConsentsError",{method:"GET"},!0),te(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":y,"Content-Type":"application/json"}})])}),Yt=()=>{he=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},T={method:"GET",headers:f};fetch(u.href,T).then(b=>b.ok?b.json():(he=!0,b.json().then(x=>(console.error(x),me(x))))).then(b=>{if(!he){if(H=b,localStorage.getItem("playerConsents")){try{r(9,P=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),me(x)}return}return r(9,P=H.map(x=>({id:x.id,status:z.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(P)),P}}).catch(b=>(console.error(b),me(b))).finally(()=>{r(10,$=!1);});},Kt=u=>{const f=new Map;return u.forEach(T=>{f.has(T.category.categoryTagCode)||f.set(T.category.categoryTagCode,T.category);}),Array.from(f.values())},$t=u=>{const f=localStorage.getItem("categoryToggle"+v);if(f===null){const T=u.reduce((b,x)=>(b[x.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+v,JSON.stringify(T)),T}else return JSON.parse(f)},er=()=>{P.forEach(u=>{r(12,G[u.tagCode]=u.status===z.accepted.value,G);}),r(13,I=D({},G));},tr=()=>{r(13,I=D({},G)),r(11,L=D({},ce));},rr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(b=>{const x=P.find(O=>O.tagCode===b);I[b]!==G[b]&&(x?u.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}):f.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}));}),!C){localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),le=!0;return}const T=new URL(`${s}/api/v1/gm/user-consents/${v}`);try{const b=yield Promise.allSettled([f.length>0&&te(T.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(T.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);b.forEach((x,O)=>{if(x.status==="rejected"||x.value.ok===!1){const R=O<f.length?f[O]:u[O-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),b.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,G=D({},I)));}catch(b){de(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{le=!0,r(14,ee=!1);}}),nr=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),T={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:P,registrationId:u},x={method:"POST",body:JSON.stringify(b),headers:T};fetch(f.href,x).then(O=>{O.ok||(he=!0);}).catch(O=>(console.error(O),me(O))).finally(()=>{r(10,$=!1);});},Ve=u=>{P.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===z.denied.value?z.accepted.value:z.denied.value,r(13,I[f.tagCode]=L[u]||!1,I);}),r(14,ee=Xe());},xe=(u,f,T)=>{const b=P.find(R=>R.id===T),x=f?"value":"key";let O;if(!f&&b.mustAccept){const R=Array.from(ue.children);for(const re of R)if(O=Array.from(re.children).find(pr=>pr.getAttribute("id")===`checkBoxError__${b.tagCode}`),O)break}if(b.status===z.accepted[x]?(b.status=z.denied[x],O&&(O.innerHTML=n("requiredError"))):(b.status=z.accepted[x],O&&(O.innerHTML="")),f){r(13,I[b.tagCode]=!I[b.tagCode],I);const R=P.filter(re=>re.category.categoryTagCode===f.categoryTagCode).every(re=>re.status!==z.denied.value);r(11,L[f.categoryTagCode]=R,L);}ir();},ir=((u,f)=>{let T;return function(...b){const x=this;clearTimeout(T),T=setTimeout(()=>{u.apply(x,b);},f);}})(()=>ar(),500),ar=()=>{r(14,ee=Xe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(P)));},Xe=()=>P.filter(f=>P.some(T=>f.tagCode===T.tagCode&&T.mustAccept&&(f.status===z.denied.key||f.status===z.denied.value))).length===0,me=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},or=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||nr(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,g=!0);},50);const u=f=>or(f);return window.addEventListener("message",u),()=>{window.removeEventListener("message",u);}});function sr(u){L[u.categoryTagCode]=this.checked,r(11,L);}const lr=u=>Ve(u.categoryTagCode),cr=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,ur=(u,f)=>xe(f,u.category,u.id),hr=(u,f)=>xe(f,null,u.id);function dr(u){a.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function mr(u){a.binding_callbacks[u?"unshift":"push"](()=>{_=u,r(5,_);});}return e.$$set=u=>{"session"in u&&r(0,i=u.session),"userid"in u&&r(20,o=u.userid),"endpoint"in u&&r(21,s=u.endpoint),"clientstyling"in u&&r(1,l=u.clientstyling),"clientstylingurl"in u&&r(2,d=u.clientstylingurl),"mbsource"in u&&r(3,h=u.mbsource),"lang"in u&&r(22,c=u.lang),"displayconsentdescription"in u&&r(4,m=u.displayconsentdescription),"translationurl"in u&&r(23,p=u.translationurl),"modalconsents"in u&&r(24,k=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&g&&i&&(Jt(),Qt()),e.$$.dirty[0]&1&&(i||Yt()),e.$$.dirty[0]&34&&l&&_&&a.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&a.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&a.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Wt(),e.$$.dirty[0]&8388608&&p&&Zt();},[i,l,d,h,m,_,S,N,E,P,$,L,G,I,ee,ue,n,rr,Ve,xe,o,s,c,p,k,g,sr,lr,cr,ur,hr,dr,mr]}class qt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,yi,_i,a.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},di,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),a.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),a.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),a.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),a.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),a.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),a.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),a.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),a.flush();}}a.create_custom_element(qt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=qt;
|
|
14230
|
-
}(PlayerConsentsBpocBWYo));
|
|
14230
|
+
`,he.MISSING_INTL_API,a);var H=r.getPluralRules(t,{type:u.pluralType}).select(m-(u.offset||0));C=u.options[H]||u.options.other;}if(!C)throw new It(u.value,m,Object.keys(u.options),a);s.push.apply(s,Ie(C.value,t,r,n,i,m-(u.offset||0)));continue}}return Oi(s)}function Li(e,t){return t?Z(Z(Z({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Z(Z({},e[n]),t[n]||{}),r},{})):e}function ji(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Li(e[n],t[n]),r},Z({},e)):e}function nt(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function Ii(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.number),strategy:tt.variadic}),getDateTimeFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.dateTime),strategy:tt.variadic}),getPluralRules:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.pluralRules),strategy:tt.variadic})}}var Ri=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(d,m){return !d.length||m.type!==G.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return Ie(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return {locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};var s=Wn(a,["formatters"]);this.ast=e.__parse(t,Z(Z({},s),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ji(e.formats,n),this.formatters=i&&i.formatters||Ii(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Hi,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Ui(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const Y={},Di=(e,t,r)=>r&&(t in Y||(Y[t]={}),e in Y[t]||(Y[t][e]=r),r),Nr=(e,t)=>{if(t==null)return;if(t in Y&&e in Y[t])return Y[t][e];const r=qe(t);for(let n=0;n<r.length;n++){const i=r[n],o=Fi(i,e);if(o)return Di(e,t,o)}};let Et;const Ne=$e({});function Gi(e){return Et[e]||null}function Ar(e){return e in Et}function Fi(e,t){if(!Ar(e))return null;const r=Gi(e);return Ui(r,t)}function $i(e){if(e==null)return;const t=qe(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ar(n))return n}}function Hr(e,...t){delete Y[e],Ne.update(r=>(r[e]=qn.all([r[e]||{},...t]),r));}fe([Ne],([e])=>Object.keys(e));Ne.subscribe(e=>Et=e);const Re={};function Vi(e,t){Re[e].delete(t),Re[e].size===0&&delete Re[e];}function Pr(e){return Re[e]}function Xi(e){return qe(e).map(t=>{const r=Pr(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function pt(e){return e==null?!1:qe(e).some(t=>{var r;return (r=Pr(t))==null?void 0:r.size})}function qi(e,t){return Promise.all(t.map(n=>(Vi(e,n),n().then(i=>i.default||i)))).then(n=>Hr(e,...n))}const ke={};function Br(e){if(!pt(e))return e in ke?ke[e]:Promise.resolve();const t=Xi(e);return ke[e]=Promise.all(t.map(([r,n])=>qi(r,n))).then(()=>{if(pt(e))return Br(e);delete ke[e];}),ke[e]}const Wi={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Zi={fallbackLocale:null,loadingDelay:200,formats:Wi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ji=Zi;function de(){return Ji}const it=$e(!1);var Qi=Object.defineProperty,Yi=Object.defineProperties,Ki=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,Ut=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t)=>{for(var r in t||(t={}))eo.call(t,r)&&Ut(e,r,t[r]);if(Rt)for(var r of Rt(t))to.call(t,r)&&Ut(e,r,t[r]);return e},no=(e,t)=>Yi(e,Ki(t));let gt;const De=$e(null);function Dt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function qe(e,t=de().fallbackLocale){const r=Dt(e);return t?[...new Set([...r,...Dt(t)])]:r}function te(){return gt!=null?gt:void 0}De.subscribe(e=>{gt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const io=e=>{if(e&&$i(e)&&pt(e)){const{loadingDelay:t}=de();let r;return typeof window!="undefined"&&te()!=null&&t?r=window.setTimeout(()=>it.set(!0),t):it.set(!0),Br(e).then(()=>{De.set(e);}).finally(()=>{clearTimeout(r),it.set(!1);})}return De.set(e)},pe=no(ro({},De),{set:io}),We=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var oo=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Gt=(e,t,r)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Or.call(t,r)&&Gt(e,r,t[r]);if(Ge)for(var r of Ge(t))zr.call(t,r)&&Gt(e,r,t[r]);return e},ge=(e,t)=>{var r={};for(var n in e)Or.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ge)for(var n of Ge(e))t.indexOf(n)<0&&zr.call(e,n)&&(r[n]=e[n]);return r};const Te=(e,t)=>{const{formats:r}=de();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ao=We(e=>{var t=e,{locale:r,format:n}=t,i=ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Te("number",n)),new Intl.NumberFormat(r,i)}),so=We(e=>{var t=e,{locale:r,format:n}=t,i=ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Te("date",n):Object.keys(i).length===0&&(i=Te("date","short")),new Intl.DateTimeFormat(r,i)}),lo=We(e=>{var t=e,{locale:r,format:n}=t,i=ge(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Te("time",n):Object.keys(i).length===0&&(i=Te("time","short")),new Intl.DateTimeFormat(r,i)}),co=(e={})=>{var t=e,{locale:r=te()}=t,n=ge(t,["locale"]);return ao(Ct({locale:r},n))},uo=(e={})=>{var t=e,{locale:r=te()}=t,n=ge(t,["locale"]);return so(Ct({locale:r},n))},ho=(e={})=>{var t=e,{locale:r=te()}=t,n=ge(t,["locale"]);return lo(Ct({locale:r},n))},mo=We((e,t=te())=>new Ri(e,t,de().formats,{ignoreTag:de().ignoreTag})),fo=(e,t={})=>{var r,n,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:s,locale:c=te(),default:l}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Nr(e,c);if(!u)u=(o=(i=(n=(r=de()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof u!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u;if(!s)return u;let d=u;try{d=mo(u,c).format(s);}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message);}return d},po=(e,t)=>ho(t).format(e),go=(e,t)=>uo(t).format(e),_o=(e,t)=>co(t).format(e),yo=(e,t=te())=>Nr(e,t),vo=fe([pe,Ne],()=>fo);fe([pe],()=>po);fe([pe],()=>go);fe([pe],()=>_o);fe([pe,Ne],()=>yo);function Ft(e,t){Hr(e,t);}function bo(e){pe.set(e);}const $t={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingBEgo5n3Q).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ko(e){let t,r;return {c(){t=ot("svg"),r=ot("path"),k(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),k(t,"xmlns","http://www.w3.org/2000/svg"),k(t,"viewBox","0 0 512 512");},m(n,i){z(n,t,i),x(t,r);},p:$,i:$,o:$,d(n){n&&B(t);}}}class Eo extends kt{constructor(t){super(),vt(this,t,null,ko,Fe,{});}}customElements.define("circle-exclamation-icon",bt(Eo,{},[],[],!0));function Co(e){or(e,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function Vt(e,t,r){const n=e.slice();return n[64]=t[r],n}function Xt(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function qt(e,t,r){const n=e.slice();return n[64]=t[r],n}function So(e){let t,r,n=le(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Wt(Vt(e,n,o));return {c(){t=w("div"),r=w("form");for(let o=0;o<i.length;o+=1)i[o].c();k(r,"class","checkbox svelte-etk3ty"),k(t,"class","legacyStyle");},m(o,a){z(o,t,a),x(t,r);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(r,null);e[31](r);},p(o,a){if(a[0]&590336){n=le(o[9]);let s;for(s=0;s<n.length;s+=1){const c=Vt(o,n,s);i[s]?i[s].p(c,a):(i[s]=Wt(c),i[s].c(),i[s].m(r,null));}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length;}},d(o){o&&B(t),yt(i,o),e[31](null);}}}function xo(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",a,s,c,l,u,d=t&&Zt(e),m=le(e[8]),y=[];for(let f=0;f<m.length;f+=1)y[f]=tr(Xt(e,m,f));let g=e[6]&&rr(e);return {c(){d&&d.c(),r=F();for(let f=0;f<y.length;f+=1)y[f].c();n=F(),i=w("button"),s=F(),g&&g.c(),c=pn(),k(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=a=!e[14];},m(f,S){d&&d.m(f,S),z(f,r,S);for(let _=0;_<y.length;_+=1)y[_]&&y[_].m(f,S);z(f,n,S),z(f,i,S),i.innerHTML=o,z(f,s,S),g&&g.m(f,S),z(f,c,S),l||(u=Ce(i,"click",e[17]),l=!0);},p(f,S){if(S[0]&65536&&(t=f[16]("title")||f[16]("description")),t?d?d.p(f,S):(d=Zt(f),d.c(),d.m(r.parentNode,r)):d&&(d.d(1),d=null),S[0]&867088){m=le(f[8]);let _;for(_=0;_<m.length;_+=1){const v=Xt(f,m,_);y[_]?y[_].p(v,S):(y[_]=tr(v),y[_].c(),y[_].m(n.parentNode,n));}for(;_<y.length;_+=1)y[_].d(1);y.length=m.length;}S[0]&65536&&o!==(o=(f[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),S[0]&16384&&a!==(a=!f[14])&&(i.disabled=a),f[6]?g?g.p(f,S):(g=rr(f),g.c(),g.m(c.parentNode,c)):g&&(g.d(1),g=null);},d(f){f&&(B(r),B(n),B(i),B(s),B(c)),d&&d.d(f),yt(y,f),g&&g.d(f),l=!1,u();}}}function wo(e){let t,r,n;return {c(){t=w("div"),r=w("strong"),n=ee(e[7]),k(r,"class","ErrorMessage svelte-etk3ty"),k(t,"class","ContainerCenter svelte-etk3ty");},m(i,o){z(i,t,o),x(t,r),x(r,n);},p(i,o){o[0]&128&&Me(n,i[7]);},d(i){i&&B(t);}}}function To(e){let t;return {c(){t=w("general-animation-loading"),K(t,"clientstyling",e[1]),K(t,"clientstylingurl",e[2]),K(t,"mbsource",e[3]);},m(r,n){z(r,t,n);},p(r,n){n[0]&2&&K(t,"clientstyling",r[1]),n[0]&4&&K(t,"clientstylingurl",r[2]),n[0]&8&&K(t,"mbsource",r[3]);},d(r){r&&B(t);}}}function Wt(e){let t,r,n,i,o,a,s,c,l=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",u=e[64].mustAccept?" *":"",d,m,y,g,f,S,_,v,C;function H(...E){return e[30](e[64],...E)}return {c(){t=w("div"),r=w("input"),o=F(),a=w("label"),s=w("div"),c=new ar(!1),d=ee(u),y=F(),g=w("small"),S=F(),k(r,"class","checkbox__input svelte-etk3ty"),k(r,"type","checkbox"),r.checked=n=e[64].status==="1",k(r,"id",i=`${e[64].tagCode}__input`),c.a=d,k(s,"class","checkbox__label-text svelte-etk3ty"),k(a,"class","checkbox__label svelte-etk3ty"),k(a,"for",m=`${e[64].tagCode}__input`),k(g,"class","checkbox__error-message svelte-etk3ty"),k(g,"id",f="checkBoxError__"+e[64].tagCode),k(t,"class",_="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,L){z(E,t,L),x(t,r),x(t,o),x(t,a),x(a,s),c.m(l,s),x(s,d),x(t,y),x(t,g),x(t,S),v||(C=Ce(r,"input",H),v=!0);},p(E,L){e=E,L[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),L[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&k(r,"id",i),L[0]&66048&&l!==(l=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&c.p(l),L[0]&512&&u!==(u=e[64].mustAccept?" *":"")&&Me(d,u),L[0]&512&&m!==(m=`${e[64].tagCode}__input`)&&k(a,"for",m),L[0]&512&&f!==(f="checkBoxError__"+e[64].tagCode)&&k(g,"id",f),L[0]&512&&_!==(_="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&k(t,"class",_);},d(E){E&&B(t),v=!1,C();}}}function Zt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&Jt(e),a=i&&Qt(e);return {c(){t=w("div"),o&&o.c(),n=F(),a&&a.c(),k(t,"class","PlayerConsentsHeader svelte-etk3ty");},m(s,c){z(s,t,c),o&&o.m(t,null),x(t,n),a&&a.m(t,null);},p(s,c){c[0]&65536&&(r=s[16]("title")),r?o?o.p(s,c):(o=Jt(s),o.c(),o.m(t,n)):o&&(o.d(1),o=null),c[0]&65536&&(i=s[16]("description")),i?a?a.p(s,c):(a=Qt(s),a.c(),a.m(t,null)):a&&(a.d(1),a=null);},d(s){s&&B(t),o&&o.d(),a&&a.d();}}}function Jt(e){let t,r=e[16]("title")+"",n;return {c(){t=w("h2"),n=ee(r),k(t,"class","PlayerConsentsTitle");},m(i,o){z(i,t,o),x(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&Me(n,r);},d(i){i&&B(t);}}}function Qt(e){let t,r=e[16]("description")+"",n;return {c(){t=w("p"),n=ee(r),k(t,"class","PlayerConsentsDescription");},m(i,o){z(i,t,o),x(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&Me(n,r);},d(i){i&&B(t);}}}function Yt(e){let t;return {c(){t=w("sup"),t.textContent="*",k(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){z(r,t,n);},d(r){r&&B(t);}}}function Kt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=w("p"),k(t,"class","ConsentDescription svelte-etk3ty");},m(n,i){z(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&B(t);}}}function er(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",a,s,c,l,u,d,m,y,g,f,S,_=e[64].mustAccept===!0&&Yt(),v=e[4]==="true"&&Kt(e);function C(...H){return e[29](e[64],...H)}return {c(){t=w("div"),r=w("div"),n=w("h4"),i=new ar(!1),a=F(),_&&_.c(),s=F(),v&&v.c(),c=F(),l=w("label"),u=w("input"),y=F(),g=w("span"),i.a=a,k(n,"class","ConsentName svelte-etk3ty"),k(r,"class","ConsentContent"),k(u,"type","checkbox"),u.disabled=d=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,u.checked=m=e[13][e[64].tagCode],k(u,"class","svelte-etk3ty"),k(g,"class","Slider Round svelte-etk3ty"),k(l,"class","ToggleSwitch svelte-etk3ty"),k(t,"class","ConsentItem svelte-etk3ty");},m(H,E){z(H,t,E),x(t,r),x(r,n),i.m(o,n),x(n,a),_&&_.m(n,null),x(r,s),v&&v.m(r,null),x(t,c),x(t,l),x(l,u),x(l,y),x(l,g),f||(S=Ce(u,"input",C),f=!0);},p(H,E){e=H,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?_||(_=Yt(),_.c(),_.m(n,null)):_&&(_.d(1),_=null),e[4]==="true"?v?v.p(e,E):(v=Kt(e),v.c(),v.m(r,null)):v&&(v.d(1),v=null),E[0]&4864&&d!==(d=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(u.disabled=d),E[0]&8960&&m!==(m=e[13][e[64].tagCode])&&(u.checked=m);},d(H){H&&B(t),_&&_.d(),v&&v.d(),f=!1,S();}}}function tr(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,a,s,c,l,u,d,m,y;function g(){e[26].call(s,e[61]);}function f(){return e[27](e[61])}function S(...C){return e[28](e[61],...C)}let _=le(e[9].filter(S)),v=[];for(let C=0;C<_.length;C+=1)v[C]=er(qt(e,_,C));return {c(){t=w("div"),r=w("div"),n=w("h3"),o=F(),a=w("label"),s=w("input"),c=F(),l=w("span"),u=F(),d=w("div");for(let C=0;C<v.length;C+=1)v[C].c();k(s,"type","checkbox"),k(s,"class","svelte-etk3ty"),k(l,"class","Slider Round svelte-etk3ty"),k(a,"class","ToggleSwitch Big svelte-etk3ty"),k(r,"class","AccordionHeader svelte-etk3ty"),k(d,"class","AccordionContent svelte-etk3ty"),k(t,"class","AccordionItem svelte-etk3ty");},m(C,H){z(C,t,H),x(t,r),x(r,n),n.innerHTML=i,x(r,o),x(r,a),x(a,s),s.checked=e[11][e[61].categoryTagCode],x(a,c),x(a,l),x(t,u),x(t,d);for(let E=0;E<v.length;E+=1)v[E]&&v[E].m(d,null);m||(y=[Ce(s,"change",g),Ce(s,"change",f)],m=!0);},p(C,H){if(e=C,H[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),H[0]&2304&&(s.checked=e[11][e[61].categoryTagCode]),H[0]&602896){_=le(e[9].filter(S));let E;for(E=0;E<_.length;E+=1){const L=qt(e,_,E);v[E]?v[E].p(L,H):(v[E]=er(L),v[E].c(),v[E].m(d,null));}for(;E<v.length;E+=1)v[E].d(1);v.length=_.length;}},d(C){C&&B(t),yt(v,C),m=!1,me(y);}}}function rr(e){let t,r,n,i,o;return {c(){t=w("div"),r=w("circle-exclamation-icon"),n=F(),i=w("strong"),o=ee(e[6]),K(r,"class","svelte-etk3ty"),k(i,"class","ErrorMessage svelte-etk3ty"),k(t,"class","ConsentErrorContainer svelte-etk3ty");},m(a,s){z(a,t,s),x(t,r),x(t,n),x(t,i),x(i,o);},p(a,s){s[0]&64&&Me(o,a[6]);},d(a){a&&B(t);}}}function Mo(e){let t,r;function n(a,s){if(a[10])return To;if(a[7])return wo;if(a[0])return xo;if(!a[0])return So}let i=n(e),o=i&&i(e);return {c(){t=w("div"),r=w("div"),o&&o.c(),k(r,"class","ConsentsContainer svelte-etk3ty"),k(t,"class",""+" svelte-etk3ty");},m(a,s){z(a,t,s),x(t,r),o&&o.m(r,null),e[32](r);},p(a,s){i===(i=n(a))&&o?o.p(a,s):(o&&o.d(1),o=i&&i(a),o&&(o.c(),o.m(r,null)));},i:$,o:$,d(a){a&&B(t),o&&o.d(),e[32](null);}}}function No(e,t,r){let n;dn(e,vo,h=>r(16,n=h));let{session:i=""}=t,{userid:o=""}=t,{endpoint:a=""}=t,{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:l}=t,{lang:u="en"}=t,{displayconsentdescription:d=""}=t,{translationurl:m=""}=t,{modalconsents:y="false"}=t,g,f,S=!1,_=!1,v="",C="",H="",E="",L=[],J=[],j=[],_e=!0,Ae=!0,V={},He={},Q={},D={},ye,Pe,R={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},Be=!1;Object.keys($t).forEach(h=>{Ft(h,$t[h]);});const jr=()=>{bo(u);},Ir=()=>{let h=new URL(m);fetch(h.href).then(p=>p.json()).then(p=>{Object.keys(p).forEach(M=>{Ft(M,p[M]);});}).catch(p=>{console.log(p);});},Rr=()=>{i&&(v=i,_=!0),o&&(C=o);},Oe=(h,p=!1)=>{p?r(7,E=h):(Vr(),r(6,H=h));},ve=(h,p,M,b=!1)=>re(this,null,function*(){try{const T=yield fetch(h,M);if(!T.ok)throw new Error(n(p));const I=yield T.json();return _?I:I.filter(q=>q.showOnRegister===!0)}catch(T){throw Oe(T instanceof TypeError?n(p):T.message,b),T}}),Ur=()=>re(this,null,function*(){try{let h=[],p=[];if(_?[h,p]=yield St():h=yield St(),r(10,_e=!1),J=[...h],r(8,L=Gr(J).sort((M,b)=>M.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,V=Fr(L)),He=W({},V),r(9,j=[...p]),J.forEach(M=>{let b=j.find(T=>T.tagCode===M.tagCode);b||(b=Qe(W({},M),{status:R.denied.value}),j.push(b)),b.description=M.description,b.orderNumber=M.orderNumber;}),y==="true"){if(r(9,j=j.filter(M=>M.status===R.expired.value)),j.length!==0)return;Oe(n("wrongModalConfig"),!0);}$r();}catch(h){throw r(10,_e=!1),Oe(h instanceof TypeError?n("invalidUrl"):h.message,!0),h}}),St=()=>re(this,null,function*(){const h=new URL(`${a}/api/v1/gm/consents`);if(h.searchParams.append("Status","Active"),!_)return yield ve(h.href,"fetchConsentsError",{method:"GET"},!0);const p=new URL(`${a}/api/v1/gm/user-consents/${C}`);return yield Promise.all([ve(h.href,"fetchConsentsError",{method:"GET"},!0),ve(p.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":v,"Content-Type":"application/json"}})])}),Dr=()=>{Be=!1;const h=new URL(`${a}/api/v2/gm/legislation/consents`),p={"Content-Type":"application/json",Accept:"application/json"},M={method:"GET",headers:p};fetch(h.href,M).then(b=>b.ok?b.json():(Be=!0,b.json().then(T=>(console.error(T),ze(T))))).then(b=>{if(!Be){if(J=b,localStorage.getItem("playerConsents")){try{r(9,j=JSON.parse(localStorage.getItem("playerConsents")));}catch(T){return console.error(T),ze(T)}return}return r(9,j=J.map(T=>({id:T.id,status:R.denied.key,friendlyName:T.friendlyName,tagCode:T.tagCode,selected:null,mustAccept:T.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(j)),j}}).catch(b=>(console.error(b),ze(b))).finally(()=>{r(10,_e=!1);});},Gr=h=>{const p=new Map;return h.forEach(M=>{p.has(M.category.categoryTagCode)||p.set(M.category.categoryTagCode,M.category);}),Array.from(p.values())},Fr=h=>{const p=localStorage.getItem("categoryToggle"+C);if(p===null){const M=h.reduce((b,T)=>(b[T.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+C,JSON.stringify(M)),M}else return JSON.parse(p)},$r=()=>{j.forEach(h=>{r(12,Q[h.tagCode]=h.status===R.accepted.value,Q);}),r(13,D=W({},Q));},Vr=()=>{r(13,D=W({},Q)),r(11,V=W({},He));},Xr=()=>re(this,null,function*(){if(!Ae)return;Ae=!1;const h=[],p=[];if(Object.keys(D).forEach(b=>{const T=j.find(I=>I.tagCode===b);D[b]!==Q[b]&&(T?h.push({tagCode:b,status:D[b]?R.accepted.value:R.denied.value}):p.push({tagCode:b,status:D[b]?R.accepted.value:R.denied.value}));}),!_){localStorage.setItem("categoryToggle"+C,JSON.stringify(V)),He=W({},V),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(p)},window.location.href),Ae=!0;return}const M=new URL(`${a}/api/v1/gm/user-consents/${C}`);try{const b=yield Promise.allSettled([p.length>0&&ve(M.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:p})}),h.length>0&&ve(M.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":v,"Content-Type":"application/json"},body:JSON.stringify({userConsents:h})})]);b.forEach((T,I)=>{if(T.status==="rejected"||T.value.ok===!1){const q=I<p.length?p[I]:h[I-p.length];r(13,D[q.tagCode]=Q[q.tagCode],D);}}),b.every(T=>T.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+C,JSON.stringify(V)),He=W({},V),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,Q=W({},D)));}catch(b){Oe(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{Ae=!0,r(14,ye=!1);}}),qr=h=>{const p=new URL(`${a}/api/v2/gm/legislation/consents`),M={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:j,registrationId:h},T={method:"POST",body:JSON.stringify(b),headers:M};fetch(p.href,T).then(I=>{I.ok||(Be=!0);}).catch(I=>(console.error(I),ze(I))).finally(()=>{r(10,_e=!1);});},xt=h=>{j.filter(p=>p.category.categoryTagCode===h).forEach(p=>{p.status=p.status===R.denied.value?R.accepted.value:R.denied.value,r(13,D[p.tagCode]=V[h]||!1,D);}),r(14,ye=wt());},Ze=(h,p,M)=>{const b=j.find(q=>q.id===M),T=p?"value":"key";let I;if(!p&&b.mustAccept){const q=Array.from(Pe.children);for(const be of q)if(I=Array.from(be.children).find(on=>on.getAttribute("id")===`checkBoxError__${b.tagCode}`),I)break}if(b.status===R.accepted[T]?(b.status=R.denied[T],I&&(I.innerHTML=n("requiredError"))):(b.status=R.accepted[T],I&&(I.innerHTML="")),p){r(13,D[b.tagCode]=!D[b.tagCode],D);const q=j.filter(be=>be.category.categoryTagCode===p.categoryTagCode).every(be=>be.status!==R.denied.value);r(11,V[p.categoryTagCode]=q,V);}Wr();},Wr=((h,p)=>{let M;return function(...b){const T=this;clearTimeout(M),M=setTimeout(()=>{h.apply(T,b);},p);}})(()=>Zr(),500),Zr=()=>{r(14,ye=wt()),i||(window.postMessage({type:"isConsentsValid",isValid:ye}),localStorage.setItem("playerConsents",JSON.stringify(j)));},wt=()=>j.filter(p=>j.some(M=>p.tagCode===M.tagCode&&M.mustAccept&&(p.status===R.denied.key||p.status===R.denied.value))).length===0,ze=h=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:h}},window.location.href);},Jr=h=>{h.data&&h.data.type!=="setUpPlayerConsents"||qr(h.data.registerid);};sr(()=>{setTimeout(()=>{r(25,S=!0);},50);const h=p=>Jr(p);return window.addEventListener("message",h),()=>{window.removeEventListener("message",h);}});function Qr(h){V[h.categoryTagCode]=this.checked,r(11,V);}const Yr=h=>xt(h.categoryTagCode),Kr=(h,p)=>p.category.categoryTagCode===h.categoryTagCode,en=(h,p)=>Ze(p,h.category,h.id),tn=(h,p)=>Ze(p,null,h.id);function rn(h){xe[h?"unshift":"push"](()=>{Pe=h,r(15,Pe);});}function nn(h){xe[h?"unshift":"push"](()=>{g=h,r(5,g);});}return e.$$set=h=>{"session"in h&&r(0,i=h.session),"userid"in h&&r(20,o=h.userid),"endpoint"in h&&r(21,a=h.endpoint),"clientstyling"in h&&r(1,s=h.clientstyling),"clientstylingurl"in h&&r(2,c=h.clientstylingurl),"mbsource"in h&&r(3,l=h.mbsource),"lang"in h&&r(22,u=h.lang),"displayconsentdescription"in h&&r(4,d=h.displayconsentdescription),"translationurl"in h&&r(23,m=h.translationurl),"modalconsents"in h&&r(24,y=h.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&S&&i&&(Rr(),Ur()),e.$$.dirty[0]&1&&(i||Dr()),e.$$.dirty[0]&34&&s&&g&&cr(g,s),e.$$.dirty[0]&36&&c&&g&&ur(g,c),e.$$.dirty[0]&40&&g&&hr(g,`${l}.Style`,f),e.$$.dirty[0]&4194304&&u&&jr(),e.$$.dirty[0]&8388608&&m&&Ir();},[i,s,c,l,d,g,H,E,L,j,_e,V,Q,D,ye,Pe,n,Xr,xt,Ze,o,a,u,m,y,S,Qr,Yr,Kr,en,tn,rn,nn]}class Lr extends kt{constructor(t){super(),vt(this,t,No,Mo,Fe,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},Co,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),X();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),X();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),X();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),X();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),X();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),X();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),X();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),X();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),X();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),X();}}bt(Lr,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);const Ao=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"}));PlayerConsentsBOZrluYI.PlayerConsents_ce=Ao;PlayerConsentsBOZrluYI.SvelteComponent=kt;PlayerConsentsBOZrluYI.append_styles=or;PlayerConsentsBOZrluYI.binding_callbacks=xe;PlayerConsentsBOZrluYI.create_custom_element=bt;PlayerConsentsBOZrluYI.detach=B;PlayerConsentsBOZrluYI.element=w;PlayerConsentsBOZrluYI.flush=X;PlayerConsentsBOZrluYI.init=vt;PlayerConsentsBOZrluYI.insert=z;PlayerConsentsBOZrluYI.noop=$;PlayerConsentsBOZrluYI.onMount=sr;PlayerConsentsBOZrluYI.safe_not_equal=Fe;PlayerConsentsBOZrluYI.setClientStyling=cr;PlayerConsentsBOZrluYI.setClientStylingURL=ur;PlayerConsentsBOZrluYI.setStreamStyling=hr;
|
|
14231
14231
|
|
|
14232
|
-
if(typeof window!="undefined"){let n=function(
|
|
14232
|
+
if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsBOZrluYI).then(e=>e.PlayerConsents_ce).then(({default:e})=>{!customElements.get("player-consents")&&customElements.define("player-consents",e.element);});}
|
|
14233
14233
|
|
|
14234
14234
|
const generalRegistrationMultistepCss = "@charset \"UTF-8\";\n*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n.registration .RegisterTimeline.custom__reg {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n margin-bottom: 40px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimeline__errorMsg {\n width: 100%;\n text-align: center;\n margin-top: 40px;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n padding: 10px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n all: unset;\n font-size: var(--emw--pam-page-title, 16px);\n color: var(--emw--color-black, #000000);\n cursor: pointer;\n padding: 8px 8px 8px 0;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton.disabledRegBtn {\n opacity: 0;\n pointer-events: none;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton .arrow {\n margin-right: 6px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n max-width: 100%;\n width: 100%;\n margin-top: 20px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .RegisterTimeline__content {\n width: 300px;\n display: flex;\n align-items: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .step {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--emw--pam-page-title, 16px);\n position: relative;\n background-color: var(--emw--registration-input-bg, #f0f5f9);\n color: var(--emw--color-gray-150, #979797);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.active {\n background: var(--emw--color-blue-primary, #111fa3);\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet:not(.checked)::before {\n content: attr(data-number);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked {\n background: var(--emw--color-primary, #22B04E);\n color: transparent;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked::before {\n content: \"✓\";\n font-size: 25px;\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .connector {\n flex: 1 1 auto;\n min-width: 40px;\n height: 2px;\n margin: 0 10px;\n border-radius: 2px;\n background-color: var(--emw--color-gray-50, #F9F8F8);\n}\n\n.registration__form {\n grid-template-columns: repeat(1fr);\n}\n\n.registration__error-message {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\n}\n\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
|
|
14235
14235
|
const GeneralRegistrationMultistepStyle0 = generalRegistrationMultistepCss;
|
|
@@ -15219,7 +15219,7 @@ const GeneralRegistrationMultistep = class {
|
|
|
15219
15219
|
return invalidInputs.length > 0;
|
|
15220
15220
|
}
|
|
15221
15221
|
renderErrorMessage(errorMsg) {
|
|
15222
|
-
return (h
|
|
15222
|
+
return (h("p", { class: "registration registration__error-message" }, errorMsg));
|
|
15223
15223
|
}
|
|
15224
15224
|
resetAllAddressFields() {
|
|
15225
15225
|
this.listOfInputValues = this.listOfInputValues.map(input => {
|
|
@@ -15288,39 +15288,39 @@ const GeneralRegistrationMultistep = class {
|
|
|
15288
15288
|
});
|
|
15289
15289
|
}
|
|
15290
15290
|
renderForm() {
|
|
15291
|
-
return (h
|
|
15291
|
+
return (h("div", null, h("div", { class: "RegisterTimeline custom__reg" }, h("button", { class: `RegisterBackButton ${this.registrationStep == CONSTANTS.REGISTRATION_STEP_ONE ? 'disabledRegBtn' : ''}`, onClick: (e) => this.backHandler(e) }, h("span", { class: "arrow" }, "\u2190"), "Back"), h("div", { class: "RegisterTimelineWrapper" }, h("div", { class: "RegisterTimeline__content" }, h("div", { class: "step step__one" }, h("span", { class: this.getStepClass(1), "data-number": "1" })), h("div", { class: "connector" }), h("div", { class: "step step__two" }, h("span", { class: this.getStepClass(2), "data-number": "2" })), h("div", { class: "connector" }), h("div", { class: "step step__three" }, h("span", { class: this.getStepClass(3), "data-number": "3" })))), this.errorMessage && h("p", { class: "RegisterTimeline__errorMsg", innerHTML: this.errorMessage })), h("form", { action: ".", id: `RegistrationForm${this.registrationStep}`, class: `registration__form`, ref: (el) => (this.form = el), onClick: this.handleInitialClick }, this.forms[this.registrationStep] &&
|
|
15292
15292
|
this.forms[this.registrationStep].map((input) => {
|
|
15293
15293
|
var _a, _b;
|
|
15294
|
-
return (h
|
|
15294
|
+
return (h("div", { key: input.name, class: `input-wrapper ${this.ignorebtag && input.name === 'Btag' ? 'hide-btag' : ''}` }, h("general-input", { type: input.inputType, name: input.name, displayName: input.displayName, validation: input.validate, action: input.action || null, options: input.data
|
|
15295
15295
|
? input.inputType.toLowerCase() === 'checkboxgroup' ||
|
|
15296
15296
|
input.inputType.toLowerCase() === 'togglecheckbox'
|
|
15297
15297
|
? input.data.subFields
|
|
15298
15298
|
: input.data.values
|
|
15299
15299
|
: [], defaultValue: input.defaultValue, autofilled: input.autofill, emitValue: this.emitValue, language: this.language, mbSource: this.mbSource, isDuplicateInput: input.isDuplicateInput, "client-styling": this.clientStyling, tooltip: input.tooltip, placeholder: input.placeholder == null ? '' : input.placeholder, "date-format": this.dateFormat, "twofa-destination": this.twofaDestination, "twofa-resend-interval-seconds": (_a = input.customInfo) === null || _a === void 0 ? void 0 : _a.twofaResendIntervalSeconds, "translation-url": this.translationUrl, emitOnClick: this.emitOnClick, onClick: this.handleInitialClick, haspostalcodelookup: this.haspostalcodelookup, addresses: this.haspostalcodelookup ? this.addresses : null, postalcodelength: this.haspostalcodelookup ? this.postalcodelength : null, "enable-south-african-mode": this.enableSouthAfricanMode, key: ['address1', 'address2', 'City'].includes(input.name)
|
|
15300
15300
|
? `${input.name}-${this.addressUpdateKey}`
|
|
15301
|
-
: input.name, "ignore-country": this.getIgnoreCountry(input), "pin-attempts-exceeded": this.pinAttemptsExceeded }), ((_b = input.customInfo) === null || _b === void 0 ? void 0 : _b.description) && h
|
|
15302
|
-
}), this.forms[this.registrationStep] && this.isConsentReady && this.renderConsents(), this.forms[this.registrationStep] && this.buttonInsideForm && this.renderButtons(), h
|
|
15301
|
+
: input.name, "ignore-country": this.getIgnoreCountry(input), "pin-attempts-exceeded": this.pinAttemptsExceeded }), ((_b = input.customInfo) === null || _b === void 0 ? void 0 : _b.description) && h("div", { class: "input-description" }, input.customInfo.description)));
|
|
15302
|
+
}), this.forms[this.registrationStep] && this.isConsentReady && this.renderConsents(), this.forms[this.registrationStep] && this.buttonInsideForm && this.renderButtons(), h("div", { class: "registration__wrapper--flex" }, h("p", { class: "registration__error-message", innerHTML: this.errorMessage })))));
|
|
15303
15303
|
}
|
|
15304
15304
|
renderConsents() {
|
|
15305
|
-
return (h
|
|
15305
|
+
return (h("div", { class: "consentsContainer" }, h("player-consents", { endpoint: this.endpoint })));
|
|
15306
15306
|
}
|
|
15307
15307
|
renderButtons() {
|
|
15308
|
-
return (h
|
|
15309
|
-
&& h
|
|
15310
|
-
&& h
|
|
15308
|
+
return (h("div", null, this.isLoadingPOST
|
|
15309
|
+
&& h("slot", { name: 'spinner' })
|
|
15310
|
+
&& h("svg", { class: "spinner", viewBox: "0 0 50 50" }, h("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "5" })), !this.isLoadingPOST && h("div", { class: `registration__buttons-wrapper ${this.autofilled ? 'registration__buttons-wrapper--autofilled' : ''}` }, h("button", { class: `registration__button registration__button--next ${this.registrationStep} ${!this.isFormValid || this.pinAttemptsExceeded ? 'registration__button--disabled' : ''}`, type: 'submit', form: `RegistrationForm${this.registrationStep}`, onClick: (e) => this.nextHandler(e), disabled: this.pinAttemptsExceeded ? true : !this.isFormValid }, this.registrationStep === "Step2"
|
|
15311
15311
|
? translate('verifyButton', this.language)
|
|
15312
15312
|
: (this.lastStep === this.registrationStep
|
|
15313
15313
|
? translate('doneButton', this.language)
|
|
15314
|
-
: translate('nextButton', this.language))), h
|
|
15314
|
+
: translate('nextButton', this.language))), h("button", { class: `registration__button registration__button--back ${this.registrationStep == 'Step1' ? 'registration__button--first-step' : ''}`, onClick: (e) => this.backHandler(e) }, translate('backButton', this.language)))));
|
|
15315
15315
|
}
|
|
15316
15316
|
render() {
|
|
15317
15317
|
if (this.isLoading && !this.registerErrors) {
|
|
15318
|
-
return h
|
|
15318
|
+
return h("p", { class: `registration registration__loading-message` }, translate('loadingMessage', this.language));
|
|
15319
15319
|
}
|
|
15320
15320
|
else if (!this.isLoading && this.registerErrors) {
|
|
15321
15321
|
return this.renderErrorMessage(this.errorMessage);
|
|
15322
15322
|
}
|
|
15323
|
-
return (h
|
|
15323
|
+
return (h("div", { class: `registration registration__${this.registrationStep}` }, this.renderForm(), !this.buttonInsideForm && this.renderButtons()));
|
|
15324
15324
|
}
|
|
15325
15325
|
get host() { return getElement(this); }
|
|
15326
15326
|
static get watchers() { return {
|
|
@@ -15451,7 +15451,7 @@ const NumberInput = class {
|
|
|
15451
15451
|
}
|
|
15452
15452
|
renderTooltip() {
|
|
15453
15453
|
if (this.showTooltip) {
|
|
15454
|
-
return (h
|
|
15454
|
+
return (h("div", { class: `number__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
15455
15455
|
}
|
|
15456
15456
|
return null;
|
|
15457
15457
|
}
|
|
@@ -15460,8 +15460,8 @@ const NumberInput = class {
|
|
|
15460
15460
|
if (this.touched) {
|
|
15461
15461
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
15462
15462
|
}
|
|
15463
|
-
return h
|
|
15464
|
-
h
|
|
15463
|
+
return h("div", { key: 'aea370172d0e55d32dc665a1c340c734334e1caf', class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '10e16d10b956c5a647bc68ecffbc2eb0b06fa92a', class: 'number__wrapper--flex' }, h("label", { key: '0827d47c7278c6fdf8ebdd1dff03b91c39be6812', class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'cb868d01e8555f5e3333240f54d86f0a56641d0f', class: 'number__wrapper--relative' }, this.tooltip &&
|
|
15464
|
+
h("img", { key: '1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf', class: 'number__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("input", { key: '365b70a2eb333878d367d1d414ee0e296c91b3ec', ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), h("small", { key: 'a8639df7ef1e98807a7daffc9da4afd347b1c292', class: 'number__error-message' }, this.errorMessage));
|
|
15465
15465
|
}
|
|
15466
15466
|
static get watchers() { return {
|
|
15467
15467
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -15697,7 +15697,7 @@ const PasswordInput = class {
|
|
|
15697
15697
|
}
|
|
15698
15698
|
renderTooltip() {
|
|
15699
15699
|
if (this.showTooltip) {
|
|
15700
|
-
return (h
|
|
15700
|
+
return (h("div", { class: `password__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
15701
15701
|
}
|
|
15702
15702
|
return null;
|
|
15703
15703
|
}
|
|
@@ -15706,21 +15706,21 @@ const PasswordInput = class {
|
|
|
15706
15706
|
const passedRules = this.passwordComplexity.filter(complexity => complexity.passed).length;
|
|
15707
15707
|
const meterValue = passedRules / totalRules;
|
|
15708
15708
|
const allRulesPassed = this.passwordComplexity.every(complexity => complexity.passed);
|
|
15709
|
-
return (h
|
|
15710
|
-
return (h
|
|
15709
|
+
return (h("div", { class: `password__complexity ${!this.showPopup ? 'password__complexity--hidden' : ''}` }, h("div", { class: 'password__complexity--strength' }, h("p", { class: 'password__complexity--text' }, translate$1('passwordStrength', this.language), "\u00A0", h("span", { class: 'password__complexity--text-bold' }, translate$1(`${allRulesPassed ? 'passwordStrengthStrong' : 'passwordStrengthWeak'}`, this.language))), h("meter", { value: meterValue, min: "0", max: "1" })), h("div", null, this.passwordComplexity.map((complexity, index) => {
|
|
15710
|
+
return (h("div", { key: index }, h("input", { class: 'password__complexity--checkbox', type: "checkbox", checked: complexity.passed, disabled: true }), h("span", null, translate$1(`${complexity.ruleKey}`, this.language) ? translate$1(`${complexity.ruleKey}`, this.language) : complexity.rule)));
|
|
15711
15711
|
}))));
|
|
15712
15712
|
}
|
|
15713
15713
|
renderCustomComplexityPopup() {
|
|
15714
|
-
return (h
|
|
15715
|
-
? CONSTANTS$1.PASSWORD_COMPLEXITY_PASSED : CONSTANTS$1.PASSWORD_COMPLEXITY_FAILED}` }, complexity.passed ? STATUS_ICONS.PASSED : STATUS_ICONS.FAILED), h
|
|
15714
|
+
return (h("div", { class: `customreg-password__complexity ${!this.showPopup ? 'customreg-password__complexity--hidden' : ''}` }, h("p", { class: 'customreg-password__complexity--title' }, translate$1('PasswordMustContain', this.language)), h("div", { class: 'customreg-password__complexity--rules' }, this.passwordComplexity.map((complexity, index) => (h("div", { class: 'customreg-password__complexity--rule', key: index }, h("span", { class: `customreg-password__complexity--icon ${complexity.passed
|
|
15715
|
+
? CONSTANTS$1.PASSWORD_COMPLEXITY_PASSED : CONSTANTS$1.PASSWORD_COMPLEXITY_FAILED}` }, complexity.passed ? STATUS_ICONS.PASSED : STATUS_ICONS.FAILED), h("span", null, translate$1(complexity.ruleKey, this.language) || complexity.rule)))))));
|
|
15716
15716
|
}
|
|
15717
15717
|
render() {
|
|
15718
15718
|
let invalidClass = '';
|
|
15719
15719
|
if (this.touched) {
|
|
15720
15720
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
15721
15721
|
}
|
|
15722
|
-
return h
|
|
15723
|
-
h
|
|
15722
|
+
return h("div", { key: 'fe895585dd908f75eee4ba797dc9c02b237bed7f', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '844bdb3dab98e62cc5d92a761b85adcdc44831d0', class: 'password__wrapper--flex' }, h("label", { key: '28041267a6df666e7df3660a907f995eff092ae1', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: '79c300643134802f04d8f909fe7bb3895911c88a', class: 'password__wrapper--relative' }, this.tooltip &&
|
|
15723
|
+
h("img", { key: '43ae58549e42ba59054162c25887ec36eb826aaa', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("vaadin-password-field", { key: '0edcfed0ea65666537240f531e5239bd5b11181e', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !this.noValidation && h("small", { key: 'c8aeba074e66b771d745194fec535aa0b82de6d8', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity &&
|
|
15724
15724
|
this.showPopup &&
|
|
15725
15725
|
!this.hidePasswordComplexity &&
|
|
15726
15726
|
!this.isDuplicateInput &&
|
|
@@ -16057,7 +16057,7 @@ const PostalCodeInput = class {
|
|
|
16057
16057
|
}
|
|
16058
16058
|
renderTooltip() {
|
|
16059
16059
|
if (this.showTooltip) {
|
|
16060
|
-
return (h
|
|
16060
|
+
return (h("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
16061
16061
|
}
|
|
16062
16062
|
return null;
|
|
16063
16063
|
}
|
|
@@ -16080,7 +16080,7 @@ const PostalCodeInput = class {
|
|
|
16080
16080
|
let shouldShowNoResults = this.showNoResultsMessage && this.currentPostalCode &&
|
|
16081
16081
|
this.currentPostalCode.length >= this.postalcodelength && (((_b = this.addresses) === null || _b === void 0 ? void 0 : _b.length) === 0) && isUKCountry;
|
|
16082
16082
|
let showLoadingMessage = this.isFetchingAddresses && this.currentPostalCode.length >= this.postalcodelength;
|
|
16083
|
-
return (h
|
|
16083
|
+
return (h("div", { key: 'f274a95e0a64ec67f01be8a5cf053d475c16e9ca', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, h("div", { key: '23aa865fd99048cb5c638f0b66b4ff3e8e451d97', class: 'text__wrapper--flex' }, h("label", { key: 'c5d12c1548ec8bfde130a95cc20783f20295a253', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'db2f499ff6ca8f4e3b1a8ac83e7f8856fc1ca888', class: 'text__wrapper--relative' }, this.tooltip && (h("img", { key: 'a1d7ef42855a21f336dbbb337cc8cb644de0c655', class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip })), this.renderTooltip())), h("div", { key: '18a6812958691749d0c7c3396ce69a3f46f7f1e4', class: 'input__text-wrapper' }, h("input", { key: '41aa9e6b8817eee602347d7a3a909f0d81985d3d', name: this.name, id: `${this.name}__input`, value: this.determineInputValue(), type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.maxPostalCodeLength, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), !isUKCountry && (h("p", { key: '7083c22e5ebb306ad9ca3c4dc29dcd66bc8b17d5', class: "address__manual-input-msg", onClick: () => this.enterAddressManually() }, translate$1('enterIEAddressManually', this.language))), showAddressesDropdown && (h("div", { key: '95ad996e43da19386f4576eb35850c7ba09e1620', class: "input__addresses-container", ref: (el) => (this.addressesDropdownRef = el) }, h("div", { key: '3997d92f28ec2ecee49b2480a5edb0a8431aa1c8', class: "options" }, this.addresses.map((addr, index) => (h("div", { key: index, class: "option", onClick: (e) => this.handlePostalCode(e, addr) }, addr.number, " ", addr.street, " ", addr.city)))))), showLoadingMessage && (h("div", { key: 'cf5f9c9f5f96aa2ef316eb44e97768e3552c4a2e', class: "postalcode__loading-spinner" }, h("div", { key: 'd9b0dda1be9fa871dee4b7d415f84a28b81c3362', class: "loading-spinner" }), h("span", { key: 'b5a6c58d910f5be519617288310a8a456e7e8c1c' }, translate$1('searchingForAddresses', this.language)))), shouldShowNoResults && (h("div", { key: '2b5503571824ec9f04f58959b8b38ff279fa6d1d', class: "postalcode__no-results-message" }, translate$1('postalLookUpNoAddressFound', this.language)))), h("small", { key: '00e0cbe15e10c40c8f43939123c10819592fdce2', class: 'text__error-message' }, this.errorMessage)));
|
|
16084
16084
|
}
|
|
16085
16085
|
static get watchers() { return {
|
|
16086
16086
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -16169,13 +16169,13 @@ const RadioInput = class {
|
|
|
16169
16169
|
}
|
|
16170
16170
|
renderTooltip() {
|
|
16171
16171
|
if (this.showTooltip) {
|
|
16172
|
-
return (h
|
|
16172
|
+
return (h("div", { class: `radio__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
16173
16173
|
}
|
|
16174
16174
|
return null;
|
|
16175
16175
|
}
|
|
16176
16176
|
render() {
|
|
16177
|
-
return h
|
|
16178
|
-
h
|
|
16177
|
+
return h("fieldset", { key: '33493de460303a32a37d253a0fd5f9da59676542', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, h("legend", { key: '8aef7aa84a119742e05d72d976c936a560154b3f', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => h("div", { class: 'radio__wrapper' }, h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), h("label", { htmlFor: `${option.label}__input` }, option.label))), h("small", { key: 'bec44ed4007e408ddeb0b0293b82e034c8e165f2', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
|
|
16178
|
+
h("img", { key: 'a3b0a041beabe3f14661c0af8cd970040d060435', class: 'radio__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
|
|
16179
16179
|
}
|
|
16180
16180
|
static get watchers() { return {
|
|
16181
16181
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -16365,7 +16365,7 @@ const SelectInput = class {
|
|
|
16365
16365
|
}
|
|
16366
16366
|
renderTooltip() {
|
|
16367
16367
|
if (this.showTooltip) {
|
|
16368
|
-
return (h
|
|
16368
|
+
return (h("div", { class: `select__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
16369
16369
|
}
|
|
16370
16370
|
return null;
|
|
16371
16371
|
}
|
|
@@ -16375,10 +16375,10 @@ const SelectInput = class {
|
|
|
16375
16375
|
if (this.touched) {
|
|
16376
16376
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
16377
16377
|
}
|
|
16378
|
-
return h
|
|
16379
|
-
h
|
|
16378
|
+
return h("div", { key: 'b0ed504667761e5fd77e0ac13382b467448a1944', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: 'b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6', class: 'select__wrapper--flex' }, h("label", { key: 'ad592c8c98ecbec1961d22cdfeb8cec910291ea8', class: 'select__label', htmlFor: `${this.name}__input` }, this.displayName, h("span", { key: 'b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad', class: this.validation.mandatory ? 'select__label--required' : '' })), h("div", { key: '29d0f504d0f51175818dffffb882ac4e6e9c3bde', class: 'select__wrapper--relative' }, this.tooltip &&
|
|
16379
|
+
h("img", { key: '66e524ffebc43f9418e90b3bd2d7ae62eba47da3', class: 'select__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), this.isComboBox ? h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_a = this.validation) === null || _a === void 0 ? void 0 : _a.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleComboChange, onBlur: this.handleBlur })
|
|
16380
16380
|
:
|
|
16381
|
-
h
|
|
16381
|
+
h("vaadin-select", { name: this.name, popover: false, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", ref: (el) => this.vaadinCombo = el, readOnly: this.autofilled, required: (_b = this.validation) === null || _b === void 0 ? void 0 : _b.mandatory, value: this.value, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleSelectChange, "no-vertical-overlap": true, noVerticalOverlap: true }), h("small", { key: '0143b538740c3a8e9bfcab6bbb44660355c40cf7', class: 'select__error-message' }, this.errorMessage));
|
|
16382
16382
|
}
|
|
16383
16383
|
static get watchers() { return {
|
|
16384
16384
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -16583,7 +16583,7 @@ const TelInput = class {
|
|
|
16583
16583
|
}
|
|
16584
16584
|
renderTooltip() {
|
|
16585
16585
|
if (this.showTooltip) {
|
|
16586
|
-
return (h
|
|
16586
|
+
return (h("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
16587
16587
|
}
|
|
16588
16588
|
return null;
|
|
16589
16589
|
}
|
|
@@ -16593,8 +16593,8 @@ const TelInput = class {
|
|
|
16593
16593
|
if (this.touched) {
|
|
16594
16594
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
16595
16595
|
}
|
|
16596
|
-
return h
|
|
16597
|
-
h
|
|
16596
|
+
return h("div", { key: 'f534de21d5597a3e90912eb87fff893511d09920', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: '431fb8cbaea0d2244847823ea4d04d8c73a5341c', class: 'tel__wrapper--flex-label' }, h("label", { key: '2eb210b2f0c2e0e632997f59fe7aa667578f72fd', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: '2d912b828f7d9475a1bbb5bac13495779f31198e', class: 'tel__wrapper--relative' }, this.tooltip &&
|
|
16597
|
+
h("img", { key: 'ce4433263d27dc9d3fb2caf45069d7a92e9ae3a7', class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("div", { key: '480cd17eafb4f2ff1e396531429177cb3130eb95', class: `tel__wrapper--flex ${invalidClass}` }, h("vaadin-combo-box", { key: '5f2292c8509e5f68786d0f462c689102b1c75dc3', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.disablePhonePrefix, onChange: (e) => this.handlePrefixInput(e) }), h("input", { key: '77232e119eed4960f5e1d809507b8585dd112256', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: (_a = this.phoneValue) !== null && _a !== void 0 ? _a : '', placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), h("small", { key: '0d925cee41881c8c822073790e26ca7dc4a81049', class: 'tel__error-message' }, this.errorMessage));
|
|
16598
16598
|
}
|
|
16599
16599
|
static get watchers() { return {
|
|
16600
16600
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -16894,7 +16894,7 @@ const TextInput = class {
|
|
|
16894
16894
|
}
|
|
16895
16895
|
renderTooltip() {
|
|
16896
16896
|
if (this.showTooltip) {
|
|
16897
|
-
return (h
|
|
16897
|
+
return (h("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
16898
16898
|
}
|
|
16899
16899
|
return null;
|
|
16900
16900
|
}
|
|
@@ -16903,8 +16903,8 @@ const TextInput = class {
|
|
|
16903
16903
|
if (this.touched) {
|
|
16904
16904
|
invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
|
|
16905
16905
|
}
|
|
16906
|
-
return h
|
|
16907
|
-
h
|
|
16906
|
+
return h("div", { key: '7e4006b92f6c1e2d8b39694fd85fad7d672c18fd', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, h("div", { key: 'e70be4a8daef6cbaa25d438b4d1edaecf6db5159', class: 'text__wrapper--flex' }, h("label", { key: '0b09f624c460c9d777dd10b887430a4e6de8cacc', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), h("div", { key: 'df36d8f44540b35a65f816ade477c4f4ff077977', class: 'text__wrapper--relative' }, this.tooltip &&
|
|
16907
|
+
h("img", { key: '85e25624de052cad543c883514ba0c0a522d249f', class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), h("input", { key: 'bf34796489a118f3c4849c3b8b7680fb77f5a2eb', name: this.name, id: `${this.name}__input`, value: this.value, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, required: this.validation.mandatory, minlength: this.enableSouthAfricanMode ? '' : this.validation.minLength, maxlength: this.enableSouthAfricanMode ? '' : this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), h("small", { key: '725e4208a8170b6cf34869c44ec8cb29c2c7c93f', class: 'text__error-message' }, this.errorMessage));
|
|
16908
16908
|
}
|
|
16909
16909
|
static get watchers() { return {
|
|
16910
16910
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -17003,18 +17003,18 @@ const ToggleCheckboxInput = class {
|
|
|
17003
17003
|
});
|
|
17004
17004
|
}
|
|
17005
17005
|
renderLabel() {
|
|
17006
|
-
return (h
|
|
17006
|
+
return (h("label", { class: 'togglecheckbox__label', htmlFor: `${this.name}__input` }, h("div", { class: 'togglecheckbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
|
|
17007
17007
|
}
|
|
17008
17008
|
renderTooltip() {
|
|
17009
17009
|
if (this.showTooltip) {
|
|
17010
|
-
return (h
|
|
17010
|
+
return (h("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
|
|
17011
17011
|
}
|
|
17012
17012
|
return null;
|
|
17013
17013
|
}
|
|
17014
17014
|
render() {
|
|
17015
|
-
return h
|
|
17016
|
-
h
|
|
17017
|
-
return h
|
|
17015
|
+
return h("div", { key: '828751327e59e9649afc04c6c9f7a02ef7dcae8d', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, h("div", { key: 'd02a2a6ef595aaf7142cbc6e9681394ee4db8fee', class: 'togglecheckbox__wrapper--flex' }, h("input", { key: 'fca6401ef6eb178f53471362444d54ed69086429', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), h("small", { key: '3781a8fdfeb719422693bcd541a4a3fe708e705a', class: 'togglecheckbox__error-message' }, this.errorMessage), h("div", { key: '27a4c6b047cd332407ee40c82cf7be1914ed34c9', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
|
|
17016
|
+
h("img", { key: 'f1367d7e061d20ad68c24dfbe3147e6b67df746f', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), h("div", { key: '98d42103554de4d14a65eafd1722bf9d587a27f1', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
|
|
17017
|
+
return h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder, ref: el => this.subFieldsObject[subfield.name] = el });
|
|
17018
17018
|
})));
|
|
17019
17019
|
}
|
|
17020
17020
|
static get watchers() { return {
|
|
@@ -17286,7 +17286,7 @@ const TwofaInput = class {
|
|
|
17286
17286
|
}
|
|
17287
17287
|
renderTooltip() {
|
|
17288
17288
|
if (this.showTooltip) {
|
|
17289
|
-
return h
|
|
17289
|
+
return h("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip });
|
|
17290
17290
|
}
|
|
17291
17291
|
return null;
|
|
17292
17292
|
}
|
|
@@ -17300,9 +17300,9 @@ const TwofaInput = class {
|
|
|
17300
17300
|
return current;
|
|
17301
17301
|
}
|
|
17302
17302
|
render() {
|
|
17303
|
-
return (h
|
|
17304
|
-
return (h
|
|
17305
|
-
})), h
|
|
17303
|
+
return (h("div", { key: '08b9139f1c2236dd40a045517a9623ad966f29d3', class: "twofa", ref: el => this.stylingContainer = el }, h("div", { key: '7528885100be3d450ec52aafd6085a4c852710c8', class: 'twofa__error-message' }, h("p", { key: '51dab3f02156b5eb3b7408f06f2d359cfbda11a7' }, this.errorMessage)), h("div", { key: 'f336f89ecee0724663b1bbb4d443bb834336b5c1', class: "twofa__description", innerHTML: translate$1('twofaDescription', this.language, { values: { destination: this.destination } }) }), h("div", { key: '5127127ccc8e50428f8319fddc9e21606f3b4148', class: "twofa__input-wrapper", ref: this.setContainerRef }, this.code.map((_, idx) => {
|
|
17304
|
+
return (h("input", { key: idx, ref: el => this.setInputRef(el, idx), id: `otp-input-${idx}`, type: "text", maxLength: 2, value: this.getInputDisplayValue(idx), onInput: (event) => this.handleInput(event, idx), onKeyDown: (event) => this.handleKeyDown(event, idx), onPaste: (event) => this.handlePaste(event) }));
|
|
17305
|
+
})), h("div", { key: 'be82ae1192129d571275b78c8097c3023468cf3e', class: "twofa__button-wrapper" }, h("p", { key: '11de61d738ffa74bfd44f0d7c88fc4e456647d0c', class: "twofa__resend-message" }, translate$1('twofaResendMessage', this.language)), h("button", { key: '84d5c55c4d9bf024164ec52e2100cfcc8c236ac2', class: `twofa__resend-button ${this.pinAttemptsExceeded ? 'twofa__resend-button--disabled' : ''}`, onClick: this.resendCodeHandler, disabled: !this.isResendButtonAvailable || this.pinAttemptsExceeded }, this.isResendButtonAvailable
|
|
17306
17306
|
? translate$1('twofaResendButton', this.language)
|
|
17307
17307
|
: this.formatTime()))));
|
|
17308
17308
|
}
|