@feedmepos/mf-connect 0.1.38-beta.23 → 0.1.38-beta.24

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 (96) hide show
  1. package/dist/{Analytic-xMxbAEul.js → Analytic-DIIOqI6t.js} +14 -14
  2. package/dist/{App-DkBJoQa2.js → App-CdcDgvY7.js} +7 -7
  3. package/dist/{AuditLogs-CkpffM8N.js → AuditLogs-CXwAnFj2.js} +11 -11
  4. package/dist/{Bin-D3JHC66F.js → Bin-Cz_EmQvg.js} +8 -8
  5. package/dist/{Broadcast-eCxNA0EG.js → Broadcast-BMa1Vabz.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BMrLc0hX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CV52UDC7.js} +6 -6
  7. package/dist/{Card-CaOvpWvL.js → Card-DY0aZEMz.js} +18 -18
  8. package/dist/{Collections-CxScAHZl.js → Collections-DJBPF3Sn.js} +7 -7
  9. package/dist/{Credit-BnPpMq8q.js → Credit-OufxE9gh.js} +11 -11
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BEnaGmCW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CHx2S5GA.js} +50 -50
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJhtUAk_.js → EffectSheet.vue_vue_type_style_index_0_lang-CTwdP77j.js} +20 -20
  12. package/dist/{Experience-nMxubr1P.js → Experience-DNSdiaZp.js} +9 -9
  13. package/dist/{Game-C8pHAp1o.js → Game-CvpiNxP8.js} +10 -10
  14. package/dist/{Grab-DjTma0rb.js → Grab-R7UK3MBX.js} +9 -9
  15. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js} +8 -8
  16. package/dist/{Index-COHMtBIi.js → Index-BlCJP1AU.js} +54 -54
  17. package/dist/{Marketing-C3R9Rw4y.js → Marketing-dvZJgjik.js} +10 -10
  18. package/dist/{Member-gjwH9kPr.js → Member-BQ8lPxer.js} +10 -10
  19. package/dist/{MemberList-Bg_zsGbz.js → MemberList-btOTrbQl.js} +31 -31
  20. package/dist/{MemberTransactions-7aZsIeZL.js → MemberTransactions-Bn7IENl9.js} +1 -1
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DtPV3l4w.js → MessageInput.vue_vue_type_script_setup_true_lang-BnitWB_t.js} +9 -9
  22. package/dist/{Mission-DqAahrB0.js → Mission-CSZUxBZY.js} +10 -10
  23. package/dist/{Overview-_b_4mLBe.js → Overview-AWsKlfo9.js} +21 -21
  24. package/dist/{Point-CsMZA2do.js → Point-Cs5ARAYb.js} +9 -9
  25. package/dist/{Promotion-j4_gUzqi.js → Promotion-DhDB8Tbd.js} +10 -10
  26. package/dist/{Queue-MOdvEl5u.js → Queue-CBe6W47A.js} +11 -11
  27. package/dist/{Record-BQIQBdc6.js → Record-DOLUX9X4.js} +9 -9
  28. package/dist/{Reward-DABAfCmo.js → Reward-DSGRvZ7y.js} +15 -15
  29. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D-BK8GZ4.js → RewardGroup.vue_vue_type_script_setup_true_lang-DSGR-FDc.js} +11 -11
  30. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ClwtUvs9.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cbya-iI4.js} +185 -185
  31. package/dist/{Segment-DSpcce-q.js → Segment-CRF7F3fy.js} +232 -232
  32. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CZu-7I-8.js → SelectItems.vue_vue_type_script_setup_true_lang-CMFXf3f7.js} +14 -14
  33. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D5Oc0pqy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CkZPsecz.js} +11 -11
  34. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-7NWmWQjo.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B-9A5Vw1.js} +3 -3
  35. package/dist/{Setting-DTFpHJd7.js → Setting-BKgJWdj1.js} +17 -17
  36. package/dist/{Store-mAraPykq.js → Store-CNHfu-Pl.js} +34 -34
  37. package/dist/{StoreRewards-C1Cw1Nij.js → StoreRewards-CrVvj8j9.js} +15 -15
  38. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C_igl8vi.js → StoreTransactions.vue_vue_type_script_setup_true_lang-cgoFRRLh.js} +21 -21
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D3c0qO9i.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BdM-2lqP.js} +1 -1
  40. package/dist/{Tier-B7AUECOs.js → Tier-DvOUwWQz.js} +21 -21
  41. package/dist/{Title-DWw4-4cE.js → Title-CRspZyr_.js} +20 -20
  42. package/dist/{Transaction-ClZvbeDP.js → Transaction-BGc7qOQt.js} +2 -2
  43. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cen_yXF7.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Ca9QWPNE.js} +6 -6
  44. package/dist/{Voucher-BBYDF1GX.js → Voucher-zROvoGPm.js} +13 -13
  45. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Vscwqd3r.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CD2C0b2B.js} +86 -86
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C2yUE0Cq.js → ZodTextField.vue_vue_type_script_setup_true_lang-xRq5NUye.js} +1 -1
  47. package/dist/app-CcrKXI5U.js +57962 -0
  48. package/dist/{app-DLdolyB3.js → app-H6IgvNco.js} +32 -32
  49. package/dist/app.js +1 -1
  50. package/dist/{business-D900a5Tb.js → business-CPwOvpGD.js} +1 -1
  51. package/dist/{campaign-D_F3xj3O.js → campaign-BGNxmSrr.js} +9 -9
  52. package/dist/{campaign-DXo7F7aH.js → campaign-Dozf5twL.js} +2 -2
  53. package/dist/{campaign.enum-CG0IjpL0.js → campaign.enum-BFrMGQ7T.js} +1 -1
  54. package/dist/{campaign.fn-B6f4zAed.js → campaign.fn-CIx0A0Ps.js} +23 -23
  55. package/dist/{collectible.enum-0jg7mZtz.js → collectible.enum-CYwwPBvg.js} +1 -1
  56. package/dist/{collection.fn-BDcZoQfR.js → collection.fn-CxI950TL.js} +2 -2
  57. package/dist/{dto-Diu2Xl3e.js → dto-C2_6bjCG.js} +4 -4
  58. package/dist/{effect-DvIk5Cg6.js → effect-XJbcCeBx.js} +1 -1
  59. package/dist/{email-addresses-DQf3ZdZP.js → email-addresses-DRcfKo6t.js} +1 -1
  60. package/dist/{export-WSVAzeqR.js → export-BFUNdp3a.js} +3 -3
  61. package/dist/{helper-CzsKE573.js → helper-B40jlG60.js} +1 -1
  62. package/dist/{index-B6KkRHaV.js → index-6JDE5-xO.js} +1 -1
  63. package/dist/{index-DMg2pJLu.js → index-B4Pwokmt.js} +1 -1
  64. package/dist/{index-__X1c_dR.js → index-BFps3TvZ.js} +6 -6
  65. package/dist/{index-1-H1oqKb.js → index-BW9fkuya.js} +1 -1
  66. package/dist/{index-B6Kbxgky.js → index-BcpAuaGd.js} +1 -1
  67. package/dist/{index-D-VZHYyP.js → index-CL0BybAT.js} +1 -1
  68. package/dist/{index-DlwPVNEv.js → index-Ch9Aa7hb.js} +7 -7
  69. package/dist/{index-DPyNXHg6.js → index-Crkl2Pua.js} +2 -2
  70. package/dist/{index-D3wppWii.js → index-D7FM5qup.js} +1 -1
  71. package/dist/{index-Bej-AJUB.js → index-DkWYIiiy.js} +3 -3
  72. package/dist/{index-CErvxcDp.js → index-Dlsfhj3g.js} +1 -1
  73. package/dist/{index-uJ-YdKV1.js → index-F7hZ1yOK.js} +3 -3
  74. package/dist/{index-D1fzmeG6.js → index-RhUqg1Tl.js} +1 -1
  75. package/dist/{index-DWN3abQr.js → index-Ta6CTZmb.js} +1023 -1023
  76. package/dist/{index.esm2017-shNT9EQF.js → index.esm2017-DlJnPRKQ.js} +1 -1
  77. package/dist/{loading-CBKMbqM5.js → loading-B3wvtmgh.js} +1 -1
  78. package/dist/{membership-DQa8yaY2.js → membership-DpfpIT9v.js} +3 -3
  79. package/dist/{money-IYgOL6F1.js → money-XJk2AEf9.js} +1 -1
  80. package/dist/{number-DXdhRp2S.js → number-Ec4tNVBZ.js} +1 -1
  81. package/dist/{objectid-DABStWGB.js → objectid-D7z8NSmH.js} +9 -9
  82. package/dist/{plugins-DXwZ_v63.js → plugins-DZ3ydcdc.js} +2 -2
  83. package/dist/{reward-DYiYZcJC.js → reward-DURL6iKv.js} +1 -1
  84. package/dist/{rule-Beum_Zy5.js → rule-BMJqZD3D.js} +3 -3
  85. package/dist/{rule-builder-BLNgIsjE.js → rule-builder-Dgnn6yE8.js} +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/{template-C5PTDFfm.js → template-DfVuvLbx.js} +5 -5
  88. package/dist/{timezone-PLVeOMdC.js → timezone-4zA4Eck_.js} +1 -1
  89. package/dist/{trigger-B0u2ZuY-.js → trigger-CWh9m2Sd.js} +4 -4
  90. package/dist/usePagination-Ds-cuHop.js +223 -0
  91. package/dist/{user-BlM3HCwC.js → user-BcxMf5qG.js} +1 -1
  92. package/dist/{vue-i18n-CwrnHMwQ.js → vue-i18n-BQiDu4pW.js} +158 -158
  93. package/dist/{xlsx-BAbyCaI0.js → xlsx-DrYIuf7U.js} +1 -1
  94. package/package.json +4 -4
  95. package/dist/app-9boJd9tw.js +0 -33357
  96. package/dist/usePagination-BeF5K3M7.js +0 -223
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as A, ref as w, resolveComponent as c, openBlock as d, createBlock as F, withCtx as f, renderSlot as q, createVNode as m, createTextVNode as S, toDisplayString as I, createElementVNode as n, computed as N, createElementBlock as h, Fragment as U, renderList as z, unref as e, normalizeClass as J, createCommentVNode as P, resolveDynamicComponent as H } from "vue";
2
- import { c as X } from "./index-uJ-YdKV1.js";
3
- import { e as K, F as Q } from "./index-DPyNXHg6.js";
4
- import { C as W } from "./membership-DQa8yaY2.js";
2
+ import { c as X } from "./index-F7hZ1yOK.js";
3
+ import { e as K, F as Q } from "./index-Crkl2Pua.js";
4
+ import { C as W } from "./membership-DpfpIT9v.js";
5
5
  import { Z as g } from "./zod-Bg2FbC-D.js";
