@feedmepos/mf-connect 0.1.0-beta.7 → 0.1.0-beta.70

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 (123) hide show
  1. package/dist/Analytic-DEQUEGlq.js +427 -0
  2. package/dist/{App-DalxIjTu.js → App-CcoU2SAx.js} +445 -420
  3. package/dist/AuditLogs-CiB6u06w.js +1886 -0
  4. package/dist/Bin-C2_1m5RT.js +166 -0
  5. package/dist/{Broadcast-uMAvsC--.js → Broadcast-TotIXDuJ.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-JxbENan8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CixQu3Pr.js} +6 -8
  7. package/dist/Card-Ce-_xMgS.js +896 -0
  8. package/dist/Collections-DKva6Doi.js +459 -0
  9. package/dist/{Credit-QlnatflM.js → Credit-BVUxIJ6C.js} +36 -34
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  11. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BE07lc4M.js → EffectSheet.vue_vue_type_style_index_0_lang-ah4bz-qR.js} +49 -49
  14. package/dist/{Experience-Czy41ifp.js → Experience-DV3384o0.js} +32 -30
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  16. package/dist/Game-DY83ti52.js +278 -0
  17. package/dist/Index-DEIaZ-2H.js +259 -0
  18. package/dist/Marketing-C2RwIlrg.js +20071 -0
  19. package/dist/Member-D4fc-wzd.js +333 -0
  20. package/dist/MemberList-DSMI6t_D.js +1598 -0
  21. package/dist/MemberTransactions-wXUlbbRq.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CtM73bcN.js → MessageInput.vue_vue_type_script_setup_true_lang-DYS0klKm.js} +135 -120
  23. package/dist/Mission-P_KLDEpg.js +296 -0
  24. package/dist/Overview-8vc0f1D7.js +1078 -0
  25. package/dist/{Point-By6ogYy_.js → Point-B4Y0Pq60.js} +55 -53
  26. package/dist/{Promotion-DKcBr-RI.js → Promotion-C1CbesgZ.js} +65 -57
  27. package/dist/Queue-BlPA7PNH.js +244 -0
  28. package/dist/Record-Cl1qXSSk.js +340 -0
  29. package/dist/Reward-jy6-W1Eh.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-d5JNNNHf.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DYul_Nu8.js +1640 -0
  32. package/dist/Segment-B36Nrvxs.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-jN0xUFNR.js +181 -0
  34. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLFTNooB.js +186 -0
  35. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-H_Sehhgf.js +147 -0
  36. package/dist/Setting-AgQf2X4W.js +1931 -0
  37. package/dist/Store-D3Mm0pan.js +1841 -0
  38. package/dist/StoreRewards-L0VLWz8l.js +423 -0
  39. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Zl_cXXSD.js +1028 -0
  40. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-nEdCD6la.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-b4mfueTj.js} +1 -1
  41. package/dist/{Tier-DvAs0-yx.js → Tier-DQq-375x.js} +327 -318
  42. package/dist/{Title-B_Trr39o.js → Title-OJxuBvaa.js} +224 -209
  43. package/dist/{Transaction-DCJw-b3H.js → Transaction-vgsYRfD7.js} +2 -2
  44. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Cwi0mvC3.js +130 -0
  45. package/dist/Voucher-BFwLaoxe.js +354 -0
  46. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DNUBaNtJ.js +419 -0
  47. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXkhu8e9.js → ZodTextField.vue_vue_type_script_setup_true_lang-ms40eptZ.js} +1 -1
  48. package/dist/app-BQFTJ_hE.js +33357 -0
  49. package/dist/app-D7C3Fxfi.js +7077 -0
  50. package/dist/app.js +1 -1
  51. package/dist/{business-BC4-i1cU.js → business-vzpvmTdG.js} +1 -1
  52. package/dist/{campaign--0_yMbMV.js → campaign-BkxTDfsK.js} +2 -2
  53. package/dist/campaign-UQ8kMVeC.js +1810 -0
  54. package/dist/campaign.enum-BdT-e9h9.js +20 -0
  55. package/dist/campaign.fn-lc4ZhFCU.js +758 -0
  56. package/dist/collectible.enum-C8kd17Tz.js +19 -0
  57. package/dist/{collection.fn-3TwPe7aF.js → collection.fn-BIw1Y_tv.js} +2 -2
  58. package/dist/dto-CwzAhB8x.js +214 -0
  59. package/dist/{effect-BeR0LK61.js → effect-CJcvLlKG.js} +33 -16
  60. package/dist/email-addresses-BCJTQPT0.js +705 -0
  61. package/dist/{export-xeLLhqvh.js → export-URRwle1z.js} +5 -5
  62. package/dist/{helper-B5iqfKh8.js → helper-DccnE6zn.js} +1 -1
  63. package/dist/index-BiIZ7X6d.js +29556 -0
  64. package/dist/{index-CyKZ-SsN.js → index-BsRJ4kVb.js} +1 -1
  65. package/dist/{index-CU_d8jjU.js → index-C3lpXz_P.js} +1 -1
  66. package/dist/{index-Ct_wR519.js → index-CFA3EqId.js} +24 -21
  67. package/dist/{index-DP-dGMJC.js → index-CPRN3irj.js} +2230 -871
  68. package/dist/index-CaxFS90M.js +56 -0
  69. package/dist/index-CsaQJMAR.js +66 -0
  70. package/dist/index-D4MX9e5q.js +115 -0
  71. package/dist/index-DrE9VkxR.js +32 -0
  72. package/dist/index-EOPRlB9V.js +54 -0
  73. package/dist/{index-CAn5heDe.js → index-FcxOGFKj.js} +48 -4
  74. package/dist/{index-Bh-uaaBG.js → index-OScGm4mF.js} +1506 -1480
  75. package/dist/{index-BOdtpNkP.js → index-ghSGvG-m.js} +266 -173
  76. package/dist/index-vh86FiIQ.js +10 -0
  77. package/dist/{index.esm2017-5jeDA5Zo.js → index.esm2017-CE1CQHrP.js} +121 -121
  78. package/dist/loading-B8zghYbj.js +71 -0
  79. package/dist/{membership-D0nqqWNZ.js → membership-DoJMF2T6.js} +54 -46
  80. package/dist/money-CTR0rXZw.js +15 -0
  81. package/dist/number-Bhgz9eFP.js +12 -0
  82. package/dist/objectid-DdVJrRBw.js +145 -0
  83. package/dist/{loading-C-JDVajU.js → plugins-B5mQ7CHT.js} +3871 -3943
  84. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  85. package/dist/reward-DicsEEHe.js +36 -0
  86. package/dist/{rule-builder-BXt29Es4.js → rule-builder-BWb4JTrd.js} +1 -1
  87. package/dist/{rule-Dn_GgBCe.js → rule-s8siRar1.js} +185 -178
  88. package/dist/style.css +1 -1
  89. package/dist/{template-D2Oi3dxP.js → template-Qb5ozfLa.js} +5 -5
  90. package/dist/trigger-Bsb3Kj35.js +144 -0
  91. package/dist/user-DJ8aHRaM.js +54 -0
  92. package/dist/{vue-i18n-Dud8fvmw.js → vue-i18n-BG2U7GtN.js} +282 -282
  93. package/dist/{xlsx-CCRCidY2.js → xlsx-2QxyDFwt.js} +1 -1
  94. package/package.json +11 -7
  95. package/dist/Analytic-BMpS6jWb.js +0 -622
  96. package/dist/Card-DV8-g69L.js +0 -825
  97. package/dist/Collections-DRafEHT1.js +0 -453
  98. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-TDoMehSB.js +0 -2813
  99. package/dist/Game-CD3zSitz.js +0 -255
  100. package/dist/Marketing-NNes8z6Q.js +0 -316
  101. package/dist/Member-CTqBgYuV.js +0 -69
  102. package/dist/MemberList-B99tS5ce.js +0 -1733
  103. package/dist/MemberTransactions-D1YCXPOg.js +0 -38
  104. package/dist/Mission-XbBVKBiE.js +0 -261
  105. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D1ESqEFO.js +0 -1753
  106. package/dist/Segment-B8cszL-F.js +0 -437
  107. package/dist/Setting-aZYABlMW.js +0 -1901
  108. package/dist/Store-Bx2tyJwe.js +0 -1511
  109. package/dist/StoreRewards-DTp9G6gw.js +0 -401
  110. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2W7ly5Z.js +0 -890
  111. package/dist/Voucher-jqv3ji90.js +0 -490
  112. package/dist/app-WlcUVbFb.js +0 -5764
  113. package/dist/app-_w0hjM7u.js +0 -53428
  114. package/dist/dto-Ns2dLn1B.js +0 -2770
  115. package/dist/index-BWb9vRCi.js +0 -29193
  116. package/dist/index-CpU9aqyW.js +0 -206
  117. package/dist/index-CqO_ZvtD.js +0 -99
  118. package/dist/index-CuvNtC_M.js +0 -61
  119. package/dist/index-DsNsA2uX.js +0 -298
  120. package/dist/index-WAMr3npT.js +0 -762
  121. package/dist/money-hdbrblud.js +0 -15
  122. package/dist/number-CRWGOZaW.js +0 -12
  123. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,11 +1,11 @@
