@feedmepos/mf-connect 0.1.37-prod → 0.1.38-beta.2

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 (116) hide show
  1. package/dist/Analytic-BjSfI2Ff.js +761 -0
  2. package/dist/{App-Bpo0XZSs.js → App-D11A2JY1.js} +364 -352
  3. package/dist/AuditLogs-DWCFYoRg.js +1887 -0
  4. package/dist/{Bin-ohZ2CZZR.js → Bin-9wV4Ah3M.js} +8 -8
  5. package/dist/{Broadcast-D5x0_-zC.js → Broadcast-I3BtSk8V.js} +40 -40
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js} +18 -18
  7. package/dist/{Card-BM-Lrm5y.js → Card-CqALG5RM.js} +159 -159
  8. package/dist/{Collections-Cr4aoJer.js → Collections-rg3SzoUb.js} +103 -91
  9. package/dist/{Credit-DzDVFv4H.js → Credit-BNn1sYZv.js} +74 -74
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js} +491 -488
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js} +91 -89
  13. package/dist/{Experience-CjaDdbvZ.js → Experience-D_Qm8SUj.js} +41 -41
  14. package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
  15. package/dist/{Game-BuiTygow.js → Game-CKXgXm6Q.js} +31 -31
  16. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  17. package/dist/{Index-CQGzUU-w.js → Index-D4DGfUHd.js} +10 -10
  18. package/dist/Marketing-Dn9A1vgH.js +20073 -0
  19. package/dist/Member-B55vWHDd.js +279 -0
  20. package/dist/MemberList-BWTG9Ohy.js +1606 -0
  21. package/dist/MemberOverview-wL_ailso.js +58 -0
  22. package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-CP5EI-W0.js} +1 -1
  23. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +60279 -0
  24. package/dist/{Mission-BtypT2uF.js → Mission-CFvhROuB.js} +21 -21
  25. package/dist/{Overview-Be7bUtRO.js → Overview-4273yNwL.js} +335 -335
  26. package/dist/{Point-Bw4lnLqp.js → Point-B_-_C919.js} +41 -41
  27. package/dist/Promotion-D2S3COxk.js +289 -0
  28. package/dist/{Queue-CpPEVgn8.js → Queue-BmS1Oi-C.js} +52 -52
  29. package/dist/{Record-DQq4P69i.js → Record-DRBl0M8g.js} +9 -9
  30. package/dist/{Reward-DJH0eM8u.js → Reward-8056NmfK.js} +173 -173
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js} +11 -11
  32. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js} +635 -548
  33. package/dist/Segment-Bzq-pyhc.js +882 -0
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js} +2 -2
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js} +3 -3
  37. package/dist/{Setting-GRIUo7vg.js → Setting-BrJfYoru.js} +432 -432
  38. package/dist/{Store-H0UDQpln.js → Store-Bpl_4yZW.js} +211 -211
  39. package/dist/StoreRewards-Cu7n7Pjz.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js} +1 -1
  42. package/dist/{Tier-CJufQcIz.js → Tier-_LnXg3n6.js} +106 -106
  43. package/dist/{Title-BBMgGUld.js → Title-B7AGStvx.js} +133 -131
  44. package/dist/{Transaction-DsucPnfp.js → Transaction-Chxv6V7u.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js} +6 -6
  46. package/dist/{Voucher-BPvxKO_w.js → Voucher-C5z2kOq9.js} +153 -123
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js} +1 -1
  49. package/dist/{app-D3MT1deX.js → app-7cvPyHJ7.js} +164 -125
  50. package/dist/{app-Bo0JpadQ.js → app-BVojNX0w.js} +1 -1
  51. package/dist/app.js +4 -3
  52. package/dist/business-CmxV69wT.js +79 -0
  53. package/dist/{campaign-Z3l7BoMg.js → campaign-CT_cNJEL.js} +9 -9
  54. package/dist/{campaign-j1c3ou7l.js → campaign-Dq5C_no-.js} +5 -3
  55. package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-dp7yHKzF.js} +1 -1
  56. package/dist/campaign.fn-BYZgKDN7.js +758 -0
  57. package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-DxbB4DxT.js} +1 -1
  58. package/dist/{collection.fn-Bz38mGMa.js → collection.fn-CNZRdUgy.js} +2 -2
  59. package/dist/{dto-D648NN4s.js → dto-CT9zZbv9.js} +4 -4
  60. package/dist/{effect-DbMAmVSR.js → effect-FIlOEC4H.js} +1 -1
  61. package/dist/{email-addresses-KOVDrRiK.js → email-addresses-Ba7xImfX.js} +1 -1
  62. package/dist/{export-cTZf8Avd.js → export-uzjZFNF9.js} +3 -3
  63. package/dist/{helper-BYyfcLqw.js → helper-D4sAZde0.js} +1 -1
  64. package/dist/{index-BIaCtk8e.js → index-B9pl4zRZ.js} +192 -79
  65. package/dist/{index-B4MqsaBz.js → index-BI3m1Ehv.js} +3 -3
  66. package/dist/{index-E-0tTd0_.js → index-BXz54M1s.js} +1 -1
  67. package/dist/{index-BMl2KZts.js → index-BjU8LVUC.js} +11447 -10969
  68. package/dist/index-CH3z92VV.js +31 -0
  69. package/dist/{index-BTb8I_eB.js → index-CNJLP3D5.js} +1 -1
  70. package/dist/{index-BrKXRxe_.js → index-CONvJfKv.js} +1 -1
  71. package/dist/index-CS3Jmojj.js +32260 -0
  72. package/dist/{index-CTPMbFf5.js → index-CUfS9Kp1.js} +10 -9
  73. package/dist/index-CsaQJMAR.js +66 -0
  74. package/dist/{index-nF9iYTlh.js → index-CvBcve-r.js} +1 -1
  75. package/dist/index-CwsMG2cV.js +56 -0
  76. package/dist/{index-B3p0hmIV.js → index-D5rvMvzx.js} +1 -1
  77. package/dist/{index-CvoShC5J.js → index-DNxa8Rqx.js} +536 -461
  78. package/dist/{index-DPBHiqsJ.js → index-l2F5MnLF.js} +1 -1
  79. package/dist/{index.esm2017-DFYwde30.js → index.esm2017-ATcsD5N4.js} +127 -127
  80. package/dist/{loading-vUArhX_O.js → loading-BWGQSrCB.js} +1 -1
  81. package/dist/{membership-BHKv29yt.js → membership-Cc4OZ8-U.js} +3 -3
  82. package/dist/{money-Bl3_QRkE.js → money-D7p8nfun.js} +1 -1
  83. package/dist/{number-hh_S9w7k.js → number-CMJjC4qz.js} +1 -1
  84. package/dist/objectid-D5T27iny.js +145 -0
  85. package/dist/{plugins-CVes2wzE.js → plugins-eQis66QR.js} +2 -2
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/{reward-ANZOdWzf.js → reward-DrnzbG20.js} +1 -1
  88. package/dist/{rule-BvFk5bQg.js → rule-CtRxkYXB.js} +3 -3
  89. package/dist/{rule-builder-BSN777PN.js → rule-builder-Di9RIYHF.js} +17 -17
  90. package/dist/style.css +1 -1
  91. package/dist/{template-Dh9lDLs_.js → template-C3UfY0v5.js} +64 -64
  92. package/dist/{trigger-C7THbt7R.js → trigger-C9U7Zgad.js} +7 -7
  93. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  94. package/dist/{user-DtNR9JY2.js → user-D7n9yYmO.js} +1 -1
  95. package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-Bz45zC04.js} +387 -387
  96. package/dist/{xlsx-7u9SB0oa.js → xlsx-D4S4qbcZ.js} +226 -226
  97. package/package.json +9 -3
  98. package/dist/Analytic-CavR2bzs.js +0 -427
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/Marketing-BSspYuhg.js +0 -319
  101. package/dist/Member-B4S0UNGq.js +0 -287
  102. package/dist/MemberList-CfnUJ3mh.js +0 -1606
  103. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  104. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js +0 -455
  105. package/dist/Promotion-Bg6x0rAh.js +0 -255
  106. package/dist/Segment-BLB4VWNJ.js +0 -882
  107. package/dist/StoreRewards--TNIFaCo.js +0 -423
  108. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
  109. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
  110. package/dist/business-DMALI7ZO.js +0 -78
  111. package/dist/campaign.fn-rsRhHYZP.js +0 -758
  112. package/dist/index-BsCGyJMY.js +0 -29566
  113. package/dist/index-CuvNtC_M.js +0 -61
  114. package/dist/index-DFKmjCG1.js +0 -44
  115. package/dist/index-Dbd4WA4r.js +0 -61
  116. package/dist/objectid-CEyMlMge.js +0 -145
