@feedmepos/mf-connect 0.1.96-prod → 0.1.98-beta.1

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 (120) hide show
  1. package/dist/{App-NtFnJR3D.js → App-EPNXLOQz.js} +118 -106
  2. package/dist/AuditLogs-CadZXkap.js +2013 -0
  3. package/dist/{Bin-DvJgE8J0.js → Bin-CEWFX1MK.js} +8 -8
  4. package/dist/{Broadcast-BygITJjC.js → Broadcast-DC8W46mc.js} +18 -17
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVuhePfe.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DsojUEnT.js} +5 -6
  6. package/dist/{Card-BY8qbjNS.js → Card-BLFHOVL5.js} +19 -19
  7. package/dist/{Collections-CXZxfQmy.js → Collections-CVQV9gAI.js} +197 -185
  8. package/dist/{Credit-Dj4gJd18.js → Credit-Bvd1uiUU.js} +18 -17
  9. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DMHQ36PW.js +3377 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-IH5P2GQ4.js → EffectSheet.vue_vue_type_style_index_0_lang-L8fftBYg.js} +105 -101
  12. package/dist/{Experience-CKLT-XKN.js → Experience-bKhm3DP2.js} +35 -34
  13. package/dist/{FileSaver.min-CqZKU_4D.js → FileSaver.min-CgnAdnBE.js} +1 -1
  14. package/dist/{Game-CMXXSxs7.js → Game-BTZ5Ftp5.js} +16 -15
  15. package/dist/Grab-DMuSoVGl.js +300 -0
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B4u8lwM_.js → ImageInput.vue_vue_type_script_setup_true_lang-hMmCNoZI.js} +1 -1
  17. package/dist/{Index-CFGAKZTu.js → Index-BNh-_EZa.js} +10 -10
  18. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-COoygUYu.js +48 -0
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-UfQtiVK3.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D0wKkrBj.js} +1 -1
  20. package/dist/LoyaltyDashboard-Do06Mjzo.js +1082 -0
  21. package/dist/{MainLayout-UCAW-wwn.js → MainLayout-C_Zu8e2b.js} +1 -1
  22. package/dist/{Marketing-HU2MkAbE.js → Marketing-DHTow_lX.js} +4 -4
  23. package/dist/{MarketingMaterialEdit-CS7hzmeA.js → MarketingMaterialEdit-BZqVEaXl.js} +214 -211
  24. package/dist/{Member-BG1gvC8G.js → Member-DNQICbO9.js} +20 -20
  25. package/dist/{MemberList-C7l5YNJF.js → MemberList-B5f-zT_3.js} +50 -51
  26. package/dist/{MemberTransactions-RQD9xfSN.js → MemberTransactions-BmmgHC1I.js} +1 -1
  27. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CcTrvGEk.js → MessageInput.vue_vue_type_script_setup_true_lang-DhlFz8So.js} +11 -11
  28. package/dist/{Mission-B2ynmUaz.js → Mission-CyUldhj4.js} +35 -34
  29. package/dist/{Overview-DI1MMGCM.js → Overview-If_YcRY8.js} +19 -19
  30. package/dist/{Point-DkLfnk6D.js → Point-DXgR4D2b.js} +30 -29
  31. package/dist/{Promotion-BDsMtw76.js → Promotion-8KrS5PGT.js} +111 -105
  32. package/dist/{Queue-Bu5PffRS.js → Queue-ypegp0sQ.js} +43 -43
  33. package/dist/{Record-C9zk5pr8.js → Record-C1eVdBIL.js} +10 -10
  34. package/dist/Review-fsYAsdHU.js +871 -0
  35. package/dist/ReviewFacebookCallback-zNKnoxr_.js +243 -0
  36. package/dist/ReviewGoogleCallback-CpCT0ZYL.js +213 -0
  37. package/dist/{Reward-DLyMbKCK.js → Reward-B_k-VLJn.js} +17 -17
  38. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-XWcV6P7K.js → RewardGroup.vue_vue_type_script_setup_true_lang-BUl5B7lH.js} +12 -12
  39. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D93zAujE.js +1911 -0
  40. package/dist/{Segment-CkvTGYMI.js → Segment-PJLbJ6YE.js} +77 -78
  41. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CmoGA4QY.js → SelectItems.vue_vue_type_script_setup_true_lang-BLwf6QCO.js} +21 -21
  42. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D0fupqWp.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-VoddUHxA.js} +12 -12
  43. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CdPBhSHS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DOXfYdxf.js} +4 -4
  44. package/dist/{Setting-3aaebMiz.js → Setting-DItVUJHA.js} +259 -248
  45. package/dist/{SettingAdvertisements-B1rlNyFd.js → SettingAdvertisements-Bfvr60OW.js} +13 -13
  46. package/dist/{Store-7BnWIZ7G.js → Store-hyTJyNWv.js} +24 -24
  47. package/dist/{StoreRewards-CjcrPRwJ.js → StoreRewards-B7c20AF5.js} +16 -16
  48. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bl438tVa.js +1130 -0
  49. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DBb3Zfuz.js +7007 -0
  50. package/dist/{Tier-BJpbCCsL.js → Tier-CuulnY8J.js} +544 -469
  51. package/dist/{Title-CqpbvePy.js → Title-Bf9ZiFGW.js} +93 -92
  52. package/dist/{Transaction-B8gpL3cS.js → Transaction-reVAaf86.js} +2 -2
  53. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DDoia_qu.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BZP9jfwG.js} +6 -6
  54. package/dist/{Voucher-DQ6i1GyQ.js → Voucher-E8R2cCl-.js} +28 -27
  55. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BudfxMvl.js → VoucherEditor.vue_vue_type_script_setup_true_lang-1mclPYkp.js} +12 -12
  56. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B43ehs2w.js → ZodTextField.vue_vue_type_script_setup_true_lang-xP5smS4G.js} +2 -2
  57. package/dist/{app-Cdi9yyaa.js → app-BdRRCAGj.js} +47089 -32960
  58. package/dist/app.js +4 -3
  59. package/dist/{business-BPhMhPp8.js → business-caUtvXxX.js} +1 -1
  60. package/dist/{campaign-DHqBhgh5.js → campaign-CDFEhdIH.js} +13 -7
  61. package/dist/{campaign-DLWpOBzd.js → campaign-CPtzFxiR.js} +114 -64
  62. package/dist/campaign.enum-p1buII_I.js +26 -0
  63. package/dist/campaign.fn-DerIK7yj.js +776 -0
  64. package/dist/{collectible.enum-EoZwnXkR.js → collectible.enum-CJ30_XmW.js} +1 -1
  65. package/dist/duplicateCampaign-DLfhHm07.js +51 -0
  66. package/dist/effect-BJC34M9S.js +89 -0
  67. package/dist/{email-addresses-CuhtzvMR.js → email-addresses-D1aYCi0p.js} +2 -2
  68. package/dist/{export-D2wb3Zzg.js → export-ChFEuUc5.js} +3 -3
  69. package/dist/{helper-B80tn5O6.js → helper-BNWd3eM2.js} +1 -1
  70. package/dist/{timezone-BIzl2Gac.js → index-0SZADZbB.js} +21 -20
  71. package/dist/{index-B85ryzLj.js → index-6ZSFSZ-H.js} +769 -205
  72. package/dist/index-B4dazSVT.js +48 -0
  73. package/dist/{index-C7XyuCH8.js → index-B9xvXnEM.js} +3 -3
  74. package/dist/{index-Dg-VScjz.js → index-BWQK3rqq.js} +3 -3
  75. package/dist/{index-D1_JoBc_.js → index-BoeHTTcl.js} +1 -1
  76. package/dist/{index-CCfDzgJb.js → index-Br17eSOV.js} +1 -1
  77. package/dist/{index-HzTI8A55.js → index-CAVSuo6k.js} +1996 -1968
  78. package/dist/{index-B0S0BGjb.js → index-CIin0Pv0.js} +1 -1
  79. package/dist/{index-BVXwb1vw.js → index-CeSEAz_T.js} +1 -1
  80. package/dist/{index-DDLHaeVd.js → index-DNsYSxpY.js} +1539 -1267
  81. package/dist/index-Dcn4qaYt.js +67 -0
  82. package/dist/{index-DA5sHUgD.js → index-Do2cnzep.js} +1 -1
  83. package/dist/{index-v9zPLkiJ.js → index-Dp3CLZSg.js} +7 -7
  84. package/dist/{index.esm2017-CfogVJWR.js → index.esm2017-CYGo-PcK.js} +173 -173
  85. package/dist/{loading-_HLw0JNH.js → loading-DtPQnEA5.js} +1 -1
  86. package/dist/{lodash-7LLl_N0k.js → lodash-BvTKz5Pn.js} +1 -1
  87. package/dist/{membership-Dl34LatD.js → membership-Csnvqeql.js} +3 -3
  88. package/dist/{money-Ca4jlK9c.js → money-CwRxILG1.js} +1 -1
  89. package/dist/{number-CWjqupZw.js → number-qcECHCpu.js} +1 -1
  90. package/dist/object-BYyQ0PZp.js +18 -0
  91. package/dist/objectid-BKWyHH4F.js +145 -0
  92. package/dist/{plugins-uNooTC4W.js → plugins-BBpKk0ld.js} +94 -95
  93. package/dist/{reward-BRIYprM8.js → reward-CX1axU5-.js} +1 -1
  94. package/dist/{rule-CkUScWS-.js → rule-pKsATz8r.js} +505 -487
  95. package/dist/style.css +1 -1
  96. package/dist/template-BSuapoPb.js +188 -0
  97. package/dist/{trigger-Dd92AYz3.js → trigger-DnMktlx-.js} +5 -5
  98. package/dist/{useMarketingMaterialActions-DlEYiRxQ.js → useMarketingMaterialActions-Bu0-ny3z.js} +3 -3
  99. package/dist/{usePagination--trERWY4.js → usePagination-CzfJhepV.js} +1 -1
  100. package/dist/{user-CI-tPhnX.js → user-BLDWqYm_.js} +1 -1
  101. package/dist/vue-i18n-bssxjuw_.js +2365 -0
  102. package/dist/{xlsx-BtsmiXIl.js → xlsx-xNwsJDub.js} +1 -1
  103. package/dist/{zod-Cq4jls5y.js → zod-Cu18aMVT.js} +1 -1
  104. package/package.json +8 -4
  105. package/dist/Analytic-l10g_BkW.js +0 -426
  106. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Djcv8RCR.js +0 -2223
  107. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BW2MrhuC.js +0 -1888
  108. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C3mmS25r.js +0 -1118
  109. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-TVsbx26f.js +0 -142
  110. package/dist/campaign.enum-C7BourYN.js +0 -20
  111. package/dist/campaign.fn-PjAM2LtF.js +0 -776
  112. package/dist/collection.fn-Ds616d3q.js +0 -26
  113. package/dist/dto-5fg5RWhP.js +0 -216
  114. package/dist/effect-BJva6Fjl.js +0 -78
  115. package/dist/index-CmGQazKB.js +0 -55
  116. package/dist/object-qECH92oz.js +0 -26
  117. package/dist/objectid-BGNEnJDn.js +0 -145
  118. package/dist/rule-builder-Ds-h-MuV.js +0 -102
  119. package/dist/template-0zuNVS82.js +0 -236
  120. package/dist/vue-i18n-BIM-SckA.js +0 -2365