1
- import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as A, 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 D, Fragment as _, createElementVNode as h, createTextVNode as ee } from "vue";
2
- import { z as te } from "./app-WlcUVbFb.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-D7C3Fxfi.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-Bh-uaaBG.js";
5
- import { u as Z } from "./vue-i18n-Dud8fvmw.js";
6
- import { s as O } from "./effect-BeR0LK61.js";
7
- import { p as ae } from "./loading-C-JDVajU.js";
8
- import { I as ne } from "./app-_w0hjM7u.js";
4
+ import { f as le, g as oe } from "./index-OScGm4mF.js";
5
+ import { u as Z } from "./vue-i18n-BG2U7GtN.js";
6
+ import { s as R } from "./effect-CJcvLlKG.js";
7
+ import { p as ae } from "./plugins-B5mQ7CHT.js";
8
+ import { O as ne } from "./app-BQFTJ_hE.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"
@@ -39,30 +39,30 @@ const ie = { class: "flex flex-col gap-8" }, se = {
39
39
  }
40
40
  },
41
41
  emits: ["update:model-value"],
42
- setup(t, { emit: w }) {
43
- var B, C;
44
- const { t: d } = Z(), l = t, g = w, o = [
42
+ setup(t, { emit: g }) {
43
+ var A, B;
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
- ], a = R(!1);
47
+ ], a = C(!1);
48
48
  Q(() => {
49
49
  a.value = l.modelValue && Object.entries(l.modelValue).filter(
50
50
  ([p, r]) => p != "followFirstReceive" && r != null
51
51
  ).length > 0;
52
52
  });
53
- const n = R(
54
- l.type ? o.find((p) => p.value === l.type) : (B = l.modelValue) != null && B.validBefore || (C = l.modelValue) != null && C.validAfter ? o[0] : o[1]
55
- ), S = H(
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
+ ), h = H(
56
56
  () => l.forCredit ? le : oe
57
57
  ), m = H(() => {
58
- const p = S.value.safeParse(l.modelValue);
58
+ const p = h.value.safeParse(l.modelValue);
59
59
  return p.success ? [] : p.error.errors;
60
60
  });
61
61
  function i(p) {
62
- g("update:model-value", p);
62
+ S("update:model-value", p);
63
63
  }
64
- function U(p) {
65
- var r, k;
64
+ function k(p) {
65
+ var r, D;
66
66
  if (p.value == "range")
67
67
  return i({
68
68
  followFirstReceive: (r = l.modelValue) == null ? void 0 : r.followFirstReceive,
@@ -71,29 +71,29 @@ const ie = { class: "flex flex-col gap-8" }, se = {
71
71
  });
72
72
  if (p.value == "custom")
73
73
  return a.value = !1, i({
74
- validForDay: (k = l.modelValue) == null ? void 0 : k.validForDay
74
+ validForDay: (D = l.modelValue) == null ? void 0 : D.validForDay
75
75
  });
76
76
  }
77
77
  return (p, r) => {
78
- var T, $, j, E, M, N, L, z;
79
- const k = y("FmButtonGroup"), Y = y("FmSimpleDateRangePicker"), J = y("FmSwitch"), K = y("FmStepperField"), I = y("FmHelperText");
78
+ var I, $, j, E, M, N, L, z;
79
+ const D = y("FmButtonGroup"), Y = y("FmSimpleDateRangePicker"), J = y("FmSwitch"), K = y("FmStepperField"), T = y("FmHelperText");
80
80
  return s(), x("div", ie, [
81
81
  W(p.$slots, "label", {}, () => [
82
- t.label ? (s(), x("div", se, A(t.label), 1)) : v("", !0)
82
+ t.label ? (s(), x("div", se, w(t.label), 1)) : v("", !0)
83
83
  ]),
84
- t.type ? v("", !0) : (s(), f(k, {
84
+ t.type ? v("", !0) : (s(), f(D, {
85
85
  key: 0,
86
86
  modelValue: e(n),
87
87
  "onUpdate:modelValue": [
88
88
  r[0] || (r[0] = (c) => q(n) ? n.value = c : null),
89
- r[1] || (r[1] = (c) => U(c))
89
+ r[1] || (r[1] = (c) => k(c))
90
90
  ],
91
91
  items: o
92
92
  }, null, 8, ["modelValue"])),
93
93
  e(n).value === "range" ? (s(), x("div", de, [
94
94
  b(Y, {
95
95
  "model-value": {
96
- startDate: (T = t.modelValue) != null && T.validAfter ? new Date(($ = t.modelValue) == null ? void 0 : $.validAfter).toISOString() : null,
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
99
  "onUpdate:modelValue": r[2] || (r[2] = (c) => {
@@ -139,11 +139,11 @@ const ie = { class: "flex flex-col gap-8" }, se = {
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(a) ? (s(), f(I, {
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),
146
- b(I, {
146
+ b(T, {
147
147
  text: t.helperText || (((L = l.modelValue) == null ? void 0 : L.validForDay) === 0 ? e(d)("connect.template.validity_option.expires_on_same_day") : e(u).helperText(e(m), "")),
148
148
  state: t.helperText ? "error" : ((z = l.modelValue) == null ? void 0 : z.validForDay) === 0 ? "warning" : e(u).helperState(e(m), "")
149
149
  }, null, 8, ["text", "state"])
@@ -169,12 +169,12 @@ const ie = { class: "flex flex-col gap-8" }, se = {
169
169
  }
170
170
  },
171
171
  emits: ["update:model-value"],
172
- setup(t, { emit: w }) {
173
- const { t: d } = Z(), l = t, g = w, o = R(l.modelValue ?? {});
174
- return X(o, () => g("update:model-value", o.value)), (a, n) => {
175
- const S = y("FmSwitch"), m = y("FmStepperField");
172
+ setup(t, { emit: g }) {
173
+ const { t: d } = Z(), l = t, S = g, o = C(l.modelValue ?? {});
174
+ return X(o, () => S("update:model-value", o.value)), (a, n) => {
175
+ const h = y("FmSwitch"), m = y("FmStepperField");
176
176
  return s(), x("div", ue, [
177
- t.isMission ? v("", !0) : (s(), f(S, {
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",
@@ -192,7 +192,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
192
192
  rules: [e(u).ruleAtPath(t.schema, "maxPerUser")]
193
193
  }, {
194
194
  label: F(() => [
195
- (s(), f(D(
195
+ (s(), f(O(
196
196
  e(u).toInputLabel(
197
197
  e(u).typeAtPath(t.schema, "maxPerUser"),
198
198
  e(d)("connect.template.max_per_user")
@@ -209,7 +209,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
209
209
  rules: [e(u).ruleAtPath(t.schema, "maxReceive")]
210
210
  }, {
211
211
  label: F(() => [
212
- (s(), f(D(
212
+ (s(), f(O(
213
213
  e(u).toInputLabel(
214
214
  e(u).typeAtPath(t.schema, "maxReceive"),
215
215
  e(d)("connect.template.max_distribute")
@@ -228,7 +228,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
228
228
  rules: [e(u).ruleAtPath(t.schema, "maxUse")]
229
229
  }, {
230
230
  label: F(() => [
231
- (s(), f(D(
231
+ (s(), f(O(
232
232
  e(u).toInputLabel(
233
233
  e(u).typeAtPath(t.schema, "maxUse"),
234
234
  e(d)("connect.template.usage_count")
@@ -246,7 +246,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
246
246
  rules: [e(u).ruleAtPath(t.schema, "cooldown")]
247
247
  }, {
248
248
  label: F(() => [
249
- (s(), f(D(
249
+ (s(), f(O(
250
250
  e(u).toInputLabel(
251
251
  e(u).typeAtPath(t.schema, "cooldown"),
252
252
  e(d)("connect.template.cooldown")
@@ -276,14 +276,14 @@ const ie = { class: "flex flex-col gap-8" }, se = {
276
276
  }
277
277
  },
278
278
  emits: ["update:model-value"],
279
- setup(t, { emit: w }) {
280
- const d = w, l = R(!1);
281
- async function g(o) {
279
+ setup(t, { emit: g }) {
280
+ const d = g, l = C(!1);
281
+ async function S(o) {
282
282
  o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && d("update:model-value", null);
283
283
  }
284
284
  return (o, a) => {
285
- const n = y("FmButton"), S = y("FmSideSheet");
286
- return s(), f(S, {
285
+ const n = y("FmButton"), h = y("FmSideSheet");
286
+ return s(), f(h, {
287
287
  "max-width": 550,
288
288
  header: "Apply discount",
289
289
  modelValue: e(l),
@@ -293,20 +293,20 @@ const ie = { class: "flex flex-col gap-8" }, se = {
293
293
  ]
294
294
  }, {
295
295
  "side-sheet-button": F(() => {
296
- var m, i, U;
296
+ var m, i, k, A;
297
297
  return [
298
- h("div", pe, [
299
- a[4] || (a[4] = h("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure the discount you want to offer your customer. ", -1)),
298
+ U("div", pe, [
299
+ 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)),
300
300
  t.modelValue ? (s(), x("div", ce, [
301
- h("div", fe, [
302
- h("div", null, A((m = e(O)(t.modelValue)) == null ? void 0 : m.type), 1),
303
- h("div", ve, A((i = e(O)(t.modelValue)) == null ? void 0 : i.adjustment) + " with " + A((U = e(O)(t.modelValue)) == null ? void 0 : U.requirements), 1)
301
+ U("div", fe, [
302
+ U("div", null, w((m = e(R)(t.modelValue)) == null ? void 0 : m.type), 1),
303
+ 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
304
  ]),
305
305
  b(n, {
306
306
  icon: "delete",
307
307
  "icon-color": "neutral-gray-400",
308
308
  variant: "tertiary",
309
- onClick: g
309
+ onClick: S
310
310
  })
311
311
  ])) : (s(), f(n, {
312
312
  key: 0,
@@ -320,7 +320,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
320
320
  ];
321
321
  }),
322
322
  "side-sheet-footer": F(() => a[5] || (a[5] = [
323
- ee(A(void 0))
323
+ ee(w(void 0))
324
324
  ])),
325
325
  default: F(() => [
326
326
  b(e(ne), {
@@ -1,26 +1,27 @@
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 { u as J, p as Q } from "./loading-C-JDVajU.js";
5
- import { u as W } from "./business-BC4-i1cU.js";
6
- import { u as X } from "./campaign--0_yMbMV.js";
7
- import { g as L, b as V } from "./dto-Ns2dLn1B.js";
8
- import { u as Y } from "./vue-i18n-Dud8fvmw.js";
9
- import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-TDoMehSB.js";
11
- import { u as te } from "./template-D2Oi3dxP.js";
12
- import { c as g } from "./index-CqO_ZvtD.js";
13
- const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, le = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ D({
4
+ import { p as J } from "./plugins-B5mQ7CHT.js";
5
+ import { u as Q } from "./loading-B8zghYbj.js";
6
+ import { u as W } from "./business-vzpvmTdG.js";
7
+ import { u as X } from "./campaign-BkxTDfsK.js";
8
+ import { a as L, b as V, g as Y } from "./campaign-UQ8kMVeC.js";
9
+ import { u as Z } from "./vue-i18n-BG2U7GtN.js";
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-BKEumoan.js";
12
+ import { u as oe } from "./template-Qb5ozfLa.js";
13
+ import { c as g } from "./index-D4MX9e5q.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({
14
15
  __name: "Experience",
15
- setup(ye) {
16
- const { t: s } = Y(), I = {
16
+ setup(ge) {
17
+ const { t: s } = Z(), I = {
17
18
  label: s("connect.program.common.actions.create", {
18
19
  type: s("connect.program.experience.title").toLowerCase()
19
20
  }),
20
21
  value: "create",
21
22
  isPrimary: !0,
22
23
  prependIcon: "add"
23
- }, P = te("POINT", z()), B = W(), l = X(), { global: T, minor: v } = J, r = S({
24
+ }, P = oe("POINT", z()), B = W(), l = X(), { global: T, minor: v } = Q, r = S({
24
25
  searchKey: "",
25
26
  location: null
26
27
  }), f = E(
@@ -34,6 +35,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
34
35
  },
35
36
  {
36
37
  header: "Status",
38
+ accessorFn: (e) => Y(e),
37
39
  cell(e) {
38
40
  return L(e.row.original);
39
41
  }
@@ -58,7 +60,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
58
60
  }
59
61
  ], b = S();
60
62
  async function C(e) {
61
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
63
+ await J.remove(`Are you sure you want to remove ${e.name}?`) && await v(
62
64
  async () => {
63
65
  await g.delete(e._id), await l.read("POINT");
64
66
  },
@@ -110,7 +112,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
110
112
  actions: t(f).length > 0 ? [I] : [],
111
113
  "onClick:action": o[0] || (o[0] = () => y())
112
114
  }, null, 8, ["title", "actions"]),
113
- n("div", oe, [
115
+ n("div", ae, [
114
116
  c(u, {
115
117
  modelValue: t(r).searchKey,
116
118
  "onUpdate:modelValue": o[1] || (o[1] = (a) => t(r).searchKey = a),
@@ -119,9 +121,9 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
119
121
  collapsible: ""
120
122
  }, null, 8, ["modelValue", "placeholder"]),
121
123
  t(l).campaigns.experience && t(l).campaigns.experience.length > 0 ? (m(), _(x, { key: 0 }, [
122
- n("div", ae, [
123
- n("div", ne, [
124
- c(Z, {
124
+ n("div", ne, [
125
+ n("div", se, [
126
+ c(ee, {
125
127
  modelValue: t(r).location,
126
128
  "onUpdate:modelValue": o[2] || (o[2] = (a) => t(r).location = a),
127
129
  label: "Location: ",
@@ -158,16 +160,16 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
158
160
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
159
161
  }, {
160
162
  default: h(() => [
161
- n("div", se, [
162
- n("div", re, [
163
+ n("div", re, [
164
+ n("div", ce, [
163
165
  (m(), w(M(t(L)(a)))),
164
- n("div", ce, p(a.currentReceive ?? 0) + " used ", 1)
166
+ n("div", ie, p(a.currentReceive ?? 0) + " used ", 1)
165
167
  ]),
166
- n("div", ie, [
167
- n("div", le, p(a.name), 1),
168
- n("div", me, p(t(V)(a)), 1)
168
+ n("div", le, [
169
+ n("div", me, p(a.name), 1),
170
+ n("div", pe, p(t(V)(a)), 1)
169
171
  ]),
170
- n("div", pe, p(t(s)("program.experience.received", {
172
+ n("div", de, p(t(s)("program.experience.received", {
171
173
  count: a.currentReceive ?? 0
172
174
  })), 1)
173
175
  ]),
@@ -193,9 +195,9 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
193
195
  src: q,
194
196
  class: "aspect-square w-[150px]"
195
197
  }, null, -1)),
196
- n("div", de, [
197
- n("div", ue, p(t(s)("connect.program.experience.empty_state.title")), 1),
198
- n("div", fe, p(t(s)("connect.program.experience.empty_state.description")), 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)
199
201
  ]),
200
202
  c(F, {
201
203
  variant: "primary",
@@ -206,7 +208,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
206
208
  ]),
207
209
  _: 1
208
210
  })),
209
- c(ee, {
211
+ c(te, {
210
212
  ref_key: "sheetRef",
211
213
  ref: b,
212
214
  "onSubmit:modelValue": N
@@ -217,5 +219,5 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
217
219
  }
218
220
  });
219
221
  export {
220
- Ve as default
222
+ Pe as default
221
223
  };
@@ -0,0 +1,118 @@
1
+ import { defineComponent as V, ref as y, computed as q, onMounted as x, resolveComponent as s, openBlock as r, createBlock as m, unref as u, withCtx as d, createVNode as i, normalizeClass as p, createCommentVNode as j, createElementVNode as I, toDisplayString as h, createElementBlock as M, Fragment as O, renderList as S } from "vue";
2
+ const A = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, N = /* @__PURE__ */ V({
3
+ __name: "FilterChip",
4
+ props: {
5
+ modelValue: {
6
+ type: Array,
7
+ required: !1
8
+ },
9
+ label: {
10
+ type: String,
11
+ required: !1,
12
+ default: ""
13
+ },
14
+ showItemLabel: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ placement: {
19
+ type: String,
20
+ required: !1,
21
+ default: "bottom-end"
22
+ },
23
+ class: {
24
+ type: String,
25
+ required: !1
26
+ },
27
+ disabled: {
28
+ type: Boolean,
29
+ required: !1
30
+ },
31
+ items: {
32
+ type: Array,
33
+ required: !0
34
+ },
35
+ icon: {
36
+ type: String,
37
+ required: !1
38
+ }
39
+ },
40
+ emits: ["update:model-value"],
41
+ setup(o, { emit: g }) {
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
+ }
49
+ });
50
+ function _(l) {
51
+ e.value[l] ? delete e.value[l] : e.value[l] = !0, v("update:model-value", Object.keys(e.value));
52
+ }
53
+ function C() {
54
+ Object.keys(e.value).length > 0 ? e.value = {} : e.value = t.items.reduce((l, n) => (l[n.value] = !0, l), {}), v("update:model-value", Object.keys(e.value));
55
+ }
56
+ return x(() => {
57
+ e.value = t.modelValue.reduce(
58
+ (l, n) => (l[n] = !0, l),
59
+ {}
60
+ ), t.modelValue.length == 0;
61
+ }), (l, n) => {
62
+ const b = s("FmIcon"), F = s("FmChip"), f = s("FmMenuItem"), w = s("FmMenu");
63
+ return r(), m(w, {
64
+ placement: o.placement || "bottom-end",
65
+ disabled: o.disabled == !0,
66
+ "model-value": u(c),
67
+ onMenuChanged: n[0] || (n[0] = (a) => c.value = a),
68
+ "close-on-click": !1
69
+ }, {
70
+ "menu-button": d(() => [
71
+ i(F, {
72
+ label: o.label,
73
+ class: p(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
74
+ }, {
75
+ default: d(() => [
76
+ t.icon ? (r(), m(b, {
77
+ key: 0,
78
+ name: t.icon,
79
+ class: p(t.class),
80
+ outline: "",
81
+ size: "sm"
82
+ }, null, 8, ["name", "class"])) : j("", !0),
83
+ I("div", A, h(t.label) + " " + h(o.showItemLabel ? u(k) : ""), 1),
84
+ i(b, {
85
+ name: u(c) ? "keyboard_arrow_up" : "keyboard_arrow_down",
86
+ class: p(t.class),
87
+ outline: "",
88
+ size: "sm"
89
+ }, null, 8, ["name", "class"])
90
+ ]),
91
+ _: 1
92
+ }, 8, ["label", "class"])
93
+ ]),
94
+ default: d(() => [
95
+ i(f, {
96
+ "model-value": Object.keys(u(e)).length === t.items.length,
97
+ label: "All",
98
+ "has-checkbox": !0,
99
+ indeterminate: !0,
100
+ onClick: C
101
+ }, null, 8, ["model-value"]),
102
+ (r(!0), M(O, null, S(t.items ?? [], (a) => (r(), m(f, {
103
+ key: a.value,
104
+ value: a.value,
105
+ label: a.label,
106
+ "has-checkbox": !0,
107
+ "model-value": u(e)[a.value],
108
+ "onUpdate:modelValue": (B) => _(a.value)
109
+ }, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
110
+ ]),
111
+ _: 1
112
+ }, 8, ["placement", "disabled", "model-value"]);
113
+ };
114
+ }
115
+ });
116
+ export {
117
+ N as _
118
+ };