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

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 (118) hide show
  1. package/dist/Analytic-CXegtSEd.js +427 -0
  2. package/dist/{App-C2616cfr.js → App-m9A9s3wd.js} +445 -420
  3. package/dist/AuditLogs-CpUOkyXq.js +1886 -0
  4. package/dist/Bin-m6mPl3FE.js +166 -0
  5. package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DNjHnlPp.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-cjdNZLkE.js} +6 -8
  7. package/dist/Card-CAvS5aaN.js +896 -0
  8. package/dist/Collections-3C9I2byH.js +459 -0
  9. package/dist/{Credit-CPcLgnsq.js → Credit-DcAmLeMb.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-wGFMCV-y.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CIEn1N24.js} +6 -6
  14. package/dist/{Experience-BoBikt-x.js → Experience-GF9yOrlE.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-CzBn_Li3.js} +39 -37
  17. package/dist/Index-Bhmkdb4n.js +259 -0
  18. package/dist/Marketing-DlbcOoiN.js +20071 -0
  19. package/dist/Member-CdXG5uEN.js +317 -0
  20. package/dist/MemberList-xIOXAHJf.js +1598 -0
  21. package/dist/MemberTransactions-CsW9vso0.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-jtjk9NjI.js} +83 -71
  23. package/dist/{Mission-CMpvz9zN.js → Mission-2UjKrmGe.js} +101 -87
  24. package/dist/Overview-ClittdS6.js +1078 -0
  25. package/dist/{Point-DkZn6p9s.js → Point-BON4g7zE.js} +55 -53
  26. package/dist/{Promotion-B7YzwPc_.js → Promotion-qUEZmmm8.js} +65 -57
  27. package/dist/Queue-DA4glGdE.js +244 -0
  28. package/dist/Record-EUAnp1--.js +340 -0
  29. package/dist/Reward-ChbsdQuW.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CUFw56sf.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BKesht7Y.js +1637 -0
  32. package/dist/Segment-DbwFx6vD.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-lwpYOWMR.js +181 -0
  34. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbuOPEGY.js +147 -0
  35. package/dist/Setting-FMTftvlU.js +1931 -0
  36. package/dist/Store-BkUwiBUq.js +1751 -0
  37. package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-Z8uhK0v1.js} +33 -32
  38. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DwFYJ1Iz.js +943 -0
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D6mrJp05.js} +1 -1
  40. package/dist/{Tier-CW-46oJS.js → Tier-COCmcJJF.js} +327 -318
  41. package/dist/{Title-CE9rWVdi.js → Title-7qCjbur9.js} +199 -184
  42. package/dist/{Transaction-B21RrC4M.js → Transaction-9FS_K2hv.js} +2 -2
  43. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Fx-J2gcK.js +130 -0
  44. package/dist/Voucher-Dx70JAgw.js +354 -0
  45. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CECJsKRJ.js +419 -0
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bne_nxYS.js} +1 -1
  47. package/dist/{app-CjhXHUQv.js → app-CWKpKW78.js} +1 -1
  48. package/dist/app-q6W6-faT.js +7059 -0
  49. package/dist/app.js +1 -1
  50. package/dist/{business-aHhRUXc0.js → business-D5AQBRGS.js} +1 -1
  51. package/dist/campaign-BGiM8ccX.js +1810 -0
  52. package/dist/{campaign-DH9NUNf_.js → campaign-v8MAkDo-.js} +2 -2
  53. package/dist/campaign.enum-Dro6UEcE.js +20 -0
  54. package/dist/campaign.fn-DsJUr-gE.js +758 -0
  55. package/dist/collectible.enum-BH9pX7PE.js +19 -0
  56. package/dist/{collection.fn-CYlsA-kW.js → collection.fn-CHiRShK_.js} +2 -2
  57. package/dist/dto-CeX9egUp.js +214 -0
  58. package/dist/{effect-LSc9YanX.js → effect-DtJQE1cD.js} +9 -9
  59. package/dist/email-addresses-DKOsgzML.js +705 -0
  60. package/dist/{export-Cf0-C5Ly.js → export-Daiv_zH9.js} +5 -5
  61. package/dist/{helper-CiZpeMCM.js → helper-B5Emawnj.js} +1 -1
  62. package/dist/index-9WBy0L7U.js +54 -0
  63. package/dist/{index-D6cEOHP4.js → index-BSHuLDD0.js} +1501 -1480
  64. package/dist/{index-BVb5-Ht8.js → index-CUl_8M_c.js} +259 -173
  65. package/dist/{index-gxwjKu3-.js → index-CgCcvX_L.js} +2212 -871
  66. package/dist/index-CsaQJMAR.js +66 -0
  67. package/dist/{index-D_83JP2i.js → index-DrWrGAHJ.js} +48 -4
  68. package/dist/index-DteeKoFo.js +115 -0
  69. package/dist/{index-DW3PRjPL.js → index-Dw2RtHKR.js} +1 -1
  70. package/dist/{index-kPhrD63q.js → index-ICbXrXiP.js} +1 -1
  71. package/dist/index-Xwc07I54.js +29000 -0
  72. package/dist/{index-DtsDOuDx.js → index-ZBSI6ViG.js} +24 -21
  73. package/dist/index-g9NNHS8s.js +32 -0
  74. package/dist/index-p6F08hhh.js +44 -0
  75. package/dist/index-vh86FiIQ.js +10 -0
  76. package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-B-SDA6Y2.js} +121 -121
  77. package/dist/loading-CDbkBsRr.js +71 -0
  78. package/dist/{membership-Dw1ylJ9Y.js → membership-B8uwuntJ.js} +54 -46
  79. package/dist/money-DRKB3Rpe.js +15 -0
  80. package/dist/number-DtyC1DJU.js +12 -0
  81. package/dist/objectid-wGrq9P1h.js +145 -0
  82. package/dist/{loading-7yq1tinq.js → plugins-DKNh-lBz.js} +3871 -3943
  83. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  84. package/dist/reward-C2jv5dmJ.js +36 -0
  85. package/dist/{rule-C0Q_SHow.js → rule-C5AMTchR.js} +180 -177
  86. package/dist/{rule-builder-iu17XIof.js → rule-builder-DLOGHT1l.js} +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/{template-CyOanTMu.js → template-C-fz1DXI.js} +5 -5
  89. package/dist/trigger-DTErX60D.js +144 -0
  90. package/dist/user-CVRoQGCF.js +54 -0
  91. package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-CxMxiW_u.js} +366 -366
  92. package/dist/{xlsx-BYO_bB9J.js → xlsx-CARvMJN_.js} +1 -1
  93. package/package.json +10 -6
  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-Dvf_JNMf.js +0 -5764
  109. package/dist/dto-DArfyZAI.js +0 -2770
  110. package/dist/index-Bi_LGEtY.js +0 -99
  111. package/dist/index-CiQDG7Cm.js +0 -762
  112. package/dist/index-CuvNtC_M.js +0 -61
  113. package/dist/index-DQfjSSMF.js +0 -206
  114. package/dist/index-DcxssxPi.js +0 -29193
  115. package/dist/index-DqJVH2kv.js +0 -298
  116. package/dist/money-CPd0XTNv.js +0 -15
  117. package/dist/number-BgXY4un8.js +0 -12
  118. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,11 +1,11 @@
