@feedmepos/mf-connect 0.1.79-prod → 0.1.80-prod

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 (91) hide show
  1. package/dist/{Analytic-daOlxOrt.js → Analytic-CDqU1g9g.js} +11 -11
  2. package/dist/{App-DoufbXLp.js → App-Batc6uUr.js} +7 -7
  3. package/dist/{Bin-CFfzHhNq.js → Bin-DE3b8rGT.js} +8 -8
  4. package/dist/{Broadcast-CYwfxIl_.js → Broadcast-aCFL-IBJ.js} +18 -18
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BS-Fb5pv.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwYu9Zhy.js} +6 -6
  6. package/dist/{Card-D2VKUJZk.js → Card-mtVUcANy.js} +18 -18
  7. package/dist/{Collections-BtJYJpvq.js → Collections-C_v47d8N.js} +7 -7
  8. package/dist/{Credit-pDMs81o3.js → Credit-BpqMpgxc.js} +63 -65
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFVTCINV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuF8tYV_.js} +32 -32
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BsYFvVTh.js → EffectSheet.vue_vue_type_style_index_0_lang-B-W8N3ay.js} +7 -7
  11. package/dist/{Experience-BXnCtSRV.js → Experience-Bg2zeFR8.js} +75 -79
  12. package/dist/{Game-zCiezXmk.js → Game-CzYGAhas.js} +83 -81
  13. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BdLnuVWB.js → ImageInput.vue_vue_type_script_setup_true_lang-BcbGnJBq.js} +1 -1
  14. package/dist/{Index-CKtP_PmV.js → Index-DzLILpRq.js} +10 -10
  15. package/dist/{Marketing-BxEK_QBp.js → Marketing-C28Xc_9L.js} +6 -6
  16. package/dist/{Member-g-Nc8nRo.js → Member-ZvEbr6GW.js} +10 -10
  17. package/dist/{MemberList-DVSu_Z6b.js → MemberList-CCE34l0q.js} +25 -25
  18. package/dist/{MemberTransactions-C4m8fchV.js → MemberTransactions-Bxc3hMLK.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ML2-tGIa.js → MessageInput.vue_vue_type_script_setup_true_lang-C5BdK7g7.js} +8 -8
  20. package/dist/{Mission-Dg7u6G5Y.js → Mission-COAEKgma.js} +82 -80
  21. package/dist/{Overview-DVp3pJtE.js → Overview-BdXPvr2r.js} +19 -19
  22. package/dist/{Point-Dsp_W0A4.js → Point-BQGGBEH0.js} +79 -83
  23. package/dist/{Promotion-CiI-6R3Q.js → Promotion-DN8q-y8J.js} +32 -32
  24. package/dist/{Queue-CP3qFiwq.js → Queue-CPTrkqOW.js} +10 -10
  25. package/dist/{Record-CRiyaYme.js → Record-DFhjY0sM.js} +8 -8
  26. package/dist/{Reward-Wk4aoUe-.js → Reward-Dy5IIfea.js} +16 -16
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CGdBnD5E.js → RewardGroup.vue_vue_type_script_setup_true_lang-BeF7ihok.js} +12 -12
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CLhsljkL.js → RuleGroup.vue_vue_type_script_setup_true_lang-O0RlU3Mu.js} +15 -15
  29. package/dist/{Segment-CKpIuEKF.js → Segment-CMphXW4r.js} +23 -23
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Uk7QNHdX.js → SelectItems.vue_vue_type_script_setup_true_lang-Yz8jJBYP.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DeCFVR31.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DR_64X0q.js} +12 -12
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cdvv1-NH.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CGmx4lcN.js} +3 -3
  33. package/dist/{Setting-BbOLfQUW.js → Setting-BLP9IphZ.js} +14 -14
  34. package/dist/{SettingAdvertisements-p0-byeyl.js → SettingAdvertisements-CA0SQYm9.js} +12 -12
  35. package/dist/{Store-BHC0hueG.js → Store-Dlpz8SoJ.js} +21 -21
  36. package/dist/{StoreRewards-Dy2CEsDt.js → StoreRewards-C4u0-lGn.js} +15 -15
  37. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CEZHJ95s.js → StoreTransactions.vue_vue_type_script_setup_true_lang-VbGbTj44.js} +19 -19
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B1l5DAlf.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DVGam9sh.js} +1 -1
  39. package/dist/{Tier-B6JFbq_k.js → Tier-DrsbrmLW.js} +21 -21
  40. package/dist/{Title-xhdYZz5R.js → Title-CBlJHz1o.js} +20 -20
  41. package/dist/{Transaction-Dd9DuzRR.js → Transaction-5aKWN3ly.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CiazcKEc.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DK8YmEkt.js} +6 -6
  43. package/dist/{Voucher-Cp7vNUEK.js → Voucher-DkE0rh7M.js} +16 -16
  44. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-fxY99PHD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Kh4ljCGb.js} +12 -12
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DoreMwv7.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dd7JkeK-.js} +2 -2
  46. package/dist/{app-C7D4OBMR.js → app-BR-pWYj_.js} +1 -1
  47. package/dist/{app-C3qRhqNx.js → app-bljpeKtJ.js} +46 -36
  48. package/dist/app.js +1 -1
  49. package/dist/{business-DFHwuClX.js → business-CI7RS8Vk.js} +1 -1
  50. package/dist/{campaign-Cs-5YZ24.js → campaign-BVPLt3Ab.js} +8 -8
  51. package/dist/{campaign-DZ-NFu_a.js → campaign-CRIIhMp2.js} +1 -1
  52. package/dist/{campaign.enum-BpPHOLsq.js → campaign.enum-B21yGrhF.js} +1 -1
  53. package/dist/{campaign.fn-B0bijKMr.js → campaign.fn-CdomSg26.js} +114 -114
  54. package/dist/{collectible.enum-BWfgxOR7.js → collectible.enum--zkbbtRm.js} +1 -1
  55. package/dist/{collection.fn-D-k9-ZL6.js → collection.fn-Dg_sFWfB.js} +2 -2
  56. package/dist/{dto-B0OrF_Mu.js → dto-DuuDiLgE.js} +4 -4
  57. package/dist/{effect-BtYewRXj.js → effect-Dh5nBpkW.js} +1 -1
  58. package/dist/{email-addresses-DcXNhufh.js → email-addresses-Cd8lRcny.js} +1 -1
  59. package/dist/{export-BqcrVGVE.js → export-BiBEns6_.js} +3 -3
  60. package/dist/{helper-DtqbfVEI.js → helper-4GTDTpHQ.js} +1 -1
  61. package/dist/{index-BvTTVqzF.js → index-1_45vnur.js} +1 -1
  62. package/dist/{index-V05BSEA1.js → index-BDe_iGE8.js} +1 -1
  63. package/dist/{index-DYcSI0zj.js → index-BG_lmUVZ.js} +2 -2
  64. package/dist/{index-CNCgOUYU.js → index-C-uu1MTD.js} +1 -1
  65. package/dist/{index-DJGsMK2v.js → index-C5ID6ZLO.js} +6 -6
  66. package/dist/{index-BY8V6y3C.js → index-CS70kyE0.js} +1 -1
  67. package/dist/{index-mgze3alN.js → index-CYKumK2u.js} +3 -3
  68. package/dist/{index-UITrfDZG.js → index-C_Y3N1_C.js} +1 -1
  69. package/dist/{index-DYtRSDy9.js → index-D-WPBvZN.js} +1 -1
  70. package/dist/{index-C3b7XvYW.js → index-D5K-FMpD.js} +3 -3
  71. package/dist/{index-DUFFgALz.js → index-D7HTsvQE.js} +1 -1
  72. package/dist/{index-DA4W6RFV.js → index-DUcYuOyP.js} +3 -3
  73. package/dist/{index-T7d7eHx6.js → index-E5U8yHRQ.js} +626 -608
  74. package/dist/{index.esm2017-DHwBTNe6.js → index.esm2017-pxP2r94O.js} +1 -1
  75. package/dist/{loading-CqvrinH-.js → loading-BeZIBas-.js} +1 -1
  76. package/dist/{membership-DkHjl8wI.js → membership-4qhmKVK-.js} +3 -3
  77. package/dist/{money-PlffPm-A.js → money-tIxd82p3.js} +1 -1
  78. package/dist/{number-DG9caur6.js → number-JLWWrxC3.js} +1 -1
  79. package/dist/{objectid-jUNuzWI-.js → objectid-29te3Afu.js} +1 -1
  80. package/dist/{plugins-D3oZ1ayL.js → plugins-e1lQuPVO.js} +3 -3
  81. package/dist/{reward-D0Q_mk4n.js → reward-B6cHTuVY.js} +1 -1
  82. package/dist/{rule-CR-gHdem.js → rule-ZqZIhWsa.js} +3 -3
  83. package/dist/{rule-builder-D6f61BJa.js → rule-builder-BekMwFom.js} +1 -1
  84. package/dist/{template-CsgyjozJ.js → template-BQst2DPF.js} +5 -5
  85. package/dist/{timezone-Ct6ys1qy.js → timezone-CG2GlQMB.js} +1 -1
  86. package/dist/{trigger-Ba5yuwmD.js → trigger-6hPwxkCq.js} +5 -5
  87. package/dist/{user-pKBNrbDR.js → user-CWKrmolz.js} +1 -1
  88. package/dist/{vue-i18n-DDHeOQeE.js → vue-i18n-DMTw1SSj.js} +2 -2
  89. package/dist/{xlsx-BynkLwi_.js → xlsx-B6JCfTRO.js} +1 -1
  90. package/dist/{zod-BuOqR5ox.js → zod-Bgj7XO9e.js} +1 -1
  91. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as B, ref as P, onMounted as Q, computed as q, resolveComponent as V, openBlock as d, createElementBlock as F, renderSlot as W, toDisplayString as b, createCommentVNode as f, createBlock as u, unref as e, isRef as G, createVNode as g, normalizeClass as Z, watch as X, withCtx as w, resolveDynamicComponent as R, Fragment as _, createElementVNode as C, createTextVNode as ee } from "vue";
