@feedmepos/mf-connect 0.1.0-beta.8 → 0.1.0-beta.81

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 (127) hide show
  1. package/dist/Analytic-C9JWdPcg.js +761 -0
  2. package/dist/{App-SRz4257n.js → App-BVEfQEjU.js} +441 -420
  3. package/dist/AuditLogs-qbqxB_Oz.js +1887 -0
  4. package/dist/Bin-DPfStHeL.js +166 -0
  5. package/dist/{Broadcast-DmkrJGp2.js → Broadcast-CrQZDeiZ.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CZXSxA9u.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fpcw9NWs.js} +14 -10
  7. package/dist/Card-d7rnO53X.js +905 -0
  8. package/dist/Collections-5rEy2lvX.js +464 -0
  9. package/dist/{Credit-CcNrq9qk.js → Credit-CHyEsV7R.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-CLqubY_R.js +2182 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BIZDiLns.js → EffectSheet.vue_vue_type_style_index_0_lang-DEmIYpS6.js} +49 -49
  14. package/dist/{Experience-DNsQLzDH.js → Experience-DhDLyUFN.js} +32 -30
  15. package/dist/FileSaver.min-NlMItPOc.js +74 -0
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  17. package/dist/Game-CoOZBnN-.js +278 -0
  18. package/dist/Index-BxzvptzX.js +259 -0
  19. package/dist/Marketing-CwxJ5Upf.js +20071 -0
  20. package/dist/Member-D1SRjLZd.js +287 -0
  21. package/dist/MemberList-C-8mcfuk.js +1606 -0
  22. package/dist/MemberTransactions-C7uwJdn8.js +45 -0
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-GCEQCVOt.js → MessageInput.vue_vue_type_script_setup_true_lang-ChQ3zuj7.js} +152 -137
  24. package/dist/Mission-CtF_zohU.js +296 -0
  25. package/dist/Overview-g9HqRUmv.js +1079 -0
  26. package/dist/{Point-Ck8EG_3k.js → Point-BrifiJTO.js} +55 -53
  27. package/dist/Promotion-D-VpO9Y1.js +289 -0
  28. package/dist/Queue-V6tLLO52.js +260 -0
  29. package/dist/Record-C_eSy9Pl.js +341 -0
  30. package/dist/Reward-BcS5W2o6.js +442 -0
  31. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-B_g46hrr.js +150 -0
  32. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CFvxrx8L.js +1728 -0
  33. package/dist/Segment-B7JtvneQ.js +880 -0
  34. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BX-E0sDn.js +181 -0
  35. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPByAnL2.js +188 -0
  36. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DE7ROhd5.js +147 -0
  37. package/dist/Setting-1KOQwRHn.js +1932 -0
  38. package/dist/Store-Dj84K8ZK.js +1842 -0
  39. package/dist/StoreRewards-7rXn3J0B.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-D7zdyg9d.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrzmjYmU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D6T7vFXj.js} +1 -1
  42. package/dist/{Tier-CJ9-d8Zg.js → Tier-CwS_A8F5.js} +350 -334
  43. package/dist/{Title-DZCpvg4q.js → Title-YAj_vykl.js} +245 -222
  44. package/dist/{Transaction-DpnTxlbf.js → Transaction-CvbHHpIT.js} +2 -2
  45. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CYXM679D.js +130 -0
  46. package/dist/Voucher-C0V9koK8.js +354 -0
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DwfF_8uQ.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-SukfoJpU.js → ZodTextField.vue_vue_type_script_setup_true_lang-D3mmtmvI.js} +1 -1
  49. package/dist/{app-DzAexOqx.js → app-D5BiHqr1.js} +2712 -1266
  50. package/dist/app-TANcLG-R.js +33357 -0
  51. package/dist/app.js +1 -1
  52. package/dist/business-DxNWLRXa.js +79 -0
  53. package/dist/{campaign-winsqufa.js → campaign-DhEbMRyc.js} +2 -2
  54. package/dist/campaign-DqFW5qoE.js +1810 -0
  55. package/dist/campaign.enum-DGpeHkL2.js +20 -0
  56. package/dist/campaign.fn-BqP9eKCL.js +758 -0
  57. package/dist/collectible.enum-CSFqER3H.js +19 -0
  58. package/dist/{collection.fn-CI5Llblg.js → collection.fn-CA112Q3U.js} +2 -2
  59. package/dist/dto-UeacqOxr.js +214 -0
  60. package/dist/{effect-CdkrIYgX.js → effect-CEB8v8KY.js} +33 -16
  61. package/dist/email-addresses-DLDeL77c.js +705 -0
  62. package/dist/{export-DGxfief1.js → export-B_8_zEGl.js} +5 -5
  63. package/dist/{helper-B8RqcTNu.js → helper-BN4JZQLv.js} +1 -1
  64. package/dist/index-B-O8sm9u.js +54 -0
  65. package/dist/index-B-WW-LtM.js +56 -0
  66. package/dist/index-BOQonmqm.js +32 -0
  67. package/dist/{index-9w43_U1v.js → index-CboHpXNN.js} +1506 -1480
  68. package/dist/{index-A34xEz20.js → index-CjJOf_Ko.js} +2246 -871
  69. package/dist/index-CsU66Lo8.js +115 -0
  70. package/dist/index-CsaQJMAR.js +66 -0
  71. package/dist/index-Csb4GQq-.js +29556 -0
  72. package/dist/{index-wzdbEEcZ.js → index-Cv54KpqR.js} +1 -1
  73. package/dist/{index-Cw_aXFH6.js → index-D-9zLobO.js} +269 -173
  74. package/dist/{index-HZC9LLAX.js → index-DLEuoM6n.js} +48 -4
  75. package/dist/{index-CZgQVRsm.js → index-DX1pCi2M.js} +1 -1
  76. package/dist/{index-OzicErwL.js → index-Dtvx0B0f.js} +24 -21
  77. package/dist/index-vh86FiIQ.js +10 -0
  78. package/dist/{loading-DuEFUCwF.js → index-wwxalEHE.js} +4609 -4886
  79. package/dist/{index.esm2017-CppSMh_U.js → index.esm2017-B8lg2TL9.js} +206 -206
  80. package/dist/loading-C7yV_Gjh.js +71 -0
  81. package/dist/{membership-nsMtWeTC.js → membership-DVqBNqdx.js} +80 -66
  82. package/dist/money-DlG5z_tl.js +15 -0
  83. package/dist/number-CEbwCzov.js +12 -0
  84. package/dist/objectid-Du3yg6Vv.js +145 -0
  85. package/dist/plugins-D_RKZlC6.js +208 -0
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/reward-Bv14VitO.js +36 -0
  88. package/dist/{rule-CPIMqt1h.js → rule-BR5ZUIKH.js} +185 -178
  89. package/dist/{rule-builder-CSs5XRKP.js → rule-builder-CITle0qo.js} +1 -1
  90. package/dist/style.css +1 -1
  91. package/dist/{template-CJZoYavu.js → template-ybPO7TWN.js} +5 -5
  92. package/dist/trigger-5C6n0ORq.js +144 -0
  93. package/dist/user-CP3tloTS.js +54 -0
  94. package/dist/vue-i18n-DGew8_SZ.js +2365 -0
  95. package/dist/{xlsx-BZlnYinX.js → xlsx-CsBnmxHp.js} +1 -1
  96. package/package.json +11 -7
  97. package/dist/Analytic-5QztrYSp.js +0 -622
  98. package/dist/Card-BsjFTVsH.js +0 -825
  99. package/dist/Collections-7wqZHOax.js +0 -453
  100. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cuklmxur.js +0 -2813
  101. package/dist/Game-DlzDerT7.js +0 -255
  102. package/dist/Marketing-BqhpaG4o.js +0 -316
  103. package/dist/Member-AFgZcdtz.js +0 -69
  104. package/dist/MemberList-BKgrLz2C.js +0 -1733
  105. package/dist/MemberTransactions-BwT3zE2a.js +0 -38
  106. package/dist/Mission-BTAia7AS.js +0 -261
  107. package/dist/Promotion-0v3kvsK3.js +0 -247
  108. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BkFm7tXq.js +0 -1753
  109. package/dist/Segment-BenLupqV.js +0 -437
  110. package/dist/Setting-0fpREqpJ.js +0 -1901
  111. package/dist/Store-BDGwe4ar.js +0 -1511
  112. package/dist/StoreRewards-TDZt9H1V.js +0 -401
  113. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BqpsMcl1.js +0 -890
  114. package/dist/Voucher-DsP_rh8I.js +0 -490
  115. package/dist/app-Cg2pTZJK.js +0 -53428
  116. package/dist/business-Cw_qGw8y.js +0 -78
  117. package/dist/dto-ozu1smC3.js +0 -2770
  118. package/dist/index-BLACZ3-L.js +0 -206
  119. package/dist/index-BaozRfWB.js +0 -762
  120. package/dist/index-CjVmULNd.js +0 -99
  121. package/dist/index-CuvNtC_M.js +0 -61
  122. package/dist/index-DAEmawcj.js +0 -298
  123. package/dist/index-Oxr-mU6h.js +0 -29193
  124. package/dist/money-BGZPFtUc.js +0 -15
  125. package/dist/number-4J0xvXP9.js +0 -12
  126. package/dist/user-Bm4KttFq.js +0 -37
  127. package/dist/vue-i18n-CCyiVzOE.js +0 -2365
