@everymatrix/general-registration 1.56.0 → 1.56.2

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.
Files changed (26) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +1324 -1253
  2. package/dist/cjs/general-registration.cjs.js +3 -3
  3. package/dist/cjs/{index-f710b430.js → index-4ad59840.js} +78 -215
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/general-registration/general-registration.js +19 -48
  7. package/dist/esm/checkbox-group-input_13.entry.js +1324 -1253
  8. package/dist/esm/general-registration.js +4 -4
  9. package/dist/esm/{index-e30ca6ba.js → index-14f0c56e.js} +78 -215
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/general-registration/general-registration.esm.js +1 -1
  12. package/dist/general-registration/p-290ae59c.entry.js +4478 -0
  13. package/dist/general-registration/p-59a2915a.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/general-registration/p-0d63ba5e.js +0 -2
  19. package/dist/general-registration/p-5f37e4ba.entry.js +0 -4466
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f710b430.js');
5
+ const index = require('./index-4ad59840.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const TRANSLATIONS$1 = {
@@ -161,55 +161,13 @@ const tooltipIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD
161
161
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
162
162
  */
163
163
 
164
- window.Vaadin ||= {};
165
- window.Vaadin.featureFlags ||= {};
166
-
167
- function dashToCamelCase$1(dash) {
168
- return dash.replace(/-[a-z]/gu, (m) => m[1].toUpperCase());
169
- }
170
-
171
- const experimentalMap = {};
172
-
173
- function defineCustomElement(CustomElement, version = '24.6.5') {
164
+ function defineCustomElement(CustomElement, version = '24.5.10') {
174
165
  Object.defineProperty(CustomElement, 'version', {
175
166
  get() {
176
167
  return version;
177
168
  },
178
169
  });
179
170
 
180
- if (CustomElement.experimental) {
181
- const featureFlagKey =
182
- typeof CustomElement.experimental === 'string'
183
- ? CustomElement.experimental
184
- : `${dashToCamelCase$1(CustomElement.is.split('-').slice(1).join('-'))}Component`;
185
-
186
- if (!window.Vaadin.featureFlags[featureFlagKey] && !experimentalMap[featureFlagKey]) {
187
- // Add setter to define experimental component when it's set to true
188
- experimentalMap[featureFlagKey] = new Set();
189
- experimentalMap[featureFlagKey].add(CustomElement);
190
-
191
- Object.defineProperty(window.Vaadin.featureFlags, featureFlagKey, {
192
- get() {
193
- return experimentalMap[featureFlagKey].size === 0;
194
- },
195
- set(value) {
196
- if (!!value && experimentalMap[featureFlagKey].size > 0) {
197
- experimentalMap[featureFlagKey].forEach((elementClass) => {
198
- customElements.define(elementClass.is, elementClass);
199
- });
200
- experimentalMap[featureFlagKey].clear();
201
- }
202
- },
203
- });
204
-
205
- return;
206
- } else if (experimentalMap[featureFlagKey]) {
207
- // Allow to register multiple components with single flag
208
- experimentalMap[featureFlagKey].add(CustomElement);
209
- return;
210
- }
211
- }
212
-
213
171
  const defined = customElements.get(CustomElement.is);
214
172
  if (!defined) {
215
173
  customElements.define(CustomElement.is, CustomElement);
@@ -264,7 +222,7 @@ const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
264
222
  * Copyright 2017 Google LLC
265
223
  * SPDX-License-Identifier: BSD-3-Clause
266
224
  */
267
- const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h$1,n=`<${o}>`,r$2=document,l=()=>r$2.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g$1=/"/g,$$2=/^(?:script|style|textarea|title)$/i,T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A=new WeakMap,C=r$2.createTreeWalker(r$2,129);function P$1(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g$1:p$1):c===g$1||c===p$1?c=m$1:c===v$1||c===_$1?c=f:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N$1{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N$1.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$2.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M$1{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$2).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$2,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R$1{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$2.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N$1(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R$1(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H$2 extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}}class I$1 extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}}class L$1 extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z$1{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j$1=t.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
225
+ const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h$1,n=`<${o}>`,r$2=document,l=()=>r$2.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A=new WeakMap,C=r$2.createTreeWalker(r$2,129);function P$1(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g$1:p$1):c===g$1||c===p$1?c=m$1:c===v$1||c===_$1?c=f:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N$1{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N$1.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$2.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M$1{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$2).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$2,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R$1{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$2.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N$1(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R$1(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H$2 extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}}class I$1 extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}}class L$1 extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z$1{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j$1=t.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
268
226
 
269
227
  /**
270
228
  * @license
@@ -958,7 +916,7 @@ registerStyles('', color, { moduleId: 'lumo-color' });
958
916
  const fontIcons = i$3`
959
917
  @font-face {
960
918
  font-family: 'lumo-icons';
961
- src: url(data:application/font-woff;charset=utf-8;base64,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)
919
+ src: url(data:application/font-woff;charset=utf-8;base64,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)
962
920
  format('woff');
963
921
  font-weight: normal;
964
922
  font-style: normal;
@@ -988,27 +946,25 @@ const fontIcons = i$3`
988
946
  --lumo-icons-cog: '\\ea15';
989
947
  --lumo-icons-cross: '\\ea16';
990
948
  --lumo-icons-download: '\\ea17';
991
- --lumo-icons-drag-handle: '\\ea18';
992
- --lumo-icons-dropdown: '\\ea19';
993
- --lumo-icons-edit: '\\ea1a';
994
- --lumo-icons-error: '\\ea1b';
995
- --lumo-icons-eye: '\\ea1c';
996
- --lumo-icons-eye-disabled: '\\ea1d';
997
- --lumo-icons-menu: '\\ea1e';
998
- --lumo-icons-minus: '\\ea1f';
999
- --lumo-icons-ordered-list: '\\ea20';
1000
- --lumo-icons-phone: '\\ea21';
1001
- --lumo-icons-photo: '\\ea22';
1002
- --lumo-icons-play: '\\ea23';
1003
- --lumo-icons-plus: '\\ea24';
1004
- --lumo-icons-redo: '\\ea25';
1005
- --lumo-icons-reload: '\\ea26';
1006
- --lumo-icons-resize-handle: '\\ea27';
1007
- --lumo-icons-search: '\\ea28';
1008
- --lumo-icons-undo: '\\ea29';
1009
- --lumo-icons-unordered-list: '\\ea2a';
1010
- --lumo-icons-upload: '\\ea2b';
1011
- --lumo-icons-user: '\\ea2c';
949
+ --lumo-icons-dropdown: '\\ea18';
950
+ --lumo-icons-edit: '\\ea19';
951
+ --lumo-icons-error: '\\ea1a';
952
+ --lumo-icons-eye: '\\ea1b';
953
+ --lumo-icons-eye-disabled: '\\ea1c';
954
+ --lumo-icons-menu: '\\ea1d';
955
+ --lumo-icons-minus: '\\ea1e';
956
+ --lumo-icons-ordered-list: '\\ea1f';
957
+ --lumo-icons-phone: '\\ea20';
958
+ --lumo-icons-photo: '\\ea21';
959
+ --lumo-icons-play: '\\ea22';
960
+ --lumo-icons-plus: '\\ea23';
961
+ --lumo-icons-redo: '\\ea24';
962
+ --lumo-icons-reload: '\\ea25';
963
+ --lumo-icons-search: '\\ea26';
964
+ --lumo-icons-undo: '\\ea27';
965
+ --lumo-icons-unordered-list: '\\ea28';
966
+ --lumo-icons-upload: '\\ea29';
967
+ --lumo-icons-user: '\\ea2a';
1012
968
  }
1013
969
  `;
1014
970
 
@@ -11353,7 +11309,6 @@ const DisabledMixin = dedupingMixin(
11353
11309
  value: false,
11354
11310
  observer: '_disabledChanged',
11355
11311
  reflectToAttribute: true,
11356
- sync: true,
11357
11312
  },
11358
11313
  };
11359
11314
  }
@@ -12477,8 +12432,6 @@ const InputMixin = dedupingMixin(
12477
12432
  if (this.inputElement) {
12478
12433
  this.inputElement[this._inputElementValueProperty] = value;
12479
12434
  }
12480
-
12481
- this._hasInputValue = value && value.length > 0;
12482
12435
  }
12483
12436
 
12484
12437
  /**
@@ -12672,7 +12625,6 @@ const CheckedMixin = dedupingMixin(
12672
12625
  value: false,
12673
12626
  notify: true,
12674
12627
  reflectToAttribute: true,
12675
- sync: true,
12676
12628
  },
12677
12629
  };
12678
12630
  }
@@ -13708,22 +13660,6 @@ const ValidateMixin = dedupingMixin(
13708
13660
  value: false,
13709
13661
  },
13710
13662
 
13711
- /**
13712
- * Set to true to enable manual validation mode. This mode disables automatic
13713
- * constraint validation, allowing you to control the validation process yourself.
13714
- * You can still trigger constraint validation manually with the `validate()` method
13715
- * or use `checkValidity()` to assess the component's validity without affecting
13716
- * the invalid state. In manual validation mode, you can also manipulate
13717
- * the `invalid` property directly through your application logic without conflicts
13718
- * with the component's internal validation.
13719
- *
13720
- * @attr {boolean} manual-validation
13721
- */
13722
- manualValidation: {
13723
- type: Boolean,
13724
- value: false,
13725
- },
13726
-
13727
13663
  /**
13728
13664
  * Specifies that the user must fill in a value.
13729
13665
  */
@@ -13778,14 +13714,6 @@ const ValidateMixin = dedupingMixin(
13778
13714
  return true;
13779
13715
  }
13780
13716
 
13781
- /** @protected */
13782
- _requestValidation() {
13783
- if (!this.manualValidation) {
13784
- // eslint-disable-next-line no-restricted-syntax
13785
- this.validate();
13786
- }
13787
- }
13788
-
13789
13717
  /**
13790
13718
  * Fired whenever the field is validated.
13791
13719
  *
@@ -14308,14 +14236,14 @@ const CheckboxMixin = (superclass) =>
14308
14236
  // Do not validate when focusout is caused by document
14309
14237
  // losing focus, which happens on browser tab switch.
14310
14238
  if (!focused && document.hasFocus()) {
14311
- this._requestValidation();
14239
+ this.validate();
14312
14240
  }
14313
14241
  }
14314
14242
 
14315
14243
  /** @private */
14316
14244
  _checkedChanged(checked) {
14317
14245
  if (checked || this.__oldChecked) {
14318
- this._requestValidation();
14246
+ this.validate();
14319
14247
  }
14320
14248
 
14321
14249
  this.__oldChecked = checked;
@@ -14332,7 +14260,7 @@ const CheckboxMixin = (superclass) =>
14332
14260
  super._requiredChanged(required);
14333
14261
 
14334
14262
  if (required === false) {
14335
- this._requestValidation();
14263
+ this.validate();
14336
14264
  }
14337
14265
  }
14338
14266
 
@@ -15032,7 +14960,7 @@ const CheckboxGroupMixin = (superclass) =>
15032
14960
  });
15033
14961
 
15034
14962
  if (oldValue !== undefined) {
15035
- this._requestValidation();
14963
+ this.validate();
15036
14964
  }
15037
14965
  }
15038
14966
 
@@ -15072,7 +15000,7 @@ const CheckboxGroupMixin = (superclass) =>
15072
15000
  // Do not validate when focusout is caused by document
15073
15001
  // losing focus, which happens on browser tab switch.
15074
15002
  if (!focused && document.hasFocus()) {
15075
- this._requestValidation();
15003
+ this.validate();
15076
15004
  }
15077
15005
  }
15078
15006
  };
@@ -15212,23 +15140,31 @@ const CheckboxGroupInput = class {
15212
15140
  index.registerInstance(this, hostRef);
15213
15141
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
15214
15142
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
15215
- /**
15216
- * Default value for the input.
15217
- */
15218
- this.defaultValue = '';
15219
- /**
15220
- * Client custom styling via inline style
15221
- */
15222
- this.clientStyling = '';
15223
- this.limitStylingAppends = false;
15224
- this.showTooltip = false;
15225
- this.selectedValues = [];
15226
15143
  this.value = null;
15227
15144
  this.setClientStyling = () => {
15228
15145
  let sheet = document.createElement('style');
15229
15146
  sheet.innerHTML = this.clientStyling;
15230
15147
  this.stylingContainer.prepend(sheet);
15231
15148
  };
15149
+ this.name = undefined;
15150
+ this.displayName = undefined;
15151
+ this.defaultValue = '';
15152
+ this.autofilled = undefined;
15153
+ this.tooltip = undefined;
15154
+ this.options = undefined;
15155
+ this.validation = undefined;
15156
+ this.language = undefined;
15157
+ this.emitValue = undefined;
15158
+ this.clientStyling = '';
15159
+ this.errorMessage = undefined;
15160
+ this.isValid = undefined;
15161
+ this.limitStylingAppends = false;
15162
+ this.showTooltip = false;
15163
+ this.selectedValues = [];
15164
+ }
15165
+ handleStylingChange(newValue, oldValue) {
15166
+ if (newValue !== oldValue)
15167
+ this.setClientStyling();
15232
15168
  }
15233
15169
  validityChanged() {
15234
15170
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -15304,13 +15240,14 @@ const CheckboxGroupInput = class {
15304
15240
  return (index.h("label", { class: 'checkbox__label', htmlFor: `${this.name}__input`, slot: 'label' }, index.h("div", { class: 'checkbox__label-text', innerHTML: `${this.displayName} ${this.validation.mandatory ? '*' : ''}` })));
15305
15241
  }
15306
15242
  render() {
15307
- return index.h("div", { key: 'fa45026502fd8d46aa537aee03210ad68d30e577', class: `checkboxgroup__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '15ded4fd896920c6244806e49f300c124c27186d', class: 'checkboxgroup__wrapper--flex' }, index.h("vaadin-checkbox", { key: 'd7eaa205877f8f12c9ef7d4f77018665806f5c7c', class: 'checkbox__input', checked: this.selectedValues.length === this.options.length || this.defaultValue === 'true', indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (e) => this.handleParentCheckbox(e) }, this.renderLabel()), this.tooltip &&
15308
- index.h("img", { key: 'aca39ed398415a6e2cef861be40dad33e0398759', class: 'checkboxgroup__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("small", { key: 'a1a6e1c3c02edcca572b8826ffba06835ca451c3', class: 'checkboxgroup__error-message' }, this.errorMessage), index.h("vaadin-checkbox-group", { key: '9f5f8a945e4ba13d7d0da6d362c15d00a7796b71', theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
15243
+ return index.h("div", { key: 'c25b0a1ac187ea0abf1fe8c69d584eee00568177', class: `checkboxgroup__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'daf512e7f98d20bae65e43ab869e45babc008e90', class: 'checkboxgroup__wrapper--flex' }, index.h("vaadin-checkbox", { key: '08e31269cf2ace61c4c929a6a597486555667197', class: 'checkbox__input', checked: this.selectedValues.length === this.options.length || this.defaultValue === 'true', indeterminate: this.selectedValues.length > 0 && this.selectedValues.length < this.options.length, onChange: (e) => this.handleParentCheckbox(e) }, this.renderLabel()), this.tooltip &&
15244
+ index.h("img", { key: 'ed4c3efd6b7e30ae0b68de11093b8faf2cb0a845', class: 'checkboxgroup__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("small", { key: '5b95c4059a2de898c04bf147e89c5a2ad035dddf', class: 'checkboxgroup__error-message' }, this.errorMessage), index.h("vaadin-checkbox-group", { key: '2b73ac73d52c6185358e50eda4c9706643f55384', theme: "vertical", value: this.selectedValues, "on-value-changed": (event) => {
15309
15245
  this.selectedValues = event.detail.value;
15310
15246
  } }, this.options.map((checkbox) => index.h("vaadin-checkbox", { class: 'checkbox__input', name: checkbox.name, value: checkbox.name, label: checkbox.displayName }))));
15311
15247
  }
15312
15248
  get element() { return index.getElement(this); }
