@feedmepos/mf-connect 0.1.31-prod → 0.1.32-prod

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 (90) hide show
  1. package/dist/{Analytic-CSyE-O7F.js → Analytic-DRJEtVnN.js} +11 -11
  2. package/dist/{App-CI6T_Ggm.js → App-C1IuGBAJ.js} +6 -6
  3. package/dist/{Bin-D129K0UY.js → Bin-CM9cU-iH.js} +8 -8
  4. package/dist/{Broadcast-1YnrjwTp.js → Broadcast-1Fy8Nob5.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CUBa7vmH.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiAEDcl5.js} +6 -6
  6. package/dist/{Card-DnKxZI51.js → Card-CnuSjjCj.js} +97 -96
  7. package/dist/{Collections-H1k_V_JM.js → Collections-DAj_A1iu.js} +21 -20
  8. package/dist/{Credit-vgVhr8NN.js → Credit-DLH2GYYz.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DdqBz-Sf.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js} +29 -28
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-yeZq9E-H.js → EffectSheet.vue_vue_type_style_index_0_lang-D4--kNds.js} +6 -6
  11. package/dist/{Experience-DF0WMhAg.js → Experience-Dgyi4U-L.js} +9 -9
  12. package/dist/FileSaver.min-NlMItPOc.js +74 -0
  13. package/dist/{Game-9aC2CMq1.js → Game-VKYjF7hq.js} +10 -10
  14. package/dist/{Index-raxs8-hT.js → Index-B0BkKPLD.js} +10 -10
  15. package/dist/{Marketing-BhCFLx2Z.js → Marketing-Bzl7m10d.js} +6 -6
  16. package/dist/Member-CDmDoJFr.js +287 -0
  17. package/dist/{MemberList-DLJxPc32.js → MemberList-C4l_Q9y1.js} +38 -37
  18. package/dist/{MemberTransactions-cNPt5lU8.js → MemberTransactions-SUlFwOov.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLfpoWwi.js → MessageInput.vue_vue_type_script_setup_true_lang-Buj3xx1j.js} +17 -16
  20. package/dist/{Mission-DTqWDFkL.js → Mission-BriLVrc4.js} +88 -93
  21. package/dist/{Overview-Di1RiMiZ.js → Overview-AklJfO0G.js} +64 -63
  22. package/dist/{Point-C7vAdfqf.js → Point-B7VnNPaG.js} +9 -9
  23. package/dist/{Promotion-DwAl2ueC.js → Promotion-hlKzzWJD.js} +10 -10
  24. package/dist/{Queue-Ckh5U2q9.js → Queue-gOxy9cBG.js} +72 -63
  25. package/dist/{Record-CS22Hick.js → Record-BwWXqFv6.js} +17 -16
  26. package/dist/{Reward-ceTGl-6M.js → Reward-JKh-M0oD.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-N5HNvabk.js → RewardGroup.vue_vue_type_script_setup_true_lang-DFogiHWh.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Bln0CsrL.js → RuleGroup.vue_vue_type_script_setup_true_lang-CTOfCYsE.js} +15 -14
  29. package/dist/Segment-BlMx0eoR.js +880 -0
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CdBSrSG-.js → SelectItems.vue_vue_type_script_setup_true_lang-DCsFcqQ5.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-3WYVAiVq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-G01kJeLd.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5kPXWZM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-gUoBLfVo.js} +3 -3
  33. package/dist/{Setting-B080_HzI.js → Setting-CoKP6Z-F.js} +43 -42
  34. package/dist/{Store-DTeptzE3.js → Store-CxUagz23.js} +28 -27
  35. package/dist/{StoreRewards-CNrENhoO.js → StoreRewards-CLSQgaNo.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-D39kPD0g.js → StoreTransactions.vue_vue_type_script_setup_true_lang-V4rH3vAQ.js} +26 -25
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-YeLylLcx.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DJ7incG7.js} +1 -1
  38. package/dist/{Tier-DCtk62vI.js → Tier-DwTL1xNM.js} +22 -21
  39. package/dist/{Title-WLmc_Sgb.js → Title-DhBL_eYK.js} +19 -19
  40. package/dist/{Transaction-DrZ66hh2.js → Transaction-CRskHsNr.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B934hePK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DoE7rDgi.js} +6 -6
  42. package/dist/{Voucher-BWxGUu1r.js → Voucher-CxDqASF5.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Cwm5rKfF.js → VoucherEditor.vue_vue_type_script_setup_true_lang-wkihtNI3.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DgNwerl-.js → ZodTextField.vue_vue_type_script_setup_true_lang-BeLTXjOv.js} +1 -1
  45. package/dist/{app-CD95Y8ID.js → app-CTFwjMxq.js} +1 -1
  46. package/dist/{app-DXDpfEp1.js → app-QgT2HXjv.js} +34 -30
  47. package/dist/app.js +1 -1
  48. package/dist/{business-BMmMPKlg.js → business-DhCzKu3V.js} +1 -1
  49. package/dist/{campaign-CXiUdGVH.js → campaign-CFggCOe6.js} +9 -9
  50. package/dist/{campaign-DsHXtfeO.js → campaign-DAgovrbX.js} +2 -2
  51. package/dist/{campaign.enum-BmZUaKGr.js → campaign.enum-pZr63pXN.js} +1 -1
  52. package/dist/{campaign.fn-0yxgF1-s.js → campaign.fn-CM_t1wNu.js} +70 -70
  53. package/dist/{collectible.enum-CkHgwpV8.js → collectible.enum-fbWiJ-v2.js} +1 -1
  54. package/dist/{collection.fn-BEL2ePbu.js → collection.fn-BrbSJ0dj.js} +2 -2
  55. package/dist/{dto-C9i038zS.js → dto-BcLrcoo_.js} +12 -12
  56. package/dist/{effect-hnRcV89q.js → effect-WVUo2VX0.js} +1 -1
  57. package/dist/{email-addresses-B3aOGn9Q.js → email-addresses-B8YBttOp.js} +1 -1
  58. package/dist/{export-DhXPjZn4.js → export-FilTnKIf.js} +3 -3
  59. package/dist/{helper-B91UqTPy.js → helper-A-JE89j8.js} +1 -1
  60. package/dist/{index-CaQznIQx.js → index-BPCfLPV5.js} +1 -1
  61. package/dist/{index-DdkPyb-X.js → index-BSavh-ab.js} +3 -3
  62. package/dist/{index-BpiC24Lh.js → index-C1vwtNMj.js} +6 -6
  63. package/dist/{index-DRolGtez.js → index-CK_9lnGD.js} +3 -3
  64. package/dist/{index-DUESWqjo.js → index-CX4Q-ODj.js} +1 -1
  65. package/dist/{index-MTD1KXCx.js → index-CyqffI0r.js} +1 -1
  66. package/dist/{index-DwUvEDm8.js → index-CzH8ux-h.js} +2 -2
  67. package/dist/{index-CkB8qWx9.js → index-CzbdA0d3.js} +1 -1
  68. package/dist/{plugins-CA83RlbH.js → index-DFS6jDHm.js} +3784 -3989
  69. package/dist/{index-Dk0fL4Um.js → index-DI956UFg.js} +1 -1
  70. package/dist/{index-h-U0YoGx.js → index-DvM-OpLR.js} +469 -456
  71. package/dist/{index-mWR-Io8r.js → index-FsTLGrIL.js} +1 -1
  72. package/dist/{index-Bv_q5cPS.js → index-OehNKdCW.js} +1 -1
  73. package/dist/{index.esm2017-DvR1i10j.js → index.esm2017-CScWJGpE.js} +1 -1
  74. package/dist/{loading-CYFHRqwc.js → loading-CXZ39_xw.js} +1 -1
  75. package/dist/{membership-t5YCs8vf.js → membership-Bg_pBT1C.js} +54 -48
  76. package/dist/{money-u692Iuhj.js → money-D4vhiGvs.js} +1 -1
  77. package/dist/{number-BFoRQ3UV.js → number-p3U-wKsr.js} +1 -1
  78. package/dist/{objectid-ySkduRSJ.js → objectid-C_k8DXMk.js} +4 -4
  79. package/dist/plugins-BzCgGFW_.js +208 -0
  80. package/dist/{reward-BxAjgaY0.js → reward-DL7dVgek.js} +1 -1
  81. package/dist/{rule-builder-D3z1ZTIu.js → rule-builder-DZEGo8FL.js} +1 -1
  82. package/dist/{rule-B2-KiDax.js → rule-iUlMzG59.js} +3 -3
  83. package/dist/{template-Ep0uKJmD.js → template-FZF9V1B2.js} +4 -4
  84. package/dist/{trigger-i6Qv7Nko.js → trigger-woPb5C0Z.js} +4 -4
  85. package/dist/{user-bkYeGrIH.js → user-CoOoRDFP.js} +1 -1
  86. package/dist/{vue-i18n-2yeRgkZ7.js → vue-i18n-5r8XYctA.js} +251 -251
  87. package/dist/{xlsx-DIyBpsUe.js → xlsx-Cx714TFU.js} +1 -1
  88. package/package.json +1 -1
  89. package/dist/Member-ej-Yvlr1.js +0 -348
  90. package/dist/Segment-CT4UwYMZ.js +0 -578
