@everymatrix/general-registration 1.99.56 → 1.99.59

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 (24) hide show
  1. package/dist/cjs/{GeneralAnimationLoading-DLWh0_Mr-87adb410.js → GeneralAnimationLoading-Dm0kXeN0-1a4caab6.js} +20 -20
  2. package/dist/cjs/{PlayerConsents-B1AMCVsz-fa53af28.js → PlayerConsents-Bk04lAcw-06b5367b.js} +23 -43
  3. package/dist/cjs/checkbox-group-input_15.cjs.entry.js +14 -4
  4. package/dist/cjs/index.cjs.js +11 -0
  5. package/dist/cjs/types-ef75801c.js +8 -0
  6. package/dist/collection/components/general-registration/general-registration.js +32 -2
  7. package/dist/collection/index.js +1 -0
  8. package/dist/collection/utils/types.js +6 -0
  9. package/dist/esm/{GeneralAnimationLoading-DLWh0_Mr-a00326b9.js → GeneralAnimationLoading-Dm0kXeN0-45b39692.js} +1 -1
  10. package/dist/esm/{PlayerConsents-B1AMCVsz-49d58473.js → PlayerConsents-Bk04lAcw-13fa42f5.js} +23 -43
  11. package/dist/esm/checkbox-group-input_15.entry.js +14 -4
  12. package/dist/esm/index.js +2 -0
  13. package/dist/esm/types-d6cd6856.js +8 -0
  14. package/dist/general-registration/{GeneralAnimationLoading-DLWh0_Mr-a00326b9.js → GeneralAnimationLoading-Dm0kXeN0-45b39692.js} +1 -1
  15. package/dist/general-registration/PlayerConsents-Bk04lAcw-13fa42f5.js +1 -0
  16. package/dist/general-registration/checkbox-group-input_15.entry.js +241 -241
  17. package/dist/general-registration/index.esm.js +1 -1
  18. package/dist/general-registration/types-d6cd6856.js +1 -0
  19. package/dist/types/components/general-registration/general-registration.d.ts +4 -0
  20. package/dist/types/components.d.ts +7 -0
  21. package/dist/types/index.d.ts +1 -0
  22. package/dist/types/utils/types.d.ts +5 -0
  23. package/package.json +1 -1
  24. package/dist/general-registration/PlayerConsents-B1AMCVsz-49d58473.js +0 -1
@@ -1,33 +1,33 @@
1
1
  'use strict';
2
2
 
3
- const PlayerConsentsB1AMCVsz = require('./PlayerConsents-B1AMCVsz-fa53af28.js');
3
+ const PlayerConsentsBk04lAcw = require('./PlayerConsents-Bk04lAcw-06b5367b.js');
4
4
 
