@randstad-uca/design-system 1.0.4 → 1.0.5
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/Checkbox.d.ts +1 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/index.js +70 -32
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/stories/Form.stories.d.ts +1 -1
- package/dist/stories/Modal.stories.d.ts +17 -5
- package/dist/stories/Popup.stories.d.ts +1 -4
- package/dist/stories/Select.stories.d.ts +10 -0
- package/package.json +1 -1
- package/readme.md +52 -1
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ const T={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:P},O=(t=T,e,
|
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let
|
|
39
|
+
function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let z=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null}static{this.styles=e`
|
|
40
40
|
:host {
|
|
41
41
|
display: inline-block;
|
|
42
42
|
}
|
|
@@ -241,7 +241,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
241
241
|
${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?o`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
242
242
|
`}
|
|
243
243
|
</button>
|
|
244
|
-
`}};n([I({type:String}),a("design:type",String)],
|
|
244
|
+
`}};n([I({type:String}),a("design:type",String)],z.prototype,"variant",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"size",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"label",void 0),n([I({type:Boolean}),a("design:type",Object)],z.prototype,"loader",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconSrc",void 0),n([I({type:String}),a("design:type",String)],z.prototype,"iconPosition",void 0),n([I({type:Boolean,reflect:!0}),a("design:type",Boolean)],z.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],z.prototype,"iconName",void 0),z=n([l("randstad-button")],z);let M=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
|
|
245
245
|
:host {
|
|
246
246
|
display: block;
|
|
247
247
|
max-width: 100%;
|
|
@@ -297,7 +297,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
297
297
|
text-decoration: underline;
|
|
298
298
|
cursor: pointer;
|
|
299
299
|
}
|
|
300
|
-
`}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">${t}</a>`:o`${t}`}render(){return o`
|
|
300
|
+
`}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`
|
|
301
301
|
<label>
|
|
302
302
|
<input
|
|
303
303
|
type="checkbox"
|
|
@@ -311,7 +311,7 @@ function N(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Refl
|
|
|
311
311
|
${this.renderClause(this.clause2Text,this.clause2Url)}.
|
|
312
312
|
</span>
|
|
313
313
|
</label>
|
|
314
|
-
`}};n([I({type:String}),a("design:type",Object)],
|
|
314
|
+
`}};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);
|
|
315
315
|
/**
|
|
316
316
|
* @license
|
|
317
317
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -944,7 +944,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
944
944
|
Code distributed by Google as part of the polymer project is also
|
|
945
945
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
946
946
|
*/
|
|
947
|
-
const Ot="shady-unscoped";function It(t){return Tt.import(t)}function $t(t){const e=at((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function Nt(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...
|
|
947
|
+
const Ot="shady-unscoped";function It(t){return Tt.import(t)}function $t(t){const e=at((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function Nt(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...zt(e[t]));return o}function zt(t){const e=It(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...Lt(e));const o=e.querySelector("template");o&&t.push(...Mt(o,e.assetpath)),e._styles=t}return e._styles}function Mt(t,e){if(!t._styles){const o=[],i=t.content.querySelectorAll("style");for(let t=0;t<i.length;t++){let r=i[t],s=r.getAttribute("include");s&&o.push(...Nt(s).filter((function(t,e,o){return o.indexOf(t)===e}))),e&&(r.textContent=at(r.textContent,e)),o.push(r)}t._styles=o}return t._styles}function Lt(t){const e=[],o=t.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<o.length;t++){let i=o[t];if(i.import){const t=i.import,o=i.hasAttribute(Ot);if(o&&!t._unscopedStyle){const e=$t(t);e.setAttribute(Ot,""),t._unscopedStyle=e}else t._style||(t._style=$t(t));e.push(o?t._unscopedStyle:t._style)}}return e}
|
|
948
948
|
/**
|
|
949
949
|
@license
|
|
950
950
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1000,7 +1000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1000
1000
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1001
1001
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1002
1002
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1003
|
-
*/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 Me(t,Zt(i)+"-changed",o[e],e),!0}return!1}function Me(t,e,o,i){let r={value:o,queueProperty:!0};i&&(r.path=i),Ft(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function ze(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]),Me(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:ze,info:{eventName:Zt(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ee.REFLECT,{fn:Le,info:{attrName:e}})}_createComputedProperty(t,e,o){let i=to(e);if(!i)throw new Error("Malformed computed expression '"+e+"'");const 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=
|
|
1003
|
+
*/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
1004
|
/**
|
|
1005
1005
|
@license
|
|
1006
1006
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1010,7 +1010,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
1010
1010
|
Code distributed by Google as part of the polymer project is also
|
|
1011
1011
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1012
1012
|
*/
|
|
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=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=
|
|
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=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
1014
|
/**
|
|
1015
1015
|
* @fileoverview
|
|
1016
1016
|
* @suppress {checkPrototypalTypes}
|
|
@@ -1239,7 +1239,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1239
1239
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1240
1240
|
Code distributed by Google as part of the polymer project is also
|
|
1241
1241
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1242
|
-
*/function
|
|
1242
|
+
*/function zo(){Io=!0,requestAnimationFrame((function(){Io=!1,function(t){for(;t.length;)Mo(t.shift())}($o),setTimeout((function(){!function(t){for(let e=0,o=t.length;e<o;e++)Mo(t.shift())}(No)}))}))}function Mo(t){const e=t[0],o=t[1],i=t[2];try{o.apply(e,i)}catch(t){setTimeout((()=>{throw t}))}}function Lo(t,e,o){Io||zo(),No.push([t,e,o])}
|
|
1243
1243
|
/**
|
|
1244
1244
|
@license
|
|
1245
1245
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2298,7 +2298,7 @@ let Oi,Ii=class t{static debounce(e,o,i){return e instanceof t?e._cancelAsync():
|
|
|
2298
2298
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2299
2299
|
* license.
|
|
2300
2300
|
*/
|
|
2301
|
-
window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){vi(wi)};const Ni=new Set,
|
|
2301
|
+
window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){vi(wi)};const Ni=new Set,zi=t=>class extends(xo(t)){static get version(){return"23.5.12"}static finalize(){super.finalize();const{is:t}=this;var e;t&&!Ni.has(t)&&(window.Vaadin.registrations.push(this),Ni.add(t),window.Vaadin.developmentModeCallback&&(Oi=Ii.debounce(Oi,Di,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),e=Oi,$i.add(e)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
|
|
2302
2302
|
/**
|
|
2303
2303
|
* @license
|
|
2304
2304
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2308,7 +2308,7 @@ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.regist
|
|
|
2308
2308
|
*
|
|
2309
2309
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2310
2310
|
* license.
|
|
2311
|
-
*/;let
|
|
2311
|
+
*/;let Mi=0;
|
|
2312
2312
|
/**
|
|
2313
2313
|
* @license
|
|
2314
2314
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2319,7 +2319,7 @@ window.Vaadin=window.Vaadin||{},window.Vaadin.registrations=window.Vaadin.regist
|
|
|
2319
2319
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2320
2320
|
* license.
|
|
2321
2321
|
*/
|
|
2322
|
-
class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${
|
|
2322
|
+
class Li extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${Mi++}`}constructor(t,e,o,i,r){super(),this.host=t,this.slotName=e,this.slotFactory=o,this.slotInitializer=i,r&&(this.defaultId=Li.generateId(e,t))}hostConnected(){if(!this.initialized){let t=this.getSlotChild();t?(this.node=t,this.initCustomNode(t)):t=this.attachDefaultNode(),this.initNode(t),this.observe(),this.initialized=!0}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:o}=this;let i=this.defaultNode;return!i&&o&&(i=o(t),i instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}initNode(t){const{slotInitializer:e}=this;e&&e(this.host,t)}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Oo(o,(t=>{const e=this.node,o=t.addedNodes.find((t=>t!==e));t.removedNodes.length&&t.removedNodes.forEach((t=>{this.teardownNode(t)})),o&&(e&&e.isConnected&&this.host.removeChild(e),this.node=o,o!==this.defaultNode&&(this.initCustomNode(o),this.initNode(o)))}))}}
|
|
2323
2323
|
/**
|
|
2324
2324
|
* @license
|
|
2325
2325
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -2398,7 +2398,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2398
2398
|
*
|
|
2399
2399
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
2400
2400
|
* license.
|
|
2401
|
-
*/class wr extends(vr(
|
|
2401
|
+
*/class wr extends(vr(zi(q(ni(_o))))){static get is(){return"vaadin-button"}static get template(){return mo`
|
|
2402
2402
|
<style>
|
|
2403
2403
|
:host {
|
|
2404
2404
|
display: inline-block;
|
|
@@ -3186,7 +3186,7 @@ const Sr="disable-upgrade",Dr=At((t=>{const e=co(t);let o=(t=>{for(;t;){const e=
|
|
|
3186
3186
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3187
3187
|
* license.
|
|
3188
3188
|
*/
|
|
3189
|
-
const Ir={start:"top",end:"bottom"},$r={start:"left",end:"right"},Nr=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),
|
|
3189
|
+
const Ir={start:"top",end:"bottom"},$r={start:"left",end:"right"},Nr=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),zr=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=
|
|
3190
3190
|
/**
|
|
3191
3191
|
* @license
|
|
3192
3192
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
@@ -3207,7 +3207,7 @@ function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);br
|
|
|
3207
3207
|
*
|
|
3208
3208
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3209
3209
|
* license.
|
|
3210
|
-
*/,
|
|
3210
|
+
*/,Mr=e`
|
|
3211
3211
|
:host([dir='rtl']) [part='input-field'] {
|
|
3212
3212
|
direction: ltr;
|
|
3213
3213
|
}
|
|
@@ -3236,7 +3236,7 @@ H("vaadin-date-picker-overlay",e`
|
|
|
3236
3236
|
[part~='content'] {
|
|
3237
3237
|
flex: auto;
|
|
3238
3238
|
}
|
|
3239
|
-
`,{moduleId:"vaadin-date-picker-overlay-styles"});class Fr extends(Dr(
|
|
3239
|
+
`,{moduleId:"vaadin-date-picker-overlay-styles"});class Fr extends(Dr(zr(mi))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Lr||(Lr=super.template.cloneNode(!0),Lr.content.querySelector('[part~="overlay"]').removeAttribute("tabindex")),Lr}}customElements.define(Fr.is,Fr);
|
|
3240
3240
|
/**
|
|
3241
3241
|
@license
|
|
3242
3242
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -3873,7 +3873,7 @@ class bs{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.
|
|
|
3873
3873
|
*
|
|
3874
3874
|
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
3875
3875
|
* license.
|
|
3876
|
-
*/;H("vaadin-date-picker",[gs,
|
|
3876
|
+
*/;H("vaadin-date-picker",[gs,Mr],{moduleId:"vaadin-date-picker-styles"});class vs extends(ys(ps(q(zi(_o))))){static get is(){return"vaadin-date-picker"}static get template(){return mo`
|
|
3877
3877
|
<style>
|
|
3878
3878
|
:host([opened]) {
|
|
3879
3879
|
pointer-events: auto;
|
|
@@ -4228,13 +4228,14 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4228
4228
|
${"right"===this.icon?o`<span class="icon right"></span>`:r}
|
|
4229
4229
|
</div>
|
|
4230
4230
|
|
|
4231
|
-
${this.helper?o`<p class="helper-description">${this.helper}</p>`:r}
|
|
4232
4231
|
${this.error?o`
|
|
4233
4232
|
<p class="error-message">
|
|
4234
4233
|
${this.errorMessage?this.errorMessage:o`<slot name="error-extended"></slot>`}
|
|
4235
4234
|
</p>
|
|
4236
4235
|
`:r}
|
|
4237
4236
|
${this.linkText&&this.linkRoute?o`<a class="link-text" href="#" @click=${this.handleLinkClick}>${this.linkText}</a>`:r}
|
|
4237
|
+
|
|
4238
|
+
${this.helper?o`<p class="helper-description">${this.helper}</p>`:r}
|
|
4238
4239
|
</div>
|
|
4239
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`
|
|
4240
4241
|
:host {
|
|
@@ -4253,6 +4254,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4253
4254
|
:host {
|
|
4254
4255
|
display: none;
|
|
4255
4256
|
position: fixed;
|
|
4257
|
+
z-index: 9999;
|
|
4256
4258
|
top: 0;
|
|
4257
4259
|
left: 0;
|
|
4258
4260
|
width: 100%;
|
|
@@ -4266,7 +4268,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4266
4268
|
display: flex;
|
|
4267
4269
|
}
|
|
4268
4270
|
.modal {
|
|
4269
|
-
background:
|
|
4271
|
+
background: green;
|
|
4270
4272
|
padding: 20px;
|
|
4271
4273
|
border-radius: 8px;
|
|
4272
4274
|
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
@@ -4477,7 +4479,7 @@ console.warn('WARNING: Since Vaadin 23.2, "@vaadin/vaadin-date-picker" is deprec
|
|
|
4477
4479
|
* Copyright 2017 Google LLC
|
|
4478
4480
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4479
4481
|
*/
|
|
4480
|
-
const Ps=globalThis,Ss=Ps.trustedTypes,Ds=Ss?Ss.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ts="$lit$",Os=`lit$${Math.random().toFixed(9).slice(2)}$`,Is="?"+Os,$s=`<${Is}>`,Ns=document,
|
|
4482
|
+
const Ps=globalThis,Ss=Ps.trustedTypes,Ds=Ss?Ss.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ts="$lit$",Os=`lit$${Math.random().toFixed(9).slice(2)}$`,Is="?"+Os,$s=`<${Is}>`,Ns=document,zs=()=>Ns.createComment(""),Ms=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ls=Array.isArray,Fs="[ \t\n\f\r]",Rs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Bs=/>/g,Vs=RegExp(`>|${Fs}(?:([^\\s"'>=/]+)(${Fs}*=${Fs}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,Us=/"/g,Ys=/^(?:script|style|textarea|title)$/i,qs=Symbol.for("lit-noChange"),Ws=Symbol.for("lit-nothing"),Gs=new WeakMap,Ks=Ns.createTreeWalker(Ns,129);function Xs(t,e){if(!Ls(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ds?Ds.createHTML(e):e}const Js=(t,e)=>{const o=t.length-1,i=[];let r,s=2===e?"<svg>":3===e?"<math>":"",n=Rs;for(let e=0;e<o;e++){const o=t[e];let a,l,d=-1,c=0;for(;c<o.length&&(n.lastIndex=c,l=n.exec(o),null!==l);)c=n.lastIndex,n===Rs?"!--"===l[1]?n=Hs:void 0!==l[1]?n=Bs:void 0!==l[2]?(Ys.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=Vs):void 0!==l[3]&&(n=Vs):n===Vs?">"===l[0]?(n=r??Rs,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Vs:'"'===l[3]?Us:js):n===Us||n===js?n=Vs:n===Hs||n===Bs?n=Rs:(n=Vs,r=void 0);const h=n===Vs&&t[e+1].startsWith("/>")?" ":"";s+=n===Rs?o+$s:d>=0?(i.push(a),o.slice(0,d)+Ts+o.slice(d)+Os+h):o+Os+(-2===d?e:h)}return[Xs(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Zs{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,d]=Js(t,e);if(this.el=Zs.createElement(l,o),Ks.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Ks.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Ts)){const e=d[s++],o=i.getAttribute(t).split(Os),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?rn:"?"===n[1]?sn:"@"===n[1]?nn:on}),i.removeAttribute(t)}else t.startsWith(Os)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(Ys.test(i.tagName)){const t=i.textContent.split(Os),e=t.length-1;if(e>0){i.textContent=Ss?Ss.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],zs()),Ks.nextNode(),a.push({type:2,index:++r});i.append(t[e],zs())}}}else if(8===i.nodeType)if(i.data===Is)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Os,t+1));)a.push({type:7,index:r}),t+=Os.length-1}r++}}static createElement(t,e){const o=Ns.createElement("template");return o.innerHTML=t,o}}function Qs(t,e,o=t,i){if(e===qs)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const s=Ms(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),void 0===s?r=void 0:(r=new s(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Qs(t,r._$AS(t,e.values),r,i)),e}class tn{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Ns).importNode(e,!0);Ks.currentNode=i;let r=Ks.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new en(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new an(r,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(r=Ks.nextNode(),s++)}return Ks.currentNode=Ns,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class en{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=Ws,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Qs(this,t,e),Ms(t)?t===Ws||null==t||""===t?(this._$AH!==Ws&&this._$AR(),this._$AH=Ws):t!==this._$AH&&t!==qs&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>Ls(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ws&&Ms(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ns.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Zs.createElement(Xs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new tn(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Gs.get(t.strings);return void 0===e&&Gs.set(t.strings,e=new Zs(t)),e}k(t){Ls(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new en(this.O(zs()),this.O(zs()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class on{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=Ws,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Ws}_$AI(t,e=this,o,i){const r=this.strings;let s=!1;if(void 0===r)t=Qs(this,t,e,0),s=!Ms(t)||t!==this._$AH&&t!==qs,s&&(this._$AH=t);else{const i=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Qs(this,i[o+n],e,n),a===qs&&(a=this._$AH[n]),s||=!Ms(a)||a!==this._$AH[n],a===Ws?t=Ws:t!==Ws&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}s&&!i&&this.j(t)}j(t){t===Ws?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class rn extends on{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ws?void 0:t}}class sn extends on{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ws)}}class nn extends on{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Qs(this,t,e,0)??Ws)===qs)return;const o=this._$AH,i=t===Ws&&o!==Ws||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Ws&&(o===Ws||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class an{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Qs(this,t)}}const ln=Ps.litHtmlPolyfillSupport;ln?.(Zs,en),(Ps.litHtmlVersions??=[]).push("3.2.1");
|
|
4481
4483
|
/**
|
|
4482
4484
|
* @license
|
|
4483
4485
|
* Copyright 2017 Google LLC
|
|
@@ -4618,7 +4620,7 @@ const $n="cubic-bezier(0.2, 0, 0, 1)";
|
|
|
4618
4620
|
* @license
|
|
4619
4621
|
* Copyright 2022 Google LLC
|
|
4620
4622
|
* SPDX-License-Identifier: Apache-2.0
|
|
4621
|
-
*/var Nn;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(Nn||(Nn={}));const
|
|
4623
|
+
*/var Nn;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(Nn||(Nn={}));const zn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],Mn=s?null:window.matchMedia("(forced-colors: active)");class Ln extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Nn.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Pn(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return o`<div class="surface ${hn(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==Nn.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==Nn.HOLDING)return this.state===Nn.TOUCH_DELAY?(this.state=Nn.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=Nn.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=Nn.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=Nn.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===Nn.TOUCH_DELAY&&(this.state=Nn.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==Nn.WAITING_FOR_CLICK?this.state===Nn.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),o=Math.max(t,e),i=Math.max(.35*o,75),r=Math.floor(.2*o),s=Math.sqrt(e**2+t**2)+10;this.initialSize=r,this.rippleScale=""+(s+i)/r,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:o}=window,{left:i,top:r}=this.getBoundingClientRect(),s=e+i,n=o+r,{pageX:a,pageY:l}=t;return{x:a-s,y:l-n}}getTranslationCoordinates(t){const{height:e,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(e-this.initialSize)/2};let r;return r=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:o/2,y:e/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:i}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:o}=this.getTranslationCoordinates(t),i=`${e.x}px, ${e.y}px`,r=`${o.x}px, ${o.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:$n,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Nn.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:o,left:i,bottom:r,right:s}=this.getBoundingClientRect();return t>=i&&t<=s&&e>=o&&e<=r}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!Mn?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!s)for(const o of zn)t?.removeEventListener(o,this),e?.addEventListener(o,this)}}n([I({type:Boolean,reflect:!0})],Ln.prototype,"disabled",void 0),n([$()],Ln.prototype,"hovered",void 0),n([$()],Ln.prototype,"pressed",void 0),n([N(".surface")],Ln.prototype,"mdRoot",void 0);
|
|
4622
4624
|
/**
|
|
4623
4625
|
* @license
|
|
4624
4626
|
* Copyright 2024 Google LLC
|
|
@@ -4958,7 +4960,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4958
4960
|
.hidden {
|
|
4959
4961
|
display: none;
|
|
4960
4962
|
}
|
|
4961
|
-
`}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=>t.toLowerCase().includes(this.filterValue))),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){this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:
|
|
4963
|
+
`}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(){const t=this.isOpen||this.filterValue?"close":"arrow_down";return o`
|
|
4962
4964
|
<div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
4963
4965
|
${this.label?o`
|
|
4964
4966
|
<div class="label-container">
|
|
@@ -4986,12 +4988,14 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
4986
4988
|
</div>
|
|
4987
4989
|
<ul class="options-list ${this.isOpen&&this.filteredOptions.length>0?"":"hidden"}">
|
|
4988
4990
|
${this.filteredOptions.map((t=>o`
|
|
4989
|
-
<li @click="${()=>this.handleSelect(t)}"
|
|
4991
|
+
<li @click="${()=>this.handleSelect(t)}">
|
|
4992
|
+
${"string"==typeof t?t:t.label}
|
|
4993
|
+
</li>
|
|
4990
4994
|
`))}
|
|
4991
4995
|
</ul>
|
|
4992
4996
|
</div>
|
|
4993
4997
|
</div>
|
|
4994
|
-
`}};n([I({type:Array}),a("design:type",
|
|
4998
|
+
`}};n([I({type:Array}),a("design:type",Array)],ma.prototype,"options",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"placeholder",void 0),n([I({type:String,attribute:"default-value"}),a("design:type",Object)],ma.prototype,"defaultValue",void 0),n([I({type:Boolean}),a("design:type",Object)],ma.prototype,"disabled",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"label",void 0),n([I({type:String}),a("design:type",Object)],ma.prototype,"labelColor",void 0),n([I({type:Boolean}),a("design:type",Object)],ma.prototype,"filterable",void 0),n([$(),a("design:type",Object)],ma.prototype,"filteredOptions",void 0),n([$(),a("design:type",Object)],ma.prototype,"filterValue",void 0),n([$(),a("design:type",Object)],ma.prototype,"isOpen",void 0),ma=n([l("filterable-select"),a("design:paramtypes",[])],ma);let fa=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=e`
|
|
4995
4999
|
.stepper {
|
|
4996
5000
|
display: flex;
|
|
4997
5001
|
gap: 20px;
|
|
@@ -5002,7 +5006,7 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5002
5006
|
height: 20px;
|
|
5003
5007
|
border-radius: 50%;
|
|
5004
5008
|
background-color: #ffffff;
|
|
5005
|
-
border: 1px solid #CFD1D9;
|
|
5009
|
+
border: 1px solid #CFD1D9;
|
|
5006
5010
|
position: relative;
|
|
5007
5011
|
box-sizing: content-box;
|
|
5008
5012
|
display: flex;
|
|
@@ -5012,17 +5016,22 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5012
5016
|
color: #CFD1D9;
|
|
5013
5017
|
}
|
|
5014
5018
|
.step .inner-circle {
|
|
5015
|
-
width:
|
|
5016
|
-
height:
|
|
5019
|
+
width: 4px;
|
|
5020
|
+
height: 4px;
|
|
5017
5021
|
border-radius: 50%;
|
|
5018
5022
|
background-color: #ffffff;
|
|
5019
5023
|
position: absolute;
|
|
5020
5024
|
top: 50%;
|
|
5021
5025
|
left: 50%;
|
|
5022
5026
|
transform: translate(-50%, -50%);
|
|
5027
|
+
/* Improve sharpness */
|
|
5028
|
+
image-rendering: -webkit-optimize-contrast;
|
|
5029
|
+
image-rendering: crisp-edges;
|
|
5030
|
+
backface-visibility: hidden;
|
|
5031
|
+
transform-style: preserve-3d;
|
|
5023
5032
|
}
|
|
5024
5033
|
.step.completed {
|
|
5025
|
-
background-color: #2175d9;
|
|
5034
|
+
background-color: #2175d9;
|
|
5026
5035
|
border: 1px solid #2175d9;
|
|
5027
5036
|
}
|
|
5028
5037
|
.step.completed randstad-icon {
|
|
@@ -5030,14 +5039,40 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5030
5039
|
}
|
|
5031
5040
|
.step.active {
|
|
5032
5041
|
background-color: #ffffff;
|
|
5033
|
-
border: 1px solid #2175d9;
|
|
5042
|
+
border: 1px solid #2175d9;
|
|
5034
5043
|
}
|
|
5035
5044
|
.step.active .inner-circle {
|
|
5036
5045
|
background-color: #2175d9;
|
|
5037
5046
|
}
|
|
5038
|
-
/*
|
|
5047
|
+
/* Animation for the active step's pulsing circle */
|
|
5048
|
+
.step.active .pulse-circle {
|
|
5049
|
+
width: 12px;
|
|
5050
|
+
height: 12px;
|
|
5051
|
+
border-radius: 50%;
|
|
5052
|
+
background-color: #2175d9;
|
|
5053
|
+
opacity: 0.25;
|
|
5054
|
+
position: absolute;
|
|
5055
|
+
top: 50%;
|
|
5056
|
+
left: 50%;
|
|
5057
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
5058
|
+
animation: pulse 2000ms ease-in-out infinite;
|
|
5059
|
+
/* Improve sharpness */
|
|
5060
|
+
image-rendering: -webkit-optimize-contrast;
|
|
5061
|
+
image-rendering: crisp-edges;
|
|
5062
|
+
backface-visibility: hidden;
|
|
5063
|
+
}
|
|
5064
|
+
@keyframes pulse {
|
|
5065
|
+
0% {
|
|
5066
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
5067
|
+
}
|
|
5068
|
+
80%, 100% {
|
|
5069
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
5070
|
+
}
|
|
5071
|
+
}
|
|
5072
|
+
/* Improve rendering */
|
|
5039
5073
|
.step,
|
|
5040
|
-
.inner-circle
|
|
5074
|
+
.inner-circle,
|
|
5075
|
+
.pulse-circle {
|
|
5041
5076
|
will-change: transform;
|
|
5042
5077
|
-webkit-font-smoothing: antialiased;
|
|
5043
5078
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -5048,7 +5083,10 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5048
5083
|
<div
|
|
5049
5084
|
class="step ${e<this.currentStep?"completed":e===this.currentStep?"active":""}"
|
|
5050
5085
|
>
|
|
5051
|
-
${e<this.currentStep?o`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:
|
|
5086
|
+
${e<this.currentStep?o`<randstad-icon name="tick-circle" size="16px"></randstad-icon>`:e===this.currentStep?o`
|
|
5087
|
+
<span class="pulse-circle"></span>
|
|
5088
|
+
<span class="inner-circle"></span>
|
|
5089
|
+
`:o`<span class="inner-circle"></span>`}
|
|
5052
5090
|
</div>
|
|
5053
5091
|
`))}
|
|
5054
5092
|
</div>
|
|
@@ -5192,5 +5230,5 @@ const ha=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
5192
5230
|
border: none;
|
|
5193
5231
|
cursor: pointer;
|
|
5194
5232
|
}
|
|
5195
|
-
`}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{
|
|
5233
|
+
`}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};
|
|
5196
5234
|
//# sourceMappingURL=index.js.map
|