@feedmepos/mf-connect 0.1.0-beta.6 → 0.1.0-beta.61

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 (119) hide show
  1. package/dist/Analytic-u9mtlxSv.js +427 -0
  2. package/dist/{App-C2616cfr.js → App-BwTQE7Ft.js} +445 -420
  3. package/dist/AuditLogs-BVMRclSw.js +1886 -0
  4. package/dist/Bin-Cca-XOkz.js +166 -0
  5. package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DRQgpwdP.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CeUu_T1u.js} +6 -8
  7. package/dist/Card-CnbB_u31.js +896 -0
  8. package/dist/Collections-BjlfOSC3.js +459 -0
  9. package/dist/{Credit-CPcLgnsq.js → Credit-BoElrcx9.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-B3WVwem6.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CGfpziKs.js} +18 -18
  14. package/dist/{Experience-BoBikt-x.js → Experience-SdGBf4vU.js} +32 -30
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  16. package/dist/{Game-DR8PyYZa.js → Game-ChLHibpB.js} +39 -37
  17. package/dist/Index-D7Kq6uyf.js +259 -0
  18. package/dist/Marketing-BDajIqR_.js +20071 -0
  19. package/dist/Member-BPZryqWL.js +317 -0
  20. package/dist/MemberList-C52Dop8Z.js +1598 -0
  21. package/dist/MemberTransactions-DHU78kgS.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-js1F2E4N.js} +83 -71
  23. package/dist/{Mission-CMpvz9zN.js → Mission-BQR3qjAu.js} +101 -87
  24. package/dist/Overview-BbLYWXjG.js +1078 -0
  25. package/dist/{Point-DkZn6p9s.js → Point-DbTcWJbQ.js} +55 -53
  26. package/dist/{Promotion-B7YzwPc_.js → Promotion-CIrpWBQD.js} +65 -57
  27. package/dist/Queue-B0Mfq2Vn.js +244 -0
  28. package/dist/Record-Z6ZrJeLc.js +340 -0
  29. package/dist/Reward-D6k0QFQA.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-GJ6j_jOh.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-gQxmX9ur.js +1637 -0
  32. package/dist/Segment-D6MF-EO8.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BWG-pz6F.js +181 -0
  34. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-HgorlHNz.js +147 -0
  35. package/dist/Setting--OFDS95z.js +1931 -0
  36. package/dist/Store-BqlRTC-c.js +1751 -0
  37. package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-BTu0IdDN.js} +33 -32
  38. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BX053DJA.js +943 -0
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BAkuqLwy.js} +1 -1
  40. package/dist/{Tier-CW-46oJS.js → Tier-CE9LYAEX.js} +327 -318
  41. package/dist/{Title-CE9rWVdi.js → Title-DOOASUMI.js} +199 -184
  42. package/dist/{Transaction-B21RrC4M.js → Transaction-DPxUOBP-.js} +2 -2
  43. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CKwf0F_i.js +130 -0
  44. package/dist/Voucher-D69DD02z.js +354 -0
  45. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CFL0Nsez.js +419 -0
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Byh6_EJM.js} +1 -1
  47. package/dist/app-C2u1t47T.js +7059 -0
  48. package/dist/app-DgfmbHZe.js +33357 -0
  49. package/dist/app.js +1 -1
  50. package/dist/{business-aHhRUXc0.js → business-BqCJB_vA.js} +1 -1
  51. package/dist/{campaign-DH9NUNf_.js → campaign-CWMPCmmU.js} +2 -2
  52. package/dist/campaign-D0dTbl5b.js +1810 -0
  53. package/dist/campaign.enum-DhE8N4pA.js +20 -0
  54. package/dist/campaign.fn-BpO-RQih.js +758 -0
  55. package/dist/collectible.enum-rWEc6Tsw.js +19 -0
  56. package/dist/{collection.fn-CYlsA-kW.js → collection.fn-biX2iFDQ.js} +2 -2
  57. package/dist/dto-3m7xZwfI.js +214 -0
  58. package/dist/{effect-LSc9YanX.js → effect-ZMGRxKCZ.js} +9 -9
  59. package/dist/email-addresses-lgY03bkq.js +705 -0
  60. package/dist/{export-Cf0-C5Ly.js → export-BOzeYUy8.js} +5 -5
  61. package/dist/{helper-CiZpeMCM.js → helper-CO29wun4.js} +1 -1
  62. package/dist/index-B3V7krW_.js +29000 -0
  63. package/dist/index-BVbiAxW8.js +115 -0
  64. package/dist/{index-D_83JP2i.js → index-Bvch9tuP.js} +48 -4
  65. package/dist/index-CYOwwy3h.js +44 -0
  66. package/dist/{index-D6cEOHP4.js → index-CbYXYVYp.js} +1501 -1480
  67. package/dist/{index-DtsDOuDx.js → index-ChrOXJDq.js} +24 -21
  68. package/dist/index-CsaQJMAR.js +66 -0
  69. package/dist/index-DNGenFnf.js +32 -0
  70. package/dist/{index-BVb5-Ht8.js → index-Dd22X409.js} +259 -173
  71. package/dist/{index-kPhrD63q.js → index-LYAWIqjk.js} +1 -1
  72. package/dist/index-Xh9cW6Y9.js +54 -0
  73. package/dist/{index-gxwjKu3-.js → index-XhqaicYu.js} +2212 -871
  74. package/dist/{index-DW3PRjPL.js → index-YsC4VklJ.js} +1 -1
  75. package/dist/index-vh86FiIQ.js +10 -0
  76. package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-CJ1flA6S.js} +121 -121
  77. package/dist/loading-CUs_CN1k.js +71 -0
  78. package/dist/{membership-Dw1ylJ9Y.js → membership-D-GVacos.js} +54 -46
  79. package/dist/money-CMtSALkX.js +15 -0
  80. package/dist/number-CDwwgAYM.js +12 -0
  81. package/dist/objectid-Bf9yKD81.js +145 -0
  82. package/dist/{loading-7yq1tinq.js → plugins-9sQTEyth.js} +3871 -3943
  83. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  84. package/dist/reward-DblXGhWc.js +36 -0
  85. package/dist/{rule-C0Q_SHow.js → rule-Cy8cTzuw.js} +180 -177
  86. package/dist/{rule-builder-iu17XIof.js → rule-builder-Cn5vZgFN.js} +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/{template-CyOanTMu.js → template-Cal94dUy.js} +5 -5
  89. package/dist/trigger-C1nwLSP8.js +144 -0
  90. package/dist/user-ir4Rn5bP.js +54 -0
  91. package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-eOHBBaH5.js} +243 -243
  92. package/dist/{xlsx-BYO_bB9J.js → xlsx-DulnT75_.js} +1 -1
  93. package/package.json +11 -7
  94. package/dist/Analytic-muDf0oMG.js +0 -622
  95. package/dist/Card-bhLoK0ZV.js +0 -825
  96. package/dist/Collections-DjtsAiol.js +0 -453
  97. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js +0 -2813
  98. package/dist/Marketing-Dny2nMUl.js +0 -316
  99. package/dist/Member-CP_smyk8.js +0 -69
  100. package/dist/MemberList-CR3eYI9p.js +0 -1733
  101. package/dist/MemberTransactions-RTx_lKFb.js +0 -38
  102. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cs67_GLE.js +0 -1753
  103. package/dist/Segment-Bb4gHt5V.js +0 -437
  104. package/dist/Setting-Xj0AVzh3.js +0 -1901
  105. package/dist/Store-BWRHQ6Ie.js +0 -1511
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BsFnT8BS.js +0 -890
  107. package/dist/Voucher-KK9fBI0u.js +0 -490
  108. package/dist/app-CjhXHUQv.js +0 -53428
  109. package/dist/app-Dvf_JNMf.js +0 -5764
  110. package/dist/dto-DArfyZAI.js +0 -2770
  111. package/dist/index-Bi_LGEtY.js +0 -99
  112. package/dist/index-CiQDG7Cm.js +0 -762
  113. package/dist/index-CuvNtC_M.js +0 -61
  114. package/dist/index-DQfjSSMF.js +0 -206
  115. package/dist/index-DcxssxPi.js +0 -29193
  116. package/dist/index-DqJVH2kv.js +0 -298
  117. package/dist/money-CPd0XTNv.js +0 -15
  118. package/dist/number-BgXY4un8.js +0 -12
  119. 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-Dvf_JNMf.js";