5
5
  function L(t) {
6
- PlayerConsentsB1AMCVsz.a(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
6
+ PlayerConsentsBk04lAcw.a(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
7
7
  }
8
8
  function j(t) {
9
9
  let i;
10
10
  return {
11
11
  c() {
12
- i = PlayerConsentsB1AMCVsz.e("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
12
+ i = PlayerConsentsBk04lAcw.e("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
13
13
  },
14
14
  m(n, l) {
15
- PlayerConsentsB1AMCVsz.b(n, i, l), t[4](i);
15
+ PlayerConsentsBk04lAcw.b(n, i, l), t[4](i);
16
16
  },
17
- p: PlayerConsentsB1AMCVsz.n,
18
- i: PlayerConsentsB1AMCVsz.n,
19
- o: PlayerConsentsB1AMCVsz.n,
17
+ p: PlayerConsentsBk04lAcw.n,
18
+ i: PlayerConsentsBk04lAcw.n,
19
+ o: PlayerConsentsBk04lAcw.n,
20
20
  d(n) {
21
- n && PlayerConsentsB1AMCVsz.d(i), t[4](null);
21
+ n && PlayerConsentsBk04lAcw.d(i), t[4](null);
22
22
  }
23
23
  };
24
24
  }
25
25
  function w(t, i, n) {
26
26
  let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s, o;
27
- PlayerConsentsB1AMCVsz.o(() => () => {
27
+ PlayerConsentsBk04lAcw.o(() => () => {
28
28
  });
29
29
  function u(e) {
30
- PlayerConsentsB1AMCVsz.c[e ? "unshift" : "push"](() => {
30
+ PlayerConsentsBk04lAcw.c[e ? "unshift" : "push"](() => {
31
31
  s = e, n(0, s);
32
32
  });
33
33
  }
@@ -35,9 +35,9 @@ function w(t, i, n) {
35
35
  "clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
36
36
  }, t.$$.update = () => {
37
37
  t.$$.dirty & /*clientstyling, customStylingContainer*/
38
- 3 && l && s && PlayerConsentsB1AMCVsz.g(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
39
- 5 && a && s && PlayerConsentsB1AMCVsz.h(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
40
- 9 && r && s && PlayerConsentsB1AMCVsz.j(s, `${r}.Style`, o);
38
+ 3 && l && s && PlayerConsentsBk04lAcw.g(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
39
+ 5 && a && s && PlayerConsentsBk04lAcw.h(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
40
+ 9 && r && s && PlayerConsentsBk04lAcw.j(s, `${r}.Style`, o);
41
41
  }, [
42
42
  s,
43
43
  l,
@@ -46,14 +46,14 @@ function w(t, i, n) {
46
46
  u
47
47
  ];
48
48
  }
49
- class M extends PlayerConsentsB1AMCVsz.S {
49
+ class M extends PlayerConsentsBk04lAcw.S {
50
50
  constructor(i) {
51
- super(), PlayerConsentsB1AMCVsz.i(
51
+ super(), PlayerConsentsBk04lAcw.i(
52
52
  this,
53
53
  i,
54
54
  w,
55
55
  j,
56
- PlayerConsentsB1AMCVsz.s,
56
+ PlayerConsentsBk04lAcw.s,
57
57
  {
58
58
  clientstyling: 1,
59
59
  clientstylingurl: 2,
@@ -66,21 +66,21 @@ class M extends PlayerConsentsB1AMCVsz.S {
66
66
  return this.$$.ctx[1];
67
67
  }
68
68
  set clientstyling(i) {
69
- this.$$set({ clientstyling: i }), PlayerConsentsB1AMCVsz.f();
69
+ this.$$set({ clientstyling: i }), PlayerConsentsBk04lAcw.f();
70
70
  }
71
71
  get clientstylingurl() {
72
72
  return this.$$.ctx[2];
73
73
  }
74
74
  set clientstylingurl(i) {
75
- this.$$set({ clientstylingurl: i }), PlayerConsentsB1AMCVsz.f();
75
+ this.$$set({ clientstylingurl: i }), PlayerConsentsBk04lAcw.f();
76
76
  }
77
77
  get mbsource() {
78
78
  return this.$$.ctx[3];
79
79
  }
80
80
  set mbsource(i) {
81
- this.$$set({ mbsource: i }), PlayerConsentsB1AMCVsz.f();
81
+ this.$$set({ mbsource: i }), PlayerConsentsBk04lAcw.f();
82
82
  }
83
83
  }
84
- PlayerConsentsB1AMCVsz.k(M, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
84
+ PlayerConsentsBk04lAcw.k(M, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
85
85
 
86
86
  exports['default'] = M;
@@ -12,7 +12,7 @@ var Je = (e, t, r) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writ
12
12
  sn.call(t, r) && Je(e, r, t[r]);
13
13
  return e;
14
14
  }, Qe = (e, t) => nn(e, on(t));
15
- var U = (e, t, r) => (Je(e, typeof t != "symbol" ? t + "" : t, r), r);
15
+ var U = (e, t, r) => Je(e, typeof t != "symbol" ? t + "" : t, r);
16
16
  var re = (e, t, r) => new Promise((n, i) => {
17
17
  var o = (c) => {
18
18
  try {
@@ -72,8 +72,7 @@ function un(e, t, r) {
72
72
  }
73
73
  }
74
74
  function hn(e) {
75
- if (!e)
76
- return document;
75
+ if (!e) return document;
77
76
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
78
77
  return t && /** @type {ShadowRoot} */
79
78
  t.host ? (
@@ -214,8 +213,7 @@ function Ce(e) {
214
213
  xe = e;
215
214
  }
216
215
  function gn() {
217
- if (!xe)
218
- throw new Error("Function called outside component initialization");
216
+ if (!xe) throw new Error("Function called outside component initialization");
219
217
  return xe;
220
218
  }
221
219
  function _n(e) {
@@ -246,8 +244,7 @@ function X() {
246
244
  } catch (t) {
247
245
  throw oe.length = 0, ne = 0, t;
248
246
  }
249
- for (Ce(null), oe.length = 0, ne = 0; Ue.length; )
250
- Ue.pop()();
247
+ for (Ce(null), oe.length = 0, ne = 0; Ue.length; ) Ue.pop()();
251
248
  for (let t = 0; t < se.length; t += 1) {
252
249
  const r = se[t];
253
250
  Ye.has(r) || (Ye.add(r), r());
@@ -576,8 +573,7 @@ function Nn(e, t) {
576
573
  }
577
574
  }
578
575
  function An(e, t) {
579
- if (!e || !t)
580
- return;
576
+ if (!e || !t) return;
581
577
  const r = new URL(t);
582
578
  fetch(r.href).then((n) => n.text()).then((n) => {
583
579
  const i = document.createElement("style");
@@ -587,8 +583,7 @@ function An(e, t) {
587
583
  });
588
584
  }
589
585
  function Hn(e, t, r, n = !1) {
590
- if (!window.emMessageBus)
591
- return;
586
+ if (!window.emMessageBus) return;
592
587
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
593
588
  return r = Pn(e, t), r;
594
589
  window[ae] || (window[ae] = {}), r = Bn(e, t);
@@ -609,8 +604,7 @@ function Pn(e, t) {
609
604
  }
610
605
  function Bn(e, t) {
611
606
  return window.emMessageBus.subscribe(t, (r) => {
612
- if (!e)
613
- return;
607
+ if (!e) return;
614
608
  const n = e.getRootNode(), i = window[ae];
615
609
  let o = i[t] && i[t].sheet;
616
610
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -762,8 +756,7 @@ var ct = function(e, t) {
762
756
  return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
763
757
  r.__proto__ = n;
764
758
  } || function(r, n) {
765
- for (var i in n)
766
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
759
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
767
760
  }, ct(e, t);
768
761
  };
769
762
  function Ve(e, t) {
@@ -779,25 +772,22 @@ var Z = function() {
779
772
  return Z = Object.assign || function(t) {
780
773
  for (var r, n = 1, i = arguments.length; n < i; n++) {
781
774
  r = arguments[n];
782
- for (var o in r)
783
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
775
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
784
776
  }
785
777
  return t;
786
778
  }, Z.apply(this, arguments);
787
779
  };
788
780
  function Qn(e, t) {
789
781
  var r = {};
790
- for (var n in e)
791
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
782
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
792
783
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
793
784
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
794
785
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
795
786
  return r;
796
787
  }
797
788
  function Ke(e, t, r) {
798
- if (r || arguments.length === 2)
799
- for (var n = 0, i = t.length, o; n < i; n++)
800
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
789
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
790
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
801
791
  return e.concat(o || Array.prototype.slice.call(t));
802
792
  }
803
793
  function et(e, t) {
@@ -852,8 +842,7 @@ var ri = function() {
852
842
  return De = Object.assign || function(t) {
853
843
  for (var r, n = 1, i = arguments.length; n < i; n++) {
854
844
  r = arguments[n];
855
- for (var o in r)
856
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
845
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
857
846
  }
858
847
  return t;
859
848
  }, De.apply(this, arguments);
@@ -999,8 +988,7 @@ var B = function() {
999
988
  return B = Object.assign || function(t) {
1000
989
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1001
990
  r = arguments[n];
1002
- for (var o in r)
1003
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
991
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1004
992
  }
1005
993
  return t;
1006
994
  }, B.apply(this, arguments);
@@ -2642,8 +2630,7 @@ function pi(e, t) {
2642
2630
  r += c;
2643
2631
  for (; a-- > 0; )
2644
2632
  r = l + r;
2645
- } else
2646
- i === "J" ? r += "H" : r += i;
2633
+ } else i === "J" ? r += "H" : r += i;
2647
2634
  }
2648
2635
  return r;
2649
2636
  }
@@ -3246,8 +3233,7 @@ function pt(e) {
3246
3233
  if (delete t.location, fr(t) || pr(t))
3247
3234
  for (var r in t.options)
3248
3235
  delete t.options[r].location, pt(t.options[r].value);
3249
- else
3250
- hr(t) && _r(t.style) || (dr(t) || mr(t)) && ut(t.style) ? delete t.style.location : gr(t) && pt(t.children);
3236
+ else hr(t) && _r(t.style) || (dr(t) || mr(t)) && ut(t.style) ? delete t.style.location : gr(t) && pt(t.children);
3251
3237
  });
3252
3238
  }
3253
3239
  function Oi(e, t) {
@@ -4458,7 +4444,7 @@ if (typeof window != "undefined") {
4458
4444
  }
4459
4445
  };
4460
4446
  };
4461
- customElements.define = e(customElements.define), Promise.resolve().then(function () { return require('./GeneralAnimationLoading-DLWh0_Mr-87adb410.js'); }).then(({ default: t }) => {
4447
+ customElements.define = e(customElements.define), Promise.resolve().then(function () { return require('./GeneralAnimationLoading-Dm0kXeN0-1a4caab6.js'); }).then(({ default: t }) => {
4462
4448
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
4463
4449
  });
4464
4450
  }
@@ -5061,21 +5047,17 @@ function Ho(e) {
5061
5047
  if (
5062
5048
  /*isLoading*/
5063
5049
  a[10]
5064
- )
5065
- return Ao;
5050
+ ) return Ao;
5066
5051
  if (
5067
5052
  /*fatalError*/
5068
5053
  a[7]
5069
- )
5070
- return No;
5054
+ ) return No;
5071
5055
  if (
5072
5056
  /*session*/
5073
5057
  a[0]
5074
- )
5075
- return Mo;
5058
+ ) return Mo;
5076
5059
  if (!/*session*/
5077
- a[0])
5078
- return To;
5060
+ a[0]) return To;
5079
5061
  }
5080
5062
  let i = n(e), o = i && i(e);
5081
5063
  return {
@@ -5148,8 +5130,7 @@ function Po(e, t, r) {
5148
5130
  status: R.denied.value
5149
5131
  }), L.push(b)), b.description = w.description, b.orderNumber = w.orderNumber;
5150
5132
  }), y === "true") {
5151
- if (r(9, L = L.filter((w) => w.status === R.expired.value)), L.length !== 0)
5152
- return;
5133
+ if (r(9, L = L.filter((w) => w.status === R.expired.value)), L.length !== 0) return;
5153
5134
  Oe(n("wrongModalConfig"), !0);
5154
5135
  }
5155
5136
  Dr();
@@ -5317,8 +5298,7 @@ function Po(e, t, r) {
5317
5298
  if (!f && b.mustAccept) {
5318
5299
  const q = Array.from(Pe.children);
5319
5300
  for (const ke of q)
5320
- if (I = Array.from(ke.children).find((tn) => tn.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
5321
- break;
5301
+ if (I = Array.from(ke.children).find((tn) => tn.getAttribute("id") === `checkBoxError__${b.tagCode}`), I) break;
5322
5302
  }
5323
5303
  if (b.status === R.accepted[M] ? (b.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (b.status = R.accepted[M], I && (I.innerHTML = "")), f) {
5324
5304
  r(13, D[b.tagCode] = !D[b.tagCode], D);
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-4ef02ef9.js');
6
+ const types = require('./types-ef75801c.js');
6
7
 
7
8
  const DEFAULT_LANGUAGE$1 = 'en';
8
9
  const TRANSLATIONS$1 = {
@@ -6604,7 +6605,7 @@ function getStreamTranslations(domain, subscription, onChange, byLocale = false)
6604
6605
  return subscription;
6605
6606
  }
6606
6607
 
6607
- var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Gr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Mt=(s,t,e)=>t in s?qr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Gr.call(t,e)&&Mt(s,e,t[e]);if(lo)for(var e of lo(t))Xr.call(t,e)&&Mt(s,e,t[e]);return s},Nt=(s,t)=>Yr(s,Kr(t));var k=(s,t,e)=>(Mt(s,typeof t!="symbol"?t+"":t,e),e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
6608
+ var qr=Object.defineProperty,Yr=Object.defineProperties;var Kr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Gr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable;var Mt=(s,t,e)=>t in s?qr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Gr.call(t,e)&&Mt(s,e,t[e]);if(lo)for(var e of lo(t))Xr.call(t,e)&&Mt(s,e,t[e]);return s},Nt=(s,t)=>Yr(s,Kr(t));var k=(s,t,e)=>Mt(s,typeof t!="symbol"?t+"":t,e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
6608
6609
  * @license
6609
6610
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
6610
6611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -14786,7 +14787,7 @@ if (typeof window != "undefined") {
14786
14787
  }
14787
14788
  };
14788
14789
  };
14789
- customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-B1AMCVsz-fa53af28.js'); }).then((e) => e.P).then(({ default: e }) => {
14790
+ customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-Bk04lAcw-06b5367b.js'); }).then((e) => e.P).then(({ default: e }) => {
14790
14791
  !customElements.get("player-consents") && customElements.define("player-consents", e.element);
14791
14792
  });
14792
14793
  }
@@ -14799,6 +14800,7 @@ const GeneralRegistration = class {
14799
14800
  index.registerInstance(this, hostRef);
14800
14801
  this.registrationWidgetLoaded = index.createEvent(this, "registrationWidgetLoaded", 7);
14801
14802
  this.registrationStepUpdated = index.createEvent(this, "registrationStepUpdated", 7);
14803
+ this.registrationConfigStatus = index.createEvent(this, "registrationConfigStatus", 7);
14802
14804
  this.validationChange = index.createEvent(this, "validationChange", 7);
14803
14805
  this.isSelectingAddress = false;
14804
14806
  this.lastPostalCode = null;
@@ -15291,6 +15293,10 @@ const GeneralRegistration = class {
15291
15293
  });
15292
15294
  await this.captchaInstance.render(captchaContainerEl);
15293
15295
  }
15296
+ emitRegistrationConfigStatus(status) {
15297
+ this.registrationConfigStatus.emit(status);
15298
+ window.postMessage({ type: 'registrationConfigStatus', status }, window.location.href);
15299
+ }
15294
15300
  getRegisterConfig(registrationID) {
15295
15301
  const configPath = this.gmversion === 'gm2'
15296
15302
  ? '/api/pam/v2/legislation/register/config'
@@ -15308,6 +15314,7 @@ const GeneralRegistration = class {
15308
15314
  };
15309
15315
  return new Promise((resolve, reject) => {
15310
15316
  this.isLoading = true;
15317
+ this.emitRegistrationConfigStatus(types.RegistrationConfigStatus.Loading);
15311
15318
  fetch(url.href, options)
15312
15319
  .then((res) => {
15313
15320
  if (!res.ok) {
@@ -15323,11 +15330,14 @@ const GeneralRegistration = class {
15323
15330
  .then((config) => {
15324
15331
  this.isLoading = false;
15325
15332
  if (!config) {
15333
+ this.emitRegistrationConfigStatus(types.RegistrationConfigStatus.Error);
15326
15334
  return reject('Get register config is empty or has an error.');
15327
15335
  }
15336
+ this.emitRegistrationConfigStatus(types.RegistrationConfigStatus.Success);
15328
15337
  return resolve(config);
15329
15338
  }, (err) => {
15330
15339
  console.error('Get register config is empty or has an error: ', err);
15340
+ this.emitRegistrationConfigStatus(types.RegistrationConfigStatus.Error);
15331
15341
  return reject(err);
15332
15342
  }).finally(() => {
15333
15343
  this.isLoading = false;
@@ -15914,8 +15924,8 @@ const GeneralRegistration = class {
15914
15924
  const isLoading = this.isLoading && !this.registerErrors;
15915
15925
  const isError = !this.isLoading && this.registerErrors;
15916
15926
  const showForm = !(isLoading || isError);
15917
- return (index.h("div", { key: '53b15694dbc2a96e11d7f4063bcd6025c8e3c729', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && index.h("p", { key: 'd23e595780422a46e6b8b2f20d51444ba46e2c8d', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
15918
- index.h("div", { key: '94a3b0a7a5f7afb770817364e4cc3fad3328a523', class: "captcha-wrapper" }, index.h("slot", { key: 'f4821bcc295105fdd15b72153822eed1989614b6', name: CAPTCHA_CONTAINER_SLOT }))));
15927
+ return (index.h("div", { key: '8bd2260523f0cc8c4cba59496dcc75e5a725cf27', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && index.h("p", { key: '5ab45acffbf827dd501fc069d3febb6b06876273', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
15928
+ index.h("div", { key: '1a9506c7a4cecf2598ba22c2508277bdc2b55fc5', class: "captcha-wrapper" }, index.h("slot", { key: 'db4a6364ba72d9f51e672f247661bf5134c91d86', name: CAPTCHA_CONTAINER_SLOT }))));
15919
15929
  }
15920
15930
  get host() { return index.getElement(this); }
15921
15931
  static get watchers() { return {
@@ -1,5 +1,9 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const types = require('./types-ef75801c.js');
6
+
3
7
  function safeDecorator(fn) {
4
8
  // eslint-disable-next-line func-names
5
9
  return function (...args) {
@@ -12,3 +16,10 @@ function safeDecorator(fn) {
12
16
  };
13
17
  }
14
18
  customElements.define = safeDecorator(customElements.define);
19
+
20
+ Object.defineProperty(exports, 'RegistrationConfigStatus', {
21
+ enumerable: true,
22
+ get: function () {
23
+ return types.RegistrationConfigStatus;
24
+ }
25
+ });
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ exports.RegistrationConfigStatus = void 0;
4
+ (function (RegistrationConfigStatus) {
5
+ RegistrationConfigStatus["Loading"] = "Loading";
6
+ RegistrationConfigStatus["Success"] = "Success";
7
+ RegistrationConfigStatus["Error"] = "Error";
8
+ })(exports.RegistrationConfigStatus || (exports.RegistrationConfigStatus = {}));
@@ -1,5 +1,6 @@
1
1
  import { forceUpdate, h } from "@stencil/core";
2
2
  import { getTranslations, setTranslation, translate, TRANSLATIONS, DEFAULT_LANGUAGE, CONSTANTS } from "../../utils/locale.utils";
3
+ import { RegistrationConfigStatus } from "../../utils/types";
3
4
  import { getStreamTranslations } from "../../../../../../../../libs/common/src/i18n/index";
4
5
  import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
5
6
  import { dispatchCustomEvent } from "../../../../../../../../libs/custom-events/src/index";
@@ -500,6 +501,10 @@ export class GeneralRegistration {
500
501
  });
501
502
  await this.captchaInstance.render(captchaContainerEl);
502
503
  }
504
+ emitRegistrationConfigStatus(status) {
505
+ this.registrationConfigStatus.emit(status);
506
+ window.postMessage({ type: 'registrationConfigStatus', status }, window.location.href);
507
+ }
503
508
  getRegisterConfig(registrationID) {
504
509
  const configPath = this.gmversion === 'gm2'
505
510
  ? '/api/pam/v2/legislation/register/config'
@@ -517,6 +522,7 @@ export class GeneralRegistration {
517
522
  };
518
523
  return new Promise((resolve, reject) => {
519
524
  this.isLoading = true;
525
+ this.emitRegistrationConfigStatus(RegistrationConfigStatus.Loading);
520
526
  fetch(url.href, options)
521
527
  .then((res) => {
522
528
  if (!res.ok) {
@@ -532,11 +538,14 @@ export class GeneralRegistration {
532
538
  .then((config) => {
533
539
  this.isLoading = false;
534
540
  if (!config) {
541
+ this.emitRegistrationConfigStatus(RegistrationConfigStatus.Error);
535
542
  return reject('Get register config is empty or has an error.');
536
543
  }
544
+ this.emitRegistrationConfigStatus(RegistrationConfigStatus.Success);
537
545
  return resolve(config);
538
546
  }, (err) => {
539
547
  console.error('Get register config is empty or has an error: ', err);
548
+ this.emitRegistrationConfigStatus(RegistrationConfigStatus.Error);
540
549
  return reject(err);
541
550
  }).finally(() => {
542
551
  this.isLoading = false;
@@ -1124,8 +1133,8 @@ export class GeneralRegistration {
1124
1133
  const isLoading = this.isLoading && !this.registerErrors;
1125
1134
  const isError = !this.isLoading && this.registerErrors;
1126
1135
  const showForm = !(isLoading || isError);
1127
- return (h("div", { key: '53b15694dbc2a96e11d7f4063bcd6025c8e3c729', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && h("p", { key: 'd23e595780422a46e6b8b2f20d51444ba46e2c8d', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
1128
- h("div", { key: '94a3b0a7a5f7afb770817364e4cc3fad3328a523', class: "captcha-wrapper" }, h("slot", { key: 'f4821bcc295105fdd15b72153822eed1989614b6', name: CAPTCHA_CONTAINER_SLOT }))));
1136
+ return (h("div", { key: '8bd2260523f0cc8c4cba59496dcc75e5a725cf27', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && h("p", { key: '5ab45acffbf827dd501fc069d3febb6b06876273', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
1137
+ h("div", { key: '1a9506c7a4cecf2598ba22c2508277bdc2b55fc5', class: "captcha-wrapper" }, h("slot", { key: 'db4a6364ba72d9f51e672f247661bf5134c91d86', name: CAPTCHA_CONTAINER_SLOT }))));
1129
1138
  }
1130
1139
  static get is() { return "general-registration"; }
1131
1140
  static get encapsulation() { return "shadow"; }
@@ -1509,6 +1518,27 @@ export class GeneralRegistration {
1509
1518
  "resolved": "string",
1510
1519
  "references": {}
1511
1520
  }
1521
+ }, {
1522
+ "method": "registrationConfigStatus",
1523
+ "name": "registrationConfigStatus",
1524
+ "bubbles": true,
1525
+ "cancelable": true,
1526
+ "composed": true,
1527
+ "docs": {
1528
+ "tags": [],
1529
+ "text": "Status of the registration configuration request."
1530
+ },
1531
+ "complexType": {
1532
+ "original": "RegistrationConfigStatus",
1533
+ "resolved": "RegistrationConfigStatus.Error | RegistrationConfigStatus.Loading | RegistrationConfigStatus.Success",
1534
+ "references": {
1535
+ "RegistrationConfigStatus": {
1536
+ "location": "import",
1537
+ "path": "../../utils/types",
1538
+ "id": "../../../../packages/stencil/general-registration/src/utils/types.ts::RegistrationConfigStatus"
1539
+ }
1540
+ }
1541
+ }
1512
1542
  }, {
1513
1543
  "method": "validationChange",
1514
1544
  "name": "validationChange",
@@ -11,3 +11,4 @@ function safeDecorator(fn) {
11
11
  }
12
12
  customElements.define = safeDecorator(customElements.define);
13
13
  export * from './components';
14
+ export { RegistrationConfigStatus } from './utils/types';
@@ -0,0 +1,6 @@
1
+ export var RegistrationConfigStatus;
2
+ (function (RegistrationConfigStatus) {
3
+ RegistrationConfigStatus["Loading"] = "Loading";
4
+ RegistrationConfigStatus["Success"] = "Success";
5
+ RegistrationConfigStatus["Error"] = "Error";
6
+ })(RegistrationConfigStatus || (RegistrationConfigStatus = {}));
@@ -1,4 +1,4 @@
1
- import { S as sr, i as ir, s as vt, f as X, k as ar, a as un, e as T, b as z, n as $, d as O, o as _n, g as Nn, h as An, j as Hn, c as Ue } from './PlayerConsents-B1AMCVsz-49d58473.js';
1
+ import { S as sr, i as ir, s as vt, f as X, k as ar, a as un, e as T, b as z, n as $, d as O, o as _n, g as Nn, h as An, j as Hn, c as Ue } from './PlayerConsents-Bk04lAcw-13fa42f5.js';
2
2
 
3
3
  function L(t) {
4
4
  un(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");