6
- import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-CZu-7I-8.js";
7
- import { u as ee } from "./business-D900a5Tb.js";
6
+ import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-CMFXf3f7.js";
7
+ import { u as ee } from "./business-CPwOvpGD.js";
8
8
  import { useCoreStore as te } from "@feedmepos/mf-common";
9
- import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-C2yUE0Cq.js";
10
- import { _ as oe } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
11
- import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-DJhtUAk_.js";
12
- import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-D3c0qO9i.js";
13
- import { u as me } from "./vue-i18n-CwrnHMwQ.js";
14
- import { i as re } from "./helper-CzsKE573.js";
9
+ import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-xRq5NUye.js";
10
+ import { _ as oe } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
11
+ import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-CTwdP77j.js";
12
+ import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BdM-2lqP.js";
13
+ import { u as me } from "./vue-i18n-BQiDu4pW.js";
14
+ import { i as re } from "./helper-B40jlG60.js";
15
15
  const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
16
16
  __name: "MenuSheet",
17
17
  props: {
@@ -19,15 +19,15 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
19
19
  filterItems: { type: Function }
20
20
  },
21
21
  emits: ["confirm"],
22
- setup(a, { emit: T }) {
22
+ setup(o, { emit: T }) {
23
23
  const O = w(), s = w(!1);
24
24
  function l() {
25
- var u;
26
- (u = O.value) == null || u.onConfirm();
25
+ var i;
26
+ (i = O.value) == null || i.onConfirm();
27
27
  }
28
28
  const y = T;
29
- return (u, x) => {
30
- const o = c("FmField"), v = c("FmButton"), R = c("FmSideSheet");
29
+ return (i, x) => {
30
+ const a = c("FmField"), v = c("FmButton"), R = c("FmSideSheet");
31
31
  return d(), F(R, {
32
32
  modelValue: s.value,
33
33
  "onUpdate:modelValue": x[1] || (x[1] = (b) => s.value = b),
@@ -37,10 +37,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
37
37
  "max-width": 560
38
38
  }, {
39
39
  "side-sheet-button": f(() => [
40
- q(u.$slots, "side-sheet-button", {}, () => [
41
- m(o, { class: "text-fm-color-typo-tertiary cursor-pointer" }, {
40
+ q(i.$slots, "side-sheet-button", {}, () => [
41
+ m(a, { class: "text-fm-color-typo-tertiary cursor-pointer" }, {
42
42
  default: f(() => [
43
- S(I(u.modelValue.length) + " item(s) selected ", 1)
43
+ S(I(o.modelValue.length) + " item(s) selected ", 1)
44
44
  ]),
45
45
  _: 1
46
46
  })
@@ -66,8 +66,8 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
66
66
  "max-height": 0,
67
67
  ref_key: "selectItemRef",
68
68
  ref: O,
69
- "initial-value": u.modelValue,
70
- "filter-items": u.filterItems,
69
+ "initial-value": o.modelValue,
70
+ "filter-items": o.filterItems,
71
71
  "on-complete": (b) => {
72
72
  y("confirm", b), s.value = !1;
73
73
  }
@@ -83,7 +83,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
83
83
  }, ge = { class: "fm-typo-en-body-lg-400" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ve = {
84
84
  key: 0,
85
85
  class: "pt-8 space-y-8"
86
- }, Fe = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Ce = { class: "xs:!block flex gap-16 items-center" }, Be = /* @__PURE__ */ A({
86
+ }, Fe = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Ce = { class: "xs:!block flex gap-16 items-center" }, De = /* @__PURE__ */ A({
87
87
  __name: "EarningOptionInput",
88
88
  props: {
89
89
  modelValue: {
@@ -100,9 +100,9 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
100
100
  }
101
101
  },
102
102
  emits: ["update:model-value"],
103
- setup(a, { emit: T }) {
103
+ setup(o, { emit: T }) {
104
104
  var R, b, k;
105
- const O = ee(), s = a, l = T, y = [
105
+ const O = ee(), s = o, l = T, y = [
106
106
  {
107
107
  label: "Based on spending",
108
108
  sublabel: "Customers earn rewards based on how much they spend.",
@@ -116,7 +116,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
116
116
  ].filter((p) => {
117
117
  var t, C;
118
118
  return s.fixedType || ((C = (t = s.extras) == null ? void 0 : t.campaign) == null ? void 0 : C.event.type) != "BILL_COMPLETED" ? p.value == "FIXED" : !0;
119
- }), u = N(() => {
119
+ }), i = N(() => {
120
120
  var t, C;
121
121
  const p = s.extras && "configs" in s.extras ? s.extras.configs.type : (t = s.extras) == null ? void 0 : t.campaign.type;
122
122
  return (((C = W[p]) == null ? void 0 : C.name) || "reward").toLowerCase();
@@ -124,7 +124,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
124
124
  const p = K.safeParse(s.modelValue);
125
125
  return p.success ? [] : p.error.errors;
126
126
  });
127
- function o(p) {
127
+ function a(p) {
128
128
  var t;
129
129
  p != ((t = s.modelValue) == null ? void 0 : t.type) && l(
130
130
  "update:model-value",
@@ -142,20 +142,20 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
142
142
  ((R = s.modelValue) == null ? void 0 : R.type) === "PROPORTIONAL" && !!((k = (b = s.modelValue) == null ? void 0 : b.property) != null && k.length) || !1
143
143
  );
144
144
  return (p, t) => {
145
- var _, B, D;
145
+ var B, D, _;
146
146
  const C = c("FmCard"), $ = c("FmStepperField"), L = c("FmRadio"), j = c("FmPill"), G = c("FmButton"), M = c("FmRadioGroup"), Z = c("FmHelperText");
147
147
  return d(), h("div", de, [
148
148
  n("div", pe, [
149
149
  (d(!0), h(U, null, z(e(y), (r) => {
150
- var V, i;
150
+ var V, u;
151
151
  return d(), F(C, {
152
152
  variant: "outlined",
153
153
  class: J(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-2", {
154
154
  "col-span-2": e(y).length == 1,
155
- "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((V = a.modelValue) == null ? void 0 : V.type) === r.value,
156
- "hover:bg-fm-color-opacity-sm": ((i = a.modelValue) == null ? void 0 : i.type) != r.value
155
+ "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((V = o.modelValue) == null ? void 0 : V.type) === r.value,
156
+ "hover:bg-fm-color-opacity-sm": ((u = o.modelValue) == null ? void 0 : u.type) != r.value
157
157
  }]),
158
- onClick: (E) => o(r.value),
158
+ onClick: (E) => a(r.value),
159
159
  key: r.value
160
160
  }, {
161
161
  default: f(() => [
@@ -167,22 +167,22 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
167
167
  }), 128))
168
168
  ]),
169
169
  n("div", ye, [
170
- ((_ = a.modelValue) == null ? void 0 : _.type) === "FIXED" ? (d(), F($, {
170
+ ((B = o.modelValue) == null ? void 0 : B.type) === "FIXED" ? (d(), F($, {
171
171
  key: 0,
172
- label: `Receive ${e(u)}(s)`,
172
+ label: `Receive ${e(i)}(s)`,
173
173
  class: "flex-1",
174
- "model-value": ((B = a.modelValue) == null ? void 0 : B.amount) ?? null,
174
+ "model-value": ((D = o.modelValue) == null ? void 0 : D.amount) ?? null,
175
175
  "onUpdate:modelValue": t[0] || (t[0] = (r) => l("update:model-value", {
176
- ...a.modelValue ?? { type: "FIXED" },
176
+ ...o.modelValue ?? { type: "FIXED" },
177
177
  amount: r
178
178
  }))
179
- }, null, 8, ["label", "model-value"])) : ((D = a.modelValue) == null ? void 0 : D.type) === "PROPORTIONAL" ? (d(), h(U, { key: 1 }, [
179
+ }, null, 8, ["label", "model-value"])) : ((_ = o.modelValue) == null ? void 0 : _.type) === "PROPORTIONAL" ? (d(), h(U, { key: 1 }, [
180
180
  t[11] || (t[11] = n("div", { class: "fm-typo-en-body-lg-600" }, "Spending type", -1)),
181
181
  m(M, {
182
182
  "model-value": e(v),
183
183
  "onUpdate:modelValue": t[6] || (t[6] = (r) => {
184
184
  e(v) != r && (l("update:model-value", {
185
- ...a.modelValue ?? {
185
+ ...o.modelValue ?? {
186
186
  type: "PROPORTIONAL",
187
187
  amount: 1,
188
188
  every: 1
@@ -195,23 +195,23 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
195
195
  default: f(() => [
196
196
  m(L, {
197
197
  label: "Amount spent",
198
- sublabel: `Receive ${e(u)} by amount spent`,
198
+ sublabel: `Receive ${e(i)} by amount spent`,
199
199
  value: !1
200
200
  }, {
201
201
  label: f(() => {
202
202
  var r, V;
203
203
  return [
204
204
  t[8] || (t[8] = n("div", { class: "fm-typo-en-body-lg-400" }, "Amount spent", -1)),
205
- n("div", ve, " Receive " + I(e(u)) + " by amount spent ", 1),
205
+ n("div", ve, " Receive " + I(e(i)) + " by amount spent ", 1),
206
206
  e(v) ? P("", !0) : (d(), h("div", be, [
207
207
  m($, {
208
- label: `Receive ${e(u)}(s)`,
208
+ label: `Receive ${e(i)}(s)`,
209
209
  inputmode: "decimal",
210
210
  class: "flex-1",
211
- "model-value": ((r = a.modelValue) == null ? void 0 : r.amount) ?? null,
212
- "onUpdate:modelValue": t[1] || (t[1] = (i) => l("update:model-value", {
213
- ...a.modelValue ?? { type: "FIXED" },
214
- amount: i
211
+ "model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
212
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => l("update:model-value", {
213
+ ...o.modelValue ?? { type: "FIXED" },
214
+ amount: u
215
215
  }))
216
216
  }, null, 8, ["label", "model-value"]),
217
217
  t[7] || (t[7] = n("div", { class: "xs:py-4 text-center" }, "for every", -1)),
@@ -219,10 +219,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
219
219
  label: `Amount spend (${e(X.Config).getCountry().currency.symbol})`,
220
220
  class: "flex-1",
221
221
  inputmode: "decimal",
222
- "model-value": ((V = a.modelValue) == null ? void 0 : V.every) ?? null,
223
- "onUpdate:modelValue": t[2] || (t[2] = (i) => l("update:model-value", {
224
- ...a.modelValue,
225
- every: i
222
+ "model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
223
+ "onUpdate:modelValue": t[2] || (t[2] = (u) => l("update:model-value", {
224
+ ...o.modelValue,
225
+ every: u
226
226
  }))
227
227
  }, {
228
228
  prepend: f(() => [
@@ -237,7 +237,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
237
237
  }, 8, ["sublabel"]),
238
238
  m(L, {
239
239
  label: "Product bought",
240
- sublabel: `Receive ${e(u)} by product bought`,
240
+ sublabel: `Receive ${e(i)} by product bought`,
241
241
  value: !0,
242
242
  disabled: !e(O).isPremium
243
243
  }, {
@@ -245,24 +245,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
245
245
  var r, V;
246
246
  return [
247
247
  n("div", ge, [
248
- t[9] || (t[9] = S(" Product bought ")),
248
+ t[9] || (t[9] = S(" Product bought ", -1)),
249
249
  m(j, { variant: "premium" })
250
250
  ]),
251
- n("div", xe, " Receive " + I(e(u)) + " by product bought ", 1),
251
+ n("div", xe, " Receive " + I(e(i)) + " by product bought ", 1),
252
252
  e(v) ? (d(), h("div", Ve, [
253
253
  n("div", Fe, [
254
254
  m(ie, {
255
255
  "model-value": s.modelValue.property || [],
256
- onConfirm: t[3] || (t[3] = (i) => l("update:model-value", {
257
- ...a.modelValue,
258
- property: i
256
+ onConfirm: t[3] || (t[3] = (u) => l("update:model-value", {
257
+ ...o.modelValue,
258
+ property: u
259
259
  }))
260
260
  }, {
261
261
  "side-sheet-button": f(() => {
262
- var i, E;
262
+ var u, E;
263
263
  return [
264
264
  m(G, {
265
- label: (i = s.modelValue.property) != null && i.length ? `${(E = s.modelValue.property) == null ? void 0 : E.length} product(s) selected` : "Select product",
265
+ label: (u = s.modelValue.property) != null && u.length ? `${(E = s.modelValue.property) == null ? void 0 : E.length} product(s) selected` : "Select product",
266
266
  icon: "link",
267
267
  variant: "secondary"
268
268
  }, null, 8, ["label"])
@@ -274,24 +274,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
274
274
  n("div", Ce, [
275
275
  m($, {
276
276
  inputmode: "decimal",
277
- label: `Receive ${e(u)}(s)`,
277
+ label: `Receive ${e(i)}(s)`,
278
278
  class: "flex-1",
279
- "model-value": ((r = a.modelValue) == null ? void 0 : r.amount) ?? null,
280
- "onUpdate:modelValue": t[4] || (t[4] = (i) => l("update:model-value", {
281
- ...a.modelValue ?? { type: "FIXED" },
282
- amount: i
279
+ "model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
280
+ "onUpdate:modelValue": t[4] || (t[4] = (u) => l("update:model-value", {
281
+ ...o.modelValue ?? { type: "FIXED" },
282
+ amount: u
283
283
  }))
284
284
  }, null, 8, ["label", "model-value"]),
285
285
  t[10] || (t[10] = n("div", { class: "xs:py-4 text-center" }, "for every", -1)),
286
286
  m($, {
287
287
  label: "Item purchased",
288
288
  class: "flex-1",
289
- "model-value": ((V = a.modelValue) == null ? void 0 : V.every) ?? null,
289
+ "model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
290
290
  inputmode: "numeric",
291
291
  "max-fraction-digits": 0,
292
- "onUpdate:modelValue": t[5] || (t[5] = (i) => l("update:model-value", {
293
- ...a.modelValue,
294
- every: i
292
+ "onUpdate:modelValue": t[5] || (t[5] = (u) => l("update:model-value", {
293
+ ...o.modelValue,
294
+ every: u
295
295
  }))
296
296
  }, null, 8, ["model-value"])
297
297
  ])
@@ -305,16 +305,16 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
305
305
  }, 8, ["model-value"])
306
306
  ], 64)) : P("", !0)
307
307
  ]),
308
- a.errorText || e(x).length > 0 ? (d(), F(Z, {
308
+ o.errorText || e(x).length > 0 ? (d(), F(Z, {
309
309
  key: 0,
310
310
  class: "!mt-4",
311
- text: a.errorText || e(g).helperText(e(x), ""),
311
+ text: o.errorText || e(g).helperText(e(x), ""),
312
312
  state: "error"
313
313
  }, null, 8, ["text"])) : P("", !0)
314
314
  ]);
315
315
  };
316
316
  }
317
- }), Ie = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, De = /* @__PURE__ */ A({
317
+ }), Ie = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, _e = /* @__PURE__ */ A({
318
318
  __name: "VoucherEditor",
319
319
  props: {
320
320
  modelValue: {
@@ -325,27 +325,27 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
325
325
  }
326
326
  },
327
327
  emits: ["update:model-value", "update:reward-image"],
328
- setup(a, { emit: T }) {
328
+ setup(o, { emit: T }) {
329
329
  const { t: O } = me(), l = w(
330
- a.modelValue ?? re("VOUCHER", {
330
+ o.modelValue ?? re("VOUCHER", {
331
331
  business: te().currentBusiness.value._id,
332
332
  name: ""
333
333
  })
334
- ), y = Q, u = T;
335
- return (x, o) => {
334
+ ), y = Q, i = T;
335
+ return (x, a) => {
336
336
  var b, k, p;
337
337
  const v = c("FmTextarea"), R = c("FmHelperText");
338
338
  return d(), h(U, null, [
339
339
  m(le, {
340
340
  modelValue: e(l).name,
341
- "onUpdate:modelValue": o[0] || (o[0] = (t) => e(l).name = t),
341
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => e(l).name = t),
342
342
  label: "Voucher name",
343
343
  schema: e(g).typeAtPath(e(y), "name", [e(l).type])
344
344
  }, null, 8, ["modelValue", "schema"]),
345
345
  m(v, {
346
346
  class: "!mb-[-16px]",
347
347
  modelValue: e(l).description,
348
- "onUpdate:modelValue": o[1] || (o[1] = (t) => e(l).description = t),
348
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => e(l).description = t),
349
349
  rules: [e(g).ruleAtPath(e(y), "description", [e(l).type])]
350
350
  }, {
351
351
  label: f(() => [
@@ -359,16 +359,16 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
359
359
  _: 1
360
360
  }, 8, ["modelValue", "rules"]),
361
361
  n("div", Ie, [
362
- o[6] || (o[6] = n("div", null, "Voucher description should not exceed 200 characters.", -1)),
362
+ a[6] || (a[6] = n("div", null, "Voucher description should not exceed 200 characters.", -1)),
363
363
  n("div", null, I(((b = e(l).description) == null ? void 0 : b.length) ?? 0) + "/200", 1)
364
364
  ]),
365
365
  m(oe, {
366
366
  class: "w-1/2 xs:w-2/3",
367
367
  "aspect-ratio": "16/9",
368
- file: a.rewardImage ?? void 0,
368
+ file: o.rewardImage ?? void 0,
369
369
  thumbnail: e(l).image ?? void 0,
370
- "onUpdate:file": o[2] || (o[2] = async (t) => {
371
- u("update:reward-image", t), t || (e(l).image = null);
370
+ "onUpdate:file": a[2] || (a[2] = async (t) => {
371
+ i("update:reward-image", t), t || (e(l).image = null);
372
372
  })
373
373
  }, {
374
374
  label: f(() => [
@@ -381,10 +381,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
381
381
  ]),
382
382
  _: 1
383
383
  }, 8, ["file", "thumbnail"]),
384
- o[7] || (o[7] = n("div", { class: "fm-typo-en-title-sm-800" }, "Discount", -1)),
384
+ a[7] || (a[7] = n("div", { class: "fm-typo-en-title-sm-800" }, "Discount", -1)),
385
385
  m(ae, {
386
386
  "model-value": e(l).extras.effect,
387
- "onUpdate:modelValue": o[3] || (o[3] = (t) => e(l).extras.effect = t)
387
+ "onUpdate:modelValue": a[3] || (a[3] = (t) => e(l).extras.effect = t)
388
388
  }, null, 8, ["model-value"]),
389
389
  e(l).extras.effect == null ? (d(), F(R, {
390
390
  key: 0,
@@ -392,19 +392,19 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
392
392
  text: e(O)("connect.campaign.common.effect_required"),
393
393
  state: "error"
394
394
  }, null, 8, ["text"])) : P("", !0),
395
- o[8] || (o[8] = n("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Usage configuration", -1)),
395
+ a[8] || (a[8] = n("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Usage configuration", -1)),
396
396
  m(ne, {
397
397
  "model-value": e(l).options,
398
398
  "no-campaign": e(l).noCampaign,
399
- "onUpdate:modelValue": o[4] || (o[4] = (t) => e(l).options = t),
399
+ "onUpdate:modelValue": a[4] || (a[4] = (t) => e(l).options = t),
400
400
  schema: e(g).typeAtPath(e(y), "options", ["VOUCHER"])
401
401
  }, null, 8, ["model-value", "no-campaign", "schema"]),
402
- o[9] || (o[9] = n("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
402
+ a[9] || (a[9] = n("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
403
403
  e(l).type === "VOUCHER" ? (d(), F(se, {
404
404
  key: 1,
405
405
  "model-value": ((p = (k = e(l).extras) == null ? void 0 : k.targetLocation) == null ? void 0 : p.map(String)) ?? null,
406
406
  type: "select",
407
- "onUpdate:modelValue": o[5] || (o[5] = (t) => {
407
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => {
408
408
  e(l).extras.targetLocation = t;
409
409
  }),
410
410
  rules: [e(g).ruleAtPath(e(y), "extras.targetLocation")]
@@ -414,6 +414,6 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
414
414
  }
415
415
  });
416
416
  export {
417
- Be as _,
418
- De as a
417
+ De as _,
418
+ _e as a
419
419
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
2
2
  import { Z as d } from "./zod-Bg2FbC-D.js";
3
- import { u as V } from "./vue-i18n-CwrnHMwQ.js";
3
+ import { u as V } from "./vue-i18n-BQiDu4pW.js";
4
4
  const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
5
5
  key: 0,
6
6
  class: "text-fm-color-typo-tertiary"