2
- import { z as te } from "./app-C3qRhqNx.js";
3
- import { Z as m } from "./zod-BuOqR5ox.js";
4
- import { f as le, g as oe } from "./index-DYcSI0zj.js";
5
- import { u as T } from "./vue-i18n-DDHeOQeE.js";
6
- import { s as O } from "./effect-BtYewRXj.js";
7
- import { p as ae } from "./plugins-D3oZ1ayL.js";
8
- import { e as ne } from "./app-C7D4OBMR.js";
2
+ import { z as te } from "./app-bljpeKtJ.js";
3
+ import { Z as m } from "./zod-Bgj7XO9e.js";
4
+ import { f as le, g as oe } from "./index-BG_lmUVZ.js";
5
+ import { u as T } from "./vue-i18n-DMTw1SSj.js";
6
+ import { s as O } from "./effect-Dh5nBpkW.js";
7
+ import { p as ae } from "./plugins-e1lQuPVO.js";
8
+ import { e as ne } from "./app-BR-pWYj_.js";
9
9
  const ie = { class: "flex flex-col gap-8" }, de = {
10
10
  key: 0,
11
11
  class: "fm-typo-en-body-lg-600"
@@ -1,18 +1,18 @@
1
- import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as x, createVNode as c, unref as o, createElementVNode as a, withCtx as h, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as u, h as q } from "vue";
1
+ import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as h, createVNode as i, unref as o, createElementVNode as n, withCtx as x, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as g, h as q } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { p as Q } from "./plugins-D3oZ1ayL.js";
5
- import { u as W } from "./loading-CqvrinH-.js";
6
- import { u as X } from "./business-DFHwuClX.js";
7
- import { u as Y, c as g } from "./campaign-DZ-NFu_a.js";
8
- import { a as L, b as V, g as Z } from "./campaign-Cs-5YZ24.js";
9
- import { u as ee } from "./vue-i18n-DDHeOQeE.js";
4
+ import { p as Q } from "./plugins-e1lQuPVO.js";
5
+ import { u as W } from "./loading-BeZIBas-.js";
6
+ import { u as X } from "./business-CI7RS8Vk.js";
7
+ import { u as Y, c as y } from "./campaign-CRIIhMp2.js";
8
+ import { a as L, b as V, g as Z } from "./campaign-BVPLt3Ab.js";
9
+ import { u as ee } from "./vue-i18n-DMTw1SSj.js";
10
10
  import { _ as te } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFVTCINV.js";
