@everymatrix/player-account-controller 1.70.0 → 1.70.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountController-BRsvfCew.js → PlayerAccountController-BXYtygsP.js} +7 -7
- package/components/{PlayerAccountController-BgXQNsvX.cjs → PlayerAccountController-CMyW_1-T.cjs} +1 -1
- package/components/{PlayerAccountController-BVI65NyY.js → PlayerAccountController-DHLtX3XO.js} +7 -7
- package/components/{PlayerAccountSelfExclusion-aPMGQrTu.cjs → PlayerAccountSelfExclusion-BgMjbGLs.cjs} +31 -31
- package/components/{PlayerAccountSelfExclusion-BdH1YfUH.js → PlayerAccountSelfExclusion-C65zyQu1.js} +612 -535
- package/components/{PlayerAccountSelfExclusion-CL4bEd37.js → PlayerAccountSelfExclusion-CJHCaxBb.js} +577 -500
- package/components/{PlayerAccountTimeout-CJRir9eR.cjs → PlayerAccountTimeout-4Aa1s5jR.cjs} +1 -1
- package/components/{PlayerAccountTimeout-CNXL9TVu.js → PlayerAccountTimeout-DUBkD9d2.js} +1 -1
- package/components/{PlayerAccountTimeout-Cm_QTYSz.js → PlayerAccountTimeout-npDnQAdR.js} +1 -1
- package/components/{PlayerAccountTransactionsHistory-C-xmag8z.cjs → PlayerAccountTransactionsHistory-BQH631zi.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-DPpaRiaX.js → PlayerAccountTransactionsHistory-D5v-reW0.js} +1 -1
- package/components/{PlayerAccountTransactionsHistory-D6QxHI6o.js → PlayerAccountTransactionsHistory-DnLoeUPl.js} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const{is:Mr,defineProperty:Or,getOwnPropertyDescriptor:Ir,getOwnPropertyNames:
|
|
17
|
+
*/const{is:Mr,defineProperty:Or,getOwnPropertyDescriptor:Ir,getOwnPropertyNames:Fr,getOwnPropertySymbols:Nr,getPrototypeOf:zr}=Object,ye=globalThis,eo=ye.trustedTypes,Lr=eo?eo.emptyScript:"",Bt=ye.reactiveElementPolyfillSupport,it=(o,t)=>o,oi={toAttribute(o,t){switch(t){case Boolean:o=o?Lr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Xo=(o,t)=>!Mr(o,t),to={attribute:!0,type:String,converter:oi,reflect:!1,useDefault:!1,hasChanged:Xo};var Vo,Uo;(Vo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Uo=ye.litPropertyMetadata)!=null||(ye.litPropertyMetadata=new WeakMap);class Le extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=to){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Or(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=Ir(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:to}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const e=this.properties,i=[...Fr(e),...Nr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Qi(s))}else t!==void 0&&e.push(Qi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Jo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:oi).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r,n,a,l;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const d=i.getPropertyOptions(s),u=typeof d.converter=="function"?{fromAttribute:d.converter}:((r=d.converter)==null?void 0:r.fromAttribute)!==void 0?d.converter:oi;this._$Em=s,this[s]=(l=(a=u.fromAttribute(e,d.type))!=null?a:(n=this._$Ej)==null?void 0:n.get(s))!=null?l:null,this._$Em=null}}requestUpdate(t,e,i){var s,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((s=i.hasChanged)!=null?s:Xo)(a,e)||i.useDefault&&i.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t))}_$EP(){return Ke(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}var Wo;Le.elementStyles=[],Le.shadowRootOptions={mode:"open"},Le[it("elementProperties")]=new Map,Le[it("finalized")]=new Map,Bt==null||Bt({ReactiveElement:Le}),((Wo=ye.reactiveElementVersions)!=null?Wo:ye.reactiveElementVersions=[]).push("2.1.0");/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1981,7 +1981,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1981
1981
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1982
1982
|
Code distributed by Google as part of the polymer project is also
|
|
1983
1983
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1984
|
-
*/function ai(o){return o.indexOf(".")>=0}function
|
|
1984
|
+
*/function ai(o){return o.indexOf(".")>=0}function Fe(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function xs(o,t){return o.indexOf(t+".")===0}function ct(o,t){return t.indexOf(o+".")===0}function dt(o,t,e){return t+e.slice(o.length)}function Fn(o,t){return o===t||xs(o,t)||ct(o,t)}function et(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function ws(o){return Array.isArray(o)?et(o).split("."):o.toString().split(".")}function te(o,t,e){let i=o,s=ws(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function mo(o,t,e){let i=o,s=ws(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
|
|
1985
1985
|
@license
|
|
1986
1986
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1987
1987
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1989,7 +1989,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1989
1989
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1990
1990
|
Code distributed by Google as part of the polymer project is also
|
|
1991
1991
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1992
|
-
*/const Dt={},
|
|
1992
|
+
*/const Dt={},Nn=/-[a-z]/g,zn=/([A-Z])/g;function Es(o){return Dt[o]||(Dt[o]=o.indexOf("-")<0?o:o.replace(Nn,t=>t[1].toUpperCase()))}function Ft(o){return Dt[o]||(Dt[o]=o.replace(zn,"-$1").toLowerCase())}/**
|
|
1993
1993
|
@license
|
|
1994
1994
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1995
1995
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2013,7 +2013,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2013
2013
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2014
2014
|
Code distributed by Google as part of the polymer project is also
|
|
2015
2015
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2016
|
-
*/const ks={};let vt=HTMLElement.prototype;for(;vt;){let o=Object.getOwnPropertyNames(vt);for(let t=0;t<o.length;t++)ks[o[t]]=!0;vt=Object.getPrototypeOf(vt)}const Yn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function jn(o,t){if(!ks[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Vn=$(o=>{const t=Ps(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(Es(s[r]))}static attributeNameForProperty(s){return
|
|
2016
|
+
*/const ks={};let vt=HTMLElement.prototype;for(;vt;){let o=Object.getOwnPropertyNames(vt);for(let t=0;t<o.length;t++)ks[o[t]]=!0;vt=Object.getPrototypeOf(vt)}const Yn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function jn(o,t){if(!ks[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Vn=$(o=>{const t=Ps(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(Es(s[r]))}static attributeNameForProperty(s){return Ft(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Yn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){jn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
|
|
2017
2017
|
@license
|
|
2018
2018
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2019
2019
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2031,7 +2031,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2031
2031
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2032
2032
|
* Google as part of the polymer project is also subject to an additional IP
|
|
2033
2033
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2034
|
-
*/let ut=0;const ht=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ts="__computeInfo",ta=/[A-Z]/;function jt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function tt(o,t,e,i,s,r){if(t){let n=!1;const a=ut++;for(let l in e){let d=s?Ne(l):l,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Ni(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,i,m.info,s,r),n=!0)}return n}return!1}function ia(o,t,e,i,s,r,n,a){let l=!1,d=n?Ne(i):i,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Ni(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,i,s,r,m.info,n,a),l=!0);return l}function Ni(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&xs(e,o))||!!(t.wildcard&&ct(e,o))}else return!0}function bo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function oa(o,t,e,i,s){let r=o[A.NOTIFY],n,a=ut++;for(let d in t)t[d]&&(r&&ia(o,r,a,d,e,i,s)||s&&sa(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function sa(o,t,e){let i=Ne(t);if(i!==t){let s=Nt(i)+"-changed";return Ms(o,s,e[t],t),!0}return!1}function Ms(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),V(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ra(o,t,e,i,s,r){let a=(r?Ne(t):t)!=t?t:null,l=a?te(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ms(o,s.eventName,l,a)}function na(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=dt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[A.READ_ONLY]||!t[A.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function aa(o,t,e,i,s){let r=o.__data[t];Pt&&(r=Pt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function la(o,t,e,i){let s=o[A.COMPUTE];if(s)if(Sn){ut++;const r=da(o),n=[];for(let l in t)vo(l,s,n,r,i);let a;for(;a=n.shift();)Os(o,"",t,e,a)&&vo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;tt(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const ca=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},vo=(o,t,e,i,s)=>{const r=s?Ne(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ut&&(!s||Ni(o,l.trigger))&&(l.info.lastRun=ut,ca(l.info,e,i))}};function da(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[A.COMPUTE];let{counts:i,ready:s,total:r}=ua(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ua(o){const t=o[Ts],e={},i=o[A.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function Os(o,t,e,i,s){let r=ci(o,t,e,i,s);if(r===ht)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function ha(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];ct(r,t)?(s=dt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):ct(n,t)&&(s=dt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Vt(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ga(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Nt(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,pa(o,t,a,u,l)}}function pa(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Ns(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:fa,info:n,trigger:l})}}}function fa(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=dt(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==ht&&ma(o,a,l,d,u)}}function ma(o,t,e,i,s){if(s=_a(t,s,e,i),Pt&&(s=Pt(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[A.READ_ONLY]||!t[A.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function _a(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function ga(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function ba(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];va(n,d),ya(n,o,d)}n.__dataHost=o}}function va(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=V(o)),o[r]=t.literal)}}function ya(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){na(s,t,e.target,i.source,i.negate)})}}function yo(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ci(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===ht?ht:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const xa=[],Is="(?:[a-zA-Z_$][\\w.:$\\-*]*)",wa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ea="(?:'(?:[^'\\\\]|\\\\.)*')",Sa='(?:"(?:[^"\\\\]|\\\\.)*")',Aa="(?:"+Ea+"|"+Sa+")",xo="(?:("+Is+"|"+wa+"|"+Aa+")\\s*)",Ca="(?:"+xo+"(?:,\\s*"+xo+")*)",Pa="(?:\\(\\s*(?:"+Ca+"?)\\)\\s*)",ka="("+Is+"\\s*"+Pa+"?)",Da="(\\[\\[|{{)\\s*",Ta="(?:]]|}})",Ma="(?:(!)\\s*)?",Oa=Da+Ma+ka+Ta,wo=new RegExp(Oa,"g");function Eo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Ut(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:xa};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Ia(s,i)}else return i}return null}function Ia(o,t){return t.args=o.map(function(e){let i=Ns(e);return i.literal||(t.static=!1),i},this),t}function Ns(o){let t=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Ne(t),e.structured=ai(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function So(o,t,e){let i=te(o,e);return i===void 0&&(i=t[e]),i}function zs(o,t,e,i){const s={indexSplices:i};ni&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ni&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Je(o,t,e,i,s,r){zs(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Na(o){return o[0].toUpperCase()+o.substring(1)}const zi=$(o=>{const t=ea(Vn(o));class e extends t{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 A}_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(Xe.length){let s=Xe[Xe.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[A.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==A.READ_ONLY);let a=jt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=jt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,A.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,A.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,A.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,A.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Ne(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=te(this,s);if(s=mo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return ha(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=V(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ai(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[A.NOTIFY]&&this[A.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[A.READ_ONLY]||!this[A.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;la(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),tt(this,this[A.REFLECT],r,n,a),tt(this,this[A.OBSERVE],r,n,a),l&&oa(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[A.PROPAGATE]&&tt(this,this[A.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{tt(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=et(s),r=et(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=et(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=te(this,s,n);zs(this,a,n.path,r)}get(s,r){return te(r||this,s)}set(s,r,n){n?mo(n,s,r):(!this[A.READ_ONLY]||!this[A.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=te(this,s,n),l=a.length,d=a.push(...r);return r.length&&Je(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=te(this,s,r),a=!!n.length,l=n.pop();return a&&Je(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=te(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&Je(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=te(this,s,r),a=!!n.length,l=n.shift();return a&&Je(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=te(this,s,n),l=a.unshift(...r);return r.length&&Je(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=te(this,s,a),n=a.path}else Array.isArray(s)?n=et(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,A.READ_ONLY),r&&(this["_set"+Na(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,A.OBSERVE,{fn:bo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,A.OBSERVE,{fn:bo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ut(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");yo(this,n,A.OBSERVE,ci,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,A.NOTIFY,{fn:ra,info:{eventName:Nt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,A.REFLECT,{fn:aa,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=yo(this,a,A.COMPUTE,Os,s,n);jt(this,Ts)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:g,literal:f}=s[d];if(!f)if(m){const _=ct(h,r),y=So(a,n,_?r:h);g={path:_?r:h,value:y,base:_?te(a,h):y}}else g=p?So(a,n,h):a[h];if(ni&&!this._overrideLegacyUndefined&&g===void 0&&s.length>1)return ht;l[d]=g}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Xe.push(this);let n=super._stampTemplate(s,r);if(Xe.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,ba(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];V(V(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Eo(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";ta.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Eo(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=Es(a)),Vt(this,r,n,h,a,d,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";lo&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(An&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),lo||(n.parentInfo.noted=!0));else{let m="{";for(let g in p){let f=[{mode:m,source:g,dependencies:[g],hostProp:!0}];Vt(this,r,n,"property","_host_"+g,f)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=wo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",g=-1;d=="{"&&(g=h.indexOf("::"))>0&&(m=h.substring(g+2),h=h.substring(0,g),p=!0);let f=Ut(h),_=[];if(f){let{args:y,methodName:v}=f;for(let w=0;w<y.length;w++){let C=y[w];C.literal||_.push(C)}let E=r.dynamicFns;(E&&E[v]||f.static)&&(_.push(v),f.dynamicFn=!0)}else _.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:f,dependencies:_,event:m}),a=wo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=ci(s,n,a,l,r.signature):n!=r.source?u=te(s,r.source):d&&ai(n)?u=te(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Xe=[];/**
|
|
2034
|
+
*/let ut=0;const ht=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ts="__computeInfo",ta=/[A-Z]/;function jt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function tt(o,t,e,i,s,r){if(t){let n=!1;const a=ut++;for(let l in e){let d=s?Fe(l):l,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Fi(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,i,m.info,s,r),n=!0)}return n}return!1}function ia(o,t,e,i,s,r,n,a){let l=!1,d=n?Fe(i):i,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Fi(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,i,s,r,m.info,n,a),l=!0);return l}function Fi(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&xs(e,o))||!!(t.wildcard&&ct(e,o))}else return!0}function bo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function oa(o,t,e,i,s){let r=o[A.NOTIFY],n,a=ut++;for(let d in t)t[d]&&(r&&ia(o,r,a,d,e,i,s)||s&&sa(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function sa(o,t,e){let i=Fe(t);if(i!==t){let s=Ft(i)+"-changed";return Ms(o,s,e[t],t),!0}return!1}function Ms(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),V(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ra(o,t,e,i,s,r){let a=(r?Fe(t):t)!=t?t:null,l=a?te(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ms(o,s.eventName,l,a)}function na(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=dt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[A.READ_ONLY]||!t[A.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function aa(o,t,e,i,s){let r=o.__data[t];Pt&&(r=Pt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function la(o,t,e,i){let s=o[A.COMPUTE];if(s)if(Sn){ut++;const r=da(o),n=[];for(let l in t)vo(l,s,n,r,i);let a;for(;a=n.shift();)Os(o,"",t,e,a)&&vo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;tt(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const ca=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},vo=(o,t,e,i,s)=>{const r=s?Fe(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ut&&(!s||Fi(o,l.trigger))&&(l.info.lastRun=ut,ca(l.info,e,i))}};function da(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[A.COMPUTE];let{counts:i,ready:s,total:r}=ua(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ua(o){const t=o[Ts],e={},i=o[A.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function Os(o,t,e,i,s){let r=ci(o,t,e,i,s);if(r===ht)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function ha(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];ct(r,t)?(s=dt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):ct(n,t)&&(s=dt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Vt(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ga(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Ft(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,pa(o,t,a,u,l)}}function pa(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Fs(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:fa,info:n,trigger:l})}}}function fa(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=dt(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==ht&&ma(o,a,l,d,u)}}function ma(o,t,e,i,s){if(s=_a(t,s,e,i),Pt&&(s=Pt(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[A.READ_ONLY]||!t[A.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function _a(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function ga(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function ba(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];va(n,d),ya(n,o,d)}n.__dataHost=o}}function va(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=V(o)),o[r]=t.literal)}}function ya(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){na(s,t,e.target,i.source,i.negate)})}}function yo(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ci(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===ht?ht:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const xa=[],Is="(?:[a-zA-Z_$][\\w.:$\\-*]*)",wa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ea="(?:'(?:[^'\\\\]|\\\\.)*')",Sa='(?:"(?:[^"\\\\]|\\\\.)*")',Aa="(?:"+Ea+"|"+Sa+")",xo="(?:("+Is+"|"+wa+"|"+Aa+")\\s*)",Ca="(?:"+xo+"(?:,\\s*"+xo+")*)",Pa="(?:\\(\\s*(?:"+Ca+"?)\\)\\s*)",ka="("+Is+"\\s*"+Pa+"?)",Da="(\\[\\[|{{)\\s*",Ta="(?:]]|}})",Ma="(?:(!)\\s*)?",Oa=Da+Ma+ka+Ta,wo=new RegExp(Oa,"g");function Eo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Ut(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:xa};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Ia(s,i)}else return i}return null}function Ia(o,t){return t.args=o.map(function(e){let i=Fs(e);return i.literal||(t.static=!1),i},this),t}function Fs(o){let t=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Fe(t),e.structured=ai(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function So(o,t,e){let i=te(o,e);return i===void 0&&(i=t[e]),i}function Ns(o,t,e,i){const s={indexSplices:i};ni&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ni&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Je(o,t,e,i,s,r){Ns(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Fa(o){return o[0].toUpperCase()+o.substring(1)}const Ni=$(o=>{const t=ea(Vn(o));class e extends t{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 A}_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(Xe.length){let s=Xe[Xe.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[A.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==A.READ_ONLY);let a=jt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=jt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,A.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,A.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,A.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,A.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Fe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=te(this,s);if(s=mo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return ha(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=V(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ai(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[A.NOTIFY]&&this[A.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[A.READ_ONLY]||!this[A.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;la(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),tt(this,this[A.REFLECT],r,n,a),tt(this,this[A.OBSERVE],r,n,a),l&&oa(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[A.PROPAGATE]&&tt(this,this[A.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{tt(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=et(s),r=et(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=et(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=te(this,s,n);Ns(this,a,n.path,r)}get(s,r){return te(r||this,s)}set(s,r,n){n?mo(n,s,r):(!this[A.READ_ONLY]||!this[A.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=te(this,s,n),l=a.length,d=a.push(...r);return r.length&&Je(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=te(this,s,r),a=!!n.length,l=n.pop();return a&&Je(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=te(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&Je(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=te(this,s,r),a=!!n.length,l=n.shift();return a&&Je(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=te(this,s,n),l=a.unshift(...r);return r.length&&Je(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=te(this,s,a),n=a.path}else Array.isArray(s)?n=et(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,A.READ_ONLY),r&&(this["_set"+Fa(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,A.OBSERVE,{fn:bo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,A.OBSERVE,{fn:bo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ut(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");yo(this,n,A.OBSERVE,ci,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,A.NOTIFY,{fn:ra,info:{eventName:Ft(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,A.REFLECT,{fn:aa,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=yo(this,a,A.COMPUTE,Os,s,n);jt(this,Ts)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:g,literal:f}=s[d];if(!f)if(m){const _=ct(h,r),y=So(a,n,_?r:h);g={path:_?r:h,value:y,base:_?te(a,h):y}}else g=p?So(a,n,h):a[h];if(ni&&!this._overrideLegacyUndefined&&g===void 0&&s.length>1)return ht;l[d]=g}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Xe.push(this);let n=super._stampTemplate(s,r);if(Xe.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,ba(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];V(V(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Eo(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";ta.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Eo(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=Es(a)),Vt(this,r,n,h,a,d,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";lo&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(An&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),lo||(n.parentInfo.noted=!0));else{let m="{";for(let g in p){let f=[{mode:m,source:g,dependencies:[g],hostProp:!0}];Vt(this,r,n,"property","_host_"+g,f)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=wo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",g=-1;d=="{"&&(g=h.indexOf("::"))>0&&(m=h.substring(g+2),h=h.substring(0,g),p=!0);let f=Ut(h),_=[];if(f){let{args:y,methodName:v}=f;for(let w=0;w<y.length;w++){let C=y[w];C.literal||_.push(C)}let E=r.dynamicFns;(E&&E[v]||f.static)&&(_.push(v),f.dynamicFn=!0)}else _.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:f,dependencies:_,event:m}),a=wo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=ci(s,n,a,l,r.signature):n!=r.source?u=te(s,r.source):d&&ai(n)?u=te(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Xe=[];/**
|
|
2035
2035
|
@license
|
|
2036
2036
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2037
2037
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2047,7 +2047,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2047
2047
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2048
2048
|
Code distributed by Google as part of the polymer project is also
|
|
2049
2049
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2050
|
-
*/function
|
|
2050
|
+
*/function Na(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const za=$(o=>{const t=Ps(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=Na(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
|
|
2051
2051
|
* @fileoverview
|
|
2052
2052
|
* @suppress {checkPrototypalTypes}
|
|
2053
2053
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2057,7 +2057,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2057
2057
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2058
2058
|
* Google as part of the polymer project is also subject to an additional IP
|
|
2059
2059
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2060
|
-
*/const La="3.5.2",Ao=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ra=$(o=>{const t=
|
|
2060
|
+
*/const La="3.5.2",Ao=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ra=$(o=>{const t=za(Ni(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function r(l,d,u,h){if(!Ao){const p=d.content.querySelectorAll("style"),m=vs(d),g=In(u),f=d.content.firstElementChild;for(let y=0;y<g.length;y++){let v=g[y];v.textContent=l._processStyleText(v.textContent,h),d.content.insertBefore(v,f)}let _=0;for(let y=0;y<m.length;y++){let v=m[y],E=p[_];E!==v?(v=v.cloneNode(!0),E.parentNode.insertBefore(v,E)):_++,v.textContent=l._processStyleText(v.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),Cn&&Ao&&yn){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(g=>{m+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!kt||wn)&&(d=lt.import(l,"template"),kt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return La}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):ms||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Oi(d.url);else{const u=lt.import(this.is);this._importPath=u&&u.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=xn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return Mi(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?st(h):"";r(this,u,d,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=V(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),En&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=st(this.importPath)),st(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return _s&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
|
|
2061
2061
|
@license
|
|
2062
2062
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2063
2063
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2065,7 +2065,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2065
2065
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2066
2066
|
Code distributed by Google as part of the polymer project is also
|
|
2067
2067
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2068
|
-
*/const Co=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class
|
|
2068
|
+
*/const Co=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class zs{constructor(t,e){Rs(t,e);const i=e.reduce((s,r,n)=>s+Ls(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Ls(o){if(o instanceof zs)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Ba(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof zs)return Ls(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const Ne=function(t,...e){Rs(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+Ba(n)+t[a+1],t[0]);return Co&&(s=Co.createHTML(s)),i.innerHTML=s,i},Rs=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
2069
2069
|
@license
|
|
2070
2070
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2071
2071
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2077,7 +2077,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2077
2077
|
* @license
|
|
2078
2078
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2079
2079
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2080
|
-
*/const ue=[];function di(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function ui(){return document.documentElement.getAttribute("dir")}function Ha(){const o=ui();ue.forEach(t=>{di(t,o)})}const $a=new MutationObserver(Ha);$a.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const
|
|
2080
|
+
*/const ue=[];function di(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function ui(){return document.documentElement.getAttribute("dir")}function Ha(){const o=ui();ue.forEach(t=>{di(t,o)})}const $a=new MutationObserver(Ha);$a.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Nt=o=>class extends o{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),di(this,ui(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=ui(),n=s===r&&ue.indexOf(this)===-1,a=!s&&i&&ue.indexOf(this)===-1;n||a?(this.__subscribe(),di(this,r,s)):s!==r&&i===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ue.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){ue.includes(this)||ue.push(this)}__unsubscribe(){ue.includes(this)&&ue.splice(ue.indexOf(this),1)}};/**
|
|
2081
2081
|
* @license
|
|
2082
2082
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2083
2083
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2154,7 +2154,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2154
2154
|
* @license
|
|
2155
2155
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2156
2156
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2157
|
-
*/I("vaadin-input-container",ja,{moduleId:"vaadin-input-container-styles"});class Va extends Ya(Ie(
|
|
2157
|
+
*/I("vaadin-input-container",ja,{moduleId:"vaadin-input-container-styles"});class Va extends Ya(Ie(Nt(we))){static get is(){return"vaadin-input-container"}static get template(){return Ne`
|
|
2158
2158
|
<slot name="prefix"></slot>
|
|
2159
2159
|
<slot></slot>
|
|
2160
2160
|
<slot name="suffix"></slot>
|
|
@@ -2225,7 +2225,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2225
2225
|
* @license
|
|
2226
2226
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2227
2227
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2228
|
-
*/let
|
|
2228
|
+
*/let zi=!1;window.addEventListener("keydown",()=>{zi=!0},{capture:!0});window.addEventListener("mousedown",()=>{zi=!1},{capture:!0});function hi(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function Li(){return zi}function Wa(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function qa(o,t){const e=Math.max(o.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ka(o,t){const e=[];for(;o.length>0&&t.length>0;)qa(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function pi(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=pi(o.slice(0,e)),s=pi(o.slice(e));return Ka(i,s)}function Bs(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ga(o){return o.getRootNode().activeElement===o}function Ja(o){if(!Bs(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function Hs(o,t){if(o.nodeType!==Node.ELEMENT_NODE||Wa(o))return!1;const e=o,i=Ja(e);let s=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=Hs(n,t)||s}),s}function Xa(o){const t=[];return Hs(o,t)?pi(t):t}/**
|
|
2229
2229
|
@license
|
|
2230
2230
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2231
2231
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2237,11 +2237,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2237
2237
|
* @license
|
|
2238
2238
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2239
2239
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2240
|
-
*/const
|
|
2240
|
+
*/const zt=o=>o.test(navigator.userAgent),mi=o=>o.test(navigator.platform),il=o=>o.test(navigator.vendor);zt(/Android/u);zt(/Chrome/u)&&il(/Google Inc/u);zt(/Firefox/u);const ol=mi(/^iPad/u)||mi(/^Mac/u)&&navigator.maxTouchPoints>1,sl=mi(/^iPhone/u),Vs=sl||ol;zt(/^((?!chrome|android).)*safari/iu);const rl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
|
|
2241
2241
|
* @license
|
|
2242
2242
|
* Copyright (c) 2017 Anton Korzunov
|
|
2243
2243
|
* SPDX-License-Identifier: MIT
|
|
2244
|
-
*/let
|
|
2244
|
+
*/let ze=new WeakMap,yt=new WeakMap,xt={},Wt=0;const Po=o=>o&&o.nodeType===Node.ELEMENT_NODE,qt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},nl=(o,t)=>Po(o)?t.map(e=>{if(!Po(e))return qt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return qt(e,"is not contained inside",o),null}).filter(e=>!!e):(qt(o,"is not a valid element"),[]),al=(o,t,e,i)=>{const s=nl(t,Array.isArray(o)?o:[o]);xt[e]||(xt[e]=new WeakMap);const r=xt[e],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(a.has(g))u(g);else{const f=g.getAttribute(i),_=f!==null&&f!=="false",y=(ze.get(g)||0)+1,v=(r.get(g)||0)+1;ze.set(g,y),r.set(g,v),n.push(g),y===1&&_&&yt.set(g,!0),v===1&&g.setAttribute(e,"true"),_||g.setAttribute(i,"true")}})};return u(t),a.clear(),Wt+=1,()=>{n.forEach(h=>{const p=ze.get(h)-1,m=r.get(h)-1;ze.set(h,p),r.set(h,m),p||(yt.has(h)?yt.delete(h):h.removeAttribute(i)),m||h.removeAttribute(e)}),Wt-=1,Wt||(ze=new WeakMap,ze=new WeakMap,yt=new WeakMap,xt={})}},Us=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),al(i,t,e,"aria-hidden")};/**
|
|
2245
2245
|
* @license
|
|
2246
2246
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2247
2247
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2308,7 +2308,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2308
2308
|
* @license
|
|
2309
2309
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2310
2310
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2311
|
-
*/I("vaadin-date-picker-overlay",[Ua,xl],{moduleId:"vaadin-date-picker-overlay-styles"});class wl extends yl(
|
|
2311
|
+
*/I("vaadin-date-picker-overlay",[Ua,xl],{moduleId:"vaadin-date-picker-overlay-styles"});class wl extends yl(Nt(Ie(we))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ne`
|
|
2312
2312
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2313
2313
|
<div part="overlay" id="overlay">
|
|
2314
2314
|
<div part="content" id="content">
|
|
@@ -2801,7 +2801,7 @@ try {
|
|
|
2801
2801
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2802
2802
|
* Code distributed by Google as part of the polymer project is also
|
|
2803
2803
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2804
|
-
*/let To=0,Gs=0;const He=[];let gi=!1;function Ml(){gi=!1;const o=He.length;for(let t=0;t<o;t++){const e=He[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}He.splice(0,o),Gs+=o}const Tt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Ol={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Il={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},
|
|
2804
|
+
*/let To=0,Gs=0;const He=[];let gi=!1;function Ml(){gi=!1;const o=He.length;for(let t=0;t<o;t++){const e=He[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}He.splice(0,o),Gs+=o}const Tt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Ol={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Il={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Fl={run(o){gi||(gi=!0,queueMicrotask(()=>Ml())),He.push(o);const t=To;return To+=1,t},cancel(o){const t=o-Gs;if(t>=0){if(!He[t])throw new Error(`invalid async handle: ${o}`);He[t]=null}}};/**
|
|
2805
2805
|
@license
|
|
2806
2806
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2807
2807
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2809,15 +2809,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2809
2809
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2810
2810
|
Code distributed by Google as part of the polymer project is also
|
|
2811
2811
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2812
|
-
*/const bi=new Set;let Ve=class vi{static debounce(t,e,i){return t instanceof vi?t._cancelAsync():t=new vi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,bi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),bi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function
|
|
2812
|
+
*/const bi=new Set;let Ve=class vi{static debounce(t,e,i){return t instanceof vi?t._cancelAsync():t=new vi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,bi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),bi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Nl(o){bi.add(o)}/**
|
|
2813
2813
|
* @license
|
|
2814
2814
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2815
2815
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2816
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Tl()};let Xt;const Mo=new Set,Js=o=>class extends
|
|
2816
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Tl()};let Xt;const Mo=new Set,Js=o=>class extends Nt(o){static finalize(){super.finalize();const{is:e}=this;e&&!Mo.has(e)&&(window.Vaadin.registrations.push(this),Mo.add(e),window.Vaadin.developmentModeCallback&&(Xt=Ve.debounce(Xt,Il,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Nl(Xt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2817
2817
|
* @license
|
|
2818
2818
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2819
2819
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2820
|
-
*/class
|
|
2820
|
+
*/class zl{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&s.push(r)}),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}/**
|
|
2821
2821
|
* @license
|
|
2822
2822
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2823
2823
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2825,7 +2825,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2825
2825
|
* @license
|
|
2826
2826
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2827
2827
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2828
|
-
*/class ke extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Xs()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new
|
|
2828
|
+
*/class ke extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Xs()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new zl(i,({addedNodes:s,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!gl(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2829
2829
|
* @license
|
|
2830
2830
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2831
2831
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2914,7 +2914,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2914
2914
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2915
2915
|
Code distributed by Google as part of the polymer project is also
|
|
2916
2916
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2917
|
-
*/const Hl=o=>o,Qs=typeof document.head.style.touchAction=="string",yi="__polymerGestures",Zt="__polymerGesturesHandled",xi="__polymerGesturesTouchAction",Oo=25,Io=5,$l=2,Yl=["mousedown","mousemove","mouseup","click"],jl=[0,1,4,2],Vl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Bi(o){return Yl.indexOf(o)>-1}let Ul=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Ul=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Wl(o){Bi(o)}const ql=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Kl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Me(o){const t=o.type;if(!Bi(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Vl&&(i=jl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Gl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=xe(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const pe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jl(o){let t="auto";const e=tr(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[xi]){t=s[xi];break}return t}function er(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function $e(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const tr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Hi={},De=[];function Xl(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function xe(o){const t=tr(o);return t.length>0?t[0]:o.target}function Zl(o){const t=o.type,i=o.currentTarget[yi];if(!i)return;const s=i[t];if(!s)return;if(!o[Zt]&&(o[Zt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(pe.touch.id=n.identifier),pe.touch.id!==n.identifier)return;Qs||(t==="touchstart"||t==="touchmove")&&Ql(o)}const r=o[Zt];if(!r.skip){for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Ql(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")pe.touch.x=t.clientX,pe.touch.y=t.clientY,pe.touch.scrollDecided=!1;else if(e==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const i=Jl(o);let s=!1;const r=Math.abs(pe.touch.x-t.clientX),n=Math.abs(pe.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():Mt("track")}}function le(o,t,e){return Hi[t]?(ec(o,t,e),!0):!1}function ec(o,t,e){const i=Hi[t],s=i.deps,r=i.name;let n=o[yi];n||(o[yi]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(ql&&Bi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Zl,Wl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&ir(o,i.touchAction)}function $i(o){De.push(o),o.emits.forEach(t=>{Hi[t]=o})}function tc(o){for(let t=0,e;t<De.length;t++){e=De[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function ir(o,t){Qs&&o instanceof HTMLElement&&
|
|
2917
|
+
*/const Hl=o=>o,Qs=typeof document.head.style.touchAction=="string",yi="__polymerGestures",Zt="__polymerGesturesHandled",xi="__polymerGesturesTouchAction",Oo=25,Io=5,$l=2,Yl=["mousedown","mousemove","mouseup","click"],jl=[0,1,4,2],Vl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Bi(o){return Yl.indexOf(o)>-1}let Ul=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Ul=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Wl(o){Bi(o)}const ql=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Kl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Me(o){const t=o.type;if(!Bi(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Vl&&(i=jl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Gl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=xe(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const pe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jl(o){let t="auto";const e=tr(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[xi]){t=s[xi];break}return t}function er(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function $e(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const tr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Hi={},De=[];function Xl(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function xe(o){const t=tr(o);return t.length>0?t[0]:o.target}function Zl(o){const t=o.type,i=o.currentTarget[yi];if(!i)return;const s=i[t];if(!s)return;if(!o[Zt]&&(o[Zt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(pe.touch.id=n.identifier),pe.touch.id!==n.identifier)return;Qs||(t==="touchstart"||t==="touchmove")&&Ql(o)}const r=o[Zt];if(!r.skip){for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Ql(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")pe.touch.x=t.clientX,pe.touch.y=t.clientY,pe.touch.scrollDecided=!1;else if(e==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const i=Jl(o);let s=!1;const r=Math.abs(pe.touch.x-t.clientX),n=Math.abs(pe.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():Mt("track")}}function le(o,t,e){return Hi[t]?(ec(o,t,e),!0):!1}function ec(o,t,e){const i=Hi[t],s=i.deps,r=i.name;let n=o[yi];n||(o[yi]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(ql&&Bi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Zl,Wl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&ir(o,i.touchAction)}function $i(o){De.push(o),o.emits.forEach(t=>{Hi[t]=o})}function tc(o){for(let t=0,e;t<De.length;t++){e=De[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function ir(o,t){Qs&&o instanceof HTMLElement&&Fl.run(()=>{o.style.touchAction=t}),o[xi]=t}function Yi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Hl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Mt(o){const t=tc(o);t.info&&(t.info.prevent=!0)}$i({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){$e(this.info)},mousedown(o){if(!Me(o))return;const t=xe(o),e=this,i=r=>{Me(r)||(Ze("up",t,r),$e(e.info))},s=r=>{Me(r)&&Ze("up",t,r),$e(e.info)};er(this.info,i,s),Ze("down",t,o)},touchstart(o){Ze("down",xe(o),o.changedTouches[0],o)},touchend(o){Ze("up",xe(o),o.changedTouches[0],o)}});function Ze(o,t,e,i){t&&Yi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return Mt(s)}})}$i({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(o){this.moves.length>$l&&this.moves.shift(),this.moves.push(o)},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,$e(this.info)},mousedown(o){if(!Me(o))return;const t=xe(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Fo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Mt("tap"),e.info.addMove({x:n,y:a}),Me(r)||(e.info.state="end",$e(e.info)),t&&Qt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),$e(e.info)};er(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=xe(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Fo(this.info,i,s)&&(this.info.state==="start"&&Mt("tap"),this.info.addMove({x:i,y:s}),Qt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=xe(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Qt(this.info,t,e))}});function Fo(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=Io||s>=Io}function Qt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),Yi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Xl(e.clientX,e.clientY)}})}$i({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(o){Me(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Me(o)&&No(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){No(this.info,o.changedTouches[0],o)}});function No(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=xe(e||t);!r||Kl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=Oo&&s<=Oo||Gl(t))&&(o.prevent||Yi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
|
|
2918
2918
|
* @license
|
|
2919
2919
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2920
2920
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2942,7 +2942,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2942
2942
|
* @license
|
|
2943
2943
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2944
2944
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2945
|
-
*/I("vaadin-button",Rl,{moduleId:"vaadin-button-styles"});class sc extends oc(Js(Ie(qe(we)))){static get is(){return"vaadin-button"}static get template(){return Bl(
|
|
2945
|
+
*/I("vaadin-button",Rl,{moduleId:"vaadin-button-styles"});class sc extends oc(Js(Ie(qe(we)))){static get is(){return"vaadin-button"}static get template(){return Bl(Ne)}ready(){super.ready(),this._tooltipController=new Zs(this),this.addController(this._tooltipController)}}ce(sc);/**
|
|
2946
2946
|
* @license
|
|
2947
2947
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2948
2948
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3078,7 +3078,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3078
3078
|
* @license
|
|
3079
3079
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3080
3080
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3081
|
-
*/class fc extends Ie(pc(we)){static get is(){return"vaadin-date-picker-year"}static get template(){return
|
|
3081
|
+
*/class fc extends Ie(pc(we)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ne`
|
|
3082
3082
|
<style>
|
|
3083
3083
|
:host {
|
|
3084
3084
|
display: block;
|
|
@@ -3103,7 +3103,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3103
3103
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3104
3104
|
Code distributed by Google as part of the polymer project is also
|
|
3105
3105
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3106
|
-
*/let Ei=null;function Si(){return Ei}Si.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Si,writable:!0}});const ur=
|
|
3106
|
+
*/let Ei=null;function Si(){return Ei}Si.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Si,writable:!0}});const ur=Ni(Si),_c=qi(ur);function gc(o,t){Ei=o,Object.setPrototypeOf(o,t.prototype),new t,Ei=null}const bc=Ni(class{});function vc(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),V(V(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&V(V(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class Ee extends bc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){vc(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Ee.prototype.__dataHost;Ee.prototype.__templatizeOptions;Ee.prototype._methodHost;Ee.prototype.__templatizeOwner;Ee.prototype.__hostProps;const yc=qi(Ee);function zo(o){let t=o.__dataHost;return t&&t._methodHost||t}function xc(o,t,e){let i=e.mutableData?yc:Ee;Ai.mixin&&(i=Ai.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),Sc(s,o,t,e),s}function wc(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?_c:ur;class d extends l{}n=t.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Ec(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);_s&&i&&Pc(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)gc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function Ec(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function Sc(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ac(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Cc()})}function Ac(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function Cc(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Ai(o,t,e){if(kt&&!zo(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:Ee)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=xc(o,s,e),s.templatizeInstanceClass=r);const n=zo(o);wc(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Pc(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function kc(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=V(t).parentNode;return null}/**
|
|
3107
3107
|
@license
|
|
3108
3108
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3109
3109
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3119,7 +3119,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3119
3119
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3120
3120
|
Code distributed by Google as part of the polymer project is also
|
|
3121
3121
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3122
|
-
*/const Tc=mc(we);class Ro extends Tc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!co,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Dc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=V(V(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ai(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(
|
|
3122
|
+
*/const Tc=mc(we);class Ro extends Tc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!co,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Dc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=V(V(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ai(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(Fn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=dt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Ot.debounce(this.__renderDebouncer,e>0?Hn.after(e):Cs,t.bind(this)),cc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ui()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!co||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=V(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return V(V(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return kc(this.template,t)}}customElements.define(Ro.is,Ro);/**
|
|
3123
3123
|
* @license
|
|
3124
3124
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3125
3125
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3187,7 +3187,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3187
3187
|
* @license
|
|
3188
3188
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3189
3189
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3190
|
-
*/I("vaadin-month-calendar",Oc,{moduleId:"vaadin-month-calendar-styles"});class Ic extends Mc(Ie(we)){static get template(){return
|
|
3190
|
+
*/I("vaadin-month-calendar",Oc,{moduleId:"vaadin-month-calendar-styles"});class Ic extends Mc(Ie(we)){static get template(){return Ne`
|
|
3191
3191
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3192
3192
|
<table
|
|
3193
3193
|
id="monthGrid"
|
|
@@ -3237,11 +3237,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3237
3237
|
* @license
|
|
3238
3238
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3239
3239
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3240
|
-
*/const Nc=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ir(this.$.scrollers,"pan-y"),le(this.$.scrollers,"track",this._track.bind(this)),le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new hr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ke(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ke(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),le(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ke(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ke(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),le(e,"tap",i=>{this._onYearTap(i)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,d,u,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=d,u?p.setAttribute("theme",u):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ve.debounce(this._debouncer,Tt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Vi(e)):s}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return nr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&fe(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Ke(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{js(this,()=>{Ui(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(rr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return Ue(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
|
|
3240
|
+
*/const Fc=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ir(this.$.scrollers,"pan-y"),le(this.$.scrollers,"track",this._track.bind(this)),le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new hr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ke(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ke(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),le(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ke(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ke(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),le(e,"tap",i=>{this._onYearTap(i)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,d,u,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=d,u?p.setAttribute("theme",u):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ve.debounce(this._debouncer,Tt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Vi(e)):s}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return nr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&fe(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Ke(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{js(this,()=>{Ui(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(rr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return Ue(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
|
|
3241
3241
|
* @license
|
|
3242
3242
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3243
3243
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3244
|
-
*/const
|
|
3244
|
+
*/const Nc=S`
|
|
3245
3245
|
:host {
|
|
3246
3246
|
display: flex;
|
|
3247
3247
|
flex-direction: column;
|
|
@@ -3305,7 +3305,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3305
3305
|
* @license
|
|
3306
3306
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3307
3307
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3308
|
-
*/I("vaadin-date-picker-overlay-content",
|
|
3308
|
+
*/I("vaadin-date-picker-overlay-content",Nc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class zc extends Fc(qe(Ie(Nt(we)))){static get template(){return Ne`
|
|
3309
3309
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3310
3310
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3311
3311
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3325,7 +3325,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3325
3325
|
<slot name="today-button"></slot>
|
|
3326
3326
|
<slot name="cancel-button"></slot>
|
|
3327
3327
|
</div>
|
|
3328
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ce(
|
|
3328
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ce(zc);/**
|
|
3329
3329
|
* @license
|
|
3330
3330
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3331
3331
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3510,7 +3510,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3510
3510
|
* @license
|
|
3511
3511
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3512
3512
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3513
|
-
*/I("vaadin-date-picker",[od,ad],{moduleId:"vaadin-date-picker-styles"});class ld extends nd(Xc(Ie(Js(we)))){static get is(){return"vaadin-date-picker"}static get template(){return
|
|
3513
|
+
*/I("vaadin-date-picker",[od,ad],{moduleId:"vaadin-date-picker-styles"});class ld extends nd(Xc(Ie(Js(we)))){static get is(){return"vaadin-date-picker"}static get template(){return Ne`
|
|
3514
3514
|
<div class="vaadin-date-picker-container">
|
|
3515
3515
|
<div part="label">
|
|
3516
3516
|
<slot name="label"></slot>
|
|
@@ -3552,4 +3552,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3552
3552
|
></vaadin-date-picker-overlay>
|
|
3553
3553
|
|
|
3554
3554
|
<slot name="tooltip"></slot>
|
|
3555
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Qc(this.inputElement,this._labelController)),this._tooltipController=new Zs(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ce(ld);var vr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,r=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},d=function(f){return function(_){this[f]=+_}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var y=_.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(f)}],h=function(f){var _=a[f];return _&&(_.indexOf?_:_.s.concat(_.f))},p=function(f,_){var y,v=a.meridiem;if(v){for(var E=1;E<=24;E+=1)if(f.indexOf(v(E,0,_))>-1){y=E>12;break}}else y=f===(_?"pm":"PM");return y},m={A:[n,function(f){this.afternoon=p(f,!1)}],a:[n,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[s,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[s,d("day")],Do:[n,function(f){var _=a.ordinal,y=f.match(/\d+/);if(this.day=y[0],_)for(var v=1;v<=31;v+=1)_(v).replace(/\[|\]/g,"")===f&&(this.day=v)}],M:[r,d("month")],MM:[s,d("month")],MMM:[n,function(f){var _=h("months"),y=(h("monthsShort")||_.map(function(v){return v.slice(0,3)})).indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[n,function(f){var _=h("months").indexOf(f)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(f){this.year=l(f)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function g(f){var _,y;_=f,y=a&&a.formats;for(var v=(f=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,P,D){var T=D&&D.toUpperCase();return P||y[D]||e[D]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,F,J){return F||J.slice(1)})})).match(i),E=v.length,w=0;w<E;w+=1){var C=v[w],U=m[C],N=U&&U[0],R=U&&U[1];v[w]=R?{regex:N,parser:R}:C.replace(/^\[|\]$/g,"")}return function(z){for(var P={},D=0,T=0;D<E;D+=1){var q=v[D];if(typeof q=="string")T+=q.length;else{var F=q.regex,J=q.parser,se=z.slice(T),j=F.exec(se)[0];J.call(P,j),z=z.replace(j,"")}}return function(K){var B=K.afternoon;if(B!==void 0){var L=K.hours;B?L<12&&(K.hours+=12):L===12&&(K.hours=0),delete K.afternoon}}(P),P}}return function(f,_,y){y.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var v=_.prototype,E=v.parse;v.parse=function(w){var C=w.date,U=w.utc,N=w.args;this.$u=U;var R=N[1];if(typeof R=="string"){var z=N[2]===!0,P=N[3]===!0,D=z||P,T=N[2];P&&(T=N[2]),a=this.$locale(),!z&&T&&(a=y.Ls[T]),this.$d=function(se,j,K){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*se);var B=g(j)(se),L=B.year,G=B.month,ae=B.day,me=B.hours,_e=B.minutes,Se=B.seconds,ge=B.milliseconds,be=B.zone,X=new Date,Z=ae||(L||G?1:X.getDate()),M=L||X.getFullYear(),O=0;L&&!G||(O=G>0?G-1:X.getMonth());var de=me||0,re=_e||0,W=Se||0,ie=ge||0;return be?new Date(Date.UTC(M,O,Z,de,re,W,ie+60*be.offset*1e3)):K?new Date(Date.UTC(M,O,Z,de,re,W,ie)):new Date(M,O,Z,de,re,W,ie)}catch(x){return new Date("")}}(C,R,U),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),D&&C!=this.format(R)&&(this.$d=new Date("")),a={}}else if(R instanceof Array)for(var q=R.length,F=1;F<=q;F+=1){N[1]=R[F-1];var J=y.apply(this,N);if(J.isValid()){this.$d=J.$d,this.$L=J.$L,this.init();break}F===q&&(this.$d=new Date(""))}else E.call(this,w)}}})})(vr);var cd=vr.exports;const yr=c.getDefaultExportFromCjs(cd);function Bo(o,t){c.addMessages(o,t)}function dd(o){c.$locale.set(o)}const Ho={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function ud(o){c.append_styles(o,"svelte-e7t4wf",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:10px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave:hover{color:white;background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave:active{background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function $o(o,t,e){const i=o.slice();return i[56]=t[e],i}function hd(o){let t,e,i,s,r=o[20]("titleSelfExclusion")+"",n,a,l,d,u=o[20]("selfExclusionText",{values:{operatorname:o[1],baseurl:o[3],lang:o[0]}})+"",h,p,m=o[20]("selfExclusionEmailText")+"",g,f,_,y,v,E,w,C,U,N=o[20](`${o[13]}`)+"",R,z,P,D,T,q,F,J,se,j,K,B,L,G=o[20]("save")+"",ae,me,_e,Se,ge,be,X=o[22]&&fd(o),Z=c.ensure_array_like(o[9]),M=[];for(let x=0;x<Z.length;x+=1)M[x]=Yo($o(o,Z,x));let O=o[16]&&jo(o);function de(x,k){return x[15]?gd:x[17]?md:_d}let re=de(o),W=re(o),ie=o[23]&&bd(o);return{c(){t=c.element("div"),e=c.element("form"),X&&X.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),g=c.text(m),f=c.space(),_=c.element("a"),y=c.text(o[2]),E=c.space(),w=c.element("div"),C=c.element("div"),U=c.element("p"),R=c.text(N),z=c.space(),P=c.svg_element("svg"),D=c.svg_element("g"),T=c.svg_element("path"),q=c.space(),F=c.element("div");for(let x=0;x<M.length;x+=1)M[x].c();J=c.space(),O&&O.c(),se=c.space(),j=c.element("div"),W.c(),K=c.space(),B=c.element("div"),L=c.element("button"),ae=c.text(G),Se=c.space(),ie&&ie.c(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[22]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(_,"href",v="mailto:"+o[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(T,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),c.attr(T,"stroke-linecap","round"),c.attr(P,"xmlns","http://www.w3.org/2000/svg"),c.attr(P,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(P,"version","1.1"),c.attr(P,"viewBox","0 0 100 100"),c.attr(P,"xml:space","preserve"),c.attr(P,"class","SelfExclusionConfigIcon"),c.toggle_class(P,"active",o[18]),c.attr(C,"class","SelfExclusionConfigLabel"),c.attr(F,"class","SelfExclusionDropDown"),c.toggle_class(F,"active",o[18]),c.attr(w,"class","SelfExclusionConfigWrapper "+(o[22]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(w,"active",o[18]),c.attr(j,"class","SelfExclusionDescription "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(L,"class",me="SelfExclusionSave "+(o[17]?"active":"")),L.disabled=_e=!o[17],c.attr(B,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(x,k){c.insert(x,t,k),c.append(t,e),X&&X.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,g),c.append(p,f),c.append(p,_),c.append(_,y),c.append(e,E),c.append(e,w),c.append(w,C),c.append(C,U),c.append(U,R),c.append(C,z),c.append(C,P),c.append(P,D),c.append(D,T),c.append(w,q),c.append(w,F);for(let H=0;H<M.length;H+=1)M[H]&&M[H].m(F,null);c.append(e,J),O&&O.m(e,null),c.append(e,se),c.append(e,j),W.m(j,null),c.append(e,K),c.append(e,B),c.append(B,L),c.append(L,ae),c.append(t,Se),ie&&ie.m(t,null),ge||(be=[c.listen(C,"click",o[37]),c.listen(L,"click",o[40])],ge=!0)},p(x,k){if(x[22]&&X.p(x,k),k[0]&1048576&&r!==(r=x[20]("titleSelfExclusion")+"")&&c.set_data(n,r),k[0]&1048587&&u!==(u=x[20]("selfExclusionText",{values:{operatorname:x[1],baseurl:x[3],lang:x[0]}})+"")&&(d.innerHTML=u),k[0]&1048576&&m!==(m=x[20]("selfExclusionEmailText")+"")&&c.set_data(g,m),k[0]&4&&c.set_data(y,x[2]),k[0]&4&&v!==(v="mailto:"+x[2])&&c.attr(_,"href",v),k[0]&1056768&&N!==(N=x[20](`${x[13]}`)+"")&&c.set_data(R,N),k[0]&262144&&c.toggle_class(P,"active",x[18]),k[0]&34603520){Z=c.ensure_array_like(x[9]);let H;for(H=0;H<Z.length;H+=1){const mt=$o(x,Z,H);M[H]?M[H].p(mt,k):(M[H]=Yo(mt),M[H].c(),M[H].m(F,null))}for(;H<M.length;H+=1)M[H].d(1);M.length=Z.length}k[0]&262144&&c.toggle_class(F,"active",x[18]),k[0]&262144&&c.toggle_class(w,"active",x[18]),x[16]?O?O.p(x,k):(O=jo(x),O.c(),O.m(e,se)):O&&(O.d(1),O=null),re===(re=de(x))&&W?W.p(x,k):(W.d(1),W=re(x),W&&(W.c(),W.m(j,null))),k[0]&1048576&&G!==(G=x[20]("save")+"")&&c.set_data(ae,G),k[0]&131072&&me!==(me="SelfExclusionSave "+(x[17]?"active":""))&&c.attr(L,"class",me),k[0]&131072&&_e!==(_e=!x[17])&&(L.disabled=_e),x[23]&&ie.p(x,k)},d(x){x&&c.detach(t),X&&X.d(),c.destroy_each(M,x),O&&O.d(),W.d(),ie&&ie.d(),ge=!1,c.run_all(be)}}}function pd(o){let t,e,i,s,r,n,a,l,d,u,h,p,m,g,f,_,y,v,E,w,C;function U(z,P){return z[22]?yd:vd}let R=U(o)(o);return{c(){t=c.element("div"),e=c.element("div"),R.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),d=c.element("ui-skeleton"),u=c.space(),h=c.element("div"),p=c.space(),m=c.element("div"),g=c.element("ui-skeleton"),f=c.space(),_=c.element("div"),y=c.space(),v=c.element("ui-skeleton"),E=c.space(),w=c.element("div"),C=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[22]?"15px":"20px"),c.set_custom_element_data(r,"rows","6"),c.set_custom_element_data(r,"width","100%"),c.set_style(a,"height",o[22]?"10px":"20px"),c.set_custom_element_data(d,"structure","text"),c.set_custom_element_data(d,"height",o[22]?"15px":"20px"),c.set_custom_element_data(d,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(g,"structure","rectangle"),c.set_custom_element_data(g,"width",o[22]?"100%":"50%"),c.set_custom_element_data(g,"height",o[22]?"30px":"44px"),c.set_style(_,"height",o[22]?"15px":"20px"),c.set_custom_element_data(v,"structure","text"),c.set_custom_element_data(v,"height",o[22]?"15px":"20px"),c.set_custom_element_data(v,"width","30%"),c.attr(m,"class","SelfExclusionConfig"),c.set_custom_element_data(C,"structure","rectangle"),c.set_custom_element_data(C,"width","100%"),c.set_custom_element_data(C,"height",o[22]?"35px":"50px"),c.attr(w,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(z,P){c.insert(z,t,P),c.append(t,e),R.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(s,n),c.append(s,a),c.append(s,l),c.append(s,d),c.append(s,u),c.append(s,h),c.append(e,p),c.append(e,m),c.append(m,g),c.append(m,f),c.append(m,_),c.append(m,y),c.append(m,v),c.append(e,E),c.append(e,w),c.append(w,C)},p:c.noop,d(z){z&&c.detach(t),R.d()}}}function fd(o){let t,e,i,s,r,n,a,l,d,u,h=o[20]("titleSelfExclusion")+"",p,m,g;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(f,_){c.insert(f,t,_),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,p),m||(g=c.listen(t,"click",o[36]),m=!0)},p(f,_){_[0]&1048576&&h!==(h=f[20]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(f){f&&c.detach(t),m=!1,g()}}}function Yo(o){let t,e=o[20](`${o[56].key}`)+"",i,s,r;function n(){return o[38](o[56])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(r=c.listen(t,"click",n),s=!0)},p(a,l){o=a,l[0]&1049088&&e!==(e=o[20](`${o[56].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function jo(o){let t,e,i=o[20]("duration")+"",s,r,n,a=o[20]("dateInstructions")+"",l,d,u,h,p,m,g;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),h=c.text(o[21]),p=c.element("strong"),m=c.space(),g=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(g,"min",o[10]),c.set_custom_element_data(g,"max",o[11]),c.set_custom_element_data(g,"value",o[12]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[22]?"SelfExclusionDateWrapperMobile":""))},m(f,_){c.insert(f,t,_),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,d),c.append(n,u),c.append(u,h),c.append(u,p),c.append(t,m),c.append(t,g),o[39](g)},p(f,_){_[0]&1048576&&i!==(i=f[20]("duration")+"")&&c.set_data(s,i),_[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&c.set_data(l,a),_[0]&1024&&c.set_custom_element_data(g,"min",f[10]),_[0]&2048&&c.set_custom_element_data(g,"max",f[11]),_[0]&4096&&c.set_custom_element_data(g,"value",f[12])},d(f){f&&c.detach(t),o[39](null)}}}function md(o){let t,e,i=o[20]("temporarySelfExclusion",{values:{date:he.dayjs(o[12]).format(o[21])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1052672&&i!==(i=r[20]("temporarySelfExclusion",{values:{date:he.dayjs(r[12]).format(r[21])}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function _d(o){let t,e,i=o[20]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("noPeriodSelected")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function gd(o){let t,e,i=o[20]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function bd(o){let t,e,i;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=o[20]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",o[14]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",{type:"setSelfExclusion"}),c.set_custom_element_data(e,"mbsource",o[6]),c.set_custom_element_data(e,"lang",o[0]),c.set_custom_element_data(t,"clientstyling",o[4]),c.set_custom_element_data(t,"clientstylingurl",o[5]),c.set_custom_element_data(t,"mbsource",o[6]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(s,r){c.insert(s,t,r),c.append(t,e)},p(s,r){r[0]&1048576&&i!==(i=s[20]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),r[0]&16384&&c.set_custom_element_data(e,"modaltext",s[14]),r[0]&64&&c.set_custom_element_data(e,"mbsource",s[6]),r[0]&1&&c.set_custom_element_data(e,"lang",s[0]),r[0]&16&&c.set_custom_element_data(t,"clientstyling",s[4]),r[0]&32&&c.set_custom_element_data(t,"clientstylingurl",s[5]),r[0]&64&&c.set_custom_element_data(t,"mbsource",s[6])},d(s){s&&c.detach(t)}}}function vd(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function yd(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function xd(o){let t;function e(r,n){return r[19]?pd:hd}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[41](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[41](null)}}}function wd(o,t,e){let i;c.component_subscribe(o,c.$format,b=>e(20,i=b)),he.dayjs.extend(yr);let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:d="Everymatrix",supportemail:u="",baseurl:h="",clientstyling:p="",clientstylingurl:m="",mbsource:g,translationurl:f="",hasconfirmationmodal:_="false",dateformat:y="DD/MM/YYYY",sendnotificationemail:v="false"}=t,E,w,C=[],U={},N=y.toUpperCase(),R=window.navigator.userAgent,z,P,D="",T="",q="selectAPeriod",F="",J="",se=c.getDevice(R)!=="PC",j=!1,K=!1,B=!1,L=!1,G=_==="true",ae=!0;const me=()=>{fetch(f).then(Q=>Q.json()).then(Q=>{Object.keys(Q).forEach(ee=>{Bo(ee,Q[ee])})}).catch(Q=>{console.log(Q)})};Object.keys(Ho).forEach(b=>{Bo(b,Ho[b])});const _e=()=>{let b=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(ee=>ge(ee)).then(ee=>{e(9,C=ee.periods)}).catch(ee=>{console.log(ee)}).finally(()=>{e(19,ae=!1)})},Se=b=>{b.data.type==="setSelfExclusion"&&O()},ge=b=>Ke(this,null,function*(){if(b.status>=300)U=yield b.json(),J=U.thirdPartyResponse.errorCode,console.error(i(J||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i(J||"generalError")}},window.location.href);else return b.json()}),be=()=>{e(18,L=!L)},X=b=>{switch(T=b.text,e(13,q=b.key),e(17,B=!0),e(18,L=!1),e(15,j=!1),e(16,K=!1),T){case"Until":e(16,K=!0),e(10,z=he.dayjs().add(6,"months").format("YYYY-MM-DD")),e(11,P=he.dayjs().add(5,"years").format("YYYY-MM-DD")),e(12,D=z);break;case"Permanent":e(15,j=!j);break;default:const[Q,ee]=T.split(" "),Ae=ee.includes("Day")?"days":ee.includes("Month")?"months":ee.includes("Year")?"years":null;if(!Ae)return;e(12,D=he.dayjs().add(Number(Q),Ae).format("YYYY-MM-DD"));break}G&&Z()},Z=()=>{if(!G||!T||!D){e(14,F="");return}e(14,F=K?i("confirmationModalTextUntilSelfExclusion",{values:{date:he.dayjs(D).format(N)}}):i("confirmationModalTextPeriodSelfExclusion",{values:{period:i(T)}}))},M=b=>{b.preventDefault(),G?(Z(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):O()},O=()=>{e(19,ae=!0);const b=new URL(`/v2/player/${n}/limits${l==="gm16"?"/session":""}`,s),ee={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:q,expiryDate:D,selfExclusionReason:"UserRequest",sendNotificationEmail:v==="true"}})};fetch(b.href,ee).then(Ae=>ge(Ae)).then(Ae=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ae=>{console.error(i("errorSelfExclusionCall"),Ae),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,ae=!1)})},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:se},window.location.href)},re=b=>{e(12,D=b.target.value)},W=()=>{w.addEventListener("change",re,!1),e(8,w.i18n=gt(_t({},w.i18n),{formatDate:b=>he.dayjs(new Date(b.year,b.month,b.day)).format(N),parseDate:b=>{const Q=he.dayjs(b,N);return{year:Q.year(),month:Q.month(),day:Q.date()}}}),w)};c.onMount(()=>(window.addEventListener("message",Se,!1),()=>{w.removeEventListener("change",re),window.removeEventListener("message",Se)}));const ie=()=>{dd(a)},x=()=>de(),k=()=>be(),H=b=>X(b);function mt(b){c.binding_callbacks[b?"unshift":"push"](()=>{w=b,e(8,w)})}const wr=b=>M(b);function Er(b){c.binding_callbacks[b?"unshift":"push"](()=>{E=b,e(7,E)})}return o.$$set=b=>{"endpoint"in b&&e(28,s=b.endpoint),"session"in b&&e(29,r=b.session),"userid"in b&&e(30,n=b.userid),"lang"in b&&e(0,a=b.lang),"gmversion"in b&&e(31,l=b.gmversion),"operator"in b&&e(1,d=b.operator),"supportemail"in b&&e(2,u=b.supportemail),"baseurl"in b&&e(3,h=b.baseurl),"clientstyling"in b&&e(4,p=b.clientstyling),"clientstylingurl"in b&&e(5,m=b.clientstylingurl),"mbsource"in b&&e(6,g=b.mbsource),"translationurl"in b&&e(32,f=b.translationurl),"hasconfirmationmodal"in b&&e(33,_=b.hasconfirmationmodal),"dateformat"in b&&e(34,y=b.dateformat),"sendnotificationemail"in b&&e(35,v=b.sendnotificationemail)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&ie(),o.$$.dirty[0]&1879048192|o.$$.dirty[1]&1&&s&&r&&n&&l&&_e(),o.$$.dirty[0]&256&&w&&W(),o.$$.dirty[0]&144&&p&&E&&c.setClientStyling(E,p),o.$$.dirty[0]&160&&m&&E&&c.setClientStylingURL(E,m),o.$$.dirty[0]&192&&g&&E&&c.setStreamStyling(E,`${g}.Style`),o.$$.dirty[1]&2&&f&&me()},G&&Z(),[a,d,u,h,p,m,g,E,w,C,z,P,D,q,F,j,K,B,L,ae,i,N,se,G,be,X,M,de,s,r,n,l,f,_,y,v,x,k,H,mt,wr,Er]}class xr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,wd,xd,c.safe_not_equal,{endpoint:28,session:29,userid:30,lang:0,gmversion:31,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:32,hasconfirmationmodal:33,dateformat:34,sendnotificationemail:35},ud,[-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[31]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[1]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[2]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[3]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[33]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[34]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[35]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(xr,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"}));exports.CustomParseFormat=yr;exports.PlayerAccountSelfExclusion_ce=Ed;
|
|
3555
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Qc(this.inputElement,this._labelController)),this._tooltipController=new Zs(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ce(ld);var vr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,r=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},d=function(f){return function(_){this[f]=+_}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var y=_.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(f)}],h=function(f){var _=a[f];return _&&(_.indexOf?_:_.s.concat(_.f))},p=function(f,_){var y,v=a.meridiem;if(v){for(var E=1;E<=24;E+=1)if(f.indexOf(v(E,0,_))>-1){y=E>12;break}}else y=f===(_?"pm":"PM");return y},m={A:[n,function(f){this.afternoon=p(f,!1)}],a:[n,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[s,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[s,d("day")],Do:[n,function(f){var _=a.ordinal,y=f.match(/\d+/);if(this.day=y[0],_)for(var v=1;v<=31;v+=1)_(v).replace(/\[|\]/g,"")===f&&(this.day=v)}],M:[r,d("month")],MM:[s,d("month")],MMM:[n,function(f){var _=h("months"),y=(h("monthsShort")||_.map(function(v){return v.slice(0,3)})).indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[n,function(f){var _=h("months").indexOf(f)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(f){this.year=l(f)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function g(f){var _,y;_=f,y=a&&a.formats;for(var v=(f=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,P,D){var T=D&&D.toUpperCase();return P||y[D]||e[D]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,z,J){return z||J.slice(1)})})).match(i),E=v.length,w=0;w<E;w+=1){var C=v[w],U=m[C],F=U&&U[0],R=U&&U[1];v[w]=R?{regex:F,parser:R}:C.replace(/^\[|\]$/g,"")}return function(N){for(var P={},D=0,T=0;D<E;D+=1){var q=v[D];if(typeof q=="string")T+=q.length;else{var z=q.regex,J=q.parser,se=N.slice(T),j=z.exec(se)[0];J.call(P,j),N=N.replace(j,"")}}return function(K){var B=K.afternoon;if(B!==void 0){var L=K.hours;B?L<12&&(K.hours+=12):L===12&&(K.hours=0),delete K.afternoon}}(P),P}}return function(f,_,y){y.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var v=_.prototype,E=v.parse;v.parse=function(w){var C=w.date,U=w.utc,F=w.args;this.$u=U;var R=F[1];if(typeof R=="string"){var N=F[2]===!0,P=F[3]===!0,D=N||P,T=F[2];P&&(T=F[2]),a=this.$locale(),!N&&T&&(a=y.Ls[T]),this.$d=function(se,j,K){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*se);var B=g(j)(se),L=B.year,G=B.month,ae=B.day,me=B.hours,_e=B.minutes,Se=B.seconds,ge=B.milliseconds,be=B.zone,X=new Date,Z=ae||(L||G?1:X.getDate()),M=L||X.getFullYear(),O=0;L&&!G||(O=G>0?G-1:X.getMonth());var de=me||0,re=_e||0,W=Se||0,ie=ge||0;return be?new Date(Date.UTC(M,O,Z,de,re,W,ie+60*be.offset*1e3)):K?new Date(Date.UTC(M,O,Z,de,re,W,ie)):new Date(M,O,Z,de,re,W,ie)}catch(x){return new Date("")}}(C,R,U),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),D&&C!=this.format(R)&&(this.$d=new Date("")),a={}}else if(R instanceof Array)for(var q=R.length,z=1;z<=q;z+=1){F[1]=R[z-1];var J=y.apply(this,F);if(J.isValid()){this.$d=J.$d,this.$L=J.$L,this.init();break}z===q&&(this.$d=new Date(""))}else E.call(this,w)}}})})(vr);var cd=vr.exports;const yr=c.getDefaultExportFromCjs(cd);function Bo(o,t){c.addMessages(o,t)}function dd(o){c.$locale.set(o)}const Ho={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor2Months:"2個月",SelfExclusionFor3Months:"3個月",SelfExclusionFor6Months:"6個月",SelfExclusionFor7Months:"7個月",SelfExclusionFor8Months:"8個月",SelfExclusionFor9Months:"9個月",SelfExclusionFor10Months:"10個月",SelfExclusionFor11Months:"11個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor2Months:"2 Mois",SelfExclusionFor3Months:"3 Mois",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor7Months:"7 Mois",SelfExclusionFor8Months:"8 Mois",SelfExclusionFor9Months:"9 Mois",SelfExclusionFor10Months:"10 Mois",SelfExclusionFor11Months:"11 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor2Months:"2 Luni",SelfExclusionFor3Months:"3 Luni",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor7Months:"7 Luni",SelfExclusionFor8Months:"8 Luni",SelfExclusionFor9Months:"9 Luni",SelfExclusionFor10Months:"10 Luni",SelfExclusionFor11Months:"11 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor2Months:"2 Mjeseca",SelfExclusionFor3Months:"3 Mjeseca",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor7Months:"7 Mjeseci",SelfExclusionFor8Months:"8 Mjeseci",SelfExclusionFor9Months:"9 Mjeseci",SelfExclusionFor10Months:"10 Mjeseci",SelfExclusionFor11Months:"11 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor2Months:"2 Ay",SelfExclusionFor3Months:"3 Ay",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor7Months:"7 Ay",SelfExclusionFor8Months:"8 Ay",SelfExclusionFor9Months:"9 Ay",SelfExclusionFor10Months:"10 Ay",SelfExclusionFor11Months:"11 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function ud(o){c.append_styles(o,"svelte-st6cko",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:10px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:600px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave:hover{color:white;background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave:active{background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function $o(o,t,e){const i=o.slice();return i[56]=t[e],i}function hd(o){let t,e,i,s,r=o[20]("titleSelfExclusion")+"",n,a,l,d,u=o[20]("selfExclusionText",{values:{operatorname:o[1],baseurl:o[3],lang:o[0]}})+"",h,p,m=o[20]("selfExclusionEmailText")+"",g,f,_,y,v,E,w,C,U,F=o[20](`${o[13]}`)+"",R,N,P,D,T,q,z,J,se,j,K,B,L,G=o[20]("save")+"",ae,me,_e,Se,ge,be,X=o[22]&&fd(o),Z=c.ensure_array_like(o[9]),M=[];for(let x=0;x<Z.length;x+=1)M[x]=Yo($o(o,Z,x));let O=o[16]&&jo(o);function de(x,k){return x[15]?gd:x[17]?md:_d}let re=de(o),W=re(o),ie=o[23]&&bd(o);return{c(){t=c.element("div"),e=c.element("form"),X&&X.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),g=c.text(m),f=c.space(),_=c.element("a"),y=c.text(o[2]),E=c.space(),w=c.element("div"),C=c.element("div"),U=c.element("p"),R=c.text(F),N=c.space(),P=c.svg_element("svg"),D=c.svg_element("g"),T=c.svg_element("path"),q=c.space(),z=c.element("div");for(let x=0;x<M.length;x+=1)M[x].c();J=c.space(),O&&O.c(),se=c.space(),j=c.element("div"),W.c(),K=c.space(),B=c.element("div"),L=c.element("button"),ae=c.text(G),Se=c.space(),ie&&ie.c(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[22]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(_,"href",v="mailto:"+o[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(T,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),c.attr(T,"stroke-linecap","round"),c.attr(P,"xmlns","http://www.w3.org/2000/svg"),c.attr(P,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(P,"version","1.1"),c.attr(P,"viewBox","0 0 100 100"),c.attr(P,"xml:space","preserve"),c.attr(P,"class","SelfExclusionConfigIcon"),c.toggle_class(P,"active",o[18]),c.attr(C,"class","SelfExclusionConfigLabel"),c.attr(z,"class","SelfExclusionDropDown"),c.toggle_class(z,"active",o[18]),c.attr(w,"class","SelfExclusionConfigWrapper "+(o[22]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(w,"active",o[18]),c.attr(j,"class","SelfExclusionDescription "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(L,"class",me="SelfExclusionSave "+(o[17]?"active":"")),L.disabled=_e=!o[17],c.attr(B,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(x,k){c.insert(x,t,k),c.append(t,e),X&&X.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,g),c.append(p,f),c.append(p,_),c.append(_,y),c.append(e,E),c.append(e,w),c.append(w,C),c.append(C,U),c.append(U,R),c.append(C,N),c.append(C,P),c.append(P,D),c.append(D,T),c.append(w,q),c.append(w,z);for(let H=0;H<M.length;H+=1)M[H]&&M[H].m(z,null);c.append(e,J),O&&O.m(e,null),c.append(e,se),c.append(e,j),W.m(j,null),c.append(e,K),c.append(e,B),c.append(B,L),c.append(L,ae),c.append(t,Se),ie&&ie.m(t,null),ge||(be=[c.listen(C,"click",o[37]),c.listen(L,"click",o[40])],ge=!0)},p(x,k){if(x[22]&&X.p(x,k),k[0]&1048576&&r!==(r=x[20]("titleSelfExclusion")+"")&&c.set_data(n,r),k[0]&1048587&&u!==(u=x[20]("selfExclusionText",{values:{operatorname:x[1],baseurl:x[3],lang:x[0]}})+"")&&(d.innerHTML=u),k[0]&1048576&&m!==(m=x[20]("selfExclusionEmailText")+"")&&c.set_data(g,m),k[0]&4&&c.set_data(y,x[2]),k[0]&4&&v!==(v="mailto:"+x[2])&&c.attr(_,"href",v),k[0]&1056768&&F!==(F=x[20](`${x[13]}`)+"")&&c.set_data(R,F),k[0]&262144&&c.toggle_class(P,"active",x[18]),k[0]&34603520){Z=c.ensure_array_like(x[9]);let H;for(H=0;H<Z.length;H+=1){const mt=$o(x,Z,H);M[H]?M[H].p(mt,k):(M[H]=Yo(mt),M[H].c(),M[H].m(z,null))}for(;H<M.length;H+=1)M[H].d(1);M.length=Z.length}k[0]&262144&&c.toggle_class(z,"active",x[18]),k[0]&262144&&c.toggle_class(w,"active",x[18]),x[16]?O?O.p(x,k):(O=jo(x),O.c(),O.m(e,se)):O&&(O.d(1),O=null),re===(re=de(x))&&W?W.p(x,k):(W.d(1),W=re(x),W&&(W.c(),W.m(j,null))),k[0]&1048576&&G!==(G=x[20]("save")+"")&&c.set_data(ae,G),k[0]&131072&&me!==(me="SelfExclusionSave "+(x[17]?"active":""))&&c.attr(L,"class",me),k[0]&131072&&_e!==(_e=!x[17])&&(L.disabled=_e),x[23]&&ie.p(x,k)},d(x){x&&c.detach(t),X&&X.d(),c.destroy_each(M,x),O&&O.d(),W.d(),ie&&ie.d(),ge=!1,c.run_all(be)}}}function pd(o){let t,e,i,s,r,n,a,l,d,u,h,p,m,g,f,_,y,v,E,w,C;function U(N,P){return N[22]?yd:vd}let R=U(o)(o);return{c(){t=c.element("div"),e=c.element("div"),R.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),d=c.element("ui-skeleton"),u=c.space(),h=c.element("div"),p=c.space(),m=c.element("div"),g=c.element("ui-skeleton"),f=c.space(),_=c.element("div"),y=c.space(),v=c.element("ui-skeleton"),E=c.space(),w=c.element("div"),C=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[22]?"15px":"20px"),c.set_custom_element_data(r,"rows","6"),c.set_custom_element_data(r,"width","100%"),c.set_style(a,"height",o[22]?"10px":"20px"),c.set_custom_element_data(d,"structure","text"),c.set_custom_element_data(d,"height",o[22]?"15px":"20px"),c.set_custom_element_data(d,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(g,"structure","rectangle"),c.set_custom_element_data(g,"width",o[22]?"100%":"50%"),c.set_custom_element_data(g,"height",o[22]?"30px":"44px"),c.set_style(_,"height",o[22]?"15px":"20px"),c.set_custom_element_data(v,"structure","text"),c.set_custom_element_data(v,"height",o[22]?"15px":"20px"),c.set_custom_element_data(v,"width","30%"),c.attr(m,"class","SelfExclusionConfig"),c.set_custom_element_data(C,"structure","rectangle"),c.set_custom_element_data(C,"width","100%"),c.set_custom_element_data(C,"height",o[22]?"35px":"50px"),c.attr(w,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(N,P){c.insert(N,t,P),c.append(t,e),R.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(s,n),c.append(s,a),c.append(s,l),c.append(s,d),c.append(s,u),c.append(s,h),c.append(e,p),c.append(e,m),c.append(m,g),c.append(m,f),c.append(m,_),c.append(m,y),c.append(m,v),c.append(e,E),c.append(e,w),c.append(w,C)},p:c.noop,d(N){N&&c.detach(t),R.d()}}}function fd(o){let t,e,i,s,r,n,a,l,d,u,h=o[20]("titleSelfExclusion")+"",p,m,g;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(f,_){c.insert(f,t,_),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,p),m||(g=c.listen(t,"click",o[36]),m=!0)},p(f,_){_[0]&1048576&&h!==(h=f[20]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(f){f&&c.detach(t),m=!1,g()}}}function Yo(o){let t,e=o[20](`${o[56].key}`)+"",i,s,r;function n(){return o[38](o[56])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(r=c.listen(t,"click",n),s=!0)},p(a,l){o=a,l[0]&1049088&&e!==(e=o[20](`${o[56].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function jo(o){let t,e,i=o[20]("duration")+"",s,r,n,a=o[20]("dateInstructions")+"",l,d,u,h,p,m,g;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),h=c.text(o[21]),p=c.element("strong"),m=c.space(),g=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(g,"min",o[10]),c.set_custom_element_data(g,"max",o[11]),c.set_custom_element_data(g,"value",o[12]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[22]?"SelfExclusionDateWrapperMobile":""))},m(f,_){c.insert(f,t,_),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,d),c.append(n,u),c.append(u,h),c.append(u,p),c.append(t,m),c.append(t,g),o[39](g)},p(f,_){_[0]&1048576&&i!==(i=f[20]("duration")+"")&&c.set_data(s,i),_[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&c.set_data(l,a),_[0]&1024&&c.set_custom_element_data(g,"min",f[10]),_[0]&2048&&c.set_custom_element_data(g,"max",f[11]),_[0]&4096&&c.set_custom_element_data(g,"value",f[12])},d(f){f&&c.detach(t),o[39](null)}}}function md(o){let t,e,i=o[20]("temporarySelfExclusion",{values:{date:he.dayjs(o[12]).format(o[21])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1052672&&i!==(i=r[20]("temporarySelfExclusion",{values:{date:he.dayjs(r[12]).format(r[21])}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function _d(o){let t,e,i=o[20]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("noPeriodSelected")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function gd(o){let t,e,i=o[20]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function bd(o){let t,e,i;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=o[20]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",o[14]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",{type:"setSelfExclusion"}),c.set_custom_element_data(e,"mbsource",o[6]),c.set_custom_element_data(e,"lang",o[0]),c.set_custom_element_data(t,"clientstyling",o[4]),c.set_custom_element_data(t,"clientstylingurl",o[5]),c.set_custom_element_data(t,"mbsource",o[6]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(s,r){c.insert(s,t,r),c.append(t,e)},p(s,r){r[0]&1048576&&i!==(i=s[20]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),r[0]&16384&&c.set_custom_element_data(e,"modaltext",s[14]),r[0]&64&&c.set_custom_element_data(e,"mbsource",s[6]),r[0]&1&&c.set_custom_element_data(e,"lang",s[0]),r[0]&16&&c.set_custom_element_data(t,"clientstyling",s[4]),r[0]&32&&c.set_custom_element_data(t,"clientstylingurl",s[5]),r[0]&64&&c.set_custom_element_data(t,"mbsource",s[6])},d(s){s&&c.detach(t)}}}function vd(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function yd(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function xd(o){let t;function e(r,n){return r[19]?pd:hd}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[41](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[41](null)}}}function wd(o,t,e){let i;c.component_subscribe(o,c.$format,b=>e(20,i=b)),he.dayjs.extend(yr);let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:d="Everymatrix",supportemail:u="",baseurl:h="",clientstyling:p="",clientstylingurl:m="",mbsource:g,translationurl:f="",hasconfirmationmodal:_="false",dateformat:y="DD/MM/YYYY",sendnotificationemail:v="false"}=t,E,w,C=[],U={},F=y.toUpperCase(),R=window.navigator.userAgent,N,P,D="",T="",q="selectAPeriod",z="",J="",se=c.getDevice(R)!=="PC",j=!1,K=!1,B=!1,L=!1,G=_==="true",ae=!0;const me=()=>{fetch(f).then(Q=>Q.json()).then(Q=>{Object.keys(Q).forEach(ee=>{Bo(ee,Q[ee])})}).catch(Q=>{console.log(Q)})};Object.keys(Ho).forEach(b=>{Bo(b,Ho[b])});const _e=()=>{let b=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(ee=>ge(ee)).then(ee=>{e(9,C=ee.periods)}).catch(ee=>{console.log(ee)}).finally(()=>{e(19,ae=!1)})},Se=b=>{b.data.type==="setSelfExclusion"&&O()},ge=b=>Ke(this,null,function*(){if(b.status>=300)U=yield b.json(),J=U.thirdPartyResponse.errorCode,console.error(i(J||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i(J||"generalError")}},window.location.href);else return b.json()}),be=()=>{e(18,L=!L)},X=b=>{switch(T=b.text,e(13,q=b.key),e(17,B=!0),e(18,L=!1),e(15,j=!1),e(16,K=!1),T){case"Until":e(16,K=!0),e(10,N=he.dayjs().add(6,"months").format("YYYY-MM-DD")),e(11,P=he.dayjs().add(5,"years").format("YYYY-MM-DD")),e(12,D=N);break;case"Permanent":e(15,j=!j);break;default:const[Q,ee]=T.split(" "),Ae=ee.includes("Day")?"days":ee.includes("Month")?"months":ee.includes("Year")?"years":null;if(!Ae)return;e(12,D=he.dayjs().add(Number(Q),Ae).format("YYYY-MM-DD"));break}G&&Z()},Z=()=>{if(!G||!T||!D){e(14,z="");return}e(14,z=K?i("confirmationModalTextUntilSelfExclusion",{values:{date:he.dayjs(D).format(F)}}):i("confirmationModalTextPeriodSelfExclusion",{values:{period:i(T)}}))},M=b=>{b.preventDefault(),G?(Z(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):O()},O=()=>{e(19,ae=!0);const b=new URL(`/v2/player/${n}/limits${l==="gm16"?"/session":""}`,s),ee={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:q,expiryDate:D,selfExclusionReason:"UserRequest",sendNotificationEmail:v==="true"}})};fetch(b.href,ee).then(Ae=>ge(Ae)).then(Ae=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ae=>{console.error(i("errorSelfExclusionCall"),Ae),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,ae=!1)})},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:se},window.location.href)},re=b=>{e(12,D=b.target.value)},W=()=>{w.addEventListener("change",re,!1),e(8,w.i18n=gt(_t({},w.i18n),{formatDate:b=>he.dayjs(new Date(b.year,b.month,b.day)).format(F),parseDate:b=>{const Q=he.dayjs(b,F);return{year:Q.year(),month:Q.month(),day:Q.date()}}}),w)};c.onMount(()=>(window.addEventListener("message",Se,!1),()=>{w.removeEventListener("change",re),window.removeEventListener("message",Se)}));const ie=()=>{dd(a)},x=()=>de(),k=()=>be(),H=b=>X(b);function mt(b){c.binding_callbacks[b?"unshift":"push"](()=>{w=b,e(8,w)})}const wr=b=>M(b);function Er(b){c.binding_callbacks[b?"unshift":"push"](()=>{E=b,e(7,E)})}return o.$$set=b=>{"endpoint"in b&&e(28,s=b.endpoint),"session"in b&&e(29,r=b.session),"userid"in b&&e(30,n=b.userid),"lang"in b&&e(0,a=b.lang),"gmversion"in b&&e(31,l=b.gmversion),"operator"in b&&e(1,d=b.operator),"supportemail"in b&&e(2,u=b.supportemail),"baseurl"in b&&e(3,h=b.baseurl),"clientstyling"in b&&e(4,p=b.clientstyling),"clientstylingurl"in b&&e(5,m=b.clientstylingurl),"mbsource"in b&&e(6,g=b.mbsource),"translationurl"in b&&e(32,f=b.translationurl),"hasconfirmationmodal"in b&&e(33,_=b.hasconfirmationmodal),"dateformat"in b&&e(34,y=b.dateformat),"sendnotificationemail"in b&&e(35,v=b.sendnotificationemail)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&ie(),o.$$.dirty[0]&1879048192|o.$$.dirty[1]&1&&s&&r&&n&&l&&_e(),o.$$.dirty[0]&256&&w&&W(),o.$$.dirty[0]&144&&p&&E&&c.setClientStyling(E,p),o.$$.dirty[0]&160&&m&&E&&c.setClientStylingURL(E,m),o.$$.dirty[0]&192&&g&&E&&c.setStreamStyling(E,`${g}.Style`),o.$$.dirty[1]&2&&f&&me()},G&&Z(),[a,d,u,h,p,m,g,E,w,C,N,P,D,q,z,j,K,B,L,ae,i,F,se,G,be,X,M,de,s,r,n,l,f,_,y,v,x,k,H,mt,wr,Er]}class xr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,wd,xd,c.safe_not_equal,{endpoint:28,session:29,userid:30,lang:0,gmversion:31,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:32,hasconfirmationmodal:33,dateformat:34,sendnotificationemail:35},ud,[-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[31]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[1]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[2]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[3]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[33]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[34]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[35]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(xr,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"}));exports.CustomParseFormat=yr;exports.PlayerAccountSelfExclusion_ce=Ed;
|