@everymatrix/cashier-header 1.87.13 → 1.87.15
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/{CashierHeader--uvcBbks.js → CashierHeader-BimbWnMq.js} +40 -33
- package/components/{CashierHeader-DRmsVPzl.cjs → CashierHeader-Cu-8sLy3.cjs} +1 -1
- package/components/{CashierHeader-Cs0qni4C.js → CashierHeader-DxQ1A6Wj.js} +7 -0
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
|
@@ -300,8 +300,8 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
300
300
|
}
|
|
301
301
|
q(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let Ct;
|
|
304
|
+
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
305
305
|
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
@@ -452,7 +452,7 @@ function he(e, t, r, n) {
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
function Or(e, t, r, n, i, s) {
|
|
455
|
-
let a = class extends
|
|
455
|
+
let a = class extends Ct {
|
|
456
456
|
constructor() {
|
|
457
457
|
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
@@ -482,7 +482,7 @@ function Or(e, t, r, n, i, s) {
|
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
483
|
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Cr {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -528,8 +528,8 @@ class Pr {
|
|
|
528
528
|
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Pr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
533
533
|
const D = [];
|
|
534
534
|
function Lr(e, t) {
|
|
535
535
|
return {
|
|
@@ -635,7 +635,7 @@ function kr(e) {
|
|
|
635
635
|
function nt(e) {
|
|
636
636
|
return Object.keys(e).concat(kr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Pt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
641
|
} catch (r) {
|
|
@@ -643,14 +643,14 @@ function Ct(e, t) {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
function Vr(e, t) {
|
|
646
|
-
return
|
|
646
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
648
|
function Xr(e, t, r) {
|
|
649
649
|
var n = {};
|
|
650
650
|
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
651
651
|
n[i] = K(e[i], r);
|
|
652
652
|
}), nt(t).forEach(function(i) {
|
|
653
|
-
Vr(e, i) || (
|
|
653
|
+
Vr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
654
654
|
}), n;
|
|
655
655
|
}
|
|
656
656
|
function j(e, t, r) {
|
|
@@ -755,7 +755,7 @@ var en = function() {
|
|
|
755
755
|
create: function() {
|
|
756
756
|
return new tn();
|
|
757
757
|
}
|
|
758
|
-
},
|
|
758
|
+
}, Ce = {
|
|
759
759
|
variadic: Kr
|
|
760
760
|
}, me = function() {
|
|
761
761
|
return me = Object.assign || function(t) {
|
|
@@ -2578,7 +2578,7 @@ function dn(e) {
|
|
|
2578
2578
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2579
2579
|
return i[0];
|
|
2580
2580
|
}
|
|
2581
|
-
var
|
|
2581
|
+
var Pe, bn = new RegExp("^".concat(Ft.source, "*")), gn = new RegExp("".concat(Ft.source, "*$"));
|
|
2582
2582
|
function b(e, t) {
|
|
2583
2583
|
return { start: e, end: t };
|
|
2584
2584
|
}
|
|
@@ -2587,7 +2587,7 @@ var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String
|
|
|
2587
2587
|
}, De = !0;
|
|
2588
2588
|
try {
|
|
2589
2589
|
var wn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2590
|
-
De = ((
|
|
2590
|
+
De = ((Pe = wn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2591
2591
|
} catch (e) {
|
|
2592
2592
|
De = !1;
|
|
2593
2593
|
}
|
|
@@ -2764,7 +2764,7 @@ var On = (
|
|
|
2764
2764
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2765
2765
|
}, e.prototype.parseTagName = function() {
|
|
2766
2766
|
var t = this.offset();
|
|
2767
|
-
for (this.bump(); !this.isEOF() &&
|
|
2767
|
+
for (this.bump(); !this.isEOF() && Pn(this.char()); )
|
|
2768
2768
|
this.bump();
|
|
2769
2769
|
return this.message.slice(t, this.offset());
|
|
2770
2770
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2793,7 +2793,7 @@ var On = (
|
|
|
2793
2793
|
};
|
|
2794
2794
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2795
2795
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2796
|
-
!
|
|
2796
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2797
2797
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2798
2798
|
if (this.isEOF() || this.char() !== 39)
|
|
2799
2799
|
return null;
|
|
@@ -2908,9 +2908,9 @@ var On = (
|
|
|
2908
2908
|
pattern: O,
|
|
2909
2909
|
location: u.styleLocation,
|
|
2910
2910
|
parsedOptions: this.shouldParseSkeletons ? an(O) : {}
|
|
2911
|
-
},
|
|
2911
|
+
}, C = o === "date" ? y.date : y.time;
|
|
2912
2912
|
return {
|
|
2913
|
-
val: { type:
|
|
2913
|
+
val: { type: C, value: n, location: _, style: m },
|
|
2914
2914
|
err: null
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
@@ -3138,10 +3138,10 @@ var On = (
|
|
|
3138
3138
|
function je(e) {
|
|
3139
3139
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function Cn(e) {
|
|
3142
3142
|
return je(e) || e === 47;
|
|
3143
3143
|
}
|
|
3144
|
-
function
|
|
3144
|
+
function Pn(e) {
|
|
3145
3145
|
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;
|
|
3146
3146
|
}
|
|
3147
3147
|
function Wt(e) {
|
|
@@ -3287,10 +3287,10 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3287
3287
|
var f = h.children, _ = h.value, v = i[_];
|
|
3288
3288
|
if (!Rn(v))
|
|
3289
3289
|
throw new In(_, "function", a);
|
|
3290
|
-
var O = le(f, t, r, n, i, s),
|
|
3290
|
+
var O = le(f, t, r, n, i, s), C = v(O.map(function(A) {
|
|
3291
3291
|
return A.value;
|
|
3292
3292
|
}));
|
|
3293
|
-
Array.isArray(
|
|
3293
|
+
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(A) {
|
|
3294
3294
|
return {
|
|
3295
3295
|
type: typeof A == "string" ? x.literal : x.object,
|
|
3296
3296
|
value: A
|
|
@@ -3358,7 +3358,7 @@ function Gn(e) {
|
|
|
3358
3358
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3359
3359
|
}, {
|
|
3360
3360
|
cache: Le(e.number),
|
|
3361
|
-
strategy:
|
|
3361
|
+
strategy: Ce.variadic
|
|
3362
3362
|
}),
|
|
3363
3363
|
getDateTimeFormat: Oe(function() {
|
|
3364
3364
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
@@ -3366,7 +3366,7 @@ function Gn(e) {
|
|
|
3366
3366
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3367
3367
|
}, {
|
|
3368
3368
|
cache: Le(e.dateTime),
|
|
3369
|
-
strategy:
|
|
3369
|
+
strategy: Ce.variadic
|
|
3370
3370
|
}),
|
|
3371
3371
|
getPluralRules: Oe(function() {
|
|
3372
3372
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
@@ -3374,7 +3374,7 @@ function Gn(e) {
|
|
|
3374
3374
|
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3375
3375
|
}, {
|
|
3376
3376
|
cache: Le(e.pluralRules),
|
|
3377
|
-
strategy:
|
|
3377
|
+
strategy: Ce.variadic
|
|
3378
3378
|
})
|
|
3379
3379
|
};
|
|
3380
3380
|
}
|
|
@@ -3511,11 +3511,11 @@ function Fn(e, t) {
|
|
|
3511
3511
|
n = void 0;
|
|
3512
3512
|
return n;
|
|
3513
3513
|
}
|
|
3514
|
-
const
|
|
3514
|
+
const P = {}, jn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Qt = (e, t) => {
|
|
3515
3515
|
if (t == null)
|
|
3516
3516
|
return;
|
|
3517
|
-
if (t in
|
|
3518
|
-
return
|
|
3517
|
+
if (t in P && e in P[t])
|
|
3518
|
+
return P[t][e];
|
|
3519
3519
|
const r = ie(t);
|
|
3520
3520
|
for (let n = 0; n < r.length; n++) {
|
|
3521
3521
|
const i = r[n], s = Vn(i, e);
|
|
@@ -3548,7 +3548,7 @@ function Xn(e) {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
}
|
|
3550
3550
|
function qt(e, ...t) {
|
|
3551
|
-
delete
|
|
3551
|
+
delete P[e], ne.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3552
3552
|
}
|
|
3553
3553
|
W(
|
|
3554
3554
|
[ne],
|
|
@@ -3846,6 +3846,13 @@ const _t = {
|
|
|
3846
3846
|
deposit: "Para Yatır",
|
|
3847
3847
|
withdraw: "Çekim"
|
|
3848
3848
|
}
|
|
3849
|
+
},
|
|
3850
|
+
fr: {
|
|
3851
|
+
header: {
|
|
3852
|
+
general: "Caisse",
|
|
3853
|
+
deposit: "Dépôt",
|
|
3854
|
+
withdraw: "Retrait"
|
|
3855
|
+
}
|
|
3849
3856
|
}
|
|
3850
3857
|
};
|
|
3851
3858
|
function Ti(e, t) {
|
|
@@ -3876,7 +3883,7 @@ function Si(e, t, r) {
|
|
|
3876
3883
|
function Ai(e) {
|
|
3877
3884
|
cr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}");
|
|
3878
3885
|
}
|
|
3879
|
-
const Oi = (e) => ({}), yt = (e) => ({}),
|
|
3886
|
+
const Oi = (e) => ({}), yt = (e) => ({}), Ci = (e) => ({}), Et = (e) => ({}), Pi = (e) => ({}), xt = (e) => ({});
|
|
3880
3887
|
function vt(e) {
|
|
3881
3888
|
let t, r, n;
|
|
3882
3889
|
return {
|
|
@@ -4037,7 +4044,7 @@ function Mi(e) {
|
|
|
4037
4044
|
/*$$scope*/
|
|
4038
4045
|
f[15],
|
|
4039
4046
|
_,
|
|
4040
|
-
|
|
4047
|
+
Pi
|
|
4041
4048
|
) : Te(
|
|
4042
4049
|
/*$$scope*/
|
|
4043
4050
|
f[15]
|
|
@@ -4056,7 +4063,7 @@ function Mi(e) {
|
|
|
4056
4063
|
/*$$scope*/
|
|
4057
4064
|
f[15],
|
|
4058
4065
|
_,
|
|
4059
|
-
|
|
4066
|
+
Ci
|
|
4060
4067
|
) : Te(
|
|
4061
4068
|
/*$$scope*/
|
|
4062
4069
|
f[15]
|
|
@@ -4099,7 +4106,7 @@ function $i(e, t, r) {
|
|
|
4099
4106
|
let n;
|
|
4100
4107
|
fr(e, Hi, (g) => r(4, n = g));
|
|
4101
4108
|
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, O = !1;
|
|
4102
|
-
const
|
|
4109
|
+
const C = () => {
|
|
4103
4110
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4104
4111
|
Object.keys(g).forEach((Qe) => {
|
|
4105
4112
|
gt(Qe, g[Qe]);
|
|
@@ -4140,7 +4147,7 @@ function $i(e, t, r) {
|
|
|
4140
4147
|
129 && a && f && Ti(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4141
4148
|
257 && o && f && wi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4142
4149
|
16385 && p && f && Si(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4143
|
-
4608 && c && l &&
|
|
4150
|
+
4608 && c && l && C(), e.$$.dirty & /*showbackbutton*/
|
|
4144
4151
|
1024 && u && R(), e.$$.dirty & /*showclosebutton*/
|
|
4145
4152
|
8192 && m && se();
|
|
4146
4153
|
}, [
|
|
@@ -4164,7 +4171,7 @@ function $i(e, t, r) {
|
|
|
4164
4171
|
nr
|
|
4165
4172
|
];
|
|
4166
4173
|
}
|
|
4167
|
-
class Ri extends
|
|
4174
|
+
class Ri extends Cr {
|
|
4168
4175
|
constructor(t) {
|
|
4169
4176
|
super(), Ar(
|
|
4170
4177
|
this,
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,V.MISSING_INTL_API,a);var I=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));H=h.options[I]||h.options.other}if(!H)throw new ft(h.value,m,Object.keys(h.options),a);o.push.apply(o,le(H.value,t,r,n,i,m-(h.offset||0)));continue}}return Rn(o)}function Dn(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=S(S({},e[n]),t[n]||{}),r},{})):e}function Gn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Dn(e[n],t[n]),r},S({},e)):e}function Le(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Fn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ae([void 0],r,!1)))},{cache:Le(e.number),strategy:Pe.variadic}),getDateTimeFormat:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ae([void 0],r,!1)))},{cache:Le(e.dateTime),strategy:Pe.variadic}),getPluralRules:Oe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ae([void 0],r,!1)))},{cache:Le(e.pluralRules),strategy:Pe.variadic})}}var Zt=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(c,m){return!c.length||m.type!==x.literal||typeof c[c.length-1]!="string"?c.push(m.value):c[c.length-1]+=m.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return le(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Jr(a,["formatters"]);this.ast=e.__parse(t,S(S({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Gn(e.formats,n),this.formatters=i&&i.formatters||Fn(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=In,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function jn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const C={},kn=(e,t,r)=>r&&(t in C||(C[t]={}),e in C[t]||(C[t][e]=r),r),Qt=(e,t)=>{if(t==null)return;if(t in C&&e in C[t])return C[t][e];const r=ie(t);for(let n=0;n<r.length;n++){const i=r[n],s=Xn(i,e);if(s)return kn(e,t,s)}};let We;const ne=ge({});function Vn(e){return We[e]||null}function Jt(e){return e in We}function Xn(e,t){if(!Jt(e))return null;const r=Vn(e);return jn(r,t)}function zn(e){if(e==null)return;const t=ie(e);for(let r=0;r<t.length;r++){const n=t[r];if(Jt(n))return n}}function qt(e,...t){delete C[e],ne.update(r=>(r[e]=Qr.all([r[e]||{},...t]),r))}W([ne],([e])=>Object.keys(e));ne.subscribe(e=>We=e);const fe={};function Wn(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e]}function Yt(e){return fe[e]}function Zn(e){return ie(e).map(t=>{const r=Yt(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function pe(e){return e==null?!1:ie(e).some(t=>{var r;return(r=Yt(t))==null?void 0:r.size})}function Qn(e,t){return Promise.all(t.map(n=>(Wn(e,n),n().then(i=>i.default||i)))).then(n=>qt(e,...n))}const Q={};function Kt(e){if(!pe(e))return e in Q?Q[e]:Promise.resolve();const t=Zn(e);return Q[e]=Promise.all(t.map(([r,n])=>Qn(r,n))).then(()=>{if(pe(e))return Kt(e);delete Q[e]}),Q[e]}var ct=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Yn=(e,t)=>{var r={};for(var n in e)Jn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ct)for(var n of ct(e))t.indexOf(n)<0&&qn.call(e,n)&&(r[n]=e[n]);return r};const Kn={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function ei({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ie(e).join('", "')}".${pe(N())?`
|
|
4
4
|
|
|
5
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ti={fallbackLocale:null,loadingDelay:200,formats:Kn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},J=ti;function X(){return J}function ri(e){const t=e,{formats:r}=t,n=Yn(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Zt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ei:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(J,n,{initialLocale:i}),r&&("number"in r&&Object.assign(J.formats.number,r.number),"date"in r&&Object.assign(J.formats.date,r.date),"time"in r&&Object.assign(J.formats.time,r.time)),$.set(i)}const Ne=ge(!1);var ni=Object.defineProperty,ii=Object.defineProperties,si=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ui=(e,t)=>{for(var r in t||(t={}))oi.call(t,r)&&pt(e,r,t[r]);if(mt)for(var r of mt(t))ai.call(t,r)&&pt(e,r,t[r]);return e},hi=(e,t)=>ii(e,si(t));let Ve;const de=ge(null);function dt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ie(e,t=X().fallbackLocale){const r=dt(e);return t?[...new Set([...r,...dt(t)])]:r}function N(){return Ve!=null?Ve:void 0}de.subscribe(e=>{Ve=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const li=e=>{if(e&&zn(e)&&pe(e)){const{loadingDelay:t}=X();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ne.set(!0),t):Ne.set(!0),Kt(e).then(()=>{de.set(e)}).finally(()=>{clearTimeout(r),Ne.set(!1)})}return de.set(e)},$=hi(ui({},de),{set:li}),Ee=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var fi=Object.defineProperty,be=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,bt=(e,t,r)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&bt(e,r,t[r]);if(be)for(var r of be(t))tr.call(t,r)&&bt(e,r,t[r]);return e},Z=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r};const ee=(e,t)=>{const{formats:r}=X();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ci=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ee("number",n)),new Intl.NumberFormat(r,i)}),mi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ee("date",n):Object.keys(i).length===0&&(i=ee("date","short")),new Intl.DateTimeFormat(r,i)}),pi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ee("time",n):Object.keys(i).length===0&&(i=ee("time","short")),new Intl.DateTimeFormat(r,i)}),di=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return ci(Ze({locale:r},n))},bi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return mi(Ze({locale:r},n))},gi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return pi(Ze({locale:r},n))},_i=Ee((e,t=N())=>new Zt(e,t,X().formats,{ignoreTag:X().ignoreTag})),yi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Qt(e,l);if(!h)h=(s=(i=(n=(r=X()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=_i(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},Ei=(e,t)=>gi(t).format(e),xi=(e,t)=>bi(t).format(e),vi=(e,t)=>di(t).format(e),Hi=(e,t=N())=>Qt(e,t),Bi=W([$,ne],()=>yi);W([$],()=>Ei);W([$],()=>xi);W([$],()=>vi);W([$,ne],()=>Hi);function gt(e,t){qt(e,t)}function Ti(e){ri({fallbackLocale:"en"}),$.set(e)}const _t={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};function wi(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Si(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ai(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Oi(e){mr(e,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const Pi=e=>({}),yt=e=>({}),Ci=e=>({}),Et=e=>({}),Li=e=>({}),xt=e=>({});function vt(e){let t,r,n;return{c(){t=z("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',re(t,"class","CashierHeaderLeftButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[6]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Ni(e){let t,r=e[1]&&vt(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=vt(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Ii(e){let t,r=e[4](e[2])+"",n;return{c(){t=z("span"),n=ze(r),re(t,"class","CashierHeaderTitle")},m(i,s){M(i,t,s),ce(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&gr(n,r)},d(i){i&&L(t)}}}function Ht(e){let t,r,n;return{c(){t=z("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>',re(t,"class","CashierHeaderRightButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[5]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Mi(e){let t,r=e[3]&&Ht(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=Ht(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function $i(e){let t,r,n,i;const s=e[16].leftButton,a=ve(s,e,e[15],xt),o=a||Ni(e),l=e[16].title,u=ve(l,e,e[15],Et),h=u||Ii(e),c=e[16].rightButton,m=ve(c,e,e[15],yt),p=m||Mi(e);return{c(){t=z("div"),o&&o.c(),r=tt(),h&&h.c(),n=tt(),p&&p.c(),re(t,"class","CashierHeader")},m(f,_){M(f,t,_),o&&o.m(t,null),ce(t,r),h&&h.m(t,null),ce(t,n),p&&p.m(t,null),e[17](t),i=!0},p(f,[_]){a?a.p&&(!i||_&32768)&&Be(a,s,f,f[15],i?He(s,f[15],_,Li):Te(f[15]),xt):o&&o.p&&(!i||_&2)&&o.p(f,i?_:-1),u?u.p&&(!i||_&32768)&&Be(u,l,f,f[15],i?He(l,f[15],_,Ci):Te(f[15]),Et):h&&h.p&&(!i||_&20)&&h.p(f,i?_:-1),m?m.p&&(!i||_&32768)&&Be(m,c,f,f[15],i?He(c,f[15],_,Pi):Te(f[15]),yt):p&&p.p&&(!i||_&8)&&p.p(f,i?_:-1)},i(f){i||(ue(o,f),ue(h,f),ue(p,f),i=!0)},o(f){Se(o,f),Se(h,f),Se(p,f),i=!1},d(f){f&&L(t),o&&o.d(f),h&&h.d(f),p&&p.d(f),e[17](null)}}}function Ri(e,t,r){let n;cr(e,Bi,g=>r(4,n=g));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:c="en"}=t,{showclosebutton:m=""}=t,{mbsource:p=""}=t,f,_=!1,v,O=!1;const P=()=>{fetch(l).then(g=>g.json()).then(g=>{Object.keys(g).forEach(Qe=>{gt(Qe,g[Qe])})}).catch(g=>{console.log(g)})};Object.keys(_t).forEach(g=>{gt(g,_t[g])});const H=()=>{Ti(c)},I=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},A=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{r(1,_=!!u&&u!=="false")},se=()=>{r(3,O=!!m&&m!=="false")},nr=()=>{r(2,v=h||"header.general")};Er(()=>()=>{});function ir(g){Ie[g?"unshift":"push"](()=>{f=g,r(0,f)})}return e.$$set=g=>{"clientstyling"in g&&r(7,a=g.clientstyling),"clientstylingurl"in g&&r(8,o=g.clientstylingurl),"translationurl"in g&&r(9,l=g.translationurl),"showbackbutton"in g&&r(10,u=g.showbackbutton),"title"in g&&r(11,h=g.title),"lang"in g&&r(12,c=g.lang),"showclosebutton"in g&&r(13,m=g.showclosebutton),"mbsource"in g&&r(14,p=g.mbsource),"$$scope"in g&&r(15,s=g.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&c&&H(),e.$$.dirty&6144&&c&&h&&nr(),e.$$.dirty&129&&a&&f&&wi(f,a),e.$$.dirty&257&&o&&f&&Si(f,o),e.$$.dirty&16385&&p&&f&&Ai(f,`${p}.Style`),e.$$.dirty&4608&&c&&l&&P(),e.$$.dirty&1024&&u&&R(),e.$$.dirty&8192&&m&&se()},[f,_,v,O,n,I,A,a,o,l,u,h,c,m,p,s,i,ir]}class rr extends Cr{constructor(t){super(),Or(this,t,Ri,$i,Tt,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},Oi)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),w()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),w()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),w()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),w()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),w()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),w()}}Pr(rr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=rr;
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ti={fallbackLocale:null,loadingDelay:200,formats:Kn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},J=ti;function X(){return J}function ri(e){const t=e,{formats:r}=t,n=Yn(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Zt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ei:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(J,n,{initialLocale:i}),r&&("number"in r&&Object.assign(J.formats.number,r.number),"date"in r&&Object.assign(J.formats.date,r.date),"time"in r&&Object.assign(J.formats.time,r.time)),$.set(i)}const Ne=ge(!1);var ni=Object.defineProperty,ii=Object.defineProperties,si=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ui=(e,t)=>{for(var r in t||(t={}))oi.call(t,r)&&pt(e,r,t[r]);if(mt)for(var r of mt(t))ai.call(t,r)&&pt(e,r,t[r]);return e},hi=(e,t)=>ii(e,si(t));let Ve;const de=ge(null);function dt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ie(e,t=X().fallbackLocale){const r=dt(e);return t?[...new Set([...r,...dt(t)])]:r}function N(){return Ve!=null?Ve:void 0}de.subscribe(e=>{Ve=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const li=e=>{if(e&&zn(e)&&pe(e)){const{loadingDelay:t}=X();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ne.set(!0),t):Ne.set(!0),Kt(e).then(()=>{de.set(e)}).finally(()=>{clearTimeout(r),Ne.set(!1)})}return de.set(e)},$=hi(ui({},de),{set:li}),Ee=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var fi=Object.defineProperty,be=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,bt=(e,t,r)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&bt(e,r,t[r]);if(be)for(var r of be(t))tr.call(t,r)&&bt(e,r,t[r]);return e},Z=(e,t)=>{var r={};for(var n in e)er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&be)for(var n of be(e))t.indexOf(n)<0&&tr.call(e,n)&&(r[n]=e[n]);return r};const ee=(e,t)=>{const{formats:r}=X();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ci=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ee("number",n)),new Intl.NumberFormat(r,i)}),mi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ee("date",n):Object.keys(i).length===0&&(i=ee("date","short")),new Intl.DateTimeFormat(r,i)}),pi=Ee(e=>{var t=e,{locale:r,format:n}=t,i=Z(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ee("time",n):Object.keys(i).length===0&&(i=ee("time","short")),new Intl.DateTimeFormat(r,i)}),di=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return ci(Ze({locale:r},n))},bi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return mi(Ze({locale:r},n))},gi=(e={})=>{var t=e,{locale:r=N()}=t,n=Z(t,["locale"]);return pi(Ze({locale:r},n))},_i=Ee((e,t=N())=>new Zt(e,t,X().formats,{ignoreTag:X().ignoreTag})),yi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Qt(e,l);if(!h)h=(s=(i=(n=(r=X()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=_i(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},Ei=(e,t)=>gi(t).format(e),xi=(e,t)=>bi(t).format(e),vi=(e,t)=>di(t).format(e),Hi=(e,t=N())=>Qt(e,t),Bi=W([$,ne],()=>yi);W([$],()=>Ei);W([$],()=>xi);W([$],()=>vi);W([$,ne],()=>Hi);function gt(e,t){qt(e,t)}function Ti(e){ri({fallbackLocale:"en"}),$.set(e)}const _t={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},fr:{header:{general:"Caisse",deposit:"Dépôt",withdraw:"Retrait"}}};function wi(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Si(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ai(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Oi(e){mr(e,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const Pi=e=>({}),yt=e=>({}),Ci=e=>({}),Et=e=>({}),Li=e=>({}),xt=e=>({});function vt(e){let t,r,n;return{c(){t=z("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',re(t,"class","CashierHeaderLeftButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[6]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Ni(e){let t,r=e[1]&&vt(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=vt(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Ii(e){let t,r=e[4](e[2])+"",n;return{c(){t=z("span"),n=ze(r),re(t,"class","CashierHeaderTitle")},m(i,s){M(i,t,s),ce(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&gr(n,r)},d(i){i&&L(t)}}}function Ht(e){let t,r,n;return{c(){t=z("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>',re(t,"class","CashierHeaderRightButton")},m(i,s){M(i,t,s),r||(n=Ot(t,"click",e[5]),r=!0)},p:T,d(i){i&&L(t),r=!1,n()}}}function Mi(e){let t,r=e[3]&&Ht(e);return{c(){r&&r.c(),t=At()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=Ht(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function $i(e){let t,r,n,i;const s=e[16].leftButton,a=ve(s,e,e[15],xt),o=a||Ni(e),l=e[16].title,u=ve(l,e,e[15],Et),h=u||Ii(e),c=e[16].rightButton,m=ve(c,e,e[15],yt),p=m||Mi(e);return{c(){t=z("div"),o&&o.c(),r=tt(),h&&h.c(),n=tt(),p&&p.c(),re(t,"class","CashierHeader")},m(f,_){M(f,t,_),o&&o.m(t,null),ce(t,r),h&&h.m(t,null),ce(t,n),p&&p.m(t,null),e[17](t),i=!0},p(f,[_]){a?a.p&&(!i||_&32768)&&Be(a,s,f,f[15],i?He(s,f[15],_,Li):Te(f[15]),xt):o&&o.p&&(!i||_&2)&&o.p(f,i?_:-1),u?u.p&&(!i||_&32768)&&Be(u,l,f,f[15],i?He(l,f[15],_,Ci):Te(f[15]),Et):h&&h.p&&(!i||_&20)&&h.p(f,i?_:-1),m?m.p&&(!i||_&32768)&&Be(m,c,f,f[15],i?He(c,f[15],_,Pi):Te(f[15]),yt):p&&p.p&&(!i||_&8)&&p.p(f,i?_:-1)},i(f){i||(ue(o,f),ue(h,f),ue(p,f),i=!0)},o(f){Se(o,f),Se(h,f),Se(p,f),i=!1},d(f){f&&L(t),o&&o.d(f),h&&h.d(f),p&&p.d(f),e[17](null)}}}function Ri(e,t,r){let n;cr(e,Bi,g=>r(4,n=g));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:c="en"}=t,{showclosebutton:m=""}=t,{mbsource:p=""}=t,f,_=!1,v,O=!1;const P=()=>{fetch(l).then(g=>g.json()).then(g=>{Object.keys(g).forEach(Qe=>{gt(Qe,g[Qe])})}).catch(g=>{console.log(g)})};Object.keys(_t).forEach(g=>{gt(g,_t[g])});const H=()=>{Ti(c)},I=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},A=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{r(1,_=!!u&&u!=="false")},se=()=>{r(3,O=!!m&&m!=="false")},nr=()=>{r(2,v=h||"header.general")};Er(()=>()=>{});function ir(g){Ie[g?"unshift":"push"](()=>{f=g,r(0,f)})}return e.$$set=g=>{"clientstyling"in g&&r(7,a=g.clientstyling),"clientstylingurl"in g&&r(8,o=g.clientstylingurl),"translationurl"in g&&r(9,l=g.translationurl),"showbackbutton"in g&&r(10,u=g.showbackbutton),"title"in g&&r(11,h=g.title),"lang"in g&&r(12,c=g.lang),"showclosebutton"in g&&r(13,m=g.showclosebutton),"mbsource"in g&&r(14,p=g.mbsource),"$$scope"in g&&r(15,s=g.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&c&&H(),e.$$.dirty&6144&&c&&h&&nr(),e.$$.dirty&129&&a&&f&&wi(f,a),e.$$.dirty&257&&o&&f&&Si(f,o),e.$$.dirty&16385&&p&&f&&Ai(f,`${p}.Style`),e.$$.dirty&4608&&c&&l&&P(),e.$$.dirty&1024&&u&&R(),e.$$.dirty&8192&&m&&se()},[f,_,v,O,n,I,A,a,o,l,u,h,c,m,p,s,i,ir]}class rr extends Cr{constructor(t){super(),Or(this,t,Ri,$i,Tt,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},Oi)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),w()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),w()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),w()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),w()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),w()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),w()}}Pr(rr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=rr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierHeader-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierHeader-Cu-8sLy3.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}
|
package/es2015/cashier-header.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierHeader
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierHeader-BimbWnMq.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-header") && customElements.define("cashier-header", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-header.js
CHANGED