1
+ import { defineComponent as P, ref as O, 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-C2u1t47T.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-D6cEOHP4.js";
5
- import { u as Z } from "./vue-i18n-B0fLJH7a.js";
6
- import { s as O } from "./effect-LSc9YanX.js";
7
- import { p as ae } from "./loading-7yq1tinq.js";
8
- import { I as ne } from "./app-CjhXHUQv.js";
4
+ import { f as le, g as oe } from "./index-CbYXYVYp.js";
5
+ import { u as Z } from "./vue-i18n-eOHBBaH5.js";
6
+ import { s as R } from "./effect-ZMGRxKCZ.js";
7
+ import { p as ae } from "./plugins-9sQTEyth.js";
8
+ import { O as ne } from "./app-DgfmbHZe.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,13 +44,13 @@ const ie = { class: "flex flex-col gap-8" }, se = {
44
44
  const { t: d } = Z(), l = t, g = w, 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 = O(!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(
53
+ const n = O(
54
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
55
  ), S = H(
56
56
  () => l.forCredit ? le : oe
@@ -75,8 +75,8 @@ const ie = { class: "flex flex-col gap-8" }, se = {
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 k = 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
82
  t.label ? (s(), x("div", se, A(t.label), 1)) : v("", !0)
@@ -93,7 +93,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
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"])
@@ -170,7 +170,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
170
170
  },
171
171
  emits: ["update:model-value"],
172
172
  setup(t, { emit: w }) {
173
- const { t: d } = Z(), l = t, g = w, o = R(l.modelValue ?? {});
173
+ const { t: d } = Z(), l = t, g = w, o = O(l.modelValue ?? {});
174
174
  return X(o, () => g("update:model-value", o.value)), (a, n) => {
175
175
  const S = y("FmSwitch"), m = y("FmStepperField");
176
176
  return s(), x("div", ue, [
@@ -277,7 +277,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
277
277
  },
278
278
  emits: ["update:model-value"],
279
279
  setup(t, { emit: w }) {
280
- const d = w, l = R(!1);
280
+ const d = w, l = O(!1);
281
281
  async function g(o) {
282
282
  o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && d("update:model-value", null);
283
283
  }
@@ -299,8 +299,8 @@ const ie = { class: "flex flex-col gap-8" }, se = {
299
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)),
300
300
  t.modelValue ? (s(), x("div", ce, [
301
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)
302
+ h("div", null, A((m = e(R)(t.modelValue)) == null ? void 0 : m.type), 1),
303
+ h("div", ve, A((i = e(R)(t.modelValue)) == null ? void 0 : i.adjustment) + " with " + A((U = e(R)(t.modelValue)) == null ? void 0 : U.requirements), 1)
304
304
  ]),
305
305
  b(n, {
306
306
  icon: "delete",
@@ -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-7yq1tinq.js";
5
- import { u as W } from "./business-aHhRUXc0.js";
6
- import { u as X } from "./campaign-DH9NUNf_.js";
7
- import { g as L, b as V } from "./dto-DArfyZAI.js";
8
- import { u as Y } from "./vue-i18n-B0fLJH7a.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-U_QZneS6.js";
11
- import { u as te } from "./template-CyOanTMu.js";
12
- import { c as g } from "./index-Bi_LGEtY.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-9sQTEyth.js";
5
+ import { u as Q } from "./loading-CUs_CN1k.js";
6
+ import { u as W } from "./business-BqCJB_vA.js";
7
+ import { u as X } from "./campaign-CWMPCmmU.js";
8
+ import { a as L, b as V, g as Y } from "./campaign-D0dTbl5b.js";
9
+ import { u as Z } from "./vue-i18n-eOHBBaH5.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-B3WVwem6.js";
12
+ import { u as oe } from "./template-Cal94dUy.js";
13
+ import { c as g } from "./index-BVbiAxW8.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
+ };
@@ -1,26 +1,27 @@
1
1
  import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as b, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as v, resolveDynamicComponent as z, h as p } from "vue";
2
2
  import { _ as J } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as O, components as C } from "@feedmepos/ui-library";
4
- import { u as Q, a as W, p as X } from "./loading-7yq1tinq.js";
5
- import { u as Y } from "./business-aHhRUXc0.js";
6
- import { u as Z } from "./campaign-DH9NUNf_.js";
7
- import { g as B, b as $ } from "./dto-DArfyZAI.js";
8
- import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js";
10
- import { u as oe } from "./template-CyOanTMu.js";
11
- import { u as ae } from "./vue-i18n-B0fLJH7a.js";
12
- import { c as w } from "./index-Bi_LGEtY.js";
13
- const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = /* @__PURE__ */ D({
4
+ import { a as Q, p as W } from "./plugins-9sQTEyth.js";
5
+ import { u as X } from "./loading-CUs_CN1k.js";
6
+ import { u as Y } from "./business-BqCJB_vA.js";
7
+ import { u as Z } from "./campaign-CWMPCmmU.js";
8
+ import { a as B, b as $, g as ee } from "./campaign-D0dTbl5b.js";
9
+ import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
+ import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B3WVwem6.js";
11
+ import { u as ae } from "./template-Cal94dUy.js";
12
+ import { u as ne } from "./vue-i18n-eOHBBaH5.js";
13
+ import { c as w } from "./index-BVbiAxW8.js";
14
+ const se = { class: "flex items-center" }, ie = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, re = { class: "px-24 flex flex-col gap-y-16" }, le = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, de = { class: "flex w-full gap-4 items-center" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "space-y-4" }, fe = { class: "fm-typo-en-body-lg-600" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "flex flex-col gap-16 text-center" }, he = { class: "fm-typo-en-title-sm-800" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ D({
14
15
  __name: "Game",
15
- setup(we) {
16
- const { t: c } = ae(), E = {
16
+ setup(xe) {
17
+ const { t: c } = ne(), E = {
17
18
  label: c("connect.program.common.actions.create", {
18
19
  type: c("connect.program.game.title").toLowerCase()
19
20
  }),
20
21
  value: "create",
21
22
  isPrimary: !0,
22
23
  prependIcon: "add"
23
- }, K = oe("GAME", O()), f = Y(), m = Z(), { global: M, minor: k } = Q, s = A({
24
+ }, K = ae("GAME", O()), f = Y(), m = Z(), { global: M, minor: F } = X, s = A({
24
25
  searchKey: "",
25
26
  location: null
26
27
  }), g = H(
@@ -40,7 +41,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
40
41
  {
41
42
  content: e.row.original._id,
42
43
  onClick: (t) => {
43
- t.stopPropagation(), W(e.row.original._id);
44
+ t.stopPropagation(), Q(e.row.original._id);
44
45
  }
45
46
  },
46
47
  [
@@ -58,6 +59,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
58
59
  },
59
60
  {
60
61
  header: "Status",
62
+ accessorFn: (e) => ee(e),
61
63
  cell(e) {
62
64
  return B(e.row.original);
63
65
  }
@@ -87,9 +89,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
87
89
  });
88
90
  }
89
91
  }
90
- ], F = A();
92
+ ], k = A();
91
93
  async function S(e) {
92
- await X.remove(`Are you sure you want to remove ${e.name}?`) && await k(
94
+ await W.remove(`Are you sure you want to remove ${e.name}?`) && await F(
93
95
  async () => {
94
96
  await w.delete(e._id), await m.read("GAME");
95
97
  },
@@ -105,7 +107,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
105
107
  });
106
108
  async function t(u) {
107
109
  var _;
108
- (_ = F.value) == null || _.showSheet(
110
+ (_ = k.value) == null || _.showSheet(
109
111
  !0,
110
112
  "GAME",
111
113
  e ? await w.readById(e._id) : void 0,
@@ -114,7 +116,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
114
116
  }
115
117
  }
116
118
  async function G(e) {
117
- await k(
119
+ await F(
118
120
  async () => {
119
121
  e.campaign._id ? await w.update(e.campaign._id, e) : await w.create(e), await m.read("GAME");
120
122
  },
@@ -136,14 +138,14 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
136
138
  "onClick:action": t[0] || (t[0] = () => y())
137
139
  }, {
138
140
  title: h(() => [
139
- n("div", ne, [
140
- n("span", se, l(o(c)("connect.program.game.title")), 1),
141
+ n("div", se, [
142
+ n("span", ie, l(o(c)("connect.program.game.title")), 1),
141
143
  i(u, { variant: "premium" })
142
144
  ])
143
145
  ]),
144
146
  _: 1
145
147
  }, 8, ["actions"]),
146
- n("div", ie, [
148
+ n("div", re, [
147
149
  i(L, {
148
150
  modelValue: o(s).searchKey,
149
151
  "onUpdate:modelValue": t[1] || (t[1] = (a) => o(s).searchKey = a),
@@ -152,9 +154,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
152
154
  collapsible: ""
153
155
  }, null, 8, ["modelValue"]),
154
156
  o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(b, { key: 0 }, [
155
- n("div", re, [
156
- n("div", le, [
157
- i(ee, {
157
+ n("div", le, [
158
+ n("div", ce, [
159
+ i(te, {
158
160
  modelValue: o(s).location,
159
161
  "onUpdate:modelValue": t[2] || (t[2] = (a) => o(s).location = a),
160
162
  label: "Location: ",
@@ -191,16 +193,16 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
191
193
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
192
194
  }, {
193
195
  default: h(() => [
194
- n("div", ce, [
195
- n("div", me, [
196
+ n("div", me, [
197
+ n("div", de, [
196
198
  (d(), v(z(o(B)(a)))),
197
- n("div", de, l(a.currentReceive ?? 0) + " used ", 1)
199
+ n("div", pe, l(a.currentReceive ?? 0) + " used ", 1)
198
200
  ]),
199
- n("div", pe, [
200
- n("div", ue, l(a.name), 1),
201
- n("div", fe, l(o($)(a)), 1)
201
+ n("div", ue, [
202
+ n("div", fe, l(a.name), 1),
203
+ n("div", ge, l(o($)(a)), 1)
202
204
  ]),
203
- n("div", ge, l(o(c)("program.game.token_received", {
205
+ n("div", ye, l(o(c)("program.game.token_received", {
204
206
  count: a.currentReceive ?? 0
205
207
  })), 1)
206
208
  ]),
@@ -226,9 +228,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
226
228
  src: J,
227
229
  class: "aspect-square w-[150px]"
228
230
  }, null, -1)),
229
- n("div", ye, [
230
- n("div", _e, l(o(c)("connect.program.game.empty_state.title")), 1),
231
- n("div", he, l(o(c)("connect.program.game.empty_state.description")), 1)
231
+ n("div", _e, [
232
+ n("div", he, l(o(c)("connect.program.game.empty_state.title")), 1),
233
+ n("div", we, l(o(c)("connect.program.game.empty_state.description")), 1)
232
234
  ]),
233
235
  i(P, {
234
236
  variant: "primary",
@@ -240,9 +242,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
240
242
  ]),
241
243
  _: 1
242
244
  })),
243
- i(te, {
245
+ i(oe, {
244
246
  ref_key: "sheetRef",
245
- ref: F,
247
+ ref: k,
246
248
  "onSubmit:modelValue": G
247
249
  }, null, 512)
248
250
  ])
@@ -251,5 +253,5 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
251
253
  }
252
254
  });
253
255
  export {
254
- $e as default
256
+ Ke as default
255
257
  };