@feedmepos/mf-connect 0.1.38-beta.34 → 0.1.38-beta.36
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/dist/{Analytic-DBUfOGXN.js → Analytic-BD-_e5dX.js} +13 -13
- package/dist/{App-BKoC43t0.js → App-BruXNEw1.js} +7 -7
- package/dist/{AuditLogs-DfcDKAAx.js → AuditLogs-CwYfGhmU.js} +9 -9
- package/dist/{Bin-K1LAZ7Il.js → Bin-BR8IGeJ_.js} +8 -8
- package/dist/{Broadcast-dPQylejk.js → Broadcast-B7mu9ABp.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CADc94lG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BhXm0obv.js} +6 -6
- package/dist/{Card-DqXEthXd.js → Card-DtxWfPIH.js} +16 -16
- package/dist/{Collections-2higR9xt.js → Collections-CivpJn2I.js} +6 -6
- package/dist/{Credit-C0zUwRx_.js → Credit-BuwlCi6z.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DiMkp8eD.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BQ5XZPzx.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CeZvW4CN.js → EffectSheet.vue_vue_type_style_index_0_lang-0sYn9Q55.js} +6 -6
- package/dist/{Experience-B2an8JbD.js → Experience-DdmyeLM8.js} +9 -9
- package/dist/{Game-BO7F7MwC.js → Game-C6Qrmitf.js} +10 -10
- package/dist/{Grab-DhHyUon4.js → Grab-BNJu8ZxE.js} +9 -9
- package/dist/{Index-uadi-EZ6.js → Index-CEQbbDQu.js} +10 -10
- package/dist/{Marketing-BWpOwWf0.js → Marketing-CUw3gIPA.js} +6 -6
- package/dist/{Member-Mcwja1E6.js → Member-BOZbnazh.js} +10 -10
- package/dist/{MemberList-BPGNOKXn.js → MemberList-C3BTFuyI.js} +25 -25
- package/dist/{MemberTransactions-DaBU7MOW.js → MemberTransactions-BLVwF-mq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DYuWH0OF.js → MessageInput.vue_vue_type_script_setup_true_lang-Bnpmzzal.js} +7 -7
- package/dist/{Mission-DSRwwQMw.js → Mission-6iK-i_z9.js} +10 -10
- package/dist/{Overview-B897q3qA.js → Overview-BW2kJP_8.js} +18 -18
- package/dist/{Point-lhl01-GA.js → Point-BB8eVw34.js} +9 -9
- package/dist/{Promotion-BvO0BUst.js → Promotion-kySJPARJ.js} +10 -10
- package/dist/{Queue-ec2IpEuf.js → Queue-3qswPQSh.js} +10 -10
- package/dist/{Record-BXLVpbR2.js → Record-DlZEZHU-.js} +8 -8
- package/dist/{Reward-DCzxzMzn.js → Reward-xLZmW7Ez.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-COiUXYSb.js → RewardGroup.vue_vue_type_script_setup_true_lang-CHf7caad.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Bz3lj9Ng.js → RuleGroup.vue_vue_type_script_setup_true_lang-DErfgVJ7.js} +13 -13
- package/dist/{Segment-CYk3w6PO.js → Segment-BCY0bGxh.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-ITaqten3.js → SelectItems.vue_vue_type_script_setup_true_lang-BSWzM0-O.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-ViJglQse.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-4B-CAGqF.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DSm11Q46.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-yz3Si8DU.js} +3 -3
- package/dist/{Setting-DZtcRs0k.js → Setting-Cm5p-cMw.js} +12 -12
- package/dist/{SettingAdvertisements-DBQEaFBm.js → SettingAdvertisements-BScX_ZlU.js} +9 -9
- package/dist/{Store-5svFOdbG.js → Store-Bz6G5Xkm.js} +19 -19
- package/dist/{StoreRewards-DImHNqJA.js → StoreRewards-CVVq-p00.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BUnlE8_-.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Dfxy9QbY.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CiDVA4p8.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BNAXABHy.js} +1 -1
- package/dist/{Tier-B43j8PN_.js → Tier-SZWq3uNN.js} +558 -482
- package/dist/{Title-6ThYGwPj.js → Title-D6grVpNZ.js} +19 -19
- package/dist/{Transaction-CGkAjZ9A.js → Transaction-48f5SjrB.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cvr5u0Zs.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Bre9ndNB.js} +6 -6
- package/dist/{Voucher-Blbht91D.js → Voucher-BO6LSoWC.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bi0Z03Ai.js → VoucherEditor.vue_vue_type_script_setup_true_lang-dUvNYcP7.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CWoUnCAa.js → ZodTextField.vue_vue_type_script_setup_true_lang-Er7g2107.js} +1 -1
- package/dist/{app-xTCQAKl2.js → app-BXpiqqOn.js} +38 -33
- package/dist/{app-C6urTnJ4.js → app-D5gglAzH.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-B7k-tZEN.js → business-Ts62lvPx.js} +1 -1
- package/dist/{campaign-Bz9UcS_m.js → campaign-BKMH0-JJ.js} +2 -2
- package/dist/{campaign-muSKe19-.js → campaign-C4qTO-pY.js} +71 -71
- package/dist/{campaign.enum-hDvXhq3o.js → campaign.enum-CNf8RPv1.js} +1 -1
- package/dist/{campaign.fn-dcycsEgm.js → campaign.fn-DjlRq9T7.js} +41 -41
- package/dist/{collectible.enum-wxQMWK6c.js → collectible.enum-BHMjD80C.js} +1 -1
- package/dist/{collection.fn-DDzDInuW.js → collection.fn-zrqctMCZ.js} +2 -2
- package/dist/{dto-CunCCKYQ.js → dto-C3BHvXrf.js} +4 -4
- package/dist/{effect-BXObGcbg.js → effect-BrpN-GMU.js} +1 -1
- package/dist/{email-addresses-C6eoXJGp.js → email-addresses-a7Aiqu7H.js} +1 -1
- package/dist/{export-BDFxcaL0.js → export-D5OtjM5i.js} +3 -3
- package/dist/{helper-BvwYqXjY.js → helper-4r5uVGZh.js} +1 -1
- package/dist/{index-DQqUeKpy.js → index-BEahE6DU.js} +2 -2
- package/dist/{index-C-Y8B9_g.js → index-BTv_F6cc.js} +1023 -1023
- package/dist/{index-B41wOGTO.js → index-BqzMDPwP.js} +1 -1
- package/dist/{index-_9R9an9a.js → index-BsTwY3yb.js} +1 -1
- package/dist/{index-3EjNf2am.js → index-BwvhwK5T.js} +1 -1
- package/dist/{index-CVG-2gDW.js → index-Ck7tjsx-.js} +1 -1
- package/dist/{index-DtFTHQOJ.js → index-CoCDvPo6.js} +1 -1
- package/dist/{index--EQGC2IH.js → index-D1n7brYp.js} +3 -3
- package/dist/{index-CkdgYD-t.js → index-DCOZf-fF.js} +1 -1
- package/dist/{index-tz_n5lEb.js → index-DOPjQffe.js} +4 -4
- package/dist/{index-DVL-x7W6.js → index-DhSk_C8v.js} +3 -3
- package/dist/{index-D23WXsuy.js → index-N_-Spvtg.js} +1 -1
- package/dist/{index-RKOwESmg.js → index-c8zcyxG7.js} +1 -1
- package/dist/{index-BuvsKdUo.js → index-yXW0uDWU.js} +6 -6
- package/dist/{index.esm2017-wyZHjxJg.js → index.esm2017-CGxYXO6M.js} +1 -1
- package/dist/{loading-CVL-OePP.js → loading-BFY1oPZW.js} +1 -1
- package/dist/{membership-Cwolq8Cj.js → membership-CATCNIkJ.js} +3 -3
- package/dist/{money-hSkLuGRM.js → money-DMUWBOst.js} +1 -1
- package/dist/{number-C6FRJ2M7.js → number-Dg9u7a_1.js} +1 -1
- package/dist/{objectid-aShDJfER.js → objectid-4UZV10Jv.js} +5 -5
- package/dist/{plugins-CPwW8rZp.js → plugins-Cg9eqKxj.js} +2 -2
- package/dist/{reward-BRjFlh6E.js → reward-BOsz1lXQ.js} +1 -1
- package/dist/{rule-CYMGrUxS.js → rule-CFiZ9Vr9.js} +3 -3
- package/dist/{rule-builder-TdDaDyR7.js → rule-builder-CO1yjYOf.js} +1 -1
- package/dist/{template-C78lPPQn.js → template-Dl8Rx9bk.js} +4 -4
- package/dist/{timezone-CAUT5KZd.js → timezone-DLFDCqpB.js} +1 -1
- package/dist/{trigger-CQKxXHDL.js → trigger-BCrmEip4.js} +4 -4
- package/dist/{user-8R-3y6sK.js → user-B_YaQbu1.js} +1 -1
- package/dist/{vue-i18n-LviVr_kr.js → vue-i18n-DmYEXd_G.js} +157 -157
- package/dist/{xlsx-mDgALSyS.js → xlsx-BkazQsUh.js} +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { h as F } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { e as G } from "./effect-
|
|
2
|
+
import "./index-DOPjQffe.js";
|
|
3
|
+
import { e as G } from "./effect-BrpN-GMU.js";
|
|
4
4
|
import { components as ie } from "@feedmepos/ui-library";
|
|
5
|
-
import { i as Ne } from "./rule-builder-
|
|
6
|
-
import { c as Ee } from "./rule-
|
|
7
|
-
import { u as
|
|
8
|
-
import { C as
|
|
9
|
-
import { c as ce } from "./plugins-
|
|
10
|
-
import { e as
|
|
11
|
-
import {
|
|
5
|
+
import { i as Ne } from "./rule-builder-CO1yjYOf.js";
|
|
6
|
+
import { c as Ee } from "./rule-CFiZ9Vr9.js";
|
|
7
|
+
import { u as Ve } from "./business-Ts62lvPx.js";
|
|
8
|
+
import { C as j } from "./campaign.fn-DjlRq9T7.js";
|
|
9
|
+
import { c as ce } from "./plugins-Cg9eqKxj.js";
|
|
10
|
+
import { e as je, Z as S, a as fe, i as Re, z as Fe } from "./app-BXpiqqOn.js";
|
|
11
|
+
import { detectLocale as Ie, createFeedMeI18n as De } from "@feedmepos/mf-common";
|
|
12
12
|
import { h as B } from "vue";
|
|
13
|
-
import { F as R } from "./campaign.enum-
|
|
13
|
+
import { F as R } from "./campaign.enum-CNf8RPv1.js";
|
|
14
14
|
const d = (a) => typeof a == "string", _ = () => {
|
|
15
15
|
let a, e;
|
|
16
16
|
const t = new Promise((s, i) => {
|
|
17
17
|
a = s, e = i;
|
|
18
18
|
});
|
|
19
19
|
return t.resolve = a, t.reject = e, t;
|
|
20
|
-
}, he = (a) => a == null ? "" : "" + a,
|
|
20
|
+
}, he = (a) => a == null ? "" : "" + a, Te = (a, e, t) => {
|
|
21
21
|
a.forEach((s) => {
|
|
22
22
|
e[s] && (t[s] = e[s]);
|
|
23
23
|
});
|
|
24
|
-
},
|
|
24
|
+
}, Ae = /###/g, ge = (a) => a && a.indexOf("###") > -1 ? a.replace(Ae, ".") : a, de = (a) => !a || d(a), z = (a, e, t) => {
|
|
25
25
|
const s = d(e) ? e.split(".") : e;
|
|
26
26
|
let i = 0;
|
|
27
27
|
for (; i < s.length - 1; ) {
|
|
@@ -46,7 +46,7 @@ const d = (a) => typeof a == "string", _ = () => {
|
|
|
46
46
|
for (; o.obj === void 0 && n.length; )
|
|
47
47
|
r = `${n[n.length - 1]}.${r}`, n = n.slice(0, n.length - 1), o = z(a, n, Object), o != null && o.obj && typeof o.obj[`${o.k}.${r}`] < "u" && (o.obj = void 0);
|
|
48
48
|
o.obj[`${o.k}.${r}`] = t;
|
|
49
|
-
},
|
|
49
|
+
}, Me = (a, e, t, s) => {
|
|
50
50
|
const {
|
|
51
51
|
obj: i,
|
|
52
52
|
k: r
|
|
@@ -59,7 +59,7 @@ const d = (a) => typeof a == "string", _ = () => {
|
|
|
59
59
|
} = z(a, e);
|
|
60
60
|
if (t && Object.prototype.hasOwnProperty.call(t, s))
|
|
61
61
|
return t[s];
|
|
62
|
-
},
|
|
62
|
+
}, Ke = (a, e, t) => {
|
|
63
63
|
const s = Z(a, t);
|
|
64
64
|
return s !== void 0 ? s : Z(e, t);
|
|
65
65
|
}, $e = (a, e, t) => {
|
|
@@ -67,7 +67,7 @@ const d = (a) => typeof a == "string", _ = () => {
|
|
|
67
67
|
s !== "__proto__" && s !== "constructor" && (s in a ? d(a[s]) || a[s] instanceof String || d(e[s]) || e[s] instanceof String ? t && (a[s] = e[s]) : $e(a[s], e[s], t) : a[s] = e[s]);
|
|
68
68
|
return a;
|
|
69
69
|
}, T = (a) => a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
70
|
-
var
|
|
70
|
+
var Ue = {
|
|
71
71
|
"&": "&",
|
|
72
72
|
"<": "<",
|
|
73
73
|
">": ">",
|
|
@@ -75,8 +75,8 @@ var Ke = {
|
|
|
75
75
|
"'": "'",
|
|
76
76
|
"/": "/"
|
|
77
77
|
};
|
|
78
|
-
const
|
|
79
|
-
class
|
|
78
|
+
const He = (a) => d(a) ? a.replace(/[&<>"'\/]/g, (e) => Ue[e]) : a;
|
|
79
|
+
class _e {
|
|
80
80
|
constructor(e) {
|
|
81
81
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
82
82
|
}
|
|
@@ -88,11 +88,11 @@ class He {
|
|
|
88
88
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const Be = [" ", ",", "?", "!", ";"], ze = new _e(20), Je = (a, e, t) => {
|
|
92
92
|
e = e || "", t = t || "";
|
|
93
|
-
const s =
|
|
93
|
+
const s = Be.filter((n) => e.indexOf(n) < 0 && t.indexOf(n) < 0);
|
|
94
94
|
if (s.length === 0) return !0;
|
|
95
|
-
const i =
|
|
95
|
+
const i = ze.getRegExp(`(${s.map((n) => n === "?" ? "\\?" : n).join("|")})`);
|
|
96
96
|
let r = !i.test(a);
|
|
97
97
|
if (!r) {
|
|
98
98
|
const n = a.indexOf(t);
|
|
@@ -120,7 +120,7 @@ const _e = [" ", ",", "?", "!", ";"], Be = new He(20), ze = (a, e, t) => {
|
|
|
120
120
|
i = n;
|
|
121
121
|
}
|
|
122
122
|
return i;
|
|
123
|
-
}, Q = (a) => a == null ? void 0 : a.replace("_", "-"),
|
|
123
|
+
}, Q = (a) => a == null ? void 0 : a.replace("_", "-"), Ye = {
|
|
124
124
|
type: "logger",
|
|
125
125
|
log(a) {
|
|
126
126
|
this.output("log", a);
|
|
@@ -143,7 +143,7 @@ class X {
|
|
|
143
143
|
}
|
|
144
144
|
init(e) {
|
|
145
145
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
146
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
146
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Ye, this.options = t, this.debug = t.debug;
|
|
147
147
|
}
|
|
148
148
|
log() {
|
|
149
149
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -303,7 +303,7 @@ const ve = {};
|
|
|
303
303
|
class q extends ee {
|
|
304
304
|
constructor(e) {
|
|
305
305
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
306
|
-
super(),
|
|
306
|
+
super(), Te(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
|
|
307
307
|
}
|
|
308
308
|
changeLanguage(e) {
|
|
309
309
|
e && (this.language = e);
|
|
@@ -322,7 +322,7 @@ class q extends ee {
|
|
|
322
322
|
s === void 0 && (s = ":");
|
|
323
323
|
const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
324
324
|
let r = t.ns || this.options.defaultNS || [];
|
|
325
|
-
const n = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
325
|
+
const n = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Je(e, s, i);
|
|
326
326
|
if (n && !o) {
|
|
327
327
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
328
328
|
if (l && l.length > 0)
|
|
@@ -416,14 +416,14 @@ class q extends ee {
|
|
|
416
416
|
for (let C = 0; C < Y.length; C++)
|
|
417
417
|
U.push(Y[C]);
|
|
418
418
|
else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language);
|
|
419
|
-
const oe = (C,
|
|
419
|
+
const oe = (C, V, H) => {
|
|
420
420
|
var ue;
|
|
421
421
|
const le = x && H !== c ? H : ke;
|
|
422
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l,
|
|
422
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(C, l, V, le, K, t) : (ue = this.backendConnector) != null && ue.saveMissing && this.backendConnector.saveMissing(C, l, V, le, K, t), this.emit("missingKey", C, l, V, c);
|
|
423
423
|
};
|
|
424
424
|
this.options.saveMissing && (this.options.saveMissingPlurals && k ? U.forEach((C) => {
|
|
425
|
-
const
|
|
426
|
-
E && t[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
425
|
+
const V = this.pluralResolver.getSuffixes(C, t);
|
|
426
|
+
E && t[`defaultValue${this.options.pluralSeparator}zero`] && V.indexOf(`${this.options.pluralSeparator}zero`) < 0 && V.push(`${this.options.pluralSeparator}zero`), V.forEach((H) => {
|
|
427
427
|
oe([C], n + H, t[`defaultValue${H}`] || M);
|
|
428
428
|
});
|
|
429
429
|
}) : oe(U, n, M));
|
|
@@ -626,7 +626,7 @@ const xe = {
|
|
|
626
626
|
pluralCategories: ["one", "other"]
|
|
627
627
|
})
|
|
628
628
|
};
|
|
629
|
-
class
|
|
629
|
+
class We {
|
|
630
630
|
constructor(e) {
|
|
631
631
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
632
632
|
this.languageUtils = e, this.options = t, this.logger = P.create("pluralResolver"), this.pluralRulesCache = {};
|
|
@@ -678,10 +678,10 @@ class Ye {
|
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
const Se = function(a, e, t) {
|
|
681
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r =
|
|
681
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r = Ke(a, e, t);
|
|
682
682
|
return !r && i && d(t) && (r = re(a, t, s), r === void 0 && (r = re(e, t, s))), r;
|
|
683
683
|
}, te = (a) => a.replace(/\$/g, "$$$$");
|
|
684
|
-
class
|
|
684
|
+
class Ge {
|
|
685
685
|
constructor() {
|
|
686
686
|
var t;
|
|
687
687
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -711,7 +711,7 @@ class We {
|
|
|
711
711
|
maxReplaces: L,
|
|
712
712
|
alwaysFormat: w
|
|
713
713
|
} = e.interpolation;
|
|
714
|
-
this.escape = t !== void 0 ? t :
|
|
714
|
+
this.escape = t !== void 0 ? t : He, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? T(r) : n || "{{", this.suffix = o ? T(o) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = f ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = c ? T(c) : m || T("$t("), this.nestingSuffix = g ? T(g) : p || T(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
|
|
715
715
|
}
|
|
716
716
|
reset() {
|
|
717
717
|
this.options && this.init(this.options);
|
|
@@ -807,7 +807,7 @@ class We {
|
|
|
807
807
|
return e;
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
const
|
|
810
|
+
const Ze = (a) => {
|
|
811
811
|
let e = a.toLowerCase().trim();
|
|
812
812
|
const t = {};
|
|
813
813
|
if (a.indexOf("(") > -1) {
|
|
@@ -838,7 +838,7 @@ const Ge = (a) => {
|
|
|
838
838
|
return o || (o = a(Q(s), i), e[n] = o), o(t);
|
|
839
839
|
};
|
|
840
840
|
};
|
|
841
|
-
class
|
|
841
|
+
class Qe {
|
|
842
842
|
constructor() {
|
|
843
843
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
844
844
|
this.logger = P.create("formatter"), this.options = e, this.formats = {
|
|
@@ -899,7 +899,7 @@ class Ze {
|
|
|
899
899
|
const {
|
|
900
900
|
formatName: u,
|
|
901
901
|
formatOptions: f
|
|
902
|
-
} =
|
|
902
|
+
} = Ze(l);
|
|
903
903
|
if (this.formats[u]) {
|
|
904
904
|
let c = o;
|
|
905
905
|
try {
|
|
@@ -919,10 +919,10 @@ class Ze {
|
|
|
919
919
|
}, e);
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
const
|
|
922
|
+
const Xe = (a, e) => {
|
|
923
923
|
a.pending[e] !== void 0 && (delete a.pending[e], a.pendingCount--);
|
|
924
924
|
};
|
|
925
|
-
class
|
|
925
|
+
class qe extends ee {
|
|
926
926
|
constructor(e, t, s) {
|
|
927
927
|
var r, n;
|
|
928
928
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -956,7 +956,7 @@ class Xe extends ee {
|
|
|
956
956
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
957
957
|
const o = {};
|
|
958
958
|
this.queue.forEach((l) => {
|
|
959
|
-
|
|
959
|
+
Me(l.loaded, [r], n), Xe(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
960
960
|
o[u] || (o[u] = {});
|
|
961
961
|
const f = l.loaded[u];
|
|
962
962
|
f.length && f.forEach((h) => {
|
|
@@ -1119,7 +1119,7 @@ const Oe = () => ({
|
|
|
1119
1119
|
var e, t;
|
|
1120
1120
|
return d(a.ns) && (a.ns = [a.ns]), d(a.fallbackLng) && (a.fallbackLng = [a.fallbackLng]), d(a.fallbackNS) && (a.fallbackNS = [a.fallbackNS]), ((t = (e = a.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (a.supportedLngs = a.supportedLngs.concat(["cimode"])), typeof a.initImmediate == "boolean" && (a.initAsync = a.initImmediate), a;
|
|
1121
1121
|
}, W = () => {
|
|
1122
|
-
},
|
|
1122
|
+
}, et = (a) => {
|
|
1123
1123
|
Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach((t) => {
|
|
1124
1124
|
typeof a[t] == "function" && (a[t] = a[t].bind(a));
|
|
1125
1125
|
});
|
|
@@ -1129,7 +1129,7 @@ class J extends ee {
|
|
|
1129
1129
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1130
1130
|
if (super(), this.options = Le(e), this.services = {}, this.logger = P, this.modules = {
|
|
1131
1131
|
external: []
|
|
1132
|
-
},
|
|
1132
|
+
}, et(this), t && !this.isInitialized && !e.isClone) {
|
|
1133
1133
|
if (!this.options.initAsync)
|
|
1134
1134
|
return this.init(e, t), this;
|
|
1135
1135
|
setTimeout(() => {
|
|
@@ -1154,16 +1154,16 @@ class J extends ee {
|
|
|
1154
1154
|
if (!this.options.isClone) {
|
|
1155
1155
|
this.modules.logger ? P.init(r(this.modules.logger), this.options) : P.init(null, this.options);
|
|
1156
1156
|
let f;
|
|
1157
|
-
this.modules.formatter ? f = this.modules.formatter : f =
|
|
1157
|
+
this.modules.formatter ? f = this.modules.formatter : f = Qe;
|
|
1158
1158
|
const h = new ye(this.options);
|
|
1159
1159
|
this.store = new me(this.options.resources, this.options);
|
|
1160
1160
|
const c = this.services;
|
|
1161
|
-
c.logger = P, c.resourceStore = this.store, c.languageUtils = h, c.pluralResolver = new
|
|
1161
|
+
c.logger = P, c.resourceStore = this.store, c.languageUtils = h, c.pluralResolver = new We(h, {
|
|
1162
1162
|
prepend: this.options.pluralSeparator,
|
|
1163
1163
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1164
|
-
}), f && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = r(f), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
1164
|
+
}), f && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = r(f), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Ge(this.options), c.utils = {
|
|
1165
1165
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1166
|
-
}, c.backendConnector = new
|
|
1166
|
+
}, c.backendConnector = new qe(r(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(m) {
|
|
1167
1167
|
for (var g = arguments.length, p = new Array(g > 1 ? g - 1 : 0), v = 1; v < g; v++)
|
|
1168
1168
|
p[v - 1] = arguments[v];
|
|
1169
1169
|
e.emit(m, ...p);
|
|
@@ -1394,7 +1394,7 @@ b.setDefaultNamespace;
|
|
|
1394
1394
|
b.hasLoadedNamespace;
|
|
1395
1395
|
b.loadNamespaces;
|
|
1396
1396
|
b.loadLanguages;
|
|
1397
|
-
var
|
|
1397
|
+
var tt = (a, e) => typeof e == "bigint" ? e.toString() : e;
|
|
1398
1398
|
function se(a, e = " | ") {
|
|
1399
1399
|
return a.map((t) => typeof t == "string" ? `'${t}'` : t).join(e);
|
|
1400
1400
|
}
|
|
@@ -1405,7 +1405,7 @@ var Ce = (a) => {
|
|
|
1405
1405
|
if (!Object.prototype.hasOwnProperty.call(a, e))
|
|
1406
1406
|
return !1;
|
|
1407
1407
|
return !0;
|
|
1408
|
-
},
|
|
1408
|
+
}, st = (a, e) => {
|
|
1409
1409
|
if (typeof a == "string")
|
|
1410
1410
|
return { key: a, values: {} };
|
|
1411
1411
|
if (Ce(a)) {
|
|
@@ -1413,7 +1413,7 @@ var Ce = (a) => {
|
|
|
1413
1413
|
return { key: t, values: s };
|
|
1414
1414
|
}
|
|
1415
1415
|
return { key: e, values: {} };
|
|
1416
|
-
}, we = "zod",
|
|
1416
|
+
}, we = "zod", it = (a) => (e, t) => {
|
|
1417
1417
|
var l;
|
|
1418
1418
|
const { t: s, ns: i, handlePath: r } = {
|
|
1419
1419
|
t: b.t,
|
|
@@ -1427,7 +1427,7 @@ var Ce = (a) => {
|
|
|
1427
1427
|
} : null
|
|
1428
1428
|
};
|
|
1429
1429
|
let n;
|
|
1430
|
-
n =
|
|
1430
|
+
n = je(e, t).message;
|
|
1431
1431
|
const o = e.path.length > 0 && r ? {
|
|
1432
1432
|
context: r.context,
|
|
1433
1433
|
path: s(
|
|
@@ -1464,7 +1464,7 @@ var Ce = (a) => {
|
|
|
1464
1464
|
break;
|
|
1465
1465
|
case S.invalid_literal:
|
|
1466
1466
|
n = s("errors.invalid_literal", {
|
|
1467
|
-
expected: JSON.stringify(e.expected,
|
|
1467
|
+
expected: JSON.stringify(e.expected, tt),
|
|
1468
1468
|
ns: i,
|
|
1469
1469
|
defaultValue: n,
|
|
1470
1470
|
...o
|
|
@@ -1572,7 +1572,7 @@ var Ce = (a) => {
|
|
|
1572
1572
|
);
|
|
1573
1573
|
break;
|
|
1574
1574
|
case S.custom:
|
|
1575
|
-
const { key: h, values: c } =
|
|
1575
|
+
const { key: h, values: c } = st(
|
|
1576
1576
|
(l = e.params) == null ? void 0 : l.i18n,
|
|
1577
1577
|
"errors.custom"
|
|
1578
1578
|
);
|
|
@@ -1608,7 +1608,7 @@ var Ce = (a) => {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
return { message: n };
|
|
1610
1610
|
};
|
|
1611
|
-
const ae =
|
|
1611
|
+
const ae = Ie(), rt = De({
|
|
1612
1612
|
locale: ae,
|
|
1613
1613
|
messages: Re
|
|
1614
1614
|
});
|
|
@@ -1617,8 +1617,8 @@ b.init({
|
|
|
1617
1617
|
lng: ae,
|
|
1618
1618
|
resources: Re
|
|
1619
1619
|
});
|
|
1620
|
-
Fe.setErrorMap(
|
|
1621
|
-
const ne =
|
|
1620
|
+
Fe.setErrorMap(it({ ns: ["connectZod", "connectZodCustom"] }));
|
|
1621
|
+
const ne = rt;
|
|
1622
1622
|
function $(a) {
|
|
1623
1623
|
return B(
|
|
1624
1624
|
"div",
|
|
@@ -1631,7 +1631,7 @@ function $(a) {
|
|
|
1631
1631
|
]
|
|
1632
1632
|
);
|
|
1633
1633
|
}
|
|
1634
|
-
const
|
|
1634
|
+
const bt = {
|
|
1635
1635
|
[R.enum.CREDIT]: {
|
|
1636
1636
|
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
1637
1637
|
icon: "local_activity",
|
|
@@ -1721,8 +1721,8 @@ const xt = {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
|
-
function
|
|
1725
|
-
const e =
|
|
1724
|
+
function St(a) {
|
|
1725
|
+
const e = nt(a), t = {
|
|
1726
1726
|
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
1727
1727
|
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
1728
1728
|
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
@@ -1741,7 +1741,7 @@ function bt(a) {
|
|
|
1741
1741
|
compact: !0
|
|
1742
1742
|
});
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1744
|
+
function Ot(a) {
|
|
1745
1745
|
const { campaign: e } = a;
|
|
1746
1746
|
function t(s) {
|
|
1747
1747
|
if (!s || !s.start && !s.end)
|
|
@@ -1769,27 +1769,27 @@ function St(a) {
|
|
|
1769
1769
|
},
|
|
1770
1770
|
get "connect.campaign.common.available_at"() {
|
|
1771
1771
|
return e.targetLocation ? e.targetLocation.length > 0 ? e.targetLocation.map(
|
|
1772
|
-
(s) =>
|
|
1772
|
+
(s) => Ve().locationItems.find((i) => i.value == s).label
|
|
1773
1773
|
).join(",") : "connect.campaign.common.no_location" : "connect.campaign.common.all_locations";
|
|
1774
1774
|
}
|
|
1775
1775
|
};
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function nt(a) {
|
|
1778
1778
|
return a.timeframeOptions && a.timeframeOptions.type == "timeframe" ? F().isBetween(
|
|
1779
1779
|
a.timeframeOptions.start ?? F().subtract(1, "d"),
|
|
1780
1780
|
a.timeframeOptions.end ?? F().add(1, "d")
|
|
1781
1781
|
) ? "active" : F().isAfter(a.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function Lt(a) {
|
|
1784
1784
|
var e, t;
|
|
1785
1785
|
switch (a.event.type) {
|
|
1786
1786
|
case "BILL_COMPLETED":
|
|
1787
|
-
const s = `Spend to get ${
|
|
1787
|
+
const s = `Spend to get ${j.formattedType(a.type)}`;
|
|
1788
1788
|
switch (a.type) {
|
|
1789
1789
|
case "POINT":
|
|
1790
1790
|
case "CREDIT":
|
|
1791
1791
|
case "COIN":
|
|
1792
|
-
return a.earningOption.type == "FIXED" ? `Spend to get ${a.earningOption.amount} ${
|
|
1792
|
+
return a.earningOption.type == "FIXED" ? `Spend to get ${a.earningOption.amount} ${j.formattedType(a.type)}` : `Every ${a.earningOption.every} amount spent get ${a.earningOption.amount} ${j.formattedType(a.type)}`;
|
|
1793
1793
|
case "VOUCHER":
|
|
1794
1794
|
const i = (t = (e = a == null ? void 0 : a.pf_collectible) == null ? void 0 : e.extras) == null ? void 0 : t.effect;
|
|
1795
1795
|
return i ? `${s} - ${G(i)}` : s;
|
|
@@ -1797,15 +1797,15 @@ function Ot(a) {
|
|
|
1797
1797
|
return s;
|
|
1798
1798
|
}
|
|
1799
1799
|
case "FEEDBACK":
|
|
1800
|
-
return `Give feedback to receive ${
|
|
1800
|
+
return `Give feedback to receive ${j.formattedType(a.type)}`;
|
|
1801
1801
|
case "SCHEDULE":
|
|
1802
|
-
return `Receive ${
|
|
1802
|
+
return `Receive ${j.formattedType(a.type)} on scheduled time`;
|
|
1803
1803
|
case "SIMPLE_CLAIM":
|
|
1804
1804
|
return "Simple claim voucher";
|
|
1805
1805
|
case "TIER_UPGRADED":
|
|
1806
|
-
return `Receive ${
|
|
1806
|
+
return `Receive ${j.formattedType(a.type)} when member tier upgraded`;
|
|
1807
1807
|
case "MEMBERSHIP_JOINED":
|
|
1808
|
-
return `Receive ${
|
|
1808
|
+
return `Receive ${j.formattedType(a.type)} when member joined`;
|
|
1809
1809
|
case "MAKING_ORDER":
|
|
1810
1810
|
return a.type !== "PROMOTION" ? void 0 : G(a.effect);
|
|
1811
1811
|
default:
|
|
@@ -1815,9 +1815,9 @@ function Ot(a) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
export {
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1818
|
+
bt as C,
|
|
1819
|
+
St as a,
|
|
1820
|
+
Lt as b,
|
|
1821
|
+
Ot as c,
|
|
1822
|
+
nt as g
|
|
1823
1823
|
};
|