@@ -1,4 +1,4 @@
1
- import { z as e } from "./index-Dg-VScjz.js";
1
+ import { z as e } from "./index-BWQK3rqq.js";
2
2
  const E = e.enum([
3
3
  "VOUCHER",
4
4
  "CREDIT",
@@ -0,0 +1,51 @@
1
+ import { p as l, i } from "./plugins-BBpKk0ld.js";
2
+ import { _ as r } from "./lodash-BvTKz5Pn.js";
3
+ function A(e) {
4
+ return l.confirm(
5
+ i.global.t("connect.common.duplicate.confirmMessage", { name: e }),
6
+ i.global.t("connect.common.duplicate.title"),
7
+ i.global.t("connect.common.duplicate.proceed")
8
+ );
9
+ }
10
+ const f = ["LOYALTY", "NO_REWARD"], s = {
11
+ GAME: [(e) => {
12
+ var o;
13
+ return (o = e == null ? void 0 : e.game) == null ? void 0 : o.rewards;
14
+ }],
15
+ MISSION: [
16
+ (e) => e == null ? void 0 : e.rewards,
17
+ (e) => {
18
+ var o;
19
+ return (o = e == null ? void 0 : e.mission) == null ? void 0 : o.rewards;
20
+ }
21
+ ],
22
+ REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
23
+ };
24
+ function u(e, o) {
25
+ e && e.forEach((t) => {
26
+ o.includes(t.type ?? "") || (t.collectible = null, t.type === "VOUCHER" && t.collectibleConfig && (t.collectibleConfig._id = void 0));
27
+ });
28
+ }
29
+ function d(e) {
30
+ e._id = void 0;
31
+ }
32
+ function R(e, o) {
33
+ e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, o || (e.campaign.collectible = void 0));
34
+ }
35
+ function C(e, o) {
36
+ e.configs && (e.configs.currentReceive = void 0, o || (e.configs._id = void 0));
37
+ }
38
+ function E(e) {
39
+ const o = s[(e == null ? void 0 : e.type) ?? ""];
40
+ o && o.forEach((t) => {
41
+ u(t(e), f);
42
+ });
43
+ }
44
+ function v(e, o = {}) {
45
+ const t = r.cloneDeep(e), { keepCollectible: c = !1 } = o, n = t.campaign;
46
+ return d(t), R(t, c), C(t, c), E(n), t;
47
+ }
48
+ export {
49
+ A as c,
50
+ v as p
51
+ };
@@ -0,0 +1,89 @@
1
+ import { c as r } from "./index-Dp3CLZSg.js";
2
+ function p(n) {
3
+ if (!n)
4
+ return null;
5
+ const o = r.Config.getCountry().currency.symbol;
6
+ function s(t) {
7
+ if (t.options.target === "ITEM" && t.options.strategy.type === "PRICE_CHANGE")
8
+ return null;
9
+ const e = r.Dinero.fromFdoDecimal({ decimal: t.adjustment.amount });
10
+ switch (t.adjustment.type) {
11
+ case "BY_PERCENTAGE":
12
+ return `${e.toObject().amount}% discount`;
13
+ case "BY_AMOUNT":
14
+ return `${o}${e.toUnit()} discount`;
15
+ case "TO_AMOUNT":
16
+ return `to ${o}${e.toUnit()}`;
17
+ }
18
+ }
19
+ function u(t) {
20
+ switch (t.options.target) {
21
+ case "BILL":
22
+ return "Bill Discount";
23
+ case "ITEM":
24
+ if (t.options.strategy.type === "PRICE_CHANGE") {
25
+ const e = t.options.strategy.key;
26
+ return e ? `Use ${e} price` : "Use different price";
27
+ } else {
28
+ if (t.options.strategy.type === "SIMPLE")
29
+ return "Item Discount";
30
+ if (t.options.strategy.type === "BUY_X_GET_Y")
31
+ return "Buy X Get Y (same product set)";
32
+ if (t.options.strategy.type === "BUY_X_GET_Y_V2")
33
+ return "Buy X Get Y (mixed product set)";
34
+ if (t.options.strategy.type === "BUY_X_ITEM_A_GET_Y_ITEM_B")
35
+ return "Buy X Get Y (different product set)";
36
+ if (t.options.strategy.type === "COMBO")
37
+ return "Combo";
38
+ }
39
+ break;
40
+ case "PAYMENT":
41
+ return "Payment";
42
+ default:
43
+ throw new Error("Invalid effect target");
44
+ }
45
+ }
46
+ function a(t) {
47
+ return t.options.target === "ITEM" && t.options.strategy.type === "PRICE_CHANGE" ? "Requires POS 7.12.18 or above" : null;
48
+ }
49
+ function c(t) {
50
+ if (t.options.target === "BILL" || t.options.target === "PAYMENT") {
51
+ const e = r.Dinero.fromFdoDecimal({
52
+ decimal: t.options.minPurchase
53
+ });
54
+ return e.toUnit() > 0 ? `min spend ${o}${e.toUnit()}` : "no min spend";
55
+ }
56
+ if (t.options.target === "ITEM" && t.options.minPurchase) {
57
+ const e = r.Dinero.fromFdoDecimal({
58
+ decimal: t.options.minPurchase
59
+ });
60
+ return e.toUnit() > 0 ? `min spend ${o}${e.toUnit()}` : "no min spend";
61
+ }
62
+ return "no min spend";
63
+ }
64
+ function m(t) {
65
+ var e;
66
+ if (((e = t.adjustmentRule) == null ? void 0 : e.type) == "CAPPED_AT") {
67
+ const i = r.Dinero.fromFdoDecimal({
68
+ decimal: t.adjustmentRule.amount
69
+ }).toPositive();
70
+ return i.toUnit() > 0 ? `cap at ${o}${i.toUnit()}` : null;
71
+ }
72
+ return null;
73
+ }
74
+ return {
75
+ type: u(n),
76
+ adjustment: s(n),
77
+ requirements: c(n),
78
+ maxCap: m(n),
79
+ posHint: a(n)
80
+ };
81
+ }
82
+ function l(n) {
83
+ const o = p(n);
84
+ return !n || !o ? null : Object.values(o).filter(Boolean).join(" | ");
85
+ }
86
+ export {
87
+ l as e,
88
+ p as s
89
+ };
@@ -1,8 +1,8 @@
1
1
  var ur = Object.defineProperty;
2
2
  var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
3
3
  var pn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
4
- import { u as V } from "./xlsx-BtsmiXIl.js";
5
- import { g as ar } from "./app-Cdi9yyaa.js";
4
+ import { u as V } from "./xlsx-xNwsJDub.js";
5
+ import { g as ar } from "./app-BdRRCAGj.js";
6
6
  class fr {
7
7
  constructor() {
8
8
  pn(this, "data", []);
@@ -1,10 +1,10 @@
1
1
  var g = Object.defineProperty;
2
2
  var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
3
3
  var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
4
- import { u as a, w as f } from "./xlsx-BtsmiXIl.js";
5
- import { u as h } from "./loading-_HLw0JNH.js";
4
+ import { u as a, w as f } from "./xlsx-xNwsJDub.js";
5
+ import { u as h } from "./loading-DtPQnEA5.js";
6
6
  import { h as x } from "./moment-D7p2TMB-.js";
7
- import { m as w } from "./index-BVXwb1vw.js";
7
+ import { m as w } from "./index-CeSEAz_T.js";
8
8
  class y {
9
9
  constructor() {
10
10
  d(this, "records", []);
@@ -1,4 +1,4 @@
1
- import { k as l } from "./index-HzTI8A55.js";
1
+ import { k as l } from "./index-CAVSuo6k.js";
2
2
  function u(t, e) {
3
3
  switch (t) {
4
4
  case "COIN":
@@ -1,6 +1,22 @@
1
- import { a as q0, c as o0, g as W0 } from "./app-Cdi9yyaa.js";
1
+ import { e as n } from "./index-Dp3CLZSg.js";
2
+ import { a as q0, c as o0, g as W0 } from "./app-BdRRCAGj.js";
2
3
  import { m as d0 } from "./moment-D7p2TMB-.js";
3
- import { e as n } from "./index-v9zPLkiJ.js";
4
+ const t0 = {
5
+ [n.F_COUNTRY.enum.MY]: "Asia/Kuala_Lumpur",
6
+ [n.F_COUNTRY.enum.SG]: "Asia/Singapore",
7
+ JP: "Asia/Tokyo",
8
+ AE: "Asia/Dubai",
9
+ AU: "Australia/Sydney",
10
+ [n.F_COUNTRY.enum.TH]: "Asia/Bangkok",
11
+ [n.F_COUNTRY.enum.ID]: "Asia/Jakarta",
12
+ [n.F_COUNTRY.enum.BN]: "Asia/Brunei",
13
+ [n.F_COUNTRY.enum.MO]: "Asia/Macau",
14
+ [n.F_COUNTRY.enum.MV]: "Indian/Maldives",
15
+ [n.F_COUNTRY.enum.PK]: "Asia/Karachi",
16
+ [n.F_COUNTRY.enum.VN]: "Asia/Ho_Chi_Minh",
17
+ GB: "Europe/London",
18
+ MA: "Africa/Casablanca"
19
+ };
4
20
  var _ = { exports: {} }, j = { exports: {} };
5
21
  const R0 = /* @__PURE__ */ q0(d0);
6
22
  (function(S) {
@@ -1134,23 +1150,8 @@ const L0 = "2025b", n0 = [
1134
1150
  var i0 = _.exports = a0;
1135
1151
  i0.tz.load(B0);
1136
1152
  var X0 = _.exports;
1137
- const t0 = /* @__PURE__ */ W0(X0), l0 = {
1138
- [n.F_COUNTRY.enum.MY]: "Asia/Kuala_Lumpur",
1139
- [n.F_COUNTRY.enum.SG]: "Asia/Singapore",
1140
- JP: "Asia/Tokyo",
1141
- AE: "Asia/Dubai",
1142
- AU: "Australia/Sydney",
1143
- [n.F_COUNTRY.enum.TH]: "Asia/Bangkok",
1144
- [n.F_COUNTRY.enum.ID]: "Asia/Jakarta",
1145
- [n.F_COUNTRY.enum.BN]: "Asia/Brunei",
1146
- [n.F_COUNTRY.enum.MO]: "Asia/Macau",
1147
- [n.F_COUNTRY.enum.MV]: "Indian/Maldives",
1148
- [n.F_COUNTRY.enum.PK]: "Asia/Karachi",
1149
- [n.F_COUNTRY.enum.VN]: "Asia/Ho_Chi_Minh",
1150
- GB: "Europe/London",
1151
- MA: "Africa/Casablanca"
1152
- };
1153
+ const l0 = /* @__PURE__ */ W0(X0);
1153
1154
  export {
1154
- l0 as C,
1155
- t0 as m
1155
+ t0 as C,
1156
+ l0 as m
1156
1157
  };