15313
15249
  static get watchers() { return {
15250
+ "clientStyling": ["handleStylingChange"],
15314
15251
  "isValid": ["validityChanged"],
15315
15252
  "selectedValues": ["setValue"],
15316
15253
  "emitValue": ["emitValueHandler"]
@@ -15326,22 +15263,29 @@ const CheckboxInput = class {
15326
15263
  index.registerInstance(this, hostRef);
15327
15264
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
15328
15265
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
15329
- /**
15330
- * Default value for the input.
15331
- */
15332
- this.defaultValue = '';
15333
- /**
15334
- * Client custom styling via inline style
15335
- */
15336
- this.clientStyling = '';
15337
- this.limitStylingAppends = false;
15338
- this.showTooltip = false;
15339
15266
  this.value = '';
15340
15267
  this.setClientStyling = () => {
15341
15268
  let sheet = document.createElement('style');
15342
15269
  sheet.innerHTML = this.clientStyling;
15343
15270
  this.stylingContainer.prepend(sheet);
15344
15271
  };
15272
+ this.name = undefined;
15273
+ this.displayName = undefined;
15274
+ this.defaultValue = '';
15275
+ this.autofilled = undefined;
15276
+ this.tooltip = undefined;
15277
+ this.validation = undefined;
15278
+ this.language = undefined;
15279
+ this.emitValue = undefined;
15280
+ this.clientStyling = '';
15281
+ this.errorMessage = undefined;
15282
+ this.isValid = undefined;
15283
+ this.limitStylingAppends = false;
15284
+ this.showTooltip = false;
15285
+ }
15286
+ handleStylingChange(newValue, oldValue) {
15287
+ if (newValue !== oldValue)
15288
+ this.setClientStyling();
15345
15289
  }
15346
15290
  validityChanged() {
15347
15291
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -15405,10 +15349,11 @@ const CheckboxInput = class {
15405
15349
  return null;
15406
15350
  }
15407
15351
  render() {
15408
- return index.h("div", { key: '0aae00d291d1da02adae1bc91e79ccd579aa5c7f', class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("input", { key: '4b8c61d322b5065d8abe4e2687e270511fadc97f', class: 'checkbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), index.h("small", { key: '934263cb58a0d379e8b7dc1f5004ad7e61c63ce0', class: 'checkbox__error-message' }, this.errorMessage), index.h("div", { key: '88cc71329d88b6325d792226e64ff7f93e940178', class: 'checkbox__wrapper--relative' }, this.tooltip &&
15409
- index.h("img", { key: '3708dc613dc920bac6557f2a8020bbafd97d9127', class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
15352
+ return index.h("div", { key: '8c80c955bb052558165a4c5b1020d0582ed0af36', class: `checkbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("input", { key: '89401d543cb30b72ec614b0cd4e95b2e82b2522d', class: 'checkbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.inputReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), index.h("small", { key: 'd007d8c02dd014a363e2fcc1a0e8df6ffda34bcb', class: 'checkbox__error-message' }, this.errorMessage), index.h("div", { key: 'c511c07684173359663d4907371efb82289f0433', class: 'checkbox__wrapper--relative' }, this.tooltip &&
15353
+ index.h("img", { key: 'dd263ce86efd89f34078f3cc24729f43f40e89a6', class: 'checkbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
15410
15354
  }
15411
15355
  static get watchers() { return {
15356
+ "clientStyling": ["handleStylingChange"],
15412
15357
  "isValid": ["validityChanged"],
15413
15358
  "emitValue": ["emitValueHandler"]
15414
15359
  }; }
@@ -17750,7 +17695,6 @@ const OverlayMixin = (superClass) =>
17750
17695
  notify: true,
17751
17696
  observer: '_openedChanged',
17752
17697
  reflectToAttribute: true,
17753
- sync: true,
17754
17698
  },
17755
17699
 
17756
17700
  /**
@@ -17759,7 +17703,6 @@ const OverlayMixin = (superClass) =>
17759
17703
  */
17760
17704
  owner: {
17761
17705
  type: Object,
17762
- sync: true,
17763
17706
  },
17764
17707
 
17765
17708
  /**
@@ -17767,7 +17710,6 @@ const OverlayMixin = (superClass) =>
17767
17710
  */
17768
17711
  model: {
17769
17712
  type: Object,
17770
- sync: true,
17771
17713
  },
17772
17714
 
17773
17715
  /**
@@ -17781,7 +17723,6 @@ const OverlayMixin = (superClass) =>
17781
17723
  */
17782
17724
  renderer: {
17783
17725
  type: Object,
17784
- sync: true,
17785
17726
  },
17786
17727
 
17787
17728
  /**
@@ -17794,7 +17735,6 @@ const OverlayMixin = (superClass) =>
17794
17735
  value: false,
17795
17736
  reflectToAttribute: true,
17796
17737
  observer: '_modelessChanged',
17797
- sync: true,
17798
17738
  },
17799
17739
 
17800
17740
  /**
@@ -17806,7 +17746,6 @@ const OverlayMixin = (superClass) =>
17806
17746
  type: Boolean,
17807
17747
  reflectToAttribute: true,
17808
17748
  observer: '_hiddenChanged',
17809
- sync: true,
17810
17749
  },
17811
17750
 
17812
17751
  /**
@@ -17817,7 +17756,6 @@ const OverlayMixin = (superClass) =>
17817
17756
  type: Boolean,
17818
17757
  value: false,
17819
17758
  reflectToAttribute: true,
17820
- sync: true,
17821
17759
  },
17822
17760
  };
17823
17761
  }
@@ -19646,21 +19584,6 @@ class InfiniteScroller extends HTMLElement {
19646
19584
  }
19647
19585
  }
19648
19586
 
19649
- /** @protected */
19650
- disconnectedCallback() {
19651
- if (this._debouncerScrollFinish) {
19652
- this._debouncerScrollFinish.cancel();
19653
- }
19654
-
19655
- if (this._debouncerUpdateClones) {
19656
- this._debouncerUpdateClones.cancel();
19657
- }
19658
-
19659
- if (this.__pendingFinishInit) {
19660
- cancelAnimationFrame(this.__pendingFinishInit);
19661
- }
19662
- }
19663
-
19664
19587
  /**
19665
19588
  * Force the scroller to update clones after a reset, without
19666
19589
  * waiting for the debouncer to resolve.
@@ -19808,9 +19731,8 @@ class InfiniteScroller extends HTMLElement {
19808
19731
  }
19809
19732
  });
19810
19733
 
19811
- this.__pendingFinishInit = requestAnimationFrame(() => {
19734
+ requestAnimationFrame(() => {
19812
19735
  this._finishInit();
19813
- this.__pendingFinishInit = null;
19814
19736
  });
19815
19737
  }
19816
19738
 
@@ -19825,10 +19747,6 @@ class InfiniteScroller extends HTMLElement {
19825
19747
  itemWrapper.instance = this._createElement();
19826
19748
  itemWrapper.appendChild(itemWrapper.instance);
19827
19749
 
19828
- if (itemWrapper.instance.performUpdate) {
19829
- itemWrapper.instance.performUpdate();
19830
- }
19831
-
19832
19750
  Object.keys(tmpInstance).forEach((prop) => {
19833
19751
  itemWrapper.instance[prop] = tmpInstance[prop];
19834
19752
  });
@@ -21846,10 +21764,6 @@ const MonthCalendarMixin = (superClass) =>
21846
21764
  value: () => false,
21847
21765
  },
21848
21766
 
21849
- enteredDate: {
21850
- type: Date,
21851
- },
21852
-
21853
21767
  disabled: {
21854
21768
  type: Boolean,
21855
21769
  reflectToAttribute: true,
@@ -21869,11 +21783,6 @@ const MonthCalendarMixin = (superClass) =>
21869
21783
  _notTapping: {
21870
21784
  type: Boolean,
21871
21785
  },
21872
-
21873
- /** @private */
21874
- __hasFocus: {
21875
- type: Boolean,
21876
- },
21877
21786
  };
21878
21787
  }
21879
21788
 
@@ -21893,12 +21802,6 @@ const MonthCalendarMixin = (superClass) =>
21893
21802
  addListener(this.$.monthGrid, 'tap', this._handleTap.bind(this));
21894
21803
  }
21895
21804
 
21896
- /** @override */
21897
- _setFocused(focused) {
21898
- super._setFocused(focused);
21899
- this.__hasFocus = focused;
21900
- }
21901
-
21902
21805
  /**
21903
21806
  * Returns true if all the dates in the month are out of the allowed range
21904
21807
  * @protected
@@ -22194,7 +22097,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
22194
22097
  <template is="dom-repeat" items="[[week]]">
22195
22098
  <td
22196
22099
  role="gridcell"
22197
- part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled, enteredDate, __hasFocus)]]"
22100
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
22198
22101
  date="[[item]]"
22199
22102
  tabindex$="[[__getDayTabindex(item, focusedDate)]]"
22200
22103
  disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
@@ -22252,7 +22155,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
22252
22155
 
22253
22156
  /** @private */
22254
22157
  // eslint-disable-next-line @typescript-eslint/max-params
22255
- __getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled, enteredDate, hasFocus) {
22158
+ __getDatePart(date, focusedDate, selectedDate, minDate, maxDate, isDateDisabled) {
22256
22159
  const result = ['date'];
22257
22160
  const greaterThanToday = date > normalizeDate(new Date());
22258
22161
  const lessThanToday = date < normalizeDate(new Date());
@@ -22261,7 +22164,7 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
22261
22164
  result.push('disabled');
22262
22165
  }
22263
22166
 
22264
- if (dateEquals(date, focusedDate) && (hasFocus || dateEquals(date, enteredDate))) {
22167
+ if (this.__isDayFocused(date, focusedDate)) {
22265
22168
  result.push('focused');
22266
22169
  }
22267
22170
 
@@ -22284,6 +22187,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
22284
22187
  return result.join(' ');
22285
22188
  }
22286
22189
 
22190
+ /** @private */
22191
+ __isDayFocused(date, focusedDate) {
22192
+ return dateEquals(date, focusedDate);
22193
+ }
22194
+
22287
22195
  /** @private */
22288
22196
  __isDaySelected(date, selectedDate) {
22289
22197
  return dateEquals(date, selectedDate);
@@ -22314,7 +22222,11 @@ class MonthCalendar extends MonthCalendarMixin(ThemableMixin(PolymerElement)) {
22314
22222
 
22315
22223
  /** @private */
22316
22224
  __getDayTabindex(date, focusedDate) {
22317
- return dateEquals(date, focusedDate) ? '0' : '-1';
22225
+ if (this.__isDayFocused(date, focusedDate)) {
22226
+ return '0';
22227
+ }
22228
+
22229
+ return '-1';
22318
22230
  }
22319
22231
  }
22320
22232
 
@@ -22433,7 +22345,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
22433
22345
  initialPosition: {
22434
22346
  type: Object,
22435
22347
  observer: '_initialPositionChanged',
22436
- sync: true,
22437
22348
  },
22438
22349
 
22439
22350
  _originDate: {
@@ -22501,11 +22412,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
22501
22412
  type: Function,
22502
22413
  },
22503
22414
 
22504
- enteredDate: {
22505
- type: Date,
22506
- sync: true,
22507
- },
22508
-
22509
22415
  /**
22510
22416
  * Input label
22511
22417
  */
@@ -22533,7 +22439,7 @@ const DatePickerOverlayContentMixin = (superClass) =>
22533
22439
 
22534
22440
  static get observers() {
22535
22441
  return [
22536
- '__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled, enteredDate)',
22442
+ '__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)',
22537
22443
  '__updateCancelButton(_cancelButton, i18n)',
22538
22444
  '__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)',
22539
22445
  '__updateYears(years, selectedDate, _theme)',
@@ -22721,7 +22627,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
22721
22627
  ignoreTaps,
22722
22628
  theme,
22723
22629
  isDateDisabled,
22724
- enteredDate,
22725
22630
  ) {
22726
22631
  if (calendars && calendars.length) {
22727
22632
  calendars.forEach((calendar) => {
@@ -22733,7 +22638,6 @@ const DatePickerOverlayContentMixin = (superClass) =>
22733
22638
  calendar.selectedDate = selectedDate;
22734
22639
  calendar.showWeekNumbers = showWeekNumbers;
22735
22640
  calendar.ignoreTaps = ignoreTaps;
22736
- calendar.enteredDate = enteredDate;
22737
22641
 
22738
22642
  if (theme) {
22739
22643
  calendar.setAttribute('theme', theme);
@@ -23842,8 +23746,8 @@ const InputConstraintsMixin = dedupingMixin(
23842
23746
  const isLastConstraintRemoved = this.__previousHasConstraints && !hasConstraints;
23843
23747
 
23844
23748
  if ((this._hasValue || this.invalid) && hasConstraints) {
23845
- this._requestValidation();
23846
- } else if (isLastConstraintRemoved && !this.manualValidation) {
23749
+ this.validate();
23750
+ } else if (isLastConstraintRemoved) {
23847
23751
  this._setInvalid(false);
23848
23752
  }
23849
23753
 
@@ -23861,7 +23765,7 @@ const InputConstraintsMixin = dedupingMixin(
23861
23765
  _onChange(event) {
23862
23766
  event.stopPropagation();
23863
23767
 
23864
- this._requestValidation();
23768
+ this.validate();
23865
23769
 
23866
23770
  this.dispatchEvent(
23867
23771
  new CustomEvent('change', {
@@ -24004,6 +23908,30 @@ const InputControlMixin = (superclass) =>
24004
23908
  }
24005
23909
  }
24006
23910
 
23911
+ /**
23912
+ * Override an event listener inherited from `InputMixin`
23913
+ * to capture native `change` event and make sure that
23914
+ * a new one is dispatched after validation runs.
23915
+ * @param {Event} event
23916
+ * @protected
23917
+ * @override
23918
+ */
23919
+ _onChange(event) {
23920
+ event.stopPropagation();
23921
+
23922
+ this.validate();
23923
+
23924
+ this.dispatchEvent(
23925
+ new CustomEvent('change', {
23926
+ detail: {
23927
+ sourceEvent: event,
23928
+ },
23929
+ bubbles: event.bubbles,
23930
+ cancelable: event.cancelable,
23931
+ }),
23932
+ );
23933
+ }
23934
+
24007
23935
  /**
24008
23936
  * Override a method from `InputMixin`.
24009
23937
  * @param {!HTMLElement} input
@@ -24339,62 +24267,6 @@ class VirtualKeyboardController {
24339
24267
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
24340
24268
  */
24341
24269
 
24342
- const datePickerI18nDefaults = Object.freeze({
24343
- monthNames: [
24344
- 'January',
24345
- 'February',
24346
- 'March',
24347
- 'April',
24348
- 'May',
24349
- 'June',
24350
- 'July',
24351
- 'August',
24352
- 'September',
24353
- 'October',
24354
- 'November',
24355
- 'December',
24356
- ],
24357
- weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
24358
- weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
24359
- firstDayOfWeek: 0,
24360
- today: 'Today',
24361
- cancel: 'Cancel',
24362
- referenceDate: '',
24363
- formatDate(d) {
24364
- const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
24365
- return [d.month + 1, d.day, yearStr].join('/');
24366
- },
24367
- parseDate(text) {
24368
- const parts = text.split('/');
24369
- const today = new Date();
24370
- let date,
24371
- month = today.getMonth(),
24372
- year = today.getFullYear();
24373
-
24374
- if (parts.length === 3) {
24375
- month = parseInt(parts[0]) - 1;
24376
- date = parseInt(parts[1]);
24377
- year = parseInt(parts[2]);
24378
- if (parts[2].length < 3 && year >= 0) {
24379
- const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
24380
- year = getAdjustedYear(usedReferenceDate, year, month, date);
24381
- }
24382
- } else if (parts.length === 2) {
24383
- month = parseInt(parts[0]) - 1;
24384
- date = parseInt(parts[1]);
24385
- } else if (parts.length === 1) {
24386
- date = parseInt(parts[0]);
24387
- }
24388
-
24389
- if (date !== undefined) {
24390
- return { day: date, month, year };
24391
- }
24392
- },
24393
- formatTitle: (monthName, fullYear) => {
24394
- return `${monthName} ${fullYear}`;
24395
- },
24396
- });
24397
-
24398
24270
  /**
24399
24271
  * @polymerMixin
24400
24272
  * @mixes ControllerMixin
@@ -24468,10 +24340,7 @@ const DatePickerMixin = (subclass) =>
24468
24340
  * Set true to prevent the overlay from opening automatically.
24469
24341
  * @attr {boolean} auto-open-disabled
24470
24342
  */
24471
- autoOpenDisabled: {
24472
- type: Boolean,
24473
- sync: true,
24474
- },
24343
+ autoOpenDisabled: Boolean,
24475
24344
 
24476
24345
  /**
24477
24346
  * Set true to display ISO-8601 week numbers in the calendar. Notice that
@@ -24592,7 +24461,63 @@ const DatePickerMixin = (subclass) =>
24592
24461
  i18n: {
24593
24462
  type: Object,
24594
24463
  sync: true,
24595
- value: () => ({ ...datePickerI18nDefaults }),
24464
+ value: () => {
24465
+ return {
24466
+ monthNames: [
24467
+ 'January',
24468
+ 'February',
24469
+ 'March',
24470
+ 'April',
24471
+ 'May',
24472
+ 'June',
24473
+ 'July',
24474
+ 'August',
24475
+ 'September',
24476
+ 'October',
24477
+ 'November',
24478
+ 'December',
24479
+ ],
24480
+ weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
24481
+ weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
24482
+ firstDayOfWeek: 0,
24483
+ today: 'Today',
24484
+ cancel: 'Cancel',
24485
+ referenceDate: '',
24486
+ formatDate(d) {
24487
+ const yearStr = String(d.year).replace(/\d+/u, (y) => '0000'.substr(y.length) + y);
24488
+ return [d.month + 1, d.day, yearStr].join('/');
24489
+ },
24490
+ parseDate(text) {
24491
+ const parts = text.split('/');
24492
+ const today = new Date();
24493
+ let date,
24494
+ month = today.getMonth(),
24495
+ year = today.getFullYear();
24496
+
24497
+ if (parts.length === 3) {
24498
+ month = parseInt(parts[0]) - 1;
24499
+ date = parseInt(parts[1]);
24500
+ year = parseInt(parts[2]);
24501
+ if (parts[2].length < 3 && year >= 0) {
24502
+ const usedReferenceDate = this.referenceDate ? parseDate(this.referenceDate) : new Date();
24503
+ year = getAdjustedYear(usedReferenceDate, year, month, date);
24504
+ }
24505
+ } else if (parts.length === 2) {
24506
+ month = parseInt(parts[0]) - 1;
24507
+ date = parseInt(parts[1]);
24508
+ } else if (parts.length === 1) {
24509
+ date = parseInt(parts[0]);
24510
+ }
24511
+
24512
+ if (date !== undefined) {
24513
+ return { day: date, month, year };
24514
+ }
24515
+ },
24516
+ formatTitle: (monthName, fullYear) => {
24517
+ return `${monthName} ${fullYear}`;
24518
+ },
24519
+ };
24520
+ },
24596
24521
  },
24597
24522
 
24598
24523
  /**
@@ -24677,10 +24602,18 @@ const DatePickerMixin = (subclass) =>
24677
24602
  sync: true,
24678
24603
  },
24679
24604
 
24680
- /** @private */
24681
- __enteredDate: {
24682
- type: Date,
24683
- sync: true,
24605
+ /**
24606
+ * In date-picker, unlike other components extending `InputMixin`,
24607
+ * the property indicates true only if the input has been entered by the user.
24608
+ * In the case of programmatic changes, the property is reset to false.
24609
+ * Read more about why this workaround is needed:
24610
+ * https://github.com/vaadin/web-components/issues/5639
24611
+ *
24612
+ * @protected
24613
+ * @override
24614
+ */
24615
+ _hasInputValue: {
24616
+ type: Boolean,
24684
24617
  },
24685
24618
  };
24686
24619
  }
@@ -24689,7 +24622,7 @@ const DatePickerMixin = (subclass) =>
24689
24622
  return [
24690
24623
  '_selectedDateChanged(_selectedDate, i18n)',
24691
24624
  '_focusedDateChanged(_focusedDate, i18n)',
24692
- '__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)',
24625
+ '__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)',
24693
24626
  '__updateOverlayContentTheme(_overlayContent, _theme)',
24694
24627
  '__updateOverlayContentFullScreen(_overlayContent, _fullscreen)',
24695
24628
  ];
@@ -24707,17 +24640,28 @@ const DatePickerMixin = (subclass) =>
24707
24640
  this._boundOverlayRenderer = this._overlayRenderer.bind(this);
24708
24641
  }
24709
24642
 
24710
- /** @override */
24643
+ /**
24644
+ * @override
24645
+ * @protected
24646
+ */
24711
24647
  get _inputElementValue() {
24712
24648
  return super._inputElementValue;
24713
24649
  }
24714
24650
 
24715
- /** @override */
24651
+ /**
24652
+ * The setter is overridden to reset the `_hasInputValue` property
24653
+ * to false when the input element's value is updated programmatically.
24654
+ * In date-picker, `_hasInputValue` is supposed to indicate true only
24655
+ * if the input has been entered by the user.
24656
+ * Read more about why this workaround is needed:
24657
+ * https://github.com/vaadin/web-components/issues/5639
24658
+ *
24659
+ * @override
24660
+ * @protected
24661
+ */
24716
24662
  set _inputElementValue(value) {
24717
24663
  super._inputElementValue = value;
24718
-
24719
- const parsedDate = this.__parseDate(value);
24720
- this.__setEnteredDate(parsedDate);
24664
+ this._hasInputValue = false;
24721
24665
  }
24722
24666
 
24723
24667
  /**
@@ -24779,7 +24723,7 @@ const DatePickerMixin = (subclass) =>
24779
24723
  // Do not validate when focusout is caused by document
24780
24724
  // losing focus, which happens on browser tab switch.
24781
24725
  if (document.hasFocus()) {
24782
- this._requestValidation();
24726
+ this.validate();
24783
24727
  }
24784
24728
  }
24785
24729
  }
@@ -24924,8 +24868,13 @@ const DatePickerMixin = (subclass) =>
24924
24868
  !this._selectedDate || dateAllowed(this._selectedDate, this._minDate, this._maxDate, this.isDateDisabled);
24925
24869
 
24926
24870
  let inputValidity = true;
24927
- if (this.inputElement && this.inputElement.checkValidity) {
24928
- inputValidity = this.inputElement.checkValidity();
24871
+ if (this.inputElement) {
24872
+ if (this.inputElement.checkValidity) {
24873
+ inputValidity = this.inputElement.checkValidity();
24874
+ } else if (this.inputElement.validate) {
24875
+ // Iron-form-elements have the validate API
24876
+ inputValidity = this.inputElement.validate();
24877
+ }
24929
24878
  }
24930
24879
 
24931
24880
  return inputValid && isDateValid && inputValidity;
@@ -25012,10 +24961,10 @@ const DatePickerMixin = (subclass) =>
25012
24961
  const unparsableValue = this.__unparsableValue;
25013
24962
 
25014
24963
  if (this.__committedValue !== this.value) {
25015
- this._requestValidation();
24964
+ this.validate();
25016
24965
  this.dispatchEvent(new CustomEvent('change', { bubbles: true }));
25017
24966
  } else if (this.__committedUnparsableValue !== unparsableValue) {
25018
- this._requestValidation();
24967
+ this.validate();
25019
24968
  this.dispatchEvent(new CustomEvent('unparsable-change'));
25020
24969
  }
25021
24970
 
@@ -25144,7 +25093,7 @@ const DatePickerMixin = (subclass) =>
25144
25093
 
25145
25094
  if (oldValue !== undefined) {
25146
25095
  // Validate only if `value` changes after initialization.
25147
- this._requestValidation();
25096
+ this.validate();
25148
25097
  }
25149
25098
  }
25150
25099
  } else {
@@ -25171,7 +25120,6 @@ const DatePickerMixin = (subclass) =>
25171
25120
  selectedDate,
25172
25121
  showWeekNumbers,
25173
25122
  isDateDisabled,
25174
- enteredDate,
25175
25123
  ) {
25176
25124
  if (overlayContent) {
25177
25125
  overlayContent.i18n = i18n;
@@ -25182,7 +25130,6 @@ const DatePickerMixin = (subclass) =>
25182
25130
  overlayContent.selectedDate = selectedDate;
25183
25131
  overlayContent.showWeekNumbers = showWeekNumbers;
25184
25132
  overlayContent.isDateDisabled = isDateDisabled;
25185
- overlayContent.enteredDate = enteredDate;
25186
25133
  }
25187
25134
  }
25188
25135
 
@@ -25312,7 +25259,7 @@ const DatePickerMixin = (subclass) =>
25312
25259
  // Needed in case the value was not changed: open and close dropdown,
25313
25260
  // especially on outside click. On Esc key press, do not validate.
25314
25261
  if (!this.value && !this._keyboardActive) {
25315
- this._requestValidation();
25262
+ this.validate();
25316
25263
  }
25317
25264
  }
25318
25265
 
@@ -25504,32 +25451,15 @@ const DatePickerMixin = (subclass) =>
25504
25451
  this.open();
25505
25452
  }
25506
25453
 
25507
- const parsedDate = this.__parseDate(this._inputElementValue || '');
25508
- if (parsedDate) {
25509
- this._ignoreFocusedDateChange = true;
25510
- if (!dateEquals(parsedDate, this._focusedDate)) {
25511
- this._focusedDate = parsedDate;
25512
- }
25513
- this._ignoreFocusedDateChange = false;
25514
- }
25515
-
25516
- this.__setEnteredDate(parsedDate);
25517
- }
25518
-
25519
- /**
25520
- * @param {Date} date
25521
- * @private
25522
- */
25523
- __setEnteredDate(date) {
25524
- if (date) {
25525
- if (!dateEquals(this.__enteredDate, date)) {
25526
- this.__enteredDate = date;
25454
+ if (this._inputElementValue) {
25455
+ const parsedDate = this.__parseDate(this._inputElementValue);
25456
+ if (parsedDate) {
25457
+ this._ignoreFocusedDateChange = true;
25458
+ if (!dateEquals(parsedDate, this._focusedDate)) {
25459
+ this._focusedDate = parsedDate;
25460
+ }
25461
+ this._ignoreFocusedDateChange = false;
25527
25462
  }
25528
- } else if (this.__enteredDate != null) {
25529
- // Do not override initial undefined value with null
25530
- // to avoid triggering a Lit update that can cause
25531
- // other scheduled properties to flush too early.
25532
- this.__enteredDate = null;
25533
25463
  }
25534
25464
  }
25535
25465
 
@@ -25813,7 +25743,6 @@ class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(Element
25813
25743
 
25814
25744
  /** @private */
25815
25745
  _onVaadinOverlayClose(e) {
25816
- // Prevent closing the overlay on label element click
25817
25746
  if (e.detail.sourceEvent && e.detail.sourceEvent.composedPath().includes(this)) {
25818
25747
  e.preventDefault();
25819
25748
  }
@@ -30918,16 +30847,6 @@ const DateInput = class {
30918
30847
  index.registerInstance(this, hostRef);
30919
30848
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
30920
30849
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
30921
- /**
30922
- * Client custom styling via inline style
30923
- */
30924
- this.clientStyling = '';
30925
- /**
30926
- * Emit event on click
30927
- */
30928
- this.emitOnClick = false;
30929
- this.limitStylingAppends = false;
30930
- this.showTooltip = false;
30931
30850
  this.touched = false;
30932
30851
  this.formatDate = (dateParts) => {
30933
30852
  const { year, month, day } = dateParts;
@@ -30948,6 +30867,26 @@ const DateInput = class {
30948
30867
  sheet.innerHTML = this.clientStyling;
30949
30868
  this.stylingContainer.prepend(sheet);
30950
30869
  };
30870
+ this.name = undefined;
30871
+ this.displayName = undefined;
30872
+ this.placeholder = undefined;
30873
+ this.validation = undefined;
30874
+ this.defaultValue = undefined;
30875
+ this.autofilled = undefined;
30876
+ this.tooltip = undefined;
30877
+ this.language = undefined;
30878
+ this.emitValue = undefined;
30879
+ this.clientStyling = '';
30880
+ this.dateFormat = undefined;
30881
+ this.emitOnClick = false;
30882
+ this.errorMessage = undefined;
30883
+ this.isValid = undefined;
30884
+ this.limitStylingAppends = false;
30885
+ this.showTooltip = false;
30886
+ }
30887
+ handleStylingChange(newValue, oldValue) {
30888
+ if (newValue !== oldValue)
30889
+ this.setClientStyling();
30951
30890
  }
30952
30891
  validityChanged() {
30953
30892
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -31045,11 +30984,12 @@ const DateInput = class {
31045
30984
  if (this.touched) {
31046
30985
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
31047
30986
  }
31048
- return index.h("div", { key: 'fc9cd0a618c7b6e62962c0800399a470fffa1fc4', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("label", { key: 'abc7c1715dd2d0c60dd2ac6d028355de910be501', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { key: 'a6b40a978b573d41490457d708f9a7ac78622a6f', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e), onBlur: this.handleBlur }), index.h("small", { key: 'd802ea7b25a64802aca3a7491107fcee7af2a23c', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
31049
- index.h("img", { key: '46edd200a9ce9eba27414a6434c6b3d5e9dc9964', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
30987
+ return index.h("div", { key: 'ad6360e0afb065a91f860574f5e3c08f5bdb2534', class: `date__wrapper ${this.autofilled ? 'date__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("label", { key: '3e8d26e0c8ae0983997b84e95cb34887df1f5fe5', class: `date__label ${this.validation.mandatory ? 'date__label--required' : ''}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? '*' : ''), index.h("vaadin-date-picker", { key: '62ee430506c2ab1a5ebb632d72e84ef905296888', id: `${this.name}__input`, type: 'date', class: `date__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (e) => this.handleInput(e), onBlur: this.handleBlur }), index.h("small", { key: '6b7c0e9c3437b484bd534060f93ad4fcd9eaeb60', class: 'date__error-message' }, this.errorMessage), this.tooltip &&
30988
+ index.h("img", { key: '6479b29563710abfe1be584c9de110fafe69ca3d', class: 'date__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
31050
30989
  }
31051
30990
  get element() { return index.getElement(this); }
31052
30991
  static get watchers() { return {
30992
+ "clientStyling": ["handleStylingChange"],
31053
30993
  "isValid": ["validityChanged"],
31054
30994
  "emitValue": ["emitValueHandler"]
31055
30995
  }; }
@@ -31064,12 +31004,6 @@ const EmailInput = class {
31064
31004
  index.registerInstance(this, hostRef);
31065
31005
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
31066
31006
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
31067
- /**
31068
- * Client custom styling via inline style
31069
- */
31070
- this.clientStyling = '';
31071
- this.limitStylingAppends = false;
31072
- this.showTooltip = false;
31073
31007
  this.validationPattern = '';
31074
31008
  this.touched = false;
31075
31009
  this.handleInput = (event) => {
@@ -31094,6 +31028,25 @@ const EmailInput = class {
31094
31028
  sheet.innerHTML = this.clientStyling;
31095
31029
  this.stylingContainer.prepend(sheet);
31096
31030
  };
31031
+ this.name = undefined;
31032
+ this.displayName = undefined;
31033
+ this.placeholder = undefined;
31034
+ this.validation = undefined;
31035
+ this.defaultValue = undefined;
31036
+ this.autofilled = undefined;
31037
+ this.tooltip = undefined;
31038
+ this.language = undefined;
31039
+ this.emitValue = undefined;
31040
+ this.isDuplicateInput = undefined;
31041
+ this.clientStyling = '';
31042
+ this.errorMessage = undefined;
31043
+ this.isValid = undefined;
31044
+ this.limitStylingAppends = false;
31045
+ this.showTooltip = false;
31046
+ }
31047
+ handleStylingChange(newValue, oldValue) {
31048
+ if (newValue !== oldValue)
31049
+ this.setClientStyling();
31097
31050
  }
31098
31051
  validityChanged() {
31099
31052
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -31183,10 +31136,11 @@ const EmailInput = class {
31183
31136
  if (this.touched) {
31184
31137
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
31185
31138
  }
31186
- return index.h("div", { key: '23ac67984ab7a0f4db01e5fe01f4f326b4c6a912', class: `email__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'aa2405e435aea20f1678dd74776a8ce4094bc95b', class: 'email__wrapper--flex' }, index.h("label", { key: '970b83bbcf082d1721c1647993fecd076939b65d', class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '2f03eaf161aab9b45282c1bc0de15bea8455427c', class: 'email__wrapper--relative' }, this.tooltip &&
31187
- index.h("img", { key: '3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b', class: 'email__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: '491f83c0f562893c02e3425b4d54eecc214e3c95', id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: 'edb6660d958cc5d0cb41b0db195bd7e847ecbefe', class: 'email__error-message' }, this.errorMessage));
31139
+ return index.h("div", { key: 'a46093cfafc840d2fd563ee9676ccd2f16fb1620', class: `email__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '2eab4a96efc36cdb94e9f92b2a161e208f0ebcd4', class: 'email__wrapper--flex' }, index.h("label", { key: 'f5ed857f61ea6763c5fe88590732258b4dedac1b', class: `email__label ${this.validation.mandatory ? 'email__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '58cadc7857cd91dec968852be71e0108f55fbda7', class: 'email__wrapper--relative' }, this.tooltip &&
31140
+ index.h("img", { key: '03009d036fde1c36b9348ac45cefa3389194260c', class: 'email__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: 'b2a9fd96ed301df5f1d7cf6f5a2a5b52f96ab189', id: `${this.name}__input`, type: 'email', class: `email__input ${invalidClass}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: 'edb17f53141a3406bfc657f80098b914044a8894', class: 'email__error-message' }, this.errorMessage));
31188
31141
  }
31189
31142
  static get watchers() { return {
31143
+ "clientStyling": ["handleStylingChange"],
31190
31144
  "isValid": ["validityChanged"],
31191
31145
  "emitValue": ["emitValueHandler"]
31192
31146
  }; }
@@ -31199,28 +31153,29 @@ const GeneralInputStyle0 = generalInputCss;
31199
31153
  const GeneralInput = class {
31200
31154
  constructor(hostRef) {
31201
31155
  index.registerInstance(this, hostRef);
31202
- /**
31203
- * Type the general-input should take. Can take the default HTML input values.
31204
- */
31205
- this.type = 'text';
31206
- /**
31207
- * Client custom styling via inline style
31208
- */
31209
- this.clientStyling = '';
31210
- /**
31211
- * Translations via URL
31212
- */
31213
- this.translationUrl = '';
31214
- /**
31215
- * Emit event on click
31216
- */
31217
- this.emitOnClick = false;
31218
31156
  this.handleClick = (event) => {
31219
31157
  if (this.emitOnClick) {
31220
31158
  event.stopPropagation();
31221
31159
  window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
31222
31160
  }
31223
31161
  };
31162
+ this.type = 'text';
31163
+ this.name = undefined;
31164
+ this.displayName = undefined;
31165
+ this.placeholder = undefined;
31166
+ this.action = undefined;
31167
+ this.validation = undefined;
31168
+ this.options = undefined;
31169
+ this.language = undefined;
31170
+ this.autofilled = undefined;
31171
+ this.tooltip = undefined;
31172
+ this.defaultValue = undefined;
31173
+ this.emitValue = undefined;
31174
+ this.isDuplicateInput = undefined;
31175
+ this.clientStyling = '';
31176
+ this.dateFormat = undefined;
31177
+ this.translationUrl = '';
31178
+ this.emitOnClick = false;
31224
31179
  }
31225
31180
  connectedCallback() {
31226
31181
  if (this.translationUrl) {
@@ -32330,7 +32285,7 @@ function _t$1(t, e, n) {
32330
32285
  t.$$.on_destroy.push(D$1(e, n));
32331
32286
  }
32332
32287
  function gt$1(t) {
32333
- return t;
32288
+ return t ?? "";
32334
32289
  }
32335
32290
  function G(t, e) {
32336
32291
  t.appendChild(e);
@@ -32339,11 +32294,12 @@ function I(t, e, n) {
32339
32294
  const s = F(t);
32340
32295
  if (!s.getElementById(e)) {
32341
32296
  const i = w$1("style");
32342
- i.id = e, i.textContent = n, J(s, i);
32297
+ i.id = e, i.textContent = n, J$1(s, i);
32343
32298
  }
32344
32299
  }
32345
32300
  function F(t) {
32346
- if (!t) return document;
32301
+ if (!t)
32302
+ return document;
32347
32303
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
32348
32304
  return e && /** @type {ShadowRoot} */
32349
32305
  e.host ? (
@@ -32351,14 +32307,14 @@ function F(t) {
32351
32307
  e
32352
32308
  ) : t.ownerDocument;
32353
32309
  }
32354
- function J(t, e) {
32310
+ function J$1(t, e) {
32355
32311
  return G(
32356
32312
  /** @type {Document} */
32357
32313
  t.head || t,
32358
32314
  e
32359
32315
  ), e.sheet;
32360
32316
  }
32361
- function k(t, e, n) {
32317
+ function v(t, e, n) {
32362
32318
  t.insertBefore(e, n || null);
32363
32319
  }
32364
32320
  function y(t) {
@@ -32400,7 +32356,7 @@ function Et$1(t, e) {
32400
32356
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
32401
32357
  e);
32402
32358
  }
32403
- class Lt$1 {
32359
+ class Lt {
32404
32360
  /**
32405
32361
  * @private
32406
32362
  * @default false
@@ -32455,7 +32411,7 @@ class Lt$1 {
32455
32411
  * @returns {void} */
32456
32412
  i(e) {
32457
32413
  for (let n = 0; n < this.n.length; n += 1)
32458
- k(this.t, this.n[n], e);
32414
+ v(this.t, this.n[n], e);
32459
32415
  }
32460
32416
  /**
32461
32417
  * @param {string} html
@@ -32470,7 +32426,7 @@ class Lt$1 {
32470
32426
  this.n.forEach(y);
32471
32427
  }
32472
32428
  }
32473
- function K(t) {
32429
+ function K$1(t) {
32474
32430
  const e = {};
32475
32431
  return t.childNodes.forEach(
32476
32432
  /** @param {Element} node */
@@ -32483,22 +32439,23 @@ let g;
32483
32439
  function m(t) {
32484
32440
  g = t;
32485
32441
  }
32486
- function Q$1() {
32487
- if (!g) throw new Error("Function called outside component initialization");
32442
+ function Q() {
32443
+ if (!g)
32444
+ throw new Error("Function called outside component initialization");
32488
32445
  return g;
32489
32446
  }
32490
32447
  function W(t) {
32491
- Q$1().$$.on_mount.push(t);
32448
+ Q().$$.on_mount.push(t);
32492
32449
  }
32493
32450
  const h = [], E = [];
32494
- let $$1 = [];
32451
+ let $ = [];
32495
32452
  const j = [], X = /* @__PURE__ */ Promise.resolve();
32496
32453
  let L = !1;
32497
32454
  function Y$1() {
32498
32455
  L || (L = !0, X.then(_));
32499
32456
  }
32500
- function v(t) {
32501
- $$1.push(t);
32457
+ function k(t) {
32458
+ $.push(t);
32502
32459
  }
32503
32460
  const x = /* @__PURE__ */ new Set();
32504
32461
  let a = 0;
@@ -32510,50 +32467,51 @@ function _() {
32510
32467
  try {
32511
32468
  for (; a < h.length; ) {
32512
32469
  const e = h[a];
32513
- a++, m(e), Z$1(e.$$);
32470
+ a++, m(e), Z(e.$$);
32514
32471
  }
32515
32472
  } catch (e) {
32516
32473
  throw h.length = 0, a = 0, e;
32517
32474
  }
32518
- for (m(null), h.length = 0, a = 0; E.length; ) E.pop()();
32519
- for (let e = 0; e < $$1.length; e += 1) {
32520
- const n = $$1[e];
32475
+ for (m(null), h.length = 0, a = 0; E.length; )
32476
+ E.pop()();
32477
+ for (let e = 0; e < $.length; e += 1) {
32478
+ const n = $[e];
32521
32479
  x.has(n) || (x.add(n), n());
32522
32480
  }
32523
- $$1.length = 0;
32481
+ $.length = 0;
32524
32482
  } while (h.length);
32525
32483
  for (; j.length; )
32526
32484
  j.pop()();
32527
32485
  L = !1, x.clear(), m(t);
32528
32486
  }
32529
- function Z$1(t) {
32487
+ function Z(t) {
32530
32488
  if (t.fragment !== null) {
32531
32489
  t.update(), p(t.before_update);
32532
32490
  const e = t.dirty;
32533
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(v);
32491
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
32534
32492
  }
32535
32493
  }
32536
- function tt(t) {
32494
+ function tt$1(t) {
32537
32495
  const e = [], n = [];
32538
- $$1.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), $$1 = e;
32496
+ $.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), $ = e;
32539
32497
  }
32540
- const et = /* @__PURE__ */ new Set();
32498
+ const et$1 = /* @__PURE__ */ new Set();
32541
32499
  function nt(t, e) {
32542
- t && t.i && (et.delete(t), t.i(e));
32500
+ t && t.i && (et$1.delete(t), t.i(e));
32543
32501
  }
32544
- function vt$1(t) {
32502
+ function kt$1(t) {
32545
32503
  return t?.length !== void 0 ? t : Array.from(t);
32546
32504
  }
32547
32505
  function st$1(t, e, n) {
32548
32506
  const { fragment: s, after_update: i } = t.$$;
32549
- s && s.m(e, n), v(() => {
32507
+ s && s.m(e, n), k(() => {
32550
32508
  const r = t.$$.on_mount.map(M).filter(O);
32551
32509
  t.$$.on_destroy ? t.$$.on_destroy.push(...r) : p(r), t.$$.on_mount = [];
32552
- }), i.forEach(v);
32510
+ }), i.forEach(k);
32553
32511
  }
32554
- function it$1(t, e) {
32512
+ function it(t, e) {
32555
32513
  const n = t.$$;
32556
- n.fragment !== null && (tt(n.after_update), p(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
32514
+ n.fragment !== null && (tt$1(n.after_update), p(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
32557
32515
  }
32558
32516
  function rt(t, e) {
32559
32517
  t.$$.dirty[0] === -1 && (h.push(t), Y$1(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
@@ -32647,7 +32605,7 @@ typeof HTMLElement == "function" && (H$1 = class extends HTMLElement {
32647
32605
  * @param {HTMLElement} [anchor]
32648
32606
  */
32649
32607
  m: function(c, u) {
32650
- k(c, r, u);
32608
+ v(c, r, u);
32651
32609
  },
32652
32610
  d: function(c) {
32653
32611
  c && y(r);
@@ -32657,7 +32615,7 @@ typeof HTMLElement == "function" && (H$1 = class extends HTMLElement {
32657
32615
  };
32658
32616
  if (await Promise.resolve(), !this.$$cn || this.$$c)
32659
32617
  return;
32660
- const e = {}, n = K(this);
32618
+ const e = {}, n = K$1(this);
32661
32619
  for (const i of this.$$s)
32662
32620
  i in n && (e[i] = [t(i)]);
32663
32621
  for (const i of this.attributes) {
@@ -32744,7 +32702,7 @@ function b(t, e, n, s) {
32744
32702
  return e;
32745
32703
  }
32746
32704
  }
32747
- function ot$1(t, e, n, s, i, r) {
32705
+ function ot(t, e, n, s, i, r) {
32748
32706
  let o = class extends H$1 {
32749
32707
  constructor() {
32750
32708
  super(t, n, i), this.$$p_d = e;
@@ -32792,7 +32750,7 @@ class lt$1 {
32792
32750
  $$set = void 0;
32793
32751
  /** @returns {void} */
32794
32752
  $destroy() {
32795
- it$1(this, 1), this.$destroy = d;
32753
+ it(this, 1), this.$destroy = d;
32796
32754
  }
32797
32755
  /**
32798
32756
  * @template {Extract<keyof Events, string>} K
@@ -32834,7 +32792,7 @@ function dt$1(t, e) {
32834
32792
  console.error("There was an error while trying to load client styling from URL", s);
32835
32793
  });
32836
32794
  }
32837
- function at$1(t, e, n) {
32795
+ function at(t, e, n) {
32838
32796
  if (window.emMessageBus) {
32839
32797
  const s = document.createElement("style");
32840
32798
  window.emMessageBus.subscribe(e, (i) => {
@@ -32852,7 +32810,7 @@ function $t$1(t) {
32852
32810
  e = w$1("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
32853
32811
  },
32854
32812
  m(n, s) {
32855
- k(n, e, s), t[4](e);
32813
+ v(n, e, s), t[4](e);
32856
32814
  },
32857
32815
  p: d,
32858
32816
  i: d,
@@ -32877,7 +32835,7 @@ function mt$1(t, e, n) {
32877
32835
  t.$$.dirty & /*clientstyling, customStylingContainer*/
32878
32836
  3 && s && o && ft$1(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
32879
32837
  5 && i && o && dt$1(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
32880
- 9 && r && o && at$1(o, `${r}.Style`);
32838
+ 9 && r && o && at(o, `${r}.Style`);
32881
32839
  }, [
32882
32840
  o,
32883
32841
  s,
@@ -32921,29 +32879,29 @@ class R extends lt$1 {
32921
32879
  this.$$set({ mbsource: e }), _();
32922
32880
  }
32923
32881
  }
32924
- ot$1(R, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
32925
- const kt$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32882
+ ot(R, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
32883
+ const vt$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32926
32884
  __proto__: null,
32927
32885
  default: R
32928
32886
  }, Symbol.toStringTag, { value: "Module" }));
32929
32887
 
32930
- const GeneralAnimationLoadingC74Ex5kT = /*#__PURE__*/Object.freeze({
32888
+ const GeneralAnimationLoadingBMZE178n = /*#__PURE__*/Object.freeze({
32931
32889
  __proto__: null,
32932
- A: gt$1,
32933
- B: ft$1,
32934
- C: dt$1,
32935
- D: at$1,
32936
- G: kt$1,
32937
- H: Lt$1,
32890
+ A: wt$1,
32891
+ B: P,
32892
+ C: Et$1,
32893
+ D: xt$1,
32894
+ G: vt$1,
32895
+ H: Lt,
32938
32896
  S: lt$1,
32939
- a: D$1,
32897
+ a: z,
32940
32898
  b: ct$1,
32941
- c: ot$1,
32942
- d: y,
32943
- e: k,
32944
- f: G,
32945
- g: V,
32946
- h: B$1,
32899
+ c: ot,
32900
+ d: V,
32901
+ e: B$1,
32902
+ f: v,
32903
+ g: G,
32904
+ h: y,
32947
32905
  i: O,
32948
32906
  j: _,
32949
32907
  k: I,
@@ -32951,37 +32909,37 @@ const GeneralAnimationLoadingC74Ex5kT = /*#__PURE__*/Object.freeze({
32951
32909
  m: _t$1,
32952
32910
  n: d,
32953
32911
  o: W,
32954
- p: E,
32955
- q: xt$1,
32912
+ p: dt$1,
32913
+ q: gt$1,
32956
32914
  r: p,
32957
- s: z,
32958
- t: Et$1,
32959
- u: P,
32960
- v: vt$1,
32961
- w: bt$1,
32962
- x: wt$1,
32915
+ s: D$1,
32916
+ t: E,
32917
+ u: ft$1,
32918
+ v: at,
32919
+ w: kt$1,
32920
+ x: bt$1,
32963
32921
  y: pt$1,
32964
32922
  z: yt$1
32965
32923
  });
32966
32924
 
32967
- const Y = [];
32968
- function Lr(e, t) {
32925
+ const K = [];
32926
+ function Dr(e, t) {
32969
32927
  return {
32970
- subscribe: we(e, t).subscribe
32928
+ subscribe: Ne(e, t).subscribe
32971
32929
  };
32972
32930
  }
32973
- function we(e, t = d) {
32931
+ function Ne(e, t = d) {
32974
32932
  let r;
32975
32933
  const n = /* @__PURE__ */ new Set();
32976
32934
  function i(s) {
32977
32935
  if (z(e, s) && (e = s, r)) {
32978
- const h = !Y.length;
32936
+ const h = !K.length;
32979
32937
  for (const u of n)
32980
- u[1](), Y.push(u, e);
32938
+ u[1](), K.push(u, e);
32981
32939
  if (h) {
32982
- for (let u = 0; u < Y.length; u += 2)
32983
- Y[u][0](Y[u + 1]);
32984
- Y.length = 0;
32940
+ for (let u = 0; u < K.length; u += 2)
32941
+ K[u][0](K[u + 1]);
32942
+ K.length = 0;
32985
32943
  }
32986
32944
  }
32987
32945
  }
@@ -32996,12 +32954,12 @@ function we(e, t = d) {
32996
32954
  }
32997
32955
  return { set: i, update: o, subscribe: a };
32998
32956
  }
32999
- function ne(e, t, r) {
32957
+ function ie(e, t, r) {
33000
32958
  const n = !Array.isArray(e), i = n ? [e] : e;
33001
32959
  if (!i.every(Boolean))
33002
32960
  throw new Error("derived() expects stores as input, got a falsy value");
33003
32961
  const o = t.length < 2;
33004
- return Lr(r, (a, s) => {
32962
+ return Dr(r, (a, s) => {
33005
32963
  let h = !1;
33006
32964
  const u = [];
33007
32965
  let l = 0, d$1 = d;
@@ -33011,107 +32969,122 @@ function ne(e, t, r) {
33011
32969
  d$1();
33012
32970
  const f = t(n ? u[0] : u, a, s);
33013
32971
  o ? a(f) : d$1 = O(f) ? f : d;
33014
- }, v = i.map(
33015
- (f, p) => D$1(
32972
+ }, b = i.map(
32973
+ (f, g) => D$1(
33016
32974
  f,
33017
- (C) => {
33018
- u[p] = C, l &= ~(1 << p), h && m();
32975
+ (S) => {
32976
+ u[g] = S, l &= ~(1 << g), h && m();
33019
32977
  },
33020
32978
  () => {
33021
- l |= 1 << p;
32979
+ l |= 1 << g;
33022
32980
  }
33023
32981
  )
33024
32982
  );
33025
32983
  return h = !0, m(), function() {
33026
- p(v), d$1(), h = !1;
32984
+ p(b), d$1(), h = !1;
33027
32985
  };
33028
32986
  });
33029
32987
  }
33030
- function Rr(e) {
32988
+ function qr(e) {
33031
32989
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
33032
32990
  }
33033
- var Ur = function(t) {
33034
- return Dr(t) && !qr(t);
32991
+ var Gr = function(t) {
32992
+ return Fr(t) && !Vr(t);
33035
32993
  };
33036
- function Dr(e) {
32994
+ function Fr(e) {
33037
32995
  return !!e && typeof e == "object";
33038
32996
  }
33039
- function qr(e) {
32997
+ function Vr(e) {
33040
32998
  var t = Object.prototype.toString.call(e);
33041
- return t === "[object RegExp]" || t === "[object Date]" || Vr(e);
32999
+ return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
33042
33000
  }
33043
- var Gr = typeof Symbol == "function" && Symbol.for, Fr = Gr ? Symbol.for("react.element") : 60103;
33044
- function Vr(e) {
33045
- return e.$$typeof === Fr;
33001
+ var Xr = typeof Symbol == "function" && Symbol.for, Wr = Xr ? Symbol.for("react.element") : 60103;
33002
+ function Zr(e) {
33003
+ return e.$$typeof === Wr;
33046
33004
  }
33047
- function Xr(e) {
33005
+ function Jr(e) {
33048
33006
  return Array.isArray(e) ? [] : {};
33049
33007
  }
33050
- function de(e, t) {
33051
- return t.clone !== !1 && t.isMergeableObject(e) ? $(Xr(e), e, t) : e;
33008
+ function me(e, t) {
33009
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Jr(e), e, t) : e;
33052
33010
  }
33053
- function Wr(e, t, r) {
33011
+ function Qr(e, t, r) {
33054
33012
  return e.concat(t).map(function(n) {
33055
- return de(n, r);
33013
+ return me(n, r);
33056
33014
  });
33057
33015
  }
33058
- function Zr(e, t) {
33016
+ function Yr(e, t) {
33059
33017
  if (!t.customMerge)
33060
- return $;
33018
+ return ee;
33061
33019
  var r = t.customMerge(e);
33062
- return typeof r == "function" ? r : $;
33020
+ return typeof r == "function" ? r : ee;
33063
33021
  }
33064
- function Jr(e) {
33022
+ function Kr(e) {
33065
33023
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
33066
33024
  return Object.propertyIsEnumerable.call(e, t);
33067
33025
  }) : [];
33068
33026
  }
33069
- function it(e) {
33070
- return Object.keys(e).concat(Jr(e));
33027
+ function st(e) {
33028
+ return Object.keys(e).concat(Kr(e));
33071
33029
  }
33072
- function It(e, t) {
33030
+ function Rt(e, t) {
33073
33031
  try {
33074
33032
  return t in e;
33075
33033
  } catch {
33076
33034
  return !1;
33077
33035
  }
33078
33036
  }
33079
- function Qr(e, t) {
33080
- return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
33037
+ function $r(e, t) {
33038
+ return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
33081
33039
  }
33082
- function Yr(e, t, r) {
33040
+ function en(e, t, r) {
33083
33041
  var n = {};
33084
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
33085
- n[i] = de(e[i], r);
33086
- }), it(t).forEach(function(i) {
33087
- Qr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = Zr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
33042
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
33043
+ n[i] = me(e[i], r);
33044
+ }), st(t).forEach(function(i) {
33045
+ $r(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
33088
33046
  }), n;
33089
33047
  }
33090
- function $(e, t, r) {
33091
- r = r || {}, r.arrayMerge = r.arrayMerge || Wr, r.isMergeableObject = r.isMergeableObject || Ur, r.cloneUnlessOtherwiseSpecified = de;
33048
+ function ee(e, t, r) {
33049
+ r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Gr, r.cloneUnlessOtherwiseSpecified = me;
33092
33050
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
33093
- return o ? n ? r.arrayMerge(e, t, r) : Yr(e, t, r) : de(t, r);
33051
+ return o ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : me(t, r);
33094
33052
  }
33095
- $.all = function(t, r) {
33053
+ ee.all = function(t, r) {
33096
33054
  if (!Array.isArray(t))
33097
33055
  throw new Error("first argument should be an array");
33098
33056
  return t.reduce(function(n, i) {
33099
- return $(n, i, r);
33057
+ return ee(n, i, r);
33100
33058
  }, {});
33101
33059
  };
33102
- var Kr = $, $r = Kr;
33103
- const en = /* @__PURE__ */ Rr($r);
33104
- var Ue = function(e, t) {
33105
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
33060
+ var tn = ee, rn = tn;
33061
+ const nn = /* @__PURE__ */ qr(rn);
33062
+ /*! *****************************************************************************
33063
+ Copyright (c) Microsoft Corporation.
33064
+
33065
+ Permission to use, copy, modify, and/or distribute this software for any
33066
+ purpose with or without fee is hereby granted.
33067
+
33068
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
33069
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33070
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
33071
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33072
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33073
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33074
+ PERFORMANCE OF THIS SOFTWARE.
33075
+ ***************************************************************************** */
33076
+ var De = function(e, t) {
33077
+ return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
33106
33078
  r.__proto__ = n;
33107
33079
  } || function(r, n) {
33108
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
33109
- }, Ue(e, t);
33080
+ for (var i in n)
33081
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
33082
+ }, De(e, t);
33110
33083
  };
33111
- function Ne(e, t) {
33084
+ function Ae(e, t) {
33112
33085
  if (typeof t != "function" && t !== null)
33113
33086
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
33114
- Ue(e, t);
33087
+ De(e, t);
33115
33088
  function r() {
33116
33089
  this.constructor = e;
33117
33090
  }
@@ -33121,72 +33094,77 @@ var H = function() {
33121
33094
  return H = Object.assign || function(t) {
33122
33095
  for (var r, n = 1, i = arguments.length; n < i; n++) {
33123
33096
  r = arguments[n];
33124
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
33097
+ for (var o in r)
33098
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
33125
33099
  }
33126
33100
  return t;
33127
33101
  }, H.apply(this, arguments);
33128
33102
  };
33129
- function tn(e, t) {
33103
+ function on(e, t) {
33130
33104
  var r = {};
33131
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
33105
+ for (var n in e)
33106
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
33132
33107
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
33133
33108
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
33134
33109
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
33135
33110
  return r;
33136
33111
  }
33137
- function ze(e, t, r) {
33138
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
33139
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
33140
- return e.concat(o || Array.prototype.slice.call(t));
33112
+ function Oe(e, t, r) {
33113
+ if (arguments.length === 2)
33114
+ for (var n = 0, i = t.length, o; n < i; n++)
33115
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
33116
+ return e.concat(o || t);
33141
33117
  }
33142
- function Oe(e, t) {
33143
- var r = t && t.cache ? t.cache : cn, n = t && t.serializer ? t.serializer : sn, i = t && t.strategy ? t.strategy : on;
33118
+ function Ie(e, t) {
33119
+ var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : sn;
33144
33120
  return i(e, {
33145
33121
  cache: r,
33146
33122
  serializer: n
33147
33123
  });
33148
33124
  }
33149
- function rn(e) {
33125
+ function an(e) {
33150
33126
  return e == null || typeof e == "number" || typeof e == "boolean";
33151
33127
  }
33152
- function nn(e, t, r, n) {
33153
- var i = rn(n) ? n : r(n), o = t.get(i);
33128
+ function Ut(e, t, r, n) {
33129
+ var i = an(n) ? n : r(n), o = t.get(i);
33154
33130
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
33155
33131
  }
33156
- function jt(e, t, r) {
33132
+ function Dt(e, t, r) {
33157
33133
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
33158
33134
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
33159
33135
  }
33160
- function Lt(e, t, r, n, i) {
33136
+ function Ke(e, t, r, n, i) {
33161
33137
  return r.bind(t, e, n, i);
33162
33138
  }
33163
- function on(e, t) {
33164
- var r = e.length === 1 ? nn : jt;
33165
- return Lt(e, this, r, t.cache.create(), t.serializer);
33139
+ function sn(e, t) {
33140
+ var r = e.length === 1 ? Ut : Dt;
33141
+ return Ke(e, this, r, t.cache.create(), t.serializer);
33166
33142
  }
33167
- function an(e, t) {
33168
- return Lt(e, this, jt, t.cache.create(), t.serializer);
33143
+ function ln(e, t) {
33144
+ return Ke(e, this, Dt, t.cache.create(), t.serializer);
33169
33145
  }
33170
- var sn = function() {
33146
+ function cn(e, t) {
33147
+ return Ke(e, this, Ut, t.cache.create(), t.serializer);
33148
+ }
33149
+ var un = function() {
33171
33150
  return JSON.stringify(arguments);
33172
- }, ln = (
33173
- /** @class */
33174
- function() {
33175
- function e() {
33176
- this.cache = /* @__PURE__ */ Object.create(null);
33177
- }
33178
- return e.prototype.get = function(t) {
33179
- return this.cache[t];
33180
- }, e.prototype.set = function(t, r) {
33181
- this.cache[t] = r;
33182
- }, e;
33183
- }()
33184
- ), cn = {
33151
+ };
33152
+ function $e() {
33153
+ this.cache = /* @__PURE__ */ Object.create(null);
33154
+ }
33155
+ $e.prototype.get = function(e) {
33156
+ return this.cache[e];
33157
+ };
33158
+ $e.prototype.set = function(e, t) {
33159
+ this.cache[e] = t;
33160
+ };
33161
+ var hn = {
33185
33162
  create: function() {
33186
- return new ln();
33163
+ return new $e();
33187
33164
  }
33188
- }, Ie = {
33189
- variadic: an
33165
+ }, je = {
33166
+ variadic: ln,
33167
+ monadic: cn
33190
33168
  }, w;
33191
33169
  (function(e) {
33192
33170
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
@@ -33195,47 +33173,47 @@ var B;
33195
33173
  (function(e) {
33196
33174
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
33197
33175
  })(B || (B = {}));
33198
- var ee;
33176
+ var te;
33199
33177
  (function(e) {
33200
33178
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
33201
- })(ee || (ee = {}));
33202
- function ot(e) {
33179
+ })(te || (te = {}));
33180
+ function lt(e) {
33203
33181
  return e.type === B.literal;
33204
33182
  }
33205
- function un(e) {
33183
+ function dn(e) {
33206
33184
  return e.type === B.argument;
33207
33185
  }
33208
- function Rt(e) {
33186
+ function qt(e) {
33209
33187
  return e.type === B.number;
33210
33188
  }
33211
- function Ut(e) {
33189
+ function Gt(e) {
33212
33190
  return e.type === B.date;
33213
33191
  }
33214
- function Dt(e) {
33192
+ function Ft(e) {
33215
33193
  return e.type === B.time;
33216
33194
  }
33217
- function qt(e) {
33195
+ function Vt(e) {
33218
33196
  return e.type === B.select;
33219
33197
  }
33220
- function Gt(e) {
33198
+ function Xt(e) {
33221
33199
  return e.type === B.plural;
33222
33200
  }
33223
- function hn(e) {
33201
+ function mn(e) {
33224
33202
  return e.type === B.pound;
33225
33203
  }
33226
- function Ft(e) {
33204
+ function Wt(e) {
33227
33205
  return e.type === B.tag;
33228
33206
  }
33229
- function Vt(e) {
33230
- return !!(e && typeof e == "object" && e.type === ee.number);
33207
+ function Zt(e) {
33208
+ return !!(e && typeof e == "object" && e.type === te.number);
33231
33209
  }
33232
- function De(e) {
33233
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
33210
+ function qe(e) {
33211
+ return !!(e && typeof e == "object" && e.type === te.dateTime);
33234
33212
  }
33235
- var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
33236
- function mn(e) {
33213
+ var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
33214
+ function pn(e) {
33237
33215
  var t = {};
33238
- return e.replace(dn, function(r) {
33216
+ return e.replace(gn, function(r) {
33239
33217
  var n = r.length;
33240
33218
  switch (r[0]) {
33241
33219
  case "G":
@@ -33324,11 +33302,11 @@ function mn(e) {
33324
33302
  return "";
33325
33303
  }), t;
33326
33304
  }
33327
- var pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
33328
- function gn(e) {
33305
+ var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
33306
+ function _n(e) {
33329
33307
  if (e.length === 0)
33330
33308
  throw new Error("Number skeleton cannot be empty");
33331
- for (var t = e.split(pn).filter(function(m) {
33309
+ for (var t = e.split(fn).filter(function(m) {
33332
33310
  return m.length > 0;
33333
33311
  }), r = [], n = 0, i = t; n < i.length; n++) {
33334
33312
  var o = i[n], a = o.split("/");
@@ -33343,17 +33321,17 @@ function gn(e) {
33343
33321
  }
33344
33322
  return r;
33345
33323
  }
33346
- function fn(e) {
33324
+ function bn(e) {
33347
33325
  return e.replace(/^(.*?)-/, "");
33348
33326
  }
33349
- var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
33350
- function st(e) {
33327
+ var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
33328
+ function ut(e) {
33351
33329
  var t = {};
33352
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
33330
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
33353
33331
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
33354
33332
  }), t;
33355
33333
  }
33356
- function Jt(e) {
33334
+ function Kt(e) {
33357
33335
  switch (e) {
33358
33336
  case "sign-auto":
33359
33337
  return {
@@ -33393,7 +33371,7 @@ function Jt(e) {
33393
33371
  };
33394
33372
  }
33395
33373
  }
33396
- function bn(e) {
33374
+ function yn(e) {
33397
33375
  var t;
33398
33376
  if (e[0] === "E" && e[1] === "E" ? (t = {
33399
33377
  notation: "engineering"
@@ -33401,17 +33379,17 @@ function bn(e) {
33401
33379
  notation: "scientific"
33402
33380
  }, e = e.slice(1)), t) {
33403
33381
  var r = e.slice(0, 2);
33404
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
33382
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
33405
33383
  throw new Error("Malformed concise eng/scientific notation");
33406
33384
  t.minimumIntegerDigits = e.length;
33407
33385
  }
33408
33386
  return t;
33409
33387
  }
33410
- function lt(e) {
33411
- var t = {}, r = Jt(e);
33388
+ function ht(e) {
33389
+ var t = {}, r = Kt(e);
33412
33390
  return r || t;
33413
33391
  }
33414
- function vn(e) {
33392
+ function En(e) {
33415
33393
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
33416
33394
  var i = n[r];
33417
33395
  switch (i.stem) {
@@ -33435,7 +33413,7 @@ function vn(e) {
33435
33413
  continue;
33436
33414
  case "measure-unit":
33437
33415
  case "unit":
33438
- t.style = "unit", t.unit = fn(i.options[0]);
33416
+ t.style = "unit", t.unit = bn(i.options[0]);
33439
33417
  continue;
33440
33418
  case "compact-short":
33441
33419
  case "K":
@@ -33447,12 +33425,12 @@ function vn(e) {
33447
33425
  continue;
33448
33426
  case "scientific":
33449
33427
  t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
33450
- return H(H({}, h), lt(u));
33428
+ return H(H({}, h), ht(u));
33451
33429
  }, {}));
33452
33430
  continue;
33453
33431
  case "engineering":
33454
33432
  t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
33455
- return H(H({}, h), lt(u));
33433
+ return H(H({}, h), ht(u));
33456
33434
  }, {}));
33457
33435
  continue;
33458
33436
  case "notation-simple":
@@ -33497,45 +33475,45 @@ function vn(e) {
33497
33475
  case "integer-width":
33498
33476
  if (i.options.length > 1)
33499
33477
  throw new RangeError("integer-width stems only accept a single optional option");
33500
- i.options[0].replace(_n, function(h, u, l, d, m, v) {
33478
+ i.options[0].replace(vn, function(h, u, l, d, m, b) {
33501
33479
  if (u)
33502
33480
  t.minimumIntegerDigits = l.length;
33503
33481
  else {
33504
33482
  if (d && m)
33505
33483
  throw new Error("We currently do not support maximum integer digits");
33506
- if (v)
33484
+ if (b)
33507
33485
  throw new Error("We currently do not support exact integer digits");
33508
33486
  }
33509
33487
  return "";
33510
33488
  });
33511
33489
  continue;
33512
33490
  }
33513
- if (Zt.test(i.stem)) {
33491
+ if (Yt.test(i.stem)) {
33514
33492
  t.minimumIntegerDigits = i.stem.length;
33515
33493
  continue;
33516
33494
  }
33517
- if (at.test(i.stem)) {
33495
+ if (ct.test(i.stem)) {
33518
33496
  if (i.options.length > 1)
33519
33497
  throw new RangeError("Fraction-precision stems only accept a single optional option");
33520
- i.stem.replace(at, function(h, u, l, d, m, v) {
33521
- return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && v ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + v.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
33498
+ i.stem.replace(ct, function(h, u, l, d, m, b) {
33499
+ return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
33522
33500
  });
33523
33501
  var o = i.options[0];
33524
- o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), st(o)));
33502
+ o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), ut(o)));
33525
33503
  continue;
33526
33504
  }
33527
- if (Wt.test(i.stem)) {
33528
- t = H(H({}, t), st(i.stem));
33505
+ if (Qt.test(i.stem)) {
33506
+ t = H(H({}, t), ut(i.stem));
33529
33507
  continue;
33530
33508
  }
33531
- var a = Jt(i.stem);
33509
+ var a = Kt(i.stem);
33532
33510
  a && (t = H(H({}, t), a));
33533
- var s = bn(i.stem);
33511
+ var s = yn(i.stem);
33534
33512
  s && (t = H(H({}, t), s));
33535
33513
  }
33536
33514
  return t;
33537
33515
  }
33538
- var Ce = {
33516
+ var Se = {
33539
33517
  "001": [
33540
33518
  "H",
33541
33519
  "h"
@@ -34950,22 +34928,23 @@ var Ce = {
34950
34928
  "h"
34951
34929
  ]
34952
34930
  };
34953
- function yn(e, t) {
34931
+ function kn(e, t) {
34954
34932
  for (var r = "", n = 0; n < e.length; n++) {
34955
34933
  var i = e.charAt(n);
34956
34934
  if (i === "j") {
34957
34935
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
34958
34936
  o++, n++;
34959
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = En(t);
34937
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Cn(t);
34960
34938
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
34961
34939
  r += h;
34962
34940
  for (; a-- > 0; )
34963
34941
  r = u + r;
34964
- } else i === "J" ? r += "H" : r += i;
34942
+ } else
34943
+ i === "J" ? r += "H" : r += i;
34965
34944
  }
34966
34945
  return r;
34967
34946
  }
34968
- function En(e) {
34947
+ function Cn(e) {
34969
34948
  var t = e.hourCycle;
34970
34949
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
34971
34950
  e.hourCycles && // @ts-ignore
@@ -34984,23 +34963,23 @@ function En(e) {
34984
34963
  }
34985
34964
  var r = e.language, n;
34986
34965
  r !== "root" && (n = e.maximize().region);
34987
- var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
34966
+ var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
34988
34967
  return i[0];
34989
34968
  }
34990
- var je, kn = new RegExp("^".concat(Xt.source, "*")), Cn = new RegExp("".concat(Xt.source, "*$"));
34969
+ var Le, Sn = new RegExp("^".concat(Jt.source, "*")), xn = new RegExp("".concat(Jt.source, "*$"));
34991
34970
  function N(e, t) {
34992
34971
  return { start: e, end: t };
34993
34972
  }
34994
- var Sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, Tn = !!Object.fromEntries, Mn = !!String.prototype.codePointAt, wn = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, An = !!Number.isSafeInteger, Hn = An ? Number.isSafeInteger : function(e) {
34973
+ var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, wn = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, Bn = Pn ? Number.isSafeInteger : function(e) {
34995
34974
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
34996
- }, qe = !0;
34975
+ }, Ge = !0;
34997
34976
  try {
34998
- var Pn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
34999
- qe = ((je = Pn.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
34977
+ var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
34978
+ Ge = ((Le = zn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
35000
34979
  } catch {
35001
- qe = !1;
34980
+ Ge = !1;
35002
34981
  }
35003
- var ct = Sn ? (
34982
+ var dt = Mn ? (
35004
34983
  // Native
35005
34984
  function(t, r, n) {
35006
34985
  return t.startsWith(r, n);
@@ -35010,7 +34989,7 @@ var ct = Sn ? (
35010
34989
  function(t, r, n) {
35011
34990
  return t.slice(n, n + r.length) === r;
35012
34991
  }
35013
- ), Ge = xn ? String.fromCodePoint : (
34992
+ ), Fe = Tn ? String.fromCodePoint : (
35014
34993
  // IE11
35015
34994
  function() {
35016
34995
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -35022,9 +35001,9 @@ var ct = Sn ? (
35022
35001
  }
35023
35002
  return n;
35024
35003
  }
35025
- ), ut = (
35004
+ ), mt = (
35026
35005
  // native
35027
- Tn ? Object.fromEntries : (
35006
+ wn ? Object.fromEntries : (
35028
35007
  // Ponyfill
35029
35008
  function(t) {
35030
35009
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -35034,7 +35013,7 @@ var ct = Sn ? (
35034
35013
  return r;
35035
35014
  }
35036
35015
  )
35037
- ), Qt = Mn ? (
35016
+ ), $t = Nn ? (
35038
35017
  // Native
35039
35018
  function(t, r) {
35040
35019
  return t.codePointAt(r);
@@ -35048,7 +35027,7 @@ var ct = Sn ? (
35048
35027
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
35049
35028
  }
35050
35029
  }
35051
- ), Bn = wn ? (
35030
+ ), On = An ? (
35052
35031
  // Native
35053
35032
  function(t) {
35054
35033
  return t.trimStart();
@@ -35056,9 +35035,9 @@ var ct = Sn ? (
35056
35035
  ) : (
35057
35036
  // Ponyfill
35058
35037
  function(t) {
35059
- return t.replace(kn, "");
35038
+ return t.replace(Sn, "");
35060
35039
  }
35061
- ), zn = Nn ? (
35040
+ ), In = Hn ? (
35062
35041
  // Native
35063
35042
  function(t) {
35064
35043
  return t.trimEnd();
@@ -35066,32 +35045,32 @@ var ct = Sn ? (
35066
35045
  ) : (
35067
35046
  // Ponyfill
35068
35047
  function(t) {
35069
- return t.replace(Cn, "");
35048
+ return t.replace(xn, "");
35070
35049
  }
35071
35050
  );
35072
- function Yt(e, t) {
35051
+ function er(e, t) {
35073
35052
  return new RegExp(e, t);
35074
35053
  }
35075
- var Fe;
35076
- if (qe) {
35077
- var ht = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
35078
- Fe = function(t, r) {
35054
+ var Ve;
35055
+ if (Ge) {
35056
+ var gt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
35057
+ Ve = function(t, r) {
35079
35058
  var n;
35080
- ht.lastIndex = r;
35081
- var i = ht.exec(t);
35059
+ gt.lastIndex = r;
35060
+ var i = gt.exec(t);
35082
35061
  return (n = i[1]) !== null && n !== void 0 ? n : "";
35083
35062
  };
35084
35063
  } else
35085
- Fe = function(t, r) {
35064
+ Ve = function(t, r) {
35086
35065
  for (var n = []; ; ) {
35087
- var i = Qt(t, r);
35088
- if (i === void 0 || Kt(i) || Ln(i))
35066
+ var i = $t(t, r);
35067
+ if (i === void 0 || tr(i) || Un(i))
35089
35068
  break;
35090
35069
  n.push(i), r += i >= 65536 ? 2 : 1;
35091
35070
  }
35092
- return Ge.apply(void 0, n);
35071
+ return Fe.apply(void 0, n);
35093
35072
  };
35094
- var On = (
35073
+ var jn = (
35095
35074
  /** @class */
35096
35075
  function() {
35097
35076
  function e(t, r) {
@@ -35122,7 +35101,7 @@ var On = (
35122
35101
  if (n)
35123
35102
  break;
35124
35103
  return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
35125
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
35104
+ } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
35126
35105
  var a = this.parseTag(t, r);
35127
35106
  if (a.err)
35128
35107
  return a;
@@ -35155,7 +35134,7 @@ var On = (
35155
35134
  return o;
35156
35135
  var a = o.val, s = this.clonePosition();
35157
35136
  if (this.bumpIf("</")) {
35158
- if (this.isEOF() || !Ve(this.char()))
35137
+ if (this.isEOF() || !Xe(this.char()))
35159
35138
  return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
35160
35139
  var h = this.clonePosition(), u = this.parseTagName();
35161
35140
  return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -35173,7 +35152,7 @@ var On = (
35173
35152
  return this.error(w.INVALID_TAG, N(n, this.clonePosition()));
35174
35153
  }, e.prototype.parseTagName = function() {
35175
35154
  var t = this.offset();
35176
- for (this.bump(); !this.isEOF() && jn(this.char()); )
35155
+ for (this.bump(); !this.isEOF() && Rn(this.char()); )
35177
35156
  this.bump();
35178
35157
  return this.message.slice(t, this.offset());
35179
35158
  }, e.prototype.parseLiteral = function(t, r) {
@@ -35202,7 +35181,7 @@ var On = (
35202
35181
  };
35203
35182
  }, e.prototype.tryParseLeftAngleBracket = function() {
35204
35183
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
35205
- !In(this.peek() || 0)) ? (this.bump(), "<") : null;
35184
+ !Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
35206
35185
  }, e.prototype.tryParseQuote = function(t) {
35207
35186
  if (this.isEOF() || this.char() !== 39)
35208
35187
  return null;
@@ -35236,12 +35215,12 @@ var On = (
35236
35215
  r.push(n);
35237
35216
  this.bump();
35238
35217
  }
35239
- return Ge.apply(void 0, r);
35218
+ return Fe.apply(void 0, r);
35240
35219
  }, e.prototype.tryParseUnquoted = function(t, r) {
35241
35220
  if (this.isEOF())
35242
35221
  return null;
35243
35222
  var n = this.char();
35244
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
35223
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
35245
35224
  }, e.prototype.parseArgument = function(t, r) {
35246
35225
  var n = this.clonePosition();
35247
35226
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -35270,7 +35249,7 @@ var On = (
35270
35249
  return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
35271
35250
  }
35272
35251
  }, e.prototype.parseIdentifierIfPossible = function() {
35273
- var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
35252
+ var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
35274
35253
  this.bumpTo(i);
35275
35254
  var o = this.clonePosition(), a = N(t, o);
35276
35255
  return { value: n, location: a };
@@ -35289,37 +35268,37 @@ var On = (
35289
35268
  var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
35290
35269
  if (d.err)
35291
35270
  return d;
35292
- var m = zn(d.val);
35271
+ var m = In(d.val);
35293
35272
  if (m.length === 0)
35294
35273
  return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
35295
- var v = N(l, this.clonePosition());
35296
- u = { style: m, styleLocation: v };
35274
+ var b = N(l, this.clonePosition());
35275
+ u = { style: m, styleLocation: b };
35297
35276
  }
35298
35277
  var f = this.tryParseArgumentClose(i);
35299
35278
  if (f.err)
35300
35279
  return f;
35301
- var p = N(i, this.clonePosition());
35302
- if (u && ct(u?.style, "::", 0)) {
35303
- var C = Bn(u.style.slice(2));
35280
+ var g = N(i, this.clonePosition());
35281
+ if (u && dt(u?.style, "::", 0)) {
35282
+ var S = On(u.style.slice(2));
35304
35283
  if (s === "number") {
35305
- var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
35284
+ var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
35306
35285
  return d.err ? d : {
35307
- val: { type: B.number, value: n, location: p, style: d.val },
35286
+ val: { type: B.number, value: n, location: g, style: d.val },
35308
35287
  err: null
35309
35288
  };
35310
35289
  } else {
35311
- if (C.length === 0)
35312
- return this.error(w.EXPECT_DATE_TIME_SKELETON, p);
35313
- var _ = C;
35314
- this.locale && (_ = yn(C, this.locale));
35290
+ if (S.length === 0)
35291
+ return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
35292
+ var _ = S;
35293
+ this.locale && (_ = kn(S, this.locale));
35315
35294
  var m = {
35316
- type: ee.dateTime,
35295
+ type: te.dateTime,
35317
35296
  pattern: _,
35318
35297
  location: u.styleLocation,
35319
- parsedOptions: this.shouldParseSkeletons ? mn(_) : {}
35320
- }, b = s === "date" ? B.date : B.time;
35298
+ parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
35299
+ }, v = s === "date" ? B.date : B.time;
35321
35300
  return {
35322
- val: { type: b, value: n, location: p, style: m },
35301
+ val: { type: v, value: n, location: g, style: m },
35323
35302
  err: null
35324
35303
  };
35325
35304
  }
@@ -35328,7 +35307,7 @@ var On = (
35328
35307
  val: {
35329
35308
  type: s === "number" ? B.number : s === "date" ? B.date : B.time,
35330
35309
  value: n,
35331
- location: p,
35310
+ location: g,
35332
35311
  style: (o = u?.style) !== null && o !== void 0 ? o : null
35333
35312
  },
35334
35313
  err: null
@@ -35337,11 +35316,11 @@ var On = (
35337
35316
  case "plural":
35338
35317
  case "selectordinal":
35339
35318
  case "select": {
35340
- var x = this.clonePosition();
35319
+ var C = this.clonePosition();
35341
35320
  if (this.bumpSpace(), !this.bumpIf(","))
35342
- return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(x, H({}, x)));
35321
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, H({}, C)));
35343
35322
  this.bumpSpace();
35344
- var P = this.parseIdentifierIfPossible(), E = 0;
35323
+ var P = this.parseIdentifierIfPossible(), k = 0;
35345
35324
  if (s !== "select" && P.value === "offset") {
35346
35325
  if (!this.bumpIf(":"))
35347
35326
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
@@ -35349,7 +35328,7 @@ var On = (
35349
35328
  var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
35350
35329
  if (d.err)
35351
35330
  return d;
35352
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), E = d.val;
35331
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), k = d.val;
35353
35332
  }
35354
35333
  var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
35355
35334
  if (z.err)
@@ -35357,23 +35336,23 @@ var On = (
35357
35336
  var f = this.tryParseArgumentClose(i);
35358
35337
  if (f.err)
35359
35338
  return f;
35360
- var O = N(i, this.clonePosition());
35339
+ var W = N(i, this.clonePosition());
35361
35340
  return s === "select" ? {
35362
35341
  val: {
35363
35342
  type: B.select,
35364
35343
  value: n,
35365
- options: ut(z.val),
35366
- location: O
35344
+ options: mt(z.val),
35345
+ location: W
35367
35346
  },
35368
35347
  err: null
35369
35348
  } : {
35370
35349
  val: {
35371
35350
  type: B.plural,
35372
35351
  value: n,
35373
- options: ut(z.val),
35374
- offset: E,
35352
+ options: mt(z.val),
35353
+ offset: k,
35375
35354
  pluralType: s === "plural" ? "cardinal" : "ordinal",
35376
- location: O
35355
+ location: W
35377
35356
  },
35378
35357
  err: null
35379
35358
  };
@@ -35421,16 +35400,16 @@ var On = (
35421
35400
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
35422
35401
  var n = [];
35423
35402
  try {
35424
- n = gn(t);
35403
+ n = _n(t);
35425
35404
  } catch {
35426
35405
  return this.error(w.INVALID_NUMBER_SKELETON, r);
35427
35406
  }
35428
35407
  return {
35429
35408
  val: {
35430
- type: ee.number,
35409
+ type: te.number,
35431
35410
  tokens: n,
35432
35411
  location: r,
35433
- parsedOptions: this.shouldParseSkeletons ? vn(n) : {}
35412
+ parsedOptions: this.shouldParseSkeletons ? En(n) : {}
35434
35413
  },
35435
35414
  err: null
35436
35415
  };
@@ -35449,20 +35428,20 @@ var On = (
35449
35428
  if (h.has(u))
35450
35429
  return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
35451
35430
  u === "other" && (a = !0), this.bumpSpace();
35452
- var v = this.clonePosition();
35431
+ var b = this.clonePosition();
35453
35432
  if (!this.bumpIf("{"))
35454
35433
  return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
35455
35434
  var f = this.parseMessage(t + 1, r, n);
35456
35435
  if (f.err)
35457
35436
  return f;
35458
- var p = this.tryParseArgumentClose(v);
35459
- if (p.err)
35460
- return p;
35437
+ var g = this.tryParseArgumentClose(b);
35438
+ if (g.err)
35439
+ return g;
35461
35440
  s.push([
35462
35441
  u,
35463
35442
  {
35464
35443
  value: f.val,
35465
- location: N(v, this.clonePosition())
35444
+ location: N(b, this.clonePosition())
35466
35445
  }
35467
35446
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
35468
35447
  }
@@ -35478,7 +35457,7 @@ var On = (
35478
35457
  break;
35479
35458
  }
35480
35459
  var h = N(i, this.clonePosition());
35481
- return o ? (a *= n, Hn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
35460
+ return o ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
35482
35461
  }, e.prototype.offset = function() {
35483
35462
  return this.position.offset;
35484
35463
  }, e.prototype.isEOF = function() {
@@ -35493,7 +35472,7 @@ var On = (
35493
35472
  var t = this.position.offset;
35494
35473
  if (t >= this.message.length)
35495
35474
  throw Error("out of bound");
35496
- var r = Qt(this.message, t);
35475
+ var r = $t(this.message, t);
35497
35476
  if (r === void 0)
35498
35477
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
35499
35478
  return r;
@@ -35512,7 +35491,7 @@ var On = (
35512
35491
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
35513
35492
  }
35514
35493
  }, e.prototype.bumpIf = function(t) {
35515
- if (ct(this.message, t, this.offset())) {
35494
+ if (dt(this.message, t, this.offset())) {
35516
35495
  for (var r = 0; r < t.length; r++)
35517
35496
  this.bump();
35518
35497
  return !0;
@@ -35534,7 +35513,7 @@ var On = (
35534
35513
  break;
35535
35514
  }
35536
35515
  }, e.prototype.bumpSpace = function() {
35537
- for (; !this.isEOF() && Kt(this.char()); )
35516
+ for (; !this.isEOF() && tr(this.char()); )
35538
35517
  this.bump();
35539
35518
  }, e.prototype.peek = function() {
35540
35519
  if (this.isEOF())
@@ -35544,46 +35523,47 @@ var On = (
35544
35523
  }, e;
35545
35524
  }()
35546
35525
  );
35547
- function Ve(e) {
35526
+ function Xe(e) {
35548
35527
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
35549
35528
  }
35550
- function In(e) {
35551
- return Ve(e) || e === 47;
35529
+ function Ln(e) {
35530
+ return Xe(e) || e === 47;
35552
35531
  }
35553
- function jn(e) {
35532
+ function Rn(e) {
35554
35533
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
35555
35534
  }
35556
- function Kt(e) {
35535
+ function tr(e) {
35557
35536
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
35558
35537
  }
35559
- function Ln(e) {
35538
+ function Un(e) {
35560
35539
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
35561
35540
  }
35562
- function Xe(e) {
35541
+ function We(e) {
35563
35542
  e.forEach(function(t) {
35564
- if (delete t.location, qt(t) || Gt(t))
35543
+ if (delete t.location, Vt(t) || Xt(t))
35565
35544
  for (var r in t.options)
35566
- delete t.options[r].location, Xe(t.options[r].value);
35567
- else Rt(t) && Vt(t.style) || (Ut(t) || Dt(t)) && De(t.style) ? delete t.style.location : Ft(t) && Xe(t.children);
35545
+ delete t.options[r].location, We(t.options[r].value);
35546
+ else
35547
+ qt(t) && Zt(t.style) || (Gt(t) || Ft(t)) && qe(t.style) ? delete t.style.location : Wt(t) && We(t.children);
35568
35548
  });
35569
35549
  }
35570
- function Rn(e, t) {
35550
+ function Dn(e, t) {
35571
35551
  t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
35572
- var r = new On(e, t).parse();
35552
+ var r = new jn(e, t).parse();
35573
35553
  if (r.err) {
35574
35554
  var n = SyntaxError(w[r.err.kind]);
35575
35555
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
35576
35556
  }
35577
- return t?.captureLocation || Xe(r.val), r.val;
35557
+ return t?.captureLocation || We(r.val), r.val;
35578
35558
  }
35579
- var te;
35559
+ var re;
35580
35560
  (function(e) {
35581
35561
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
35582
- })(te || (te = {}));
35583
- var Ae = (
35562
+ })(re || (re = {}));
35563
+ var He = (
35584
35564
  /** @class */
35585
35565
  function(e) {
35586
- Ne(t, e);
35566
+ Ae(t, e);
35587
35567
  function t(r, n, i) {
35588
35568
  var o = e.call(this, r) || this;
35589
35569
  return o.code = n, o.originalMessage = i, o;
@@ -35592,48 +35572,48 @@ var Ae = (
35592
35572
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
35593
35573
  }, t;
35594
35574
  }(Error)
35595
- ), dt = (
35575
+ ), pt = (
35596
35576
  /** @class */
35597
35577
  function(e) {
35598
- Ne(t, e);
35578
+ Ae(t, e);
35599
35579
  function t(r, n, i, o) {
35600
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
35580
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
35601
35581
  }
35602
35582
  return t;
35603
- }(Ae)
35604
- ), Un = (
35583
+ }(He)
35584
+ ), qn = (
35605
35585
  /** @class */
35606
35586
  function(e) {
35607
- Ne(t, e);
35587
+ Ae(t, e);
35608
35588
  function t(r, n, i) {
35609
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
35589
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
35610
35590
  }
35611
35591
  return t;
35612
- }(Ae)
35613
- ), Dn = (
35592
+ }(He)
35593
+ ), Gn = (
35614
35594
  /** @class */
35615
35595
  function(e) {
35616
- Ne(t, e);
35596
+ Ae(t, e);
35617
35597
  function t(r, n) {
35618
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
35598
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
35619
35599
  }
35620
35600
  return t;
35621
- }(Ae)
35601
+ }(He)
35622
35602
  ), D;
35623
35603
  (function(e) {
35624
35604
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
35625
35605
  })(D || (D = {}));
35626
- function qn(e) {
35606
+ function Fn(e) {
35627
35607
  return e.length < 2 ? e : e.reduce(function(t, r) {
35628
35608
  var n = t[t.length - 1];
35629
35609
  return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
35630
35610
  }, []);
35631
35611
  }
35632
- function Gn(e) {
35612
+ function Vn(e) {
35633
35613
  return typeof e == "function";
35634
35614
  }
35635
- function Se(e, t, r, n, i, o, a) {
35636
- if (e.length === 1 && ot(e[0]))
35615
+ function xe(e, t, r, n, i, o, a) {
35616
+ if (e.length === 1 && lt(e[0]))
35637
35617
  return [
35638
35618
  {
35639
35619
  type: D.literal,
@@ -35642,14 +35622,14 @@ function Se(e, t, r, n, i, o, a) {
35642
35622
  ];
35643
35623
  for (var s = [], h = 0, u = e; h < u.length; h++) {
35644
35624
  var l = u[h];
35645
- if (ot(l)) {
35625
+ if (lt(l)) {
35646
35626
  s.push({
35647
35627
  type: D.literal,
35648
35628
  value: l.value
35649
35629
  });
35650
35630
  continue;
35651
35631
  }
35652
- if (hn(l)) {
35632
+ if (mn(l)) {
35653
35633
  typeof o == "number" && s.push({
35654
35634
  type: D.literal,
35655
35635
  value: r.getNumberFormat(t).format(o)
@@ -35658,89 +35638,89 @@ function Se(e, t, r, n, i, o, a) {
35658
35638
  }
35659
35639
  var d = l.value;
35660
35640
  if (!(i && d in i))
35661
- throw new Dn(d, a);
35641
+ throw new Gn(d, a);
35662
35642
  var m = i[d];
35663
- if (un(l)) {
35643
+ if (dn(l)) {
35664
35644
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
35665
35645
  type: typeof m == "string" ? D.literal : D.object,
35666
35646
  value: m
35667
35647
  });
35668
35648
  continue;
35669
35649
  }
35670
- if (Ut(l)) {
35671
- var v = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
35650
+ if (Gt(l)) {
35651
+ var b = typeof l.style == "string" ? n.date[l.style] : qe(l.style) ? l.style.parsedOptions : void 0;
35672
35652
  s.push({
35673
35653
  type: D.literal,
35674
- value: r.getDateTimeFormat(t, v).format(m)
35654
+ value: r.getDateTimeFormat(t, b).format(m)
35675
35655
  });
35676
35656
  continue;
35677
35657
  }
35678
- if (Dt(l)) {
35679
- var v = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
35658
+ if (Ft(l)) {
35659
+ var b = typeof l.style == "string" ? n.time[l.style] : qe(l.style) ? l.style.parsedOptions : n.time.medium;
35680
35660
  s.push({
35681
35661
  type: D.literal,
35682
- value: r.getDateTimeFormat(t, v).format(m)
35662
+ value: r.getDateTimeFormat(t, b).format(m)
35683
35663
  });
35684
35664
  continue;
35685
35665
  }
35686
- if (Rt(l)) {
35687
- var v = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
35688
- v && v.scale && (m = m * (v.scale || 1)), s.push({
35666
+ if (qt(l)) {
35667
+ var b = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
35668
+ b && b.scale && (m = m * (b.scale || 1)), s.push({
35689
35669
  type: D.literal,
35690
- value: r.getNumberFormat(t, v).format(m)
35670
+ value: r.getNumberFormat(t, b).format(m)
35691
35671
  });
35692
35672
  continue;
35693
35673
  }
35694
- if (Ft(l)) {
35695
- var f = l.children, p = l.value, C = i[p];
35696
- if (!Gn(C))
35697
- throw new Un(p, "function", a);
35698
- var _ = Se(f, t, r, n, i, o), b = C(_.map(function(E) {
35699
- return E.value;
35674
+ if (Wt(l)) {
35675
+ var f = l.children, g = l.value, S = i[g];
35676
+ if (!Vn(S))
35677
+ throw new qn(g, "function", a);
35678
+ var _ = xe(f, t, r, n, i, o), v = S(_.map(function(k) {
35679
+ return k.value;
35700
35680
  }));
35701
- Array.isArray(b) || (b = [b]), s.push.apply(s, b.map(function(E) {
35681
+ Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(k) {
35702
35682
  return {
35703
- type: typeof E == "string" ? D.literal : D.object,
35704
- value: E
35683
+ type: typeof k == "string" ? D.literal : D.object,
35684
+ value: k
35705
35685
  };
35706
35686
  }));
35707
35687
  }
35708
- if (qt(l)) {
35709
- var x = l.options[m] || l.options.other;
35710
- if (!x)
35711
- throw new dt(l.value, m, Object.keys(l.options), a);
35712
- s.push.apply(s, Se(x.value, t, r, n, i));
35688
+ if (Vt(l)) {
35689
+ var C = l.options[m] || l.options.other;
35690
+ if (!C)
35691
+ throw new pt(l.value, m, Object.keys(l.options), a);
35692
+ s.push.apply(s, xe(C.value, t, r, n, i));
35713
35693
  continue;
35714
35694
  }
35715
- if (Gt(l)) {
35716
- var x = l.options["=".concat(m)];
35717
- if (!x) {
35695
+ if (Xt(l)) {
35696
+ var C = l.options["=".concat(m)];
35697
+ if (!C) {
35718
35698
  if (!Intl.PluralRules)
35719
- throw new Ae(`Intl.PluralRules is not available in this environment.
35699
+ throw new He(`Intl.PluralRules is not available in this environment.
35720
35700
  Try polyfilling it using "@formatjs/intl-pluralrules"
35721
- `, te.MISSING_INTL_API, a);
35701
+ `, re.MISSING_INTL_API, a);
35722
35702
  var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
35723
- x = l.options[P] || l.options.other;
35703
+ C = l.options[P] || l.options.other;
35724
35704
  }
35725
- if (!x)
35726
- throw new dt(l.value, m, Object.keys(l.options), a);
35727
- s.push.apply(s, Se(x.value, t, r, n, i, m - (l.offset || 0)));
35705
+ if (!C)
35706
+ throw new pt(l.value, m, Object.keys(l.options), a);
35707
+ s.push.apply(s, xe(C.value, t, r, n, i, m - (l.offset || 0)));
35728
35708
  continue;
35729
35709
  }
35730
35710
  }
35731
- return qn(s);
35711
+ return Fn(s);
35732
35712
  }
35733
- function Fn(e, t) {
35713
+ function Xn(e, t) {
35734
35714
  return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
35735
35715
  return r[n] = H(H({}, e[n]), t[n] || {}), r;
35736
35716
  }, {})) : e;
35737
35717
  }
35738
- function Vn(e, t) {
35718
+ function Wn(e, t) {
35739
35719
  return t ? Object.keys(e).reduce(function(r, n) {
35740
- return r[n] = Fn(e[n], t[n]), r;
35720
+ return r[n] = Xn(e[n], t[n]), r;
35741
35721
  }, H({}, e)) : e;
35742
35722
  }
35743
- function Le(e) {
35723
+ function Re(e) {
35744
35724
  return {
35745
35725
  create: function() {
35746
35726
  return {
@@ -35754,39 +35734,39 @@ function Le(e) {
35754
35734
  }
35755
35735
  };
35756
35736
  }
35757
- function Xn(e) {
35737
+ function Zn(e) {
35758
35738
  return e === void 0 && (e = {
35759
35739
  number: {},
35760
35740
  dateTime: {},
35761
35741
  pluralRules: {}
35762
35742
  }), {
35763
- getNumberFormat: Oe(function() {
35743
+ getNumberFormat: Ie(function() {
35764
35744
  for (var t, r = [], n = 0; n < arguments.length; n++)
35765
35745
  r[n] = arguments[n];
35766
- return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], r, !1)))();
35746
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
35767
35747
  }, {
35768
- cache: Le(e.number),
35769
- strategy: Ie.variadic
35748
+ cache: Re(e.number),
35749
+ strategy: je.variadic
35770
35750
  }),
35771
- getDateTimeFormat: Oe(function() {
35751
+ getDateTimeFormat: Ie(function() {
35772
35752
  for (var t, r = [], n = 0; n < arguments.length; n++)
35773
35753
  r[n] = arguments[n];
35774
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], r, !1)))();
35754
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
35775
35755
  }, {
35776
- cache: Le(e.dateTime),
35777
- strategy: Ie.variadic
35756
+ cache: Re(e.dateTime),
35757
+ strategy: je.variadic
35778
35758
  }),
35779
- getPluralRules: Oe(function() {
35759
+ getPluralRules: Ie(function() {
35780
35760
  for (var t, r = [], n = 0; n < arguments.length; n++)
35781
35761
  r[n] = arguments[n];
35782
- return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], r, !1)))();
35762
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
35783
35763
  }, {
35784
- cache: Le(e.pluralRules),
35785
- strategy: Ie.variadic
35764
+ cache: Re(e.pluralRules),
35765
+ strategy: je.variadic
35786
35766
  })
35787
35767
  };
35788
35768
  }
35789
- var Wn = (
35769
+ var Jn = (
35790
35770
  /** @class */
35791
35771
  function() {
35792
35772
  function e(t, r, n, i) {
@@ -35805,7 +35785,7 @@ var Wn = (
35805
35785
  }, []);
35806
35786
  return l.length <= 1 ? l[0] || "" : l;
35807
35787
  }, this.formatToParts = function(h) {
35808
- return Se(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
35788
+ return xe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
35809
35789
  }, this.resolvedOptions = function() {
35810
35790
  var h;
35811
35791
  return {
@@ -35817,13 +35797,13 @@ var Wn = (
35817
35797
  if (this.message = t, !e.__parse)
35818
35798
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
35819
35799
  var a = i || {};
35820
- var s = tn(a, ["formatters"]);
35800
+ var s = on(a, ["formatters"]);
35821
35801
  this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
35822
35802
  } else
35823
35803
  this.ast = t;
35824
35804
  if (!Array.isArray(this.ast))
35825
35805
  throw new TypeError("A message must be provided as a String or AST.");
35826
- this.formats = Vn(e.formats, n), this.formatters = i && i.formatters || Xn(this.formatterCache);
35806
+ this.formats = Wn(e.formats, n), this.formatters = i && i.formatters || Zn(this.formatterCache);
35827
35807
  }
35828
35808
  return Object.defineProperty(e, "defaultLocale", {
35829
35809
  get: function() {
@@ -35836,7 +35816,7 @@ var Wn = (
35836
35816
  var r = Intl.NumberFormat.supportedLocalesOf(t);
35837
35817
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
35838
35818
  }
35839
- }, e.__parse = Rn, e.formats = {
35819
+ }, e.__parse = Dn, e.formats = {
35840
35820
  number: {
35841
35821
  integer: {
35842
35822
  maximumFractionDigits: 0
@@ -35897,7 +35877,7 @@ var Wn = (
35897
35877
  }, e;
35898
35878
  }()
35899
35879
  );
35900
- function Zn(e, t) {
35880
+ function Qn(e, t) {
35901
35881
  if (t == null)
35902
35882
  return;
35903
35883
  if (t in e)
@@ -35918,92 +35898,92 @@ function Zn(e, t) {
35918
35898
  n = void 0;
35919
35899
  return n;
35920
35900
  }
35921
- const Z = {}, Jn = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][e] = r), r), $t = (e, t) => {
35901
+ const J = {}, Yn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), rr = (e, t) => {
35922
35902
  if (t == null)
35923
35903
  return;
35924
- if (t in Z && e in Z[t])
35925
- return Z[t][e];
35926
- const r = He(t);
35904
+ if (t in J && e in J[t])
35905
+ return J[t][e];
35906
+ const r = Pe(t);
35927
35907
  for (let n = 0; n < r.length; n++) {
35928
- const i = r[n], o = Yn(i, e);
35908
+ const i = r[n], o = $n(i, e);
35929
35909
  if (o)
35930
- return Jn(e, t, o);
35910
+ return Yn(e, t, o);
35931
35911
  }
35932
35912
  };
35933
- let Ye;
35934
- const fe = we({});
35935
- function Qn(e) {
35936
- return Ye[e] || null;
35913
+ let et;
35914
+ const _e = Ne({});
35915
+ function Kn(e) {
35916
+ return et[e] || null;
35937
35917
  }
35938
- function er(e) {
35939
- return e in Ye;
35918
+ function nr(e) {
35919
+ return e in et;
35940
35920
  }
35941
- function Yn(e, t) {
35942
- if (!er(e))
35921
+ function $n(e, t) {
35922
+ if (!nr(e))
35943
35923
  return null;
35944
- const r = Qn(e);
35945
- return Zn(r, t);
35924
+ const r = Kn(e);
35925
+ return Qn(r, t);
35946
35926
  }
35947
- function Kn(e) {
35927
+ function ei(e) {
35948
35928
  if (e == null)
35949
35929
  return;
35950
- const t = He(e);
35930
+ const t = Pe(e);
35951
35931
  for (let r = 0; r < t.length; r++) {
35952
35932
  const n = t[r];
35953
- if (er(n))
35933
+ if (nr(n))
35954
35934
  return n;
35955
35935
  }
35956
35936
  }
35957
- function tr(e, ...t) {
35958
- delete Z[e], fe.update((r) => (r[e] = en.all([r[e] || {}, ...t]), r));
35937
+ function ir(e, ...t) {
35938
+ delete J[e], _e.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
35959
35939
  }
35960
- ne(
35961
- [fe],
35940
+ ie(
35941
+ [_e],
35962
35942
  ([e]) => Object.keys(e)
35963
35943
  );
35964
- fe.subscribe((e) => Ye = e);
35965
- const xe = {};
35966
- function $n(e, t) {
35967
- xe[e].delete(t), xe[e].size === 0 && delete xe[e];
35944
+ _e.subscribe((e) => et = e);
35945
+ const Me = {};
35946
+ function ti(e, t) {
35947
+ Me[e].delete(t), Me[e].size === 0 && delete Me[e];
35968
35948
  }
35969
- function rr(e) {
35970
- return xe[e];
35949
+ function or(e) {
35950
+ return Me[e];
35971
35951
  }
35972
- function ei(e) {
35973
- return He(e).map((t) => {
35974
- const r = rr(t);
35952
+ function ri(e) {
35953
+ return Pe(e).map((t) => {
35954
+ const r = or(t);
35975
35955
  return [t, r ? [...r] : []];
35976
35956
  }).filter(([, t]) => t.length > 0);
35977
35957
  }
35978
- function We(e) {
35979
- return e == null ? !1 : He(e).some(
35958
+ function Ze(e) {
35959
+ return e == null ? !1 : Pe(e).some(
35980
35960
  (t) => {
35981
35961
  var r;
35982
- return (r = rr(t)) == null ? void 0 : r.size;
35962
+ return (r = or(t)) == null ? void 0 : r.size;
35983
35963
  }
35984
35964
  );
35985
35965
  }
35986
- function ti(e, t) {
35966
+ function ni(e, t) {
35987
35967
  return Promise.all(
35988
- t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
35989
- ).then((n) => tr(e, ...n));
35990
- }
35991
- const ue = {};
35992
- function nr(e) {
35993
- if (!We(e))
35994
- return e in ue ? ue[e] : Promise.resolve();
35995
- const t = ei(e);
35996
- return ue[e] = Promise.all(
35968
+ t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
35969
+ ).then((n) => ir(e, ...n));
35970
+ }
35971
+ const he = {};
35972
+ function ar(e) {
35973
+ if (!Ze(e))
35974
+ return e in he ? he[e] : Promise.resolve();
35975
+ const t = ri(e);
35976
+ return he[e] = Promise.all(
35997
35977
  t.map(
35998
- ([r, n]) => ti(r, n)
35978
+ ([r, n]) => ni(r, n)
35999
35979
  )
36000
35980
  ).then(() => {
36001
- if (We(e))
36002
- return nr(e);
36003
- delete ue[e];
36004
- }), ue[e];
35981
+ if (Ze(e))
35982
+ return ar(e);
35983
+ delete he[e];
35984
+ }), he[e];
36005
35985
  }
36006
- const ri = {
35986
+ const ii = {
36007
35987
  number: {
36008
35988
  scientific: { notation: "scientific" },
36009
35989
  engineering: { notation: "engineering" },
@@ -36032,150 +36012,150 @@ const ri = {
36032
36012
  timeZoneName: "short"
36033
36013
  }
36034
36014
  }
36035
- }, ni = {
36015
+ }, oi = {
36036
36016
  fallbackLocale: null,
36037
36017
  loadingDelay: 200,
36038
- formats: ri,
36018
+ formats: ii,
36039
36019
  warnOnMissingMessages: !0,
36040
36020
  handleMissingMessage: void 0,
36041
36021
  ignoreTag: !0
36042
- }, ii = ni;
36043
- function re() {
36044
- return ii;
36022
+ }, ai = oi;
36023
+ function ne() {
36024
+ return ai;
36045
36025
  }
36046
- const Re = we(!1);
36047
- var oi = Object.defineProperty, ai = Object.defineProperties, si = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
36026
+ const Ue = Ne(!1);
36027
+ var si = Object.defineProperty, li = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
36048
36028
  for (var r in t || (t = {}))
36049
- li.call(t, r) && pt(e, r, t[r]);
36050
- if (mt)
36051
- for (var r of mt(t))
36052
- ci.call(t, r) && pt(e, r, t[r]);
36029
+ ui.call(t, r) && _t(e, r, t[r]);
36030
+ if (ft)
36031
+ for (var r of ft(t))
36032
+ hi.call(t, r) && _t(e, r, t[r]);
36053
36033
  return e;
36054
- }, hi = (e, t) => ai(e, si(t));
36055
- let Ze;
36056
- const Te = we(null);
36057
- function gt(e) {
36034
+ }, mi = (e, t) => li(e, ci(t));
36035
+ let Je;
36036
+ const Te = Ne(null);
36037
+ function bt(e) {
36058
36038
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
36059
36039
  }
36060
- function He(e, t = re().fallbackLocale) {
36061
- const r = gt(e);
36062
- return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
36040
+ function Pe(e, t = ne().fallbackLocale) {
36041
+ const r = bt(e);
36042
+ return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
36063
36043
  }
36064
- function Q() {
36065
- return Ze ?? void 0;
36044
+ function Y() {
36045
+ return Je ?? void 0;
36066
36046
  }
36067
36047
  Te.subscribe((e) => {
36068
- Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
36048
+ Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
36069
36049
  });
36070
- const di = (e) => {
36071
- if (e && Kn(e) && We(e)) {
36072
- const { loadingDelay: t } = re();
36050
+ const gi = (e) => {
36051
+ if (e && ei(e) && Ze(e)) {
36052
+ const { loadingDelay: t } = ne();
36073
36053
  let r;
36074
- return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
36075
- () => Re.set(!0),
36054
+ return typeof window < "u" && Y() != null && t ? r = window.setTimeout(
36055
+ () => Ue.set(!0),
36076
36056
  t
36077
- ) : Re.set(!0), nr(e).then(() => {
36057
+ ) : Ue.set(!0), ar(e).then(() => {
36078
36058
  Te.set(e);
36079
36059
  }).finally(() => {
36080
- clearTimeout(r), Re.set(!1);
36060
+ clearTimeout(r), Ue.set(!1);
36081
36061
  });
36082
36062
  }
36083
36063
  return Te.set(e);
36084
- }, ie = hi(ui({}, Te), {
36085
- set: di
36086
- }), Pe = (e) => {
36064
+ }, oe = mi(di({}, Te), {
36065
+ set: gi
36066
+ }), Be = (e) => {
36087
36067
  const t = /* @__PURE__ */ Object.create(null);
36088
36068
  return (n) => {
36089
36069
  const i = JSON.stringify(n);
36090
36070
  return i in t ? t[i] : t[i] = e(n);
36091
36071
  };
36092
36072
  };
36093
- var mi = Object.defineProperty, Me = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
36073
+ var pi = Object.defineProperty, we = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
36094
36074
  for (var r in t || (t = {}))
36095
- ir.call(t, r) && ft(e, r, t[r]);
36096
- if (Me)
36097
- for (var r of Me(t))
36098
- or.call(t, r) && ft(e, r, t[r]);
36075
+ sr.call(t, r) && vt(e, r, t[r]);
36076
+ if (we)
36077
+ for (var r of we(t))
36078
+ lr.call(t, r) && vt(e, r, t[r]);
36099
36079
  return e;
36100
- }, oe = (e, t) => {
36080
+ }, ae = (e, t) => {
36101
36081
  var r = {};
36102
36082
  for (var n in e)
36103
- ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
36104
- if (e != null && Me)
36105
- for (var n of Me(e))
36106
- t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
36083
+ sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
36084
+ if (e != null && we)
36085
+ for (var n of we(e))
36086
+ t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
36107
36087
  return r;
36108
36088
  };
36109
- const me = (e, t) => {
36110
- const { formats: r } = re();
36089
+ const ge = (e, t) => {
36090
+ const { formats: r } = ne();
36111
36091
  if (e in r && t in r[e])
36112
36092
  return r[e][t];
36113
36093
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
36114
- }, pi = Pe(
36094
+ }, fi = Be(
36115
36095
  (e) => {
36116
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
36096
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
36117
36097
  if (r == null)
36118
36098
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
36119
- return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
36099
+ return n && (i = ge("number", n)), new Intl.NumberFormat(r, i);
36120
36100
  }
36121
- ), gi = Pe(
36101
+ ), _i = Be(
36122
36102
  (e) => {
36123
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
36103
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
36124
36104
  if (r == null)
36125
36105
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
36126
- return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
36106
+ return n ? i = ge("date", n) : Object.keys(i).length === 0 && (i = ge("date", "short")), new Intl.DateTimeFormat(r, i);
36127
36107
  }
36128
- ), fi = Pe(
36108
+ ), bi = Be(
36129
36109
  (e) => {
36130
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
36110
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
36131
36111
  if (r == null)
36132
36112
  throw new Error(
36133
36113
  '[svelte-i18n] A "locale" must be set to format time values'
36134
36114
  );
36135
- return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
36115
+ return n ? i = ge("time", n) : Object.keys(i).length === 0 && (i = ge("time", "short")), new Intl.DateTimeFormat(r, i);
36136
36116
  }
36137
- ), _i = (e = {}) => {
36117
+ ), vi = (e = {}) => {
36138
36118
  var t = e, {
36139
- locale: r = Q()
36140
- } = t, n = oe(t, [
36119
+ locale: r = Y()
36120
+ } = t, n = ae(t, [
36141
36121
  "locale"
36142
36122
  ]);
36143
- return pi(Ke({ locale: r }, n));
36144
- }, bi = (e = {}) => {
36123
+ return fi(tt({ locale: r }, n));
36124
+ }, yi = (e = {}) => {
36145
36125
  var t = e, {
36146
- locale: r = Q()
36147
- } = t, n = oe(t, [
36126
+ locale: r = Y()
36127
+ } = t, n = ae(t, [
36148
36128
  "locale"
36149
36129
  ]);
36150
- return gi(Ke({ locale: r }, n));
36151
- }, vi = (e = {}) => {
36130
+ return _i(tt({ locale: r }, n));
36131
+ }, Ei = (e = {}) => {
36152
36132
  var t = e, {
36153
- locale: r = Q()
36154
- } = t, n = oe(t, [
36133
+ locale: r = Y()
36134
+ } = t, n = ae(t, [
36155
36135
  "locale"
36156
36136
  ]);
36157
- return fi(Ke({ locale: r }, n));
36158
- }, yi = Pe(
36137
+ return bi(tt({ locale: r }, n));
36138
+ }, ki = Be(
36159
36139
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
36160
- (e, t = Q()) => new Wn(e, t, re().formats, {
36161
- ignoreTag: re().ignoreTag
36140
+ (e, t = Y()) => new Jn(e, t, ne().formats, {
36141
+ ignoreTag: ne().ignoreTag
36162
36142
  })
36163
- ), Ei = (e, t = {}) => {
36143
+ ), Ci = (e, t = {}) => {
36164
36144
  var r, n, i, o;
36165
36145
  let a = t;
36166
36146
  typeof e == "object" && (a = e, e = a.id);
36167
36147
  const {
36168
36148
  values: s,
36169
- locale: h = Q(),
36149
+ locale: h = Y(),
36170
36150
  default: u
36171
36151
  } = a;
36172
36152
  if (h == null)
36173
36153
  throw new Error(
36174
36154
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
36175
36155
  );
36176
- let l = $t(e, h);
36156
+ let l = rr(e, h);
36177
36157
  if (!l)
36178
- l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
36158
+ l = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
36179
36159
  else if (typeof l != "string")
36180
36160
  return console.warn(
36181
36161
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -36184,7 +36164,7 @@ const me = (e, t) => {
36184
36164
  return l;
36185
36165
  let d = l;
36186
36166
  try {
36187
- d = yi(l, h).format(s);
36167
+ d = ki(l, h).format(s);
36188
36168
  } catch (m) {
36189
36169
  m instanceof Error && console.warn(
36190
36170
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -36192,18 +36172,18 @@ const me = (e, t) => {
36192
36172
  );
36193
36173
  }
36194
36174
  return d;
36195
- }, ki = (e, t) => vi(t).format(e), Ci = (e, t) => bi(t).format(e), Si = (e, t) => _i(t).format(e), xi = (e, t = Q()) => $t(e, t), Ti = ne([ie, fe], () => Ei);
36196
- ne([ie], () => ki);
36197
- ne([ie], () => Ci);
36198
- ne([ie], () => Si);
36199
- ne([ie, fe], () => xi);
36200
- function _t(e, t) {
36201
- tr(e, t);
36202
- }
36203
- function Mi(e) {
36204
- ie.set(e);
36205
- }
36206
- const bt = {
36175
+ }, Si = (e, t) => Ei(t).format(e), xi = (e, t) => yi(t).format(e), Mi = (e, t) => vi(t).format(e), Ti = (e, t = Y()) => rr(e, t), wi = ie([oe, _e], () => Ci);
36176
+ ie([oe], () => Si);
36177
+ ie([oe], () => xi);
36178
+ ie([oe], () => Mi);
36179
+ ie([oe, _e], () => Ti);
36180
+ function yt(e, t) {
36181
+ ir(e, t);
36182
+ }
36183
+ function Ni(e) {
36184
+ oe.set(e);
36185
+ }
36186
+ const Et = {
36207
36187
  en: {
36208
36188
  invalidUrl: "Failed to construct 'URL': Invalid URL",
36209
36189
  fetchConsentsError: "Error: Could not fetch consents.",
@@ -36775,18 +36755,18 @@ if (typeof window < "u") {
36775
36755
  }
36776
36756
  };
36777
36757
  };
36778
- customElements.define = e(customElements.define), Promise.resolve().then(function () { return GeneralAnimationLoadingC74Ex5kT; }).then((t) => t.G).then(({ default: t }) => {
36758
+ customElements.define = e(customElements.define), Promise.resolve().then(function () { return GeneralAnimationLoadingBMZE178n; }).then((t) => t.G).then(({ default: t }) => {
36779
36759
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
36780
36760
  });
36781
36761
  }
36782
- function wi(e) {
36762
+ function Ai(e) {
36783
36763
  let t, r;
36784
36764
  return {
36785
36765
  c() {
36786
36766
  t = V("svg"), r = V("path"), B$1(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), B$1(t, "xmlns", "http://www.w3.org/2000/svg"), B$1(t, "viewBox", "0 0 512 512");
36787
36767
  },
36788
36768
  m(n, i) {
36789
- k(n, t, i), G(t, r);
36769
+ v(n, t, i), G(t, r);
36790
36770
  },
36791
36771
  p: d,
36792
36772
  i: d,
@@ -36796,34 +36776,34 @@ function wi(e) {
36796
36776
  }
36797
36777
  };
36798
36778
  }
36799
- class Ni extends lt$1 {
36779
+ class Hi extends lt$1 {
36800
36780
  constructor(t) {
36801
- super(), ct$1(this, t, null, wi, z, {});
36781
+ super(), ct$1(this, t, null, Ai, z, {});
36802
36782
  }
36803
36783
  }
36804
- customElements.define("circle-exclamation-icon", ot$1(Ni, {}, [], [], !0));
36805
- function Ai(e) {
36784
+ customElements.define("circle-exclamation-icon", ot(Hi, {}, [], [], !0));
36785
+ function Pi(e) {
36806
36786
  I(e, "svelte-ltb9q9", '.DisplayNone.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:none}.ContainerCenter.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:30px}.AccordionHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:10px}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:block;padding:10px 0}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{padding-bottom:0}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{margin-bottom:0}.ConsentItem.svelte-ltb9q9 .ConsentName.svelte-ltb9q9.svelte-ltb9q9{margin:0}.ConsentItem.svelte-ltb9q9 .ConsentDescription.svelte-ltb9q9.svelte-ltb9q9{font-size:0.8rem}.ToggleSwitch.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:53px;height:30px}.ToggleSwitch.Big.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9.svelte-ltb9q9{opacity:0;width:0;height:0}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9{background-color:var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:disabled+.Slider.svelte-ltb9q9{opacity:0.1}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:focus+.Slider.svelte-ltb9q9{box-shadow:0 0 1px var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9{border-radius:34px}.ToggleSwitch.svelte-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9:before{border-radius:50%}.SaveConsentsButton.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:disabled{background:var(--emw--color-pale, var(--emw--color-gray-50, #707070))}.ConsentErrorContainer.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-ltb9q9 circle-exclamation-icon.svelte-ltb9q9.svelte-ltb9q9{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox.svelte-ltb9q9.svelte-ltb9q9{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-ltb9q9.svelte-ltb9q9{position:relative}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__input.svelte-ltb9q9.svelte-ltb9q9{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__label.svelte-ltb9q9.svelte-ltb9q9{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-ltb9q9.svelte-ltb9q9{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__error-message.svelte-ltb9q9.svelte-ltb9q9{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-ltb9q9.svelte-ltb9q9{width:16px;height:auto}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.svelte-ltb9q9.svelte-ltb9q9{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-ltb9q9.svelte-ltb9q9{opacity:1}');
36807
36787
  }
36808
- function vt(e, t, r) {
36788
+ function kt(e, t, r) {
36809
36789
  const n = e.slice();
36810
36790
  return n[64] = t[r], n;
36811
36791
  }
36812
- function yt(e, t, r) {
36792
+ function Ct(e, t, r) {
36813
36793
  const n = e.slice();
36814
36794
  return n[61] = t[r], n[62] = t, n[63] = r, n;
36815
36795
  }
36816
- function Et(e, t, r) {
36796
+ function St(e, t, r) {
36817
36797
  const n = e.slice();
36818
36798
  return n[64] = t[r], n;
36819
36799
  }
36820
- function Hi(e) {
36821
- let t, r, n = vt$1(
36800
+ function Bi(e) {
36801
+ let t, r, n = kt$1(
36822
36802
  /*playerConsents*/
36823
36803
  e[9]
36824
36804
  ), i = [];
36825
36805
  for (let o = 0; o < n.length; o += 1)
36826
- i[o] = kt(vt(e, n, o));
36806
+ i[o] = xt(kt(e, n, o));
36827
36807
  return {
36828
36808
  c() {
36829
36809
  t = w$1("div"), r = w$1("form");
@@ -36832,7 +36812,7 @@ function Hi(e) {
36832
36812
  B$1(r, "class", "checkbox svelte-ltb9q9"), B$1(t, "class", "legacyStyle");
36833
36813
  },
36834
36814
  m(o, a) {
36835
- k(o, t, a), G(t, r);
36815
+ v(o, t, a), G(t, r);
36836
36816
  for (let s = 0; s < i.length; s += 1)
36837
36817
  i[s] && i[s].m(r, null);
36838
36818
  e[31](r);
@@ -36840,14 +36820,14 @@ function Hi(e) {
36840
36820
  p(o, a) {
36841
36821
  if (a[0] & /*playerConsents, $_, handleInput*/
36842
36822
  590336) {
36843
- n = vt$1(
36823
+ n = kt$1(
36844
36824
  /*playerConsents*/
36845
36825
  o[9]
36846
36826
  );
36847
36827
  let s;
36848
36828
  for (s = 0; s < n.length; s += 1) {
36849
- const h = vt(o, n, s);
36850
- i[s] ? i[s].p(h, a) : (i[s] = kt(h), i[s].c(), i[s].m(r, null));
36829
+ const h = kt(o, n, s);
36830
+ i[s] ? i[s].p(h, a) : (i[s] = xt(h), i[s].c(), i[s].m(r, null));
36851
36831
  }
36852
36832
  for (; s < i.length; s += 1)
36853
36833
  i[s].d(1);
@@ -36859,7 +36839,7 @@ function Hi(e) {
36859
36839
  }
36860
36840
  };
36861
36841
  }
36862
- function Pi(e) {
36842
+ function zi(e) {
36863
36843
  let t = (
36864
36844
  /*$_*/
36865
36845
  e[16]("title") || /*$_*/
@@ -36867,67 +36847,67 @@ function Pi(e) {
36867
36847
  ), r, n, i, o = (
36868
36848
  /*$_*/
36869
36849
  (e[16]("saveButtonContent") || "Save Consents") + ""
36870
- ), a, s, h, u, l, d = t && Ct(e), m = vt$1(
36850
+ ), a, s, h, u, l, d = t && Mt(e), m = kt$1(
36871
36851
  /*consentsCategories*/
36872
36852
  e[8]
36873
- ), v = [];
36874
- for (let p = 0; p < m.length; p += 1)
36875
- v[p] = Nt(yt(e, m, p));
36853
+ ), b = [];
36854
+ for (let g = 0; g < m.length; g += 1)
36855
+ b[g] = Pt(Ct(e, m, g));
36876
36856
  let f = (
36877
36857
  /*errorMessage*/
36878
- e[6] && At(e)
36858
+ e[6] && Bt(e)
36879
36859
  );
36880
36860
  return {
36881
36861
  c() {
36882
36862
  d && d.c(), r = pt$1();
36883
- for (let p = 0; p < v.length; p += 1)
36884
- v[p].c();
36863
+ for (let g = 0; g < b.length; g += 1)
36864
+ b[g].c();
36885
36865
  n = pt$1(), i = w$1("button"), s = pt$1(), f && f.c(), h = yt$1(), B$1(i, "class", "SaveConsentsButton svelte-ltb9q9"), i.disabled = a = !/*isValid*/
36886
36866
  e[14];
36887
36867
  },
36888
- m(p, C) {
36889
- d && d.m(p, C), k(p, r, C);
36890
- for (let _ = 0; _ < v.length; _ += 1)
36891
- v[_] && v[_].m(p, C);
36892
- k(p, n, C), k(p, i, C), i.innerHTML = o, k(p, s, C), f && f.m(p, C), k(p, h, C), u || (l = wt$1(
36868
+ m(g, S) {
36869
+ d && d.m(g, S), v(g, r, S);
36870
+ for (let _ = 0; _ < b.length; _ += 1)
36871
+ b[_] && b[_].m(g, S);
36872
+ v(g, n, S), v(g, i, S), i.innerHTML = o, v(g, s, S), f && f.m(g, S), v(g, h, S), u || (l = wt$1(
36893
36873
  i,
36894
36874
  "click",
36895
36875
  /*saveChanges*/
36896
36876
  e[17]
36897
36877
  ), u = !0);
36898
36878
  },
36899
- p(p, C) {
36900
- if (C[0] & /*$_*/
36879
+ p(g, S) {
36880
+ if (S[0] & /*$_*/
36901
36881
  65536 && (t = /*$_*/
36902
- p[16]("title") || /*$_*/
36903
- p[16]("description")), t ? d ? d.p(p, C) : (d = Ct(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
36882
+ g[16]("title") || /*$_*/
36883
+ g[16]("description")), t ? d ? d.p(g, S) : (d = Mt(g), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
36904
36884
  867088) {
36905
- m = vt$1(
36885
+ m = kt$1(
36906
36886
  /*consentsCategories*/
36907
- p[8]
36887
+ g[8]
36908
36888
  );
36909
36889
  let _;
36910
36890
  for (_ = 0; _ < m.length; _ += 1) {
36911
- const b = yt(p, m, _);
36912
- v[_] ? v[_].p(b, C) : (v[_] = Nt(b), v[_].c(), v[_].m(n.parentNode, n));
36891
+ const v = Ct(g, m, _);
36892
+ b[_] ? b[_].p(v, S) : (b[_] = Pt(v), b[_].c(), b[_].m(n.parentNode, n));
36913
36893
  }
36914
- for (; _ < v.length; _ += 1)
36915
- v[_].d(1);
36916
- v.length = m.length;
36894
+ for (; _ < b.length; _ += 1)
36895
+ b[_].d(1);
36896
+ b.length = m.length;
36917
36897
  }
36918
- C[0] & /*$_*/
36898
+ S[0] & /*$_*/
36919
36899
  65536 && o !== (o = /*$_*/
36920
- (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
36900
+ (g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
36921
36901
  16384 && a !== (a = !/*isValid*/
36922
- p[14]) && (i.disabled = a), /*errorMessage*/
36923
- p[6] ? f ? f.p(p, C) : (f = At(p), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
36902
+ g[14]) && (i.disabled = a), /*errorMessage*/
36903
+ g[6] ? f ? f.p(g, S) : (f = Bt(g), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
36924
36904
  },
36925
- d(p) {
36926
- p && (y(r), y(n), y(i), y(s), y(h)), d && d.d(p), bt$1(v, p), f && f.d(p), u = !1, l();
36905
+ d(g) {
36906
+ g && (y(r), y(n), y(i), y(s), y(h)), d && d.d(g), bt$1(b, g), f && f.d(g), u = !1, l();
36927
36907
  }
36928
36908
  };
36929
36909
  }
36930
- function Bi(e) {
36910
+ function Oi(e) {
36931
36911
  let t, r, n;
36932
36912
  return {
36933
36913
  c() {
@@ -36937,7 +36917,7 @@ function Bi(e) {
36937
36917
  ), B$1(r, "class", "ErrorMessage svelte-ltb9q9"), B$1(t, "class", "ContainerCenter svelte-ltb9q9");
36938
36918
  },
36939
36919
  m(i, o) {
36940
- k(i, t, o), G(t, r), G(r, n);
36920
+ v(i, t, o), G(t, r), G(r, n);
36941
36921
  },
36942
36922
  p(i, o) {
36943
36923
  o[0] & /*fatalError*/
@@ -36952,7 +36932,7 @@ function Bi(e) {
36952
36932
  }
36953
36933
  };
36954
36934
  }
36955
- function zi(e) {
36935
+ function Ii(e) {
36956
36936
  let t;
36957
36937
  return {
36958
36938
  c() {
@@ -36974,7 +36954,7 @@ function zi(e) {
36974
36954
  );
36975
36955
  },
36976
36956
  m(r, n) {
36977
- k(r, t, n);
36957
+ v(r, t, n);
36978
36958
  },
36979
36959
  p(r, n) {
36980
36960
  n[0] & /*clientstyling*/
@@ -37002,7 +36982,7 @@ function zi(e) {
37002
36982
  }
37003
36983
  };
37004
36984
  }
37005
- function kt(e) {
36985
+ function xt(e) {
37006
36986
  let t, r, n, i, o, a, s, h, u = (
37007
36987
  /*$_*/
37008
36988
  (e[16](`${/*consent*/
@@ -37011,31 +36991,31 @@ function kt(e) {
37011
36991
  ), l = (
37012
36992
  /*consent*/
37013
36993
  e[64].mustAccept ? " *" : ""
37014
- ), d, m, v, f, p, C, _, b, x;
37015
- function P$1(...E) {
36994
+ ), d, m, b, f, g, S, _, v$1, C;
36995
+ function P$1(...k) {
37016
36996
  return (
37017
36997
  /*input_handler_1*/
37018
36998
  e[30](
37019
36999
  /*consent*/
37020
37000
  e[64],
37021
- ...E
37001
+ ...k
37022
37002
  )
37023
37003
  );
37024
37004
  }
37025
37005
  return {
37026
37006
  c() {
37027
- t = w$1("div"), r = w$1("input"), o = pt$1(), a = w$1("label"), s = w$1("div"), h = new Lt$1(!1), d = P(l), v = pt$1(), f = w$1("small"), C = pt$1(), B$1(r, "class", "checkbox__input svelte-ltb9q9"), B$1(r, "type", "checkbox"), r.checked = n = /*consent*/
37007
+ t = w$1("div"), r = w$1("input"), o = pt$1(), a = w$1("label"), s = w$1("div"), h = new Lt(!1), d = P(l), b = pt$1(), f = w$1("small"), S = pt$1(), B$1(r, "class", "checkbox__input svelte-ltb9q9"), B$1(r, "type", "checkbox"), r.checked = n = /*consent*/
37028
37008
  e[64].status === "1", B$1(r, "id", i = `${/*consent*/
37029
37009
  e[64].tagCode}__input`), h.a = d, B$1(s, "class", "checkbox__label-text svelte-ltb9q9"), B$1(a, "class", "checkbox__label svelte-ltb9q9"), B$1(a, "for", m = `${/*consent*/
37030
- e[64].tagCode}__input`), B$1(f, "class", "checkbox__error-message svelte-ltb9q9"), B$1(f, "id", p = "checkBoxError__" + /*consent*/
37010
+ e[64].tagCode}__input`), B$1(f, "class", "checkbox__error-message svelte-ltb9q9"), B$1(f, "id", g = "checkBoxError__" + /*consent*/
37031
37011
  e[64].tagCode), B$1(t, "class", _ = "checkbox__wrapper " + /*consent*/
37032
37012
  e[64].tagCode + "__input svelte-ltb9q9");
37033
37013
  },
37034
- m(E, z) {
37035
- k(E, t, z), G(t, r), G(t, o), G(t, a), G(a, s), h.m(u, s), G(s, d), G(t, v), G(t, f), G(t, C), b || (x = wt$1(r, "input", P$1), b = !0);
37014
+ m(k, z) {
37015
+ v(k, t, z), G(t, r), G(t, o), G(t, a), G(a, s), h.m(u, s), G(s, d), G(t, b), G(t, f), G(t, S), v$1 || (C = wt$1(r, "input", P$1), v$1 = !0);
37036
37016
  },
37037
- p(E, z) {
37038
- e = E, z[0] & /*playerConsents*/
37017
+ p(k, z) {
37018
+ e = k, z[0] & /*playerConsents*/
37039
37019
  512 && n !== (n = /*consent*/
37040
37020
  e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
37041
37021
  512 && i !== (i = `${/*consent*/
@@ -37048,44 +37028,44 @@ function kt(e) {
37048
37028
  e[64].mustAccept ? " *" : "") && Et$1(d, l), z[0] & /*playerConsents*/
37049
37029
  512 && m !== (m = `${/*consent*/
37050
37030
  e[64].tagCode}__input`) && B$1(a, "for", m), z[0] & /*playerConsents*/
37051
- 512 && p !== (p = "checkBoxError__" + /*consent*/
37052
- e[64].tagCode) && B$1(f, "id", p), z[0] & /*playerConsents*/
37031
+ 512 && g !== (g = "checkBoxError__" + /*consent*/
37032
+ e[64].tagCode) && B$1(f, "id", g), z[0] & /*playerConsents*/
37053
37033
  512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
37054
37034
  e[64].tagCode + "__input svelte-ltb9q9") && B$1(t, "class", _);
37055
37035
  },
37056
- d(E) {
37057
- E && y(t), b = !1, x();
37036
+ d(k) {
37037
+ k && y(t), v$1 = !1, C();
37058
37038
  }
37059
37039
  };
37060
37040
  }
37061
- function Ct(e) {
37041
+ function Mt(e) {
37062
37042
  let t, r = (
37063
37043
  /*$_*/
37064
37044
  e[16]("title")
37065
37045
  ), n, i = (
37066
37046
  /*$_*/
37067
37047
  e[16]("description")
37068
- ), o = r && St(e), a = i && xt(e);
37048
+ ), o = r && Tt(e), a = i && wt(e);
37069
37049
  return {
37070
37050
  c() {
37071
37051
  t = w$1("div"), o && o.c(), n = pt$1(), a && a.c(), B$1(t, "class", "PlayerConsentsHeader svelte-ltb9q9");
37072
37052
  },
37073
37053
  m(s, h) {
37074
- k(s, t, h), o && o.m(t, null), G(t, n), a && a.m(t, null);
37054
+ v(s, t, h), o && o.m(t, null), G(t, n), a && a.m(t, null);
37075
37055
  },
37076
37056
  p(s, h) {
37077
37057
  h[0] & /*$_*/
37078
37058
  65536 && (r = /*$_*/
37079
- s[16]("title")), r ? o ? o.p(s, h) : (o = St(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
37059
+ s[16]("title")), r ? o ? o.p(s, h) : (o = Tt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
37080
37060
  65536 && (i = /*$_*/
37081
- s[16]("description")), i ? a ? a.p(s, h) : (a = xt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
37061
+ s[16]("description")), i ? a ? a.p(s, h) : (a = wt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
37082
37062
  },
37083
37063
  d(s) {
37084
37064
  s && y(t), o && o.d(), a && a.d();
37085
37065
  }
37086
37066
  };
37087
37067
  }
37088
- function St(e) {
37068
+ function Tt(e) {
37089
37069
  let t, r = (
37090
37070
  /*$_*/
37091
37071
  e[16]("title") + ""
@@ -37095,7 +37075,7 @@ function St(e) {
37095
37075
  t = w$1("h2"), n = P(r), B$1(t, "class", "PlayerConsentsTitle");
37096
37076
  },
37097
37077
  m(i, o) {
37098
- k(i, t, o), G(t, n);
37078
+ v(i, t, o), G(t, n);
37099
37079
  },
37100
37080
  p(i, o) {
37101
37081
  o[0] & /*$_*/
@@ -37107,7 +37087,7 @@ function St(e) {
37107
37087
  }
37108
37088
  };
37109
37089
  }
37110
- function xt(e) {
37090
+ function wt(e) {
37111
37091
  let t, r = (
37112
37092
  /*$_*/
37113
37093
  e[16]("description") + ""
@@ -37117,7 +37097,7 @@ function xt(e) {
37117
37097
  t = w$1("p"), n = P(r), B$1(t, "class", "PlayerConsentsDescription");
37118
37098
  },
37119
37099
  m(i, o) {
37120
- k(i, t, o), G(t, n);
37100
+ v(i, t, o), G(t, n);
37121
37101
  },
37122
37102
  p(i, o) {
37123
37103
  o[0] & /*$_*/
@@ -37129,21 +37109,21 @@ function xt(e) {
37129
37109
  }
37130
37110
  };
37131
37111
  }
37132
- function Tt(e) {
37112
+ function Nt(e) {
37133
37113
  let t;
37134
37114
  return {
37135
37115
  c() {
37136
37116
  t = w$1("sup"), t.textContent = "*", B$1(t, "class", "ConsentRequired svelte-ltb9q9");
37137
37117
  },
37138
37118
  m(r, n) {
37139
- k(r, t, n);
37119
+ v(r, t, n);
37140
37120
  },
37141
37121
  d(r) {
37142
37122
  r && y(t);
37143
37123
  }
37144
37124
  };
37145
37125
  }
37146
- function Mt(e) {
37126
+ function At(e) {
37147
37127
  let t, r = (
37148
37128
  /*$_*/
37149
37129
  (e[16](`${/*consent*/
@@ -37155,7 +37135,7 @@ function Mt(e) {
37155
37135
  t = w$1("p"), B$1(t, "class", "ConsentDescription svelte-ltb9q9");
37156
37136
  },
37157
37137
  m(n, i) {
37158
- k(n, t, i), t.innerHTML = r;
37138
+ v(n, t, i), t.innerHTML = r;
37159
37139
  },
37160
37140
  p(n, i) {
37161
37141
  i[0] & /*$_, playerConsents, consentsCategories*/
@@ -37169,20 +37149,20 @@ function Mt(e) {
37169
37149
  }
37170
37150
  };
37171
37151
  }
37172
- function wt(e) {
37152
+ function Ht(e) {
37173
37153
  let t, r, n, i, o = (
37174
37154
  /*$_*/
37175
37155
  (e[16](`${/*consent*/
37176
37156
  e[64].tagCode}__name`) || /*consent*/
37177
37157
  e[64].friendlyName) + ""
37178
- ), a, s, h, u, l, d, m, v, f, p, C, _ = (
37158
+ ), a, s, h, u, l, d, m, b, f, g, S, _ = (
37179
37159
  /*consent*/
37180
- e[64].mustAccept === !0 && Tt()
37181
- ), b = (
37160
+ e[64].mustAccept === !0 && Nt()
37161
+ ), v$1 = (
37182
37162
  /*displayconsentdescription*/
37183
- e[4] === "true" && Mt(e)
37163
+ e[4] === "true" && At(e)
37184
37164
  );
37185
- function x(...P) {
37165
+ function C(...P) {
37186
37166
  return (
37187
37167
  /*input_handler*/
37188
37168
  e[29](
@@ -37194,7 +37174,7 @@ function wt(e) {
37194
37174
  }
37195
37175
  return {
37196
37176
  c() {
37197
- t = w$1("div"), r = w$1("div"), n = w$1("h4"), i = new Lt$1(!1), a = pt$1(), _ && _.c(), s = pt$1(), b && b.c(), h = pt$1(), u = w$1("label"), l = w$1("input"), v = pt$1(), f = w$1("span"), i.a = a, B$1(n, "class", "ConsentName svelte-ltb9q9"), B$1(r, "class", "ConsentContent"), B$1(l, "type", "checkbox"), l.disabled = d = /*consent*/
37177
+ t = w$1("div"), r = w$1("div"), n = w$1("h4"), i = new Lt(!1), a = pt$1(), _ && _.c(), s = pt$1(), v$1 && v$1.c(), h = pt$1(), u = w$1("label"), l = w$1("input"), b = pt$1(), f = w$1("span"), i.a = a, B$1(n, "class", "ConsentName svelte-ltb9q9"), B$1(r, "class", "ConsentContent"), B$1(l, "type", "checkbox"), l.disabled = d = /*consent*/
37198
37178
  e[64].mustAccept === !0 && /*initialConsentsState*/
37199
37179
  e[12][
37200
37180
  /*consent*/
@@ -37205,23 +37185,23 @@ function wt(e) {
37205
37185
  e[64].tagCode
37206
37186
  ], B$1(l, "class", "svelte-ltb9q9"), B$1(f, "class", "Slider Round svelte-ltb9q9"), B$1(u, "class", "ToggleSwitch svelte-ltb9q9"), B$1(t, "class", "ConsentItem svelte-ltb9q9");
37207
37187
  },
37208
- m(P, E) {
37209
- k(P, t, E), G(t, r), G(r, n), i.m(o, n), G(n, a), _ && _.m(n, null), G(r, s), b && b.m(r, null), G(t, h), G(t, u), G(u, l), G(u, v), G(u, f), p || (C = wt$1(l, "input", x), p = !0);
37188
+ m(P, k) {
37189
+ v(P, t, k), G(t, r), G(r, n), i.m(o, n), G(n, a), _ && _.m(n, null), G(r, s), v$1 && v$1.m(r, null), G(t, h), G(t, u), G(u, l), G(u, b), G(u, f), g || (S = wt$1(l, "input", C), g = !0);
37210
37190
  },
37211
- p(P, E) {
37212
- e = P, E[0] & /*$_, playerConsents, consentsCategories*/
37191
+ p(P, k) {
37192
+ e = P, k[0] & /*$_, playerConsents, consentsCategories*/
37213
37193
  66304 && o !== (o = /*$_*/
37214
37194
  (e[16](`${/*consent*/
37215
37195
  e[64].tagCode}__name`) || /*consent*/
37216
37196
  e[64].friendlyName) + "") && i.p(o), /*consent*/
37217
- e[64].mustAccept === !0 ? _ || (_ = Tt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
37218
- e[4] === "true" ? b ? b.p(e, E) : (b = Mt(e), b.c(), b.m(r, null)) : b && (b.d(1), b = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
37197
+ e[64].mustAccept === !0 ? _ || (_ = Nt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
37198
+ e[4] === "true" ? v$1 ? v$1.p(e, k) : (v$1 = At(e), v$1.c(), v$1.m(r, null)) : v$1 && (v$1.d(1), v$1 = null), k[0] & /*playerConsents, consentsCategories, initialConsentsState*/
37219
37199
  4864 && d !== (d = /*consent*/
37220
37200
  e[64].mustAccept === !0 && /*initialConsentsState*/
37221
37201
  e[12][
37222
37202
  /*consent*/
37223
37203
  e[64].tagCode
37224
- ] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
37204
+ ] === !0) && (l.disabled = d), k[0] & /*consentsState, playerConsents, consentsCategories*/
37225
37205
  8960 && m !== (m = /*consentsState*/
37226
37206
  e[13][
37227
37207
  /*consent*/
@@ -37229,17 +37209,17 @@ function wt(e) {
37229
37209
  ]) && (l.checked = m);
37230
37210
  },
37231
37211
  d(P) {
37232
- P && y(t), _ && _.d(), b && b.d(), p = !1, C();
37212
+ P && y(t), _ && _.d(), v$1 && v$1.d(), g = !1, S();
37233
37213
  }
37234
37214
  };
37235
37215
  }
37236
- function Nt(e) {
37216
+ function Pt(e) {
37237
37217
  let t, r, n, i = (
37238
37218
  /*$_*/
37239
37219
  (e[16](`${/*category*/
37240
37220
  e[61].categoryTagCode}__category`) || /*category*/
37241
37221
  e[61].friendlyName) + ""
37242
- ), o, a, s, h, u, l, d, m, v;
37222
+ ), o, a, s, h, u, l, d, m, b;
37243
37223
  function f() {
37244
37224
  e[26].call(
37245
37225
  s,
@@ -37247,7 +37227,7 @@ function Nt(e) {
37247
37227
  e[61]
37248
37228
  );
37249
37229
  }
37250
- function p$1() {
37230
+ function g() {
37251
37231
  return (
37252
37232
  /*change_handler*/
37253
37233
  e[27](
@@ -37256,44 +37236,44 @@ function Nt(e) {
37256
37236
  )
37257
37237
  );
37258
37238
  }
37259
- function C(...x) {
37239
+ function S(...C) {
37260
37240
  return (
37261
37241
  /*func*/
37262
37242
  e[28](
37263
37243
  /*category*/
37264
37244
  e[61],
37265
- ...x
37245
+ ...C
37266
37246
  )
37267
37247
  );
37268
37248
  }
37269
- let _ = vt$1(
37249
+ let _ = kt$1(
37270
37250
  /*playerConsents*/
37271
- e[9].filter(C)
37272
- ), b = [];
37273
- for (let x = 0; x < _.length; x += 1)
37274
- b[x] = wt(Et(e, _, x));
37251
+ e[9].filter(S)
37252
+ ), v$1 = [];
37253
+ for (let C = 0; C < _.length; C += 1)
37254
+ v$1[C] = Ht(St(e, _, C));
37275
37255
  return {
37276
37256
  c() {
37277
37257
  t = w$1("div"), r = w$1("div"), n = w$1("h3"), o = pt$1(), a = w$1("label"), s = w$1("input"), h = pt$1(), u = w$1("span"), l = pt$1(), d = w$1("div");
37278
- for (let x = 0; x < b.length; x += 1)
37279
- b[x].c();
37258
+ for (let C = 0; C < v$1.length; C += 1)
37259
+ v$1[C].c();
37280
37260
  B$1(s, "type", "checkbox"), B$1(s, "class", "svelte-ltb9q9"), B$1(u, "class", "Slider Round svelte-ltb9q9"), B$1(a, "class", "ToggleSwitch Big svelte-ltb9q9"), B$1(r, "class", "AccordionHeader svelte-ltb9q9"), B$1(d, "class", "AccordionContent svelte-ltb9q9"), B$1(t, "class", "AccordionItem svelte-ltb9q9");
37281
37261
  },
37282
- m(x, P) {
37283
- k(x, t, P), G(t, r), G(r, n), n.innerHTML = i, G(r, o), G(r, a), G(a, s), s.checked = /*categoryToggle*/
37262
+ m(C, P) {
37263
+ v(C, t, P), G(t, r), G(r, n), n.innerHTML = i, G(r, o), G(r, a), G(a, s), s.checked = /*categoryToggle*/
37284
37264
  e[11][
37285
37265
  /*category*/
37286
37266
  e[61].categoryTagCode
37287
37267
  ], G(a, h), G(a, u), G(t, l), G(t, d);
37288
- for (let E = 0; E < b.length; E += 1)
37289
- b[E] && b[E].m(d, null);
37290
- m || (v = [
37268
+ for (let k = 0; k < v$1.length; k += 1)
37269
+ v$1[k] && v$1[k].m(d, null);
37270
+ m || (b = [
37291
37271
  wt$1(s, "change", f),
37292
- wt$1(s, "change", p$1)
37272
+ wt$1(s, "change", g)
37293
37273
  ], m = !0);
37294
37274
  },
37295
- p(x, P) {
37296
- if (e = x, P[0] & /*$_, consentsCategories*/
37275
+ p(C, P) {
37276
+ if (e = C, P[0] & /*$_, consentsCategories*/
37297
37277
  65792 && i !== (i = /*$_*/
37298
37278
  (e[16](`${/*category*/
37299
37279
  e[61].categoryTagCode}__category`) || /*category*/
@@ -37304,26 +37284,26 @@ function Nt(e) {
37304
37284
  e[61].categoryTagCode
37305
37285
  ]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
37306
37286
  602896) {
37307
- _ = vt$1(
37287
+ _ = kt$1(
37308
37288
  /*playerConsents*/
37309
- e[9].filter(C)
37289
+ e[9].filter(S)
37310
37290
  );
37311
- let E;
37312
- for (E = 0; E < _.length; E += 1) {
37313
- const z = Et(e, _, E);
37314
- b[E] ? b[E].p(z, P) : (b[E] = wt(z), b[E].c(), b[E].m(d, null));
37291
+ let k;
37292
+ for (k = 0; k < _.length; k += 1) {
37293
+ const z = St(e, _, k);
37294
+ v$1[k] ? v$1[k].p(z, P) : (v$1[k] = Ht(z), v$1[k].c(), v$1[k].m(d, null));
37315
37295
  }
37316
- for (; E < b.length; E += 1)
37317
- b[E].d(1);
37318
- b.length = _.length;
37296
+ for (; k < v$1.length; k += 1)
37297
+ v$1[k].d(1);
37298
+ v$1.length = _.length;
37319
37299
  }
37320
37300
  },
37321
- d(x) {
37322
- x && y(t), bt$1(b, x), m = !1, p(v);
37301
+ d(C) {
37302
+ C && y(t), bt$1(v$1, C), m = !1, p(b);
37323
37303
  }
37324
37304
  };
37325
37305
  }
37326
- function At(e) {
37306
+ function Bt(e) {
37327
37307
  let t, r, n, i, o;
37328
37308
  return {
37329
37309
  c() {
@@ -37333,7 +37313,7 @@ function At(e) {
37333
37313
  ), xt$1(r, "class", "svelte-ltb9q9"), B$1(i, "class", "ErrorMessage svelte-ltb9q9"), B$1(t, "class", "ConsentErrorContainer svelte-ltb9q9");
37334
37314
  },
37335
37315
  m(a, s) {
37336
- k(a, t, s), G(t, r), G(t, n), G(t, i), G(i, o);
37316
+ v(a, t, s), G(t, r), G(t, n), G(t, i), G(i, o);
37337
37317
  },
37338
37318
  p(a, s) {
37339
37319
  s[0] & /*errorMessage*/
@@ -37348,23 +37328,27 @@ function At(e) {
37348
37328
  }
37349
37329
  };
37350
37330
  }
37351
- function Oi(e) {
37331
+ function ji(e) {
37352
37332
  let t, r;
37353
37333
  function n(a, s) {
37354
37334
  if (
37355
37335
  /*isLoading*/
37356
37336
  a[10]
37357
- ) return zi;
37337
+ )
37338
+ return Ii;
37358
37339
  if (
37359
37340
  /*fatalError*/
37360
37341
  a[7]
37361
- ) return Bi;
37342
+ )
37343
+ return Oi;
37362
37344
  if (
37363
37345
  /*session*/
37364
37346
  a[0]
37365
- ) return Pi;
37347
+ )
37348
+ return zi;
37366
37349
  if (!/*session*/
37367
- a[0]) return Hi;
37350
+ a[0])
37351
+ return Bi;
37368
37352
  }
37369
37353
  let i = n(e), o = i && i(e);
37370
37354
  return {
@@ -37372,7 +37356,7 @@ function Oi(e) {
37372
37356
  t = w$1("div"), r = w$1("div"), o && o.c(), B$1(r, "class", "ConsentsContainer svelte-ltb9q9"), B$1(t, "class", gt$1("") + " svelte-ltb9q9");
37373
37357
  },
37374
37358
  m(a, s) {
37375
- k(a, t, s), G(t, r), o && o.m(r, null), e[32](r);
37359
+ v(a, t, s), G(t, r), o && o.m(r, null), e[32](r);
37376
37360
  },
37377
37361
  p(a, s) {
37378
37362
  i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
@@ -37384,189 +37368,190 @@ function Oi(e) {
37384
37368
  }
37385
37369
  };
37386
37370
  }
37387
- function Ii(e, t, r) {
37371
+ function Li(e, t, r) {
37388
37372
  let n;
37389
- _t$1(e, Ti, (c) => r(16, n = c));
37390
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: v = "false" } = t, f, p = !1, C = !1, _ = "", b = "", x = "", P = "", E$1 = [], z = [], O = [], ae = !0, _e = !0, G = {}, be = {}, W$1 = {}, U = {}, se, ve, R = {
37373
+ _t$1(e, wi, (c) => r(16, n = c));
37374
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: b = "false" } = t, f, g, S = !1, _ = !1, v = "", C = "", P = "", k = "", z = [], W$1 = [], O = [], se = !0, be = !0, G = {}, ve = {}, Z = {}, U = {}, le, ye, R = {
37391
37375
  none: { key: "0", value: "None" },
37392
37376
  accepted: { key: "1", value: "Accepted" },
37393
37377
  expired: { key: "2", value: "Expired" },
37394
37378
  denied: { key: "3", value: "Denied" },
37395
37379
  suspended: { key: "4", value: "Suspended" }
37396
- }, ye = !1;
37397
- Object.keys(bt).forEach((c) => {
37398
- _t(c, bt[c]);
37380
+ }, Ee = !1;
37381
+ Object.keys(Et).forEach((c) => {
37382
+ yt(c, Et[c]);
37399
37383
  });
37400
- const ar = () => {
37401
- Mi(l);
37402
- }, sr = () => {
37384
+ const cr = () => {
37385
+ Ni(l);
37386
+ }, ur = () => {
37403
37387
  let c = new URL(m);
37404
- fetch(c.href).then((g) => g.json()).then((g) => {
37405
- Object.keys(g).forEach((M) => {
37406
- _t(M, g[M]);
37388
+ fetch(c.href).then((p) => p.json()).then((p) => {
37389
+ Object.keys(p).forEach((T) => {
37390
+ yt(T, p[T]);
37407
37391
  });
37408
- }).catch((g) => {
37409
- console.log(g);
37392
+ }).catch((p) => {
37393
+ console.log(p);
37410
37394
  });
37411
- }, lr = () => {
37412
- i && (_ = i, C = !0), o && (b = o);
37413
- }, Ee = (c, g = !1) => {
37414
- g ? r(7, P = c) : (pr(), r(6, x = c));
37415
- }, le = async (c, g, M, y = !1) => {
37395
+ }, hr = () => {
37396
+ i && (v = i, _ = !0), o && (C = o);
37397
+ }, ke = (c, p = !1) => {
37398
+ p ? r(7, k = c) : (_r(), r(6, P = c));
37399
+ }, ce = async (c, p, T, y = !1) => {
37416
37400
  try {
37417
- const T = await fetch(c, M);
37418
- if (!T.ok)
37419
- throw new Error(n(g));
37420
- const I = await T.json();
37421
- return C ? I : I.filter((F) => F.showOnRegister === !0);
37422
- } catch (T) {
37423
- throw Ee(
37424
- T instanceof TypeError ? n(g) : T.message,
37401
+ const M = await fetch(c, T);
37402
+ if (!M.ok)
37403
+ throw new Error(n(p));
37404
+ const I = await M.json();
37405
+ return _ ? I : I.filter((F) => F.showOnRegister === !0);
37406
+ } catch (M) {
37407
+ throw ke(
37408
+ M instanceof TypeError ? n(p) : M.message,
37425
37409
  y
37426
- ), T;
37410
+ ), M;
37427
37411
  }
37428
- }, cr = async () => {
37412
+ }, dr = async () => {
37429
37413
  try {
37430
- let c = [], g = [];
37431
- if (C ? [c, g] = await $e() : c = await $e(), r(10, ae = !1), z = [...c], r(8, E$1 = hr(z).sort((M, y) => M.categoryTagCode.localeCompare(y.categoryTagCode))), r(11, G = dr(E$1)), be = { ...G }, r(9, O = [...g]), z.forEach((M) => {
37432
- let y = O.find((T) => T.tagCode === M.tagCode);
37414
+ let c = [], p = [];
37415
+ if (_ ? [c, p] = await rt() : c = await rt(), r(10, se = !1), W$1 = [...c], r(8, z = gr(W$1).sort((T, y) => T.categoryTagCode.localeCompare(y.categoryTagCode))), r(11, G = pr(z)), ve = { ...G }, r(9, O = [...p]), W$1.forEach((T) => {
37416
+ let y = O.find((M) => M.tagCode === T.tagCode);
37433
37417
  y || (y = {
37434
- ...M,
37418
+ ...T,
37435
37419
  status: R.denied.value
37436
- }, O.push(y)), y.description = M.description, y.orderNumber = M.orderNumber;
37437
- }), v === "true") {
37438
- if (r(9, O = O.filter((M) => M.status === R.expired.value)), O.length !== 0) return;
37439
- Ee(n("wrongModalConfig"), !0);
37420
+ }, O.push(y)), y.description = T.description, y.orderNumber = T.orderNumber;
37421
+ }), b === "true") {
37422
+ if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
37423
+ return;
37424
+ ke(n("wrongModalConfig"), !0);
37440
37425
  }
37441
- mr();
37426
+ fr();
37442
37427
  } catch (c) {
37443
- throw r(10, ae = !1), Ee(
37428
+ throw r(10, se = !1), ke(
37444
37429
  c instanceof TypeError ? n("invalidUrl") : c.message,
37445
37430
  !0
37446
37431
  ), c;
37447
37432
  }
37448
- }, $e = async () => {
37433
+ }, rt = async () => {
37449
37434
  const c = new URL(`${a}/api/v1/gm/consents`);
37450
- if (c.searchParams.append("Status", "Active"), !C)
37451
- return await le(c.href, "fetchConsentsError", { method: "GET" }, !0);
37452
- const g = new URL(`${a}/api/v1/gm/user-consents/${b}`);
37435
+ if (c.searchParams.append("Status", "Active"), !_)
37436
+ return await ce(c.href, "fetchConsentsError", { method: "GET" }, !0);
37437
+ const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
37453
37438
  return await Promise.all([
37454
- le(c.href, "fetchConsentsError", { method: "GET" }, !0),
37455
- le(g.href, "fetchPlayerConsentsError", {
37439
+ ce(c.href, "fetchConsentsError", { method: "GET" }, !0),
37440
+ ce(p.href, "fetchPlayerConsentsError", {
37456
37441
  method: "GET",
37457
37442
  headers: {
37458
- "X-SessionId": _,
37443
+ "X-SessionId": v,
37459
37444
  "Content-Type": "application/json"
37460
37445
  }
37461
37446
  })
37462
37447
  ]);
37463
- }, ur = () => {
37464
- ye = !1;
37465
- const c = new URL(`${a}/api/v2/gm/legislation/consents`), g = {
37448
+ }, mr = () => {
37449
+ Ee = !1;
37450
+ const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
37466
37451
  "Content-Type": "application/json",
37467
37452
  Accept: "application/json"
37468
- }, M = { method: "GET", headers: g };
37469
- fetch(c.href, M).then((y) => y.ok ? y.json() : (ye = !0, y.json().then((T) => (console.error(T), ke(T))))).then((y) => {
37470
- if (!ye) {
37471
- if (z = y, localStorage.getItem("playerConsents")) {
37453
+ }, T = { method: "GET", headers: p };
37454
+ fetch(c.href, T).then((y) => y.ok ? y.json() : (Ee = !0, y.json().then((M) => (console.error(M), Ce(M))))).then((y) => {
37455
+ if (!Ee) {
37456
+ if (W$1 = y, localStorage.getItem("playerConsents")) {
37472
37457
  try {
37473
37458
  r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
37474
- } catch (T) {
37475
- return console.error(T), ke(T);
37459
+ } catch (M) {
37460
+ return console.error(M), Ce(M);
37476
37461
  }
37477
37462
  return;
37478
37463
  }
37479
- return r(9, O = z.map((T) => ({
37480
- id: T.id,
37464
+ return r(9, O = W$1.map((M) => ({
37465
+ id: M.id,
37481
37466
  status: R.denied.key,
37482
- friendlyName: T.friendlyName,
37483
- tagCode: T.tagCode,
37467
+ friendlyName: M.friendlyName,
37468
+ tagCode: M.tagCode,
37484
37469
  selected: null,
37485
- mustAccept: T.mustAccept
37470
+ mustAccept: M.mustAccept
37486
37471
  }))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
37487
37472
  }
37488
- }).catch((y) => (console.error(y), ke(y))).finally(() => {
37489
- r(10, ae = !1);
37473
+ }).catch((y) => (console.error(y), Ce(y))).finally(() => {
37474
+ r(10, se = !1);
37490
37475
  });
37491
- }, hr = (c) => {
37492
- const g = /* @__PURE__ */ new Map();
37493
- return c.forEach((M) => {
37494
- g.has(M.category.categoryTagCode) || g.set(M.category.categoryTagCode, M.category);
37495
- }), Array.from(g.values());
37496
- }, dr = (c) => {
37497
- const g = localStorage.getItem("categoryToggle" + b);
37498
- if (g === null) {
37499
- const M = c.reduce(
37500
- (y, T) => (y[T.categoryTagCode] = !1, y),
37476
+ }, gr = (c) => {
37477
+ const p = /* @__PURE__ */ new Map();
37478
+ return c.forEach((T) => {
37479
+ p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
37480
+ }), Array.from(p.values());
37481
+ }, pr = (c) => {
37482
+ const p = localStorage.getItem("categoryToggle" + C);
37483
+ if (p === null) {
37484
+ const T = c.reduce(
37485
+ (y, M) => (y[M.categoryTagCode] = !1, y),
37501
37486
  {}
37502
37487
  );
37503
- return localStorage.setItem("categoryToggle" + b, JSON.stringify(M)), M;
37488
+ return localStorage.setItem("categoryToggle" + C, JSON.stringify(T)), T;
37504
37489
  } else
37505
- return JSON.parse(g);
37506
- }, mr = () => {
37490
+ return JSON.parse(p);
37491
+ }, fr = () => {
37507
37492
  O.forEach((c) => {
37508
- r(12, W$1[c.tagCode] = c.status === R.accepted.value, W$1);
37509
- }), r(13, U = { ...W$1 });
37510
- }, pr = () => {
37511
- r(13, U = { ...W$1 }), r(11, G = { ...be });
37512
- }, gr = async () => {
37513
- if (!_e)
37493
+ r(12, Z[c.tagCode] = c.status === R.accepted.value, Z);
37494
+ }), r(13, U = { ...Z });
37495
+ }, _r = () => {
37496
+ r(13, U = { ...Z }), r(11, G = { ...ve });
37497
+ }, br = async () => {
37498
+ if (!be)
37514
37499
  return;
37515
- _e = !1;
37516
- const c = [], g = [];
37500
+ be = !1;
37501
+ const c = [], p = [];
37517
37502
  if (Object.keys(U).forEach((y) => {
37518
- const T = O.find((I) => I.tagCode === y);
37519
- U[y] !== W$1[y] && (T ? c.push({
37503
+ const M = O.find((I) => I.tagCode === y);
37504
+ U[y] !== Z[y] && (M ? c.push({
37520
37505
  tagCode: y,
37521
37506
  status: U[y] ? R.accepted.value : R.denied.value
37522
- }) : g.push({
37507
+ }) : p.push({
37523
37508
  tagCode: y,
37524
37509
  status: U[y] ? R.accepted.value : R.denied.value
37525
37510
  }));
37526
- }), !C) {
37527
- localStorage.setItem("categoryToggle" + b, JSON.stringify(G)), be = { ...G }, window.postMessage(
37511
+ }), !_) {
37512
+ localStorage.setItem("categoryToggle" + C, JSON.stringify(G)), ve = { ...G }, window.postMessage(
37528
37513
  {
37529
37514
  type: "NewPlayerConsentData",
37530
- data: JSON.stringify(g)
37515
+ data: JSON.stringify(p)
37531
37516
  },
37532
37517
  window.location.href
37533
- ), _e = !0;
37518
+ ), be = !0;
37534
37519
  return;
37535
37520
  }
37536
- const M = new URL(`${a}/api/v1/gm/user-consents/${b}`);
37521
+ const T = new URL(`${a}/api/v1/gm/user-consents/${C}`);
37537
37522
  try {
37538
37523
  const y = await Promise.allSettled([
37539
- g.length > 0 && le(M.href, "updateConsentsError", {
37524
+ p.length > 0 && ce(T.href, "updateConsentsError", {
37540
37525
  method: "POST",
37541
37526
  headers: {
37542
- "X-SessionId": _,
37527
+ "X-SessionId": v,
37543
37528
  "Content-Type": "application/json"
37544
37529
  },
37545
- body: JSON.stringify({ userConsents: g })
37530
+ body: JSON.stringify({ userConsents: p })
37546
37531
  }),
37547
- c.length > 0 && le(M.href, "updateConsentsError", {
37532
+ c.length > 0 && ce(T.href, "updateConsentsError", {
37548
37533
  method: "PATCH",
37549
37534
  headers: {
37550
- "X-SessionId": _,
37535
+ "X-SessionId": v,
37551
37536
  "Content-Type": "application/json"
37552
37537
  },
37553
37538
  body: JSON.stringify({ userConsents: c })
37554
37539
  })
37555
37540
  ]);
37556
- y.forEach((T, I) => {
37557
- if (T.status === "rejected" || T.value.ok === !1) {
37558
- const F = I < g.length ? g[I] : c[I - g.length];
37559
- r(13, U[F.tagCode] = W$1[F.tagCode], U);
37541
+ y.forEach((M, I) => {
37542
+ if (M.status === "rejected" || M.value.ok === !1) {
37543
+ const F = I < p.length ? p[I] : c[I - p.length];
37544
+ r(13, U[F.tagCode] = Z[F.tagCode], U);
37560
37545
  }
37561
- }), y.every((T) => T.status === "fulfilled") && (localStorage.setItem("categoryToggle" + b, JSON.stringify(G)), be = { ...G }, window.postMessage(
37546
+ }), y.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(G)), ve = { ...G }, window.postMessage(
37562
37547
  {
37563
37548
  type: "PlayerConsentUpdated",
37564
37549
  success: !0
37565
37550
  },
37566
37551
  window.location.href
37567
- ), r(12, W$1 = { ...U }));
37552
+ ), r(12, Z = { ...U }));
37568
37553
  } catch (y) {
37569
- Ee(y instanceof TypeError ? n("saveChangesError") : y.message), window.postMessage(
37554
+ ke(y instanceof TypeError ? n("saveChangesError") : y.message), window.postMessage(
37570
37555
  {
37571
37556
  type: "PlayerConsentUpdated",
37572
37557
  success: !1
@@ -37574,57 +37559,58 @@ function Ii(e, t, r) {
37574
37559
  window.location.href
37575
37560
  );
37576
37561
  } finally {
37577
- _e = !0, r(14, se = !1);
37562
+ be = !0, r(14, le = !1);
37578
37563
  }
37579
- }, fr = (c) => {
37580
- const g = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
37564
+ }, vr = (c) => {
37565
+ const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
37581
37566
  "Content-Type": "application/json",
37582
37567
  Accept: "application/json"
37583
37568
  }, y = {
37584
37569
  playerConsents: O,
37585
37570
  registrationId: c
37586
- }, T = {
37571
+ }, M = {
37587
37572
  method: "POST",
37588
37573
  body: JSON.stringify(y),
37589
- headers: M
37574
+ headers: T
37590
37575
  };
37591
- fetch(g.href, T).then((I) => {
37592
- I.ok || (ye = !0);
37593
- }).catch((I) => (console.error(I), ke(I))).finally(() => {
37594
- r(10, ae = !1);
37576
+ fetch(p.href, M).then((I) => {
37577
+ I.ok || (Ee = !0);
37578
+ }).catch((I) => (console.error(I), Ce(I))).finally(() => {
37579
+ r(10, se = !1);
37595
37580
  });
37596
- }, et = (c) => {
37597
- O.filter((g) => g.category.categoryTagCode === c).forEach((g) => {
37598
- g.status = g.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[g.tagCode] = G[c] || !1, U);
37599
- }), r(14, se = tt());
37600
- }, Be = (c, g, M) => {
37601
- const y = O.find((F) => F.id === M), T = g ? "value" : "key";
37581
+ }, nt = (c) => {
37582
+ O.filter((p) => p.category.categoryTagCode === c).forEach((p) => {
37583
+ p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = G[c] || !1, U);
37584
+ }), r(14, le = it());
37585
+ }, ze = (c, p, T) => {
37586
+ const y = O.find((F) => F.id === T), M = p ? "value" : "key";
37602
37587
  let I;
37603
- if (!g && y.mustAccept) {
37604
- const F = Array.from(ve.children);
37605
- for (const ce of F)
37606
- if (I = Array.from(ce.children).find((Mr) => Mr.getAttribute("id") === `checkBoxError__${y.tagCode}`), I) break;
37588
+ if (!p && y.mustAccept) {
37589
+ const F = Array.from(ye.children);
37590
+ for (const ue of F)
37591
+ if (I = Array.from(ue.children).find((Ar) => Ar.getAttribute("id") === `checkBoxError__${y.tagCode}`), I)
37592
+ break;
37607
37593
  }
37608
- if (y.status === R.accepted[T] ? (y.status = R.denied[T], I && (I.innerHTML = n("requiredError"))) : (y.status = R.accepted[T], I && (I.innerHTML = "")), g) {
37594
+ if (y.status === R.accepted[M] ? (y.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (y.status = R.accepted[M], I && (I.innerHTML = "")), p) {
37609
37595
  r(13, U[y.tagCode] = !U[y.tagCode], U);
37610
- const F = O.filter((ce) => ce.category.categoryTagCode === g.categoryTagCode).every((ce) => ce.status !== R.denied.value);
37611
- r(11, G[g.categoryTagCode] = F, G);
37596
+ const F = O.filter((ue) => ue.category.categoryTagCode === p.categoryTagCode).every((ue) => ue.status !== R.denied.value);
37597
+ r(11, G[p.categoryTagCode] = F, G);
37612
37598
  }
37613
- _r();
37614
- }, _r = ((c, g) => {
37615
- let M;
37599
+ yr();
37600
+ }, yr = ((c, p) => {
37601
+ let T;
37616
37602
  return function(...y) {
37617
- const T = this;
37618
- clearTimeout(M), M = setTimeout(
37603
+ const M = this;
37604
+ clearTimeout(T), T = setTimeout(
37619
37605
  () => {
37620
- c.apply(T, y);
37606
+ c.apply(M, y);
37621
37607
  },
37622
- g
37608
+ p
37623
37609
  );
37624
37610
  };
37625
- })(() => br(), 500), br = () => {
37626
- r(14, se = tt()), i || (window.postMessage({ type: "isConsentsValid", isValid: se }), localStorage.setItem("playerConsents", JSON.stringify(O)));
37627
- }, tt = () => O.filter((g) => O.some((M) => g.tagCode === M.tagCode && M.mustAccept && (g.status === R.denied.key || g.status === R.denied.value))).length === 0, ke = (c) => {
37611
+ })(() => Er(), 500), Er = () => {
37612
+ r(14, le = it()), i || (window.postMessage({ type: "isConsentsValid", isValid: le }), localStorage.setItem("playerConsents", JSON.stringify(O)));
37613
+ }, it = () => O.filter((p) => O.some((T) => p.tagCode === T.tagCode && T.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, Ce = (c) => {
37628
37614
  window.postMessage(
37629
37615
  {
37630
37616
  type: "WidgetNotification",
@@ -37632,46 +37618,46 @@ function Ii(e, t, r) {
37632
37618
  },
37633
37619
  window.location.href
37634
37620
  );
37635
- }, vr = (c) => {
37636
- c.data && c.data.type !== "setUpPlayerConsents" || fr(c.data.registerid);
37621
+ }, kr = (c) => {
37622
+ c.data && c.data.type !== "setUpPlayerConsents" || vr(c.data.registerid);
37637
37623
  };
37638
37624
  W(() => {
37639
37625
  setTimeout(
37640
37626
  () => {
37641
- r(25, p = !0);
37627
+ r(25, S = !0);
37642
37628
  },
37643
37629
  50
37644
37630
  );
37645
- const c = (g) => vr(g);
37631
+ const c = (p) => kr(p);
37646
37632
  return window.addEventListener("message", c), () => {
37647
- window.removeEventListener("message", c);
37633
+ window.emMessageBus && g && g.unsubscribe(), window.removeEventListener("message", c);
37648
37634
  };
37649
37635
  });
37650
- function yr(c) {
37636
+ function Cr(c) {
37651
37637
  G[c.categoryTagCode] = this.checked, r(11, G);
37652
37638
  }
37653
- const Er = (c) => et(c.categoryTagCode), kr = (c, g) => g.category.categoryTagCode === c.categoryTagCode, Cr = (c, g) => Be(g, c.category, c.id), Sr = (c, g) => Be(g, null, c.id);
37654
- function xr(c) {
37639
+ const Sr = (c) => nt(c.categoryTagCode), xr = (c, p) => p.category.categoryTagCode === c.categoryTagCode, Mr = (c, p) => ze(p, c.category, c.id), Tr = (c, p) => ze(p, null, c.id);
37640
+ function wr(c) {
37655
37641
  E[c ? "unshift" : "push"](() => {
37656
- ve = c, r(15, ve);
37642
+ ye = c, r(15, ye);
37657
37643
  });
37658
37644
  }
37659
- function Tr(c) {
37645
+ function Nr(c) {
37660
37646
  E[c ? "unshift" : "push"](() => {
37661
37647
  f = c, r(5, f);
37662
37648
  });
37663
37649
  }
37664
37650
  return e.$$set = (c) => {
37665
- "session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, v = c.modalconsents);
37651
+ "session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, b = c.modalconsents);
37666
37652
  }, e.$$.update = () => {
37667
37653
  e.$$.dirty[0] & /*isMounted, session*/
37668
- 33554433 && p && i && (lr(), cr()), e.$$.dirty[0] & /*session*/
37669
- 1 && (i || ur()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
37654
+ 33554433 && S && i && (hr(), dr()), e.$$.dirty[0] & /*session*/
37655
+ 1 && (i || mr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
37670
37656
  34 && s && f && ft$1(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
37671
- 36 && h && f && dt$1(f, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
37672
- 40 && u && f && at$1(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
37673
- 4194304 && l && ar(), e.$$.dirty[0] & /*translationurl*/
37674
- 8388608 && m && sr();
37657
+ 36 && h && f && dt$1(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
37658
+ 40 && f && at(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
37659
+ 4194304 && l && cr(), e.$$.dirty[0] & /*translationurl*/
37660
+ 8388608 && m && ur();
37675
37661
  }, [
37676
37662
  i,
37677
37663
  s,
@@ -37679,42 +37665,42 @@ function Ii(e, t, r) {
37679
37665
  u,
37680
37666
  d,
37681
37667
  f,
37682
- x,
37683
37668
  P,
37684
- E$1,
37669
+ k,
37670
+ z,
37685
37671
  O,
37686
- ae,
37672
+ se,
37687
37673
  G,
37688
- W$1,
37674
+ Z,
37689
37675
  U,
37690
- se,
37691
- ve,
37676
+ le,
37677
+ ye,
37692
37678
  n,
37693
- gr,
37694
- et,
37695
- Be,
37679
+ br,
37680
+ nt,
37681
+ ze,
37696
37682
  o,
37697
37683
  a,
37698
37684
  l,
37699
37685
  m,
37700
- v,
37701
- p,
37702
- yr,
37703
- Er,
37704
- kr,
37686
+ b,
37687
+ S,
37705
37688
  Cr,
37706
37689
  Sr,
37707
37690
  xr,
37708
- Tr
37691
+ Mr,
37692
+ Tr,
37693
+ wr,
37694
+ Nr
37709
37695
  ];
37710
37696
  }
37711
- class ji extends lt$1 {
37697
+ class Ri extends lt$1 {
37712
37698
  constructor(t) {
37713
37699
  super(), ct$1(
37714
37700
  this,
37715
37701
  t,
37716
- Ii,
37717
- Oi,
37702
+ Li,
37703
+ ji,
37718
37704
  z,
37719
37705
  {
37720
37706
  session: 0,
@@ -37728,7 +37714,7 @@ class ji extends lt$1 {
37728
37714
  translationurl: 23,
37729
37715
  modalconsents: 24
37730
37716
  },
37731
- Ai,
37717
+ Pi,
37732
37718
  [-1, -1, -1]
37733
37719
  );
37734
37720
  }
@@ -37793,7 +37779,7 @@ class ji extends lt$1 {
37793
37779
  this.$$set({ modalconsents: t }), _();
37794
37780
  }
37795
37781
  }
37796
- ot$1(ji, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
37782
+ ot(Ri, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
37797
37783
 
37798
37784
  function r(t) {
37799
37785
  return function(...n) {
@@ -37807,7 +37793,7 @@ function r(t) {
37807
37793
  };
37808
37794
  }
37809
37795
  customElements.define = r(customElements.define);
37810
- !customElements.get("player-consents") && customElements.define("player-consents", ji.element);
37796
+ !customElements.get("player-consents") && customElements.define("player-consents", Ri.element);
37811
37797
 
37812
37798
  const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
37813
37799
  const GeneralRegistrationStyle0 = generalRegistrationCss;
@@ -37817,36 +37803,6 @@ const GeneralRegistration = class {
37817
37803
  index.registerInstance(this, hostRef);
37818
37804
  this.registrationWidgetLoaded = index.createEvent(this, "registrationWidgetLoaded", 7);
37819
37805
  this.registrationStepUpdated = index.createEvent(this, "registrationStepUpdated", 7);
37820
- /**
37821
- * Currently selected language
37822
- */
37823
- this.language = 'en';
37824
- /**
37825
- * Client custom styling via inline styles
37826
- */
37827
- this.clientStyling = '';
37828
- /**
37829
- * Client custom styling via url
37830
- */
37831
- this.clientStylingUrl = '';
37832
- /**
37833
- * Translations via URL
37834
- */
37835
- this.translationUrl = '';
37836
- /**
37837
- * Affiliate code to be passed in and sent in the registration.
37838
- */
37839
- this.btag = null;
37840
- /**
37841
- * Boolean flag that tells inputs to emit an event on click.
37842
- */
37843
- this.emitOnClick = false;
37844
- this.isConsentValid = false;
37845
- this.isConsentReady = false;
37846
- this.isLoading = true;
37847
- this.forms = [];
37848
- this.limitStylingAppends = false;
37849
- this.autofilled = false;
37850
37806
  this.listOfInputValues = [];
37851
37807
  this.listOfInputValidity = [];
37852
37808
  this.listOfActions = [];
@@ -37874,6 +37830,25 @@ const GeneralRegistration = class {
37874
37830
  setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
37875
37831
  });
37876
37832
  };
37833
+ this.endpoint = undefined;
37834
+ this.language = 'en';
37835
+ this.clientStyling = '';
37836
+ this.clientStylingUrl = '';
37837
+ this.translationUrl = '';
37838
+ this.dateFormat = undefined;
37839
+ this.buttonInsideForm = undefined;
37840
+ this.btag = null;
37841
+ this.emitOnClick = false;
37842
+ this.errorMessage = undefined;
37843
+ this.isFormValid = undefined;
37844
+ this.isConsentValid = false;
37845
+ this.isConsentReady = false;
37846
+ this.isLoading = true;
37847
+ this.isLoadingPOST = undefined;
37848
+ this.registrationStep = undefined;
37849
+ this.forms = [];
37850
+ this.limitStylingAppends = false;
37851
+ this.autofilled = false;
37877
37852
  }
37878
37853
  sendStep() {
37879
37854
  this.registrationStepUpdated.emit(this.registrationStep);
@@ -38437,12 +38412,6 @@ const NumberInput = class {
38437
38412
  index.registerInstance(this, hostRef);
38438
38413
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
38439
38414
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
38440
- /**
38441
- * Client custom styling via inline style
38442
- */
38443
- this.clientStyling = '';
38444
- this.limitStylingAppends = false;
38445
- this.showTooltip = false;
38446
38415
  this.validationPattern = '';
38447
38416
  this.touched = false;
38448
38417
  this.handleInput = (event) => {
@@ -38467,6 +38436,24 @@ const NumberInput = class {
38467
38436
  sheet.innerHTML = this.clientStyling;
38468
38437
  this.stylingContainer.prepend(sheet);
38469
38438
  };
38439
+ this.name = undefined;
38440
+ this.displayName = undefined;
38441
+ this.placeholder = undefined;
38442
+ this.validation = undefined;
38443
+ this.defaultValue = undefined;
38444
+ this.autofilled = undefined;
38445
+ this.tooltip = undefined;
38446
+ this.language = undefined;
38447
+ this.emitValue = undefined;
38448
+ this.clientStyling = '';
38449
+ this.errorMessage = undefined;
38450
+ this.isValid = undefined;
38451
+ this.limitStylingAppends = false;
38452
+ this.showTooltip = false;
38453
+ }
38454
+ handleStylingChange(newValue, oldValue) {
38455
+ if (newValue !== oldValue)
38456
+ this.setClientStyling();
38470
38457
  }
38471
38458
  validityChanged() {
38472
38459
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -38544,10 +38531,11 @@ const NumberInput = class {
38544
38531
  if (this.touched) {
38545
38532
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
38546
38533
  }
38547
- return index.h("div", { key: '2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5', class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '0786901cd928bba86597180f058bff43fba522b6', class: 'number__wrapper--flex' }, index.h("label", { key: 'ff7f39306cef7aeba3e0e4508df03c5a945e748b', class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'dced91223621551472fee374d56f1ad7476f4191', class: 'number__wrapper--relative' }, this.tooltip &&
38548
- index.h("img", { key: 'a804a983e342e4d117126720a32c4c34a2b267dc', class: 'number__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: 'fd59afaedf7d9f761684b057a1809474d735cc26', ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: 'ca11558b5704b69311626736ab84a298449b98d7', class: 'number__error-message' }, this.errorMessage));
38534
+ return index.h("div", { key: '841265bba6b75cc61a0eac1450c3f5aa5f917a2e', class: `number__wrapper ${this.autofilled ? 'number__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '645c7817cf5a0bdc352de9d8c0698fde235aa6d3', class: 'number__wrapper--flex' }, index.h("label", { key: '3343cbbb8482b71cd152161a8d422f318f07f3fe', class: `number__label ${this.validation.mandatory ? 'number__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '1f3341b2127095870610fc0e0b4b5d220c5d2e2c', class: 'number__wrapper--relative' }, this.tooltip &&
38535
+ index.h("img", { key: '8bbe2fe9f62347cbcd37b753d4a1b0718dc39091', class: 'number__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: '100401abdc33069f34e27e0807c9f31ddf7e42ec', ref: (el) => this.inputReference = el, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${invalidClass}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: 'db1e0043bb9b6de2ad8e18f49f96152b9451b93c', class: 'number__error-message' }, this.errorMessage));
38549
38536
  }
38550
38537
  static get watchers() { return {
38538
+ "clientStyling": ["handleStylingChange"],
38551
38539
  "isValid": ["validityChanged"],
38552
38540
  "emitValue": ["emitValueHandler"]
38553
38541
  }; }
@@ -38662,7 +38650,7 @@ const InputFieldMixin = (superclass) =>
38662
38650
  // Do not validate when focusout is caused by document
38663
38651
  // losing focus, which happens on browser tab switch.
38664
38652
  if (!focused && document.hasFocus()) {
38665
- this._requestValidation();
38653
+ this.validate();
38666
38654
  }
38667
38655
  }
38668
38656
 
@@ -38677,7 +38665,7 @@ const InputFieldMixin = (superclass) =>
38677
38665
  super._onInput(event);
38678
38666
 
38679
38667
  if (this.invalid) {
38680
- this._requestValidation();
38668
+ this.validate();
38681
38669
  }
38682
38670
  }
38683
38671
 
@@ -38698,7 +38686,7 @@ const InputFieldMixin = (superclass) =>
38698
38686
  }
38699
38687
 
38700
38688
  if (this.invalid) {
38701
- this._requestValidation();
38689
+ this.validate();
38702
38690
  }
38703
38691
  }
38704
38692
  };
@@ -38892,6 +38880,24 @@ class TextField extends TextFieldMixin(ThemableMixin(ElementMixin(PolymerElement
38892
38880
  `;
38893
38881
  }
38894
38882
 
38883
+ static get properties() {
38884
+ return {
38885
+ /**
38886
+ * Maximum number of characters (in Unicode code points) that the user can enter.
38887
+ */
38888
+ maxlength: {
38889
+ type: Number,
38890
+ },
38891
+
38892
+ /**
38893
+ * Minimum number of characters (in Unicode code points) that the user can enter.
38894
+ */
38895
+ minlength: {
38896
+ type: Number,
38897
+ },
38898
+ };
38899
+ }
38900
+
38895
38901
  /** @protected */
38896
38902
  ready() {
38897
38903
  super.ready();
@@ -39332,17 +39338,6 @@ const PasswordInput = class {
39332
39338
  this.sendOriginalValidityState = index.createEvent(this, "sendOriginalValidityState", 7);
39333
39339
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
39334
39340
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
39335
- /**
39336
- * Default value for the input.
39337
- */
39338
- this.defaultValue = '';
39339
- /**
39340
- * Client custom styling via inline style
39341
- */
39342
- this.clientStyling = '';
39343
- this.limitStylingAppends = false;
39344
- this.showTooltip = false;
39345
- this.value = '';
39346
39341
  this.touched = false;
39347
39342
  this.originalValid = false;
39348
39343
  this.validationPattern = '';
@@ -39381,6 +39376,28 @@ const PasswordInput = class {
39381
39376
  sheet.innerHTML = this.clientStyling;
39382
39377
  this.stylingContainer.prepend(sheet);
39383
39378
  };
39379
+ this.name = undefined;
39380
+ this.displayName = undefined;
39381
+ this.placeholder = undefined;
39382
+ this.defaultValue = '';
39383
+ this.autofilled = undefined;
39384
+ this.tooltip = undefined;
39385
+ this.validation = undefined;
39386
+ this.language = undefined;
39387
+ this.emitValue = undefined;
39388
+ this.isDuplicateInput = undefined;
39389
+ this.clientStyling = '';
39390
+ this.isValid = undefined;
39391
+ this.errorMessage = undefined;
39392
+ this.limitStylingAppends = false;
39393
+ this.showTooltip = false;
39394
+ this.passwordComplexity = undefined;
39395
+ this.showPopup = undefined;
39396
+ this.value = '';
39397
+ }
39398
+ handleStylingChange(newValue, oldValue) {
39399
+ if (newValue !== oldValue)
39400
+ this.setClientStyling();
39384
39401
  }
39385
39402
  validityChanged() {
39386
39403
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -39540,11 +39557,12 @@ const PasswordInput = class {
39540
39557
  if (this.touched) {
39541
39558
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
39542
39559
  }
39543
- return index.h("div", { key: 'c704b51efdf53817beb1541b4794e0b11b490a24', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'e590afa403084ff95a8735ade400ab81ad16937f', class: 'password__wrapper--flex' }, index.h("label", { key: '9d8db00b59c4b9594538aeacee3ef5a0e678c0e9', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'bb39f6018cf688fafcd0b5bef91ba079edf09daf', class: 'password__wrapper--relative' }, this.tooltip &&
39544
- index.h("img", { key: 'd8dbd086da34a8c7db9b5826654530bdb888c927', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: 'ae1c212d663fe379561b1c514087629409196ac3', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), index.h("small", { key: '2fa1e25239a7314399c16b2f897873b7a31e9f77', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
39560
+ return index.h("div", { key: '36d21c63dcd15b6de2d2de417ce97b520493cd16', class: `password__wrapper ${this.autofilled ? 'password__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '3de600f4ccbf2ffe7a8a8858e9d5a483701dd4d7', class: 'password__wrapper--flex' }, index.h("label", { key: '74fee343f4d6adbbb22e88c5d51d3a471979d42e', class: `password__label ${this.validation.mandatory ? 'password__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'd1f30d776c5612b1a5581859b929bee171105bf5', class: 'password__wrapper--relative' }, this.tooltip &&
39561
+ index.h("img", { key: '932201990b5fa67f448d4ab8ca7f844f757d5e47', class: 'password__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-password-field", { key: '83f00cb4452b60fd883efcd742d6eb463a8fc729', type: "password", id: `${this.name}__input`, class: `password__input ${invalidClass}`, name: this.name, readOnly: this.autofilled, value: this.defaultValue, required: this.validation.mandatory, maxlength: this.validation.maxLength, minlength: this.validation.minLength, pattern: this.validationPattern, placeholder: `${this.placeholder}`, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus }), index.h("small", { key: '0f6f7ba5e9ec6f492f22a46ac77c7977f7a8e835', class: 'password__error-message' }, this.errorMessage), this.passwordComplexity && this.showPopup && !this.isDuplicateInput && this.renderComplexityPopup());
39545
39562
  }
39546
39563
  get element() { return index.getElement(this); }
39547
39564
  static get watchers() { return {
39565
+ "clientStyling": ["handleStylingChange"],
39548
39566
  "isValid": ["validityChanged"],
39549
39567
  "value": ["valueChanged"],
39550
39568
  "emitValue": ["emitValueHandler"]
@@ -39560,17 +39578,27 @@ const RadioInput = class {
39560
39578
  index.registerInstance(this, hostRef);
39561
39579
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
39562
39580
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
39563
- /**
39564
- * Client custom styling via inline style
39565
- */
39566
- this.clientStyling = '';
39567
- this.limitStylingAppends = false;
39568
- this.showTooltip = false;
39569
39581
  this.setClientStyling = () => {
39570
39582
  let sheet = document.createElement('style');
39571
39583
  sheet.innerHTML = this.clientStyling;
39572
39584
  this.stylingContainer.prepend(sheet);
39573
39585
  };
39586
+ this.name = undefined;
39587
+ this.displayName = undefined;
39588
+ this.optionsGroup = undefined;
39589
+ this.validation = undefined;
39590
+ this.tooltip = undefined;
39591
+ this.language = undefined;
39592
+ this.emitValue = undefined;
39593
+ this.clientStyling = '';
39594
+ this.errorMessage = undefined;
39595
+ this.isValid = undefined;
39596
+ this.limitStylingAppends = false;
39597
+ this.showTooltip = false;
39598
+ }
39599
+ handleStylingChange(newValue, oldValue) {
39600
+ if (newValue !== oldValue)
39601
+ this.setClientStyling();
39574
39602
  }
39575
39603
  validityChanged() {
39576
39604
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -39625,10 +39653,11 @@ const RadioInput = class {
39625
39653
  return null;
39626
39654
  }
39627
39655
  render() {
39628
- return index.h("fieldset", { key: '3d90735f7dc8fef6a96dc85b8f9ba22880cb205f', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("legend", { key: '9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { key: '2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
39629
- index.h("img", { key: '4f3cbf341f1c559bbdf44ca5d169be7a64d46e97', class: 'radio__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
39656
+ return index.h("fieldset", { key: '29ff8fcc910622397750532629ac0c202c9726ba', class: `radio__fieldset ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("legend", { key: 'cdab5b331863f3d31aab50c1d95b5a8845d53329', class: 'radio__legend' }, this.displayName, ":"), this.optionsGroup.map(option => index.h("div", { class: 'radio__wrapper' }, index.h("input", { type: "radio", class: 'radio__input', id: `${option.label}__input`, ref: (el) => this.inputReference = el, value: option.value, name: this.name, required: this.validation.mandatory, onClick: (e) => this.handleClick(e) }), index.h("label", { htmlFor: `${option.label}__input` }, option.label))), index.h("small", { key: 'bd6cd89510e7ace1348b391f3ce9ba334a03e695', class: 'radio__error-message' }, this.errorMessage), this.tooltip &&
39657
+ index.h("img", { key: '27036c51c89612dbb87e5248355d3a5466c49705', class: 'radio__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
39630
39658
  }
39631
39659
  static get watchers() { return {
39660
+ "clientStyling": ["handleStylingChange"],
39632
39661
  "isValid": ["validityChanged"],
39633
39662
  "emitValue": ["emitValueHandler"]
39634
39663
  }; }
@@ -43914,7 +43943,6 @@ const ComboBoxMixin = (subclass) =>
43914
43943
  /**
43915
43944
  * Override LitElement lifecycle callback to handle filter property change.
43916
43945
  * @param {Object} props
43917
- * @protected
43918
43946
  */
43919
43947
  updated(props) {
43920
43948
  super.updated(props);
@@ -44636,7 +44664,7 @@ const ComboBoxMixin = (subclass) =>
44636
44664
  // Do not validate when focusout is caused by document
44637
44665
  // losing focus, which happens on browser tab switch.
44638
44666
  if (document.hasFocus()) {
44639
- this._requestValidation();
44667
+ this.validate();
44640
44668
  }
44641
44669
 
44642
44670
  if (this.value !== this._lastCommittedValue) {
@@ -45186,20 +45214,6 @@ const SelectInput = class {
45186
45214
  index.registerInstance(this, hostRef);
45187
45215
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
45188
45216
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
45189
- /**
45190
- * Default value for the input.
45191
- */
45192
- this.defaultValue = '';
45193
- /**
45194
- * Options of the input.
45195
- */
45196
- this.options = [];
45197
- /**
45198
- * Client custom styling via inline style
45199
- */
45200
- this.clientStyling = '';
45201
- this.limitStylingAppends = false;
45202
- this.showTooltip = false;
45203
45217
  this.touched = false;
45204
45218
  this.handleChange = (event) => {
45205
45219
  this.touched = true;
@@ -45228,6 +45242,26 @@ const SelectInput = class {
45228
45242
  sheet.innerHTML = this.clientStyling;
45229
45243
  this.stylingContainer.prepend(sheet);
45230
45244
  };
45245
+ this.name = undefined;
45246
+ this.displayName = undefined;
45247
+ this.placeholder = undefined;
45248
+ this.action = undefined;
45249
+ this.defaultValue = '';
45250
+ this.autofilled = undefined;
45251
+ this.tooltip = undefined;
45252
+ this.options = [];
45253
+ this.validation = undefined;
45254
+ this.language = undefined;
45255
+ this.emitValue = undefined;
45256
+ this.clientStyling = '';
45257
+ this.errorMessage = undefined;
45258
+ this.isValid = undefined;
45259
+ this.limitStylingAppends = false;
45260
+ this.showTooltip = false;
45261
+ }
45262
+ handleStylingChange(newValue, oldValue) {
45263
+ if (newValue !== oldValue)
45264
+ this.setClientStyling();
45231
45265
  }
45232
45266
  validityChanged() {
45233
45267
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -45320,11 +45354,12 @@ const SelectInput = class {
45320
45354
  if (this.touched) {
45321
45355
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
45322
45356
  }
45323
- return index.h("div", { key: '3d298b9709617233adacd88b8acb7d6298d35627', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '9ba53148a200b925da11ad0dea5589e9634ffb03', class: 'select__wrapper--flex' }, index.h("label", { key: 'eb2fa2233926ada4da750e47304325d0d7ea3985', class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("div", { key: '3cbe968f9a7c612d0b8d0517621a933cccd1bd58', class: 'select__wrapper--relative' }, this.tooltip &&
45324
- index.h("img", { key: '9fa9be645ed72897a95705b0e17b3aee855eb6d4', class: 'select__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-combo-box", { key: 'f596a5fa5b480791080dfa63359ed30eeabfaa02', name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleChange, onBlur: this.handleBlur }), index.h("small", { key: 'a9c652406489ba1d23497c55aa14e7b67fa701bd', class: 'select__error-message' }, this.errorMessage));
45357
+ return index.h("div", { key: 'f02c73635c87a1937f4718c9de8df3aae8397815', class: `select__wrapper ${this.autofilled ? 'select__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '26bf79a073dd4c84570e380b1f36bfe848fec568', class: 'select__wrapper--flex' }, index.h("label", { key: '6eaafabe58a2dd4e1604ac2e3d55d001e2c4bc7c', class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`), index.h("div", { key: 'a1de9c4bd3dd4158b26004c6df9dca5915f73978', class: 'select__wrapper--relative' }, this.tooltip &&
45358
+ index.h("img", { key: '5cb869c82f53a463c91cd060fad5520d2fbc3d0d', class: 'select__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("vaadin-combo-box", { key: '2e94c1faa107657034a98d70b1e98d5c5ab5caa5', name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass} ${this.autofilled ? 'select__input--autofilled' : ''}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleChange, onBlur: this.handleBlur }), index.h("small", { key: '2c8162576d30265ea49cdc6d99071f614d833d7e', class: 'select__error-message' }, this.errorMessage));
45325
45359
  }
45326
45360
  get element() { return index.getElement(this); }
45327
45361
  static get watchers() { return {
45362
+ "clientStyling": ["handleStylingChange"],
45328
45363
  "isValid": ["validityChanged"],
45329
45364
  "emitValue": ["emitValueHandler"]
45330
45365
  }; }
@@ -45339,12 +45374,6 @@ const TelInput = class {
45339
45374
  index.registerInstance(this, hostRef);
45340
45375
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
45341
45376
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
45342
- /**
45343
- * Client custom styling via inline style
45344
- */
45345
- this.clientStyling = '';
45346
- this.limitStylingAppends = false;
45347
- this.showTooltip = false;
45348
45377
  this.validationPattern = '';
45349
45378
  this.touched = false;
45350
45379
  this.handleInput = (event) => {
@@ -45370,6 +45399,26 @@ const TelInput = class {
45370
45399
  sheet.innerHTML = this.clientStyling;
45371
45400
  this.stylingContainer.prepend(sheet);
45372
45401
  };
45402
+ this.name = undefined;
45403
+ this.displayName = undefined;
45404
+ this.placeholder = undefined;
45405
+ this.showLabels = undefined;
45406
+ this.action = undefined;
45407
+ this.validation = undefined;
45408
+ this.defaultValue = undefined;
45409
+ this.autofilled = undefined;
45410
+ this.tooltip = undefined;
45411
+ this.language = undefined;
45412
+ this.emitValue = undefined;
45413
+ this.clientStyling = '';
45414
+ this.isValid = undefined;
45415
+ this.errorMessage = undefined;
45416
+ this.limitStylingAppends = false;
45417
+ this.showTooltip = false;
45418
+ }
45419
+ handleStylingChange(newValue, oldValue) {
45420
+ if (newValue !== oldValue)
45421
+ this.setClientStyling();
45373
45422
  }
45374
45423
  validityChanged() {
45375
45424
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -45481,10 +45530,11 @@ const TelInput = class {
45481
45530
  if (this.touched) {
45482
45531
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
45483
45532
  }
45484
- return index.h("div", { key: '5febd36c339710683111039d477196daac87853c', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'fb779beee03992b23478ffcaac85095420048ceb', class: 'tel__wrapper--flex-label' }, index.h("label", { key: '5b69271c1c8bf403a003d765adb40a553e09466e', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: '040c487308231459fc92eba2e643a80639df09d6', class: 'tel__wrapper--relative' }, this.tooltip &&
45485
- index.h("img", { key: '91efd4656c718c75e5047413daf10c22c37e8f93', class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("div", { key: '6215f80b6bccb3dfb03dbbc485c850725633627c', class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { key: '3b7b1ef3415619c51d74f5fc7c5e034acb8f037f', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), index.h("input", { key: '886553206896c367ba96f015d81b44ea86f741ea', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), index.h("small", { key: 'd4c88d386c3342c789527d925e9cd061494b785c', class: 'tel__error-message' }, this.errorMessage));
45533
+ return index.h("div", { key: 'f0f70d8568ba083ee19f9e73e5921104f599e15f', class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '8da9e1c2a6b3ca19caff07540f0218266de22bb2', class: 'tel__wrapper--flex-label' }, index.h("label", { key: 'd0d90bc96e3ea853f401bae9be3f033d4cfd9b17', class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'fdf7929f51edcbea8568b35804b0d9e9a93a7249', class: 'tel__wrapper--relative' }, this.tooltip &&
45534
+ index.h("img", { key: '0fbc9b5e8c5feef727caa71ef07d4ae80007e04a', class: 'tel__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("div", { key: 'b4a11808a7ae5e5cddce47b51a51003bce3a84f8', class: `tel__wrapper--flex ${invalidClass}` }, index.h("vaadin-combo-box", { key: '2d81ff4c11e559f302a8446816f4aca0de2cfcef', class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }), index.h("input", { key: 'ab52185589bf4d52205bad4cecc9c7ecb54cd409', type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), index.h("small", { key: '6d219de32297bc2fab31995b5a33b14f2eea21d9', class: 'tel__error-message' }, this.errorMessage));
45486
45535
  }
45487
45536
  static get watchers() { return {
45537
+ "clientStyling": ["handleStylingChange"],
45488
45538
  "isValid": ["validityChanged"],
45489
45539
  "emitValue": ["emitValueHandler"]
45490
45540
  }; }
@@ -45499,17 +45549,6 @@ const TextInput = class {
45499
45549
  index.registerInstance(this, hostRef);
45500
45550
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
45501
45551
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
45502
- /**
45503
- * Default value for the input.
45504
- */
45505
- this.defaultValue = '';
45506
- /**
45507
- * Client custom styling via inline style
45508
- */
45509
- this.clientStyling = '';
45510
- this.errorMessage = '';
45511
- this.limitStylingAppends = false;
45512
- this.showTooltip = false;
45513
45552
  this.value = '';
45514
45553
  this.validationPattern = '';
45515
45554
  this.duplicateInputValue = null;
@@ -45539,6 +45578,26 @@ const TextInput = class {
45539
45578
  sheet.innerHTML = this.clientStyling;
45540
45579
  this.stylingContainer.prepend(sheet);
45541
45580
  };
45581
+ this.name = undefined;
45582
+ this.displayName = undefined;
45583
+ this.placeholder = undefined;
45584
+ this.validation = undefined;
45585
+ this.defaultValue = '';
45586
+ this.autofilled = undefined;
45587
+ this.tooltip = undefined;
45588
+ this.language = undefined;
45589
+ this.checkValidity = undefined;
45590
+ this.emitValue = undefined;
45591
+ this.isDuplicateInput = undefined;
45592
+ this.clientStyling = '';
45593
+ this.isValid = undefined;
45594
+ this.errorMessage = '';
45595
+ this.limitStylingAppends = false;
45596
+ this.showTooltip = false;
45597
+ }
45598
+ handleStylingChange(newValue, oldValue) {
45599
+ if (newValue !== oldValue)
45600
+ this.setClientStyling();
45542
45601
  }
45543
45602
  validityChanged() {
45544
45603
  this.validityStateHandler({ valid: this.isValid, name: this.name });
@@ -45645,10 +45704,11 @@ const TextInput = class {
45645
45704
  if (this.touched) {
45646
45705
  invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
45647
45706
  }
45648
- return index.h("div", { key: 'bfb803110a70b89dd484e993c204b572f0115a17', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, index.h("div", { key: '6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab', class: 'text__wrapper--flex' }, index.h("label", { key: '05cf07855121a79641475a5b020774cf8120d1ed', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'f8c48a999f6827a61ec392ce99858c19559c77d2', class: 'text__wrapper--relative' }, this.tooltip &&
45649
- index.h("img", { key: 'e866f1df104ce57c29164e73b4ad4d017c7201cd', class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: 'd761c265b1487fe73af54568b6da7fed82656b8d', name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: '5c8df34dd47959eb1668cdf389524d145c69fa84', class: 'text__error-message' }, this.errorMessage));
45707
+ return index.h("div", { key: 'e297f841a57c6acf854535a786916aa641831556', class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el }, index.h("div", { key: '7fd284a58e58d5c61a03caf4cc317b8dd9dbd82f', class: 'text__wrapper--flex' }, index.h("label", { key: 'f80a2003386ec867e5310190a7568105c2912569', class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName), index.h("div", { key: 'e8f5197bd370100406d600be5a336f85f4c6934d', class: 'text__wrapper--relative' }, this.tooltip &&
45708
+ index.h("img", { key: 'ff8c38fe3495a41a41ac4a1569169ce26a1ec9ce', class: 'text__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), index.h("input", { key: '581106e515810ab43f7d6b6eda504ccf23906b0e', name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), index.h("small", { key: '20620710026982d5fb670a3173bab57a7fa9e7ce', class: 'text__error-message' }, this.errorMessage));
45650
45709
  }
45651
45710
  static get watchers() { return {
45711
+ "clientStyling": ["handleStylingChange"],
45652
45712
  "isValid": ["validityChanged"],
45653
45713
  "emitValue": ["emitValueHandler"]
45654
45714
  }; }
@@ -45663,23 +45723,31 @@ const ToggleCheckboxInput = class {
45663
45723
  index.registerInstance(this, hostRef);
45664
45724
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
45665
45725
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
45666
- /**
45667
- * Default value for the input.
45668
- */
45669
- this.defaultValue = '';
45670
- /**
45671
- * Client custom styling via inline style
45672
- */
45673
- this.clientStyling = '';
45674
- this.limitStylingAppends = false;
45675
- this.showTooltip = false;
45676
- this.showFields = this.defaultValue === 'true';
45677
45726
  this.value = '';
45678
45727
  this.setClientStyling = () => {
45679
45728
  let sheet = document.createElement('style');
45680
45729
  sheet.innerHTML = this.clientStyling;
45681
45730
  this.stylingContainer.prepend(sheet);
45682
45731
  };
45732
+ this.name = undefined;
45733
+ this.displayName = undefined;
45734
+ this.defaultValue = '';
45735
+ this.options = undefined;
45736
+ this.autofilled = undefined;
45737
+ this.tooltip = undefined;
45738
+ this.validation = undefined;
45739
+ this.language = undefined;
45740
+ this.emitValue = undefined;
45741
+ this.clientStyling = '';
45742
+ this.errorMessage = undefined;
45743
+ this.isValid = undefined;
45744
+ this.limitStylingAppends = false;
45745
+ this.showTooltip = false;
45746
+ this.showFields = this.defaultValue === 'true';
45747
+ }
45748
+ handleStylingChange(newValue, oldValue) {
45749
+ if (newValue !== oldValue)
45750
+ this.setClientStyling();
45683
45751
  }
45684
45752
  validityStateHandler(inputStateEvent) {
45685
45753
  this.sendValidityState.emit(inputStateEvent);
@@ -45726,11 +45794,14 @@ const ToggleCheckboxInput = class {
45726
45794
  return null;
45727
45795
  }
45728
45796
  render() {
45729
- return index.h("div", { key: '8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: '18e2ec43ff98738323ddab1e134d6d215978e1c7', class: 'togglecheckbox__wrapper--flex' }, index.h("input", { key: '640b3ba4fd34bd813239533236e51f452e735409', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), index.h("small", { key: 'efd70a691559cfa98e93561dd945a0fe92909718', class: 'togglecheckbox__error-message' }, this.errorMessage), index.h("div", { key: 'e56a8fafa17da25d01f894fe6e6c143c318d2aab', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
45730
- index.h("img", { key: '8b59366827b8f4f8ca5581203a2dca44ae8132d5', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("div", { key: '475e27345b51396c36e78b5a1e06edd980bc3ae1', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
45797
+ return index.h("div", { key: 'e8be91ce94cf76ebecc58a433ab567ab549f4692', class: `togglecheckbox__wrapper ${this.name}__input`, ref: el => this.stylingContainer = el }, index.h("div", { key: 'dd42a6316cda06e357843165329de7525a24e3d5', class: 'togglecheckbox__wrapper--flex' }, index.h("input", { key: '932a6f8caeafa0d006f636484e33dda246c314d0', class: 'togglecheckbox__input', type: "checkbox", id: `${this.name}__input`, ref: (el) => this.checkboxReference = el, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), index.h("small", { key: 'cbc789c8a5c21debc05971ff347371fbc25d4975', class: 'togglecheckbox__error-message' }, this.errorMessage), index.h("div", { key: 'a5ce470c985829eb1f5a0567bb974cc15e3d0d64', class: 'togglecheckbox__wrapper--relative' }, this.tooltip &&
45798
+ index.h("img", { key: 'faef05dd9341ffe44b6833ca8f4c86b85ed61956', class: 'togglecheckbox__tooltip-icon', src: tooltipIconSvg, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), index.h("div", { key: '89fed5f103acecca78fa53eea64d57574ef42727', class: `togglecheckbox__fields-wrapper ${this.showFields ? '' : 'hidden'}` }, this.options.map(subfield => {
45731
45799
  return index.h("general-input", { type: subfield.inputType, name: subfield.name, displayName: subfield.displayName, validation: subfield.validate, action: subfield.action || null, defaultValue: subfield.defaultValue, autofilled: subfield.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: subfield.tooltip, placeholder: subfield.placeholder == null ? '' : subfield.placeholder });
45732
45800
  })));
45733
45801
  }
45802
+ static get watchers() { return {
45803
+ "clientStyling": ["handleStylingChange"]
45804
+ }; }
45734
45805
  };
45735
45806
  ToggleCheckboxInput.style = ToggleCheckboxInputStyle0;
45736
45807