@@ -1,27 +1,28 @@
1
1
  import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as _e, ref as $, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ce, createTextVNode as de, createCommentVNode as z, h as te, onMounted as ve } from "vue";
2
2
  import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-2yeRgkZ7.js";
4
- import { u as ue } from "./loading-CYFHRqwc.js";
5
- import { c as we, p as K } from "./plugins-CA83RlbH.js";
3
+ import { u as Z } from "./vue-i18n-5r8XYctA.js";
4
+ import { u as ue } from "./loading-CXZ39_xw.js";
5
+ import { c as we, p as K } from "./plugins-BzCgGFW_.js";
6
6
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
7
7
  import { Z as N } from "./zod-Bg2FbC-D.js";
8
8
  import { u as W } from "./app-wDQR6dpb.js";
9
- import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-N5HNvabk.js";
10
- import { u as me } from "./reward-BxAjgaY0.js";
11
- import { j as le, k as se } from "./index-h-U0YoGx.js";
12
- import "./index-DwUvEDm8.js";
13
- import { a as be, b as xe } from "./index-BpiC24Lh.js";
14
- import "./index-CkB8qWx9.js";
15
- import "./index-DRolGtez.js";
16
- import { C as fe } from "./membership-t5YCs8vf.js";
17
- import { t as ee } from "./helper-B91UqTPy.js";
9
+ import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DFogiHWh.js";
10
+ import { u as me } from "./reward-DL7dVgek.js";
11
+ import { l as le, c as se } from "./index-DvM-OpLR.js";
12
+ import "./index-CzH8ux-h.js";
13
+ import { a as be, b as xe } from "./index-C1vwtNMj.js";
14
+ import "./index-CzbdA0d3.js";
15
+ import "./index-CK_9lnGD.js";
16
+ import "./index-DFS6jDHm.js";
17
+ import { C as fe } from "./membership-Bg_pBT1C.js";
18
+ import { t as ee } from "./helper-A-JE89j8.js";
18
19
  import { c as H } from "./object-qECH92oz.js";