@@ -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-DzAexOqx.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-D5BiHqr1.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-9w43_U1v.js";
5
- import { u as Z } from "./vue-i18n-CCyiVzOE.js";
6
- import { s as O } from "./effect-CdkrIYgX.js";
7
- import { p as ae } from "./loading-DuEFUCwF.js";
8
- import { I as ne } from "./app-Cg2pTZJK.js";
4
+ import { f as le, g as oe } from "./index-CboHpXNN.js";
5
+ import { u as Z } from "./vue-i18n-DGew8_SZ.js";
6
+ import { s as R } from "./effect-CEB8v8KY.js";
7
+ import { p as ae } from "./plugins-D_RKZlC6.js";
8
+ import { O as ne } from "./app-TANcLG-R.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-DuEFUCwF.js";
5
- import { u as W } from "./business-Cw_qGw8y.js";
6
- import { u as X } from "./campaign-winsqufa.js";
7
- import { g as L, b as V } from "./dto-ozu1smC3.js";
8
- import { u as Y } from "./vue-i18n-CCyiVzOE.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-Cuklmxur.js";
11
- import { u as te } from "./template-CJZoYavu.js";
12
- import { c as g } from "./index-CjVmULNd.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-D_RKZlC6.js";
5
+ import { u as Q } from "./loading-C7yV_Gjh.js";
6
+ import { u as W } from "./business-DxNWLRXa.js";
7
+ import { u as X } from "./campaign-DhEbMRyc.js";
8
+ import { a as L, b as V, g as Y } from "./campaign-DqFW5qoE.js";
9
+ import { u as Z } from "./vue-i18n-DGew8_SZ.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-CLqubY_R.js";
12
+ import { u as oe } from "./template-ybPO7TWN.js";
13
+ import { c as g } from "./index-CsU66Lo8.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,74 @@
1
+ import { c as s } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ var E = { exports: {} };
3
+ (function(h, j) {
4
+ (function(p, i) {
5
+ i();
6
+ })(s, function() {
7
+ function p(e, t) {
8
+ return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
9
+ }
10
+ function i(e, t, r) {
11
+ var n = new XMLHttpRequest();
12
+ n.open("GET", e), n.responseType = "blob", n.onload = function() {
13
+ u(n.response, t, r);
14
+ }, n.onerror = function() {
15
+ console.error("could not download file");
16
+ }, n.send();
17
+ }
18
+ function v(e) {
19
+ var t = new XMLHttpRequest();
20
+ t.open("HEAD", e, !1);
21
+ try {
22
+ t.send();
23
+ } catch {
24
+ }
25
+ return 200 <= t.status && 299 >= t.status;
26
+ }
27
+ function l(e) {
28
+ try {
29
+ e.dispatchEvent(new MouseEvent("click"));
30
+ } catch {
31
+ var t = document.createEvent("MouseEvents");
32
+ t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
33
+ }
34
+ }
35
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof s == "object" && s.global === s ? s : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
+ } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
37
+ var n = a.URL || a.webkitURL, o = document.createElement("a");
38
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
39
+ n.revokeObjectURL(o.href);
40
+ }, 4e4), setTimeout(function() {
41
+ l(o);
42
+ }, 0));
43
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
44
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
45
+ else if (v(e)) i(e, t, r);
46
+ else {
47
+ var n = document.createElement("a");
48
+ n.href = e, n.target = "_blank", setTimeout(function() {
49
+ l(n);
50
+ });
51
+ }
52
+ } : function(e, t, r, n) {
53
+ if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
54
+ var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
55
+ if ((m || o && b || w) && typeof FileReader < "u") {
56
+ var d = new FileReader();
57
+ d.onloadend = function() {
58
+ var c = d.result;
59
+ c = m ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = c : location = c, n = null;
60
+ }, d.readAsDataURL(e);
61
+ } else {
62
+ var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
63
+ n ? n.location = f : location.href = f, n = null, setTimeout(function() {
64
+ y.revokeObjectURL(f);
65
+ }, 4e4);
66
+ }
67
+ });
68
+ a.saveAs = u.saveAs = u, h.exports = u;
69
+ });
70
+ })(E);
71
+ var R = E.exports;
72
+ export {
73
+ R as F
74
+ };
@@ -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
+ };