@randstad-uca/design-system 1.0.6 → 1.0.8
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/Icon.d.ts +2 -3
- package/dist/index.js +159 -93
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const l=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)}
|
|
|
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:"",
|
|
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:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const s=i?.call(this);r.call(this,e),this.requestUpdate(t,s,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(c)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 r=(void 0!==o.converter?.toAttribute?o.converter:E).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i,this[i]=r.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
|
|
@@ -41,11 +41,6 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
41
41
|
display: inline-block;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
:host([disabled]) {
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
cursor: not-allowed;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
44
|
.button {
|
|
50
45
|
display: flex;
|
|
51
46
|
align-items: center;
|
|
@@ -61,93 +56,97 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
61
56
|
width: 100%;
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
.button[disabled] {
|
|
65
|
-
cursor: not-allowed;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
59
|
.button-lg {
|
|
69
60
|
font-size: 18px;
|
|
70
61
|
line-height: 30px;
|
|
71
|
-
min-
|
|
72
|
-
min-height: 62px; /* padding (16px * 2) + line-height (30px) */
|
|
62
|
+
min-height: 62px;
|
|
73
63
|
}
|
|
74
64
|
|
|
75
65
|
.button-md {
|
|
76
66
|
font-size: 14px;
|
|
77
67
|
line-height: 25px;
|
|
78
|
-
min-height: 57px;
|
|
68
|
+
min-height: 57px;
|
|
79
69
|
}
|
|
80
70
|
|
|
71
|
+
/* Primary */
|
|
81
72
|
.button-primary {
|
|
82
73
|
background-color: var(--primary-color);
|
|
83
74
|
color: var(--white);
|
|
84
75
|
}
|
|
85
76
|
|
|
86
|
-
|
|
77
|
+
.button-primary:not([disabled]):hover {
|
|
87
78
|
background-color: var(--primary-button-hover);
|
|
88
79
|
}
|
|
89
80
|
|
|
90
|
-
|
|
81
|
+
.button-primary:not([disabled]):active {
|
|
91
82
|
background-color: var(--primary-button-active);
|
|
92
83
|
}
|
|
93
84
|
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
.button-primary:not([disabled]):focus-visible {
|
|
86
|
+
outline: 2px solid var(--primary-button-focus);
|
|
87
|
+
outline-offset: 2px;
|
|
96
88
|
}
|
|
97
89
|
|
|
98
90
|
.button-primary[disabled] {
|
|
99
91
|
color: var(--secondary-color-60);
|
|
100
92
|
background-color: var(--secondary-color-20);
|
|
93
|
+
cursor: not-allowed;
|
|
101
94
|
}
|
|
102
95
|
|
|
96
|
+
/* Secondary */
|
|
103
97
|
.button-secondary {
|
|
104
98
|
background: none;
|
|
105
99
|
color: var(--primary-color);
|
|
106
100
|
border: 1px solid var(--primary-color);
|
|
107
101
|
}
|
|
108
102
|
|
|
109
|
-
|
|
103
|
+
.button-secondary:not([disabled]):hover {
|
|
110
104
|
color: #175197;
|
|
111
|
-
border:
|
|
105
|
+
border-color: #175197;
|
|
112
106
|
}
|
|
113
107
|
|
|
114
|
-
|
|
108
|
+
.button-secondary:not([disabled]):active {
|
|
115
109
|
color: var(--secondary-color-80);
|
|
116
|
-
border:
|
|
110
|
+
border-color: var(--secondary-color-80);
|
|
117
111
|
}
|
|
118
112
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
113
|
+
.button-secondary:not([disabled]):focus-visible {
|
|
114
|
+
outline: 2px solid var(--primary-color);
|
|
115
|
+
outline-offset: 2px;
|
|
122
116
|
}
|
|
123
117
|
|
|
124
118
|
.button-secondary[disabled] {
|
|
125
119
|
color: var(--secondary-color-60);
|
|
126
|
-
border:
|
|
120
|
+
border-color: var(--secondary-color-60);
|
|
121
|
+
cursor: not-allowed;
|
|
127
122
|
}
|
|
128
123
|
|
|
124
|
+
/* Tertiary */
|
|
129
125
|
.button-tertiary {
|
|
130
126
|
background: none;
|
|
131
127
|
border: none;
|
|
132
128
|
color: var(--primary-color);
|
|
133
129
|
}
|
|
134
130
|
|
|
135
|
-
|
|
131
|
+
.button-tertiary:not([disabled]):hover {
|
|
136
132
|
background: #2175D90D;
|
|
137
133
|
}
|
|
138
134
|
|
|
139
|
-
|
|
135
|
+
.button-tertiary:not([disabled]):active {
|
|
140
136
|
background-color: #2175D91A;
|
|
141
137
|
}
|
|
142
138
|
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
.button-tertiary:not([disabled]):focus-visible {
|
|
140
|
+
outline: 2px solid var(--primary-color);
|
|
141
|
+
outline-offset: 2px;
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
.button-tertiary[disabled] {
|
|
148
145
|
color: #6F758D;
|
|
146
|
+
cursor: not-allowed;
|
|
149
147
|
}
|
|
150
148
|
|
|
149
|
+
/* Round */
|
|
151
150
|
.button-round {
|
|
152
151
|
width: 48px;
|
|
153
152
|
height: 48px;
|
|
@@ -157,16 +156,22 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
157
156
|
padding: 0;
|
|
158
157
|
}
|
|
159
158
|
|
|
160
|
-
|
|
159
|
+
.button-round:not([disabled]):hover {
|
|
161
160
|
background-color: #E8F1FB;
|
|
162
161
|
}
|
|
163
162
|
|
|
164
|
-
|
|
163
|
+
.button-round:not([disabled]):active {
|
|
165
164
|
background-color: #A6C8F0;
|
|
166
165
|
}
|
|
167
166
|
|
|
167
|
+
.button-round:not([disabled]):focus-visible {
|
|
168
|
+
outline: 2px solid var(--primary-color);
|
|
169
|
+
outline-offset: 2px;
|
|
170
|
+
}
|
|
171
|
+
|
|
168
172
|
.button-round[disabled] {
|
|
169
173
|
background-color: var(--secondary-color-20);
|
|
174
|
+
cursor: not-allowed;
|
|
170
175
|
}
|
|
171
176
|
|
|
172
177
|
.button-round img.button-icon {
|
|
@@ -174,13 +179,14 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
174
179
|
height: 24px;
|
|
175
180
|
}
|
|
176
181
|
|
|
182
|
+
/* Loader */
|
|
177
183
|
.loader {
|
|
178
184
|
display: flex;
|
|
179
185
|
gap: 8px;
|
|
180
186
|
justify-content: center;
|
|
181
187
|
align-items: center;
|
|
182
188
|
width: 100%;
|
|
183
|
-
height: 100%;
|
|
189
|
+
height: 100%;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
.dot {
|
|
@@ -221,7 +227,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
221
227
|
border: none;
|
|
222
228
|
color: var(--white);
|
|
223
229
|
}
|
|
224
|
-
`}handleClick(t){this.disabled||this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0}))}render(){const t=`button button-${this.size} ${this.variant} ${this.loader?"loader":""}`,e="button-tertiary"===this.variant?"#2175D9":"white";return o`
|
|
230
|
+
`}handleClick(t){this.disabled||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`
|
|
225
231
|
<button
|
|
226
232
|
type="button"
|
|
227
233
|
class=${t}
|
|
@@ -237,7 +243,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
237
243
|
`:o`
|
|
238
244
|
${this.iconSrc&&"button-round"===this.variant?o`<img src=${this.iconSrc} alt="icon" class="button-icon" />`:""}
|
|
239
245
|
${this.iconName&&"button-round"!==this.variant&&"left"===this.iconPosition?o`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
240
|
-
${this.label}
|
|
246
|
+
${this.label?o`<span>${this.label}</span>`:o`<slot></slot>`}
|
|
241
247
|
${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?o`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
242
248
|
`}
|
|
243
249
|
</button>
|
|
@@ -253,7 +259,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
253
259
|
gap: 8px;
|
|
254
260
|
font-family: Graphik, sans-serif;
|
|
255
261
|
font-size: 14px;
|
|
256
|
-
line-height:
|
|
262
|
+
line-height: 25px;
|
|
257
263
|
color: #0F1941;
|
|
258
264
|
}
|
|
259
265
|
|
|
@@ -294,7 +300,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
294
300
|
|
|
295
301
|
.terms-link {
|
|
296
302
|
color: #2175D9;
|
|
297
|
-
text-decoration:
|
|
303
|
+
text-decoration: none;
|
|
298
304
|
cursor: pointer;
|
|
299
305
|
}
|
|
300
306
|
`}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0}))}renderClause(t,e){return e?o`<a class="terms-link" href="${e}" target="_blank" rel="noopener" @click=${this.stopPropagation}>${t}</a>`:o`${t}`}stopPropagation(t){t.stopPropagation()}render(){return o`
|
|
@@ -308,7 +314,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
308
314
|
${this.prefix}
|
|
309
315
|
${this.renderClause(this.clause1Text,this.clause1Url)},
|
|
310
316
|
${this.connector}
|
|
311
|
-
${this.renderClause(this.clause2Text,this.clause2Url)}
|
|
317
|
+
${this.renderClause(this.clause2Text,this.clause2Url)}
|
|
312
318
|
</span>
|
|
313
319
|
</label>
|
|
314
320
|
`}};n([I({type:String}),a("design:type",Object)],M.prototype,"prefix",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"clause1Text",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"clause1Url",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"connector",void 0),n([I({type:String}),a("design:type",Object)],M.prototype,"clause2Text",void 0),n([I({type:String}),a("design:type",String)],M.prototype,"clause2Url",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],M.prototype,"checked",void 0),M=n([l("randstad-checkbox")],M);
|
|
@@ -916,7 +922,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
916
922
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
917
923
|
Code distributed by Google as part of the polymer project is also
|
|
918
924
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
919
|
-
*/const dt=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const ct=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 ht=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,
|
|
925
|
+
*/const dt=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const ct=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 ht=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;
|
|
920
926
|
/**
|
|
921
927
|
@license
|
|
922
928
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -925,7 +931,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
925
931
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
926
932
|
Code distributed by Google as part of the polymer project is also
|
|
927
933
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
928
|
-
*/const
|
|
934
|
+
*/const At=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let o=kt++;return function(i){let r=i.__mixinSet;if(r&&r[o])return i;let s=e,n=s.get(i);if(!n){n=t(i),s.set(i,n);let e=Object.create(n.__mixinSet||r||null);e[o]=!0,n.__mixinSet=e}return n}};
|
|
929
935
|
/**
|
|
930
936
|
@license
|
|
931
937
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -980,7 +986,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
980
986
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
981
987
|
Code distributed by Google as part of the polymer project is also
|
|
982
988
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
983
|
-
*/let Qt=0,te=0,ee=[],oe=0,ie=!1,re=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(re,{characterData:!0});const se={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,re.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=
|
|
989
|
+
*/let Qt=0,te=0,ee=[],oe=0,ie=!1,re=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(re,{characterData:!0});const se={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,re.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],r=this._shouldPropertyChange(t,e,i);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=i),this.__data[t]=e,this.__dataPending[t]=e),r}_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,r=i&&i[t]||t;this[r]=this._deserializeValue(e,o||this.constructor.typeForProperty(r))}}_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 ce=HTMLElement.prototype;for(;ce;){let t=Object.getOwnPropertyNames(ce);for(let e=0;e<t.length;e++)de[t[e]]=!0;ce=Object.getPrototypeOf(ce)}const he=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(he(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};
|
|
984
990
|
/**
|
|
985
991
|
@license
|
|
986
992
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -989,7 +995,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
989
995
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
990
996
|
Code distributed by Google as part of the polymer project is also
|
|
991
997
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
992
|
-
*/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 r=o.getAttribute(i);t&&i.startsWith("on-")?e.setAttribute(i,t.createScript(r,i)):e.setAttribute(i,r)}})();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,r=0,s=o.events;r<s.length&&(i=s[r]);r++)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=
|
|
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 r=o.getAttribute(i);t&&i.startsWith("on-")?e.setAttribute(i,t.createScript(r,i)):e.setAttribute(i,r)}})();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,r=0,s=o.events;r<s.length&&(i=s[r]);r++)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,r=t;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(e.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(r,e,o)||i,_e(r),r.firstChild&&this._parseTemplateChildNodes(r,e,o),r.hasAttributes&&r.hasAttributes()&&(i=this._parseTemplateNodeAttributes(r,e,o)||i),i||o.noted}static _parseTemplateChildNodes(t,e,o){if("script"!==t.localName&&"style"!==t.localName)for(let i,r=t.firstChild,s=0;r;r=i){if("template"==r.localName&&(r=be(r)),i=r.nextSibling,r.nodeType===Node.TEXT_NODE){let o=i;for(;o&&o.nodeType===Node.TEXT_NODE;)r.textContent+=o.textContent,i=o.nextSibling,t.removeChild(o),o=i;if(e.stripWhiteSpace&&!r.textContent.trim()){t.removeChild(r);continue}}let n={parentIndex:s,parentInfo:o};this._parseTemplateNode(r,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),r.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,o){let i=t,r=this._parseTemplate(i,e);return(r.content=i.content.ownerDocument.createDocumentFragment()).appendChild(i.content),o.templateInfo=r,!0}static _parseTemplateNodeAttributes(t,e,o){let i=!1,r=Array.from(t.attributes);for(let s,n=r.length-1;s=r[n];n--)i=this._parseTemplateNodeAttribute(t,e,o,s.name,s.value)||i;return i}static _parseTemplateNodeAttribute(t,e,o,i,r){return"on-"===i.slice(0,3)?(t.removeAttribute(i),o.events=o.events||[],o.events.push({name:i.slice(3),value:r}),!0):"id"===i&&(o.id=r,!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,r=document.importNode(i,!0);r.__noInsertionPoint=!e.hasInsertionPoint;let s=r.nodeList=new Array(o.length);r.$={};for(let t,i=0,n=o.length;i<n&&(t=o[i]);i++){let o=s[i]=ye(r,t);ve(0,r.$,o,t),xe(0,o,t,e),we(this,o,t)}return r}_addMethodEventListenerToNode(t,e,o,i){let r=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,r),r}_addEventListenerToNode(t,e,o){t.addEventListener(e,o)}_removeEventListenerFromNode(t,e,o){t.removeEventListener(e,o)}}));
|
|
993
999
|
/**
|
|
994
1000
|
* @fileoverview
|
|
995
1001
|
* @suppress {checkPrototypalTypes}
|
|
@@ -1000,7 +1006,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1000
1006
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1001
1007
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1002
1008
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1003
|
-
*/let Ae=0;const ke=[],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=Ae++;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){Ae++;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===Ae||r&&!Ie(t,n.trigger)||(n.info.lastRun=Ae,Re(n.info,o,i))}};function Be(t,e,o,i,r){let s=Ge(t,e,o,i,r);if(s===ke)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!==ke&&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===ke?ke: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=kt((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=Ae++;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 ke;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=kt((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,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=
|
|
1004
1010
|
/**
|
|
1005
1011
|
@license
|
|
1006
1012
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1010,7 +1016,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
1010
1016
|
Code distributed by Google as part of the polymer project is also
|
|
1011
1017
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1012
1018
|
*/
|
|
1013
|
-
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 r 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 r})),lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,co=
|
|
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 r 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 r})),lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,co=At((t=>{const e=ao(so(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 r=e.content.querySelectorAll("style"),s=Mt(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 r=n[o];r.textContent=t._processStyleText(r.textContent,i),e.content.insertBefore(r,a)}let l=0;for(let e=0;e<s.length;e++){let o=s[e],n=r[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&&ct){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=ht,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)}}})),ho=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});
|
|
1014
1020
|
/**
|
|
1015
1021
|
* @fileoverview
|
|
1016
1022
|
* @suppress {checkPrototypalTypes}
|
|
@@ -1114,7 +1120,7 @@ class go{static detectScrollType(){const t=document.createElement("div");t.textC
|
|
|
1114
1120
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
1115
1121
|
* license.
|
|
1116
1122
|
*/
|
|
1117
|
-
const
|
|
1123
|
+
const ko=e`
|
|
1118
1124
|
:host {
|
|
1119
1125
|
/* Square */
|
|
1120
1126
|
--lumo-space-xs: 0.25rem;
|
|
@@ -1137,7 +1143,7 @@ const Ao=e`
|
|
|
1137
1143
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
1138
1144
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
1139
1145
|
}
|
|
1140
|
-
`,
|
|
1146
|
+
`,Ao=document.createElement("template");Ao.innerHTML=`<style>${ko.toString().replace(":host","html")}</style>`,document.head.appendChild(Ao.content);
|
|
1141
1147
|
/**
|
|
1142
1148
|
* @license
|
|
1143
1149
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -1248,7 +1254,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1248
1254
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1249
1255
|
Code distributed by Google as part of the polymer project is also
|
|
1250
1256
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1251
|
-
*/function Fo(t,e,o,i,r){let s;r&&(s="object"==typeof o&&null!==o,s&&(i=t.__dataTemp[e]));let n=i!==o&&(i==i||o==o);return s&&n&&(t.__dataTemp[e]=o),n}const Ro=
|
|
1257
|
+
*/function Fo(t,e,o,i,r){let s;r&&(s="object"==typeof o&&null!==o,s&&(i=t.__dataTemp[e]));let n=i!==o&&(i==i||o==o);return s&&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;
|
|
1252
1258
|
/**
|
|
1253
1259
|
@license
|
|
1254
1260
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1269,7 +1275,7 @@ let Bo=null;function Vo(){return Bo}Vo.prototype=Object.create(HTMLTemplateEleme
|
|
|
1269
1275
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
1270
1276
|
* license.
|
|
1271
1277
|
*/
|
|
1272
|
-
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,ri=ei(/^iPhone/)||ii;ti(/^((?!chrome|android).)*safari/i);const si=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})(),ni=
|
|
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,ri=ei(/^iPhone/)||ii;ti(/^((?!chrome|android).)*safari/i);const si=(()=>{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)}}));
|
|
1273
1279
|
/**
|
|
1274
1280
|
* @license
|
|
1275
1281
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2277,7 +2283,7 @@ try {
|
|
|
2277
2283
|
* Code distributed by Google as part of the polymer project is also
|
|
2278
2284
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2279
2285
|
*/
|
|
2280
|
-
let xi=0,Ci=0;const
|
|
2286
|
+
let xi=0,Ci=0;const ki=[];let Ai=0,Ei=!1;const Pi=document.createTextNode("");new window.MutationObserver((function(){Ei=!1;const t=ki.length;for(let e=0;e<t;e++){const t=ki[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}ki.splice(0,t),Ci+=t})).observe(Pi,{characterData:!0});const Si={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)}},Di={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Ti={run(t){Ei||(Ei=!0,Pi.textContent=Ai,Ai+=1),ki.push(t);const e=xi;return xi+=1,e},cancel(t){const e=t-Ci;if(e>=0){if(!ki[e])throw new Error(`invalid async handle: ${t}`);ki[e]=null}}};
|
|
2281
2287
|
/**
|
|
2282
2288
|
@license
|
|
2283
2289
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2339,7 +2345,7 @@ class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.l
|
|
|
2339
2345
|
*
|
|
2340
2346
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2341
2347
|
* license.
|
|
2342
|
-
*/const Ri=
|
|
2348
|
+
*/const Ri=At((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Hi="string"==typeof document.head.style.touchAction,Bi="__polymerGestures",Vi="__polymerGesturesHandled",ji="__polymerGesturesTouchAction",Ui=["mousedown","mousemove","mouseup","click"],Yi=[0,1,4,2],qi=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();
|
|
2343
2349
|
/**
|
|
2344
2350
|
@license
|
|
2345
2351
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2358,7 +2364,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2358
2364
|
*
|
|
2359
2365
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2360
2366
|
* license.
|
|
2361
|
-
*/lr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this;tr(this.info,(t=>{Zi(t)||(ur("up",e,t),er(o.info))}),(t=>{Zi(t)&&ur("up",e,t),er(o.info)})),ur("down",e,t)},touchstart(t){ur("down",sr(t),t.changedTouches[0],t)},touchend(t){ur("up",sr(t),t.changedTouches[0],t)}}),lr({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,er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this,i=t=>{const i=t.clientX,r=t.clientY;pr(o.info,i,r)&&(o.info.state=o.info.started?"mouseup"===t.type?"end":"track":"start","start"===o.info.state&&hr("tap"),o.info.addMove({x:i,y:r}),Zi(t)||(o.info.state="end",er(o.info)),e&&mr(o.info,e,t),o.info.started=!0)};tr(this.info,i,(t=>{o.info.started&&i(t),er(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=sr(t),o=t.changedTouches[0],i=o.clientX,r=o.clientY;pr(this.info,i,r)&&("start"===this.info.state&&hr("tap"),this.info.addMove({x:i,y:r}),mr(this.info,e,o),this.info.state="track",this.info.started=!0)},touchend(t){const e=sr(t),o=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),mr(this.info,e,o))}}),lr({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)&&fr(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){fr(this.info,t.changedTouches[0],t)}});const _r=
|
|
2367
|
+
*/lr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this;tr(this.info,(t=>{Zi(t)||(ur("up",e,t),er(o.info))}),(t=>{Zi(t)&&ur("up",e,t),er(o.info)})),ur("down",e,t)},touchstart(t){ur("down",sr(t),t.changedTouches[0],t)},touchend(t){ur("up",sr(t),t.changedTouches[0],t)}}),lr({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,er(this.info)},mousedown(t){if(!Zi(t))return;const e=sr(t),o=this,i=t=>{const i=t.clientX,r=t.clientY;pr(o.info,i,r)&&(o.info.state=o.info.started?"mouseup"===t.type?"end":"track":"start","start"===o.info.state&&hr("tap"),o.info.addMove({x:i,y:r}),Zi(t)||(o.info.state="end",er(o.info)),e&&mr(o.info,e,t),o.info.started=!0)};tr(this.info,i,(t=>{o.info.started&&i(t),er(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=sr(t),o=t.changedTouches[0],i=o.clientX,r=o.clientY;pr(this.info,i,r)&&("start"===this.info.state&&hr("tap"),this.info.addMove({x:i,y:r}),mr(this.info,e,o),this.info.state="track",this.info.started=!0)},touchend(t){const e=sr(t),o=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),mr(this.info,e,o))}}),lr({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)&&fr(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){fr(this.info,t.changedTouches[0],t)}});const _r=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){}})),gr=t=>class extends(Ri(_r(t))){get _activeKeys(){return[" "]}ready(){super.ready(),ar(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),ar(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)}}
|
|
2362
2368
|
/**
|
|
2363
2369
|
* @license
|
|
2364
2370
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2368,7 +2374,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2368
2374
|
*
|
|
2369
2375
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2370
2376
|
* license.
|
|
2371
|
-
*/,br=
|
|
2377
|
+
*/,br=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}})),yr=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)}}
|
|
2372
2378
|
/**
|
|
2373
2379
|
* @license
|
|
2374
2380
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2807,7 +2813,7 @@ const Cr=document.createElement("template");Cr.innerHTML='\n <style>\n @font
|
|
|
2807
2813
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2808
2814
|
* license.
|
|
2809
2815
|
*/
|
|
2810
|
-
const
|
|
2816
|
+
const kr=e`
|
|
2811
2817
|
[part$='button'] {
|
|
2812
2818
|
flex: none;
|
|
2813
2819
|
width: 1em;
|
|
@@ -2834,7 +2840,7 @@ const Ar=e`
|
|
|
2834
2840
|
font-family: 'lumo-icons';
|
|
2835
2841
|
display: block;
|
|
2836
2842
|
}
|
|
2837
|
-
`;H("",
|
|
2843
|
+
`;H("",kr,{moduleId:"lumo-field-button"});
|
|
2838
2844
|
/**
|
|
2839
2845
|
* @license
|
|
2840
2846
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2845,7 +2851,7 @@ const Ar=e`
|
|
|
2845
2851
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2846
2852
|
* license.
|
|
2847
2853
|
*/
|
|
2848
|
-
const
|
|
2854
|
+
const Ar=e`
|
|
2849
2855
|
:host([has-helper]) [part='helper-text']::before {
|
|
2850
2856
|
content: '';
|
|
2851
2857
|
display: block;
|
|
@@ -3013,7 +3019,7 @@ const kr=e`
|
|
|
3013
3019
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3014
3020
|
* license.
|
|
3015
3021
|
*/
|
|
3016
|
-
const Pr=[Er,Ar,
|
|
3022
|
+
const Pr=[Er,kr,Ar,e`
|
|
3017
3023
|
:host {
|
|
3018
3024
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
3019
3025
|
color: var(--lumo-body-text-color);
|
|
@@ -3175,7 +3181,7 @@ const Pr=[Er,Ar,kr,e`
|
|
|
3175
3181
|
* Google as part of the polymer project is also subject to an additional IP
|
|
3176
3182
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3177
3183
|
*/
|
|
3178
|
-
const Sr="disable-upgrade",Dr=
|
|
3184
|
+
const Sr="disable-upgrade",Dr=At((t=>{const e=co(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(Sr)}_initializeProperties(){this.hasAttribute(Sr)?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==Sr?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 Tr(t){return t?new Set(t.split(" ")):new Set}function Or(t){return[...t].join(" ")}
|
|
3179
3185
|
/**
|
|
3180
3186
|
* @license
|
|
3181
3187
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3660,7 +3666,7 @@ class Zr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
|
|
|
3660
3666
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3661
3667
|
* license.
|
|
3662
3668
|
*/
|
|
3663
|
-
const ts=
|
|
3669
|
+
const ts=At((t=>class extends(br(yr(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)}}));
|
|
3664
3670
|
/**
|
|
3665
3671
|
* @license
|
|
3666
3672
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3710,7 +3716,7 @@ const ts=kt((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3710
3716
|
*
|
|
3711
3717
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3712
3718
|
* license.
|
|
3713
|
-
*/const ss=
|
|
3719
|
+
*/const ss=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 rs(this)}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),ns=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}})),as=t=>class extends(ns(ss(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 os(this),this._helperController=new is(this),this._errorController=new es(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)}))}}
|
|
3714
3720
|
/**
|
|
3715
3721
|
* @license
|
|
3716
3722
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3720,7 +3726,7 @@ const ts=kt((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3720
3726
|
*
|
|
3721
3727
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3722
3728
|
* license.
|
|
3723
|
-
*/,ls=
|
|
3729
|
+
*/,ls=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)}})),ds=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}})),cs=At((t=>class extends(ls(ns(ds(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}})),hs=new WeakMap;
|
|
3724
3730
|
/**
|
|
3725
3731
|
* @license
|
|
3726
3732
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3730,7 +3736,7 @@ const ts=kt((t=>class extends(br(yr(t))){static get properties(){return{autofocu
|
|
|
3730
3736
|
*
|
|
3731
3737
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3732
3738
|
* license.
|
|
3733
|
-
*/const us=
|
|
3739
|
+
*/const us=At((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return hs.has(t)||hs.set(t,new Set),hs.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))}))}})),ps=t=>class extends(us(ts(cs(as(_r(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(),si||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)}}}
|
|
3734
3740
|
/**
|
|
3735
3741
|
* @license
|
|
3736
3742
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -4041,7 +4047,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4041
4047
|
outline: none;
|
|
4042
4048
|
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
4043
4049
|
width: 100%;
|
|
4044
|
-
color: #0F1941;
|
|
4050
|
+
color: #0F1941 !important;
|
|
4045
4051
|
}
|
|
4046
4052
|
|
|
4047
4053
|
.form.error .form-input {
|
|
@@ -4161,7 +4167,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4161
4167
|
}
|
|
4162
4168
|
|
|
4163
4169
|
.link-text:hover {
|
|
4164
|
-
|
|
4170
|
+
text-decoration: underline;
|
|
4165
4171
|
}
|
|
4166
4172
|
|
|
4167
4173
|
.tooltip-wrapper randstad-icon {
|
|
@@ -4176,6 +4182,13 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4176
4182
|
.toggle-password randstad-icon svg {
|
|
4177
4183
|
fill: #2175D9 !important;
|
|
4178
4184
|
}
|
|
4185
|
+
|
|
4186
|
+
input:-webkit-autofill,
|
|
4187
|
+
textarea:-webkit-autofill {
|
|
4188
|
+
box-shadow: 0 0 0px 1000px white inset !important;
|
|
4189
|
+
-webkit-text-fill-color: #0F1941 !important;
|
|
4190
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
4191
|
+
}
|
|
4179
4192
|
`}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;this.value=e.value,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0}))}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}render(){return o`
|
|
4180
4193
|
<div
|
|
4181
4194
|
class="form ${this.error?"error":""} ${this.success?"success":""} ${this.disabled?"disabled":""}"
|
|
@@ -4215,11 +4228,10 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4215
4228
|
/>
|
|
4216
4229
|
${"password"===this.type?o`
|
|
4217
4230
|
<button type="button" class="toggle-password" @click=${this.togglePassword}>
|
|
4218
|
-
<
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
></randstad-icon>
|
|
4231
|
+
<button type="button" class="toggle-password" @click=${this.togglePassword}>
|
|
4232
|
+
${this.isPasswordVisible?o`<randstad-icon name="eye_crossed" size="24px" color="#2175D9" key="visible"></randstad-icon>`:o`<randstad-icon name="eye" size="24px" color="#2175D9" key="hidden"></randstad-icon>`}
|
|
4233
|
+
</button>
|
|
4234
|
+
|
|
4223
4235
|
</button>
|
|
4224
4236
|
`:r}
|
|
4225
4237
|
`}
|
|
@@ -4233,11 +4245,15 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4233
4245
|
${this.errorMessage?this.errorMessage:o`<slot name="error-extended"></slot>`}
|
|
4234
4246
|
</p>
|
|
4235
4247
|
`:r}
|
|
4236
|
-
${this.linkText&&this.linkRoute?o
|
|
4248
|
+
${this.linkText&&this.linkRoute?o`
|
|
4249
|
+
<div style="text-align: right;">
|
|
4250
|
+
<a class="link-text" href="#" @click=${this.handleLinkClick}>${this.linkText}</a>
|
|
4251
|
+
</div>
|
|
4252
|
+
`:r}
|
|
4237
4253
|
|
|
4238
4254
|
${this.helper?o`<p class="helper-description">${this.helper}</p>`:r}
|
|
4239
4255
|
</div>
|
|
4240
|
-
`}};n([I({type:String}),a("design:type",String)],xs.prototype,"placeholder",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"label",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"labelColor",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"value",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],xs.prototype,"icon",void 0),n([I({type:String}),a("design:type",Object)],xs.prototype,"helper",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"error",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"errorMessage",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"success",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"disabled",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"typing",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"type",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"tooltipMessage",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"linkText",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"linkRoute",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],xs.prototype,"isPasswordVisible",void 0),xs=n([l("randstad-form")],xs);class Cs extends t{static{this.styles=e`
|
|
4256
|
+
`}};n([I({type:String}),a("design:type",String)],xs.prototype,"placeholder",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"label",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"labelColor",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"value",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],xs.prototype,"icon",void 0),n([I({type:String}),a("design:type",Object)],xs.prototype,"helper",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"error",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"errorMessage",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"success",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"disabled",void 0),n([I({type:Boolean}),a("design:type",Boolean)],xs.prototype,"typing",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"type",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"tooltipMessage",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"linkText",void 0),n([I({type:String}),a("design:type",String)],xs.prototype,"linkRoute",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Object)],xs.prototype,"isPasswordVisible",void 0),xs=n([l("randstad-form")],xs);class Cs extends t{constructor(){super(...arguments),this.name="",this.size="24px",this.color="",this.key=""}static{this.styles=e`
|
|
4241
4257
|
:host {
|
|
4242
4258
|
display: inline-flex;
|
|
4243
4259
|
width: var(--icon-size, 24px);
|
|
@@ -4245,12 +4261,13 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4245
4261
|
align-items: center;
|
|
4246
4262
|
justify-content: center;
|
|
4247
4263
|
}
|
|
4264
|
+
|
|
4248
4265
|
svg {
|
|
4249
|
-
width: var(--icon-size, 24px);
|
|
4250
|
-
height: var(--icon-size, 24px);
|
|
4266
|
+
width: var(--icon-size, 24px);
|
|
4267
|
+
height: var(--icon-size, 24px);
|
|
4251
4268
|
fill: var(--icon-color, currentColor);
|
|
4252
4269
|
}
|
|
4253
|
-
`}
|
|
4270
|
+
`}updated(t){(t.has("name")||t.has("key"))&&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 SVG válido");i.removeAttribute("fill"),i.setAttribute("width",this.size),i.setAttribute("height",this.size),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 r}}n([I({type:String}),a("design:type",String)],Cs.prototype,"name",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"size",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"color",void 0),n([I({type:String}),a("design:type",String)],Cs.prototype,"key",void 0),customElements.define("randstad-icon",Cs);let ks=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal"}static{this.styles=e`
|
|
4254
4271
|
:host {
|
|
4255
4272
|
display: none;
|
|
4256
4273
|
position: fixed;
|
|
@@ -4329,7 +4346,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4329
4346
|
<slot name="confirm-button"></slot>
|
|
4330
4347
|
</div>
|
|
4331
4348
|
</div>
|
|
4332
|
-
`}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],
|
|
4349
|
+
`}};n([I({type:Boolean,reflect:!0}),a("design:type",Object)],ks.prototype,"open",void 0),n([I({type:String}),a("design:type",Object)],ks.prototype,"title",void 0),ks=n([l("custom-modal")],ks);class As extends t{static{this.styles=e`
|
|
4333
4350
|
:host {
|
|
4334
4351
|
display: block;
|
|
4335
4352
|
border-radius: 4px;
|
|
@@ -4337,7 +4354,6 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4337
4354
|
line-height: 25px;
|
|
4338
4355
|
font-weight: 400;
|
|
4339
4356
|
color: white;
|
|
4340
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
4341
4357
|
font-family: 'Graphik', sans-serif;
|
|
4342
4358
|
}
|
|
4343
4359
|
.container {
|
|
@@ -4379,7 +4395,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4379
4395
|
<randstad-icon class="icon" name="${this.icon}" size="24px" style="color: var(--icon-color);"></randstad-icon>
|
|
4380
4396
|
<span class="message">${this.message}</span>
|
|
4381
4397
|
</div>
|
|
4382
|
-
`}}customElements.define("randstad-notice",
|
|
4398
|
+
`}}customElements.define("randstad-notice",As);let Es=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`
|
|
4383
4399
|
:host {
|
|
4384
4400
|
display: none;
|
|
4385
4401
|
position: fixed;
|
|
@@ -4450,13 +4466,17 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4450
4466
|
`}closePopup(t){this.dispatchEvent(new CustomEvent("popup-close",{detail:t})),this.open=!1}render(){return o`
|
|
4451
4467
|
<div class="popup" style="width: ${this.width};">
|
|
4452
4468
|
${"default"===this.type?o`
|
|
4453
|
-
<div
|
|
4469
|
+
<div>
|
|
4470
|
+
<randstad-icon name="${this.icon}" size="56px"></randstad-icon>
|
|
4471
|
+
</div>
|
|
4454
4472
|
<p>${this.description}</p>
|
|
4455
4473
|
<div class="buttons">
|
|
4456
4474
|
<button class="primary" @click=${()=>this.closePopup(!0)}>${this.buttonText}</button>
|
|
4457
4475
|
</div>
|
|
4458
4476
|
`:o`
|
|
4459
|
-
<div
|
|
4477
|
+
<div>
|
|
4478
|
+
<randstad-icon name="${this.icon}" size="56px"></randstad-icon>
|
|
4479
|
+
</div>
|
|
4460
4480
|
<h2>${this.title}</h2>
|
|
4461
4481
|
<p>${this.description}</p>
|
|
4462
4482
|
<div class="buttons">
|
|
@@ -4539,7 +4559,7 @@ class wn extends vn{renderIndicator(){return this.indeterminate?this.renderIndet
|
|
|
4539
4559
|
* @license
|
|
4540
4560
|
* Copyright 2023 Google LLC
|
|
4541
4561
|
* SPDX-License-Identifier: Apache-2.0
|
|
4542
|
-
*/;let Cn=class extends wn{};Cn.styles=[xn],Cn=n([l("md-circular-progress")],Cn);let
|
|
4562
|
+
*/;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`
|
|
4543
4563
|
:host {
|
|
4544
4564
|
display: inline-flex;
|
|
4545
4565
|
justify-content: center;
|
|
@@ -4579,13 +4599,13 @@ class wn extends vn{renderIndicator(){return this.indeterminate?this.renderIndet
|
|
|
4579
4599
|
></md-circular-progress>
|
|
4580
4600
|
<span class="progress-text">${this.currentStep} de ${this.steps}</span>
|
|
4581
4601
|
</div>
|
|
4582
|
-
`}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)],
|
|
4602
|
+
`}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);
|
|
4583
4603
|
/**
|
|
4584
4604
|
* @license
|
|
4585
4605
|
* Copyright 2023 Google LLC
|
|
4586
4606
|
* SPDX-License-Identifier: Apache-2.0
|
|
4587
4607
|
*/
|
|
4588
|
-
const
|
|
4608
|
+
const An=Symbol("attachableController");let En;s||(En=new MutationObserver((t=>{for(const e of t)e.target[An]?.hostConnected()})));class Pn{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[An]=this,En?.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}}
|
|
4589
4609
|
/**
|
|
4590
4610
|
* @license
|
|
4591
4611
|
* Copyright 2021 Google LLC
|
|
@@ -4845,6 +4865,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4845
4865
|
background: white;
|
|
4846
4866
|
cursor: pointer;
|
|
4847
4867
|
transition: background-color 0.3s ease;
|
|
4868
|
+
color: #0F1941 !important;
|
|
4848
4869
|
}
|
|
4849
4870
|
|
|
4850
4871
|
.input-container:hover .filter-input {
|
|
@@ -4952,7 +4973,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4952
4973
|
.hidden {
|
|
4953
4974
|
display: none;
|
|
4954
4975
|
}
|
|
4955
|
-
`}constructor(){super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.labelColor="",this.filterable=!0,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.debounceTimeout=null,this.defaultValue&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}willUpdate(t){t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}connectedCallback(){super.connectedCallback(),this.filteredOptions=[...this.options],document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside.bind(this))}handleInputClick(t){this.disabled||t.target!==this.shadowRoot.querySelector(".filter-input")||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){const e=t.target.value.toLowerCase();this.filterValue=e,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()}handleSelect(t){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.isOpen||this.filterValue?(this.isOpen=!1,this.filterValue="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.isOpen=!0,this.requestUpdate())}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1,this.requestUpdate())}render(){
|
|
4976
|
+
`}constructor(){super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.labelColor="",this.filterable=!0,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.debounceTimeout=null,this.defaultValue&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}willUpdate(t){t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")&&this.options.includes(this.defaultValue)&&(this.filterValue=this.defaultValue)}connectedCallback(){super.connectedCallback(),this.filteredOptions=[...this.options],document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside.bind(this))}handleInputClick(t){this.disabled||t.target!==this.shadowRoot.querySelector(".filter-input")||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){const e=t.target.value.toLowerCase();this.filterValue=e,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()}handleSelect(t){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.isOpen||this.filterValue?(this.isOpen=!1,this.filterValue="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0}))):this.isOpen=!0,this.requestUpdate())}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1,this.requestUpdate())}render(){return o`
|
|
4956
4977
|
<div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
4957
4978
|
${this.label?o`
|
|
4958
4979
|
<div class="label-container">
|
|
@@ -4975,7 +4996,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4975
4996
|
@click="${this.handleIconClick}"
|
|
4976
4997
|
?disabled="${this.disabled}"
|
|
4977
4998
|
>
|
|
4978
|
-
|
|
4999
|
+
${this.isOpen||this.filterValue?o`<randstad-icon name="close" size="24px" color="#2175D9" key="visible"></randstad-icon>`:o`<randstad-icon name="arrow_down" size="24px" color="#2175D9" key="hidden"></randstad-icon>`}
|
|
4979
5000
|
</button>
|
|
4980
5001
|
</div>
|
|
4981
5002
|
<ul class="options-list ${this.isOpen&&this.filteredOptions.length>0?"":"hidden"}">
|
|
@@ -4998,7 +5019,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4998
5019
|
height: 20px;
|
|
4999
5020
|
border-radius: 50%;
|
|
5000
5021
|
background-color: #ffffff;
|
|
5001
|
-
border: 1px solid #CFD1D9;
|
|
5022
|
+
border: 1px solid #CFD1D9;
|
|
5002
5023
|
position: relative;
|
|
5003
5024
|
box-sizing: content-box;
|
|
5004
5025
|
display: flex;
|
|
@@ -5008,17 +5029,22 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5008
5029
|
color: #CFD1D9;
|
|
5009
5030
|
}
|
|
5010
5031
|
.step .inner-circle {
|
|
5011
|
-
width:
|
|
5012
|
-
height:
|
|
5032
|
+
width: 4px;
|
|
5033
|
+
height: 4px;
|
|
5013
5034
|
border-radius: 50%;
|
|
5014
5035
|
background-color: #ffffff;
|
|
5015
5036
|
position: absolute;
|
|
5016
5037
|
top: 50%;
|
|
5017
5038
|
left: 50%;
|
|
5018
5039
|
transform: translate(-50%, -50%);
|
|
5040
|
+
/* Improve sharpness */
|
|
5041
|
+
image-rendering: -webkit-optimize-contrast;
|
|
5042
|
+
image-rendering: crisp-edges;
|
|
5043
|
+
backface-visibility: hidden;
|
|
5044
|
+
transform-style: preserve-3d;
|
|
5019
5045
|
}
|
|
5020
5046
|
.step.completed {
|
|
5021
|
-
background-color: #2175d9;
|
|
5047
|
+
background-color: #2175d9;
|
|
5022
5048
|
border: 1px solid #2175d9;
|
|
5023
5049
|
}
|
|
5024
5050
|
.step.completed randstad-icon {
|
|
@@ -5026,14 +5052,40 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5026
5052
|
}
|
|
5027
5053
|
.step.active {
|
|
5028
5054
|
background-color: #ffffff;
|
|
5029
|
-
border: 1px solid #2175d9;
|
|
5055
|
+
border: 1px solid #2175d9;
|
|
5030
5056
|
}
|
|
5031
5057
|
.step.active .inner-circle {
|
|
5032
5058
|
background-color: #2175d9;
|
|
5033
5059
|
}
|
|
5034
|
-
/*
|
|
5060
|
+
/* Animation for the active step's pulsing circle */
|
|
5061
|
+
.step.active .pulse-circle {
|
|
5062
|
+
width: 12px;
|
|
5063
|
+
height: 12px;
|
|
5064
|
+
border-radius: 50%;
|
|
5065
|
+
background-color: #2175d9;
|
|
5066
|
+
opacity: 0.25;
|
|
5067
|
+
position: absolute;
|
|
5068
|
+
top: 50%;
|
|
5069
|
+
left: 50%;
|
|
5070
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
5071
|
+
animation: pulse 2000ms ease-in-out infinite;
|
|
5072
|
+
/* Improve sharpness */
|
|
5073
|
+
image-rendering: -webkit-optimize-contrast;
|
|
5074
|
+
image-rendering: crisp-edges;
|
|
5075
|
+
backface-visibility: hidden;
|
|
5076
|
+
}
|
|
5077
|
+
@keyframes pulse {
|
|
5078
|
+
0% {
|
|
5079
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
5080
|
+
}
|
|
5081
|
+
80%, 100% {
|
|
5082
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5085
|
+
/* Improve rendering */
|
|
5035
5086
|
.step,
|
|
5036
|
-
.inner-circle
|
|
5087
|
+
.inner-circle,
|
|
5088
|
+
.pulse-circle {
|
|
5037
5089
|
will-change: transform;
|
|
5038
5090
|
-webkit-font-smoothing: antialiased;
|
|
5039
5091
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -5044,7 +5096,10 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5044
5096
|
<div
|
|
5045
5097
|
class="step ${e<this.currentStep?"completed":e===this.currentStep?"active":""}"
|
|
5046
5098
|
>
|
|
5047
|
-
${e<this.currentStep?o`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:
|
|
5099
|
+
${e<this.currentStep?o`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:e===this.currentStep?o`
|
|
5100
|
+
<span class="pulse-circle"></span>
|
|
5101
|
+
<span class="inner-circle"></span>
|
|
5102
|
+
`:o`<span class="inner-circle"></span>`}
|
|
5048
5103
|
</div>
|
|
5049
5104
|
`))}
|
|
5050
5105
|
</div>
|
|
@@ -5110,8 +5165,8 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5110
5165
|
align-items: center;
|
|
5111
5166
|
box-sizing: border-box;
|
|
5112
5167
|
min-height: 48px;
|
|
5113
|
-
min-width:
|
|
5114
|
-
max-width:
|
|
5168
|
+
min-width: 380px;
|
|
5169
|
+
max-width: 380px;
|
|
5115
5170
|
border-radius: 4px;
|
|
5116
5171
|
padding: 8px;
|
|
5117
5172
|
gap: 8px;
|
|
@@ -5165,6 +5220,17 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5165
5220
|
.informative {
|
|
5166
5221
|
background-color: var(--ui-informative);
|
|
5167
5222
|
}
|
|
5223
|
+
|
|
5224
|
+
@media (max-width: 940px) {
|
|
5225
|
+
:host {
|
|
5226
|
+
bottom: 16px !important;
|
|
5227
|
+
left: 50% !important;
|
|
5228
|
+
right: auto !important;
|
|
5229
|
+
top: auto !important;
|
|
5230
|
+
transform: translateX(-50%) !important;
|
|
5231
|
+
justify-content: center !important;
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5168
5234
|
`]}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1,this.position="bottom-center"}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean},position:{type:String,reflect:!0}}}render(){const t="error"===this.type||"warning"===this.type?"alert":"status";return o`
|
|
5169
5235
|
<div
|
|
5170
5236
|
class="container ${this.open?"":"hidden"} ${this.type}"
|
|
@@ -5188,5 +5254,5 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5188
5254
|
border: none;
|
|
5189
5255
|
cursor: pointer;
|
|
5190
5256
|
}
|
|
5191
|
-
`}render(){return o`<button>${this.label}</button>`}};n([I({type:String}),a("design:type",Object)],ya.prototype,"label",void 0),ya=n([l("test-button")],ya);export{M as Checkbox,
|
|
5257
|
+
`}render(){return o`<button>${this.label}</button>`}};n([I({type:String}),a("design:type",Object)],ya.prototype,"label",void 0),ya=n([l("test-button")],ya);export{M as Checkbox,ks as CustomModal,Es as CustomPopup,pa as CustomRadio,fa as CustomStepper,ma as FilterableSelect,Cs as IconComponent,kn as MyCircularProgress,z as RandstadButton,xs as RandstadForm,ya as TestButton,ba as TestComponent};
|
|
5192
5258
|
//# sourceMappingURL=index.js.map
|