@randstad-uca/design-system 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion.d.ts +8 -0
- package/dist/components/CarouselCards.d.ts +16 -0
- package/dist/components/Modal.d.ts +1 -0
- package/dist/components/ProgressCircle.d.ts +7 -0
- package/dist/components/Select.d.ts +8 -2
- package/dist/components/Upload.d.ts +12 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +434 -349
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/stories/Accordion.stories.d.ts +5 -0
- package/dist/stories/CarouselCards.stories.d.ts +5 -0
- package/dist/stories/Modal.stories.d.ts +10 -5
- package/dist/stories/ProgressCircle.stories.d.ts +5 -0
- package/dist/stories/Select.stories.d.ts +74 -9
- package/dist/stories/Upload.stories.d.ts +7 -0
- package/package.json +1 -1
- package/dist/components/Progress.d.ts +0 -11
- package/dist/stories/Progress.stories.d.ts +0 -15
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{LitElement as t,css as e,html as o,CSSResult as i,nothing as
|
|
1
|
+
import{LitElement as t,css as e,html as o,CSSResult as i,nothing as s,isServer as r}from"lit";function n(t,e,o,i){var s,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,o,n):s(e,o))||n);return r>3&&n&&Object.defineProperty(e,o,n),n}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -9,18 +9,18 @@ const l=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)}
|
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/,d=globalThis,
|
|
12
|
+
*/,d=globalThis,h=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),u=new WeakMap;let p=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==c)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(h&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&u.set(e,t))}return t}toString(){return this.cssText}};const m=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/,{is:f,defineProperty:_,getOwnPropertyDescriptor:g,getOwnPropertyNames:b,getOwnPropertySymbols:y,getPrototypeOf:v}=Object,w=globalThis,x=w.trustedTypes,C=x?x.emptyScript:"",k=w.reactiveElementPolyfillSupport,A=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?C:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},P=(t,e)=>!f(t,e),S={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P};Symbol.metadata??=Symbol("metadata"),w.litPropertyMetadata??=new WeakMap;class D extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&_(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:
|
|
17
|
+
*/,{is:f,defineProperty:_,getOwnPropertyDescriptor:g,getOwnPropertyNames:b,getOwnPropertySymbols:y,getPrototypeOf:v}=Object,w=globalThis,x=w.trustedTypes,C=x?x.emptyScript:"",k=w.reactiveElementPolyfillSupport,A=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?C:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},P=(t,e)=>!f(t,e),S={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P};Symbol.metadata??=Symbol("metadata"),w.litPropertyMetadata??=new WeakMap;class D extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&_(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:s}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const r=i?.call(this);s.call(this,e),this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const t=this.properties,e=[...b(t),...y(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(h)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=d.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const s=(void 0!==o.converter?.toAttribute?o.converter:E).toAttribute(e,o.type);this._$Em=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i,this[i]=s.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??P)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[A("elementProperties")]=new Map,D[A("finalized")]=new Map,k?.({ReactiveElement:D}),(w.reactiveElementVersions??=[]).push("2.0.4");
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
const T={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P},O=(t=T,e,o)=>{const{kind:i,metadata:
|
|
23
|
+
const T={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P},O=(t=T,e,o)=>{const{kind:i,metadata:s}=o;let r=globalThis.litPropertyMetadata.get(s);if(void 0===r&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,s,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const s=this[i];e.call(this,o),this.requestUpdate(i,s,t)}}throw Error("Unsupported decorator location: "+i)};function I(t){return(e,o)=>"object"==typeof o?O(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
@@ -36,7 +36,7 @@ const T={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P},O=(t=T,e,
|
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let
|
|
39
|
+
function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let M=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null,this.type="button"}static{this.styles=e`
|
|
40
40
|
:host {
|
|
41
41
|
display: inline-block;
|
|
42
42
|
}
|
|
@@ -227,7 +227,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
227
227
|
border: none;
|
|
228
228
|
color: var(--white);
|
|
229
229
|
}
|
|
230
|
-
`}handleClick(t){this.disabled
|
|
230
|
+
`}handleClick(t){if(!this.disabled)if("submit"===this.type){const t=this.closest("form");t&&t.requestSubmit()}else this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0}))}render(){const t=`button ${"button-round"===this.variant?"":`button-${this.size}`} ${this.variant} ${this.loader?"loader":""}`,e="button-tertiary"===this.variant?"#2175D9":"white";return o`
|
|
231
231
|
<button
|
|
232
232
|
type=${this.type}
|
|
233
233
|
class=${t}
|
|
@@ -247,7 +247,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
247
247
|
${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?o`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
248
248
|
`}
|
|
249
249
|
</button>
|
|
250
|
-
`}};n([I({type:String}),a("design:type",String)],
|
|
250
|
+
`}};n([I({type:String}),a("design:type",String)],M.prototype,"variant",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"label",void 0),n([I({type:Boolean}),a("design:type",Object)],M.prototype,"loader",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"iconSrc",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"iconPosition",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],M.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"iconName",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"type",void 0),M=n([l("randstad-button")],M);let z=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
|
|
251
251
|
:host {
|
|
252
252
|
display: block;
|
|
253
253
|
max-width: 100%;
|
|
@@ -317,7 +317,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
317
317
|
${this.renderClause(this.clause2Text,this.clause2Url)}.
|
|
318
318
|
</span>
|
|
319
319
|
</label>
|
|
320
|
-
`}};n([I({type:String}),a("design:type",Object)],
|
|
320
|
+
`}};n([I({type:String}),a("design:type",Object)],z.prototype,"prefix",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"clause1Text",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"clause1Url",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"connector",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"clause2Text",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"clause2Url",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],z.prototype,"checked",void 0),z=n([l("randstad-checkbox")],z);
|
|
321
321
|
/**
|
|
322
322
|
* @license
|
|
323
323
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -349,7 +349,7 @@ const F=t=>class extends t{static get properties(){return{theme:{type:String,ref
|
|
|
349
349
|
*
|
|
350
350
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
351
351
|
* license.
|
|
352
|
-
*/,R=[];function H(t,e,o={}){var
|
|
352
|
+
*/,R=[];function H(t,e,o={}){var s;t&&(s=t,Y(customElements.get(s))&&console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)),e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof i||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,o):R.push({themeFor:t,styles:e,include:o.include,moduleId:o.moduleId})}function B(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():R}function V(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function j(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const o=B().find((e=>e.moduleId===t));o?e.push(...j(o),...o.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function U(t){const e=`${t}-default-theme`,o=B().filter((o=>o.moduleId!==e&&function(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`).test(e)))}(o.themeFor,t))).map((t=>({...t,styles:[...j(t),...t.styles],includePriority:V(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return o.length>0?o:B().filter((t=>t.moduleId===e))}function Y(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}const q=t=>class extends(F(t)){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;t&&!Y(this)&&function(t,e){const o=document.createElement("style");o.innerHTML=t.map((t=>t.cssText)).join("\n"),e.content.appendChild(o)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype),e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...U(this.is)];const o=this.__themes.flatMap((t=>t.styles));return o.filter(((t,e)=>e===o.lastIndexOf(t)))}}
|
|
353
353
|
/**
|
|
354
354
|
* @license
|
|
355
355
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -913,7 +913,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
913
913
|
Code distributed by Google as part of the polymer project is also
|
|
914
914
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
915
915
|
*/
|
|
916
|
-
let ot,it,
|
|
916
|
+
let ot,it,st=/(url\()([^)]*)(\))/g,rt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function nt(t,e){if(t&&rt.test(t))return t;if("//"===t)return t;if(void 0===ot){ot=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",ot="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),ot)try{return new URL(t,e).href}catch(e){return t}return it||(it=document.implementation.createHTMLDocument("temp"),it.base=it.createElement("base"),it.head.appendChild(it.base),it.anchor=it.createElement("a"),it.body.appendChild(it.anchor)),it.base.href=e,it.anchor.href=t,it.anchor.href||t}function at(t,e){return t.replace(st,(function(t,o,i,s){return o+"'"+nt(i.replace(/["']/g,""),e)+"'"+s}))}function lt(t){return t.substring(0,t.lastIndexOf("/")+1)}
|
|
917
917
|
/**
|
|
918
918
|
@license
|
|
919
919
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -922,7 +922,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
922
922
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
923
923
|
Code distributed by Google as part of the polymer project is also
|
|
924
924
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
925
|
-
*/const dt=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const
|
|
925
|
+
*/const dt=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const ht=dt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let ct=window.Polymer&&window.Polymer.rootPath||lt(document.baseURI||window.location.href),ut=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let pt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ft=window.Polymer&&window.Polymer.legacyOptimizations||!1,_t=window.Polymer&&window.Polymer.legacyWarnings||!1,gt=window.Polymer&&window.Polymer.syncInitialRender||!1,bt=window.Polymer&&window.Polymer.legacyUndefined||!1,yt=window.Polymer&&window.Polymer.orderedComputed||!1,vt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,wt=window.Polymer&&window.Polymer.fastDomIf||!1,xt=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Ct=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,kt=0;
|
|
926
926
|
/**
|
|
927
927
|
@license
|
|
928
928
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -931,7 +931,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
931
931
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
932
932
|
Code distributed by Google as part of the polymer project is also
|
|
933
933
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
934
|
-
*/const At=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let o=kt++;return function(i){let
|
|
934
|
+
*/const At=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let o=kt++;return function(i){let s=i.__mixinSet;if(s&&s[o])return i;let r=e,n=r.get(i);if(!n){n=t(i),r.set(i,n);let e=Object.create(n.__mixinSet||s||null);e[o]=!0,n.__mixinSet=e}return n}};
|
|
935
935
|
/**
|
|
936
936
|
@license
|
|
937
937
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -950,7 +950,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
950
950
|
Code distributed by Google as part of the polymer project is also
|
|
951
951
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
952
952
|
*/
|
|
953
|
-
const Ot="shady-unscoped";function It(t){return Tt.import(t)}function $t(t){const e=at((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function Nt(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...
|
|
953
|
+
const Ot="shady-unscoped";function It(t){return Tt.import(t)}function $t(t){const e=at((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function Nt(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...Mt(e[t]));return o}function Mt(t){const e=It(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...Lt(e));const o=e.querySelector("template");o&&t.push(...zt(o,e.assetpath)),e._styles=t}return e._styles}function zt(t,e){if(!t._styles){const o=[],i=t.content.querySelectorAll("style");for(let t=0;t<i.length;t++){let s=i[t],r=s.getAttribute("include");r&&o.push(...Nt(r).filter((function(t,e,o){return o.indexOf(t)===e}))),e&&(s.textContent=at(s.textContent,e)),o.push(s)}t._styles=o}return t._styles}function Lt(t){const e=[],o=t.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<o.length;t++){let i=o[t];if(i.import){const t=i.import,o=i.hasAttribute(Ot);if(o&&!t._unscopedStyle){const e=$t(t);e.setAttribute(Ot,""),t._unscopedStyle=e}else t._style||(t._style=$t(t));e.push(o?t._unscopedStyle:t._style)}}return e}
|
|
954
954
|
/**
|
|
955
955
|
@license
|
|
956
956
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -968,7 +968,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
968
968
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
969
969
|
Code distributed by Google as part of the polymer project is also
|
|
970
970
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
971
|
-
*/function Rt(t){return t.indexOf(".")>=0}function Ht(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Bt(t,e){return 0===t.indexOf(e+".")}function Vt(t,e){return 0===e.indexOf(t+".")}function jt(t,e,o){return e+o.slice(t.length)}function Ut(t){if(Array.isArray(t)){let e=[];for(let o=0;o<t.length;o++){let i=t[o].toString().split(".");for(let t=0;t<i.length;t++)e.push(i[t])}return e.join(".")}return t}function Yt(t){return Array.isArray(t)?Ut(t).split("."):t.toString().split(".")}function qt(t,e,o){let i=t,
|
|
971
|
+
*/function Rt(t){return t.indexOf(".")>=0}function Ht(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Bt(t,e){return 0===t.indexOf(e+".")}function Vt(t,e){return 0===e.indexOf(t+".")}function jt(t,e,o){return e+o.slice(t.length)}function Ut(t){if(Array.isArray(t)){let e=[];for(let o=0;o<t.length;o++){let i=t[o].toString().split(".");for(let t=0;t<i.length;t++)e.push(i[t])}return e.join(".")}return t}function Yt(t){return Array.isArray(t)?Ut(t).split("."):t.toString().split(".")}function qt(t,e,o){let i=t,s=Yt(e);for(let t=0;t<s.length;t++){if(!i)return;i=i[s[t]]}return o&&(o.path=s.join(".")),i}function Wt(t,e,o){let i=t,s=Yt(e),r=s[s.length-1];if(s.length>1){for(let t=0;t<s.length-1;t++){if(i=i[s[t]],!i)return}i[r]=o}else i[e]=o;return s.join(".")}
|
|
972
972
|
/**
|
|
973
973
|
@license
|
|
974
974
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -986,7 +986,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
986
986
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
987
987
|
Code distributed by Google as part of the polymer project is also
|
|
988
988
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
989
|
-
*/let Qt=0,te=0,ee=[],oe=0,ie=!1,
|
|
989
|
+
*/let Qt=0,te=0,ee=[],oe=0,ie=!1,se=document.createTextNode("");new window.MutationObserver((function(){ie=!1;const t=ee.length;for(let e=0;e<t;e++){let t=ee[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}ee.splice(0,t),te+=t})).observe(se,{characterData:!0});const re={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ne={run:t=>(ie||(ie=!0,se.textContent=oe++),ee.push(t),Qt++),cancel(t){const e=t-te;if(e>=0){if(!ee[e])throw new Error("invalid async handle: "+t);ee[e]=null}}},ae=ne,le=At((t=>class extends t{static createProperties(t){const e=this.prototype;for(let o in t)o in e||e._createPropertyAccessor(o)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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 t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,o){let i=this.__data[t],s=this._shouldPropertyChange(t,e,i);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=i),this.__data[t]=e,this.__dataPending[t]=e),s}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ae.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 t=this.__data,e=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(t,e,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,o)),this.__dataCounter--}_shouldPropertiesChange(t,e,o){return Boolean(e)}_propertiesChanged(t,e,o){}_shouldPropertyChange(t,e,o){return o!==e&&(o==o||e==e)}attributeChangedCallback(t,e,o,i){e!==o&&this._attributeToProperty(t,o),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,o,i)}_attributeToProperty(t,e,o){if(!this.__serializing){const i=this.__dataAttributes,s=i&&i[t]||t;this[s]=this._deserializeValue(e,o||this.constructor.typeForProperty(s))}}_propertyToAttribute(t,e,o){this.__serializing=!0,o=arguments.length<3?this[t]:o,this._valueToNodeAttribute(this,o,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,o){const i=this._serializeValue(e);"class"!==o&&"name"!==o&&"slot"!==o||(t=Ft(t)),void 0===i?t.removeAttribute(o):t.setAttribute(o,""===i&&window.trustedTypes?window.trustedTypes.emptyScript:i)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),de={};let he=HTMLElement.prototype;for(;he;){let t=Object.getOwnPropertyNames(he);for(let e=0;e<t.length;e++)de[t[e]]=!0;he=Object.getPrototypeOf(he)}const ce=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;const ue=At((t=>{const e=le(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Jt(t[e]))}static attributeNameForProperty(t){return Zt(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){const o=this;o.hasAttribute(t)||this._valueToNodeAttribute(o,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(ce(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let o;switch(e){case Object:try{o=JSON.parse(t)}catch(e){o=t}break;case Array:try{o=JSON.parse(t)}catch(e){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:o=isNaN(t)?String(t):Number(t),o=new Date(o);break;default:o=super._deserializeValue(t,e)}return o}_definePropertyAccessor(t,e){!function(t,e){if(!de[e]){let o=t[e];void 0!==o&&(t.__data?t._setPendingProperty(e,o):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=o))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),pe={"dom-if":!0,"dom-repeat":!0};
|
|
990
990
|
/**
|
|
991
991
|
@license
|
|
992
992
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -995,7 +995,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
995
995
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
996
996
|
Code distributed by Google as part of the polymer project is also
|
|
997
997
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
998
|
-
*/let me=!1,fe=!1;function _e(t){(function(){if(!me){me=!0;const t=document.createElement("textarea");t.placeholder="a",fe=t.placeholder===t.textContent}return fe})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const ge=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,o,i)=>{const
|
|
998
|
+
*/let me=!1,fe=!1;function _e(t){(function(){if(!me){me=!0;const t=document.createElement("textarea");t.placeholder="a",fe=t.placeholder===t.textContent}return fe})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const ge=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,o,i)=>{const s=o.getAttribute(i);t&&i.startsWith("on-")?e.setAttribute(i,t.createScript(s,i)):e.setAttribute(i,s)}})();function be(t){let e=t.getAttribute("is");if(e&&pe[e]){let o=t;for(o.removeAttribute("is"),t=o.ownerDocument.createElement(e),o.parentNode.replaceChild(t,o),t.appendChild(o);o.attributes.length;){const{name:e}=o.attributes[0];ge(t,o,e),o.removeAttribute(e)}}return t}function ye(t,e){let o=e.parentInfo&&ye(t,e.parentInfo);if(!o)return t;for(let t=o.firstChild,i=0;t;t=t.nextSibling)if(e.parentIndex===i++)return t}function ve(t,e,o,i){i.id&&(e[i.id]=o)}function we(t,e,o){if(o.events&&o.events.length)for(let i,s=0,r=o.events;s<r.length&&(i=r[s]);s++)t._addMethodEventListenerToNode(e,i.name,i.value,t)}function xe(t,e,o,i){o.templateInfo&&(e._templateInfo=o.templateInfo,e._parentTemplateInfo=i)}const Ce=At((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let o=t._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=Boolean(e),o.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,o,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,o){return this._parseTemplateNode(t.content,e,o)}static _parseTemplateNode(t,e,o){let i=!1,s=t;return"template"!=s.localName||s.hasAttribute("preserve-content")?"slot"===s.localName&&(e.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(s,e,o)||i,_e(s),s.firstChild&&this._parseTemplateChildNodes(s,e,o),s.hasAttributes&&s.hasAttributes()&&(i=this._parseTemplateNodeAttributes(s,e,o)||i),i||o.noted}static _parseTemplateChildNodes(t,e,o){if("script"!==t.localName&&"style"!==t.localName)for(let i,s=t.firstChild,r=0;s;s=i){if("template"==s.localName&&(s=be(s)),i=s.nextSibling,s.nodeType===Node.TEXT_NODE){let o=i;for(;o&&o.nodeType===Node.TEXT_NODE;)s.textContent+=o.textContent,i=o.nextSibling,t.removeChild(o),o=i;if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:r,parentInfo:o};this._parseTemplateNode(s,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),s.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,o){let i=t,s=this._parseTemplate(i,e);return(s.content=i.content.ownerDocument.createDocumentFragment()).appendChild(i.content),o.templateInfo=s,!0}static _parseTemplateNodeAttributes(t,e,o){let i=!1,s=Array.from(t.attributes);for(let r,n=s.length-1;r=s[n];n--)i=this._parseTemplateNodeAttribute(t,e,o,r.name,r.value)||i;return i}static _parseTemplateNodeAttribute(t,e,o,i,s){return"on-"===i.slice(0,3)?(t.removeAttribute(i),o.events=o.events||[],o.events.push({name:i.slice(3),value:s}),!0):"id"===i&&(o.id=s,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let o=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,i=e.content||t.content,s=document.importNode(i,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let r=s.nodeList=new Array(o.length);s.$={};for(let t,i=0,n=o.length;i<n&&(t=o[i]);i++){let o=r[i]=ye(s,t);ve(0,s.$,o,t),xe(0,o,t,e),we(this,o,t)}return s}_addMethodEventListenerToNode(t,e,o,i){let s=function(t,e,o){return t=t._methodHost||t,function(e){t[o]?t[o](e,e.detail):console.warn("listener method `"+o+"` not defined")}}(i=i||t,0,o);return this._addEventListenerToNode(t,e,s),s}_addEventListenerToNode(t,e,o){t.addEventListener(e,o)}_removeEventListenerFromNode(t,e,o){t.removeEventListener(e,o)}}));
|
|
999
999
|
/**
|
|
1000
1000
|
* @fileoverview
|
|
1001
1001
|
* @suppress {checkPrototypalTypes}
|
|
@@ -1006,7 +1006,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1006
1006
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1007
1007
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1008
1008
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1009
|
-
*/let ke=0;const Ae=[],Ee={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Pe="__computeInfo",Se=/[A-Z]/;function De(t,e,o){let i=t[e];if(i){if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),o))for(let t in i){let e=i[t],o=i[t]=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]}}else i=t[e]={};return i}function Te(t,e,o,i,r,s){if(e){let n=!1;const a=ke++;for(let l in o){let d=e[r?Ht(l):l];if(d)for(let e,c=0,h=d.length;c<h&&(e=d[c]);c++)e.info&&e.info.lastRun===a||r&&!Ie(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,o,i,e.info,r,s),n=!0)}return n}return!1}function Oe(t,e,o,i,r,s,n,a){let l=!1,d=e[n?Ht(i):i];if(d)for(let e,c=0,h=d.length;c<h&&(e=d[c]);c++)e.info&&e.info.lastRun===o||n&&!Ie(i,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,i,r,s,e.info,n,a),l=!0);return l}function Ie(t,e){if(e){let o=e.name;return o==t||!(!e.structured||!Bt(o,t))||!(!e.wildcard||!Vt(o,t))}return!0}function $e(t,e,o,i,r){let s="string"==typeof r.method?t[r.method]:r.method,n=r.property;s?s.call(t,t.__data[n],i[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ne(t,e,o){let i=Ht(e);if(i!==e){return ze(t,Zt(i)+"-changed",o[e],e),!0}return!1}function ze(t,e,o,i){let r={value:o,queueProperty:!0};i&&(r.path=i),Ft(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Me(t,e,o,i,r,s){let n=(s?Ht(e):e)!=e?e:null,a=n?qt(t,n):t.__data[e];n&&void 0===a&&(a=o[e]),ze(t,r.eventName,a,n)}function Le(t,e,o,i,r){let s=t.__data[e];ut&&(s=ut(s,r.attrName,"attribute",t)),t._propertyToAttribute(e,r.attrName,s)}function Fe(t,e,o,i){let r=t[Ee.COMPUTE];if(r)if(yt){ke++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const o=t[Ee.COMPUTE];let i,{counts:r,ready:s,total:n}=function(t){const e=t[Pe],o={},i=t[Ee.COMPUTE],r=[];let s=0;for(let t in e){const i=e[t];s+=o[t]=i.args.filter((t=>!t.literal)).length+(i.dynamicFn?1:0)}for(let t in i)e[t]||r.push(t);return{counts:o,ready:r,total:s}}(t);for(;i=s.shift();){e.set(i,e.size);const t=o[i];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--r[e]&&s.push(e)}))}if(0!==n){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)He(t,r,n,s,i);let a;for(;a=n.shift();)Be(t,"",e,o,a)&&He(a.methodInfo,r,n,s,i);Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;Te(t,r,s,o,i);)Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Re=(t,e,o)=>{let i=0,r=e.length-1,s=-1;for(;i<=r;){const n=i+r>>1,a=o.get(e[n].methodInfo)-o.get(t.methodInfo);if(a<0)i=n+1;else{if(!(a>0)){s=n;break}r=n-1}}s<0&&(s=r+1),e.splice(s,0,t)},He=(t,e,o,i,r)=>{const s=e[r?Ht(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===ke||r&&!Ie(t,n.trigger)||(n.info.lastRun=ke,Re(n.info,o,i))}};function Be(t,e,o,i,r){let s=Ge(t,e,o,i,r);if(s===Ae)return!1;let n=r.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Ve(t,e,o,i,r,s,n){o.bindings=o.bindings||[];let a={kind:i,target:r,parts:s,literal:n,isCompound:1!==s.length};if(o.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Zt(r)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let o=0;o<a.parts.length;o++){let i=a.parts[o];i.compoundIndex=o,je(t,e,a,i,l)}}function je(t,e,o,i,r){if(!i.literal)if("attribute"===o.kind&&"-"===o.target[0])console.warn("Cannot set attribute "+o.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,n={index:r,binding:o,part:i,evaluator:t};for(let o=0;o<s.length;o++){let i=s[o];"string"==typeof i&&(i=eo(i),i.wildcard=!0),t._addTemplatePropertyEffect(e,i.rootProperty,{fn:Ue,info:n,trigger:i})}}}function Ue(t,e,o,i,r,s,n){let a=n[r.index],l=r.binding,d=r.part;if(s&&d.source&&e.length>d.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let i=o[e];e=jt(d.source,l.target,e),a._setPendingPropertyOrPath(e,i,!1,!0)&&t._enqueueClient(a)}else{let n=r.evaluator._evaluateBinding(t,d,e,o,i,s);n!==Ae&&function(t,e,o,i,r){r=function(t,e,o,i){if(o.isCompound){let r=t.__dataCompoundStorage[o.target];r[i.compoundIndex]=e,e=r.join("")}"attribute"!==o.kind&&("textContent"!==o.target&&("value"!==o.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,r,o,i),ut&&(r=ut(r,o.target,o.kind,e));if("attribute"==o.kind)t._valueToNodeAttribute(e,r,o.target);else{let i=o.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[i]?e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||e._setPendingProperty(i,r)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,i,r)}}(t,a,l,d,n)}}function Ye(t,e){if(e.isCompound){let o=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,r=new Array(i.length);for(let t=0;t<i.length;t++)r[t]=i[t].literal;let s=e.target;o[s]=r,e.literal&&"property"==e.kind&&("className"===s&&(t=Ft(t)),t[s]=e.literal)}}function qe(t,e,o){if(o.listenerEvent){let i=o.parts[0];t.addEventListener(o.listenerEvent,(function(t){!function(t,e,o,i,r){let s,n=t.detail,a=n&&n.path;a?(i=jt(o,i,a),s=n&&n.value):s=t.currentTarget[o],s=r?!s:s,e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||!e._setPendingPropertyOrPath(i,s,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,o.target,i.source,i.negate)}))}}function We(t,e,o,i,r,s){s=e.static||s&&("object"!=typeof s||s[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let r,s=0;s<e.args.length&&(r=e.args[s]);s++)r.literal||t._addPropertyEffect(r.rootProperty,o,{fn:i,info:n,trigger:r});return s&&t._addPropertyEffect(e.methodName,o,{fn:i,info:n}),n}function Ge(t,e,o,i,r){let s=t._methodHost||t,n=s[r.methodName];if(n){let i=t._marshalArgs(r.args,e,o);return i===Ae?Ae:n.apply(s,i)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Ke=[],Xe="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Je="(?:("+Xe+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ze=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+Xe+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+Je+"(?:,\\s*"+Je+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Qe(t){let e="";for(let o=0;o<t.length;o++){e+=t[o].literal||""}return e}function to(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ke};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let o=eo(t);return o.literal||(e.static=!1),o}),this),e}(e[2].replace(/\\,/g,",").split(","),t)}return t}return null}function eo(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),o={name:e,value:"",literal:!1},i=e[0];switch("-"===i&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':o.value=e.slice(1,-1),o.literal=!0;break;case"#":o.value=Number(e),o.literal=!0}return o.literal||(o.rootProperty=Ht(e),o.structured=Rt(e),o.structured&&(o.wildcard=".*"==e.slice(-2),o.wildcard&&(o.name=e.slice(0,-2)))),o}function oo(t,e,o){let i=qt(t,o);return void 0===i&&(i=e[o]),i}function io(t,e,o,i){const r={indexSplices:i};bt&&!t._overrideLegacyUndefined&&(e.splices=r),t.notifyPath(o+".splices",r),t.notifyPath(o+".length",e.length),bt&&!t._overrideLegacyUndefined&&(r.indexSplices=[])}function ro(t,e,o,i,r,s){io(t,e,o,[{index:i,addedCount:r,removed:s,object:e,type:"splice"}])}const so=At((t=>{const e=Ce(ue(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return Ee}_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(no.length){let t=no[no.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Ee.READ_ONLY];for(let o in t)e&&e[o]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=t[o])}_addPropertyEffect(t,e,o){this._createPropertyAccessor(t,e==Ee.READ_ONLY);let i=De(this,e,!0)[t];i||(i=this[e][t]=[]),i.push(o)}_removePropertyEffect(t,e,o){let i=De(this,e,!0)[t],r=i.indexOf(o);r>=0&&i.splice(r,1)}_hasPropertyEffect(t,e){let o=this[e];return Boolean(o&&o[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Ee.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Ee.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Ee.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Ee.COMPUTE)}_setPendingPropertyOrPath(t,e,o,i){if(i||Ht(Array.isArray(t)?t[0]:t)!==t){if(!i){let o=qt(this,t);if(!(t=Wt(this,t,e))||!super._shouldPropertyChange(t,e,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,o))return function(t,e,o){let i=t.__dataLinkedPaths;if(i){let r;for(let s in i){let n=i[s];Vt(s,e)?(r=jt(s,n,e),t._setPendingPropertyOrPath(r,o,!0,!0)):Vt(n,e)&&(r=jt(n,s,e),t._setPendingPropertyOrPath(r,o,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,o);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,o){o===t[e]&&"object"!=typeof o||("className"===e&&(t=Ft(t)),t[e]=o)}_setPendingProperty(t,e,o){let i=this.__dataHasPaths&&Rt(t),r=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,r[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),i?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(i||this[Ee.NOTIFY]&&this[Ee.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=o),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let o=t[e];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let o in t)!e&&this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][o]||this._setPendingPropertyOrPath(o,t[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,o){let i,r=this.__dataHasPaths;this.__dataHasPaths=!1,Fe(this,e,o,r),i=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,o,r),this._flushClients(),Te(this,this[Ee.REFLECT],e,o,r),Te(this,this[Ee.OBSERVE],e,o,r),i&&function(t,e,o,i,r){let s,n,a=t[Ee.NOTIFY],l=ke++;for(let n in e)e[n]&&(a&&Oe(t,a,l,n,o,i,r)||r&&Ne(t,n,o))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,i,e,o,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,o){this[Ee.PROPAGATE]&&Te(this,this[Ee.PROPAGATE],t,e,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,o)}_runEffectsForTemplate(t,e,o,i){const r=(e,i)=>{Te(this,t.propertyEffects,e,o,i,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,e,o,i)};t.runEffects?t.runEffects(r,e,i):r(e,i)}linkPaths(t,e){t=Ut(t),e=Ut(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ut(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let o={path:""};io(this,qt(this,t,o),o.path,e)}get(t,e){return qt(e||this,t)}set(t,e,o){o?Wt(o,t,e):this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let o={path:""},i=qt(this,t,o),r=i.length,s=i.push(...e);return e.length&&ro(this,i,o.path,r,e.length,[]),s}pop(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),r=o.pop();return i&&ro(this,o,e.path,o.length,0,[r]),r}splice(t,e,o,...i){let r,s={path:""},n=qt(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),r=2===arguments.length?n.splice(e):n.splice(e,o,...i),(i.length||r.length)&&ro(this,n,s.path,e,i.length,r),r}shift(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),r=o.shift();return i&&ro(this,o,e.path,0,0,[r]),r}unshift(t,...e){let o={path:""},i=qt(this,t,o),r=i.unshift(...e);return e.length&&ro(this,i,o.path,0,e.length,[]),r}notifyPath(t,e){let o;if(1==arguments.length){let i={path:""};e=qt(this,t,i),o=i.path}else o=Array.isArray(t)?Ut(t):t;this._setPendingPropertyOrPath(o,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var o;this._addPropertyEffect(t,Ee.READ_ONLY),e&&(this["_set"+(o=t,o[0].toUpperCase()+o.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,o){let i={property:t,method:e,dynamicFn:Boolean(o)};this._addPropertyEffect(t,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:t}}),o&&this._addPropertyEffect(e,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:e}})}_createMethodObserver(t,e){let o=to(t);if(!o)throw new Error("Malformed observer expression '"+t+"'");We(this,o,Ee.OBSERVE,Ge,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Ee.NOTIFY,{fn:Me,info:{eventName:Zt(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ee.REFLECT,{fn:Le,info:{attrName:e}})}_createComputedProperty(t,e,o){let i=to(e);if(!i)throw new Error("Malformed computed expression '"+e+"'");const r=We(this,i,Ee.COMPUTE,Be,t,o);De(this,Pe)[t]=r}_marshalArgs(t,e,o){const i=this.__data,r=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:a,wildcard:l,value:d,literal:c}=t[s];if(!c)if(l){const t=Vt(n,e),r=oo(i,o,t?e:n);d={path:t?e:n,value:r,base:t?qt(i,n):r}}else d=a?oo(i,o,n):i[n];if(bt&&!this._overrideLegacyUndefined&&void 0===d&&t.length>1)return Ae;r[s]=d}return r}static addPropertyEffect(t,e,o){this.prototype._addPropertyEffect(t,e,o)}static createPropertyObserver(t,e,o){this.prototype._createPropertyObserver(t,e,o)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,o){this.prototype._createComputedProperty(t,e,o)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let o=this.constructor._parseTemplate(t),i=this.__preBoundTemplateInfo==o;if(!i)for(let t in o.propertyEffects)this._createPropertyAccessor(t);if(e)if(o=Object.create(o),o.wasPreBound=i,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,i=e.lastChild;o.parent=e,e.lastChild=o,o.previousSibling=i,i?i.nextSibling=o:e.firstChild=o}else this.__templateInfo=o;else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(t,e,o){(t.hostProps=t.hostProps||{})[e]=!0;let i=t.propertyEffects=t.propertyEffects||{};(i[e]=i[e]||[]).push(o)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),no.push(this);let o=super._stampTemplate(t,e);if(no.pop(),e.nodeList=o.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=o.firstChild;e;e=e.nextSibling)t.push(e)}return o.templateInfo=e,function(t,e){let{nodeList:o,nodeInfoList:i}=e;if(i.length)for(let e=0;e<i.length;e++){let r=i[e],s=o[e],n=r.bindings;if(n)for(let e=0;e<n.length;e++){let o=n[e];Ye(s,o),qe(s,t,o)}s.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:o,nextSibling:i,parent:r}=e;o?o.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=o:r&&(r.lastChild=o),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];Ft(Ft(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,o,i){let r=e._parseTemplateNode.call(this,t,o,i);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,o);e&&(t.textContent=Qe(e)||" ",Ve(this,o,i,"text","textContent",e),r=!0)}return r}static _parseTemplateNodeAttribute(t,o,i,r,s){let n=this._parseBindings(s,o);if(n){let e=r,s="property";Se.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");let a=Qe(n);return a&&"attribute"==s&&("class"==r&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(r)),t.setAttribute(r,a)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(r,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(r=Jt(r)),Ve(this,o,i,s,r,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,o,i,r,s)}static _parseTemplateNestedTemplate(t,o,i){let r=e._parseTemplateNestedTemplate.call(this,t,o,i);const s=t.parentNode,n=i.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;vt&&(a||l)&&(s.removeChild(t),(i=i.parentInfo).templateInfo=n,i.noted=!0,r=!1);let d=n.hostProps;if(wt&&a)d&&(o.hostProps=Object.assign(o.hostProps||{},d),vt||(i.parentInfo.noted=!0));else{let t="{";for(let e in d){Ve(this,o,i,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return r}static _parseBindings(t,e){let o,i=[],r=0;for(;null!==(o=Ze.exec(t));){o.index>r&&i.push({literal:t.slice(r,o.index)});let s=o[1][0],n=Boolean(o[2]),a=o[3].trim(),l=!1,d="",c=-1;"{"==s&&(c=a.indexOf("::"))>0&&(d=a.substring(c+2),a=a.substring(0,c),l=!0);let h=to(a),u=[];if(h){let{args:t,methodName:o}=h;for(let e=0;e<t.length;e++){let o=t[e];o.literal||u.push(o)}let i=e.dynamicFns;(i&&i[o]||h.static)&&(u.push(o),h.dynamicFn=!0)}else u.push(a);i.push({source:a,mode:s,negate:n,customEvent:l,signature:h,dependencies:u,event:d}),r=Ze.lastIndex}if(r&&r<t.length){let e=t.substring(r);e&&i.push({literal:e})}return i.length?i:null}static _evaluateBinding(t,e,o,i,r,s){let n;return n=e.signature?Ge(t,o,i,0,e.signature):o!=e.source?qt(t,e.source):s&&Rt(o)?qt(t,o):t.__data[o],e.negate&&(n=!n),n}}})),no=[];const ao=At((t=>{const e=le(t);function o(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const o=t.properties;o&&(e=
|
|
1009
|
+
*/let ke=0;const Ae=[],Ee={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Pe="__computeInfo",Se=/[A-Z]/;function De(t,e,o){let i=t[e];if(i){if(!t.hasOwnProperty(e)&&(i=t[e]=Object.create(t[e]),o))for(let t in i){let e=i[t],o=i[t]=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]}}else i=t[e]={};return i}function Te(t,e,o,i,s,r){if(e){let n=!1;const a=ke++;for(let l in o){let d=e[s?Ht(l):l];if(d)for(let e,h=0,c=d.length;h<c&&(e=d[h]);h++)e.info&&e.info.lastRun===a||s&&!Ie(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,o,i,e.info,s,r),n=!0)}return n}return!1}function Oe(t,e,o,i,s,r,n,a){let l=!1,d=e[n?Ht(i):i];if(d)for(let e,h=0,c=d.length;h<c&&(e=d[h]);h++)e.info&&e.info.lastRun===o||n&&!Ie(i,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,i,s,r,e.info,n,a),l=!0);return l}function Ie(t,e){if(e){let o=e.name;return o==t||!(!e.structured||!Bt(o,t))||!(!e.wildcard||!Vt(o,t))}return!0}function $e(t,e,o,i,s){let r="string"==typeof s.method?t[s.method]:s.method,n=s.property;r?r.call(t,t.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Ne(t,e,o){let i=Ht(e);if(i!==e){return Me(t,Zt(i)+"-changed",o[e],e),!0}return!1}function Me(t,e,o,i){let s={value:o,queueProperty:!0};i&&(s.path=i),Ft(t).dispatchEvent(new CustomEvent(e,{detail:s}))}function ze(t,e,o,i,s,r){let n=(r?Ht(e):e)!=e?e:null,a=n?qt(t,n):t.__data[e];n&&void 0===a&&(a=o[e]),Me(t,s.eventName,a,n)}function Le(t,e,o,i,s){let r=t.__data[e];ut&&(r=ut(r,s.attrName,"attribute",t)),t._propertyToAttribute(e,s.attrName,r)}function Fe(t,e,o,i){let s=t[Ee.COMPUTE];if(s)if(yt){ke++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const o=t[Ee.COMPUTE];let i,{counts:s,ready:r,total:n}=function(t){const e=t[Pe],o={},i=t[Ee.COMPUTE],s=[];let r=0;for(let t in e){const i=e[t];r+=o[t]=i.args.filter((t=>!t.literal)).length+(i.dynamicFn?1:0)}for(let t in i)e[t]||s.push(t);return{counts:o,ready:s,total:r}}(t);for(;i=r.shift();){e.set(i,e.size);const t=o[i];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--s[e]&&r.push(e)}))}if(0!==n){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)He(t,s,n,r,i);let a;for(;a=n.shift();)Be(t,"",e,o,a)&&He(a.methodInfo,s,n,r,i);Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;Te(t,s,r,o,i);)Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}const Re=(t,e,o)=>{let i=0,s=e.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=o.get(e[n].methodInfo)-o.get(t.methodInfo);if(a<0)i=n+1;else{if(!(a>0)){r=n;break}s=n-1}}r<0&&(r=s+1),e.splice(r,0,t)},He=(t,e,o,i,s)=>{const r=e[s?Ht(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun===ke||s&&!Ie(t,n.trigger)||(n.info.lastRun=ke,Re(n.info,o,i))}};function Be(t,e,o,i,s){let r=Ge(t,e,o,i,s);if(r===Ae)return!1;let n=s.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function Ve(t,e,o,i,s,r,n){o.bindings=o.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:1!==r.length};if(o.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Zt(s)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let o=0;o<a.parts.length;o++){let i=a.parts[o];i.compoundIndex=o,je(t,e,a,i,l)}}function je(t,e,o,i,s){if(!i.literal)if("attribute"===o.kind&&"-"===o.target[0])console.warn("Cannot set attribute "+o.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:o,part:i,evaluator:t};for(let o=0;o<r.length;o++){let i=r[o];"string"==typeof i&&(i=eo(i),i.wildcard=!0),t._addTemplatePropertyEffect(e,i.rootProperty,{fn:Ue,info:n,trigger:i})}}}function Ue(t,e,o,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&e.length>d.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let i=o[e];e=jt(d.source,l.target,e),a._setPendingPropertyOrPath(e,i,!1,!0)&&t._enqueueClient(a)}else{let n=s.evaluator._evaluateBinding(t,d,e,o,i,r);n!==Ae&&function(t,e,o,i,s){s=function(t,e,o,i){if(o.isCompound){let s=t.__dataCompoundStorage[o.target];s[i.compoundIndex]=e,e=s.join("")}"attribute"!==o.kind&&("textContent"!==o.target&&("value"!==o.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,s,o,i),ut&&(s=ut(s,o.target,o.kind,e));if("attribute"==o.kind)t._valueToNodeAttribute(e,s,o.target);else{let i=o.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[i]?e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||e._setPendingProperty(i,s)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,i,s)}}(t,a,l,d,n)}}function Ye(t,e){if(e.isCompound){let o=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),i=e.parts,s=new Array(i.length);for(let t=0;t<i.length;t++)s[t]=i[t].literal;let r=e.target;o[r]=s,e.literal&&"property"==e.kind&&("className"===r&&(t=Ft(t)),t[r]=e.literal)}}function qe(t,e,o){if(o.listenerEvent){let i=o.parts[0];t.addEventListener(o.listenerEvent,(function(t){!function(t,e,o,i,s){let r,n=t.detail,a=n&&n.path;a?(i=jt(o,i,a),r=n&&n.value):r=t.currentTarget[o],r=s?!r:r,e[Ee.READ_ONLY]&&e[Ee.READ_ONLY][i]||!e._setPendingPropertyOrPath(i,r,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,o.target,i.source,i.negate)}))}}function We(t,e,o,i,s,r){r=e.static||r&&("object"!=typeof r||r[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:s,dynamicFn:r};for(let s,r=0;r<e.args.length&&(s=e.args[r]);r++)s.literal||t._addPropertyEffect(s.rootProperty,o,{fn:i,info:n,trigger:s});return r&&t._addPropertyEffect(e.methodName,o,{fn:i,info:n}),n}function Ge(t,e,o,i,s){let r=t._methodHost||t,n=r[s.methodName];if(n){let i=t._marshalArgs(s.args,e,o);return i===Ae?Ae:n.apply(r,i)}s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Ke=[],Xe="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Je="(?:("+Xe+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ze=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+Xe+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+Je+"(?:,\\s*"+Je+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Qe(t){let e="";for(let o=0;o<t.length;o++){e+=t[o].literal||""}return e}function to(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ke};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let o=eo(t);return o.literal||(e.static=!1),o}),this),e}(e[2].replace(/\\,/g,",").split(","),t)}return t}return null}function eo(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),o={name:e,value:"",literal:!1},i=e[0];switch("-"===i&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':o.value=e.slice(1,-1),o.literal=!0;break;case"#":o.value=Number(e),o.literal=!0}return o.literal||(o.rootProperty=Ht(e),o.structured=Rt(e),o.structured&&(o.wildcard=".*"==e.slice(-2),o.wildcard&&(o.name=e.slice(0,-2)))),o}function oo(t,e,o){let i=qt(t,o);return void 0===i&&(i=e[o]),i}function io(t,e,o,i){const s={indexSplices:i};bt&&!t._overrideLegacyUndefined&&(e.splices=s),t.notifyPath(o+".splices",s),t.notifyPath(o+".length",e.length),bt&&!t._overrideLegacyUndefined&&(s.indexSplices=[])}function so(t,e,o,i,s,r){io(t,e,o,[{index:i,addedCount:s,removed:r,object:e,type:"splice"}])}const ro=At((t=>{const e=Ce(ue(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return Ee}_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(no.length){let t=no[no.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Ee.READ_ONLY];for(let o in t)e&&e[o]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=t[o])}_addPropertyEffect(t,e,o){this._createPropertyAccessor(t,e==Ee.READ_ONLY);let i=De(this,e,!0)[t];i||(i=this[e][t]=[]),i.push(o)}_removePropertyEffect(t,e,o){let i=De(this,e,!0)[t],s=i.indexOf(o);s>=0&&i.splice(s,1)}_hasPropertyEffect(t,e){let o=this[e];return Boolean(o&&o[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Ee.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Ee.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Ee.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Ee.COMPUTE)}_setPendingPropertyOrPath(t,e,o,i){if(i||Ht(Array.isArray(t)?t[0]:t)!==t){if(!i){let o=qt(this,t);if(!(t=Wt(this,t,e))||!super._shouldPropertyChange(t,e,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,o))return function(t,e,o){let i=t.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];Vt(r,e)?(s=jt(r,n,e),t._setPendingPropertyOrPath(s,o,!0,!0)):Vt(n,e)&&(s=jt(n,r,e),t._setPendingPropertyOrPath(s,o,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,o);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,o){o===t[e]&&"object"!=typeof o||("className"===e&&(t=Ft(t)),t[e]=o)}_setPendingProperty(t,e,o){let i=this.__dataHasPaths&&Rt(t),s=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,s[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),i?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(i||this[Ee.NOTIFY]&&this[Ee.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=o),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let o=t[e];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let o in t)!e&&this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][o]||this._setPendingPropertyOrPath(o,t[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,o){let i,s=this.__dataHasPaths;this.__dataHasPaths=!1,Fe(this,e,o,s),i=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,o,s),this._flushClients(),Te(this,this[Ee.REFLECT],e,o,s),Te(this,this[Ee.OBSERVE],e,o,s),i&&function(t,e,o,i,s){let r,n,a=t[Ee.NOTIFY],l=ke++;for(let n in e)e[n]&&(a&&Oe(t,a,l,n,o,i,s)||s&&Ne(t,n,o))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,i,e,o,s),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,o){this[Ee.PROPAGATE]&&Te(this,this[Ee.PROPAGATE],t,e,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,o)}_runEffectsForTemplate(t,e,o,i){const s=(e,i)=>{Te(this,t.propertyEffects,e,o,i,t.nodeList);for(let s=t.firstChild;s;s=s.nextSibling)this._runEffectsForTemplate(s,e,o,i)};t.runEffects?t.runEffects(s,e,i):s(e,i)}linkPaths(t,e){t=Ut(t),e=Ut(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ut(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let o={path:""};io(this,qt(this,t,o),o.path,e)}get(t,e){return qt(e||this,t)}set(t,e,o){o?Wt(o,t,e):this[Ee.READ_ONLY]&&this[Ee.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let o={path:""},i=qt(this,t,o),s=i.length,r=i.push(...e);return e.length&&so(this,i,o.path,s,e.length,[]),r}pop(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),s=o.pop();return i&&so(this,o,e.path,o.length,0,[s]),s}splice(t,e,o,...i){let s,r={path:""},n=qt(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),s=2===arguments.length?n.splice(e):n.splice(e,o,...i),(i.length||s.length)&&so(this,n,r.path,e,i.length,s),s}shift(t){let e={path:""},o=qt(this,t,e),i=Boolean(o.length),s=o.shift();return i&&so(this,o,e.path,0,0,[s]),s}unshift(t,...e){let o={path:""},i=qt(this,t,o),s=i.unshift(...e);return e.length&&so(this,i,o.path,0,e.length,[]),s}notifyPath(t,e){let o;if(1==arguments.length){let i={path:""};e=qt(this,t,i),o=i.path}else o=Array.isArray(t)?Ut(t):t;this._setPendingPropertyOrPath(o,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var o;this._addPropertyEffect(t,Ee.READ_ONLY),e&&(this["_set"+(o=t,o[0].toUpperCase()+o.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,o){let i={property:t,method:e,dynamicFn:Boolean(o)};this._addPropertyEffect(t,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:t}}),o&&this._addPropertyEffect(e,Ee.OBSERVE,{fn:$e,info:i,trigger:{name:e}})}_createMethodObserver(t,e){let o=to(t);if(!o)throw new Error("Malformed observer expression '"+t+"'");We(this,o,Ee.OBSERVE,Ge,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Ee.NOTIFY,{fn:ze,info:{eventName:Zt(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ee.REFLECT,{fn:Le,info:{attrName:e}})}_createComputedProperty(t,e,o){let i=to(e);if(!i)throw new Error("Malformed computed expression '"+e+"'");const s=We(this,i,Ee.COMPUTE,Be,t,o);De(this,Pe)[t]=s}_marshalArgs(t,e,o){const i=this.__data,s=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:d,literal:h}=t[r];if(!h)if(l){const t=Vt(n,e),s=oo(i,o,t?e:n);d={path:t?e:n,value:s,base:t?qt(i,n):s}}else d=a?oo(i,o,n):i[n];if(bt&&!this._overrideLegacyUndefined&&void 0===d&&t.length>1)return Ae;s[r]=d}return s}static addPropertyEffect(t,e,o){this.prototype._addPropertyEffect(t,e,o)}static createPropertyObserver(t,e,o){this.prototype._createPropertyObserver(t,e,o)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,o){this.prototype._createComputedProperty(t,e,o)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let o=this.constructor._parseTemplate(t),i=this.__preBoundTemplateInfo==o;if(!i)for(let t in o.propertyEffects)this._createPropertyAccessor(t);if(e)if(o=Object.create(o),o.wasPreBound=i,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,i=e.lastChild;o.parent=e,e.lastChild=o,o.previousSibling=i,i?i.nextSibling=o:e.firstChild=o}else this.__templateInfo=o;else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(t,e,o){(t.hostProps=t.hostProps||{})[e]=!0;let i=t.propertyEffects=t.propertyEffects||{};(i[e]=i[e]||[]).push(o)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),no.push(this);let o=super._stampTemplate(t,e);if(no.pop(),e.nodeList=o.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=o.firstChild;e;e=e.nextSibling)t.push(e)}return o.templateInfo=e,function(t,e){let{nodeList:o,nodeInfoList:i}=e;if(i.length)for(let e=0;e<i.length;e++){let s=i[e],r=o[e],n=s.bindings;if(n)for(let e=0;e<n.length;e++){let o=n[e];Ye(r,o),qe(r,t,o)}r.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:o,nextSibling:i,parent:s}=e;o?o.nextSibling=i:s&&(s.firstChild=i),i?i.previousSibling=o:s&&(s.lastChild=o),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];Ft(Ft(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,o,i){let s=e._parseTemplateNode.call(this,t,o,i);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,o);e&&(t.textContent=Qe(e)||" ",Ve(this,o,i,"text","textContent",e),s=!0)}return s}static _parseTemplateNodeAttribute(t,o,i,s,r){let n=this._parseBindings(r,o);if(n){let e=s,r="property";Se.test(s)?r="attribute":"$"==s[s.length-1]&&(s=s.slice(0,-1),r="attribute");let a=Qe(n);return a&&"attribute"==r&&("class"==s&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(s)),t.setAttribute(s,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(s,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(s=Jt(s)),Ve(this,o,i,r,s,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,o,i,s,r)}static _parseTemplateNestedTemplate(t,o,i){let s=e._parseTemplateNestedTemplate.call(this,t,o,i);const r=t.parentNode,n=i.templateInfo,a="dom-if"===r.localName,l="dom-repeat"===r.localName;vt&&(a||l)&&(r.removeChild(t),(i=i.parentInfo).templateInfo=n,i.noted=!0,s=!1);let d=n.hostProps;if(wt&&a)d&&(o.hostProps=Object.assign(o.hostProps||{},d),vt||(i.parentInfo.noted=!0));else{let t="{";for(let e in d){Ve(this,o,i,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return s}static _parseBindings(t,e){let o,i=[],s=0;for(;null!==(o=Ze.exec(t));){o.index>s&&i.push({literal:t.slice(s,o.index)});let r=o[1][0],n=Boolean(o[2]),a=o[3].trim(),l=!1,d="",h=-1;"{"==r&&(h=a.indexOf("::"))>0&&(d=a.substring(h+2),a=a.substring(0,h),l=!0);let c=to(a),u=[];if(c){let{args:t,methodName:o}=c;for(let e=0;e<t.length;e++){let o=t[e];o.literal||u.push(o)}let i=e.dynamicFns;(i&&i[o]||c.static)&&(u.push(o),c.dynamicFn=!0)}else u.push(a);i.push({source:a,mode:r,negate:n,customEvent:l,signature:c,dependencies:u,event:d}),s=Ze.lastIndex}if(s&&s<t.length){let e=t.substring(s);e&&i.push({literal:e})}return i.length?i:null}static _evaluateBinding(t,e,o,i,s,r){let n;return n=e.signature?Ge(t,o,i,0,e.signature):o!=e.source?qt(t,e.source):r&&Rt(o)?qt(t,o):t.__data[o],e.negate&&(n=!n),n}}})),no=[];const ao=At((t=>{const e=le(t);function o(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof s?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const o=t.properties;o&&(e=
|
|
1010
1010
|
/**
|
|
1011
1011
|
@license
|
|
1012
1012
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1016,7 +1016,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
1016
1016
|
Code distributed by Google as part of the polymer project is also
|
|
1017
1017
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1018
1018
|
*/
|
|
1019
|
-
function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{type:i}:i}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class
|
|
1019
|
+
function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{type:i}:i}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=o(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=i(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=o(this);this.__properties=Object.assign({},t&&t._properties,i(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s})),lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,ho=At((t=>{const e=ao(ro(t));function o(t,e,o,i){o.computed&&(o.readOnly=!0),o.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,o.computed,i)),o.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!o.computed):!1===o.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),o.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===o.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),o.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===o.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),o.observer&&t._createPropertyObserver(e,o.observer,i[o.observer]),t._addPropertyToAttributeMap(e)}function i(t,e,o,i){if(!lo){const s=e.content.querySelectorAll("style"),r=zt(e),n=function(t){let e=It(t);return e?Lt(e):[]}(o),a=e.content.firstElementChild;for(let o=0;o<n.length;o++){let s=n[o];s.textContent=t._processStyleText(s.textContent,i),e.content.insertBefore(s,a)}let l=0;for(let e=0;e<r.length;e++){let o=r[e],n=s[l];n!==o?(o=o.cloneNode(!0),n.parentNode.insertBefore(o,n)):l++,o.textContent=t._processStyleText(o.textContent,i)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,o),Ct&&lo&&ht){const o=e.content.querySelectorAll("style");if(o){let e="";Array.from(o).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((o=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",o))||(o.__ownObservers=o.hasOwnProperty(JSCompiler_renameProperty("observers",o))?o.observers:null),o.__ownObservers);var o;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):ft||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)o(this.prototype,e,t[e],t)}static createObservers(t,e){const o=this.prototype;for(let i=0;i<t.length;i++)o._createMethodObserver(t[i],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!pt||mt)&&(e=Tt.import(t,"template"),pt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=lt(t.url);else{const t=Tt.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ct,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let o in e){let i=e[o];"value"in i&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[o]=i)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let o=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof o.value?o.value.call(this):o.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return at(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const o=this.importPath;i(this,e,t,o?nt(o):""),this.prototype._bindTemplate(e)}}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(t){const e=Ft(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),gt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.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(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=nt(this.importPath)),nt(t,e)}static _parseTemplateContent(t,o,i){return o.dynamicFns=o.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,o,i)}static _addTemplatePropertyEffect(t,o,i){return!_t||o in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,o,i)}}})),co=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});
|
|
1020
1020
|
/**
|
|
1021
1021
|
* @fileoverview
|
|
1022
1022
|
* @suppress {checkPrototypalTypes}
|
|
@@ -1027,7 +1027,7 @@ function(t){const e={};for(let o in t){const i=t[o];e[o]="function"==typeof i?{t
|
|
|
1027
1027
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1028
1028
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1029
1029
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1030
|
-
*/class uo{constructor(t,e){fo(t,e);const o=e.reduce(((e,o,i)=>e+po(o)+t[i+1]),t[0]);this.value=o.toString()}toString(){return this.value}}function po(t){if(t instanceof uo)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const mo=function(t,...e){fo(t,e);const o=document.createElement("template");let i=e.reduce(((e,o,i)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof uo)return po(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(o)+t[i+1]),t[0]);return
|
|
1030
|
+
*/class uo{constructor(t,e){fo(t,e);const o=e.reduce(((e,o,i)=>e+po(o)+t[i+1]),t[0]);this.value=o.toString()}toString(){return this.value}}function po(t){if(t instanceof uo)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const mo=function(t,...e){fo(t,e);const o=document.createElement("template");let i=e.reduce(((e,o,i)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof uo)return po(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(o)+t[i+1]),t[0]);return co&&(i=co.createHTML(i)),o.innerHTML=i,o},fo=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},_o=ho(HTMLElement);
|
|
1031
1031
|
/**
|
|
1032
1032
|
* @license
|
|
1033
1033
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1048,7 +1048,7 @@ class go{static detectScrollType(){const t=document.createElement("div");t.textC
|
|
|
1048
1048
|
*
|
|
1049
1049
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
1050
1050
|
* license.
|
|
1051
|
-
*/const bo=[];let yo;function vo(t,e,o=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=o&&t.removeAttribute("dir")}function wo(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=wo();bo.forEach((e=>{vo(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const xo=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}static finalize(){super.finalize(),yo||(yo=go.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),vo(this,wo(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),"dir"!==t)return;const i=wo(),
|
|
1051
|
+
*/const bo=[];let yo;function vo(t,e,o=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=o&&t.removeAttribute("dir")}function wo(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=wo();bo.forEach((e=>{vo(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const xo=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}static finalize(){super.finalize(),yo||(yo=go.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),vo(this,wo(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),"dir"!==t)return;const i=wo(),s=o===i&&-1===bo.indexOf(this),r=!o&&e&&-1===bo.indexOf(this),n=o!==i&&e===i;s||r?(this.__subscribe(),vo(this,i,o)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=bo.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,o){("dir"!==o||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,o)}_attributeToProperty(t,e,o){"dir"!==t||e?super._attributeToProperty(t,e,o):this.dir=""}__subscribe(){bo.includes(this)||bo.push(this)}__unsubscribe(){bo.includes(this)&&bo.splice(bo.indexOf(this),1)}__getNormalizedScrollLeft(t){return go.getNormalizedScrollLeft(yo,this.getAttribute("dir")||"ltr",t)}__setNormalizedScrollLeft(t,e){return go.setNormalizedScrollLeft(yo,this.getAttribute("dir")||"ltr",t,e)}}
|
|
1052
1052
|
/**
|
|
1053
1053
|
* @license
|
|
1054
1054
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1227,7 +1227,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
1227
1227
|
Code distributed by Google as part of the polymer project is also
|
|
1228
1228
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1229
1229
|
*/
|
|
1230
|
-
function Po(t,e,o){return{index:t,removed:e,addedCount:o}}H("",Eo,{moduleId:"lumo-overlay"}),H("vaadin-overlay",Eo,{moduleId:"lumo-vaadin-overlay"});function So(t,e,o,i,r
|
|
1230
|
+
function Po(t,e,o){return{index:t,removed:e,addedCount:o}}H("",Eo,{moduleId:"lumo-overlay"}),H("vaadin-overlay",Eo,{moduleId:"lumo-vaadin-overlay"});function So(t,e,o,i,s,r){let n,a=0,l=0,d=Math.min(o-e,r-s);if(0==e&&0==s&&(a=function(t,e,o){for(let i=0;i<o;i++)if(!Do(t[i],e[i]))return i;return o}(t,i,d)),o==t.length&&r==i.length&&(l=function(t,e,o){let i=t.length,s=e.length,r=0;for(;r<o&&Do(t[--i],e[--s]);)r++;return r}(t,i,d-a)),s+=a,r-=l,(o-=l)-(e+=a)==0&&r-s==0)return[];if(e==o){for(n=Po(e,[],0);s<r;)n.removed.push(i[s++]);return[n]}if(s==r)return[Po(e,[],o-e)];let h=function(t){let e=t.length-1,o=t[0].length-1,i=t[e][o],s=[];for(;e>0||o>0;){if(0==e){s.push(2),o--;continue}if(0==o){s.push(3),e--;continue}let r,n=t[e-1][o-1],a=t[e-1][o],l=t[e][o-1];r=a<l?a<n?a:n:l<n?l:n,r==n?(n==i?s.push(0):(s.push(1),i=n),e--,o--):r==a?(s.push(3),e--,i=a):(s.push(2),o--,i=l)}return s.reverse(),s}(function(t,e,o,i,s,r){let n=r-s+1,a=o-e+1,l=new Array(n);for(let t=0;t<n;t++)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;t++)l[0][t]=t;for(let o=1;o<n;o++)for(let r=1;r<a;r++)if(Do(t[e+r-1],i[s+o-1]))l[o][r]=l[o-1][r-1];else{let t=l[o-1][r]+1,e=l[o][r-1]+1;l[o][r]=t<e?t:e}return l}(t,e,o,i,s,r));n=void 0;let c=[],u=e,p=s;for(let t=0;t<h.length;t++)switch(h[t]){case 0:n&&(c.push(n),n=void 0),u++,p++;break;case 1:n||(n=Po(u,[],0)),n.addedCount++,u++,n.removed.push(i[p]),p++;break;case 2:n||(n=Po(u,[],0)),n.addedCount++,u++;break;case 3:n||(n=Po(u,[],0)),n.removed.push(i[p]),p++}return n&&c.push(n),c}function Do(t,e){return t===e}
|
|
1231
1231
|
/**
|
|
1232
1232
|
@license
|
|
1233
1233
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1236,7 +1236,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1236
1236
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1237
1237
|
Code distributed by Google as part of the polymer project is also
|
|
1238
1238
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1239
|
-
*/function To(t){return"slot"===t.localName}let Oo=class{static getFlattenedNodes(t){const e=Ft(t);if(To(t))return e.assignedNodes({flatten:!0});{const t=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes[o];if(To(i)){const e=i;t.push(...Ft(e).assignedNodes({flatten:!0}))}else t.push(i)}return t}}constructor(t,e){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=t,this.callback=e,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){To(this._target)?this._listenSlots([this._target]):Ft(this._target).children&&(this._listenSlots(Ft(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(t=>{this._processMutations(t)})):(this._nativeChildrenObserver=new MutationObserver((t=>{this._processMutations(t)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){To(this._target)?this._unlistenSlots([this._target]):Ft(this._target).children&&(this._unlistenSlots(Ft(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,ne.run((()=>this.flush())))}_processMutations(t){this._processSlotMutations(t),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){let o=t[e];o.addedNodes&&this._listenSlots(o.addedNodes),o.removedNodes&&this._unlistenSlots(o.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let t={target:this._target,addedNodes:[],removedNodes:[]},e=this.constructor.getFlattenedNodes(this._target),o=(i=e,
|
|
1239
|
+
*/function To(t){return"slot"===t.localName}let Oo=class{static getFlattenedNodes(t){const e=Ft(t);if(To(t))return e.assignedNodes({flatten:!0});{const t=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes[o];if(To(i)){const e=i;t.push(...Ft(e).assignedNodes({flatten:!0}))}else t.push(i)}return t}}constructor(t,e){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=t,this.callback=e,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){To(this._target)?this._listenSlots([this._target]):Ft(this._target).children&&(this._listenSlots(Ft(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(t=>{this._processMutations(t)})):(this._nativeChildrenObserver=new MutationObserver((t=>{this._processMutations(t)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){To(this._target)?this._unlistenSlots([this._target]):Ft(this._target).children&&(this._unlistenSlots(Ft(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,ne.run((()=>this.flush())))}_processMutations(t){this._processSlotMutations(t),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){let o=t[e];o.addedNodes&&this._listenSlots(o.addedNodes),o.removedNodes&&this._unlistenSlots(o.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let t={target:this._target,addedNodes:[],removedNodes:[]},e=this.constructor.getFlattenedNodes(this._target),o=(i=e,s=this._effectiveNodes,So(i,0,i.length,s,0,s.length));var i,s;for(let e,i=0;i<o.length&&(e=o[i]);i++)for(let o,i=0;i<e.removed.length&&(o=e.removed[i]);i++)t.removedNodes.push(o);for(let i,s=0;s<o.length&&(i=o[s]);s++)for(let o=i.index;o<i.index+i.addedCount;o++)t.addedNodes.push(e[o]);this._effectiveNodes=e;let r=!1;return(t.addedNodes.length||t.removedNodes.length)&&(r=!0,this.callback.call(this._target,t)),r}_listenSlots(t){for(let e=0;e<t.length;e++){let o=t[e];To(o)&&o.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){let o=t[e];To(o)&&o.removeEventListener("slotchange",this._boundSchedule)}}},Io=!1,$o=[],No=[];
|
|
1240
1240
|
/**
|
|
1241
1241
|
@license
|
|
1242
1242
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1245,7 +1245,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1245
1245
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1246
1246
|
Code distributed by Google as part of the polymer project is also
|
|
1247
1247
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1248
|
-
*/function
|
|
1248
|
+
*/function Mo(){Io=!0,requestAnimationFrame((function(){Io=!1,function(t){for(;t.length;)zo(t.shift())}($o),setTimeout((function(){!function(t){for(let e=0,o=t.length;e<o;e++)zo(t.shift())}(No)}))}))}function zo(t){const e=t[0],o=t[1],i=t[2];try{o.apply(e,i)}catch(t){setTimeout((()=>{throw t}))}}function Lo(t,e,o){Io||Mo(),No.push([t,e,o])}
|
|
1249
1249
|
/**
|
|
1250
1250
|
@license
|
|
1251
1251
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1254,7 +1254,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1254
1254
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1255
1255
|
Code distributed by Google as part of the polymer project is also
|
|
1256
1256
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1257
|
-
*/function Fo(t,e,o,i,
|
|
1257
|
+
*/function Fo(t,e,o,i,s){let r;s&&(r="object"==typeof o&&null!==o,r&&(i=t.__dataTemp[e]));let n=i!==o&&(i==i||o==o);return r&&n&&(t.__dataTemp[e]=o),n}const Ro=At((t=>class extends t{_shouldPropertyChange(t,e,o){return Fo(this,t,e,o,!0)}})),Ho=At((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,o){return Fo(this,t,e,o,this.mutableData)}}));Ro._mutablePropertyChange=Fo;
|
|
1258
1258
|
/**
|
|
1259
1259
|
@license
|
|
1260
1260
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1264,7 +1264,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
1264
1264
|
Code distributed by Google as part of the polymer project is also
|
|
1265
1265
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1266
1266
|
*/
|
|
1267
|
-
let Bo=null;function Vo(){return Bo}Vo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Vo,writable:!0}});const jo=
|
|
1267
|
+
let Bo=null;function Vo(){return Bo}Vo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Vo,writable:!0}});const jo=ro(Vo),Uo=Ro(jo);const Yo=ro(class{});class qo extends Yo{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(t&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,o(t)}));else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,e,o)}}_showHideChildren(t){!function(t,e){for(let o=0;o<e.length;o++){let i=e[o];if(Boolean(t)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)t?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(t)i.__polymerReplaced__=document.createComment("hidden-slot"),Ft(Ft(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const t=i.__polymerReplaced__;t&&Ft(Ft(t).parentNode).replaceChild(i,t)}else i.style&&(t?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=t,i._showHideChildren&&i._showHideChildren(t)}}(t,this.children)}_setUnmanagedPropertyToNode(t,e,o){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(t,e,o)}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}}qo.prototype.__dataHost,qo.prototype.__templatizeOptions,qo.prototype._methodHost,qo.prototype.__templatizeOwner,qo.prototype.__hostProps;const Wo=Ro(qo);function Go(t){let e=t.__dataHost;return e&&e._methodHost||e}function Ko(t,e,o){let i=o.mutableData?Wo:qo;Qo.mixin&&(i=Qo.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=o,s.prototype._bindTemplate(t),function(t,e,o,i){let s=o.hostProps||{};for(let e in i.instanceProps){delete s[e];let o=i.notifyInstanceProp;o&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Zo(e,o)})}if(i.forwardHostProp&&e.__dataHost)for(let e in s)o.hasHostProps||(o.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,o){t.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}})}(s,t,e,o),s}function Xo(t,e,o,i){let s=o.forwardHostProp;if(s&&e.hasHostProps){const r="template"==t.localName;let n=e.templatizeTemplateClass;if(!n){if(r){let t=o.mutableData?Uo:jo;class i extends t{}n=e.templatizeTemplateClass=i}else{const o=t.constructor;class i extends o{}n=e.templatizeTemplateClass=i}let a=e.hostProps;for(let t in a)n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Jo(t,s)}),n.prototype._createNotifyingProperty("_host_"+t);_t&&i&&function(t,e,o){const i=o.constructor._properties,{propertyEffects:s}=t,{instanceProps:r}=e;for(let t in s)if(!(i[t]||r&&r[t])){const e=s[t];for(let o=0;o<e.length;o++){const{part:i}=e[o].info;if(!i.signature||!i.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,o,i)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),r)!function(t,e){Bo=t,Object.setPrototypeOf(t,e.prototype),new e,Bo=null}(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const o=e.hostProps;for(let e in o)if(e="_host_"+e,e in t){const o=t[e];delete t[e],t.__data[e]=o}}}}function Jo(t,e){return function(t,o,i){e.call(t.__templatizeOwner,o.substring(6),i[o])}}function Zo(t,e){return function(t,o,i){e.call(t.__templatizeOwner,t,o,i[o])}}function Qo(t,e,o){if(pt&&!Go(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(o=o||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let i=(e?e.constructor:qo)._parseTemplate(t),s=i.templatizeInstanceClass;s||(s=Ko(t,i,o),i.templatizeInstanceClass=s);const r=Go(t);Xo(t,i,o,r);let n=class extends s{};return n.prototype._methodHost=r,n.prototype.__dataHost=t,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=i.hostProps,n}
|
|
1268
1268
|
/**
|
|
1269
1269
|
* @license
|
|
1270
1270
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1275,7 +1275,7 @@ let Bo=null;function Vo(){return Bo}Vo.prototype=Object.create(HTMLTemplateEleme
|
|
|
1275
1275
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
1276
1276
|
* license.
|
|
1277
1277
|
*/
|
|
1278
|
-
const ti=t=>t.test(navigator.userAgent),ei=t=>t.test(navigator.platform);ti(/Android/),ti(/Chrome/)&&/Google Inc/.test(navigator.vendor);const oi=ti(/Firefox/),ii=ei(/^iPad/)||ei(/^Mac/)&&navigator.maxTouchPoints>1,
|
|
1278
|
+
const ti=t=>t.test(navigator.userAgent),ei=t=>t.test(navigator.platform);ti(/Android/),ti(/Chrome/)&&/Google Inc/.test(navigator.vendor);const oi=ti(/Firefox/),ii=ei(/^iPad/)||ei(/^Mac/)&&navigator.maxTouchPoints>1,si=ei(/^iPhone/)||ii;ti(/^((?!chrome|android).)*safari/i);const ri=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})(),ni=At((t=>class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
|
|
1279
1279
|
/**
|
|
1280
1280
|
* @license
|
|
1281
1281
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1296,7 +1296,7 @@ const ti=t=>t.test(navigator.userAgent),ei=t=>t.test(navigator.platform);ti(/And
|
|
|
1296
1296
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
1297
1297
|
* license.
|
|
1298
1298
|
*/
|
|
1299
|
-
let ai=!1;function li(t,e){const o=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===o||0===i?i>o:o>i}function di(t){const e=t.length;if(e<2)return t;const o=Math.ceil(e/2);return function(t,e){const o=[];for(;t.length>0&&e.length>0;)li(t[0],e[0])?o.push(e.shift()):o.push(t.shift());return o.concat(t,e)}(di(t.slice(0,o)),di(t.slice(o)))}function
|
|
1299
|
+
let ai=!1;function li(t,e){const o=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===o||0===i?i>o:o>i}function di(t){const e=t.length;if(e<2)return t;const o=Math.ceil(e/2);return function(t,e){const o=[];for(;t.length>0&&e.length>0;)li(t[0],e[0])?o.push(e.shift()):o.push(t.shift());return o.concat(t,e)}(di(t.slice(0,o)),di(t.slice(o)))}function hi(t,e){if(t.nodeType!==Node.ELEMENT_NODE||function(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const o=window.getComputedStyle(t);return"hidden"===o.visibility||"none"===o.display}(t))return!1;const o=t,i=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(o);let s=i>0;i>=0&&e.push(o);let r=[];return r="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...r].forEach((t=>{s=hi(t,e)||s})),s}function ci(t){return t.getRootNode().activeElement===t}window.addEventListener("keydown",(()=>{ai=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{ai=!1}),{capture:!0});
|
|
1300
1300
|
/**
|
|
1301
1301
|
* @license
|
|
1302
1302
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1307,7 +1307,7 @@ let ai=!1;function li(t,e){const o=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,
|
|
|
1307
1307
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
1308
1308
|
* license.
|
|
1309
1309
|
*/
|
|
1310
|
-
const ui=[];class pi{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ui.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ui.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(ui).pop()&&"Tab"===t.key){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,i=this.__focusedElementIndex,
|
|
1310
|
+
const ui=[];class pi{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ui.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ui.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(ui).pop()&&"Tab"===t.key){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,i=this.__focusedElementIndex,s=e[(e.length+i+o)%e.length];s.focus(),"input"===s.localName&&s.select()}get __focusableElements(){return function(t){const e=[];return hi(t,e)?di(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(ci).pop())}}
|
|
1311
1311
|
/**
|
|
1312
1312
|
* @license
|
|
1313
1313
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1390,7 +1390,7 @@ const ui=[];class pi{constructor(t){this.host=t,this.__trapNode=null,this.__onKe
|
|
|
1390
1390
|
<slot></slot>
|
|
1391
1391
|
</div>
|
|
1392
1392
|
</div>
|
|
1393
|
-
`}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, 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),this._observer=new Oo(this,(t=>{this._setTemplateFromNodes(t.addedNodes)})),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),ri&&(this._boundIosResizeListener=()=>this._detectIosNavbar()),this.__focusTrapController=new pi(this)}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()})),this.addController(this.__focusTrapController)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth>t,o=document.documentElement.clientHeight;e&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",o-t+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_setTemplateFromNodes(t){this.template=t.find((t=>t.localName&&"template"===t.localName))||this.template}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}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.content,this.owner,this.model)}_ironOverlayCanceled(t){t.preventDefault()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._last)return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(t,e){this._instance||this._ensureTemplatized(),t?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),Lo(this,(()=>{this.focusTrap&&this.__focusTrapController.trapFocus(this.$.overlay);const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this.focusTrap&&this.__focusTrapController.releaseFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(t,e){const o=`__${t}Handler`,i=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",i),delete this[o])};this[o]=i,this.addEventListener("animationend",i)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_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(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")}_finishClosing(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing")}_animatedClosing(){if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){this._exitModalState();const t=this.restoreFocusNode||this.__restoreFocusNode;if(this.restoreFocusOnClose&&t){const e=this._getActiveElement();(e===document.body||this._deepContains(e))&&setTimeout((()=>t.focus())),this.__restoreFocusNode=null}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)}static get __attachedInstances(){return Array.from(document.body.children).filter((t=>t instanceof mi&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0))}get _last(){return this===mi.__attachedInstances.pop()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),mi.__attachedInstances.forEach((t=>{t!==this&&(t.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")}))}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=mi.__attachedInstances;let e;for(;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach((t=>{t.parentNode===this.content&&this.content.removeChild(t)})),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(t){this._removeOldContent(),t._Templatizer||(t._Templatizer=Qo(t,this,{forwardHostProp(t,e){this._instance&&this._instance.forwardHostProp(t,e)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const e=t._templateRoot||(t._templateRoot=t.getRootNode());if(e!==document){this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let t=Array.from(e.querySelectorAll("style")).reduce(((t,e)=>t+e.textContent),"");if(t=t.replace(/:host/g,":host-nomatch"),t){const e=document.createElement("style");e.textContent=t,this.$.content.shadowRoot.appendChild(e),this._contentNodes.unshift(e)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(t,e,o,i){t!==e?this.template=void 0:o!==i&&(this.renderer=void 0)}_templateOrRendererChanged(t,e,o,i,r){if(t&&e)throw this._removeNewRendererOrTemplate(t,this._oldTemplate,e,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");const s=this._oldOwner!==o||this._oldModel!==i;this._oldModel=i,this._oldOwner=o;const n=this._oldTemplate!==t;this._oldTemplate=t;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&(this.content=this,this.content.innerHTML="",delete this.content._$litPart$),t&&n?this._stampOverlayTemplate(t):e&&(a||l||s)&&r&&this.requestContentUpdate()}_getActiveElement(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}_deepContains(t){if(this.contains(t))return!0;let e=t;const o=t.ownerDocument;for(;e&&e!==o&&e!==this;)e=e.parentNode||e.host;return e===this}bringToFront(){let t="";const e=mi.__attachedInstances.filter((t=>t!==this)).pop();if(e){t=e.__zIndex+1}this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(mi.is,mi);
|
|
1393
|
+
`}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, 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),this._observer=new Oo(this,(t=>{this._setTemplateFromNodes(t.addedNodes)})),this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this),si&&(this._boundIosResizeListener=()=>this._detectIosNavbar()),this.__focusTrapController=new pi(this)}ready(){super.ready(),this._observer.flush(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()})),this.addController(this.__focusTrapController)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth>t,o=document.documentElement.clientHeight;e&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",o-t+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_setTemplateFromNodes(t){this.template=t.find((t=>t.localName&&"template"===t.localName))||this.template}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}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.content,this.owner,this.model)}_ironOverlayCanceled(t){t.preventDefault()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._last)return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(t,e){this._instance||this._ensureTemplatized(),t?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),Lo(this,(()=>{this.focusTrap&&this.__focusTrapController.trapFocus(this.$.overlay);const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this.focusTrap&&this.__focusTrapController.releaseFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(t,e){const o=`__${t}Handler`,i=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",i),delete this[o])};this[o]=i,this.addEventListener("animationend",i)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_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(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")}_finishClosing(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing")}_animatedClosing(){if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){this._exitModalState();const t=this.restoreFocusNode||this.__restoreFocusNode;if(this.restoreFocusOnClose&&t){const e=this._getActiveElement();(e===document.body||this._deepContains(e))&&setTimeout((()=>t.focus())),this.__restoreFocusNode=null}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)}static get __attachedInstances(){return Array.from(document.body.children).filter((t=>t instanceof mi&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0))}get _last(){return this===mi.__attachedInstances.pop()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),mi.__attachedInstances.forEach((t=>{t!==this&&(t.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")}))}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=mi.__attachedInstances;let e;for(;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}_removeOldContent(){this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach((t=>{t.parentNode===this.content&&this.content.removeChild(t)})),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}_stampOverlayTemplate(t){this._removeOldContent(),t._Templatizer||(t._Templatizer=Qo(t,this,{forwardHostProp(t,e){this._instance&&this._instance.forwardHostProp(t,e)}})),this._instance=new t._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);const e=t._templateRoot||(t._templateRoot=t.getRootNode());if(e!==document){this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});let t=Array.from(e.querySelectorAll("style")).reduce(((t,e)=>t+e.textContent),"");if(t=t.replace(/:host/g,":host-nomatch"),t){const e=document.createElement("style");e.textContent=t,this.$.content.shadowRoot.appendChild(e),this._contentNodes.unshift(e)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}_removeNewRendererOrTemplate(t,e,o,i){t!==e?this.template=void 0:o!==i&&(this.renderer=void 0)}_templateOrRendererChanged(t,e,o,i,s){if(t&&e)throw this._removeNewRendererOrTemplate(t,this._oldTemplate,e,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");const r=this._oldOwner!==o||this._oldModel!==i;this._oldModel=i,this._oldOwner=o;const n=this._oldTemplate!==t;this._oldTemplate=t;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==s;this._oldOpened=s,a&&(this.content=this,this.content.innerHTML="",delete this.content._$litPart$),t&&n?this._stampOverlayTemplate(t):e&&(a||l||r)&&s&&this.requestContentUpdate()}_getActiveElement(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}_deepContains(t){if(this.contains(t))return!0;let e=t;const o=t.ownerDocument;for(;e&&e!==o&&e!==this;)e=e.parentNode||e.host;return e===this}bringToFront(){let t="";const e=mi.__attachedInstances.filter((t=>t!==this)).pop();if(e){t=e.__zIndex+1}this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(mi.is,mi);
|
|
1394
1394
|
/**
|
|
1395
1395
|
* @license
|
|
1396
1396
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2304,7 +2304,7 @@ let Oi,Ii=class t{static debounce(e,o,i){return e instanceof t?e._cancelAsync():
|
|
|
2304
2304
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2305
2305
|
* license.
|
|
2306
2306
|
*/
|
|
2307
|
-
window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){vi(wi)};const Ni=new Set,
|
|
2307
|
+
window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){vi(wi)};const Ni=new Set,Mi=t=>class extends(xo(t)){static get version(){return"23.5.12"}static finalize(){super.finalize();const{is:t}=this;var e;t&&!Ni.has(t)&&(window.Vaadin.registrations.push(this),Ni.add(t),window.Vaadin.developmentModeCallback&&(Oi=Ii.debounce(Oi,Di,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),e=Oi,$i.add(e)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
|
|
2308
2308
|
/**
|
|
2309
2309
|
* @license
|
|
2310
2310
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2314,7 +2314,7 @@ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.regist
|
|
|
2314
2314
|
*
|
|
2315
2315
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2316
2316
|
* license.
|
|
2317
|
-
*/;let
|
|
2317
|
+
*/;let zi=0;
|
|
2318
2318
|
/**
|
|
2319
2319
|
* @license
|
|
2320
2320
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2325,7 +2325,7 @@ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.regist
|
|
|
2325
2325
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2326
2326
|
* license.
|
|
2327
2327
|
*/
|
|
2328
|
-
class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${
|
|
2328
|
+
class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${zi++}`}constructor(t,e,o,i,s){super(),this.host=t,this.slotName=e,this.slotFactory=o,this.slotInitializer=i,s&&(this.defaultId=Li.generateId(e,t))}hostConnected(){if(!this.initialized){let t=this.getSlotChild();t?(this.node=t,this.initCustomNode(t)):t=this.attachDefaultNode(),this.initNode(t),this.observe(),this.initialized=!0}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:o}=this;let i=this.defaultNode;return!i&&o&&(i=o(t),i instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}initNode(t){const{slotInitializer:e}=this;e&&e(this.host,t)}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Oo(o,(t=>{const e=this.node,o=t.addedNodes.find((t=>t!==e));t.removedNodes.length&&t.removedNodes.forEach((t=>{this.teardownNode(t)})),o&&(e&&e.isConnected&&this.host.removeChild(e),this.node=o,o!==this.defaultNode&&(this.initCustomNode(o),this.initNode(o)))}))}}
|
|
2329
2329
|
/**
|
|
2330
2330
|
* @license
|
|
2331
2331
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2354,7 +2354,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2354
2354
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2355
2355
|
Code distributed by Google as part of the polymer project is also
|
|
2356
2356
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2357
|
-
*/function Wi(t){return Ui.indexOf(t)>-1}let Gi=!1;function Ki(t){Wi(t)}!function(){try{const t=Object.defineProperty({},"passive",{get(){Gi=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Xi=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Ji={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Zi(t){const e=t.type;if(!Wi(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!qi&&(e=Yi[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Qi={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function
|
|
2357
|
+
*/function Wi(t){return Ui.indexOf(t)>-1}let Gi=!1;function Ki(t){Wi(t)}!function(){try{const t=Object.defineProperty({},"passive",{get(){Gi=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Xi=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Ji={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Zi(t){const e=t.type;if(!Wi(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!qi&&(e=Yi[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Qi={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ts(t,e,o){t.movefn=e,t.upfn=o,document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)}function es(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const os=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],is={},ss=[];function rs(t){const e=os(t);return e.length>0?e[0]:t.target}function ns(t){const e=t.type,o=t.currentTarget[Bi];if(!o)return;const i=o[e];if(!i)return;if(!t[Vi]&&(t[Vi]={},e.startsWith("touch"))){const o=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Qi.touch.id=o.identifier),Qi.touch.id!==o.identifier)return;Hi||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],o=t.type;if("touchstart"===o)Qi.touch.x=e.clientX,Qi.touch.y=e.clientY,Qi.touch.scrollDecided=!1;else if("touchmove"===o){if(Qi.touch.scrollDecided)return;Qi.touch.scrollDecided=!0;const o=function(t){let e="auto";const o=os(t);for(let t,i=0;i<o.length;i++)if(t=o[i],t[ji]){e=t[ji];break}return e}(t);let i=!1;const s=Math.abs(Qi.touch.x-e.clientX),r=Math.abs(Qi.touch.y-e.clientY);t.cancelable&&("none"===o?i=!0:"pan-x"===o?i=r>s:"pan-y"===o&&(i=s>r)),i?t.preventDefault():cs("track")}}(t)}const s=t[Vi];if(!s.skip){for(let e,o=0;o<ss.length;o++)e=ss[o],i[e.name]&&!s[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let o,r=0;r<ss.length;r++)o=ss[r],i[o.name]&&!s[o.name]&&(s[o.name]=!0,o[e](t))}}function as(t,e,o){return!!is[e]&&(function(t,e,o){const i=is[e],s=i.deps,r=i.name;let n=t[Bi];n||(t[Bi]=n={});for(let e,o,i=0;i<s.length;i++)e=s[i],Xi&&Wi(e)&&"click"!==e||(o=n[e],o||(n[e]=o={_count:0}),0===o._count&&t.addEventListener(e,ns,Ki(e)),o[r]=(o[r]||0)+1,o._count=(o._count||0)+1);t.addEventListener(e,o),i.touchAction&&ds(t,i.touchAction)}(t,e,o),!0)}function ls(t){ss.push(t);for(let e=0;e<t.emits.length;e++)is[t.emits[e]]=t}function ds(t,e){Hi&&t instanceof HTMLElement&&Ti.run((()=>{t.style.touchAction=e})),t[ji]=e}function hs(t,e,o){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=o,t.dispatchEvent(i),i.defaultPrevented){const t=o.preventer||o.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function cs(t){const e=function(t){for(let e,o=0;o<ss.length;o++){e=ss[o];for(let o,i=0;i<e.emits.length;i++)if(o=e.emits[i],o===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function us(t,e,o,i){e&&hs(e,t,{x:o.clientX,y:o.clientY,sourceEvent:o,preventer:i,prevent:t=>cs(t)})}function ps(t,e,o){if(t.prevent)return!1;if(t.started)return!0;const i=Math.abs(t.x-e),s=Math.abs(t.y-o);return i>=5||s>=5}function ms(t,e,o){if(!e)return;const i=t.moves[t.moves.length-2],s=t.moves[t.moves.length-1],r=s.x-t.x,n=s.y-t.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),hs(e,"track",{state:t.state,x:o.clientX,y:o.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:o,hover:()=>function(t,e){let o=document.elementFromPoint(t,e),i=o;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(t,e),s===i)break;i&&(o=i)}return o}(o.clientX,o.clientY)})}function fs(t,e,o){const i=Math.abs(e.clientX-t.x),s=Math.abs(e.clientY-t.y),r=rs(o||e);!r||Ji[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=25&&s<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=rs(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const o=e.getBoundingClientRect(),i=t.pageX,s=t.pageY;return!(i>=o.left&&i<=o.right&&s>=o.top&&s<=o.bottom)}return!1}(e))&&(t.prevent||hs(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o}))}
|
|
2358
2358
|
/**
|
|
2359
2359
|
* @license
|
|
2360
2360
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2364,7 +2364,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2364
2364
|
*
|
|
2365
2365
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2366
2366
|
* license.
|
|
2367
|
-
*/
|
|
2367
|
+
*/ls({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){es(this.info)},mousedown(t){if(!Zi(t))return;const e=rs(t),o=this;ts(this.info,(t=>{Zi(t)||(us("up",e,t),es(o.info))}),(t=>{Zi(t)&&us("up",e,t),es(o.info)})),us("down",e,t)},touchstart(t){us("down",rs(t),t.changedTouches[0],t)},touchend(t){us("up",rs(t),t.changedTouches[0],t)}}),ls({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(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},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,es(this.info)},mousedown(t){if(!Zi(t))return;const e=rs(t),o=this,i=t=>{const i=t.clientX,s=t.clientY;ps(o.info,i,s)&&(o.info.state=o.info.started?"mouseup"===t.type?"end":"track":"start","start"===o.info.state&&cs("tap"),o.info.addMove({x:i,y:s}),Zi(t)||(o.info.state="end",es(o.info)),e&&ms(o.info,e,t),o.info.started=!0)};ts(this.info,i,(t=>{o.info.started&&i(t),es(o.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=rs(t),o=t.changedTouches[0],i=o.clientX,s=o.clientY;ps(this.info,i,s)&&("start"===this.info.state&&cs("tap"),this.info.addMove({x:i,y:s}),ms(this.info,e,o),this.info.state="track",this.info.started=!0)},touchend(t){const e=rs(t),o=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),ms(this.info,e,o))}}),ls({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(t){Zi(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Zi(t)&&fs(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){fs(this.info,t.changedTouches[0],t)}});const _s=At((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),gs=t=>class extends(Ri(_s(t))){get _activeKeys(){return[" "]}ready(){super.ready(),as(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),as(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
|
|
2368
2368
|
/**
|
|
2369
2369
|
* @license
|
|
2370
2370
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2374,7 +2374,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2374
2374
|
*
|
|
2375
2375
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2376
2376
|
* license.
|
|
2377
|
-
*/,
|
|
2377
|
+
*/,bs=At((t=>class extends t{get _keyboardActive(){return ai}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),ys=t=>class extends(Ri(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
|
|
2378
2378
|
/**
|
|
2379
2379
|
* @license
|
|
2380
2380
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2384,7 +2384,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2384
2384
|
*
|
|
2385
2385
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2386
2386
|
* license.
|
|
2387
|
-
*/,
|
|
2387
|
+
*/,vs=t=>class extends(gs(ys(bs(t)))){static get properties(){return{tabindex:{value:0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
|
|
2388
2388
|
/**
|
|
2389
2389
|
* @license
|
|
2390
2390
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2404,7 +2404,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2404
2404
|
*
|
|
2405
2405
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2406
2406
|
* license.
|
|
2407
|
-
*/class
|
|
2407
|
+
*/class ws extends(vs(Mi(q(ni(_o))))){static get is(){return"vaadin-button"}static get template(){return mo`
|
|
2408
2408
|
<style>
|
|
2409
2409
|
:host {
|
|
2410
2410
|
display: inline-block;
|
|
@@ -2463,7 +2463,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2463
2463
|
</span>
|
|
2464
2464
|
</div>
|
|
2465
2465
|
<slot name="tooltip"></slot>
|
|
2466
|
-
`}ready(){super.ready(),this._tooltipController=new Fi(this),this.addController(this._tooltipController)}}customElements.define(
|
|
2466
|
+
`}ready(){super.ready(),this._tooltipController=new Fi(this),this.addController(this._tooltipController)}}customElements.define(ws.is,ws),H("vaadin-date-picker-overlay-content",e`
|
|
2467
2467
|
:host {
|
|
2468
2468
|
position: relative;
|
|
2469
2469
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -2791,7 +2791,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2791
2791
|
:host([disabled]) * {
|
|
2792
2792
|
color: var(--lumo-disabled-text-color) !important;
|
|
2793
2793
|
}
|
|
2794
|
-
`,{moduleId:"lumo-month-calendar"});const
|
|
2794
|
+
`,{moduleId:"lumo-month-calendar"});const xs=document.createElement("template");xs.innerHTML="\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n",document.head.appendChild(xs.content);
|
|
2795
2795
|
/**
|
|
2796
2796
|
* @license
|
|
2797
2797
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2802,7 +2802,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2802
2802
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2803
2803
|
* license.
|
|
2804
2804
|
*/
|
|
2805
|
-
const
|
|
2805
|
+
const Cs=document.createElement("template");Cs.innerHTML='\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n 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==) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n',document.head.appendChild(Cs.content);
|
|
2806
2806
|
/**
|
|
2807
2807
|
* @license
|
|
2808
2808
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2813,7 +2813,7 @@ const Cr=document.createElement("template");Cr.innerHTML='\n <style>\n @font
|
|
|
2813
2813
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2814
2814
|
* license.
|
|
2815
2815
|
*/
|
|
2816
|
-
const
|
|
2816
|
+
const ks=e`
|
|
2817
2817
|
[part$='button'] {
|
|
2818
2818
|
flex: none;
|
|
2819
2819
|
width: 1em;
|
|
@@ -2840,7 +2840,7 @@ const kr=e`
|
|
|
2840
2840
|
font-family: 'lumo-icons';
|
|
2841
2841
|
display: block;
|
|
2842
2842
|
}
|
|
2843
|
-
`;H("",
|
|
2843
|
+
`;H("",ks,{moduleId:"lumo-field-button"});
|
|
2844
2844
|
/**
|
|
2845
2845
|
* @license
|
|
2846
2846
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2851,7 +2851,7 @@ const kr=e`
|
|
|
2851
2851
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2852
2852
|
* license.
|
|
2853
2853
|
*/
|
|
2854
|
-
const
|
|
2854
|
+
const As=e`
|
|
2855
2855
|
:host([has-helper]) [part='helper-text']::before {
|
|
2856
2856
|
content: '';
|
|
2857
2857
|
display: block;
|
|
@@ -2912,7 +2912,7 @@ const Ar=e`
|
|
|
2912
2912
|
*
|
|
2913
2913
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2914
2914
|
* license.
|
|
2915
|
-
*/,
|
|
2915
|
+
*/,Es=e`
|
|
2916
2916
|
[part='label'] {
|
|
2917
2917
|
align-self: flex-start;
|
|
2918
2918
|
color: var(--lumo-secondary-text-color);
|
|
@@ -3008,7 +3008,7 @@ const Ar=e`
|
|
|
3008
3008
|
margin-left: 0;
|
|
3009
3009
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
3010
3010
|
}
|
|
3011
|
-
`;H("",
|
|
3011
|
+
`;H("",Es,{moduleId:"lumo-required-field"});
|
|
3012
3012
|
/**
|
|
3013
3013
|
* @license
|
|
3014
3014
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3019,7 +3019,7 @@ const Ar=e`
|
|
|
3019
3019
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3020
3020
|
* license.
|
|
3021
3021
|
*/
|
|
3022
|
-
const
|
|
3022
|
+
const Ps=[Es,ks,As,e`
|
|
3023
3023
|
:host {
|
|
3024
3024
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
3025
3025
|
color: var(--lumo-body-text-color);
|
|
@@ -3143,7 +3143,7 @@ const Pr=[Er,kr,Ar,e`
|
|
|
3143
3143
|
[part='clear-button']::before {
|
|
3144
3144
|
content: var(--lumo-icons-cross);
|
|
3145
3145
|
}
|
|
3146
|
-
`];H("",
|
|
3146
|
+
`];H("",Ps,{moduleId:"lumo-input-field-shared-styles"});H("vaadin-date-picker",[Ps,e`
|
|
3147
3147
|
:host {
|
|
3148
3148
|
outline: none;
|
|
3149
3149
|
}
|
|
@@ -3181,7 +3181,7 @@ const Pr=[Er,kr,Ar,e`
|
|
|
3181
3181
|
* Google as part of the polymer project is also subject to an additional IP
|
|
3182
3182
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3183
3183
|
*/
|
|
3184
|
-
const
|
|
3184
|
+
const Ss="disable-upgrade",Ds=At((t=>{const e=ho(t);let o=(t=>{for(;t;){const e=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(e)return e.get;t=Object.getPrototypeOf(t.prototype).constructor}return()=>[]})(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return o.call(this).concat(Ss)}_initializeProperties(){this.hasAttribute(Ss)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}attributeChangedCallback(t,e,o,i){t==Ss?this.__isUpgradeDisabled&&null==o&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,Ft(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(t,e,o,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}));function Ts(t){return t?new Set(t.split(" ")):new Set}function Os(t){return[...t].join(" ")}
|
|
3185
3185
|
/**
|
|
3186
3186
|
* @license
|
|
3187
3187
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3192,7 +3192,7 @@ const Sr="disable-upgrade",Dr=At((t=>{const e=co(t);let o=(t=>{for(;t;){const e=
|
|
|
3192
3192
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3193
3193
|
* license.
|
|
3194
3194
|
*/
|
|
3195
|
-
const
|
|
3195
|
+
const Is={start:"top",end:"bottom"},$s={start:"left",end:"right"},Ns=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Ms=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=
|
|
3196
3196
|
/**
|
|
3197
3197
|
* @license
|
|
3198
3198
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3203,7 +3203,7 @@ const Ir={start:"top",end:"bottom"},$r={start:"left",end:"right"},Nr=new ResizeO
|
|
|
3203
3203
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3204
3204
|
* license.
|
|
3205
3205
|
*/
|
|
3206
|
-
function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,
|
|
3206
|
+
function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Ns.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Ns.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}get __isRTL(){return"rtl"===this.getAttribute("dir")}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened)return void(this.opened=!1);const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const o=this.__shouldAlignStartHorizontally(t,this.__isRTL),i=!this.__isRTL&&o||this.__isRTL&&!o;this.style.alignItems=i?"flex-start":"flex-end";const s=this.getBoundingClientRect(),r=this.__calculatePositionInOneDimension(t,s,this.noVerticalOverlap,Is,this,e),n=this.__calculatePositionInOneDimension(t,s,this.noHorizontalOverlap,$s,this,o);Object.assign(this.style,r,n),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!i),this.toggleAttribute("start-aligned",i)}__shouldAlignStartHorizontally(t,e){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const i=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,o,i,this.__margins,s,this.noHorizontalOverlap,$s)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,o,this.__margins,i,this.noVerticalOverlap,Is)}__shouldAlignStart(t,e,o,i,s,r,n){const a=o-t[r?n.end:n.start]-i[n.end],l=t[r?n.start:n.end]-i[n.start],d=s?a:l;return s===(d>(s?l:a)||d>e)}__adjustBottomProperty(t,e,o){let i;if(t===e.end){if(e.end===Is.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>t&&this.__oldViewportHeight){i=o-(this.__oldViewportHeight-t)}this.__oldViewportHeight=t}if(e.end===$s.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>t&&this.__oldViewportWidth){i=o-(this.__oldViewportWidth-t)}this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,o,i,s,r){const n=r?i.start:i.end,a=r?i.end:i.start,l=parseFloat(s.style[n]||getComputedStyle(s)[n]),d=this.__adjustBottomProperty(n,i,l),h=e[r?i.start:i.end]-t[o===r?i.end:i.start],c=d?`${d}px`:`${l+h*(r?-1:1)}px`;return{[n]:c,[a]:""}}}
|
|
3207
3207
|
/**
|
|
3208
3208
|
* @license
|
|
3209
3209
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3213,7 +3213,7 @@ function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);br
|
|
|
3213
3213
|
*
|
|
3214
3214
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3215
3215
|
* license.
|
|
3216
|
-
*/,
|
|
3216
|
+
*/,zs=e`
|
|
3217
3217
|
:host([dir='rtl']) [part='input-field'] {
|
|
3218
3218
|
direction: ltr;
|
|
3219
3219
|
}
|
|
@@ -3222,7 +3222,7 @@ function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);br
|
|
|
3222
3222
|
direction: rtl;
|
|
3223
3223
|
text-align: left;
|
|
3224
3224
|
}
|
|
3225
|
-
`;let
|
|
3225
|
+
`;let Ls;
|
|
3226
3226
|
/**
|
|
3227
3227
|
* @license
|
|
3228
3228
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3242,7 +3242,7 @@ H("vaadin-date-picker-overlay",e`
|
|
|
3242
3242
|
[part~='content'] {
|
|
3243
3243
|
flex: auto;
|
|
3244
3244
|
}
|
|
3245
|
-
`,{moduleId:"vaadin-date-picker-overlay-styles"});class
|
|
3245
|
+
`,{moduleId:"vaadin-date-picker-overlay-styles"});class Fs extends(Ds(Ms(mi))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ls||(Ls=super.template.cloneNode(!0),Ls.content.querySelector('[part~="overlay"]').removeAttribute("tabindex")),Ls}}customElements.define(Fs.is,Fs);
|
|
3246
3246
|
/**
|
|
3247
3247
|
@license
|
|
3248
3248
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -3252,7 +3252,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3252
3252
|
Code distributed by Google as part of the polymer project is also
|
|
3253
3253
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3254
3254
|
*/
|
|
3255
|
-
class
|
|
3255
|
+
class Rs{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,Hs.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Hs.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,o){return t instanceof Rs?t._cancelAsync():t=new Rs,t.setConfig(e,o),t}}let Hs=new Set;const Bs=function(){const t=Boolean(Hs.size);return Hs.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t};
|
|
3256
3256
|
/**
|
|
3257
3257
|
@license
|
|
3258
3258
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -3262,7 +3262,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3262
3262
|
Code distributed by Google as part of the polymer project is also
|
|
3263
3263
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3264
3264
|
*/
|
|
3265
|
-
let
|
|
3265
|
+
let Vs=!1;
|
|
3266
3266
|
/**
|
|
3267
3267
|
@license
|
|
3268
3268
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -3272,7 +3272,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3272
3272
|
Code distributed by Google as part of the polymer project is also
|
|
3273
3273
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3274
3274
|
*/
|
|
3275
|
-
const
|
|
3275
|
+
const js=Ho(_o);class Us extends js{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:!xt,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,this._templateInfo}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(),function(){if(ft&&!dt){if(!Vs){Vs=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Ft(Ft(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 t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=Qo(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(t,e){let o=this.__instances;for(let i,s=0;s<o.length&&(i=o[s]);s++)i.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,o){if((i=this.as)===(s=e)||Bt(i,s)||Vt(i,s)){let i=t[this.itemsIndexAs];e==this.as&&(this.items[i]=o);let s=jt(this.as,`${JSCompiler_renameProperty("items",this)}.${i}`,e);this.notifyPath(s,o)}var i,s}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,o=this.__getMethodHost();return function(){return o[e].apply(o,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){if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)0===t.indexOf(e[o])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){var o;this.__renderDebouncer=Rs.debounce(this.__renderDebouncer,e>0?re.after(e):ne,t.bind(this)),o=this.__renderDebouncer,Hs.add(o)}render(){this.__debounceRender(this.__render),function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Bs()}while(t||e)}()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),o=this.__calculateLimit(e.length);this.__updateInstances(t,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),xt&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let o=0;o<t.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter(((e,o,i)=>this.__filterFn(t[e],o,i)))),this.__sortFn&&e.sort(((e,o)=>this.__sortFn(t[e],t[o]))),e}__calculateLimit(t){let e=t;const o=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),i=Math.max(e-o,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-o,0),this.__chunkCount),e=Math.min(o+i,t)),this.__shouldMeasureChunk=i===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,o){const i=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let e=this.__instances[s],r=o[s],n=t[r];i[r]=s,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,s),e._setPendingProperty(this.itemsIndexAs,r),e._flushProperties()):this.__insertInstance(n,s,r)}for(let t=this.__instances.length-1;t>=s;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const o=Ft(e.root);for(let t=0;t<e.children.length;t++){let i=e.children[t];o.appendChild(i)}return e}__attachInstance(t,e){let o=this.__instances[t];e.insertBefore(o.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,o){let i={};return i[this.as]=t,i[this.indexAs]=e,i[this.itemsIndexAs]=o,new this.__ctor(i)}__insertInstance(t,e,o){const i=this.__stampInstance(t,e,o);let s=this.__instances[e+1],r=s?s.children[0]:this;return Ft(Ft(this).parentNode).insertBefore(i.root,r),this.__instances[e]=i,i}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let o=t.slice(6),i=o.indexOf("."),s=i<0?o:o.substring(0,i);if(s==parseInt(s,10)){let t=i<0?"":o.substring(i+1);this.__handleObservedPaths(t);let r=this.__itemsIdxToInstIdx[s],n=this.__instances[r];if(n){let o=this.as+(t?"."+t:"");n._setPendingPropertyOrPath(o,e,!1,!0),n._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 function(t,e){let o;for(;e;)if(o=e.__dataHost?e:e.__templatizeInstance){if(o.__dataHost==t)return o;e=o.__dataHost}else e=Ft(e).parentNode;return null}(this.template,t)}}function Ys(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function qs(t,e,o){return(!e||t>=e)&&(!o||t<=o)}function Ws(t,e){return e.filter((t=>void 0!==t)).reduce(((e,o)=>{if(!o)return e;if(!e)return o;return Math.abs(t.getTime()-o.getTime())<Math.abs(e.getTime()-t.getTime())?o:e}))}function Gs(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function Ks(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(t);if(!e)return;const o=new Date(0,0);return o.setFullYear(parseInt(e[1],10)),o.setMonth(parseInt(e[2],10)-1),o.setDate(parseInt(e[3],10)),o}
|
|
3276
3276
|
/**
|
|
3277
3277
|
* @license
|
|
3278
3278
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3282,7 +3282,7 @@ const jr=Ho(_o);class Ur extends jr{static get is(){return"dom-repeat"}static ge
|
|
|
3282
3282
|
*
|
|
3283
3283
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3284
3284
|
* license.
|
|
3285
|
-
*/customElements.define(
|
|
3285
|
+
*/customElements.define(Us.is,Us);class Xs extends(bs(q(_o))){static get template(){return mo`
|
|
3286
3286
|
<style>
|
|
3287
3287
|
:host {
|
|
3288
3288
|
display: block;
|
|
@@ -3382,7 +3382,7 @@ const jr=Ho(_o);class Ur extends jr{static get is(){return"dom-repeat"}static ge
|
|
|
3382
3382
|
</template>
|
|
3383
3383
|
</tbody>
|
|
3384
3384
|
</table>
|
|
3385
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:!0},focusedDate:Date,showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)","__focusedDateChanged(focusedDate, _days)"]}ready(){super.ready(),
|
|
3385
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:!0},focusedDate:Date,showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)","__focusedDateChanged(focusedDate, _days)"]}ready(){super.ready(),as(this.$.monthGrid,"tap",this._handleTap.bind(this))}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part=date]")].find((t=>Ys(t.date,this.focusedDate)))}_isDisabled(t,e,o){const i=new Date(0,0);i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),!(e&&o&&e.getMonth()===o.getMonth()&&e.getMonth()===t.getMonth()&&o.getDate()-e.getDate()>=0)&&(!qs(i,e,o)&&!qs(s,e,o))}_getTitle(t,e){if(void 0!==t&&void 0!==e)return this.i18n.formatTitle(e[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(void 0!==t&&void 0!==e)return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e,o,i){if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return t=this._applyFirstDayOfWeek(t,i),e=this._applyFirstDayOfWeek(e,i),t=t.map(((t,o)=>({weekDay:t,weekDayShort:e[o]})))}__focusedDateChanged(t,e){e.some((e=>Ys(e,t)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekNumbersChanged(t,e){t&&1===e?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}_showWeekSeparator(t,e){return t&&1===e}_isToday(t){return Ys(new Date,t)}_getDays(t,e){if(void 0===t||void 0===e)return;const o=new Date(0,0);for(o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);o.getDay()!==e;)this._dateAdd(o,-1);const i=[],s=o.getMonth(),r=t.getMonth();for(;o.getMonth()===r||o.getMonth()===s;)i.push(o.getMonth()===r?new Date(o.getTime()):null),this._dateAdd(o,1);return i}_getWeeks(t){return t.reduce(((t,e,o)=>(o%7==0&&t.push([]),t[t.length-1].push(e),t)),[])}_handleTap(t){this.ignoreTaps||this._notTapping||!t.target.date||t.target.hasAttribute("disabled")||(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));
|
|
3386
3386
|
/**
|
|
3387
3387
|
* @license
|
|
3388
3388
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3393,7 +3393,7 @@ const jr=Ho(_o);class Ur extends jr{static get is(){return"dom-repeat"}static ge
|
|
|
3393
3393
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3394
3394
|
* license.
|
|
3395
3395
|
*/
|
|
3396
|
-
return function(t){let e=t.getDay();0===e&&(e=7);const o=4-e,i=new Date(t.getTime()+24*o*3600*1e3),
|
|
3396
|
+
return function(t){let e=t.getDay();0===e&&(e=7);const o=4-e,i=new Date(t.getTime()+24*o*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/864e5);return Math.floor(n/7+1)}(e)}__isDayFocused(t,e){return Ys(t,e)}__isDaySelected(t,e){return Ys(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,o){return!qs(t,e,o)}__getDayAriaDisabled(t,e,o){if(void 0!==t&&void 0!==e&&void 0!==o)return this.__isDayDisabled(t,e,o)?"true":void 0}__getDayAriaLabel(t){if(!t)return"";let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(e+=`, ${this.i18n.today}`),e}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}customElements.define(Xs.is,Xs);
|
|
3397
3397
|
/**
|
|
3398
3398
|
* @license
|
|
3399
3399
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3404,7 +3404,7 @@ return function(t){let e=t.getDay();0===e&&(e=7);const o=4-e,i=new Date(t.getTim
|
|
|
3404
3404
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3405
3405
|
* license.
|
|
3406
3406
|
*/
|
|
3407
|
-
class
|
|
3407
|
+
class Js extends _o{static get template(){return mo`
|
|
3408
3408
|
<style>
|
|
3409
3409
|
:host {
|
|
3410
3410
|
display: block;
|
|
@@ -3454,7 +3454,7 @@ class Jr extends _o{static get template(){return mo`
|
|
|
3454
3454
|
<div class="buffer"></div>
|
|
3455
3455
|
<div id="fullHeight"></div>
|
|
3456
3456
|
</div>
|
|
3457
|
-
`}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready(),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px";const t=this.querySelector("template");this._TemplateClass=Qo(t,this,{forwardHostProp(t,e){"index"!==t&&this._buffers.forEach((o=>{[...o.children].forEach((o=>{o._itemWrapper.instance[t]=e}))}))}}),oi&&(this.$.scroller.tabIndex=-1)}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_activated(t){t&&!this._initialized&&(this._createPool(),this._initialized=!0)}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0)}_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>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=t>this._buffers[1].translateY+e,i=t<this._buffers[0].translateY+e;(o||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ii.debounce(this._debouncerScrollFinish,Si.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],t)||this._isVisible(this._buffers[1],t)||(this.position=this.position)}))}get bufferOffset(){return this._buffers[0].offsetTop}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+2*this.bufferSize?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))}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 o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}_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=Ii.debounce(this._debouncerUpdateClones,Si.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 o=0;o<this.bufferSize;o++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const i=`vaadin-infinite-scroller-item-content-${
|
|
3457
|
+
`}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready(),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px";const t=this.querySelector("template");this._TemplateClass=Qo(t,this,{forwardHostProp(t,e){"index"!==t&&this._buffers.forEach((o=>{[...o.children].forEach((o=>{o._itemWrapper.instance[t]=e}))}))}}),oi&&(this.$.scroller.tabIndex=-1)}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_activated(t){t&&!this._initialized&&(this._createPool(),this._initialized=!0)}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0)}_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>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=t>this._buffers[1].translateY+e,i=t<this._buffers[0].translateY+e;(o||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ii.debounce(this._debouncerScrollFinish,Si.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],t)||this._isVisible(this._buffers[1],t)||(this.position=this.position)}))}get bufferOffset(){return this._buffers[0].offsetTop}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+2*this.bufferSize?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))}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 o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}_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=Ii.debounce(this._debouncerUpdateClones,Si.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 o=0;o<this.bufferSize;o++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const i=`vaadin-infinite-scroller-item-content-${Js._contentIndex=Js._contentIndex+1||0}`,s=document.createElement("slot");s.setAttribute("name",i),s._itemWrapper=o,e.appendChild(s),o.setAttribute("slot",i),this.appendChild(o),setTimeout((()=>{this._isVisible(o,t)&&this._ensureStampedInstance(o)}),1)}})),setTimeout((()=>{Lo(this,this._finishInit.bind(this))}),1)}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=new this._TemplateClass({}),t.appendChild(t.instance.root),Object.keys(e).forEach((o=>{t.instance.set(o,e[o])}))}_updateClones(t){const e=(this._buffers[0].translateY-this._initialScroll)/this.itemHeight;if(isNaN(e))return;this._firstIndex=Math.round(e)+this._initialIndex;const o=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((e,i)=>{if(!e.updated){const s=this._firstIndex+this.bufferSize*i;[...e.children].forEach(((e,i)=>{const r=e._itemWrapper;t&&!this._isVisible(r,o)||(r.instance.index=s+i)})),e.updated=!0}}))}_isVisible(t,e){const o=t.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}customElements.define(Js.is,Js);
|
|
3458
3458
|
/**
|
|
3459
3459
|
* @license
|
|
3460
3460
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3465,7 +3465,7 @@ class Jr extends _o{static get template(){return mo`
|
|
|
3465
3465
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3466
3466
|
* license.
|
|
3467
3467
|
*/
|
|
3468
|
-
class
|
|
3468
|
+
class Zs{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){"function"==typeof this.callback&&this.callback(t.matches)}}
|
|
3469
3469
|
/**
|
|
3470
3470
|
* @license
|
|
3471
3471
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3475,7 +3475,7 @@ class Zr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
|
|
|
3475
3475
|
*
|
|
3476
3476
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3477
3477
|
* license.
|
|
3478
|
-
*/class
|
|
3478
|
+
*/class Qs extends(ni(q(xo(_o)))){static get template(){return mo`
|
|
3479
3479
|
<style>
|
|
3480
3480
|
:host {
|
|
3481
3481
|
display: flex;
|
|
@@ -3655,7 +3655,7 @@ class Zr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
|
|
|
3655
3655
|
[[i18n.cancel]]
|
|
3656
3656
|
</vaadin-button>
|
|
3657
3657
|
</div>
|
|
3658
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Date,value:null},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,label:String}}get __isRTL(){return"rtl"===this.getAttribute("dir")}get __useSubMonthScrolling(){return this.$.monthScroller.clientHeight<this.$.monthScroller.itemHeight+this.$.monthScroller.bufferOffset}get calendars(){return[...this.shadowRoot.querySelectorAll("vaadin-month-calendar")]}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}ready(){super.ready(),this.setAttribute("role","dialog"),ar(this.$.scrollers,"track",this._track.bind(this)),ar(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ar(this.shadowRoot.querySelector('[part="today-button"]'),"tap",this._onTodayTap.bind(this)),ar(this.shadowRoot.querySelector('[part="cancel-button"]'),"tap",this._cancel.bind(this)),ar(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ar(this.shadowRoot.querySelector('[part="years"]'),"tap",this._onYearTap.bind(this)),ar(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this)),this.addController(new Zr(this._desktopMediaQuery,(t=>{this._desktopMode=t})))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),dr(this.$.scrollers,"pan-y")}focusCancel(){this.$.cancelButton.focus()}scrollToDate(t,e){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+o,e),this.$.monthScroller.forceUpdate()}_selectDate(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}_focusedDateChanged(t){this.revealDate(t)}_isCurrentYear(t){return 0===t}_isSelectedYear(t,e){if(e)return e.getFullYear()===this._originDate.getFullYear()+t}revealDate(t,e=!0){if(!t)return;const o=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const i=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(o+i,e)}const i=this.$.monthScroller.position>o,r=Math.max(this.$.monthScroller.itemHeight,this.$.monthScroller.clientHeight-2*this.$.monthScroller.bufferOffset)/this.$.monthScroller.itemHeight,s=this.$.monthScroller.position+r-1<o;i?this._scrollToPosition(o,e):s&&this._scrollToPosition(o-r+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let o=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(t){this.scrollToDate(t)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=12*this.$.yearScroller.position-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=Ii.debounce(this._debouncer,Si.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,o){return t?e(Gr(t)):o}_onTodayTap(){const t=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2))/this.$.yearScroller.itemHeight;this._scrollToPosition(this.$.monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this.$.monthScroller.position=t,this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let o;this._targetPosition=t,this._revealPromise=new Promise((t=>{o=t}));let i=0;const r=this.$.monthScroller.position,s=t=>{i=i||t;const e=t-i;if(e<this.scrollDuration){const t=((t,e,o,i)=>(t/=i/2)<1?o/2*t*t+e:-o/2*((t-=1)*(t-2)-1)+e)(e,r,this._targetPosition-r,this.scrollDuration);this.$.monthScroller.position=t,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?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(t){this._desktopMode||(this.$.monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this.$.yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXYears(t){const e=new Date(this._originDate);return e.setFullYear(parseInt(t)+this._originDate.getFullYear()),e.getFullYear()}_yearAfterXMonths(t){return this._dateAfterXMonths(t).getFullYear()}_dateAfterXMonths(t){const e=new Date(this._originDate);return e.setDate(1),e.setMonth(parseInt(t)+this._originDate.getMonth()),e}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Yr(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),e=!0;break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.$.cancelButton.focus():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Yr(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}async focusDate(t,e){const o=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,e||(this._focusedMonthDate=o.getDate()),await this.focusDateElement(!1)}async focusDateElement(t=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise((t=>{setTimeout(t)})),t&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(Wr(t,[this.minDate,this.maxDate]))}_moveFocusByDays(t){const e=this.focusedDate,o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(e.getDate()+t),this._dateAllowed(o,this.minDate,this.maxDate)?this.focusDate(o):this._dateAllowed(e,this.minDate,this.maxDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(e)}_moveFocusByMonths(t){const e=this.focusedDate,o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()+t);const i=o.getMonth();o.setDate(this._focusedMonthDate||(this._focusedMonthDate=e.getDate())),o.getMonth()!==i&&o.setDate(0),this._dateAllowed(o,this.minDate,this.maxDate)?this.focusDate(o,!0):this._dateAllowed(e,this.minDate,this.maxDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(e)}_moveFocusInsideMonth(t,e){const o=new Date(0,0);o.setFullYear(t.getFullYear()),"minDate"===e?(o.setMonth(t.getMonth()),o.setDate(1)):(o.setMonth(t.getMonth()+1),o.setDate(0)),this._dateAllowed(o,this.minDate,this.maxDate)?this.focusDate(o):this._dateAllowed(t,this.minDate,this.maxDate)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e,o){return(!e||t>=e)&&(!o||t<=o)}_isTodayAllowed(t,e){const o=new Date,i=new Date(0,0);return i.setFullYear(o.getFullYear()),i.setMonth(o.getMonth()),i.setDate(o.getDate()),this._dateAllowed(i,t,e)}}customElements.define(Qr.is,Qr);
|
|
3658
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Date,value:null},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,label:String}}get __isRTL(){return"rtl"===this.getAttribute("dir")}get __useSubMonthScrolling(){return this.$.monthScroller.clientHeight<this.$.monthScroller.itemHeight+this.$.monthScroller.bufferOffset}get calendars(){return[...this.shadowRoot.querySelectorAll("vaadin-month-calendar")]}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}ready(){super.ready(),this.setAttribute("role","dialog"),as(this.$.scrollers,"track",this._track.bind(this)),as(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),as(this.shadowRoot.querySelector('[part="today-button"]'),"tap",this._onTodayTap.bind(this)),as(this.shadowRoot.querySelector('[part="cancel-button"]'),"tap",this._cancel.bind(this)),as(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),as(this.shadowRoot.querySelector('[part="years"]'),"tap",this._onYearTap.bind(this)),as(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this)),this.addController(new Zs(this._desktopMediaQuery,(t=>{this._desktopMode=t})))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),ds(this.$.scrollers,"pan-y")}focusCancel(){this.$.cancelButton.focus()}scrollToDate(t,e){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+o,e),this.$.monthScroller.forceUpdate()}_selectDate(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}_focusedDateChanged(t){this.revealDate(t)}_isCurrentYear(t){return 0===t}_isSelectedYear(t,e){if(e)return e.getFullYear()===this._originDate.getFullYear()+t}revealDate(t,e=!0){if(!t)return;const o=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const i=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(o+i,e)}const i=this.$.monthScroller.position>o,s=Math.max(this.$.monthScroller.itemHeight,this.$.monthScroller.clientHeight-2*this.$.monthScroller.bufferOffset)/this.$.monthScroller.itemHeight,r=this.$.monthScroller.position+s-1<o;i?this._scrollToPosition(o,e):r&&this._scrollToPosition(o-s+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let o=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(t){this.scrollToDate(t)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=12*this.$.yearScroller.position-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=Ii.debounce(this._debouncer,Si.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,o){return t?e(Gs(t)):o}_onTodayTap(){const t=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=(t.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2))/this.$.yearScroller.itemHeight;this._scrollToPosition(this.$.monthScroller.position+12*e,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this.$.monthScroller.position=t,this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let o;this._targetPosition=t,this._revealPromise=new Promise((t=>{o=t}));let i=0;const s=this.$.monthScroller.position,r=t=>{i=i||t;const e=t-i;if(e<this.scrollDuration){const t=((t,e,o,i)=>(t/=i/2)<1?o/2*t*t+e:-o/2*((t-=1)*(t-2)-1)+e)(e,s,this._targetPosition-s,this.scrollDuration);this.$.monthScroller.position=t,window.requestAnimationFrame(r)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(r)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?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(t){this._desktopMode||(this.$.monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this.$.yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXYears(t){const e=new Date(this._originDate);return e.setFullYear(parseInt(t)+this._originDate.getFullYear()),e.getFullYear()}_yearAfterXMonths(t){return this._dateAfterXMonths(t).getFullYear()}_dateAfterXMonths(t){const e=new Date(this._originDate);return e.setDate(1),e.setMonth(parseInt(t)+this._originDate.getMonth()),e}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Ys(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),e=!0;break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.$.cancelButton.focus():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Ys(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}async focusDate(t,e){const o=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,e||(this._focusedMonthDate=o.getDate()),await this.focusDateElement(!1)}async focusDateElement(t=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise((t=>{setTimeout(t)})),t&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(Ws(t,[this.minDate,this.maxDate]))}_moveFocusByDays(t){const e=this.focusedDate,o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(e.getDate()+t),this._dateAllowed(o,this.minDate,this.maxDate)?this.focusDate(o):this._dateAllowed(e,this.minDate,this.maxDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(e)}_moveFocusByMonths(t){const e=this.focusedDate,o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()+t);const i=o.getMonth();o.setDate(this._focusedMonthDate||(this._focusedMonthDate=e.getDate())),o.getMonth()!==i&&o.setDate(0),this._dateAllowed(o,this.minDate,this.maxDate)?this.focusDate(o,!0):this._dateAllowed(e,this.minDate,this.maxDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(e)}_moveFocusInsideMonth(t,e){const o=new Date(0,0);o.setFullYear(t.getFullYear()),"minDate"===e?(o.setMonth(t.getMonth()),o.setDate(1)):(o.setMonth(t.getMonth()+1),o.setDate(0)),this._dateAllowed(o,this.minDate,this.maxDate)?this.focusDate(o):this._dateAllowed(t,this.minDate,this.maxDate)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e,o){return(!e||t>=e)&&(!o||t<=o)}_isTodayAllowed(t,e){const o=new Date,i=new Date(0,0);return i.setFullYear(o.getFullYear()),i.setMonth(o.getMonth()),i.setDate(o.getDate()),this._dateAllowed(i,t,e)}}customElements.define(Qs.is,Qs);
|
|
3659
3659
|
/**
|
|
3660
3660
|
* @license
|
|
3661
3661
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3666,7 +3666,7 @@ class Zr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
|
|
|
3666
3666
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3667
3667
|
* license.
|
|
3668
3668
|
*/
|
|
3669
|
-
const
|
|
3669
|
+
const tr=At((t=>class extends(bs(ys(t))){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(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}}));
|
|
3670
3670
|
/**
|
|
3671
3671
|
* @license
|
|
3672
3672
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3676,7 +3676,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3676
3676
|
*
|
|
3677
3677
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3678
3678
|
* license.
|
|
3679
|
-
*/class
|
|
3679
|
+
*/class er extends Li{constructor(t){super(t,"error-message",(()=>document.createElement("div")),((t,e)=>{this.__updateErrorId(e),this.__updateHasError()}),!0)}get errorId(){return this.node&&this.node.id}setErrorMessage(t){this.errorMessage=t,this.__updateHasError()}setInvalid(t){this.invalid=t,this.__updateHasError()}initCustomNode(t){this.__updateErrorId(t),t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),this.__updateHasError()}teardownNode(t){let e=this.getSlotChild();e||t===this.defaultNode||(e=this.attachDefaultNode(),this.initNode(e)),this.__updateHasError()}__isNotEmpty(t){return Boolean(t&&""!==t.trim())}__updateHasError(){const t=this.node,e=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));t&&(t.textContent=e?this.errorMessage:"",t.hidden=!e,e?t.setAttribute("role","alert"):t.removeAttribute("role")),this.host.toggleAttribute("has-error-message",e)}__updateErrorId(t){t.id||(t.id=this.defaultId)}}
|
|
3680
3680
|
/**
|
|
3681
3681
|
* @license
|
|
3682
3682
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3686,7 +3686,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3686
3686
|
*
|
|
3687
3687
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3688
3688
|
* license.
|
|
3689
|
-
*/class
|
|
3689
|
+
*/class or{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setLabelId(t){this.__setLabelIdToAriaAttribute(t,this.__labelId),this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(t,e){this.__setAriaAttributeId("aria-labelledby",t,e)}__setErrorIdToAriaAttribute(t,e){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",t,e):this.__setAriaAttributeId("aria-describedby",t,e)}__setHelperIdToAriaAttribute(t,e){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",t,e):this.__setAriaAttributeId("aria-describedby",t,e)}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}__setAriaAttributeId(t,e,o){this.__target&&(o&&function(t,e,o){const i=Ts(t.getAttribute(e));i.delete(o),0!==i.size?t.setAttribute(e,Os(i)):t.removeAttribute(e)}(this.__target,t,o),e&&function(t,e,o){const i=Ts(t.getAttribute(e));i.add(o),t.setAttribute(e,Os(i))}(this.__target,t,e))}}
|
|
3690
3690
|
/**
|
|
3691
3691
|
* @license
|
|
3692
3692
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3696,7 +3696,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3696
3696
|
*
|
|
3697
3697
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3698
3698
|
* license.
|
|
3699
|
-
*/class
|
|
3699
|
+
*/class ir extends Li{constructor(t){super(t,"helper",null,null,!0)}get helperId(){return this.node&&this.node.id}initCustomNode(t){this.__updateHelperId(t),this.__observeHelper(t);const e=this.__hasHelper(t);this.__toggleHasHelper(e)}teardownNode(t){this.__helperIdObserver&&this.__helperIdObserver.disconnect();const e=this.getSlotChild();if(e&&e!==this.defaultNode){const t=this.__hasHelper(e);this.__toggleHasHelper(t)}else this.__applyDefaultHelper(this.helperText,e)}setHelperText(t){this.helperText=t;const e=this.getSlotChild();e&&e!==this.defaultNode||this.__applyDefaultHelper(t,e)}__hasHelper(t){return!!t&&(t.children.length>0||t.nodeType===Node.ELEMENT_NODE&&customElements.get(t.localName)||this.__isNotEmpty(t.textContent))}__isNotEmpty(t){return t&&""!==t.trim()}__applyDefaultHelper(t,e){const o=this.__isNotEmpty(t);o&&!e&&(this.slotFactory=()=>document.createElement("div"),e=this.attachDefaultNode(),this.__updateHelperId(e),this.__observeHelper(e)),e&&(e.textContent=t),this.__toggleHasHelper(o)}__observeHelper(t){this.__helperObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,o=e===this.node;if("attributes"===t.type)o&&e.id!==this.defaultId&&this.__updateHelperId(e);else if(o||e.parentElement===this.node){const t=this.__hasHelper(this.node);this.__toggleHasHelper(t)}}))})),this.__helperObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasHelper(t){this.host.toggleAttribute("has-helper",t),this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:t,node:this.node}}))}__updateHelperId(t){t.id||(t.id=this.defaultId)}}
|
|
3700
3700
|
/**
|
|
3701
3701
|
* @license
|
|
3702
3702
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3706,7 +3706,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3706
3706
|
*
|
|
3707
3707
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3708
3708
|
* license.
|
|
3709
|
-
*/class
|
|
3709
|
+
*/class sr extends Li{constructor(t){super(t,"label",(()=>document.createElement("label")),((t,e)=>{this.__updateLabelId(e),this.__updateDefaultLabel(this.label),this.__observeLabel(e)}),!0)}get labelId(){return this.node.id}initCustomNode(t){this.__updateLabelId(t);const e=this.__hasLabel(t);this.__toggleHasLabel(e)}teardownNode(t){this.__labelObserver&&this.__labelObserver.disconnect();let e=this.getSlotChild();e||t===this.defaultNode||(e=this.attachDefaultNode(),this.initNode(e));const o=this.__hasLabel(e);this.__toggleHasLabel(o)}setLabel(t){this.label=t,this.__updateDefaultLabel(t)}__hasLabel(t){return!!t&&(t.children.length>0||this.__isNotEmpty(t.textContent))}__isNotEmpty(t){return Boolean(t&&""!==t.trim())}__observeLabel(t){this.__labelObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,o=e===this.node;if("attributes"===t.type)o&&e.id!==this.defaultId&&this.__updateLabelId(e);else if(o||e.parentElement===this.node){const t=this.__hasLabel(this.node);this.__toggleHasLabel(t)}}))})),this.__labelObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasLabel(t){this.host.toggleAttribute("has-label",t),this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:t,node:this.node}}))}__updateDefaultLabel(t){if(this.defaultNode&&(this.defaultNode.textContent=t,this.defaultNode===this.node)){const e=this.__isNotEmpty(t);this.__toggleHasLabel(e)}}__updateLabelId(t){t.id||(t.id=this.defaultId)}}
|
|
3710
3710
|
/**
|
|
3711
3711
|
* @license
|
|
3712
3712
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3716,7 +3716,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3716
3716
|
*
|
|
3717
3717
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3718
3718
|
* license.
|
|
3719
|
-
*/const
|
|
3719
|
+
*/const rr=At((t=>class extends(ni(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new sr(this)}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),nr=At((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),ar=t=>class extends(nr(rr(ni(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new or(this),this._helperController=new ir(this),this._errorController=new er(this),this._labelController.addEventListener("label-changed",(t=>{const{hasLabel:e,node:o}=t.detail;this.__labelChanged(e,o)})),this._helperController.addEventListener("helper-changed",(t=>{const{hasHelper:e,node:o}=t.detail;this.__helperChanged(e,o)}))}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){t?this._fieldAriaController.setHelperId(e.id):this._fieldAriaController.setHelperId(null)}__labelChanged(t,e){t?this._fieldAriaController.setLabelId(e.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{t?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)}))}}
|
|
3720
3720
|
/**
|
|
3721
3721
|
* @license
|
|
3722
3722
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3726,7 +3726,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3726
3726
|
*
|
|
3727
3727
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3728
3728
|
* license.
|
|
3729
|
-
*/,
|
|
3729
|
+
*/,lr=At((t=>class extends t{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(t){t&&(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((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,o)=>{this._delegateAttribute(e,t[o])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,o)=>{this._delegateProperty(e,t[o])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),dr=At((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this.inputElement.value=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}get _hasValue(){return null!=this.value&&""!==this.value}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),hr=At((t=>class extends(lr(nr(dr(t)))){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((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const o=this._hasValidConstraints(e),i=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():i&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),cr=new WeakMap;
|
|
3730
3730
|
/**
|
|
3731
3731
|
* @license
|
|
3732
3732
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3736,7 +3736,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3736
3736
|
*
|
|
3737
3737
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3738
3738
|
* license.
|
|
3739
|
-
*/const
|
|
3739
|
+
*/const ur=At((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return cr.has(t)||cr.set(t,new Set),cr.get(t)}(t);this.slotStyles.forEach((o=>{e.has(o)||(!function(t,e){const o=document.createElement("style");o.textContent=t,e===document?document.head.appendChild(o):e.insertBefore(o,e.firstChild)}(o,t),e.add(o))}))}})),pr=t=>class extends(ur(tr(hr(ar(_s(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,reflectToAttribute:!0,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 clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))),this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))))}_onClearButtonClick(t){t.preventDefault(),this.__clear()}_onClearButtonMouseDown(t){t.preventDefault(),ri||this.inputElement.focus()}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this.__clear())}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__clear(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ii.debounce(this._preventInputDebouncer,Si.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`),this.__allowedTextRegExp=new RegExp(`^${t}*$`)}catch(t){console.error(t)}}}
|
|
3740
3740
|
/**
|
|
3741
3741
|
* @license
|
|
3742
3742
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3756,7 +3756,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3756
3756
|
*
|
|
3757
3757
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3758
3758
|
* license.
|
|
3759
|
-
*/class
|
|
3759
|
+
*/class mr extends Li{constructor(t,e){super(t,"input",(()=>document.createElement("input")),((t,o)=>{t.value&&(o.value=t.value),t.type&&o.setAttribute("type",t.type),o.id=this.defaultId,"function"==typeof e&&e(o)}),!0)}}
|
|
3760
3760
|
/**
|
|
3761
3761
|
* @license
|
|
3762
3762
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3766,7 +3766,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3766
3766
|
*
|
|
3767
3767
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3768
3768
|
* license.
|
|
3769
|
-
*/class
|
|
3769
|
+
*/class fr{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("label-changed",(t=>{this.__initLabel(t.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)}}
|
|
3770
3770
|
/**
|
|
3771
3771
|
* @license
|
|
3772
3772
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3776,7 +3776,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3776
3776
|
*
|
|
3777
3777
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3778
3778
|
* license.
|
|
3779
|
-
*/const
|
|
3779
|
+
*/const _r=e`
|
|
3780
3780
|
[part='clear-button'] {
|
|
3781
3781
|
display: none;
|
|
3782
3782
|
cursor: default;
|
|
@@ -3799,7 +3799,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3799
3799
|
*
|
|
3800
3800
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3801
3801
|
* license.
|
|
3802
|
-
*/,
|
|
3802
|
+
*/,gr=[e`
|
|
3803
3803
|
:host {
|
|
3804
3804
|
display: inline-flex;
|
|
3805
3805
|
outline: none;
|
|
@@ -3848,7 +3848,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3848
3848
|
*
|
|
3849
3849
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3850
3850
|
* license.
|
|
3851
|
-
*/,
|
|
3851
|
+
*/,_r];
|
|
3852
3852
|
/**
|
|
3853
3853
|
* @license
|
|
3854
3854
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3859,7 +3859,7 @@ const ts=At((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3859
3859
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3860
3860
|
* license.
|
|
3861
3861
|
*/
|
|
3862
|
-
class
|
|
3862
|
+
class br{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")}}
|
|
3863
3863
|
/**
|
|
3864
3864
|
* @license
|
|
3865
3865
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3869,7 +3869,7 @@ class bs{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
|
|
|
3869
3869
|
*
|
|
3870
3870
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3871
3871
|
* license.
|
|
3872
|
-
*/const ys=t=>class extends(ni(ts(cs(_r(t))))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,notify:!0,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:!1},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,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,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),o=new Date;let i,r=o.getMonth(),s=o.getFullYear();if(3===e.length){if(r=parseInt(e[0])-1,i=parseInt(e[1]),s=parseInt(e[2]),e[2].length<3&&s>=0){s=function(t,e,o=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let r=e+100*Math.floor(t.getFullYear()/100);return t<new Date(r-50,o,i)?r-=100:t>new Date(r+50,o,i)&&(r+=100),r}(this.referenceDate?Kr(this.referenceDate):new Date,s,r,i)}}else 2===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0]));if(void 0!==i)return{day:i,month:r,year:s}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String},max:{type:String},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:ri},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}static get constraints(){return[...super.constraints,"min","max"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:void 0}set _inputValue(t){this.inputElement&&(this.inputElement.value=t)}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}_onFocus(t){super._onFocus(t),this._noInput&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.autoOpenDisabled&&this._selectParsedOrFocusedDate(),this.validate(),""===this._inputValue&&""!==this.value&&(this.value=""))}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Zr(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new bs(this))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}_propertiesChanged(t,e,o){super._propertiesChanged(t,e,o),"value"in e&&this.__dispatchChange&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChange=!1)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){(this._overlayInitialized||this.autoOpenDisabled)&&this.$.overlay.close()}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",(t=>{this.opened=t.detail.value})),this.$.overlay.addEventListener("vaadin-overlay-escape-press",(()=>{this._focusedDate=this._selectedDate,this._close()})),this._overlayContent.addEventListener("close",(()=>{this._close()})),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this._overlayContent.addEventListener("date-tap",(t=>{this.__userConfirmedDate=!0,this._selectDate(t.detail.date),this._close()})),this._overlayContent.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date,this._selectDate(t.detail.date)})),this._overlayContent.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),this._overlayContent.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}checkValidity(){const t=!this._inputValue||!!this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate),e=!this._selectedDate||qr(this._selectedDate,this._minDate,this._maxDate);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&e&&o}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}_selectDate(t){const e=this._formatISO(t);this.value!==e&&(this.__dispatchChange=!0),this._selectedDate=t}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,o,i,r,s){return!t||e&&(!s||r)||o&&r||!i.parseDate}_formatISO(t){if(!(t instanceof Date))return"";const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let o="",i="0000",r=t.getFullYear();r<0?(r=-r,o="-",i="000000"):t.getFullYear()>=1e4&&(o="+",i="000000");return[o+e(r,i),e(t.getMonth()+1),e(t.getDate())].join("-")}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){t&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=t),this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){if(void 0===t||void 0===e)return;const o=this._formatISO(t);this.__keepInputValue||this._applyInputValue(t),o!==this.value&&(this.validate(),this.value=o),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}__getOverlayTheme(t,e){if(e)return t}_valueChanged(t,e){const o=Kr(t);!t||o?(t?Yr(this._selectedDate,o)||(this._selectedDate=o,void 0!==e&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=e}_onOverlayOpened(){const t=Kr(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;t||qr(e,this._minDate,this._maxDate)?this._overlayContent.initialPosition=e:this._overlayContent.initialPosition=Wr(e,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(this._overlayContent.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&(this.focusElement.blur(),this._overlayContent.focusDateElement())}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputValue||"",e=this._getParsedDate(t);this._isValidDate(e)?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this.validate()}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(t){this._inputValue=t?this._getFormattedDate(this.i18n.formatDate,t):""}_getFormattedDate(t,e){return t(Gr(e))}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_isValidDate(t){return t&&!isNaN(t.getTime())}_onChange(t){""===this._inputValue&&(this.__dispatchChange=!0),t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){this.autoOpenDisabled&&!this._noInput||(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.value="",this._inputValue="",this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_onKeyDown(t){if(super._onKeyDown(t),this._noInput){-1===[9].indexOf(t.keyCode)&&t.preventDefault()}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){const e=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}_onEscape(t){if(!this.opened)return this.clearButtonVisible&&this.value?(t.stopPropagation(),void this._onClearButtonClick(t)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_getParsedDate(t=this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(t);return e&&Kr(`${e.year}-${e.month+1}-${e.day}`)}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this.inputElement.value||this.autoOpenDisabled||this.open(),this._userInputValueChanged()}_userInputValueChanged(){if(this._inputValue){const t=this._getParsedDate();this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,Yr(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}__computeMinOrMaxDate(t){return Kr(t)}}
|
|
3872
|
+
*/const yr=t=>class extends(ni(tr(hr(_s(t))))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,notify:!0,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:!1},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,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,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),o=new Date;let i,s=o.getMonth(),r=o.getFullYear();if(3===e.length){if(s=parseInt(e[0])-1,i=parseInt(e[1]),r=parseInt(e[2]),e[2].length<3&&r>=0){r=function(t,e,o=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let s=e+100*Math.floor(t.getFullYear()/100);return t<new Date(s-50,o,i)?s-=100:t>new Date(s+50,o,i)&&(s+=100),s}(this.referenceDate?Ks(this.referenceDate):new Date,r,s,i)}}else 2===e.length?(s=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0]));if(void 0!==i)return{day:i,month:s,year:r}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String},max:{type:String},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:si},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}static get constraints(){return[...super.constraints,"min","max"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:void 0}set _inputValue(t){this.inputElement&&(this.inputElement.value=t)}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}_onFocus(t){super._onFocus(t),this._noInput&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.autoOpenDisabled&&this._selectParsedOrFocusedDate(),this.validate(),""===this._inputValue&&""!==this.value&&(this.value=""))}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Zs(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new br(this))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}_propertiesChanged(t,e,o){super._propertiesChanged(t,e,o),"value"in e&&this.__dispatchChange&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChange=!1)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){(this._overlayInitialized||this.autoOpenDisabled)&&this.$.overlay.close()}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",(t=>{this.opened=t.detail.value})),this.$.overlay.addEventListener("vaadin-overlay-escape-press",(()=>{this._focusedDate=this._selectedDate,this._close()})),this._overlayContent.addEventListener("close",(()=>{this._close()})),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this._overlayContent.addEventListener("date-tap",(t=>{this.__userConfirmedDate=!0,this._selectDate(t.detail.date),this._close()})),this._overlayContent.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date,this._selectDate(t.detail.date)})),this._overlayContent.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),this._overlayContent.addEventListener("click",(t=>t.stopPropagation())),this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}checkValidity(){const t=!this._inputValue||!!this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate),e=!this._selectedDate||qs(this._selectedDate,this._minDate,this._maxDate);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&e&&o}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}_selectDate(t){const e=this._formatISO(t);this.value!==e&&(this.__dispatchChange=!0),this._selectedDate=t}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,o,i,s,r){return!t||e&&(!r||s)||o&&s||!i.parseDate}_formatISO(t){if(!(t instanceof Date))return"";const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let o="",i="0000",s=t.getFullYear();s<0?(s=-s,o="-",i="000000"):t.getFullYear()>=1e4&&(o="+",i="000000");return[o+e(s,i),e(t.getMonth()+1),e(t.getDate())].join("-")}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){t&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=t),this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){if(void 0===t||void 0===e)return;const o=this._formatISO(t);this.__keepInputValue||this._applyInputValue(t),o!==this.value&&(this.validate(),this.value=o),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}__getOverlayTheme(t,e){if(e)return t}_valueChanged(t,e){const o=Ks(t);!t||o?(t?Ys(this._selectedDate,o)||(this._selectedDate=o,void 0!==e&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=e}_onOverlayOpened(){const t=Ks(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;t||qs(e,this._minDate,this._maxDate)?this._overlayContent.initialPosition=e:this._overlayContent.initialPosition=Ws(e,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(this._overlayContent.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&(this.focusElement.blur(),this._overlayContent.focusDateElement())}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputValue||"",e=this._getParsedDate(t);this._isValidDate(e)?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this.validate()}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(t){this._inputValue=t?this._getFormattedDate(this.i18n.formatDate,t):""}_getFormattedDate(t,e){return t(Gs(e))}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_isValidDate(t){return t&&!isNaN(t.getTime())}_onChange(t){""===this._inputValue&&(this.__dispatchChange=!0),t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){this.autoOpenDisabled&&!this._noInput||(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.value="",this._inputValue="",this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_onKeyDown(t){if(super._onKeyDown(t),this._noInput){-1===[9].indexOf(t.keyCode)&&t.preventDefault()}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){const e=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}_onEscape(t){if(!this.opened)return this.clearButtonVisible&&this.value?(t.stopPropagation(),void this._onClearButtonClick(t)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_getParsedDate(t=this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(t);return e&&Ks(`${e.year}-${e.month+1}-${e.day}`)}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this.inputElement.value||this.autoOpenDisabled||this.open(),this._userInputValueChanged()}_userInputValueChanged(){if(this._inputValue){const t=this._getParsedDate();this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,Ys(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}__computeMinOrMaxDate(t){return Ks(t)}}
|
|
3873
3873
|
/**
|
|
3874
3874
|
* @license
|
|
3875
3875
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3879,7 +3879,7 @@ class bs{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
|
|
|
3879
3879
|
*
|
|
3880
3880
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3881
3881
|
* license.
|
|
3882
|
-
*/;H("vaadin-date-picker",[
|
|
3882
|
+
*/;H("vaadin-date-picker",[gr,zs],{moduleId:"vaadin-date-picker-styles"});class vr extends(yr(pr(q(Mi(_o))))){static get is(){return"vaadin-date-picker"}static get template(){return mo`
|
|
3883
3883
|
<style>
|
|
3884
3884
|
:host([opened]) {
|
|
3885
3885
|
pointer-events: auto;
|
|
@@ -3942,7 +3942,7 @@ class bs{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
|
|
|
3942
3942
|
</vaadin-date-picker-overlay>
|
|
3943
3943
|
|
|
3944
3944
|
<slot name="tooltip"></slot>
|
|
3945
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
3945
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new mr(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new fr(this.inputElement,this._labelController)),this._tooltipController=new Fi(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setShouldShow((t=>!t.opened));this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(t=>t.preventDefault()))}_initOverlay(){super._initOverlay(),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[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}customElements.define(vr.is,vr),
|
|
3946
3946
|
/**
|
|
3947
3947
|
* @license
|
|
3948
3948
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3953,14 +3953,14 @@ class bs{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
|
|
|
3953
3953
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3954
3954
|
* license.
|
|
3955
3955
|
*/
|
|
3956
|
-
console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprecated. Use "@vaadin/date-picker" instead.');class
|
|
3956
|
+
console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprecated. Use "@vaadin/date-picker" instead.');class wr extends t{static{this.styles=e`
|
|
3957
3957
|
:host {
|
|
3958
3958
|
display: block;
|
|
3959
3959
|
font-family: sans-serif;
|
|
3960
3960
|
}
|
|
3961
3961
|
`}render(){return o`
|
|
3962
3962
|
<vaadin-date-picker label="Select a date"></vaadin-date-picker>
|
|
3963
|
-
`}}customElements.define("my-date-picker",
|
|
3963
|
+
`}}customElements.define("my-date-picker",wr);let xr=class extends t{constructor(){super(...arguments),this.value="",this.size="md",this.icon=null,this.helper=null,this.error=!1,this.errorMessage="",this.success=!1,this.disabled=!1,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=e`
|
|
3964
3964
|
:host {
|
|
3965
3965
|
display: block;
|
|
3966
3966
|
font-family: 'Graphik', sans-serif;
|
|
@@ -4210,19 +4210,19 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4210
4210
|
`}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}render(){const t=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type;return o`
|
|
4211
4211
|
<div
|
|
4212
4212
|
class="form ${this.error?"error":""} ${this.success?"success":""} ${this.disabled?"disabled":""}"
|
|
4213
|
-
style=${this.labelColor?`--label-color: ${this.labelColor}`:
|
|
4213
|
+
style=${this.labelColor?`--label-color: ${this.labelColor}`:s}
|
|
4214
4214
|
>
|
|
4215
4215
|
${this.label?o`
|
|
4216
4216
|
<div class="label-container">
|
|
4217
4217
|
<label class="form-label">${this.label}</label>
|
|
4218
4218
|
${this.tooltipMessage?.trim()?o`<div class="tooltip-wrapper">
|
|
4219
4219
|
<randstad-icon class="help-icon" name="ayuda" size="20px" color="#2175D9"></randstad-icon>
|
|
4220
|
-
</div>`:
|
|
4220
|
+
</div>`:s}
|
|
4221
4221
|
</div>
|
|
4222
|
-
`:
|
|
4222
|
+
`:s}
|
|
4223
4223
|
|
|
4224
4224
|
<div class="form-container">
|
|
4225
|
-
${"left"===this.icon?o`<span class="icon left"></span>`:
|
|
4225
|
+
${"left"===this.icon?o`<span class="icon left"></span>`:s}
|
|
4226
4226
|
|
|
4227
4227
|
<div class="input-with-button">
|
|
4228
4228
|
${"textarea"===this.type?o`
|
|
@@ -4240,32 +4240,32 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4240
4240
|
.value=${this.value}
|
|
4241
4241
|
?disabled=${this.disabled}
|
|
4242
4242
|
@input=${this.handleInput}
|
|
4243
|
-
maxlength=${this.maxLength??
|
|
4243
|
+
maxlength=${this.maxLength??s}
|
|
4244
4244
|
/>
|
|
4245
4245
|
|
|
4246
4246
|
${"password"===this.type?o`<button type="button" class="toggle-password" @click=${this.togglePassword}>
|
|
4247
4247
|
${this.isPasswordVisible?o`<randstad-icon name='eye_crossed' size="24px" color="#2175D9"></randstad-icon>`:o`<randstad-icon name='eye' size="24px" color="#2175D9"></randstad-icon>`}
|
|
4248
|
-
</button>`:
|
|
4248
|
+
</button>`:s}
|
|
4249
4249
|
|
|
4250
4250
|
${t?o`<button type="button" class="clean-button" @click=${this.handleClear}>
|
|
4251
4251
|
<randstad-icon name="close" size="24px" color="#2175D9"></randstad-icon>
|
|
4252
|
-
</button>`:
|
|
4252
|
+
</button>`:s}
|
|
4253
4253
|
`}
|
|
4254
4254
|
</div>
|
|
4255
4255
|
|
|
4256
|
-
${"right"===this.icon?o`<span class="icon right"></span>`:
|
|
4256
|
+
${"right"===this.icon?o`<span class="icon right"></span>`:s}
|
|
4257
4257
|
</div>
|
|
4258
4258
|
|
|
4259
4259
|
${this.error?o`
|
|
4260
4260
|
<p class="error-message">
|
|
4261
4261
|
${this.errorMessage?this.errorMessage:o`<slot name="error-extended"></slot>`}
|
|
4262
|
-
</p>`:
|
|
4262
|
+
</p>`:s}
|
|
4263
4263
|
|
|
4264
|
-
${this.linkText&&this.linkRoute?o`<a class="link-text" href="#" @click=${this.handleLinkClick}>${this.linkText}</a>`:
|
|
4264
|
+
${this.linkText&&this.linkRoute?o`<a class="link-text" href="#" @click=${this.handleLinkClick}>${this.linkText}</a>`:s}
|
|
4265
4265
|
|
|
4266
|
-
${this.helper?o`<p class="helper-description">${this.helper}</p>`:
|
|
4266
|
+
${this.helper?o`<p class="helper-description">${this.helper}</p>`:s}
|
|
4267
4267
|
</div>
|
|
4268
|
-
`}};n([I({type:String}),a("design:type",String)],
|
|
4268
|
+
`}};n([I({type:String}),a("design:type",String)],xr.prototype,"placeholder",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"label",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"labelColor",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"value",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],xr.prototype,"icon",void 0),n([I({type:String}),a("design:type",Object)],xr.prototype,"helper",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xr.prototype,"error",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"errorMessage",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xr.prototype,"success",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xr.prototype,"disabled",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xr.prototype,"typing",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"type",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"tooltipMessage",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"linkText",void 0),n([I({type:String}),a("design:type",String)],xr.prototype,"linkRoute",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],xr.prototype,"isPasswordVisible",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xr.prototype,"cleanButton",void 0),n([I({type:Number}),a("design:type",Number)],xr.prototype,"maxLength",void 0),xr=n([l("randstad-form")],xr);class Cr extends t{static{this.styles=e`
|
|
4269
4269
|
:host {
|
|
4270
4270
|
display: inline-flex;
|
|
4271
4271
|
width: var(--icon-size, 24px);
|
|
@@ -4278,34 +4278,57 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4278
4278
|
height: var(--icon-size, 24px); /* Tamaño fijo basado en size */
|
|
4279
4279
|
fill: var(--icon-color, currentColor);
|
|
4280
4280
|
}
|
|
4281
|
-
`}constructor(){super(),this.name="",this.size="24px",this.color=""}connectedCallback(){super.connectedCallback(),this.name&&this.loadIcon()}updated(t){t.has("name")&&this.name&&this.loadIcon(),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color)}async loadIcon(){if(this.name)try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");const e=await t.text(),o=new DOMParser,i=o.parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)throw new Error("No se encontró un elemento SVG válido");i.removeAttribute("fill"),i.setAttribute("width",this.size||"24px"),i.setAttribute("height",this.size||"24px"),this.renderRoot.innerHTML="",this.renderRoot.appendChild(i)}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.renderRoot.innerHTML="<span>⚠️</span>"}else this.renderRoot.innerHTML=""}render(){return null}}n([I({type:String}),a("design:type",String)],
|
|
4281
|
+
`}constructor(){super(),this.name="",this.size="24px",this.color=""}connectedCallback(){super.connectedCallback(),this.name&&this.loadIcon()}updated(t){t.has("name")&&this.name&&this.loadIcon(),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color)}async loadIcon(){if(this.name)try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");const e=await t.text(),o=new DOMParser,i=o.parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)throw new Error("No se encontró un elemento SVG válido");i.removeAttribute("fill"),i.setAttribute("width",this.size||"24px"),i.setAttribute("height",this.size||"24px"),this.renderRoot.innerHTML="",this.renderRoot.appendChild(i)}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.renderRoot.innerHTML="<span>⚠️</span>"}else this.renderRoot.innerHTML=""}render(){return null}}n([I({type:String}),a("design:type",String)],Cr.prototype,"name",void 0),n([I({type:String}),a("design:type",String)],Cr.prototype,"size",void 0),n([I({type:String}),a("design:type",String)],Cr.prototype,"color",void 0),customElements.define("randstad-icon",Cr);let kr=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.scrollable=!1}static{this.styles=e`
|
|
4282
4282
|
:host {
|
|
4283
4283
|
display: none;
|
|
4284
|
-
|
|
4284
|
+
}
|
|
4285
|
+
|
|
4286
|
+
:host([open]) {
|
|
4287
|
+
display: block;
|
|
4285
4288
|
z-index: 9999;
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
.overlay {
|
|
4292
|
+
position: fixed;
|
|
4286
4293
|
top: 0;
|
|
4287
4294
|
left: 0;
|
|
4288
4295
|
width: 100vw;
|
|
4289
|
-
height: 100vh;
|
|
4290
4296
|
background: rgba(0, 0, 0, 0.5);
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
font-family: "Graphik", sans-serif;
|
|
4297
|
+
overflow-y: auto;
|
|
4298
|
+
padding: 40px 16px;
|
|
4294
4299
|
}
|
|
4295
4300
|
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4301
|
+
.overlay.scroll {
|
|
4302
|
+
display: flex;
|
|
4303
|
+
align-items: center;
|
|
4304
|
+
justify-content: center;
|
|
4305
|
+
height: 100%;
|
|
4306
|
+
}
|
|
4299
4307
|
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4308
|
+
.overlay.no-scroll {
|
|
4309
|
+
display: block;
|
|
4310
|
+
height: auto;
|
|
4311
|
+
min-height: 100vh;
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
.modal {
|
|
4315
|
+
background: #f7f5f0;
|
|
4316
|
+
width: 100%;
|
|
4317
|
+
max-width: 500px;
|
|
4318
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
4319
|
+
display: flex;
|
|
4320
|
+
flex-direction: column;
|
|
4321
|
+
margin: 40px auto;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
.modal.scrollable {
|
|
4325
|
+
max-height: 90vh;
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
.modal-body.scrollable {
|
|
4329
|
+
overflow-y: auto;
|
|
4330
|
+
flex: 1;
|
|
4331
|
+
}
|
|
4309
4332
|
|
|
4310
4333
|
.modal-header {
|
|
4311
4334
|
display: flex;
|
|
@@ -4317,7 +4340,6 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4317
4340
|
|
|
4318
4341
|
h3 {
|
|
4319
4342
|
margin: 0;
|
|
4320
|
-
font-family: Graphik;
|
|
4321
4343
|
font-weight: 400;
|
|
4322
4344
|
font-size: 20px;
|
|
4323
4345
|
line-height: 30px;
|
|
@@ -4335,29 +4357,38 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4335
4357
|
}
|
|
4336
4358
|
|
|
4337
4359
|
.modal-body {
|
|
4360
|
+
padding: 20px 25px;
|
|
4361
|
+
}
|
|
4362
|
+
|
|
4363
|
+
.modal-body.scrollable {
|
|
4364
|
+
overflow-y: auto;
|
|
4338
4365
|
flex: 1;
|
|
4339
4366
|
}
|
|
4340
4367
|
|
|
4341
4368
|
.modal-footer {
|
|
4342
4369
|
display: flex;
|
|
4343
4370
|
justify-content: flex-end;
|
|
4371
|
+
padding: 20px 25px;
|
|
4372
|
+
border-top: 1px solid #E0E0E0;
|
|
4344
4373
|
}
|
|
4345
|
-
`}closeModal(){this.dispatchEvent(new CustomEvent("modal-close"
|
|
4346
|
-
|
|
4374
|
+
`}closeModal(){this.dispatchEvent(new CustomEvent("modal-close")),this.open=!1}render(){return o`
|
|
4375
|
+
<div class="overlay ${this.scrollable?"scroll":"no-scroll"}">
|
|
4376
|
+
<div class="modal ${this.scrollable?"scrollable":""}">
|
|
4347
4377
|
<div class="modal-header">
|
|
4348
4378
|
<h3>${this.title}</h3>
|
|
4349
|
-
<button class="modal-close" @click
|
|
4379
|
+
<button class="modal-close" @click=${this.closeModal} aria-label="Cerrar modal">
|
|
4350
4380
|
<randstad-icon name="close" size="24px"></randstad-icon>
|
|
4351
4381
|
</button>
|
|
4352
4382
|
</div>
|
|
4353
|
-
<div class="modal-body">
|
|
4383
|
+
<div class="modal-body ${this.scrollable?"scrollable":""}">
|
|
4354
4384
|
<slot name="content"></slot>
|
|
4355
4385
|
</div>
|
|
4356
4386
|
<div class="modal-footer">
|
|
4357
4387
|
<slot name="confirm-button"></slot>
|
|
4358
4388
|
</div>
|
|
4359
4389
|
</div>
|
|
4360
|
-
|
|
4390
|
+
</div>
|
|
4391
|
+
`}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],kr.prototype,"open",void 0),n([I({type:String}),a("design:type",Object)],kr.prototype,"title",void 0),n([I({type:Boolean}),a("design:type",Object)],kr.prototype,"scrollable",void 0),kr=n([l("custom-modal")],kr);class Ar extends t{static{this.styles=e`
|
|
4361
4392
|
:host {
|
|
4362
4393
|
display: block;
|
|
4363
4394
|
border-radius: 4px;
|
|
@@ -4407,7 +4438,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4407
4438
|
<randstad-icon class="icon" name="${this.icon}" size="24px" style="color: var(--icon-color);"></randstad-icon>
|
|
4408
4439
|
<span class="message">${this.message}</span>
|
|
4409
4440
|
</div>
|
|
4410
|
-
`}}customElements.define("randstad-notice",
|
|
4441
|
+
`}}customElements.define("randstad-notice",Ar);let Er=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No"}static{this.styles=e`
|
|
4411
4442
|
:host {
|
|
4412
4443
|
display: none;
|
|
4413
4444
|
position: fixed;
|
|
@@ -4497,132 +4528,18 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4497
4528
|
</div>
|
|
4498
4529
|
`}
|
|
4499
4530
|
</div>
|
|
4500
|
-
`}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],
|
|
4501
|
-
/**
|
|
4502
|
-
* @license
|
|
4503
|
-
* Copyright 2017 Google LLC
|
|
4504
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4505
|
-
*/
|
|
4506
|
-
const Ps=globalThis,Ss=Ps.trustedTypes,Ds=Ss?Ss.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ts="$lit$",Os=`lit$${Math.random().toFixed(9).slice(2)}$`,Is="?"+Os,$s=`<${Is}>`,Ns=document,zs=()=>Ns.createComment(""),Ms=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ls=Array.isArray,Fs="[ \t\n\f\r]",Rs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Bs=/>/g,Vs=RegExp(`>|${Fs}(?:([^\\s"'>=/]+)(${Fs}*=${Fs}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,Us=/"/g,Ys=/^(?:script|style|textarea|title)$/i,qs=Symbol.for("lit-noChange"),Ws=Symbol.for("lit-nothing"),Gs=new WeakMap,Ks=Ns.createTreeWalker(Ns,129);function Xs(t,e){if(!Ls(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ds?Ds.createHTML(e):e}const Js=(t,e)=>{const o=t.length-1,i=[];let r,s=2===e?"<svg>":3===e?"<math>":"",n=Rs;for(let e=0;e<o;e++){const o=t[e];let a,l,d=-1,c=0;for(;c<o.length&&(n.lastIndex=c,l=n.exec(o),null!==l);)c=n.lastIndex,n===Rs?"!--"===l[1]?n=Hs:void 0!==l[1]?n=Bs:void 0!==l[2]?(Ys.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=Vs):void 0!==l[3]&&(n=Vs):n===Vs?">"===l[0]?(n=r??Rs,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Vs:'"'===l[3]?Us:js):n===Us||n===js?n=Vs:n===Hs||n===Bs?n=Rs:(n=Vs,r=void 0);const h=n===Vs&&t[e+1].startsWith("/>")?" ":"";s+=n===Rs?o+$s:d>=0?(i.push(a),o.slice(0,d)+Ts+o.slice(d)+Os+h):o+Os+(-2===d?e:h)}return[Xs(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Zs{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,d]=Js(t,e);if(this.el=Zs.createElement(l,o),Ks.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ks.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Ts)){const e=d[s++],o=i.getAttribute(t).split(Os),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?rn:"?"===n[1]?sn:"@"===n[1]?nn:on}),i.removeAttribute(t)}else t.startsWith(Os)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(Ys.test(i.tagName)){const t=i.textContent.split(Os),e=t.length-1;if(e>0){i.textContent=Ss?Ss.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],zs()),Ks.nextNode(),a.push({type:2,index:++r});i.append(t[e],zs())}}}else if(8===i.nodeType)if(i.data===Is)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Os,t+1));)a.push({type:7,index:r}),t+=Os.length-1}r++}}static createElement(t,e){const o=Ns.createElement("template");return o.innerHTML=t,o}}function Qs(t,e,o=t,i){if(e===qs)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const s=Ms(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),void 0===s?r=void 0:(r=new s(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Qs(t,r._$AS(t,e.values),r,i)),e}class tn{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){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Ns).importNode(e,!0);Ks.currentNode=i;let r=Ks.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new en(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new an(r,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(r=Ks.nextNode(),s++)}return Ks.currentNode=Ns,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class en{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Ws,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Qs(this,t,e),Ms(t)?t===Ws||null==t||""===t?(this._$AH!==Ws&&this._$AR(),this._$AH=Ws):t!==this._$AH&&t!==qs&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Ls(t)||"function"==typeof t?.[Symbol.iterator])(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!==Ws&&Ms(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ns.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Zs.createElement(Xs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new tn(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Gs.get(t.strings);return void 0===e&&Gs.set(t.strings,e=new Zs(t)),e}k(t){Ls(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new en(this.O(zs()),this.O(zs()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class on{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Ws,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Ws}_$AI(t,e=this,o,i){const r=this.strings;let s=!1;if(void 0===r)t=Qs(this,t,e,0),s=!Ms(t)||t!==this._$AH&&t!==qs,s&&(this._$AH=t);else{const i=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Qs(this,i[o+n],e,n),a===qs&&(a=this._$AH[n]),s||=!Ms(a)||a!==this._$AH[n],a===Ws?t=Ws:t!==Ws&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}s&&!i&&this.j(t)}j(t){t===Ws?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class rn extends on{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ws?void 0:t}}class sn extends on{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ws)}}class nn extends on{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Qs(this,t,e,0)??Ws)===qs)return;const o=this._$AH,i=t===Ws&&o!==Ws||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Ws&&(o===Ws||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class an{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Qs(this,t)}}const ln=Ps.litHtmlPolyfillSupport;ln?.(Zs,en),(Ps.litHtmlVersions??=[]).push("3.2.1");
|
|
4507
|
-
/**
|
|
4508
|
-
* @license
|
|
4509
|
-
* Copyright 2017 Google LLC
|
|
4510
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4511
|
-
*/
|
|
4512
|
-
const dn=1;class cn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
4513
|
-
/**
|
|
4514
|
-
* @license
|
|
4515
|
-
* Copyright 2018 Google LLC
|
|
4516
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4517
|
-
*/const hn=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends cn{constructor(t){if(super(t),t.type!==dn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.st)t in e||(o.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return qs}}),un=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],pn=un.map(fn);
|
|
4518
|
-
/**
|
|
4519
|
-
* @license
|
|
4520
|
-
* Copyright 2023 Google LLC
|
|
4521
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4522
|
-
*/function mn(t){return pn.includes(t)}function fn(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}
|
|
4523
|
-
/**
|
|
4524
|
-
* @license
|
|
4525
|
-
* Copyright 2023 Google LLC
|
|
4526
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4527
|
-
*/const _n=Symbol("privateIgnoreAttributeChangesFor");function gn(t){return`data-${t}`}function bn(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}
|
|
4528
|
-
/**
|
|
4529
|
-
* @license
|
|
4530
|
-
* Copyright 2023 Google LLC
|
|
4531
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4532
|
-
*/const yn=function(t){var e;if(s)return t;class o extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(t,e,o){if(!mn(t))return void super.attributeChangedCallback(t,e,o);if(this[_n].has(t))return;this[_n].add(t),this.removeAttribute(t),this[_n].delete(t);const i=bn(t);null===o?delete this.dataset[i]:this.dataset[i]=o,this.requestUpdate(bn(t),e)}getAttribute(t){return mn(t)?super.getAttribute(gn(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),mn(t)&&(super.removeAttribute(gn(t)),this.requestUpdate())}}return e=_n,function(t){for(const e of un){const o=fn(e),i=gn(o),r=bn(o);t.createProperty(e,{attribute:o,noAccessor:!0}),t.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[r]??null},set(t){const o=this.dataset[r]??null;t!==o&&(null===t?delete this.dataset[r]:this.dataset[r]=t,this.requestUpdate(e,o))}})}}(o),o}(t);class vn extends yn{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:t}=this;return o`
|
|
4533
|
-
<div
|
|
4534
|
-
class="progress ${hn(this.getRenderClasses())}"
|
|
4535
|
-
role="progressbar"
|
|
4536
|
-
aria-label="${t||r}"
|
|
4537
|
-
aria-valuemin="0"
|
|
4538
|
-
aria-valuemax=${this.max}
|
|
4539
|
-
aria-valuenow=${this.indeterminate?r:this.value}
|
|
4540
|
-
>${this.renderIndicator()}</div
|
|
4541
|
-
>
|
|
4542
|
-
`}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}n([I({type:Number})],vn.prototype,"value",void 0),n([I({type:Number})],vn.prototype,"max",void 0),n([I({type:Boolean})],vn.prototype,"indeterminate",void 0),n([I({type:Boolean,attribute:"four-color"})],vn.prototype,"fourColor",void 0);
|
|
4543
|
-
/**
|
|
4544
|
-
* @license
|
|
4545
|
-
* Copyright 2023 Google LLC
|
|
4546
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4547
|
-
*/
|
|
4548
|
-
class wn extends vn{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){const t=100*(1-this.value/this.max);return o`
|
|
4549
|
-
<svg viewBox="0 0 4800 4800">
|
|
4550
|
-
<circle class="track" pathLength="100"></circle>
|
|
4551
|
-
<circle
|
|
4552
|
-
class="active-track"
|
|
4553
|
-
pathLength="100"
|
|
4554
|
-
stroke-dashoffset=${t}></circle>
|
|
4555
|
-
</svg>
|
|
4556
|
-
`}renderIndeterminateContainer(){return o` <div class="spinner">
|
|
4557
|
-
<div class="left">
|
|
4558
|
-
<div class="circle"></div>
|
|
4559
|
-
</div>
|
|
4560
|
-
<div class="right">
|
|
4561
|
-
<div class="circle"></div>
|
|
4562
|
-
</div>
|
|
4563
|
-
</div>`}}
|
|
4564
|
-
/**
|
|
4565
|
-
* @license
|
|
4566
|
-
* Copyright 2024 Google LLC
|
|
4567
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4568
|
-
*/const xn=e`:host{--_active-indicator-color: var(--md-circular-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-width: var(--md-circular-progress-active-indicator-width, 10);--_four-color-active-indicator-four-color: var(--md-circular-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-circular-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-circular-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-circular-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_size: var(--md-circular-progress-size, 48px);display:inline-flex;vertical-align:middle;width:var(--_size);height:var(--_size);position:relative;align-items:center;justify-content:center;contain:strict;content-visibility:auto}.progress{flex:1;align-self:stretch;margin:4px}.progress,.spinner,.left,.right,.circle,svg,.track,.active-track{position:absolute;inset:0}svg{transform:rotate(-90deg)}circle{cx:50%;cy:50%;r:calc(50%*(1 - var(--_active-indicator-width)/100));stroke-width:calc(var(--_active-indicator-width)*1%);stroke-dasharray:100;fill:rgba(0,0,0,0)}.active-track{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1);stroke:var(--_active-indicator-color)}.track{stroke:rgba(0,0,0,0)}.progress.indeterminate{animation:linear infinite linear-rotate;animation-duration:1568.2352941176ms}.spinner{animation:infinite both rotate-arc;animation-duration:5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.left{overflow:hidden;inset:0 50% 0 0}.right{overflow:hidden;inset:0 0 0 50%}.circle{box-sizing:border-box;border-radius:50%;border:solid calc(var(--_active-indicator-width)/100*(var(--_size) - 8px));border-color:var(--_active-indicator-color) var(--_active-indicator-color) rgba(0,0,0,0) rgba(0,0,0,0);animation:expand-arc;animation-iteration-count:infinite;animation-fill-mode:both;animation-duration:1333ms,5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.four-color .circle{animation-name:expand-arc,four-color}.left .circle{rotate:135deg;inset:0 -100% 0 0}.right .circle{rotate:100deg;inset:0 0 0 -100%;animation-delay:-666.5ms,0ms}@media(forced-colors: active){.active-track{stroke:CanvasText}.circle{border-color:CanvasText CanvasText Canvas Canvas}}@keyframes expand-arc{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes rotate-arc{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes linear-rotate{to{transform:rotate(360deg)}}@keyframes four-color{0%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}15%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}25%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}40%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}50%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}65%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}75%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}90%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}100%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}}
|
|
4569
|
-
`
|
|
4570
|
-
/**
|
|
4571
|
-
* @license
|
|
4572
|
-
* Copyright 2023 Google LLC
|
|
4573
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4574
|
-
*/;let Cn=class extends wn{};Cn.styles=[xn],Cn=n([l("md-circular-progress")],Cn);let kn=class extends t{constructor(){super(...arguments),this.steps=10,this.currentStep=0,this.size="60px"}static{this.styles=e`
|
|
4575
|
-
:host {
|
|
4576
|
-
display: inline-flex;
|
|
4577
|
-
justify-content: center;
|
|
4578
|
-
align-items: center;
|
|
4579
|
-
position: relative;
|
|
4580
|
-
}
|
|
4581
|
-
.container {
|
|
4582
|
-
position: relative;
|
|
4583
|
-
display: flex;
|
|
4584
|
-
justify-content: center;
|
|
4585
|
-
align-items: center;
|
|
4586
|
-
width: var(--progress-size, 60px);
|
|
4587
|
-
height: var(--progress-size, 60px);
|
|
4588
|
-
}
|
|
4589
|
-
md-circular-progress {
|
|
4590
|
-
--md-circular-progress-size: var(--progress-size, 60px);
|
|
4591
|
-
position: absolute;
|
|
4592
|
-
top: 0;
|
|
4593
|
-
left: 0;
|
|
4594
|
-
}
|
|
4595
|
-
.progress-text {
|
|
4596
|
-
font-family: "Graphik", sans-serif;
|
|
4597
|
-
color: #404767;
|
|
4598
|
-
z-index: 1;
|
|
4599
|
-
text-align: center;
|
|
4600
|
-
/* Ajusta el tamaño máximo del texto al 70% del círculo */
|
|
4601
|
-
max-width: calc(var(--progress-size, 60px) * 0.7);
|
|
4602
|
-
font-size: calc(var(--progress-size, 60px) * 0.3); /* Tamaño base */
|
|
4603
|
-
overflow: hidden; /* Evita desbordamiento */
|
|
4604
|
-
white-space: nowrap; /* Mantiene el texto en una línea */
|
|
4605
|
-
}
|
|
4606
|
-
`}getProgressValue(){return this.steps>0?this.currentStep/this.steps:0}render(){const t=this.getProgressValue();return o`
|
|
4607
|
-
<div class="container" style="--progress-size: ${this.size};">
|
|
4608
|
-
<md-circular-progress
|
|
4609
|
-
.value="${t}"
|
|
4610
|
-
style="width: ${this.size}; height: ${this.size};"
|
|
4611
|
-
></md-circular-progress>
|
|
4612
|
-
<span class="progress-text">${this.currentStep} de ${this.steps}</span>
|
|
4613
|
-
</div>
|
|
4614
|
-
`}updated(t){if(t.has("size")||t.has("steps")||t.has("currentStep")){const t=this.shadowRoot?.querySelector(".progress-text"),e=this.shadowRoot?.querySelector(".container");if(t&&e){const o=parseFloat(getComputedStyle(e).width),i=t.scrollWidth;if(i>.7*o){const e=.7*o/i;t.style.fontSize=`calc(var(--progress-size, 60px) * 0.3 * ${e})`}}}}};n([I({type:Number}),a("design:type",Object)],kn.prototype,"steps",void 0),n([I({type:Number}),a("design:type",Object)],kn.prototype,"currentStep",void 0),n([I({type:String}),a("design:type",Object)],kn.prototype,"size",void 0),kn=n([l("my-circular-progress")],kn);
|
|
4531
|
+
`}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],Er.prototype,"open",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"type",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"icon",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"title",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"description",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"width",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"buttonText",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"confirmText",void 0),n([I({type:String}),a("design:type",Object)],Er.prototype,"cancelText",void 0),Er=n([l("custom-popup")],Er);
|
|
4615
4532
|
/**
|
|
4616
4533
|
* @license
|
|
4617
4534
|
* Copyright 2023 Google LLC
|
|
4618
4535
|
* SPDX-License-Identifier: Apache-2.0
|
|
4619
4536
|
*/
|
|
4620
|
-
const
|
|
4537
|
+
const Pr=Symbol("attachableController");let Sr;r||(Sr=new MutationObserver((t=>{for(const e of t)e.target[Pr]?.hostConnected()})));class Dr{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){null===t?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[Pr]=this,Sr?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}
|
|
4621
4538
|
/**
|
|
4622
4539
|
* @license
|
|
4623
4540
|
* Copyright 2021 Google LLC
|
|
4624
4541
|
* SPDX-License-Identifier: Apache-2.0
|
|
4625
|
-
*/const
|
|
4542
|
+
*/const Tr=["focusin","focusout","pointerdown"];class Or extends t{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Dr(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[Ir]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[Ir]=!0}}onControlChange(t,e){if(!r)for(const o of Tr)t?.removeEventListener(o,this),e?.addEventListener(o,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}n([I({type:Boolean,reflect:!0})],Or.prototype,"visible",void 0),n([I({type:Boolean,reflect:!0})],Or.prototype,"inward",void 0);const Ir=Symbol("handledByFocusRing"),$r=e`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
4626
4543
|
`
|
|
4627
4544
|
/**
|
|
4628
4545
|
* @license
|
|
@@ -4633,81 +4550,92 @@ const An=Symbol("attachableController");let En;s||(En=new MutationObserver((t=>{
|
|
|
4633
4550
|
* @license
|
|
4634
4551
|
* Copyright 2024 Google LLC
|
|
4635
4552
|
* SPDX-License-Identifier: Apache-2.0
|
|
4636
|
-
*/let
|
|
4553
|
+
*/let Nr=class extends Or{};Nr.styles=[$r],Nr=n([l("md-focus-ring")],Nr);
|
|
4637
4554
|
/**
|
|
4638
4555
|
* @license
|
|
4639
|
-
* Copyright
|
|
4640
|
-
* SPDX-License-Identifier:
|
|
4556
|
+
* Copyright 2017 Google LLC
|
|
4557
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4641
4558
|
*/
|
|
4642
|
-
const $n="
|
|
4559
|
+
const Mr=globalThis,zr=Mr.trustedTypes,Lr=zr?zr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fr="$lit$",Rr=`lit$${Math.random().toFixed(9).slice(2)}$`,Hr="?"+Rr,Br=`<${Hr}>`,Vr=document,jr=()=>Vr.createComment(""),Ur=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yr=Array.isArray,qr="[ \t\n\f\r]",Wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gr=/-->/g,Kr=/>/g,Xr=RegExp(`>|${qr}(?:([^\\s"'>=/]+)(${qr}*=${qr}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Jr=/'/g,Zr=/"/g,Qr=/^(?:script|style|textarea|title)$/i,tn=Symbol.for("lit-noChange"),en=Symbol.for("lit-nothing"),on=new WeakMap,sn=Vr.createTreeWalker(Vr,129);function rn(t,e){if(!Yr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Lr?Lr.createHTML(e):e}const nn=(t,e)=>{const o=t.length-1,i=[];let s,r=2===e?"<svg>":3===e?"<math>":"",n=Wr;for(let e=0;e<o;e++){const o=t[e];let a,l,d=-1,h=0;for(;h<o.length&&(n.lastIndex=h,l=n.exec(o),null!==l);)h=n.lastIndex,n===Wr?"!--"===l[1]?n=Gr:void 0!==l[1]?n=Kr:void 0!==l[2]?(Qr.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=Xr):void 0!==l[3]&&(n=Xr):n===Xr?">"===l[0]?(n=s??Wr,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Xr:'"'===l[3]?Zr:Jr):n===Zr||n===Jr?n=Xr:n===Gr||n===Kr?n=Wr:(n=Xr,s=void 0);const c=n===Xr&&t[e+1].startsWith("/>")?" ":"";r+=n===Wr?o+Br:d>=0?(i.push(a),o.slice(0,d)+Fr+o.slice(d)+Rr+c):o+Rr+(-2===d?e:c)}return[rn(t,r+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class an{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,d]=nn(t,e);if(this.el=an.createElement(l,o),sn.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=sn.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Fr)){const e=d[r++],o=i.getAttribute(t).split(Rr),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:n[2],strings:o,ctor:"."===n[1]?un:"?"===n[1]?pn:"@"===n[1]?mn:cn}),i.removeAttribute(t)}else t.startsWith(Rr)&&(a.push({type:6,index:s}),i.removeAttribute(t));if(Qr.test(i.tagName)){const t=i.textContent.split(Rr),e=t.length-1;if(e>0){i.textContent=zr?zr.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],jr()),sn.nextNode(),a.push({type:2,index:++s});i.append(t[e],jr())}}}else if(8===i.nodeType)if(i.data===Hr)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=i.data.indexOf(Rr,t+1));)a.push({type:7,index:s}),t+=Rr.length-1}s++}}static createElement(t,e){const o=Vr.createElement("template");return o.innerHTML=t,o}}function ln(t,e,o=t,i){if(e===tn)return e;let s=void 0!==i?o._$Co?.[i]:o._$Cl;const r=Ur(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),void 0===r?s=void 0:(s=new r(t),s._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=s:o._$Cl=s),void 0!==s&&(e=ln(t,s._$AS(t,e.values),s,i)),e}class dn{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){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Vr).importNode(e,!0);sn.currentNode=i;let s=sn.nextNode(),r=0,n=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new hn(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new fn(s,this,t)),this._$AV.push(e),a=o[++n]}r!==a?.index&&(s=sn.nextNode(),r++)}return sn.currentNode=Vr,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class hn{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=en,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ln(this,t,e),Ur(t)?t===en||null==t||""===t?(this._$AH!==en&&this._$AR(),this._$AH=en):t!==this._$AH&&t!==tn&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Yr(t)||"function"==typeof t?.[Symbol.iterator])(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!==en&&Ur(this._$AH)?this._$AA.nextSibling.data=t:this.T(Vr.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=an.createElement(rn(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new dn(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=on.get(t.strings);return void 0===e&&on.set(t.strings,e=new an(t)),e}k(t){Yr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const s of t)i===e.length?e.push(o=new hn(this.O(jr()),this.O(jr()),this,this.options)):o=e[i],o._$AI(s),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class cn{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,s){this.type=1,this._$AH=en,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=en}_$AI(t,e=this,o,i){const s=this.strings;let r=!1;if(void 0===s)t=ln(this,t,e,0),r=!Ur(t)||t!==this._$AH&&t!==tn,r&&(this._$AH=t);else{const i=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=ln(this,i[o+n],e,n),a===tn&&(a=this._$AH[n]),r||=!Ur(a)||a!==this._$AH[n],a===en?t=en:t!==en&&(t+=(a??"")+s[n+1]),this._$AH[n]=a}r&&!i&&this.j(t)}j(t){t===en?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class un extends cn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===en?void 0:t}}class pn extends cn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==en)}}class mn extends cn{constructor(t,e,o,i,s){super(t,e,o,i,s),this.type=5}_$AI(t,e=this){if((t=ln(this,t,e,0)??en)===tn)return;const o=this._$AH,i=t===en&&o!==en||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==en&&(o===en||i);i&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class fn{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ln(this,t)}}const _n=Mr.litHtmlPolyfillSupport;_n?.(an,hn),(Mr.litHtmlVersions??=[]).push("3.2.1");
|
|
4643
4560
|
/**
|
|
4644
4561
|
* @license
|
|
4645
|
-
* Copyright
|
|
4562
|
+
* Copyright 2017 Google LLC
|
|
4563
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4564
|
+
*/
|
|
4565
|
+
const gn=1;class bn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
4566
|
+
/**
|
|
4567
|
+
* @license
|
|
4568
|
+
* Copyright 2018 Google LLC
|
|
4569
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4570
|
+
*/const yn=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends bn{constructor(t){if(super(t),t.type!==gn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.st)t in e||(o.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return tn}}),vn="cubic-bezier(0.2, 0, 0, 1)";
|
|
4571
|
+
/**
|
|
4572
|
+
* @license
|
|
4573
|
+
* Copyright 2021 Google LLC
|
|
4646
4574
|
* SPDX-License-Identifier: Apache-2.0
|
|
4647
|
-
*/var
|
|
4575
|
+
*/var wn;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(wn||(wn={}));const xn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],Cn=r?null:window.matchMedia("(forced-colors: active)");class kn extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=wn.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Dr(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return o`<div class="surface ${yn(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==wn.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==wn.HOLDING)return this.state===wn.TOUCH_DELAY?(this.state=wn.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=wn.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=wn.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=wn.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===wn.TOUCH_DELAY&&(this.state=wn.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==wn.WAITING_FOR_CLICK?this.state===wn.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),o=Math.max(t,e),i=Math.max(.35*o,75),s=Math.floor(.2*o),r=Math.sqrt(e**2+t**2)+10;this.initialSize=s,this.rippleScale=""+(r+i)/s,this.rippleSize=`${s}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:o}=window,{left:i,top:s}=this.getBoundingClientRect(),r=e+i,n=o+s,{pageX:a,pageY:l}=t;return{x:a-r,y:l-n}}getTranslationCoordinates(t){const{height:e,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(e-this.initialSize)/2};let s;return s=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:o/2,y:e/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2},{startPoint:s,endPoint:i}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:o}=this.getTranslationCoordinates(t),i=`${e.x}px, ${e.y}px`,s=`${o.x}px, ${o.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:vn,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=wn.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:o,left:i,bottom:s,right:r}=this.getBoundingClientRect();return t>=i&&t<=r&&e>=o&&e<=s}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!Cn?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!r)for(const o of xn)t?.removeEventListener(o,this),e?.addEventListener(o,this)}}n([I({type:Boolean,reflect:!0})],kn.prototype,"disabled",void 0),n([$()],kn.prototype,"hovered",void 0),n([$()],kn.prototype,"pressed",void 0),n([N(".surface")],kn.prototype,"mdRoot",void 0);
|
|
4648
4576
|
/**
|
|
4649
4577
|
* @license
|
|
4650
4578
|
* Copyright 2024 Google LLC
|
|
4651
4579
|
* SPDX-License-Identifier: Apache-2.0
|
|
4652
4580
|
*/
|
|
4653
|
-
const
|
|
4581
|
+
const An=e`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
4654
4582
|
`
|
|
4655
4583
|
/**
|
|
4656
4584
|
* @license
|
|
4657
4585
|
* Copyright 2022 Google LLC
|
|
4658
4586
|
* SPDX-License-Identifier: Apache-2.0
|
|
4659
|
-
*/;let
|
|
4587
|
+
*/;let En=class extends kn{};
|
|
4660
4588
|
/**
|
|
4661
4589
|
* @license
|
|
4662
4590
|
* Copyright 2021 Google LLC
|
|
4663
4591
|
* SPDX-License-Identifier: Apache-2.0
|
|
4664
4592
|
*/
|
|
4665
|
-
function
|
|
4593
|
+
function Pn(t){return t.currentTarget===t.target&&(t.composedPath()[0]===t.target&&(!t.target.disabled&&!function(t){const e=Sn;e&&(t.preventDefault(),t.stopImmediatePropagation());return async function(){Sn=!0,await null,Sn=!1}
|
|
4666
4594
|
/**
|
|
4667
4595
|
* @license
|
|
4668
4596
|
* Copyright 2023 Google LLC
|
|
4669
4597
|
* SPDX-License-Identifier: Apache-2.0
|
|
4670
|
-
*/(),e}(t)))}
|
|
4598
|
+
*/(),e}(t)))}En.styles=[An],En=n([l("md-ripple")],En);let Sn=!1;const Dn=Symbol("internals"),Tn=Symbol("privateInternals");
|
|
4671
4599
|
/**
|
|
4672
4600
|
* @license
|
|
4673
4601
|
* Copyright 2023 Google LLC
|
|
4674
4602
|
* SPDX-License-Identifier: Apache-2.0
|
|
4675
4603
|
*/
|
|
4676
|
-
const
|
|
4604
|
+
const On=Symbol("createValidator"),In=Symbol("getValidityAnchor"),$n=Symbol("privateValidator"),Nn=Symbol("privateSyncValidity"),Mn=Symbol("privateCustomValidationMessage");
|
|
4677
4605
|
/**
|
|
4678
4606
|
* @license
|
|
4679
4607
|
* Copyright 2023 Google LLC
|
|
4680
4608
|
* SPDX-License-Identifier: Apache-2.0
|
|
4681
4609
|
*/
|
|
4682
|
-
const
|
|
4610
|
+
const zn=Symbol("isFocusable"),Ln=Symbol("privateIsFocusable"),Fn=Symbol("externalTabIndex"),Rn=Symbol("isUpdatingTabIndex"),Hn=Symbol("updateTabIndex");
|
|
4683
4611
|
/**
|
|
4684
4612
|
* @license
|
|
4685
4613
|
* Copyright 2023 Google LLC
|
|
4686
4614
|
* SPDX-License-Identifier: Apache-2.0
|
|
4687
4615
|
*/
|
|
4688
|
-
const
|
|
4616
|
+
const Bn=Symbol("getFormValue"),Vn=Symbol("getFormState");
|
|
4689
4617
|
/**
|
|
4690
4618
|
* @license
|
|
4691
4619
|
* Copyright 2023 Google LLC
|
|
4692
4620
|
* SPDX-License-Identifier: Apache-2.0
|
|
4693
4621
|
*/
|
|
4694
|
-
class
|
|
4622
|
+
class jn{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const t=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,t)))return this.currentValidity;const{validity:e,validationMessage:o}=this.computeValidity(t);return this.prevState=this.copy(t),this.currentValidity={validationMessage:o,validity:{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing}},this.currentValidity}}
|
|
4695
4623
|
/**
|
|
4696
4624
|
* @license
|
|
4697
4625
|
* Copyright 2023 Google LLC
|
|
4698
4626
|
* SPDX-License-Identifier: Apache-2.0
|
|
4699
|
-
*/class
|
|
4627
|
+
*/class Un extends jn{computeValidity(t){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let e=!1,o=!1;for(const{checked:i,required:s}of t)s&&(e=!0),i&&(o=!0);return this.radioElement.checked=o,this.radioElement.required=e,{validity:{valueMissing:e&&!o},validationMessage:this.radioElement.validationMessage}}equals(t,e){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++){const i=t[o],s=e[o];if(i.checked!==s.checked||i.required!==s.required)return!1}return!0}copy(t){return t.map((({checked:t,required:e})=>({checked:t,required:e})))}}
|
|
4700
4628
|
/**
|
|
4701
4629
|
* @license
|
|
4702
4630
|
* Copyright 2022 Google LLC
|
|
4703
4631
|
* SPDX-License-Identifier: Apache-2.0
|
|
4704
|
-
*/class
|
|
4632
|
+
*/class Yn{get controls(){const t=this.host.getAttribute("name");return t&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll(`[name="${t}"]`)):[this.host]}constructor(t){this.host=t,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=t=>{const e="ArrowDown"===t.key,o="ArrowUp"===t.key,i="ArrowLeft"===t.key,s="ArrowRight"===t.key;if(!(i||s||e||o))return;const r=this.controls;if(!r.length)return;t.preventDefault();const n="rtl"===getComputedStyle(this.host).direction?i||e:s||e,a=r.indexOf(this.host);let l=n?a+1:a-1;for(;l!==a;){l>=r.length?l=0:l<0&&(l=r.length-1);const t=r[l];if(!t.hasAttribute("disabled")){for(const e of r)e!==t&&(e.checked=!1,e.tabIndex=-1,e.blur());t.checked=!0,t.tabIndex=0,t.focus(),t.dispatchEvent(new Event("change",{bubbles:!0}));break}n?l++:l--}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const t of this.controls)t!==this.host&&(t.checked=!1)}updateTabIndices(){const t=this.controls,e=t.find((t=>t.checked));if(e||this.focused){const o=e||this.host;o.tabIndex=0;for(const e of t)e!==o&&(e.tabIndex=-1)}else for(const e of t)e.tabIndex=0}}
|
|
4705
4633
|
/**
|
|
4706
4634
|
* @license
|
|
4707
4635
|
* Copyright 2018 Google LLC
|
|
4708
4636
|
* SPDX-License-Identifier: Apache-2.0
|
|
4709
|
-
*/var
|
|
4710
|
-
<div class="container ${
|
|
4637
|
+
*/var qn;const Wn=Symbol("checked");let Gn=0;const Kn=function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[Nn](),this[Dn].validity}get validationMessage(){return this[Nn](),this[Dn].validationMessage}get willValidate(){return this[Nn](),this[Dn].willValidate}checkValidity(){return this[Nn](),this[Dn].checkValidity()}reportValidity(){return this[Nn](),this[Dn].reportValidity()}setCustomValidity(t){this[Mn]=t,this[Nn]()}requestUpdate(t,e,o){super.requestUpdate(t,e,o),this[Nn]()}firstUpdated(t){super.firstUpdated(t),this[Nn]()}[(e=Mn,Nn)](){if(r)return;this[$n]||(this[$n]=this[On]());const{validity:t,validationMessage:e}=this[$n].getValidity(),o=!!this[Mn],i=this[Mn]||e;this[Dn].setValidity({...t,customError:o},i,this[In]()??void 0)}[On](){throw new Error("Implement [createValidator]")}[In](){throw new Error("Implement [getValidityAnchor]")}}return o}(function(t){class e extends t{get form(){return this[Dn].form}get labels(){return this[Dn].labels}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,e,o){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,e,o);else{const o="disabled"===t?null!==e:e;this.requestUpdate(t,o)}}requestUpdate(t,e,o){super.requestUpdate(t,e,o),this[Dn].setFormValue(this[Bn](),this[Vn]())}[Bn](){throw new Error("Implement [getFormValue]")}[Vn](){return this[Bn]()}formDisabledCallback(t){this.disabled=t}}return e.formAssociated=!0,n([I({noAccessor:!0})],e.prototype,"name",null),n([I({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}((Xn=function(t){var e,o,i;class s extends t{constructor(){super(...arguments),this[e]=!0,this[o]=null,this[i]=!1}get[zn](){return this[Ln]}set[zn](t){this[zn]!==t&&(this[Ln]=t,this[Hn]())}connectedCallback(){super.connectedCallback(),this[Hn]()}attributeChangedCallback(t,e,o){if("tabindex"===t){if(this.requestUpdate("tabIndex",Number(e??-1)),!this[Rn])return this.hasAttribute("tabindex")?void(this[Fn]=this.tabIndex):(this[Fn]=null,void this[Hn]())}else super.attributeChangedCallback(t,e,o)}[(e=Ln,o=Fn,i=Rn,Hn)](){const t=this[zn]?0:-1,e=this[Fn]??t;this[Rn]=!0,this.tabIndex=e,this[Rn]=!1}}return n([I({noAccessor:!0})],s.prototype,"tabIndex",void 0),s}(t),class extends Xn{get[Dn](){return this[Tn]||(this[Tn]=this.attachInternals()),this[Tn]}})));var Xn;class Jn extends Kn{get checked(){return this[Wn]}set checked(t){const e=this.checked;e!==t&&(this[Wn]=t,this.requestUpdate("checked",e),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout"+ ++Gn,this[qn]=!1,this.required=!1,this.value="on",this.selectionController=new Yn(this),this.addController(this.selectionController),r||(this[Dn].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this)))}render(){const t={checked:this.checked};return o`
|
|
4638
|
+
<div class="container ${yn(t)}" aria-hidden="true">
|
|
4711
4639
|
<md-ripple
|
|
4712
4640
|
part="ripple"
|
|
4713
4641
|
.control=${this}
|
|
@@ -4729,19 +4657,19 @@ class oa{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{}
|
|
|
4729
4657
|
|
|
4730
4658
|
<div class="touch-target"></div>
|
|
4731
4659
|
</div>
|
|
4732
|
-
`}updated(){this[
|
|
4660
|
+
`}updated(){this[Dn].ariaChecked=String(this.checked)}async handleClick(t){this.disabled||(await 0,t.defaultPrevented||(Pn(t)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(t){await 0," "!==t.key||t.defaultPrevented||this.click()}[(qn=Wn,Bn)](){return this.checked?this.value:null}[Vn](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(t){this.checked="true"===t}[On](){return new Un((()=>this.selectionController?this.selectionController.controls:[this]))}[In](){return this.container}}n([I({type:Boolean})],Jn.prototype,"checked",null),n([I({type:Boolean})],Jn.prototype,"required",void 0),n([I()],Jn.prototype,"value",void 0),n([N(".container")],Jn.prototype,"container",void 0);
|
|
4733
4661
|
/**
|
|
4734
4662
|
* @license
|
|
4735
4663
|
* Copyright 2024 Google LLC
|
|
4736
4664
|
* SPDX-License-Identifier: Apache-2.0
|
|
4737
4665
|
*/
|
|
4738
|
-
const
|
|
4666
|
+
const Zn=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
|
|
4739
4667
|
`
|
|
4740
4668
|
/**
|
|
4741
4669
|
* @license
|
|
4742
4670
|
* Copyright 2022 Google LLC
|
|
4743
4671
|
* SPDX-License-Identifier: Apache-2.0
|
|
4744
|
-
*/;let
|
|
4672
|
+
*/;let Qn=class extends Jn{};Qn.styles=[Zn],Qn=n([l("md-radio")],Qn);let ta=class extends t{constructor(){super(...arguments),this.name="radio-group",this.checked=!1,this.disabled=!1,this.error=!1}static{this.styles=e`
|
|
4745
4673
|
:host {
|
|
4746
4674
|
font-family: "Graphik", sans-serif;
|
|
4747
4675
|
}
|
|
@@ -4806,13 +4734,34 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4806
4734
|
></md-radio>
|
|
4807
4735
|
<span>${this.checked?"On":"Off"} ${this.error?"Error":""}</span>
|
|
4808
4736
|
</label>
|
|
4809
|
-
`}};n([I({type:String}),a("design:type",Object)],
|
|
4737
|
+
`}};n([I({type:String}),a("design:type",Object)],ta.prototype,"name",void 0),n([I({type:Boolean}),a("design:type",Object)],ta.prototype,"checked",void 0),n([I({type:Boolean}),a("design:type",Object)],ta.prototype,"disabled",void 0),n([I({type:Boolean}),a("design:type",Object)],ta.prototype,"error",void 0),ta=n([l("custom-radio")],ta);let ea=class extends t{static{this.styles=e`
|
|
4810
4738
|
:host {
|
|
4811
4739
|
display: block;
|
|
4812
4740
|
font-family: 'Graphik', sans-serif;
|
|
4813
4741
|
width: 100%;
|
|
4814
4742
|
}
|
|
4815
4743
|
|
|
4744
|
+
:host([error]) .input-wrapper {
|
|
4745
|
+
border: 1px solid var(--ui-negative, red) !important;
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
:host([error]) .input-container:not(.open) .input-wrapper:hover {
|
|
4749
|
+
box-shadow: 0px 0px 0px 4px #E00F0F1A;
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
:host([error]) .input-container.open:not(.mobile) .input-wrapper {
|
|
4753
|
+
border-bottom-left-radius: 0;
|
|
4754
|
+
border-bottom-right-radius: 0;
|
|
4755
|
+
border: 1px solid var(--ui-negative, red) !important;
|
|
4756
|
+
border-bottom: 1px solid transparent !important;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
:host([error]) .options-list {
|
|
4760
|
+
border: 1px solid var(--ui-negative, red) !important;
|
|
4761
|
+
border-top: none !important;
|
|
4762
|
+
border-radius: 0 0 4px 4px;
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4816
4765
|
.select-container {
|
|
4817
4766
|
display: flex;
|
|
4818
4767
|
flex-direction: column;
|
|
@@ -4837,7 +4786,49 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4837
4786
|
.input-container {
|
|
4838
4787
|
position: relative;
|
|
4839
4788
|
width: 100%;
|
|
4840
|
-
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4791
|
+
.input-container.focused:not(.open):not(.mobile) .input-wrapper {
|
|
4792
|
+
border: 1px solid var(--primary-color);
|
|
4793
|
+
border-radius: 4px;
|
|
4794
|
+
box-shadow: none;
|
|
4795
|
+
z-index: 11;
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
.input-container.focused:not(.open):not(.mobile) .input-wrapper:hover {
|
|
4799
|
+
box-shadow: none;
|
|
4800
|
+
}
|
|
4801
|
+
|
|
4802
|
+
:host(:not([error])) .input-container.open:not(.mobile) {
|
|
4803
|
+
border-radius: 4px;
|
|
4804
|
+
border-bottom-left-radius: 0;
|
|
4805
|
+
border-bottom-right-radius: 0;
|
|
4806
|
+
}
|
|
4807
|
+
|
|
4808
|
+
:host(:not([error])) .input-container.open:not(.mobile) .input-wrapper {
|
|
4809
|
+
border: 1px solid var(--primary-color);
|
|
4810
|
+
border-top-left-radius: 4px;
|
|
4811
|
+
border-top-right-radius: 4px;
|
|
4812
|
+
border-bottom-left-radius: 0;
|
|
4813
|
+
border-bottom-right-radius: 0;
|
|
4814
|
+
border-bottom: 1px solid transparent;
|
|
4815
|
+
box-shadow: none;
|
|
4816
|
+
z-index: 11;
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
:host(:not([error])) .input-wrapper:hover {
|
|
4820
|
+
box-shadow: 0px 0px 0px 4px #0F19411A;
|
|
4821
|
+
}
|
|
4822
|
+
|
|
4823
|
+
:host .input-container.open:not(.mobile)::after {
|
|
4824
|
+
content: '';
|
|
4825
|
+
position: absolute;
|
|
4826
|
+
top: calc(100% - 1px);
|
|
4827
|
+
left: 20px;
|
|
4828
|
+
right: 20px;
|
|
4829
|
+
height: 1px;
|
|
4830
|
+
background-color: #d7d7d7;
|
|
4831
|
+
z-index: 10;
|
|
4841
4832
|
}
|
|
4842
4833
|
|
|
4843
4834
|
.input-wrapper {
|
|
@@ -4847,26 +4838,17 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4847
4838
|
display: flex;
|
|
4848
4839
|
align-items: center;
|
|
4849
4840
|
width: 100%;
|
|
4850
|
-
transition:
|
|
4841
|
+
transition: box-shadow 0.2s ease-in-out;
|
|
4851
4842
|
}
|
|
4852
4843
|
|
|
4853
|
-
.
|
|
4854
|
-
border-
|
|
4855
|
-
}
|
|
4856
|
-
|
|
4857
|
-
.input-container:active .input-wrapper {
|
|
4858
|
-
border-color: #b0b0b0;
|
|
4859
|
-
}
|
|
4860
|
-
|
|
4861
|
-
.input-container:focus-within .input-wrapper {
|
|
4862
|
-
border: 1px solid var(--primary-color);
|
|
4863
|
-
box-shadow: 0px 0px 0px 4px rgba(15, 25, 65, 0.1);
|
|
4844
|
+
.mobile-modal .filter-input {
|
|
4845
|
+
border-bottom: 1px solid var(--gray-20);
|
|
4864
4846
|
}
|
|
4865
4847
|
|
|
4866
4848
|
.filter-input {
|
|
4867
4849
|
font-size: 18px;
|
|
4868
4850
|
line-height: 30px;
|
|
4869
|
-
padding:
|
|
4851
|
+
padding: 16px;
|
|
4870
4852
|
padding-right: 40px;
|
|
4871
4853
|
border: none;
|
|
4872
4854
|
outline: none;
|
|
@@ -4876,20 +4858,13 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4876
4858
|
font-weight: 400;
|
|
4877
4859
|
background: white;
|
|
4878
4860
|
cursor: pointer;
|
|
4879
|
-
transition: background-color 0.3s ease;
|
|
4880
|
-
}
|
|
4881
|
-
|
|
4882
|
-
.input-container:hover .filter-input {
|
|
4883
|
-
background-color: #f5f5f5;
|
|
4884
|
-
}
|
|
4885
|
-
|
|
4886
|
-
.input-container:active .filter-input {
|
|
4887
|
-
background-color: #e0e0e0;
|
|
4888
4861
|
}
|
|
4889
4862
|
|
|
4890
|
-
.filter-input
|
|
4891
|
-
|
|
4892
|
-
|
|
4863
|
+
.filter-input,
|
|
4864
|
+
.filter-fake,
|
|
4865
|
+
.input-wrapper,
|
|
4866
|
+
.mobile-modal {
|
|
4867
|
+
-webkit-tap-highlight-color: transparent !important;
|
|
4893
4868
|
}
|
|
4894
4869
|
|
|
4895
4870
|
.filter-input::placeholder {
|
|
@@ -4915,11 +4890,6 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4915
4890
|
padding: 0;
|
|
4916
4891
|
}
|
|
4917
4892
|
|
|
4918
|
-
.icon-button:disabled {
|
|
4919
|
-
cursor: not-allowed;
|
|
4920
|
-
opacity: 0.5;
|
|
4921
|
-
}
|
|
4922
|
-
|
|
4923
4893
|
randstad-icon {
|
|
4924
4894
|
width: 24px;
|
|
4925
4895
|
height: 24px;
|
|
@@ -4927,13 +4897,14 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4927
4897
|
}
|
|
4928
4898
|
|
|
4929
4899
|
.options-list {
|
|
4900
|
+
width: 100%;
|
|
4930
4901
|
position: absolute;
|
|
4931
|
-
top:
|
|
4902
|
+
top: 99%;
|
|
4932
4903
|
left: 0;
|
|
4933
4904
|
right: 0;
|
|
4934
4905
|
max-height: 200px;
|
|
4935
4906
|
overflow-y: auto;
|
|
4936
|
-
border: 1px solid var(--
|
|
4907
|
+
border: 1px solid var(--primary-color);
|
|
4937
4908
|
border-top: none;
|
|
4938
4909
|
border-radius: 0 0 4px 4px;
|
|
4939
4910
|
background: white;
|
|
@@ -4941,96 +4912,195 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4941
4912
|
margin: 0;
|
|
4942
4913
|
padding: 0;
|
|
4943
4914
|
z-index: 10;
|
|
4944
|
-
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
4945
|
-
transition: border-color 0.3s ease;
|
|
4946
4915
|
}
|
|
4947
4916
|
|
|
4948
|
-
.
|
|
4949
|
-
|
|
4917
|
+
.options-list li {
|
|
4918
|
+
padding: 8px 16px 8px 16px;
|
|
4919
|
+
cursor: pointer;
|
|
4920
|
+
font-size: 18px;
|
|
4921
|
+
line-height: 30px;
|
|
4922
|
+
font-weight: 400;
|
|
4923
|
+
color: var(--secondary-color-80);
|
|
4950
4924
|
}
|
|
4951
4925
|
|
|
4952
|
-
.
|
|
4953
|
-
|
|
4926
|
+
.mobile-modal {
|
|
4927
|
+
position: fixed;
|
|
4928
|
+
bottom: 0;
|
|
4929
|
+
left: 0;
|
|
4930
|
+
right: 0;
|
|
4931
|
+
background-color: white;
|
|
4932
|
+
z-index: 1000;
|
|
4933
|
+
border-radius: 12px 12px 0 0;
|
|
4934
|
+
box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
|
|
4935
|
+
display: flex;
|
|
4936
|
+
flex-direction: column;
|
|
4937
|
+
padding: 0px;
|
|
4938
|
+
gap: 12px;
|
|
4939
|
+
animation: slideUp 0.5s ease-out;
|
|
4940
|
+
max-height: 80vh;
|
|
4941
|
+
overflow-y: auto;
|
|
4954
4942
|
}
|
|
4955
4943
|
|
|
4956
|
-
.options-list
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
width: 80%;
|
|
4962
|
-
height: 1px;
|
|
4963
|
-
background-color: #e0e0e0;
|
|
4944
|
+
.mobile-modal .options-list {
|
|
4945
|
+
position: static;
|
|
4946
|
+
max-height: none;
|
|
4947
|
+
border: none;
|
|
4948
|
+
box-shadow: none;
|
|
4964
4949
|
}
|
|
4965
4950
|
|
|
4966
|
-
.
|
|
4967
|
-
|
|
4951
|
+
.mobile-modal .modal-input-container {
|
|
4952
|
+
position: relative;
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
.mobile-modal .modal-close-button {
|
|
4956
|
+
position: absolute;
|
|
4957
|
+
top: 50%;
|
|
4958
|
+
right: 12px;
|
|
4959
|
+
transform: translateY(-50%);
|
|
4960
|
+
background: transparent;
|
|
4961
|
+
border: none;
|
|
4968
4962
|
cursor: pointer;
|
|
4963
|
+
padding: 4px;
|
|
4964
|
+
display: flex;
|
|
4965
|
+
align-items: center;
|
|
4966
|
+
justify-content: center;
|
|
4967
|
+
}
|
|
4968
|
+
|
|
4969
|
+
.mobile-modal .modal-close-button randstad-icon {
|
|
4970
|
+
width: 20px;
|
|
4971
|
+
height: 20px;
|
|
4972
|
+
color: var(--secondary-color-60);
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4975
|
+
.mobile-backdrop {
|
|
4976
|
+
position: fixed;
|
|
4977
|
+
inset: 0;
|
|
4978
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
4979
|
+
z-index: 999;
|
|
4980
|
+
display: flex;
|
|
4981
|
+
align-items: flex-end;
|
|
4982
|
+
}
|
|
4983
|
+
|
|
4984
|
+
.filter-fake {
|
|
4969
4985
|
font-size: 18px;
|
|
4970
4986
|
line-height: 30px;
|
|
4987
|
+
padding: 15px;
|
|
4988
|
+
padding-right: 40px;
|
|
4989
|
+
width: 100%;
|
|
4990
|
+
background: white;
|
|
4991
|
+
box-sizing: border-box;
|
|
4992
|
+
font-family: 'Graphik', sans-serif;
|
|
4971
4993
|
font-weight: 400;
|
|
4994
|
+
cursor: pointer;
|
|
4972
4995
|
color: var(--secondary-color-80);
|
|
4973
|
-
|
|
4996
|
+
white-space: nowrap;
|
|
4997
|
+
overflow: hidden;
|
|
4998
|
+
text-overflow: ellipsis;
|
|
4974
4999
|
}
|
|
4975
5000
|
|
|
4976
|
-
|
|
4977
|
-
|
|
5001
|
+
@keyframes slideUp {
|
|
5002
|
+
from {
|
|
5003
|
+
transform: translateY(100%);
|
|
5004
|
+
}
|
|
5005
|
+
to {
|
|
5006
|
+
transform: translateY(0);
|
|
5007
|
+
}
|
|
4978
5008
|
}
|
|
4979
5009
|
|
|
4980
|
-
.options-list
|
|
4981
|
-
|
|
5010
|
+
.options-list::-webkit-scrollbar {
|
|
5011
|
+
width: 6px;
|
|
4982
5012
|
}
|
|
4983
5013
|
|
|
4984
|
-
.
|
|
4985
|
-
|
|
5014
|
+
.options-list::-webkit-scrollbar-track {
|
|
5015
|
+
background: transparent;
|
|
4986
5016
|
}
|
|
4987
5017
|
|
|
4988
|
-
.options-list
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
cursor: default;
|
|
5018
|
+
.options-list::-webkit-scrollbar-thumb {
|
|
5019
|
+
background-color: var(--secondary-color-30, #ccc);
|
|
5020
|
+
border-radius: 4px;
|
|
4992
5021
|
}
|
|
4993
|
-
|
|
5022
|
+
|
|
5023
|
+
.options-list::-webkit-scrollbar-button {
|
|
5024
|
+
display: none;
|
|
5025
|
+
}
|
|
5026
|
+
`}constructor(){if(super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.value="",this.labelColor="",this.filterable=!0,this.isMobile=!1,this.error=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.defaultValue){const t=this.options.find((t=>"string"==typeof t?t===this.defaultValue:t.value===this.defaultValue));t&&(this.filterValue="string"==typeof t?t:t.label)}}willUpdate(t){if(t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")||t.has("options")){const t=this.options.find((t=>"string"==typeof t?t===this.defaultValue:t.value===this.defaultValue));t&&(this.filterValue="string"==typeof t?t:t.label)}if(t.has("value")){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));t&&(this.filterValue="string"==typeof t?t:t.label)}}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;const e=t.target.value,o=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.filterValue=o,this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){const e=t.target.value,o=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.mobileFilterValue=o,this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(o))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{o.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:o},bubbles:!0,composed:!0}))}),300)}handleSelect(t){this.value="string"==typeof t?t:t.value;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.filterable&&this.filterValue?(this.filterValue="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate())}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1,this.requestUpdate())}render(){const t=this.isMobile;return o`
|
|
4994
5027
|
<div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
4995
5028
|
${this.label?o`
|
|
4996
5029
|
<div class="label-container">
|
|
4997
5030
|
<label class="form-label">${this.label}</label>
|
|
4998
5031
|
</div>
|
|
4999
5032
|
`:""}
|
|
5000
|
-
|
|
5033
|
+
|
|
5034
|
+
<div class="input-container ${this.isOpen?"focused":""} ${this.isOpen&&this.filteredOptions.length>0?"open":""} ${t?"mobile":""}">
|
|
5035
|
+
|
|
5001
5036
|
<div class="input-wrapper">
|
|
5002
|
-
|
|
5003
|
-
class="filter-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5037
|
+
${t?o`
|
|
5038
|
+
<div class="filter-fake" @click="${this.handleInputClick}">
|
|
5039
|
+
${this.filterValue||this.placeholder}
|
|
5040
|
+
</div>
|
|
5041
|
+
`:o`
|
|
5042
|
+
<input
|
|
5043
|
+
class="filter-input"
|
|
5044
|
+
.value="${this.filterValue||""}"
|
|
5045
|
+
@click="${this.handleInputClick}"
|
|
5046
|
+
@input=${this.handleInput}
|
|
5047
|
+
placeholder="${this.filterValue?"":this.placeholder}"
|
|
5048
|
+
?disabled="${this.disabled}"
|
|
5049
|
+
?readonly="${!this.filterable}"
|
|
5050
|
+
maxlength="${this.maxLength??""}"
|
|
5051
|
+
/>
|
|
5052
|
+
`}
|
|
5012
5053
|
<button
|
|
5013
5054
|
class="icon-button"
|
|
5014
5055
|
@click="${this.handleIconClick}"
|
|
5015
5056
|
?disabled="${this.disabled}"
|
|
5016
5057
|
>
|
|
5017
5058
|
${this.filterable&&this.filterValue?o`<randstad-icon name="close" size="24px" color="#2175D9"></randstad-icon>`:this.isOpen&&this.filteredOptions.length>0?o`<randstad-icon name="arrow_up" size="24px" color="#2175D9"></randstad-icon>`:o`<randstad-icon name="arrow_down" size="24px" color="#2175D9"></randstad-icon>`}
|
|
5018
|
-
|
|
5019
5059
|
</button>
|
|
5020
5060
|
</div>
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5061
|
+
|
|
5062
|
+
${t&&this.isOpen?o`
|
|
5063
|
+
<div class="mobile-backdrop" @click="${()=>{this.isOpen=!1}}">
|
|
5064
|
+
<div class="mobile-modal" @click="${t=>t.stopPropagation()}">
|
|
5065
|
+
<div class="modal-input-container">
|
|
5066
|
+
<input
|
|
5067
|
+
class="filter-input"
|
|
5068
|
+
.value="${this.mobileFilterValue||""}"
|
|
5069
|
+
@input=${t=>this.handleMobileInput(t)}
|
|
5070
|
+
placeholder="${this.placeholder}" maxlength="${this.maxLength??""}"
|
|
5071
|
+
autofocus
|
|
5072
|
+
/>
|
|
5073
|
+
<button class="modal-close-button" @click="${()=>{this.isOpen=!1}}">
|
|
5074
|
+
<randstad-icon name="close" size="20px"></randstad-icon>
|
|
5075
|
+
</button>
|
|
5076
|
+
</div>
|
|
5077
|
+
<ul class="options-list">
|
|
5078
|
+
${this.filteredOptions.map((t=>{const e="string"==typeof t?t:t.label,i="object"==typeof t&&t.disabled;return o`
|
|
5079
|
+
<li
|
|
5080
|
+
class="${i?"disabled":""}"
|
|
5081
|
+
@click="${()=>{i||this.handleSelect(t)}}"
|
|
5082
|
+
>
|
|
5083
|
+
${e}
|
|
5084
|
+
</li>
|
|
5085
|
+
`}))}
|
|
5086
|
+
</ul>
|
|
5087
|
+
</div>
|
|
5088
|
+
</div>
|
|
5089
|
+
`:!t&&this.isOpen&&this.filteredOptions.length>0?o`
|
|
5090
|
+
<ul class="options-list">
|
|
5091
|
+
${this.filteredOptions.map((t=>{const e="string"==typeof t?t:t.label,i="object"==typeof t&&t.disabled;return o`
|
|
5092
|
+
<li
|
|
5093
|
+
class="${i?"disabled":""}"
|
|
5094
|
+
@click="${()=>{i||this.handleSelect(t)}}"
|
|
5095
|
+
>
|
|
5096
|
+
${e}
|
|
5097
|
+
</li>
|
|
5098
|
+
`}))}
|
|
5099
|
+
</ul>
|
|
5100
|
+
`:""}
|
|
5031
5101
|
</div>
|
|
5032
5102
|
</div>
|
|
5033
|
-
`}};n([I({type:Array}),a("design:type",Array)],
|
|
5103
|
+
`}};n([I({type:Array}),a("design:type",Array)],ea.prototype,"options",void 0),n([I({type:String}),a("design:type",Object)],ea.prototype,"placeholder",void 0),n([I({type:String,attribute:"default-value"}),a("design:type",Object)],ea.prototype,"defaultValue",void 0),n([I({type:Boolean}),a("design:type",Object)],ea.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],ea.prototype,"label",void 0),n([I({type:String}),a("design:type",String)],ea.prototype,"value",void 0),n([I({type:String}),a("design:type",Object)],ea.prototype,"labelColor",void 0),n([I({type:Boolean}),a("design:type",Object)],ea.prototype,"filterable",void 0),n([I({type:Number}),a("design:type",Number)],ea.prototype,"maxLength",void 0),n([$(),a("design:type",Boolean)],ea.prototype,"isMobile",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],ea.prototype,"error",void 0),n([$(),a("design:type",Object)],ea.prototype,"filteredOptions",void 0),n([$(),a("design:type",Object)],ea.prototype,"filterValue",void 0),n([$(),a("design:type",Object)],ea.prototype,"isOpen",void 0),n([$(),a("design:type",Object)],ea.prototype,"mobileFilterValue",void 0),ea=n([l("filterable-select"),a("design:paramtypes",[])],ea);let oa=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=e`
|
|
5034
5104
|
.stepper {
|
|
5035
5105
|
display: flex;
|
|
5036
5106
|
gap: 20px;
|
|
@@ -5125,7 +5195,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5125
5195
|
</div>
|
|
5126
5196
|
`))}
|
|
5127
5197
|
</div>
|
|
5128
|
-
`}};n([I({type:Number}),a("design:type",Object)],
|
|
5198
|
+
`}};n([I({type:Number}),a("design:type",Object)],oa.prototype,"totalSteps",void 0),n([I({type:Number}),a("design:type",Object)],oa.prototype,"currentStep",void 0),oa=n([l("custom-stepper")],oa);const ia=new CSSStyleSheet;ia.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n");class sa extends t{static{this.styles=[ia,e`
|
|
5129
5199
|
:host {
|
|
5130
5200
|
display: flex;
|
|
5131
5201
|
position: fixed;
|
|
@@ -5135,6 +5205,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5135
5205
|
z-index: 9999;
|
|
5136
5206
|
}
|
|
5137
5207
|
|
|
5208
|
+
/* Posiciones por defecto */
|
|
5138
5209
|
:host([position="top-left"]) {
|
|
5139
5210
|
top: 16px;
|
|
5140
5211
|
left: 16px;
|
|
@@ -5181,6 +5252,20 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5181
5252
|
justify-content: flex-end;
|
|
5182
5253
|
}
|
|
5183
5254
|
|
|
5255
|
+
/* Estilos para mobile forzados */
|
|
5256
|
+
:host(.mobile) {
|
|
5257
|
+
bottom: 16px !important;
|
|
5258
|
+
top: auto !important;
|
|
5259
|
+
left: 50% !important;
|
|
5260
|
+
transform: translateX(-50%) !important;
|
|
5261
|
+
justify-content: center !important;
|
|
5262
|
+
width: 100%;
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
:host(.mobile) .container {
|
|
5266
|
+
width: 90vw !important;
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5184
5269
|
.container {
|
|
5185
5270
|
font-family: 'Graphik', sans-serif;
|
|
5186
5271
|
display: flex;
|
|
@@ -5208,7 +5293,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5208
5293
|
overflow: hidden;
|
|
5209
5294
|
text-overflow: ellipsis;
|
|
5210
5295
|
white-space: normal;
|
|
5211
|
-
max-height: calc(2 * 25px);
|
|
5296
|
+
max-height: calc(2 * 25px);
|
|
5212
5297
|
line-height: 25px;
|
|
5213
5298
|
word-break: break-word;
|
|
5214
5299
|
max-width: 100%;
|
|
@@ -5242,7 +5327,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5242
5327
|
.informative {
|
|
5243
5328
|
background-color: var(--ui-informative);
|
|
5244
5329
|
}
|
|
5245
|
-
`]}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center"}
|
|
5330
|
+
`]}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean},position:{type:String,reflect:!0}}}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center",this.isMobile=!1,this.updateResponsiveStyles=this.updateResponsiveStyles.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.updateResponsiveStyles),this.updateResponsiveStyles()}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveStyles),super.disconnectedCallback()}updateResponsiveStyles(){const t=window.innerWidth<=940;this.classList.toggle("mobile",t)}render(){const t="error"===this.type||"warning"===this.type?"alert":"status";return o`
|
|
5246
5331
|
<div
|
|
5247
5332
|
class="container ${this.open?"":"hidden"} ${this.type}"
|
|
5248
5333
|
role="${t}"
|
|
@@ -5251,12 +5336,12 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5251
5336
|
<randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
|
|
5252
5337
|
<span class="message">${this.message}</span>
|
|
5253
5338
|
</div>
|
|
5254
|
-
`}}customElements.define("randstad-snackbar",
|
|
5339
|
+
`}}customElements.define("randstad-snackbar",sa);class ra extends t{static{this.styles=e`
|
|
5255
5340
|
div {
|
|
5256
5341
|
color: red;
|
|
5257
5342
|
font-size: 20px;
|
|
5258
5343
|
}
|
|
5259
|
-
`}render(){return o`<div>Hola desde el Design System</div>`}}customElements.define("test-component",
|
|
5344
|
+
`}render(){return o`<div>Hola desde el Design System</div>`}}customElements.define("test-component",ra);let na=class extends t{constructor(){super(...arguments),this.label="Test Button"}static{this.styles=e`
|
|
5260
5345
|
button {
|
|
5261
5346
|
padding: 10px 20px;
|
|
5262
5347
|
font-size: 16px;
|
|
@@ -5265,5 +5350,5 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5265
5350
|
border: none;
|
|
5266
5351
|
cursor: pointer;
|
|
5267
5352
|
}
|
|
5268
|
-
`}render(){return o`<button>${this.label}</button>`}};n([I({type:String}),a("design:type",Object)],
|
|
5353
|
+
`}render(){return o`<button>${this.label}</button>`}};n([I({type:String}),a("design:type",Object)],na.prototype,"label",void 0),na=n([l("test-button")],na);export{z as Checkbox,kr as CustomModal,Er as CustomPopup,ta as CustomRadio,oa as CustomStepper,ea as FilterableSelect,Cr as IconComponent,M as RandstadButton,xr as RandstadForm,na as TestButton,ra as TestComponent};
|
|
5269
5354
|
//# sourceMappingURL=index.js.map
|