19
20
  import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
20
- import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DgNwerl-.js";
21
- import { T as Se, _ as $e, a as ke } from "./trigger-i6Qv7Nko.js";
22
- import { O as Fe } from "./objectid-ySkduRSJ.js";
23
- import { r as pe } from "./index-Dk0fL4Um.js";
24
- import { u as Pe } from "./business-BMmMPKlg.js";
21
+ import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BeLTXjOv.js";
22
+ import { T as Se, _ as $e, a as Fe } from "./trigger-woPb5C0Z.js";
23
+ import { O as ke } from "./objectid-C_k8DXMk.js";
24
+ import { r as pe } from "./index-DI956UFg.js";
25
+ import { u as Pe } from "./business-DhCzKu3V.js";
25
26
  const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
26
27
  __name: "ReferralRewadGroupCard",
27
28
  props: {
@@ -35,13 +36,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
35
36
  }
36
37
  },
37
38
  emits: ["edit", "addCount", "remove"],
38
- setup(k, { emit: n }) {
39
+ setup(F, { emit: n }) {
39
40
  const { t: I } = Z(), p = n;
40
41
  return (g, m) => {
41
42
  const l = w("FmButton"), d = w("FmListItem");
42
43
  return C(), B(Y, null, [
43
44
  c(d, {
44
- onClick: m[4] || (m[4] = (u) => p("edit", k.level)),
45
+ onClick: m[4] || (m[4] = (u) => p("edit", F.level)),
45
46
  class: "!p-0"
46
47
  }, {
47
48
  default: V(() => [
@@ -49,7 +50,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
49
50
  a("div", Ie, [
50
51
  a("div", Te, [
51
52
  a("div", Ue, [
52
- a("div", Ae, O(k.rewardGroup.name), 1)
53
+ a("div", Ae, O(F.rewardGroup.name), 1)
53
54
  ])
54
55
  ])
55
56
  ]),
@@ -59,13 +60,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
59
60
  label: r(I)("connect.referral.reward.add_count"),
60
61
  icon: "add",
61
62
  onClick: m[0] || (m[0] = (u) => {
62
- u.stopPropagation(), p("addCount", k.level);
63
+ u.stopPropagation(), p("addCount", F.level);
63
64
  })
64
65
  }, null, 8, ["label"]),
65
66
  c(l, {
66
67
  icon: "delete",
67
68
  onClick: m[1] || (m[1] = (u) => {
68
- u.stopPropagation(), p("remove", k.level);
69
+ u.stopPropagation(), p("remove", F.level);
69
70
  }),
70
71
  variant: "tertiary"
71
72
  })
@@ -76,14 +77,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
76
77
  a("div", Oe, [
77
78
  a("div", je, [
78
79
  a("div", null, [
79
- a("div", De, O(k.rewardGroup.name), 1)
80
+ a("div", De, O(F.rewardGroup.name), 1)
80
81
  ])
81
82
  ])
82
83
  ]),
83
84
  c(l, {
84
85
  variant: "tertiary",
85
86
  icon: "delete",
86
- onClick: m[2] || (m[2] = (u) => (u.stopPropagation(), p("remove", k.level)))
87
+ onClick: m[2] || (m[2] = (u) => (u.stopPropagation(), p("remove", F.level)))
87
88
  })
88
89
  ]),
89
90
  c(l, {
@@ -92,7 +93,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
92
93
  label: "Add count",
93
94
  disabled: !0,
94
95
  icon: "add",
95
- onClick: m[3] || (m[3] = (u) => (u.stopPropagation(), p("addCount", k.level)))
96
+ onClick: m[3] || (m[3] = (u) => (u.stopPropagation(), p("addCount", F.level)))
96
97
  })
97
98
  ])
98
99
  ]),
@@ -105,10 +106,10 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
105
106
  }), Me = { class: "flex flex-col space-y-16 pr-12" }, Ne = { class: "flex gap-16 items-center" }, He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = { class: "fm-typo-en-title-sm-800" }, Ye = { class: "flex items-center gap-8" }, qe = /* @__PURE__ */ q({
106
107
  __name: "EditReferralCountSheet",
107
108
  emits: ["update"],
108
- setup(k, { expose: n, emit: I }) {
109
+ setup(F, { expose: n, emit: I }) {
109
110
  const { t: p } = Z(), g = I, m = $(!1), l = $({}), d = $(-1), u = $(-1), R = Q(), A = be.superRefine((e, t) => {
110
- var F, U, P, x, _, E, ae;
111
- const i = u.value == -1 ? ((P = (U = (F = R.referralProgram) == null ? void 0 : F.reward[d.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : u.value, v = (_ = (x = R.referralProgram) == null ? void 0 : x.reward[d.value]) == null ? void 0 : _.rewards[i - 1], b = (ae = (E = R.referralProgram) == null ? void 0 : E.reward[d.value]) == null ? void 0 : ae.rewards[i + 1];
111
+ var k, U, P, x, _, E, ae;
112
+ const i = u.value == -1 ? ((P = (U = (k = R.referralProgram) == null ? void 0 : k.reward[d.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : u.value, v = (_ = (x = R.referralProgram) == null ? void 0 : x.reward[d.value]) == null ? void 0 : _.rewards[i - 1], b = (ae = (E = R.referralProgram) == null ? void 0 : E.reward[d.value]) == null ? void 0 : ae.rewards[i + 1];
112
113
  v && e.threshold.from < v.threshold.from + 1 && t.addIssue({
113
114
  code: "custom",
114
115
  message: `The min referral must be at least ${v.threshold.from + 1}`,
@@ -131,14 +132,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
131
132
  });
132
133
  }
133
134
  async function D(e, t) {
134
- var i, v, b, F, U, P;
135
+ var i, v, b, k, U, P;
135
136
  if (m.value = e, e && typeof (t == null ? void 0 : t.countIndex) == "number" && t.countIndex >= 0)
136
137
  d.value = t.groupIndex, u.value = t.countIndex, l.value = H(
137
138
  (i = R.referralProgram) == null ? void 0 : i.reward[t.groupIndex].rewards[t.countIndex]
138
139
  );
139
140
  else {
140
141
  d.value = t.groupIndex, u.value = -1;
141
- const x = u.value == -1 ? ((F = (b = (v = R.referralProgram) == null ? void 0 : v.reward[d.value]) == null ? void 0 : b.rewards) == null ? void 0 : F.length) || 0 : u.value, _ = (P = (U = R.referralProgram) == null ? void 0 : U.reward[d.value]) == null ? void 0 : P.rewards[x - 1];
142
+ const x = u.value == -1 ? ((k = (b = (v = R.referralProgram) == null ? void 0 : v.reward[d.value]) == null ? void 0 : b.rewards) == null ? void 0 : k.length) || 0 : u.value, _ = (P = (U = R.referralProgram) == null ? void 0 : U.reward[d.value]) == null ? void 0 : P.rewards[x - 1];
142
143
  l.value = {
143
144
  threshold: {
144
145
  from: _ != null && _.threshold ? _ != null && _.threshold.to ? _.threshold.to + 1 : (_ == null ? void 0 : _.threshold.from) + 1 : 1,
@@ -210,7 +211,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
210
211
  hideSheet: L,
211
212
  data: l
212
213
  }), (e, t) => {
213
- const i = w("FmStepperField"), v = w("FmHelperText"), b = w("FmTable"), F = w("FmButton"), U = w("FmSideSheet");
214
+ const i = w("FmStepperField"), v = w("FmHelperText"), b = w("FmTable"), k = w("FmButton"), U = w("FmSideSheet");
214
215
  return C(), j(U, {
215
216
  "max-width": 1e3,
216
217
  modelValue: r(m),
@@ -219,13 +220,13 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
219
220
  }, {
220
221
  "side-sheet-footer": V(() => [
221
222
  a("div", Ye, [
222
- c(F, {
223
+ c(k, {
223
224
  label: r(p)("connect.editTierSheet.submit"),
224
225
  onClick: M,
225
226
  disabled: r(T).length > 0 || r(W)().isLoading,
226
227
  loading: r(W)().isLoading
227
228
  }, null, 8, ["label", "disabled", "loading"]),
228
- c(F, {
229
+ c(k, {
229
230
  label: r(p)("connect.editTierSheet.cancel"),
230
231
  onClick: t[3] || (t[3] = (P) => L()),
231
232
  variant: "tertiary"
@@ -311,8 +312,8 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
311
312
  }
312
313
  },
313
314
  emits: ["update:model-value"],
314
- setup(k, { emit: n }) {
315
- const I = k, p = n, g = G(() => [
315
+ setup(F, { emit: n }) {
316
+ const I = F, p = n, g = G(() => [
316
317
  le.enum.BILL_COMPLETED,
317
318
  le.enum.FEEDBACK
318
319
  ].map((m) => Se[m]));
@@ -327,8 +328,8 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
327
328
  disabled: I.disabled,
328
329
  class: ce(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3", {
329
330
  "col-span-3": r(g).length == 1,
330
- "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": k.modelValue == u.value,
331
- "hover:bg-fm-color-opacity-sm": k.modelValue != u.value
331
+ "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": F.modelValue == u.value,
332
+ "hover:bg-fm-color-opacity-sm": F.modelValue != u.value
332
333
  }]),
333
334
  onClick: () => {
334
335
  I.modelValue != u.value && !I.disabled && p("update:model-value", u.value);
@@ -353,7 +354,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
353
354
  }, cr = /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-600" }, "Feedback Criteria", -1), dr = { class: "flex items-center gap-8" }, ur = /* @__PURE__ */ q({
354
355
  __name: "EditCriteriaSheet",
355
356
  emits: ["update"],
356
- setup(k, { expose: n, emit: I }) {
357
+ setup(F, { expose: n, emit: I }) {
357
358
  const { t: p } = Z(), g = I, m = $(!1), l = $(-1), d = $({}), u = Q(), R = xe.superRefine((y, f) => {
358
359
  y.name.length >= 50 && f.addIssue({
359
360
  code: "custom",
@@ -371,7 +372,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
371
372
  m.value = y, y && typeof f == "number" && f >= 0 ? (l.value = f, d.value = H(
372
373
  (o = u.referralProgram) == null ? void 0 : o.criteria[f]
373
374
  )) : (l.value = -1, d.value = {
374
- _id: new Fe().toString(),
375
+ _id: new ke().toString(),
375
376
  name: "",
376
377
  type: "AUTO",
377
378
  event: { type: "BILL_COMPLETED" }
@@ -469,7 +470,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
469
470
  ])) : z("", !0),
470
471
  r(d).event.type == r(se).enum.FEEDBACK ? (C(), B("div", ir, [
471
472
  cr,
472
- c(ke, {
473
+ c(Fe, {
473
474
  "model-value": r(d).event.rule,
474
475
  "onUpdate:modelValue": f[4] || (f[4] = (e) => r(d).event.rule = e)
475
476
  }, null, 8, ["model-value"])
@@ -483,7 +484,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
483
484
  }
484
485
  });
485
486
  function he() {
486
- const k = $(!1), n = Ce();
487
+ const F = $(!1), n = Ce();
487
488
  return {
488
489
  confirmUpdateReferralRecord: async () => {
489
490
  await new Promise((p) => {
@@ -493,13 +494,13 @@ function he() {
493
494
  primaryActions: { text: "Update all", close: !0 },
494
495
  secondaryActions: { text: "Update future only", close: !0 }
495
496
  }).onPrimary(async () => {
496
- k.value = !0, p();
497
+ F.value = !0, p();
497
498
  }).onSecondary(async () => {
498
- k.value = !1, p();
499
+ F.value = !1, p();
499
500
  });
500
501
  });
501
502
  },
502
- updateReferralRecord: k
503
+ updateReferralRecord: F
503
504
  };
504
505
  }
505
506
  const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex justify-between items-center" }, pr = /* @__PURE__ */ a("div", null, [
@@ -507,7 +508,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
507
508
  /* @__PURE__ */ a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Set participation rules to start your referral program ")
508
509
  ], -1), hr = /* @__PURE__ */ q({
509
510
  __name: "ManageCriteriaSheet",
510
- setup(k, { expose: n }) {
511
+ setup(F, { expose: n }) {
511
512
  const { t: I } = Z(), { minor: p } = ue, { confirmUpdateReferralRecord: g, updateReferralRecord: m } = he(), l = $(!1), d = $({}), u = Q(), R = $(
512
513
  null
513
514
  ), A = G(() => {
@@ -628,7 +629,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
628
629
  }), _r = { class: "flex flex-col space-y-16 pr-12" }, vr = { class: "fm-typo-en-title-sm-800" }, gr = { class: "flex items-center gap-8" }, wr = /* @__PURE__ */ q({
629
630
  __name: "EditRefereeRewardSheet",
630
631
  emits: ["update"],
631
- setup(k, { expose: n, emit: I }) {
632
+ setup(F, { expose: n, emit: I }) {
632
633
  const { t: p } = Z(), g = I, m = $(!1), l = $([]), d = Q();
633
634
  function u() {
634
635
  g("update", l.value);
@@ -738,15 +739,15 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
738
739
  }), yr = { class: "fm-typo-en-title-sm-600" }, br = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, xr = { class: "flex gap-x-8" }, Cr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, Rr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sr = { class: "mb-40" }, $r = {
739
740
  key: 0,
740
741
  class: "flex flex-col items-center justify-center gap-y-16 p-24"
741
- }, kr = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
742
+ }, Fr = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
742
743
  /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create progressive reward"),
743
744
  /* @__PURE__ */ a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Add referral count to configure progression reward to the referral program ")
744
- ], -1), Fr = /* @__PURE__ */ a("img", {
745
+ ], -1), kr = /* @__PURE__ */ a("img", {
745
746
  src: ge,
746
747
  class: "aspect-square w-[150px]"
747
- }, null, -1), Pr = { class: "flex flex-col gap-16 text-center" }, Vr = { class: "fm-typo-en-title-sm-800" }, Ir = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, tt = /* @__PURE__ */ q({
748
+ }, null, -1), Pr = { class: "flex flex-col gap-16 text-center" }, Vr = { class: "fm-typo-en-title-sm-800" }, Ir = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = /* @__PURE__ */ q({
748
749
  __name: "Overview",
749
- setup(k) {
750
+ setup(F) {
750
751
  const { t: n } = Z(), { minor: I } = ue, p = Pe(), g = Q(), { confirmUpdateReferralRecord: m, updateReferralRecord: l } = he(), d = G(() => {
751
752
  var e;
752
753
  return ((e = g.referralProgram) == null ? void 0 : e.reward) ?? [];
@@ -808,15 +809,15 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
808
809
  g.referralProgram
809
810
  ), b = v.reward[e.groupIndex];
810
811
  b.rewards[t] = e.referralCount;
811
- const F = b.rewards[t - 1], U = b.rewards[t + 1];
812
- if (F && F.threshold.to != i.threshold.from - 1) {
812
+ const k = b.rewards[t - 1], U = b.rewards[t + 1];
813
+ if (k && k.threshold.to != i.threshold.from - 1) {
813
814
  if (!await K.confirm(
814
815
  n(
815
816
  "connect.referral.referral_count.update.range_discontinuous.previous",
816
817
  {
817
- name: F.threshold.from,
818
- from: F.threshold.from ?? 0,
819
- to: F.threshold.to ?? 1 / 0,
818
+ name: k.threshold.from,
819
+ from: k.threshold.from ?? 0,
820
+ to: k.threshold.to ?? 1 / 0,
820
821
  newTo: i.threshold.from - 1
821
822
  }
822
823
  ),
@@ -824,7 +825,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
824
825
  n("connect.referral.referral_count.remove.next_range")
825
826
  ))
826
827
  return;
827
- F.threshold.to = i.threshold.from - 1;
828
+ k.threshold.to = i.threshold.from - 1;
828
829
  }
829
830
  if (U && U.threshold.from - 1 != i.threshold.to) {
830
831
  if (!await K.confirm(
@@ -932,7 +933,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
932
933
  return ve(async () => {
933
934
  await g.readReferralProgram();
934
935
  }), (e, t) => {
935
- const i = w("FmCard"), v = w("FmIcon"), b = w("FmTooltip"), F = w("FmButton"), U = w("FmTable"), P = w("FmList");
936
+ const i = w("FmCard"), v = w("FmIcon"), b = w("FmTooltip"), k = w("FmButton"), U = w("FmTable"), P = w("FmList");
936
937
  return C(), B(Y, null, [
937
938
  z("", !0),
938
939
  c(i, {
@@ -970,7 +971,7 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
970
971
  }, 1032, ["content"])) : z("", !0)
971
972
  ]),
972
973
  a("div", Rr, O(x.sublabel), 1),
973
- x.action ? (C(), j(F, {
974
+ x.action ? (C(), j(k, {
974
975
  key: 0,
975
976
  variant: "plain",
976
977
  label: x.action,
@@ -1014,8 +1015,8 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
1014
1015
  }, null, 8, ["row-data", "onRowClick"])
1015
1016
  ]),
1016
1017
  x.rewards.length ? z("", !0) : (C(), B("div", $r, [
1017
- kr,
1018
- c(F, {
1018
+ Fr,
1019
+ c(k, {
1019
1020
  variant: "secondary",
1020
1021
  label: "Add count",
1021
1022
  icon: "add",
@@ -1036,12 +1037,12 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
1036
1037
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
1037
1038
  }, {
1038
1039
  default: V(() => [
1039
- Fr,
1040
+ kr,
1040
1041
  a("div", Pr, [
1041
1042
  a("div", Vr, O(r(n)("connect.referral.referral_tier_title")), 1),
1042
1043
  a("div", Ir, O(r(n)("connect.referral.referral_tier_description")), 1)
1043
1044
  ]),
1044
- c(F, {
1045
+ c(k, {
1045
1046
  variant: "primary",
1046
1047
  label: r(n)("connect.referral.add_referral_tier"),
1047
1048
  icon: "add",
@@ -1074,5 +1075,5 @@ const mr = { class: "flex flex-col space-y-16 mt-24" }, fr = { class: "flex just
1074
1075
  }
1075
1076
  });
1076
1077
  export {
1077
- tt as default
1078
+ ot as default
1078
1079
  };
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, resolveDynamicComponent as q } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { p as Q } from "./plugins-CA83RlbH.js";
5
- import { u as W } from "./loading-CYFHRqwc.js";
6
- import { u as X } from "./business-BMmMPKlg.js";
7
- import { u as Y } from "./campaign-DsHXtfeO.js";
8
- import { g as Z, a as V, b as I } from "./campaign-CXiUdGVH.js";
4
+ import { p as Q } from "./plugins-BzCgGFW_.js";
5
+ import { u as W } from "./loading-CXZ39_xw.js";
6
+ import { u as X } from "./business-DhCzKu3V.js";
7
+ import { u as Y } from "./campaign-DAgovrbX.js";
8
+ import { g as Z, a as V, b as I } from "./campaign-CFggCOe6.js";
9
9
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DdqBz-Sf.js";
11
- import { u as oe } from "./template-Ep0uKJmD.js";
12
- import { u as ae } from "./vue-i18n-2yeRgkZ7.js";
13
- import { c as _ } from "./index-DUESWqjo.js";
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js";
11
+ import { u as oe } from "./template-FZF9V1B2.js";
12
+ import { u as ae } from "./vue-i18n-5r8XYctA.js";
13
+ import { c as _ } from "./index-CX4Q-ODj.js";
14
14
  const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ n("img", {
15
15
  src: z,
16
16
  class: "aspect-square w-[150px]"
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as H, ref as P, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as n, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
2
2
  import { _ as W } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as X, components as Y } from "@feedmepos/ui-library";
4
- import { c as O, p as I } from "./plugins-CA83RlbH.js";
5
- import { u as Z } from "./loading-CYFHRqwc.js";
6
- import { u as ee } from "./business-BMmMPKlg.js";
7
- import { u as oe } from "./campaign-DsHXtfeO.js";
8
- import { u as te } from "./vue-i18n-2yeRgkZ7.js";
9
- import { g as ne, a as V } from "./campaign-CXiUdGVH.js";
10
- import { e as L } from "./effect-hnRcV89q.js";
4
+ import { c as O, p as I } from "./plugins-BzCgGFW_.js";
5
+ import { u as Z } from "./loading-CXZ39_xw.js";
6
+ import { u as ee } from "./business-DhCzKu3V.js";
7
+ import { u as oe } from "./campaign-DAgovrbX.js";
8
+ import { u as te } from "./vue-i18n-5r8XYctA.js";
9
+ import { g as ne, a as V } from "./campaign-CFggCOe6.js";
10
+ import { e as L } from "./effect-WVUo2VX0.js";
11
11
  import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
12
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DdqBz-Sf.js";
13
- import { u as ce } from "./template-Ep0uKJmD.js";
14
- import { c as u } from "./index-DUESWqjo.js";
12
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js";
13
+ import { u as ce } from "./template-FZF9V1B2.js";
14
+ import { c as u } from "./index-CX4Q-ODj.js";
15
15
  const ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ s("img", {
16
16
  src: W,
17
17
  class: "aspect-square w-[150px]"