@@ -1,11 +1,11 @@
1
- import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as w, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as O, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
2
- import { z as te } from "./app-D3MT1deX.js";
1
+ import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as w, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as O, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
2
+ import { z as te } from "./app-7cvPyHJ7.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { f as le, g as oe } from "./index-CTPMbFf5.js";
5
- import { u as Z } from "./vue-i18n-BWyHnm4m.js";
6
- import { s as R } from "./effect-DbMAmVSR.js";
7
- import { p as ae } from "./plugins-CVes2wzE.js";
8
- import { O as ne } from "./app-Bo0JpadQ.js";
4
+ import { f as le, g as oe } from "./index-CUfS9Kp1.js";
5
+ import { u as Z } from "./vue-i18n-Bz45zC04.js";
6
+ import { s as R } from "./effect-FIlOEC4H.js";
7
+ import { p as ae } from "./plugins-eQis66QR.js";
8
+ import { O as ne } from "./app-BVojNX0w.js";
9
9
  const ie = { class: "flex flex-col gap-8" }, se = {
10
10
  key: 0,
11
11
  class: "fm-typo-en-body-lg-600"
@@ -44,102 +44,102 @@ const ie = { class: "flex flex-col gap-8" }, se = {
44
44
  const { t: d } = Z(), l = t, S = g, o = [
45
45
  { label: d("connect.template.validity_option.date_range"), value: "range" },
46
46
  { label: d("connect.template.validity_option.custom"), value: "custom" }
47
- ], s = C(!1);
47
+ ], a = C(!1);
48
48
  Q(() => {
49
- s.value = l.modelValue && Object.entries(l.modelValue).filter(
50
- ([c, r]) => c != "followFirstReceive" && r != null
49
+ a.value = l.modelValue && Object.entries(l.modelValue).filter(
50
+ ([p, r]) => p != "followFirstReceive" && r != null
51
51
  ).length > 0;
52
52
  });
53
- const a = C(
54
- l.type ? o.find((c) => c.value === l.type) : (A = l.modelValue) != null && A.validBefore || (B = l.modelValue) != null && B.validAfter ? o[0] : o[1]
53
+ const n = C(
54
+ l.type ? o.find((p) => p.value === l.type) : (A = l.modelValue) != null && A.validBefore || (B = l.modelValue) != null && B.validAfter ? o[0] : o[1]
55
55
  ), h = H(
56
56
  () => l.forCredit ? le : oe
57
57
  ), m = H(() => {
58
- const c = h.value.safeParse(l.modelValue);
59
- return c.success ? [] : c.error.errors;
58
+ const p = h.value.safeParse(l.modelValue);
59
+ return p.success ? [] : p.error.errors;
60
60
  });
61
- function n(c) {
62
- S("update:model-value", c);
61
+ function i(p) {
62
+ S("update:model-value", p);
63
63
  }
64
- function k(c) {
64
+ function k(p) {
65
65
  var r, D;
66
- if (c.value == "range")
67
- return n({
66
+ if (p.value == "range")
67
+ return i({
68
68
  followFirstReceive: (r = l.modelValue) == null ? void 0 : r.followFirstReceive,
69
69
  validAfter: void 0,
70
70
  validBefore: void 0
71
71
  });
72
- if (c.value == "custom")
73
- return s.value = !1, n({
72
+ if (p.value == "custom")
73
+ return a.value = !1, i({
74
74
  validForDay: (D = l.modelValue) == null ? void 0 : D.validForDay
75
75
  });
76
76
  }
77
- return (c, r) => {
77
+ return (p, r) => {
78
78
  var I, $, j, E, M, N, L, z;
79
79
  const D = y("FmButtonGroup"), Y = y("FmSimpleDateRangePicker"), J = y("FmSwitch"), K = y("FmStepperField"), T = y("FmHelperText");
80
- return i(), x("div", ie, [
81
- W(c.$slots, "label", {}, () => [
82
- t.label ? (i(), x("div", se, w(t.label), 1)) : v("", !0)
80
+ return s(), x("div", ie, [
81
+ W(p.$slots, "label", {}, () => [
82
+ t.label ? (s(), x("div", se, w(t.label), 1)) : v("", !0)
83
83
  ]),
84
- t.type ? v("", !0) : (i(), f(D, {
84
+ t.type ? v("", !0) : (s(), f(D, {
85
85
  key: 0,
86
- modelValue: e(a),
86
+ modelValue: e(n),
87
87
  "onUpdate:modelValue": [
88
- r[0] || (r[0] = (p) => q(a) ? a.value = p : null),
89
- r[1] || (r[1] = (p) => k(p))
88
+ r[0] || (r[0] = (c) => q(n) ? n.value = c : null),
89
+ r[1] || (r[1] = (c) => k(c))
90
90
  ],
91
91
  items: o
92
92
  }, null, 8, ["modelValue"])),
93
- e(a).value === "range" ? (i(), x("div", de, [
93
+ e(n).value === "range" ? (s(), x("div", de, [
94
94
  b(Y, {
95
95
  "model-value": {
96
96
  startDate: (I = t.modelValue) != null && I.validAfter ? new Date(($ = t.modelValue) == null ? void 0 : $.validAfter).toISOString() : null,
97
97
  endDate: (j = t.modelValue) != null && j.validAfter ? new Date(((E = t.modelValue) == null ? void 0 : E.validBefore) || "").toISOString() : null
98
98
  },
99
- "onUpdate:modelValue": r[2] || (r[2] = (p) => {
99
+ "onUpdate:modelValue": r[2] || (r[2] = (c) => {
100
100
  var V;
101
- n({
101
+ i({
102
102
  followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive,
103
- validAfter: new Date(p.startDate).toISOString(),
104
- validBefore: new Date(p.endDate).toISOString()
103
+ validAfter: new Date(c.startDate).toISOString(),
104
+ validBefore: new Date(c.endDate).toISOString()
105
105
  });
106
106
  })
107
107
  }, null, 8, ["model-value"])
108
- ])) : e(a).value === "custom" ? (i(), x("div", me, [
108
+ ])) : e(n).value === "custom" ? (s(), x("div", me, [
109
109
  b(J, {
110
- "model-value": e(s),
110
+ "model-value": e(a),
111
111
  label: e(d)("connect.template.validity_option.expire"),
112
112
  "label-placement": "right",
113
- "onUpdate:modelValue": r[3] || (r[3] = (p) => {
113
+ "onUpdate:modelValue": r[3] || (r[3] = (c) => {
114
114
  var V;
115
- s.value = p, n({
116
- validForDay: p ? 1 : void 0,
115
+ a.value = c, i({
116
+ validForDay: c ? 1 : void 0,
117
117
  followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive
118
118
  });
119
119
  })
120
120
  }, null, 8, ["model-value", "label"]),
121
- e(s) ? (i(), f(K, {
121
+ e(a) ? (s(), f(K, {
122
122
  key: 0,
123
123
  label: e(d)("connect.template.validity_option.after_day"),
124
124
  class: G([{
125
- "opacity-50 pointer-events-none": !e(s)
125
+ "opacity-50 pointer-events-none": !e(a)
126
126
  }, "mt-[-4px]"]),
127
127
  "max-fraction-digits": 0,
128
- disabled: !e(s),
128
+ disabled: !e(a),
129
129
  "show-steppers": !1,
130
130
  max: 99999,
131
131
  "append-text": e(d)("connect.template.validity_option.days"),
132
132
  "model-value": ((M = l.modelValue) == null ? void 0 : M.validForDay) ?? null,
133
- "onUpdate:modelValue": r[4] || (r[4] = (p) => {
133
+ "onUpdate:modelValue": r[4] || (r[4] = (c) => {
134
134
  var V;
135
- return n({
136
- validForDay: p == null ? void 0 : parseInt(p.toString()),
135
+ return i({
136
+ validForDay: c == null ? void 0 : parseInt(c.toString()),
137
137
  followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive
138
138
  });
139
139
  })
140
140
  }, null, 8, ["label", "class", "disabled", "append-text", "model-value"])) : v("", !0)
141
141
  ])) : v("", !0),
142
- ((N = l.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(s) ? (i(), f(T, {
142
+ ((N = l.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(a) ? (s(), f(T, {
143
143
  key: 3,
144
144
  text: e(d)("connect.template.validity_option.expire_follow_first_receive")
145
145
  }, null, 8, ["text"])) : v("", !0),
@@ -150,7 +150,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
150
150
  ]);
151
151
  };
152
152
  }
153
- }), ue = { class: "space-y-8" }, Ae = /* @__PURE__ */ P({
153
+ }), ue = { class: "space-y-8" }, he = /* @__PURE__ */ P({
154
154
  __name: "CollectibleOptionInput",
155
155
  props: {
156
156
  modelValue: {
@@ -171,28 +171,29 @@ const ie = { class: "flex flex-col gap-8" }, se = {
171
171
  emits: ["update:model-value"],
172
172
  setup(t, { emit: g }) {
173
173
  const { t: d } = Z(), l = t, S = g, o = C(l.modelValue ?? {});
174
- return X(o, () => S("update:model-value", o.value)), (s, a) => {
174
+ return X(o, () => S("update:model-value", o.value)), (a, n) => {
175
175
  const h = y("FmSwitch"), m = y("FmStepperField");
176
- return i(), x("div", ue, [
177
- t.isMission ? v("", !0) : (i(), f(h, {
176
+ return s(), x("div", ue, [
177
+ t.isMission ? v("", !0) : (s(), f(h, {
178
178
  key: 0,
179
179
  label: e(d)("connect.template.enable_transfer"),
180
180
  "label-placement": "right",
181
181
  modelValue: e(o).enableTransfer,
182
- "onUpdate:modelValue": a[0] || (a[0] = (n) => e(o).enableTransfer = n)
182
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => e(o).enableTransfer = i)
183
183
  }, null, 8, ["label", "modelValue"])),
184
- t.noCampaign ? v("", !0) : (i(), x("div", {
184
+ t.noCampaign ? v("", !0) : (s(), x("div", {
185
185
  key: 1,
186
186
  class: G(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
187
187
  }, [
188
188
  b(m, {
189
189
  modelValue: e(o).maxPerUser,
190
- "onUpdate:modelValue": a[1] || (a[1] = (n) => e(o).maxPerUser = n),
190
+ "onUpdate:modelValue": n[1] || (n[1] = (i) => e(o).maxPerUser = i),
191
191
  "show-steppers": !1,
192
- rules: [e(u).ruleAtPath(t.schema, "maxPerUser")]
192
+ rules: [e(u).ruleAtPath(t.schema, "maxPerUser")],
193
+ "helper-text": e(d)("connect.template.leave_empty_unlimited")
193
194
  }, {
194
195
  label: F(() => [
195
- (i(), f(O(
196
+ (s(), f(O(
196
197
  e(u).toInputLabel(
197
198
  e(u).typeAtPath(t.schema, "maxPerUser"),
198
199
  e(d)("connect.template.max_per_user")
@@ -200,16 +201,17 @@ const ie = { class: "flex flex-col gap-8" }, se = {
200
201
  )))
201
202
  ]),
202
203
  _: 1
203
- }, 8, ["modelValue", "rules"]),
204
- t.isMission ? v("", !0) : (i(), f(m, {
204
+ }, 8, ["modelValue", "rules", "helper-text"]),
205
+ t.isMission ? v("", !0) : (s(), f(m, {
205
206
  key: 0,
206
207
  modelValue: e(o).maxReceive,
207
- "onUpdate:modelValue": a[2] || (a[2] = (n) => e(o).maxReceive = n),
208
+ "onUpdate:modelValue": n[2] || (n[2] = (i) => e(o).maxReceive = i),
208
209
  "show-steppers": !1,
209
- rules: [e(u).ruleAtPath(t.schema, "maxReceive")]
210
+ rules: [e(u).ruleAtPath(t.schema, "maxReceive")],
211
+ "helper-text": e(d)("connect.template.leave_empty_unlimited")
210
212
  }, {
211
213
  label: F(() => [
212
- (i(), f(O(
214
+ (s(), f(O(
213
215
  e(u).toInputLabel(
214
216
  e(u).typeAtPath(t.schema, "maxReceive"),
215
217
  e(d)("connect.template.max_distribute")
@@ -217,18 +219,18 @@ const ie = { class: "flex flex-col gap-8" }, se = {
217
219
  )))
218
220
  ]),
219
221
  _: 1
220
- }, 8, ["modelValue", "rules"]))
222
+ }, 8, ["modelValue", "rules", "helper-text"]))
221
223
  ], 2)),
222
- t.isMission ? v("", !0) : (i(), x(_, { key: 2 }, [
224
+ t.isMission ? v("", !0) : (s(), x(_, { key: 2 }, [
223
225
  b(m, {
224
226
  modelValue: e(o).maxUse,
225
- "onUpdate:modelValue": a[3] || (a[3] = (n) => e(o).maxUse = n),
227
+ "onUpdate:modelValue": n[3] || (n[3] = (i) => e(o).maxUse = i),
226
228
  "append-text": "use(s)",
227
229
  "show-steppers": !1,
228
230
  rules: [e(u).ruleAtPath(t.schema, "maxUse")]
229
231
  }, {
230
232
  label: F(() => [
231
- (i(), f(O(
233
+ (s(), f(O(
232
234
  e(u).toInputLabel(
233
235
  e(u).typeAtPath(t.schema, "maxUse"),
234
236
  e(d)("connect.template.usage_count")
@@ -237,16 +239,16 @@ const ie = { class: "flex flex-col gap-8" }, se = {
237
239
  ]),
238
240
  _: 1
239
241
  }, 8, ["modelValue", "rules"]),
240
- e(o).maxUse && e(o).maxUse > 1 ? (i(), f(m, {
242
+ e(o).maxUse && e(o).maxUse > 1 ? (s(), f(m, {
241
243
  key: 0,
242
244
  modelValue: e(o).cooldown,
243
- "onUpdate:modelValue": a[4] || (a[4] = (n) => e(o).cooldown = n),
245
+ "onUpdate:modelValue": n[4] || (n[4] = (i) => e(o).cooldown = i),
244
246
  "append-text": "minute(s)",
245
247
  "show-steppers": !1,
246
248
  rules: [e(u).ruleAtPath(t.schema, "cooldown")]
247
249
  }, {
248
250
  label: F(() => [
249
- (i(), f(O(
251
+ (s(), f(O(
250
252
  e(u).toInputLabel(
251
253
  e(u).typeAtPath(t.schema, "cooldown"),
252
254
  e(d)("connect.template.cooldown")
@@ -257,17 +259,17 @@ const ie = { class: "flex flex-col gap-8" }, se = {
257
259
  }, 8, ["modelValue", "rules"])) : v("", !0),
258
260
  b(re, {
259
261
  modelValue: e(o).validityOption,
260
- "onUpdate:modelValue": a[5] || (a[5] = (n) => e(o).validityOption = n),
262
+ "onUpdate:modelValue": n[5] || (n[5] = (i) => e(o).validityOption = i),
261
263
  label: e(d)("connect.template.validity_option.title")
262
264
  }, null, 8, ["modelValue", "label"])
263
265
  ], 64))
264
266
  ]);
265
267
  };
266
268
  }
267
- }), ce = { class: "space-y-8" }, pe = /* @__PURE__ */ U("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure the discount you want to offer your customer. ", -1), fe = {
269
+ }), pe = { class: "space-y-8" }, ce = {
268
270
  key: 1,
269
271
  class: "border-1 rounded-md flex gap-16 items-center justify-between px-16 py-12"
270
- }, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" }, Ue = /* @__PURE__ */ P({
272
+ }, fe = { class: "fm-typo-en-body-lg-400" }, ve = { class: "text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ P({
271
273
  __name: "EffectSheet",
272
274
  props: {
273
275
  modelValue: { type: Object },
@@ -281,34 +283,34 @@ const ie = { class: "flex flex-col gap-8" }, se = {
281
283
  async function S(o) {
282
284
  o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && d("update:model-value", null);
283
285
  }
284
- return (o, s) => {
285
- const a = y("FmButton"), h = y("FmSideSheet");
286
- return i(), f(h, {
286
+ return (o, a) => {
287
+ const n = y("FmButton"), h = y("FmSideSheet");
288
+ return s(), f(h, {
287
289
  "max-width": 550,
288
290
  header: "Apply discount",
289
291
  modelValue: e(l),
290
292
  "onUpdate:modelValue": [
291
- s[2] || (s[2] = (m) => q(l) ? l.value = m : null),
292
- s[3] || (s[3] = (m) => l.value = m)
293
+ a[2] || (a[2] = (m) => q(l) ? l.value = m : null),
294
+ a[3] || (a[3] = (m) => l.value = m)
293
295
  ]
294
296
  }, {
295
297
  "side-sheet-button": F(() => {
296
- var m, n, k, A;
298
+ var m, i, k, A;
297
299
  return [
298
- U("div", ce, [
299
- pe,
300
- t.modelValue ? (i(), x("div", fe, [
301
- U("div", ve, [
300
+ U("div", pe, [
301
+ a[4] || (a[4] = U("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure the discount you want to offer your customer. ", -1)),
302
+ t.modelValue ? (s(), x("div", ce, [
303
+ U("div", fe, [
302
304
  U("div", null, w((m = e(R)(t.modelValue)) == null ? void 0 : m.type), 1),
303
- U("div", ye, w((n = e(R)(t.modelValue)) == null ? void 0 : n.adjustment) + " with " + w((k = e(R)(t.modelValue)) == null ? void 0 : k.requirements) + " " + w((A = e(R)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
305
+ U("div", ve, w((i = e(R)(t.modelValue)) == null ? void 0 : i.adjustment) + " with " + w((k = e(R)(t.modelValue)) == null ? void 0 : k.requirements) + " " + w((A = e(R)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
304
306
  ]),
305
- b(a, {
307
+ b(n, {
306
308
  icon: "delete",
307
309
  "icon-color": "neutral-gray-400",
308
310
  variant: "tertiary",
309
311
  onClick: S
310
312
  })
311
- ])) : (i(), f(a, {
313
+ ])) : (s(), f(n, {
312
314
  key: 0,
313
315
  label: "Apply discount",
314
316
  icon: "add",
@@ -319,9 +321,9 @@ const ie = { class: "flex flex-col gap-8" }, se = {
319
321
  ])
320
322
  ];
321
323
  }),
322
- "side-sheet-footer": F(() => [
324
+ "side-sheet-footer": F(() => a[5] || (a[5] = [
323
325
  ee(w(void 0))
324
- ]),
326
+ ])),
325
327
  default: F(() => [
326
328
  b(e(ne), {
327
329
  class: "fm-effect-sheet",
@@ -329,8 +331,8 @@ const ie = { class: "flex flex-col gap-8" }, se = {
329
331
  "can-set-auto-apply": t.canSetAutoApply,
330
332
  "disable-effects": t.canSetAutoApply ? ["PAYMENT"] : void 0,
331
333
  "initial-value": t.modelValue,
332
- onOnConfirm: s[0] || (s[0] = (m) => (d("update:model-value", m), l.value = !1)),
333
- onOnCancel: s[1] || (s[1] = (m) => l.value = !1)
334
+ onOnConfirm: a[0] || (a[0] = (m) => (d("update:model-value", m), l.value = !1)),
335
+ onOnCancel: a[1] || (a[1] = (m) => l.value = !1)
334
336
  }, null, 8, ["can-set-auto-apply", "disable-effects", "initial-value"])
335
337
  ]),
336
338
  _: 1
@@ -339,7 +341,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
339
341
  }
340
342
  });
341
343
  export {
342
- Ue as _,
343
- Ae as a,
344
+ Ae as _,
345
+ he as a,
344
346
  re as b
345
347
  };
@@ -1,22 +1,19 @@
1
1
  import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
2
2
  import { _ as q } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as z, components as G } from "@feedmepos/ui-library";
4
- import { p as J } from "./plugins-CVes2wzE.js";
5
- import { u as Q } from "./loading-vUArhX_O.js";
6
- import { u as W } from "./business-DMALI7ZO.js";
7
- import { u as X } from "./campaign-j1c3ou7l.js";
8
- import { a as L, b as V, g as Y } from "./campaign-Z3l7BoMg.js";
9
- import { u as Z } from "./vue-i18n-BWyHnm4m.js";
4
+ import { p as J } from "./plugins-eQis66QR.js";
5
+ import { u as Q } from "./loading-BWGQSrCB.js";
6
+ import { u as W } from "./business-CmxV69wT.js";
7
+ import { u as X } from "./campaign-Dq5C_no-.js";
8
+ import { a as L, b as V, g as Y } from "./campaign-CT_cNJEL.js";
9
+ import { u as Z } from "./vue-i18n-Bz45zC04.js";
10
10
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
11
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js";
12
- import { u as oe } from "./template-Dh9lDLs_.js";
13
- import { c as g } from "./index-B3p0hmIV.js";
14
- const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ n("img", {
15
- src: q,
16
- class: "aspect-square w-[150px]"
17
- }, null, -1), fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ D({
11
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js";
12
+ import { u as oe } from "./template-C3UfY0v5.js";
13
+ import { c as g } from "./index-D5rvMvzx.js";
14
+ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "flex flex-col gap-16 text-center" }, fe = { class: "fm-typo-en-title-sm-800" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = /* @__PURE__ */ D({
18
15
  __name: "Experience",
19
- setup(_e) {
16
+ setup(ge) {
20
17
  const { t: s } = Z(), I = {
21
18
  label: s("connect.program.common.actions.create", {
22
19
  type: s("connect.program.experience.title").toLowerCase()
@@ -55,8 +52,8 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
55
52
  variant: "tertiary",
56
53
  icon: "delete",
57
54
  iconColor: "neutral-gray-400",
58
- onClick: (a) => {
59
- a.stopPropagation(), C(e.row.original);
55
+ onClick: (o) => {
56
+ o.stopPropagation(), C(e.row.original);
60
57
  }
61
58
  });
62
59
  }
@@ -74,10 +71,10 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
74
71
  );
75
72
  }
76
73
  async function y(e) {
77
- e ? await a() : P.open(async (d) => {
78
- await a(d);
74
+ e ? await o() : P.open(async (d) => {
75
+ await o(d);
79
76
  });
80
- async function a(d) {
77
+ async function o(d) {
81
78
  var u;
82
79
  (u = b.value) == null || u.showSheet(
83
80
  !0,
@@ -107,18 +104,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
107
104
  await T(async () => {
108
105
  await l.read("POINT");
109
106
  });
110
- }), (e, a) => {
107
+ }), (e, o) => {
111
108
  const d = i("FmPageHead"), u = i("FmSearch"), R = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), O = i("FmList"), A = i("FmCard");
112
109
  return m(), _(x, null, [
113
110
  c(d, {
114
111
  title: t(s)("connect.program.experience.title"),
115
112
  actions: t(f).length > 0 ? [I] : [],
116
- "onClick:action": a[0] || (a[0] = () => y())
113
+ "onClick:action": o[0] || (o[0] = () => y())
117
114
  }, null, 8, ["title", "actions"]),
118
115
  n("div", ae, [
119
116
  c(u, {
120
117
  modelValue: t(r).searchKey,
121
- "onUpdate:modelValue": a[1] || (a[1] = (o) => t(r).searchKey = o),
118
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => t(r).searchKey = a),
122
119
  class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
123
120
  placeholder: t(s)("connect.program.common.search"),
124
121
  collapsible: ""
@@ -128,7 +125,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
128
125
  n("div", se, [
129
126
  c(ee, {
130
127
  modelValue: t(r).location,
131
- "onUpdate:modelValue": a[2] || (a[2] = (o) => t(r).location = o),
128
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => t(r).location = a),
132
129
  label: "Location: ",
133
130
  "show-item-label": !0,
134
131
  icon: "storefront",
@@ -138,7 +135,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
138
135
  ]),
139
136
  c(u, {
140
137
  modelValue: t(r).searchKey,
141
- "onUpdate:modelValue": a[3] || (a[3] = (o) => t(r).searchKey = o),
138
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => t(r).searchKey = a),
142
139
  class: "xs:hidden",
143
140
  placeholder: "search",
144
141
  collapsible: ""
@@ -150,37 +147,37 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
150
147
  "column-defs": K,
151
148
  "search-value": t(r).searchKey,
152
149
  "column-filter": [],
153
- onRowClick: a[4] || (a[4] = (o) => y(o.original)),
150
+ onRowClick: o[4] || (o[4] = (a) => y(a.original)),
154
151
  "hide-footer": t(f).length < 10
155
152
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
156
153
  c(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
157
154
  default: h(() => [
158
155
  (m(!0), _(x, null, j(t(f).filter(
159
- (o) => o.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
160
- ), (o) => (m(), w($, {
161
- key: o._id.toString(),
162
- onClick: (k) => y(o),
156
+ (a) => a.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
157
+ ), (a) => (m(), w($, {
158
+ key: a._id.toString(),
159
+ onClick: (k) => y(a),
163
160
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
164
161
  }, {
165
162
  default: h(() => [
166
163
  n("div", re, [
167
164
  n("div", ce, [
168
- (m(), w(M(t(L)(o)))),
169
- n("div", ie, p(o.currentReceive ?? 0) + " used ", 1)
165
+ (m(), w(M(t(L)(a)))),
166
+ n("div", ie, p(a.currentReceive ?? 0) + " used ", 1)
170
167
  ]),
171
168
  n("div", le, [
172
- n("div", me, p(o.name), 1),
173
- n("div", pe, p(t(V)(o)), 1)
169
+ n("div", me, p(a.name), 1),
170
+ n("div", pe, p(t(V)(a)), 1)
174
171
  ]),
175
172
  n("div", de, p(t(s)("connect.program.experience.received", {
176
- count: o.currentReceive ?? 0
173
+ count: a.currentReceive ?? 0
177
174
  })), 1)
178
175
  ]),
179
176
  c(F, {
180
177
  icon: "delete",
181
178
  "icon-color": "neutral-gray-400",
182
179
  variant: "tertiary",
183
- onClick: (k) => (k.stopPropagation(), C(o))
180
+ onClick: (k) => (k.stopPropagation(), C(a))
184
181
  }, null, 8, ["onClick"])
185
182
  ]),
186
183
  _: 2
@@ -194,16 +191,19 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
194
191
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
195
192
  }, {
196
193
  default: h(() => [
197
- ue,
198
- n("div", fe, [
199
- n("div", ye, p(t(s)("connect.program.experience.empty_state.title")), 1),
200
- n("div", ge, p(t(s)("connect.program.experience.empty_state.description")), 1)
194
+ o[6] || (o[6] = n("img", {
195
+ src: q,
196
+ class: "aspect-square w-[150px]"
197
+ }, null, -1)),
198
+ n("div", ue, [
199
+ n("div", fe, p(t(s)("connect.program.experience.empty_state.title")), 1),
200
+ n("div", ye, p(t(s)("connect.program.experience.empty_state.description")), 1)
201
201
  ]),
202
202
  c(F, {
203
203
  variant: "primary",
204
204
  label: "Create experience program",
205
205
  icon: "add",
206
- onClick: a[5] || (a[5] = (o) => y())
206
+ onClick: o[5] || (o[5] = (a) => y())
207
207
  })
208
208
  ]),
209
209
  _: 1
@@ -219,5 +219,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
219
219
  }
220
220
  });
221
221
  export {
222
- Be as default
222
+ Pe as default
223
223
  };
@@ -40,12 +40,8 @@ const A = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hi
40
40
  emits: ["update:model-value"],
41
41
  setup(o, { emit: g }) {
42
42
  const t = o, v = g, c = y(!1), e = y({}), k = q(() => {
43
- if (!e.value || Object.keys(e.value).length == t.items.length)
44
- return "All";
45
- {
46
- const l = Object.keys(e.value).length;
47
- return `${l > 0 ? l : "None"} selected`;
48
- }
43
+ const l = Object.keys(e.value).length;
44
+ return !e.value || Object.keys(e.value).length == t.items.length || l === 0 ? "All" : `${l > 0 ? l : "None"} selected`;
49
45
  });
50
46
  function _(l) {
51
47
  e.value[l] ? delete e.value[l] : e.value[l] = !0, v("update:model-value", Object.keys(e.value));