@everymatrix/casino-promotions-nd 1.85.3 → 1.85.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoPromotionsNd-oZQ8b9QM.js → CasinoPromotionsNd-D51cN7Kq.js} +64 -64
- package/components/{CasinoPromotionsNd-B5Rz-3zH.js → CasinoPromotionsNd-ta5REjPX.js} +59 -59
- package/components/{CasinoPromotionsNd-EaNbzUGB.cjs → CasinoPromotionsNd-vPq2WNIv.cjs} +4 -4
- package/es2015/casino-promotions-nd.cjs +1 -1
- package/es2015/casino-promotions-nd.js +1 -1
- package/esnext/casino-promotions-nd.js +1 -1
- package/package.json +1 -1
|
@@ -186,14 +186,14 @@ function io(e) {
|
|
|
186
186
|
}
|
|
187
187
|
), t;
|
|
188
188
|
}
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
189
|
+
let De;
|
|
190
|
+
function Fe(e) {
|
|
191
|
+
De = e;
|
|
192
192
|
}
|
|
193
193
|
function so() {
|
|
194
|
-
if (!
|
|
194
|
+
if (!De)
|
|
195
195
|
throw new Error("Function called outside component initialization");
|
|
196
|
-
return
|
|
196
|
+
return De;
|
|
197
197
|
}
|
|
198
198
|
function ao(e) {
|
|
199
199
|
so().$$.on_mount.push(e);
|
|
@@ -208,7 +208,7 @@ function Jr() {
|
|
|
208
208
|
function lo() {
|
|
209
209
|
return Jr(), Qr;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ue(e) {
|
|
212
212
|
Be.push(e);
|
|
213
213
|
}
|
|
214
214
|
const ht = /* @__PURE__ */ new Set();
|
|
@@ -216,17 +216,17 @@ let Ee = 0;
|
|
|
216
216
|
function J() {
|
|
217
217
|
if (Ee !== 0)
|
|
218
218
|
return;
|
|
219
|
-
const e =
|
|
219
|
+
const e = De;
|
|
220
220
|
do {
|
|
221
221
|
try {
|
|
222
222
|
for (; Ee < Se.length; ) {
|
|
223
223
|
const t = Se[Ee];
|
|
224
|
-
Ee++,
|
|
224
|
+
Ee++, Fe(t), uo(t.$$);
|
|
225
225
|
}
|
|
226
226
|
} catch (t) {
|
|
227
227
|
throw Se.length = 0, Ee = 0, t;
|
|
228
228
|
}
|
|
229
|
-
for (
|
|
229
|
+
for (Fe(null), Se.length = 0, Ee = 0; ge.length; )
|
|
230
230
|
ge.pop()();
|
|
231
231
|
for (let t = 0; t < Be.length; t += 1) {
|
|
232
232
|
const r = Be[t];
|
|
@@ -236,13 +236,13 @@ function J() {
|
|
|
236
236
|
} while (Se.length);
|
|
237
237
|
for (; Yt.length; )
|
|
238
238
|
Yt.pop()();
|
|
239
|
-
vt = !1, ht.clear(),
|
|
239
|
+
vt = !1, ht.clear(), Fe(e);
|
|
240
240
|
}
|
|
241
241
|
function uo(e) {
|
|
242
242
|
if (e.fragment !== null) {
|
|
243
243
|
e.update(), ye(e.before_update);
|
|
244
244
|
const t = e.dirty;
|
|
245
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
245
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
function co(e) {
|
|
@@ -258,10 +258,10 @@ function K(e) {
|
|
|
258
258
|
}
|
|
259
259
|
function po(e, t, r) {
|
|
260
260
|
const { fragment: n, after_update: o } = e.$$;
|
|
261
|
-
n && n.m(t, r),
|
|
261
|
+
n && n.m(t, r), Ue(() => {
|
|
262
262
|
const i = e.$$.on_mount.map(Xr).filter(He);
|
|
263
263
|
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : ye(i), e.$$.on_mount = [];
|
|
264
|
-
}), o.forEach(
|
|
264
|
+
}), o.forEach(Ue);
|
|
265
265
|
}
|
|
266
266
|
function mo(e, t) {
|
|
267
267
|
const r = e.$$;
|
|
@@ -271,8 +271,8 @@ function _o(e, t) {
|
|
|
271
271
|
e.$$.dirty[0] === -1 && (Se.push(e), Jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
272
272
|
}
|
|
273
273
|
function bo(e, t, r, n, o, i, s = null, a = [-1]) {
|
|
274
|
-
const l =
|
|
275
|
-
|
|
274
|
+
const l = De;
|
|
275
|
+
Fe(e);
|
|
276
276
|
const u = e.$$ = {
|
|
277
277
|
fragment: null,
|
|
278
278
|
ctx: [],
|
|
@@ -307,7 +307,7 @@ function bo(e, t, r, n, o, i, s = null, a = [-1]) {
|
|
|
307
307
|
u.fragment && u.fragment.c();
|
|
308
308
|
t.intro && fo(e.$$.fragment), po(e, t.target, t.anchor), J();
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
Fe(l);
|
|
311
311
|
}
|
|
312
312
|
let Yr;
|
|
313
313
|
typeof HTMLElement == "function" && (Yr = class extends HTMLElement {
|
|
@@ -622,12 +622,12 @@ function Co(e) {
|
|
|
622
622
|
function Po(e) {
|
|
623
623
|
return Array.isArray(e) ? [] : {};
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ge(e, t) {
|
|
626
626
|
return t.clone !== !1 && t.isMergeableObject(e) ? Ce(Po(e), e, t) : e;
|
|
627
627
|
}
|
|
628
628
|
function Ao(e, t, r) {
|
|
629
629
|
return e.concat(t).map(function(n) {
|
|
630
|
-
return
|
|
630
|
+
return Ge(n, r);
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
function Oo(e, t) {
|
|
@@ -657,15 +657,15 @@ function No(e, t) {
|
|
|
657
657
|
function Io(e, t, r) {
|
|
658
658
|
var n = {};
|
|
659
659
|
return r.isMergeableObject(e) && Kt(e).forEach(function(o) {
|
|
660
|
-
n[o] =
|
|
660
|
+
n[o] = Ge(e[o], r);
|
|
661
661
|
}), Kt(t).forEach(function(o) {
|
|
662
|
-
No(e, o) || (Kr(e, o) && r.isMergeableObject(t[o]) ? n[o] = Oo(o, r)(e[o], t[o], r) : n[o] =
|
|
662
|
+
No(e, o) || (Kr(e, o) && r.isMergeableObject(t[o]) ? n[o] = Oo(o, r)(e[o], t[o], r) : n[o] = Ge(t[o], r));
|
|
663
663
|
}), n;
|
|
664
664
|
}
|
|
665
665
|
function Ce(e, t, r) {
|
|
666
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Ao, r.isMergeableObject = r.isMergeableObject || Eo, r.cloneUnlessOtherwiseSpecified =
|
|
666
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ao, r.isMergeableObject = r.isMergeableObject || Eo, r.cloneUnlessOtherwiseSpecified = Ge;
|
|
667
667
|
var n = Array.isArray(t), o = Array.isArray(e), i = n === o;
|
|
668
|
-
return i ? n ? r.arrayMerge(e, t, r) : Io(e, t, r) :
|
|
668
|
+
return i ? n ? r.arrayMerge(e, t, r) : Io(e, t, r) : Ge(t, r);
|
|
669
669
|
}
|
|
670
670
|
Ce.all = function(t, r) {
|
|
671
671
|
if (!Array.isArray(t))
|
|
@@ -3590,20 +3590,20 @@ function Ri(e, t) {
|
|
|
3590
3590
|
t.map((n) => (Mi(e, n), n().then((o) => o.default || o)))
|
|
3591
3591
|
).then((n) => vn(e, ...n));
|
|
3592
3592
|
}
|
|
3593
|
-
const
|
|
3593
|
+
const Re = {};
|
|
3594
3594
|
function xn(e) {
|
|
3595
3595
|
if (!Ht(e))
|
|
3596
|
-
return e in
|
|
3596
|
+
return e in Re ? Re[e] : Promise.resolve();
|
|
3597
3597
|
const t = ki(e);
|
|
3598
|
-
return
|
|
3598
|
+
return Re[e] = Promise.all(
|
|
3599
3599
|
t.map(
|
|
3600
3600
|
([r, n]) => Ri(r, n)
|
|
3601
3601
|
)
|
|
3602
3602
|
).then(() => {
|
|
3603
3603
|
if (Ht(e))
|
|
3604
3604
|
return xn(e);
|
|
3605
|
-
delete
|
|
3606
|
-
}),
|
|
3605
|
+
delete Re[e];
|
|
3606
|
+
}), Re[e];
|
|
3607
3607
|
}
|
|
3608
3608
|
const Fi = {
|
|
3609
3609
|
number: {
|
|
@@ -3708,7 +3708,7 @@ var qi = Object.defineProperty, tt = Object.getOwnPropertySymbols, wn = Object.p
|
|
|
3708
3708
|
t.indexOf(n) < 0 && En.call(e, n) && (r[n] = e[n]);
|
|
3709
3709
|
return r;
|
|
3710
3710
|
};
|
|
3711
|
-
const
|
|
3711
|
+
const je = (e, t) => {
|
|
3712
3712
|
const { formats: r } = Oe();
|
|
3713
3713
|
if (e in r && t in r[e])
|
|
3714
3714
|
return r[e][t];
|
|
@@ -3718,14 +3718,14 @@ const Ge = (e, t) => {
|
|
|
3718
3718
|
var t = e, { locale: r, format: n } = t, o = Ie(t, ["locale", "format"]);
|
|
3719
3719
|
if (r == null)
|
|
3720
3720
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3721
|
-
return n && (o =
|
|
3721
|
+
return n && (o = je("number", n)), new Intl.NumberFormat(r, o);
|
|
3722
3722
|
}
|
|
3723
3723
|
), Ji = at(
|
|
3724
3724
|
(e) => {
|
|
3725
3725
|
var t = e, { locale: r, format: n } = t, o = Ie(t, ["locale", "format"]);
|
|
3726
3726
|
if (r == null)
|
|
3727
3727
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3728
|
-
return n ? o =
|
|
3728
|
+
return n ? o = je("date", n) : Object.keys(o).length === 0 && (o = je("date", "short")), new Intl.DateTimeFormat(r, o);
|
|
3729
3729
|
}
|
|
3730
3730
|
), Yi = at(
|
|
3731
3731
|
(e) => {
|
|
@@ -3734,7 +3734,7 @@ const Ge = (e, t) => {
|
|
|
3734
3734
|
throw new Error(
|
|
3735
3735
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3736
3736
|
);
|
|
3737
|
-
return n ? o =
|
|
3737
|
+
return n ? o = je("time", n) : Object.keys(o).length === 0 && (o = je("time", "short")), new Intl.DateTimeFormat(r, o);
|
|
3738
3738
|
}
|
|
3739
3739
|
), Ki = (e = {}) => {
|
|
3740
3740
|
var t = e, {
|
|
@@ -3832,7 +3832,7 @@ var Pt = function(e, t) {
|
|
|
3832
3832
|
Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
3833
3833
|
}, Pt(e, t);
|
|
3834
3834
|
};
|
|
3835
|
-
function
|
|
3835
|
+
function $e(e, t) {
|
|
3836
3836
|
if (typeof t != "function" && t !== null)
|
|
3837
3837
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3838
3838
|
Pt(e, t);
|
|
@@ -4024,7 +4024,7 @@ function Ye(e) {
|
|
|
4024
4024
|
e();
|
|
4025
4025
|
}
|
|
4026
4026
|
var Hn = function(e) {
|
|
4027
|
-
|
|
4027
|
+
$e(t, e);
|
|
4028
4028
|
function t(r) {
|
|
4029
4029
|
var n = e.call(this) || this;
|
|
4030
4030
|
return n.isStopped = !1, r ? (n.destination = r, Bn(r) && r.add(n)) : n.destination = _s, n;
|
|
@@ -4086,7 +4086,7 @@ var Hn = function(e) {
|
|
|
4086
4086
|
}
|
|
4087
4087
|
}, e;
|
|
4088
4088
|
}(), It = function(e) {
|
|
4089
|
-
|
|
4089
|
+
$e(t, e);
|
|
4090
4090
|
function t(r, n, o) {
|
|
4091
4091
|
var i = e.call(this) || this, s;
|
|
4092
4092
|
return ce(r) || !r ? s = {
|
|
@@ -4196,7 +4196,7 @@ var ws = Tn(function(e) {
|
|
|
4196
4196
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4197
4197
|
};
|
|
4198
4198
|
}), Cn = function(e) {
|
|
4199
|
-
|
|
4199
|
+
$e(t, e);
|
|
4200
4200
|
function t() {
|
|
4201
4201
|
var r = e.call(this) || this;
|
|
4202
4202
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -4276,7 +4276,7 @@ var ws = Tn(function(e) {
|
|
|
4276
4276
|
return new br(r, n);
|
|
4277
4277
|
}, t;
|
|
4278
4278
|
}(dr), br = function(e) {
|
|
4279
|
-
|
|
4279
|
+
$e(t, e);
|
|
4280
4280
|
function t(r, n) {
|
|
4281
4281
|
var o = e.call(this) || this;
|
|
4282
4282
|
return o.destination = r, o.source = n, o;
|
|
@@ -4300,7 +4300,7 @@ var ws = Tn(function(e) {
|
|
|
4300
4300
|
},
|
|
4301
4301
|
delegate: void 0
|
|
4302
4302
|
}, Es = function(e) {
|
|
4303
|
-
|
|
4303
|
+
$e(t, e);
|
|
4304
4304
|
function t(r, n, o) {
|
|
4305
4305
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), o === void 0 && (o = Pn);
|
|
4306
4306
|
var i = e.call(this) || this;
|
|
@@ -4535,7 +4535,7 @@ function As(e) {
|
|
|
4535
4535
|
/*promoDetailsTitle*/
|
|
4536
4536
|
e[7]
|
|
4537
4537
|
), d(h, "class", "modal__picture"), d(c, "class", "modal__header"), d(M, "class", "modal__details"), d(R, "class", "modal__tabs"), d(E, "class", "modal__body_title"), d(w, "class", "modal__tab_content"), d(T, "class", "modal__tabContentWrapper"), d(y, "class", "modal__body_content"), d(k, "class", "modal__body"), d(a, "class", "modal__content"), d(o, "class", "promo__modal modal"), d(r, "class", G = "promotions " + /*currentBreakpoint*/
|
|
4538
|
-
e[4]),
|
|
4538
|
+
e[4]), Ue(() => (
|
|
4539
4539
|
/*div10_elementresize_handler*/
|
|
4540
4540
|
e[53].call(r)
|
|
4541
4541
|
)), d(t, "class", "promotion__section");
|
|
@@ -4640,7 +4640,7 @@ function Os(e) {
|
|
|
4640
4640
|
for (let p = 0; p < h.length; p += 1)
|
|
4641
4641
|
h[p].c();
|
|
4642
4642
|
d(n, "class", "promotion__header"), d(s, "class", "promotions__grid"), d(r, "class", a = "promotions " + /*currentBreakpoint*/
|
|
4643
|
-
e[4]),
|
|
4643
|
+
e[4]), Ue(() => (
|
|
4644
4644
|
/*div5_elementresize_handler*/
|
|
4645
4645
|
e[46].call(r)
|
|
4646
4646
|
)), d(t, "class", "promotion__section");
|
|
@@ -4836,7 +4836,7 @@ function Ns(e) {
|
|
|
4836
4836
|
n[s] && n[s].m(t, null);
|
|
4837
4837
|
},
|
|
4838
4838
|
p(o, i) {
|
|
4839
|
-
if (i[0] & /*$_,
|
|
4839
|
+
if (i[0] & /*$_, selectedPromotionId, promotions, claimBonus, bonusLoading, promotionWithBonus, openPromo, bonusClaimCode, bonusClaimError, activeTab*/
|
|
4840
4840
|
1069580292) {
|
|
4841
4841
|
r = K(
|
|
4842
4842
|
/*promotions*/
|
|
@@ -5002,26 +5002,26 @@ function Nr(e) {
|
|
|
5002
5002
|
};
|
|
5003
5003
|
}
|
|
5004
5004
|
function Ir(e) {
|
|
5005
|
-
let t;
|
|
5006
|
-
function
|
|
5007
|
-
return
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
);
|
|
5005
|
+
let t, r;
|
|
5006
|
+
function n(s, a) {
|
|
5007
|
+
return a[0] & /*selectedPromotionId, promotions*/
|
|
5008
|
+
33554436 && (t = null), t == null && (t = /*selectedPromotionId*/
|
|
5009
|
+
s[25] === /*promotion*/
|
|
5010
|
+
s[80].id.toString()), t ? Ms : Is;
|
|
5011
5011
|
}
|
|
5012
|
-
let
|
|
5012
|
+
let o = n(e, [-1, -1, -1]), i = o(e);
|
|
5013
5013
|
return {
|
|
5014
5014
|
c() {
|
|
5015
|
-
|
|
5015
|
+
i.c(), r = rt();
|
|
5016
5016
|
},
|
|
5017
|
-
m(
|
|
5018
|
-
|
|
5017
|
+
m(s, a) {
|
|
5018
|
+
i.m(s, a), L(s, r, a);
|
|
5019
5019
|
},
|
|
5020
|
-
p(
|
|
5021
|
-
|
|
5020
|
+
p(s, a) {
|
|
5021
|
+
o === (o = n(s, a)) && i ? i.p(s, a) : (i.d(1), i = o(s), i && (i.c(), i.m(r.parentNode, r)));
|
|
5022
5022
|
},
|
|
5023
|
-
d(
|
|
5024
|
-
|
|
5023
|
+
d(s) {
|
|
5024
|
+
s && P(r), i.d(s);
|
|
5025
5025
|
}
|
|
5026
5026
|
};
|
|
5027
5027
|
}
|
|
@@ -5473,7 +5473,7 @@ function ks(e) {
|
|
|
5473
5473
|
function Rs(e, t, r) {
|
|
5474
5474
|
let n;
|
|
5475
5475
|
Kn(e, ls, (f) => r(26, n = f));
|
|
5476
|
-
let { endpoint: o = "" } = t, { cmsendpoint: i = "" } = t, { session: s = "" } = t, { currency: a = "" } = t, { lang: l = "" } = t, { env: u = "" } = t, { userroles: c = "" } = t, { promotionsfilter: h = "false" } = t, { translationurl: p = "" } = t, { clientstyling: b = "" } = t, { clientstylingurl: m = "" } = t, { mbsource: v } = t, { modalpromotion: M = "" } = t, I, k = [], y, R, B, T = "", E = window.navigator.userAgent, O = !1, w, H = "", G = "", F = {}, se = [], _e = [], Z = !1, ae = "", V = "", q = "all", le = [], X = !1, j, x, W, S = !0, he = !0, Me = !1, Ft = "",
|
|
5476
|
+
let { endpoint: o = "" } = t, { cmsendpoint: i = "" } = t, { session: s = "" } = t, { currency: a = "" } = t, { lang: l = "" } = t, { env: u = "" } = t, { userroles: c = "" } = t, { promotionsfilter: h = "false" } = t, { translationurl: p = "" } = t, { clientstyling: b = "" } = t, { clientstylingurl: m = "" } = t, { mbsource: v } = t, { modalpromotion: M = "" } = t, I, k = [], y, R, B, T = "", E = window.navigator.userAgent, O = !1, w, H = "", G = "", F = {}, se = [], _e = [], Z = !1, ae = "", V = "", q = "all", le = [], X = !1, j, x, W, S = !0, he = !0, Me = !1, Ft = "", ke = "", ze = { claimable: [], applicable: [] };
|
|
5477
5477
|
us({ withLocale: "en", translations: {} });
|
|
5478
5478
|
const An = () => {
|
|
5479
5479
|
fetch(p).then((f) => f.json()).then((f) => {
|
|
@@ -5520,7 +5520,7 @@ function Rs(e, t, r) {
|
|
|
5520
5520
|
ze.claimable.push(z.code);
|
|
5521
5521
|
}), r(22, he = !1);
|
|
5522
5522
|
});
|
|
5523
|
-
}, Ln = (f) => ze.claimable.indexOf(f.bonusCode) >= 0 || ze.applicable.indexOf(f.bonusCode) >= 0, Gt = (f) => (r(23, Me = !1), r(25,
|
|
5523
|
+
}, Ln = (f) => ze.claimable.indexOf(f.bonusCode) >= 0 || ze.applicable.indexOf(f.bonusCode) >= 0, Gt = (f) => (r(23, Me = !1), r(25, ke = ""), r(24, Ft = f.bonusCode), new Promise(($, z) => {
|
|
5524
5524
|
const Q = new URL(`${o}/v1/bonus/claim`), ne = new Headers();
|
|
5525
5525
|
let fe = "";
|
|
5526
5526
|
ne.append("X-SessionID", s), ne.append("Content-Type", "application/json");
|
|
@@ -5530,9 +5530,9 @@ function Rs(e, t, r) {
|
|
|
5530
5530
|
console.error("There was an error while trying to create the claim bonus request", be);
|
|
5531
5531
|
}
|
|
5532
5532
|
fetch(Q, { method: "PUT", headers: ne, body: fe }).then((be) => be.json()).then((be) => {
|
|
5533
|
-
be.success ? (Ut(), r(23, Me = !1), r(25,
|
|
5533
|
+
be.success ? (Ut(), r(23, Me = !1), r(25, ke = f.id.toString()), $(!0)) : (r(23, Me = !0), r(25, ke = ""), $(!1));
|
|
5534
5534
|
}).catch((be) => {
|
|
5535
|
-
console.error("Err", be), r(23, Me = !0), z();
|
|
5535
|
+
console.error("Err", be), r(23, Me = !0), r(25, ke = ""), z();
|
|
5536
5536
|
});
|
|
5537
5537
|
})), jt = (f) => {
|
|
5538
5538
|
if (f.data)
|
|
@@ -5682,7 +5682,7 @@ function Rs(e, t, r) {
|
|
|
5682
5682
|
he,
|
|
5683
5683
|
Me,
|
|
5684
5684
|
Ft,
|
|
5685
|
-
|
|
5685
|
+
ke,
|
|
5686
5686
|
n,
|
|
5687
5687
|
Ln,
|
|
5688
5688
|
Gt,
|