1
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";
2
+ import { z as te } from "./app-q6W6-faT.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-BSHuLDD0.js";
5
+ import { u as Z } from "./vue-i18n-CxMxiW_u.js";
6
+ import { s as O } from "./effect-DtJQE1cD.js";
7
+ import { p as ae } from "./plugins-DKNh-lBz.js";
8
+ import { I as ne } from "./app-CWKpKW78.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"
@@ -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-DKNh-lBz.js";
5
+ import { u as Q } from "./loading-CDbkBsRr.js";
6
+ import { u as W } from "./business-D5AQBRGS.js";
7
+ import { u as X } from "./campaign-v8MAkDo-.js";
8
+ import { a as L, b as V, g as Y } from "./campaign-BGiM8ccX.js";
9
+ import { u as Z } from "./vue-i18n-CxMxiW_u.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-wGFMCV-y.js";
12
+ import { u as oe } from "./template-C-fz1DXI.js";
13
+ import { c as g } from "./index-DteeKoFo.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-DKNh-lBz.js";
5
+ import { u as X } from "./loading-CDbkBsRr.js";
6
+ import { u as Y } from "./business-D5AQBRGS.js";
7
+ import { u as Z } from "./campaign-v8MAkDo-.js";
8
+ import { a as B, b as $, g as ee } from "./campaign-BGiM8ccX.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-wGFMCV-y.js";
11
+ import { u as ae } from "./template-C-fz1DXI.js";
12
+ import { u as ne } from "./vue-i18n-CxMxiW_u.js";
13
+ import { c as w } from "./index-DteeKoFo.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
  };