12
- import { u as ne } from "./template-CsgyjozJ.js";
13
- const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ E({
11
+ import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuF8tYV_.js";
12
+ import { u as ae } from "./template-BQst2DPF.js";
13
+ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { 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__ */ E({
14
14
  __name: "Experience",
15
- setup(_e) {
15
+ setup(ge) {
16
16
  const { t: r } = ee(), P = {
17
17
  label: r("connect.program.common.actions.create", {
18
18
  type: r("connect.program.experience.title").toLowerCase()
@@ -20,18 +20,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
20
20
  value: "create",
21
21
  isPrimary: !0,
22
22
  prependIcon: "add"
23
- }, B = ne("POINT", G()), I = X(), d = Y(), { global: T, minor: v } = W, s = S({
23
+ }, B = ae("POINT", G()), I = X(), d = Y(), { global: T, minor: b } = W, s = S({
24
24
  searchKey: "",
25
25
  location: []
26
26
  });
27
27
  function $(e) {
28
28
  const t = s.value.location;
29
29
  return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
30
- var i;
31
- return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
30
+ var c;
31
+ return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
32
32
  }) : e.targetLocation.includes(t);
33
33
  }
34
- const f = U(
34
+ const u = U(
35
35
  () => d.campaigns.experience.filter((e) => $(e))
36
36
  ), K = [
37
37
  {
@@ -58,16 +58,16 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
58
58
  icon: "delete",
59
59
  iconColor: "neutral-gray-400",
60
60
  onClick: (t) => {
61
- t.stopPropagation(), C(e.row.original);
61
+ t.stopPropagation(), v(e.row.original);
62
62
  }
63
63
  });
64
64
  }
65
65
  }
66
- ], b = S();
67
- async function C(e) {
68
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
66
+ ], C = S();
67
+ async function v(e) {
68
+ await Q.remove(`Are you sure you want to remove ${e.name}?`) && await b(
69
69
  async () => {
70
- await g.delete(e._id), await d.read("POINT");
70
+ await y.delete(e._id), await d.read("POINT");
71
71
  },
72
72
  {
73
73
  message: `Removing ${e.name}`,
@@ -75,24 +75,24 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
75
75
  }
76
76
  );
77
77
  }
78
- async function y(e) {
78
+ async function f(e) {
79
79
  e ? await t() : B.open(async (l) => {
80
80
  await t(l);
81
81
  });
82
82
  async function t(l) {
83
- var i;
84
- (i = b.value) == null || i.showSheet(
83
+ var c;
84
+ (c = C.value) == null || c.showSheet(
85
85
  !0,
86
86
  "POINT",
87
- e ? await g.readById(e._id) : void 0,
87
+ e ? await y.readById(e._id) : void 0,
88
88
  l
89
89
  );
90
90
  }
91
91
  }
92
92
  async function N(e) {
93
- await v(
93
+ await b(
94
94
  async () => {
95
- e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await d.read("POINT");
95
+ e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await d.read("POINT");
96
96
  },
97
97
  {
98
98
  message: r("connect.program.common.update.updating", {
@@ -110,79 +110,75 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
110
110
  await d.read("POINT");
111
111
  });
112
112
  }), (e, t) => {
113
- const l = m("FmPageHead"), i = m("FmSearch"), R = m("FmTable"), F = m("FmButton"), A = m("FmListItem"), O = m("FmList"), D = m("FmCard");
114
- return p(), _(x, null, [
115
- c(l, {
113
+ const l = m("FmPageHead"), c = m("FmSearch"), A = m("FmTable"), F = m("FmButton"), O = m("FmListItem"), R = m("FmList"), D = m("FmCard");
114
+ return p(), _(h, null, [
115
+ i(l, {
116
116
  title: o(r)("connect.program.experience.title"),
117
- actions: o(f).length > 0 ? [P] : [],
118
- "onClick:action": t[0] || (t[0] = () => y())
117
+ actions: o(u).length > 0 ? [P] : [],
118
+ "onClick:action": t[0] || (t[0] = () => f())
119
119
  }, null, 8, ["title", "actions"]),
120
- a("div", ae, [
121
- c(i, {
120
+ n("div", ne, [
121
+ i(c, {
122
122
  modelValue: o(s).searchKey,
123
- "onUpdate:modelValue": t[1] || (t[1] = (n) => o(s).searchKey = n),
124
- class: "hidden xs:!block border-b-2 border-fm-color-neutral-gray-100",
123
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(s).searchKey = a),
124
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
125
125
  placeholder: o(r)("connect.program.common.search"),
126
126
  collapsible: ""
127
127
  }, null, 8, ["modelValue", "placeholder"]),
128
- o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(x, { key: 0 }, [
129
- a("div", re, [
130
- a("div", se, [
131
- c(te, {
128
+ o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(h, { key: 0 }, [
129
+ n("div", re, [
130
+ n("div", se, [
131
+ i(te, {
132
132
  label: `${o(r)("connect.common.location")}: `,
133
133
  "right-icon": "keyboard_arrow_down",
134
134
  modelValue: o(s).location,
135
- "onUpdate:modelValue": t[2] || (t[2] = (n) => o(s).location = n),
135
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(s).location = a),
136
136
  icon: "storefront",
137
137
  "show-item-label": !0,
138
138
  items: o(I).locationOptions
139
139
  }, null, 8, ["label", "modelValue", "items"])
140
140
  ]),
141
- c(i, {
141
+ i(c, {
142
142
  modelValue: o(s).searchKey,
143
- "onUpdate:modelValue": t[3] || (t[3] = (n) => o(s).searchKey = n),
144
- class: "xs:hidden",
143
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(s).searchKey = a),
144
+ class: "xs:hidden sm:hidden",
145
145
  placeholder: "search",
146
146
  collapsible: ""
147
147
  }, null, 8, ["modelValue"])
148
148
  ]),
149
- c(R, {
150
- class: "xs:hidden",
151
- "row-data": o(f),
149
+ i(A, {
150
+ class: "xs:hidden sm:hidden",
151
+ "row-data": o(u),
152
152
  "column-defs": K,
153
153
  "search-value": o(s).searchKey,
154
154
  "column-filter": [],
155
- onRowClick: t[4] || (t[4] = (n) => y(n.original)),
156
- "hide-footer": o(f).length < 10
155
+ onRowClick: t[4] || (t[4] = (a) => f(a.original)),
156
+ "hide-footer": o(u).length < 10
157
157
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
158
- c(O, { class: "hidden xs:!flex flex-col mx-[-24px]" }, {
159
- default: h(() => [
160
- (p(!0), _(x, null, M(o(f).filter(
161
- (n) => n.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
162
- ), (n) => (p(), w(A, {
163
- key: n._id.toString(),
164
- onClick: (k) => y(n),
158
+ i(R, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
159
+ default: x(() => [
160
+ (p(!0), _(h, null, M(o(u).filter(
161
+ (a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
162
+ ), (a) => (p(), w(O, {
163
+ key: a._id.toString(),
164
+ onClick: (k) => f(a),
165
165
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
166
166
  }, {
167
- default: h(() => [
168
- a("div", ce, [
169
- a("div", ie, [
170
- (p(), w(H(o(L)(n)))),
171
- a("div", le, u(n.currentReceive ?? 0) + " used ", 1)
167
+ default: x(() => [
168
+ n("div", ie, [
169
+ n("div", ce, [
170
+ (p(), w(H(o(L)(a))))
172
171
  ]),
173
- a("div", me, [
174
- a("div", de, u(n.name), 1),
175
- a("div", pe, u(o(V)(n)), 1)
176
- ]),
177
- a("div", ue, u(o(r)("connect.program.experience.received", {
178
- count: n.currentReceive ?? 0
179
- })), 1)
172
+ n("div", le, [
173
+ n("div", me, g(a.name), 1),
174
+ n("div", de, g(o(V)(a)), 1)
175
+ ])
180
176
  ]),
181
- c(F, {
177
+ i(F, {
182
178
  icon: "delete",
183
179
  "icon-color": "neutral-gray-400",
184
180
  variant: "tertiary",
185
- onClick: (k) => (k.stopPropagation(), C(n))
181
+ onClick: (k) => (k.stopPropagation(), v(a))
186
182
  }, null, 8, ["onClick"])
187
183
  ]),
188
184
  _: 2
@@ -195,27 +191,27 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
195
191
  variant: "outlined",
196
192
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
197
193
  }, {
198
- default: h(() => [
199
- t[6] || (t[6] = a("img", {
194
+ default: x(() => [
195
+ t[6] || (t[6] = n("img", {
200
196
  src: z,
201
197
  class: "aspect-square w-[150px]"
202
198
  }, null, -1)),
203
- a("div", fe, [
204
- a("div", ye, u(o(r)("connect.program.experience.empty_state.title")), 1),
205
- a("div", ge, u(o(r)("connect.program.experience.empty_state.description")), 1)
199
+ n("div", pe, [
200
+ n("div", ue, g(o(r)("connect.program.experience.empty_state.title")), 1),
201
+ n("div", fe, g(o(r)("connect.program.experience.empty_state.description")), 1)
206
202
  ]),
207
- c(F, {
203
+ i(F, {
208
204
  variant: "primary",
209
205
  label: "Create experience program",
210
206
  icon: "add",
211
- onClick: t[5] || (t[5] = (n) => y())
207
+ onClick: t[5] || (t[5] = (a) => f())
212
208
  })
213
209
  ]),
214
210
  _: 1
215
211
  })),
216
- c(oe, {
212
+ i(oe, {
217
213
  ref_key: "sheetRef",
218
- ref: b,
214
+ ref: C,
219
215
  "onSubmit:modelValue": N
220
216
  }, null, 512)
221
217
  ])
@@ -224,5 +220,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
224
220
  }
225
221
  });
226
222
  export {
227
- Be as default
223
+ Ve as default
228
224
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as q, ref as b, computed as z, onMounted as W, resolveComponent as c, openBlock as g, createElementBlock as k, Fragment as F, createVNode as s, unref as o, withCtx as w, createElementVNode as n, toDisplayString as u, renderList as J, createBlock as S, resolveDynamicComponent as Q, h as m } from "vue";
2
- import { _ as X } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as Y, components as x } from "@feedmepos/ui-library";
4
- import { a as Z, p as ee } from "./plugins-D3oZ1ayL.js";
5
- import { u as te } from "./loading-CqvrinH-.js";
6
- import { u as oe } from "./business-DFHwuClX.js";
7
- import { u as ae, c as C } from "./campaign-DZ-NFu_a.js";
8
- import { a as E, b as K, g as ne } from "./campaign-Cs-5YZ24.js";
9
- import { _ as se } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
10
- import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFVTCINV.js";
11
- import { u as re } from "./template-CsgyjozJ.js";
12
- import { u as le } from "./vue-i18n-DDHeOQeE.js";
13
- import { _ as ce } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DeCFVR31.js";
14
- const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ue = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, fe = { class: "flex gap-8 overflow-x-auto" }, ge = { class: "space-y-8" }, ye = { class: "flex w-full gap-4 items-center" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex flex-col gap-16 text-center" }, be = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = /* @__PURE__ */ q({
1
+ import { defineComponent as z, ref as k, computed as W, onMounted as J, resolveComponent as c, openBlock as f, createElementBlock as F, Fragment as S, createVNode as s, unref as o, withCtx as w, createElementVNode as n, toDisplayString as g, renderList as Q, createBlock as P, resolveDynamicComponent as X, h as m } from "vue";
2
+ import { _ as Y } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as Z, components as x } from "@feedmepos/ui-library";
4
+ import { a as ee, p as te } from "./plugins-e1lQuPVO.js";
5
+ import { u as oe } from "./loading-BeZIBas-.js";
6
+ import { u as ae } from "./business-CI7RS8Vk.js";
7
+ import { u as ne, c as C } from "./campaign-CRIIhMp2.js";
8
+ import { a as E, b as K, g as se } from "./campaign-BVPLt3Ab.js";
9
+ import { _ as ie } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
10
+ import { _ as re } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuF8tYV_.js";
11
+ import { u as le } from "./template-BQst2DPF.js";
12
+ import { u as ce } from "./vue-i18n-DMTw1SSj.js";
13
+ import { _ as me } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DR_64X0q.js";
14
+ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ge = { class: "flex gap-8 overflow-x-auto" }, ye = { class: "space-y-8" }, _e = { class: "flex w-full gap-4 items-center" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex flex-col gap-16 text-center" }, be = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = /* @__PURE__ */ z({
15
15
  __name: "Game",
16
16
  setup(Fe) {
17
- const { t: d } = le(), M = {
17
+ const { t: d } = ce(), M = {
18
18
  label: d("connect.program.common.actions.create", {
19
19
  type: d("connect.program.game.title").toLowerCase()
20
20
  }),
21
21
  value: "create",
22
22
  isPrimary: !0,
23
23
  prependIcon: "add"
24
- }, P = Y(), U = re("GAME", P), y = oe(), p = ae(), { global: G, minor: V } = te, l = b({
24
+ }, V = Z(), U = le("GAME", V), y = ae(), u = ne(), { global: G, minor: L } = oe, l = k({
25
25
  searchKey: "",
26
26
  location: []
27
27
  });
@@ -32,8 +32,8 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
32
32
  return (r = e == null ? void 0 : e.targetLocation) == null ? void 0 : r.includes(i);
33
33
  }) : e.targetLocation.includes(t);
34
34
  }
35
- const _ = z(
36
- () => p.campaigns.token.filter((e) => T(e))
35
+ const _ = W(
36
+ () => u.campaigns.token.filter((e) => T(e))
37
37
  ), I = [
38
38
  {
39
39
  header: "Program title",
@@ -47,7 +47,7 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
47
47
  {
48
48
  content: e.row.original._id,
49
49
  onClick: (t) => {
50
- t.stopPropagation(), Z(e.row.original._id);
50
+ t.stopPropagation(), ee(e.row.original._id);
51
51
  }
52
52
  },
53
53
  [
@@ -65,7 +65,7 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
65
65
  },
66
66
  {
67
67
  header: "Status",
68
- accessorFn: (e) => ne(e),
68
+ accessorFn: (e) => se(e),
69
69
  cell(e) {
70
70
  return E(e.row.original);
71
71
  }
@@ -99,17 +99,17 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
99
99
  icon: "delete",
100
100
  iconColor: "neutral-gray-400",
101
101
  onClick: (t) => {
102
- t.stopPropagation(), R(e.row.original);
102
+ t.stopPropagation(), B(e.row.original);
103
103
  }
104
104
  })
105
105
  ]);
106
106
  }
107
107
  }
108
- ], L = b(), A = b();
109
- async function R(e) {
110
- await ee.remove(`Are you sure you want to remove ${e.name}?`) && await V(
108
+ ], A = k(), R = k();
109
+ async function B(e) {
110
+ await te.remove(`Are you sure you want to remove ${e.name}?`) && await L(
111
111
  async () => {
112
- await C.delete(e._id), await p.read("GAME");
112
+ await C.delete(e._id), await u.read("GAME");
113
113
  },
114
114
  {
115
115
  message: `Removing ${e.name}`,
@@ -123,7 +123,7 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
123
123
  });
124
124
  async function t(i) {
125
125
  var r;
126
- (r = L.value) == null || r.showSheet(
126
+ (r = A.value) == null || r.showSheet(
127
127
  !0,
128
128
  "GAME",
129
129
  e ? await C.readById(e._id) : void 0,
@@ -134,21 +134,21 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
134
134
  async function D(e) {
135
135
  var t, i, r;
136
136
  e.campaign._id && ((r = (i = (t = e.campaign) == null ? void 0 : t.game) == null ? void 0 : i.rewards) != null && r.some(
137
- (f) => f.type === "VOUCHER"
138
- )) && await new Promise((f) => {
139
- P.open({
137
+ (p) => p.type === "VOUCHER"
138
+ )) && await new Promise((p) => {
139
+ V.open({
140
140
  title: "Confirmation",
141
141
  message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
142
142
  primaryActions: { text: "Update all", close: !0 },
143
143
  secondaryActions: { text: "Update future only", close: !0 }
144
144
  }).onPrimary(async () => {
145
- e.updateCollections = !0, f();
145
+ e.updateCollections = !0, p();
146
146
  }).onSecondary(async () => {
147
- f();
147
+ p();
148
148
  });
149
- }), await V(
149
+ }), await L(
150
150
  async () => {
151
- e.campaign._id ? await C.update(e.campaign._id, e) : await C.create(e), await p.read("GAME");
151
+ e.campaign._id ? await C.update(e.campaign._id, e) : await C.create(e), await u.read("GAME");
152
152
  },
153
153
  {
154
154
  message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
@@ -158,41 +158,41 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
158
158
  }
159
159
  function j(e) {
160
160
  var t;
161
- (t = A.value) == null || t.showSheet({
161
+ (t = R.value) == null || t.showSheet({
162
162
  campaign: e
163
163
  });
164
164
  }
165
- return W(async () => {
165
+ return J(async () => {
166
166
  await G(async () => {
167
- await p.read("GAME"), await y.readPremium();
167
+ await u.read("GAME"), await y.readPremium();
168
168
  });
169
169
  }), (e, t) => {
170
- const i = c("FmPill"), r = c("FmPageHead"), v = c("FmSearch"), f = c("FmTable"), B = c("FmButton"), H = c("FmListItem"), N = c("FmList"), O = c("FmCard");
171
- return g(), k(F, null, [
170
+ const i = c("FmPill"), r = c("FmPageHead"), v = c("FmSearch"), p = c("FmTable"), $ = c("FmButton"), H = c("FmListItem"), N = c("FmList"), O = c("FmCard");
171
+ return f(), F(S, null, [
172
172
  s(r, {
173
173
  actions: o(_).length > 0 && o(y).isPremium ? [M] : [],
174
174
  "onClick:action": t[0] || (t[0] = () => h())
175
175
  }, {
176
176
  title: w(() => [
177
- n("div", me, [
178
- n("span", de, u(o(d)("connect.program.game.title")), 1),
177
+ n("div", de, [
178
+ n("span", ue, g(o(d)("connect.program.game.title")), 1),
179
179
  s(i, { variant: "premium" })
180
180
  ])
181
181
  ]),
182
182
  _: 1
183
183
  }, 8, ["actions"]),
184
- n("div", ue, [
184
+ n("div", pe, [
185
185
  s(v, {
186
186
  modelValue: o(l).searchKey,
187
187
  "onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
188
- class: "hidden xs:!block border-b-2 border-fm-color-neutral-gray-100",
188
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
189
189
  placeholder: "search",
190
190
  collapsible: ""
191
191
  }, null, 8, ["modelValue"]),
192
- o(p).campaigns.token && o(p).campaigns.token.length > 0 ? (g(), k(F, { key: 0 }, [
193
- n("div", pe, [
194
- n("div", fe, [
195
- s(se, {
192
+ o(u).campaigns.token && o(u).campaigns.token.length > 0 ? (f(), F(S, { key: 0 }, [
193
+ n("div", fe, [
194
+ n("div", ge, [
195
+ s(ie, {
196
196
  label: `${o(d)("connect.common.location")}: `,
197
197
  "right-icon": "keyboard_arrow_down",
198
198
  modelValue: o(l).location,
@@ -205,13 +205,13 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
205
205
  s(v, {
206
206
  modelValue: o(l).searchKey,
207
207
  "onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
208
- class: "xs:hidden",
208
+ class: "xs:hidden sm:hidden",
209
209
  placeholder: "search",
210
210
  collapsible: ""
211
211
  }, null, 8, ["modelValue"])
212
212
  ]),
213
- s(f, {
214
- class: "xs:hidden",
213
+ s(p, {
214
+ class: "xs:hidden sm:hidden",
215
215
  "row-data": o(_),
216
216
  "column-defs": I,
217
217
  "search-value": o(l).searchKey,
@@ -219,56 +219,58 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
219
219
  onRowClick: t[4] || (t[4] = (a) => h(a.original)),
220
220
  "hide-footer": o(_).length < 10
221
221
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
222
- s(N, { class: "hidden xs:!flex flex-col mx-[-24px]" }, {
222
+ s(N, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
223
223
  default: w(() => [
224
- (g(!0), k(F, null, J(o(_).filter(
224
+ (f(!0), F(S, null, Q(o(_).filter(
225
225
  (a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
226
- ), (a) => (g(), S(H, {
226
+ ), (a) => (f(), P(H, {
227
227
  key: a._id.toString(),
228
- onClick: ($) => h(a),
228
+ onClick: (b) => h(a),
229
229
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
230
230
  }, {
231
- default: w(() => [
232
- n("div", ge, [
231
+ default: w(() => {
232
+ var b;
233
+ return [
233
234
  n("div", ye, [
234
- (g(), S(Q(o(E)(a)))),
235
- n("div", _e, u(a.currentReceive ?? 0) + " used ", 1)
235
+ n("div", _e, [
236
+ (f(), P(X(o(E)(a))))
237
+ ]),
238
+ n("div", he, [
239
+ n("div", we, g(a.name), 1),
240
+ n("div", xe, g(o(K)(a)), 1)
241
+ ]),
242
+ n("div", Ce, g(o(d)("connect.program.game.token_received", {
243
+ count: ((b = e.pf_collectible) == null ? void 0 : b.currentReceive) ?? 0
244
+ })), 1)
236
245
  ]),
237
- n("div", he, [
238
- n("div", we, u(a.name), 1),
239
- n("div", xe, u(o(K)(a)), 1)
240
- ]),
241
- n("div", Ce, u(o(d)("connect.program.game.token_received", {
242
- count: a.currentReceive ?? 0
243
- })), 1)
244
- ]),
245
- s(B, {
246
- icon: "delete",
247
- "icon-color": "neutral-gray-400",
248
- variant: "tertiary",
249
- onClick: ($) => ($.stopPropagation(), R(a))
250
- }, null, 8, ["onClick"])
251
- ]),
246
+ s($, {
247
+ icon: "delete",
248
+ "icon-color": "neutral-gray-400",
249
+ variant: "tertiary",
250
+ onClick: (q) => (q.stopPropagation(), B(a))
251
+ }, null, 8, ["onClick"])
252
+ ];
253
+ }),
252
254
  _: 2
253
255
  }, 1032, ["onClick"]))), 128))
254
256
  ]),
255
257
  _: 1
256
258
  })
257
- ], 64)) : (g(), S(O, {
259
+ ], 64)) : (f(), P(O, {
258
260
  key: 1,
259
261
  variant: "outlined",
260
262
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
261
263
  }, {
262
264
  default: w(() => [
263
265
  t[6] || (t[6] = n("img", {
264
- src: X,
266
+ src: Y,
265
267
  class: "aspect-square w-[150px]"
266
268
  }, null, -1)),
267
269
  n("div", ve, [
268
- n("div", be, u(o(d)("connect.program.game.empty_state.title")), 1),
269
- n("div", ke, u(o(d)("connect.program.game.empty_state.description")), 1)
270
+ n("div", be, g(o(d)("connect.program.game.empty_state.title")), 1),
271
+ n("div", ke, g(o(d)("connect.program.game.empty_state.description")), 1)
270
272
  ]),
271
- s(B, {
273
+ s($, {
272
274
  variant: "primary",
273
275
  label: "Create game program",
274
276
  icon: "add",
@@ -278,14 +280,14 @@ const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-60
278
280
  ]),
279
281
  _: 1
280
282
  })),
281
- s(ie, {
283
+ s(re, {
282
284
  ref_key: "sheetRef",
283
- ref: L,
285
+ ref: A,
284
286
  "onSubmit:modelValue": D
285
287
  }, null, 512),
286
- s(ce, {
288
+ s(me, {
287
289
  ref_key: "sendCollectionSheetRef",
288
- ref: A
290
+ ref: R
289
291
  }, null, 512)
290
292
  ])
291
293
  ], 64);
@@ -1,5 +1,5 @@
1
1
  import { openBlock as l, createElementBlock as o, createElementVNode as r, defineComponent as $, ref as b, onMounted as I, resolveComponent as f, renderSlot as x, toDisplayString as s, createCommentVNode as h, normalizeStyle as V, unref as i, Fragment as w, createVNode as F, withCtx as g, createTextVNode as p, normalizeClass as z, createBlock as k } from "vue";
2
- import { u as R } from "./vue-i18n-DDHeOQeE.js";
2
+ import { u as R } from "./vue-i18n-DMTw1SSj.js";
3
3
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const N = {}, D = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" };
5
5
  function L(e, d) {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as B, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
2
- import { u as H } from "./vue-i18n-DDHeOQeE.js";
3
- import "./index-V05BSEA1.js";
2
+ import { u as H } from "./vue-i18n-DMTw1SSj.js";
3
+ import "./index-BDe_iGE8.js";
4
4
  import { useRouter as K } from "vue-router";
5
- import { u as Q } from "./loading-CqvrinH-.js";
6
- import { f as V, p as X } from "./plugins-D3oZ1ayL.js";
7
- import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CGdBnD5E.js";
5
+ import { u as Q } from "./loading-BeZIBas-.js";
6
+ import { f as V, p as X } from "./plugins-e1lQuPVO.js";
7
+ import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-BeF7ihok.js";
8
8
  import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
9
- import { r as N } from "./index-DUFFgALz.js";
10
- import { u as ae } from "./reward-D0Q_mk4n.js";
11
- import { u as oe } from "./business-DFHwuClX.js";
12
- import { u as te } from "./membership-DkHjl8wI.js";
13
- import { R as $ } from "./app-C3qRhqNx.js";
9
+ import { r as N } from "./index-D7HTsvQE.js";
10
+ import { u as ae } from "./reward-B6cHTuVY.js";
11
+ import { u as oe } from "./business-CI7RS8Vk.js";
12
+ import { u as te } from "./membership-4qhmKVK-.js";
13
+ import { R as $ } from "./app-bljpeKtJ.js";
14
14
  const re = { class: "space-y-24" }, le = {
15
15
  key: 0,
16
16
  class: /* @__PURE__ */ G([