@feedmepos/mf-connect 0.1.0-beta.5 → 0.1.0-beta.51

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 (112) hide show
  1. package/dist/Analytic-DP8oPOug.js +427 -0
  2. package/dist/{App-C8Qfnkhz.js → App-DSFvQRnz.js} +441 -420
  3. package/dist/AuditLogs-YSw2xsZw.js +1885 -0
  4. package/dist/Bin-Da_eermT.js +166 -0
  5. package/dist/{Broadcast-BK-1MQkL.js → Broadcast-DoNlWo4j.js} +13 -12
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BLzpFQoc.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DItda2cA.js} +6 -8
  7. package/dist/Card-CbxtYecE.js +896 -0
  8. package/dist/{Collections-TA4iW1r0.js → Collections-p1UhWf85.js} +27 -31
  9. package/dist/{Credit-Df9iFQjZ.js → Credit-DQta1iUA.js} +17 -16
  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-CLFeMi0j.js +169 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCRVyPwl.js → EffectSheet.vue_vue_type_style_index_0_lang-BN5MFZTx.js} +6 -6
  14. package/dist/{Experience-ByLFXKn6.js → Experience-BnwKk_PO.js} +26 -25
  15. package/dist/{Game-B6Ez0pfW.js → Game-_4Hj3Yyt.js} +21 -20
  16. package/dist/Index-Bmz1R6hW.js +259 -0
  17. package/dist/Marketing-D0V260mx.js +20071 -0
  18. package/dist/{Member-TobP1ISp.js → Member-BIEihOp5.js} +4 -4
  19. package/dist/MemberList-C4EbD7jO.js +1598 -0
  20. package/dist/MemberTransactions-DvYurEaZ.js +45 -0
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ-w6iZi.js → MessageInput.vue_vue_type_script_setup_true_lang-vGMke4sb.js} +6 -6
  22. package/dist/{Mission-D9uTVo0G.js → Mission-C6gKiY9l.js} +97 -84
  23. package/dist/Overview-xqu1_7-7.js +1078 -0
  24. package/dist/{Point-4rDr-53e.js → Point-C02Z0_w5.js} +26 -25
  25. package/dist/{Promotion-BKO_dtQk.js → Promotion-BBfa32MT.js} +55 -48
  26. package/dist/Record-Bcj2D0fP.js +340 -0
  27. package/dist/Reward-BMvRwWnr.js +442 -0
  28. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-gt0h6XDa.js +150 -0
  29. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CPw-z0L1.js +1637 -0
  30. package/dist/Segment-BpkWm7ah.js +568 -0
  31. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-_t32qpAQ.js +181 -0
  32. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWNF7Srw.js +147 -0
  33. package/dist/{Setting-B7oISD0D.js → Setting-QEqA9Sjr.js} +610 -586
  34. package/dist/Store-Bb5Qh_fa.js +1744 -0
  35. package/dist/{StoreRewards-AMxIYhjZ.js → StoreRewards-CqmFv4KN.js} +33 -32
  36. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-SGMgGM-I.js +939 -0
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B2szciPk.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bd63YQLw.js} +1 -1
  38. package/dist/{Tier-DkxdNj-K.js → Tier-BG4EQUN4.js} +327 -318
  39. package/dist/{Title-VFpCOsMO.js → Title-CLZYAG35.js} +199 -184
  40. package/dist/{Transaction-BgKD8n2L.js → Transaction-DxKmtuW2.js} +2 -2
  41. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DWqf1lcK.js +130 -0
  42. package/dist/Voucher-BiBkN12U.js +353 -0
  43. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bv6ro9Ul.js +419 -0
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B2FGvyza.js → ZodTextField.vue_vue_type_script_setup_true_lang-DaN1_uKj.js} +1 -1
  45. package/dist/{app-DA-t-2Zt.js → app-BDYHz7bx.js} +1 -1
  46. package/dist/{app-DUl5dav5.js → app-BToiZpVg.js} +1758 -1496
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CeCitOY4.js → business-Cdck2Mo8.js} +1 -1
  49. package/dist/{campaign-CcLM6e4s.js → campaign-U0MVzGkd.js} +2 -2
  50. package/dist/campaign-V6y28epS.js +1810 -0
  51. package/dist/campaign.enum-C2ZHkwav.js +20 -0
  52. package/dist/campaign.fn-C8hqL7sq.js +758 -0
  53. package/dist/collectible.enum-DPFWrwtU.js +19 -0
  54. package/dist/{collection.fn-CAEP7YxB.js → collection.fn-BUtvp8Q7.js} +2 -2
  55. package/dist/dto-CO3dr-5e.js +214 -0
  56. package/dist/{effect-Dt7rXOBy.js → effect-CTIglwNj.js} +9 -9
  57. package/dist/email-addresses-fTprqBTm.js +705 -0
  58. package/dist/{export-CyioiboQ.js → export-BNfnVhxu.js} +5 -5
  59. package/dist/{helper-FA_9AhGV.js → helper-BB4sHiiB.js} +1 -1
  60. package/dist/index-BZjpXQbO.js +32 -0
  61. package/dist/index-BnJgi3GR.js +54 -0
  62. package/dist/{index-DLN4Kzz_.js → index-BpmAtLiE.js} +1 -1
  63. package/dist/{index-igxrd5jC.js → index-ByUriI6F.js} +1500 -1479
  64. package/dist/{index-BiFueJiF.js → index-CUDAo9HK.js} +259 -193
  65. package/dist/index-CsaQJMAR.js +66 -0
  66. package/dist/{index-DbbO3wip.js → index-DHEtLTYr.js} +48 -4
  67. package/dist/{index-CCdXvb92.js → index-DTnTvdIA.js} +1 -1
  68. package/dist/{index-CyNdsVrw.js → index-DbzMtv9Z.js} +1 -1
  69. package/dist/index-DwbN8FHi.js +44 -0
  70. package/dist/index-czQ4GAtE.js +115 -0
  71. package/dist/{index-C20XBD7G.js → index-fkBcbLFu.js} +2192 -931
  72. package/dist/index-vh86FiIQ.js +10 -0
  73. package/dist/index-wzNzbg46.js +29000 -0
  74. package/dist/{index.esm2017-Dl_CdTcK.js → index.esm2017-OtiYpLFF.js} +33 -33
  75. package/dist/loading-D_NOvElg.js +71 -0
  76. package/dist/{membership-DFiY8aVd.js → membership-6M1ftDbz.js} +54 -46
  77. package/dist/money-D6phwlff.js +15 -0
  78. package/dist/number-CT9IX-wU.js +12 -0
  79. package/dist/objectid-DtS-zHmd.js +145 -0
  80. package/dist/{loading-CZ0fiViM.js → plugins-CFv-0uV9.js} +2990 -3062
  81. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  82. package/dist/reward-B2aqMThx.js +36 -0
  83. package/dist/{rule-C3e1xTqN.js → rule-DxUsHy8Q.js} +180 -177
  84. package/dist/{rule-builder-MEVb_AiZ.js → rule-builder-BqkRAa1C.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/{template-C2OKWd_e.js → template-5OZEG9e3.js} +5 -5
  87. package/dist/trigger-D7aLiQDF.js +144 -0
  88. package/dist/user-CMYgbV2m.js +54 -0
  89. package/dist/{vue-i18n-CjxDUnX6.js → vue-i18n-Cad7169E.js} +216 -216
  90. package/dist/{xlsx-CtXdl3ls.js → xlsx-rV-XTyJC.js} +1 -1
  91. package/package.json +9 -7
  92. package/dist/Analytic-C_ZFR5jh.js +0 -622
  93. package/dist/Card-C7dUFJKe.js +0 -825
  94. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgl90veU.js +0 -2813
  95. package/dist/Marketing-BaqZUeVI.js +0 -316
  96. package/dist/MemberList-B9cutmEh.js +0 -1733
  97. package/dist/MemberTransactions-DRHA7AOF.js +0 -38
  98. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BHCoDSTg.js +0 -1753
  99. package/dist/Segment-Dj8nc3AE.js +0 -437
  100. package/dist/Store-CJ3wcohQ.js +0 -1511
  101. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-wXUTfQQF.js +0 -890
  102. package/dist/Voucher-BbTLt8Pt.js +0 -490
  103. package/dist/dto-CRJma6eX.js +0 -2770
  104. package/dist/index-B1e0LtDe.js +0 -99
  105. package/dist/index-Be2ZYDy_.js +0 -298
  106. package/dist/index-CDkITvze.js +0 -762
  107. package/dist/index-CuvNtC_M.js +0 -61
  108. package/dist/index-DPP5F3bT.js +0 -206
  109. package/dist/index-Dbo3DDwp.js +0 -29193
  110. package/dist/money-D8hUEfP4.js +0 -15
  111. package/dist/number-DL3GAeVt.js +0 -12
  112. 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-DUl5dav5.js";
2
+ import { z as te } from "./app-BToiZpVg.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-igxrd5jC.js";
5
- import { u as Z } from "./vue-i18n-CjxDUnX6.js";
6
- import { s as O } from "./effect-Dt7rXOBy.js";
7
- import { p as ae } from "./loading-CZ0fiViM.js";
8
- import { I as ne } from "./app-DA-t-2Zt.js";
4
+ import { f as le, g as oe } from "./index-ByUriI6F.js";
5
+ import { u as Z } from "./vue-i18n-Cad7169E.js";
6
+ import { s as O } from "./effect-CTIglwNj.js";
7
+ import { p as ae } from "./plugins-CFv-0uV9.js";
8
+ import { I as ne } from "./app-BDYHz7bx.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,16 +1,17 @@
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";
1
+ import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as c, openBlock as m, createElementBlock as _, Fragment as x, createVNode as i, 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-CZ0fiViM.js";
5
- import { u as W } from "./business-CeCitOY4.js";
6
- import { u as X } from "./campaign-CcLM6e4s.js";
7
- import { g as L, b as V } from "./dto-CRJma6eX.js";
8
- import { u as Y } from "./vue-i18n-CjxDUnX6.js";
4
+ import { p as J } from "./plugins-CFv-0uV9.js";
5
+ import { u as Q } from "./loading-D_NOvElg.js";
6
+ import { u as W } from "./business-Cdck2Mo8.js";
7
+ import { u as X } from "./campaign-U0MVzGkd.js";
8
+ import { g as L, a as V } from "./campaign-V6y28epS.js";
9
+ import { u as Y } from "./vue-i18n-Cad7169E.js";
9
10
  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-Bgl90veU.js";
11
- import { u as te } from "./template-C2OKWd_e.js";
12
- import { c as g } from "./index-B1e0LtDe.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({
11
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js";
12
+ import { u as te } from "./template-5OZEG9e3.js";
13
+ import { c as g } from "./index-czQ4GAtE.js";
14
+ 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" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { 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" }, Ie = /* @__PURE__ */ D({
14
15
  __name: "Experience",
15
16
  setup(ye) {
16
17
  const { t: s } = Y(), I = {
@@ -20,7 +21,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
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 = te("POINT", z()), B = W(), l = X(), { global: T, minor: v } = Q, r = S({
24
25
  searchKey: "",
25
26
  location: null
26
27
  }), f = E(
@@ -58,7 +59,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
58
59
  }
59
60
  ], b = S();
60
61
  async function C(e) {
61
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
62
+ await J.remove(`Are you sure you want to remove ${e.name}?`) && await v(
62
63
  async () => {
63
64
  await g.delete(e._id), await l.read("POINT");
64
65
  },
@@ -103,15 +104,15 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
103
104
  await l.read("POINT");
104
105
  });
105
106
  }), (e, o) => {
106
- const d = i("FmPageHead"), u = i("FmSearch"), R = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), O = i("FmList"), A = i("FmCard");
107
+ const d = c("FmPageHead"), u = c("FmSearch"), R = c("FmTable"), F = c("FmButton"), $ = c("FmListItem"), O = c("FmList"), A = c("FmCard");
107
108
  return m(), _(x, null, [
108
- c(d, {
109
+ i(d, {
109
110
  title: t(s)("connect.program.experience.title"),
110
111
  actions: t(f).length > 0 ? [I] : [],
111
112
  "onClick:action": o[0] || (o[0] = () => y())
112
113
  }, null, 8, ["title", "actions"]),
113
114
  n("div", oe, [
114
- c(u, {
115
+ i(u, {
115
116
  modelValue: t(r).searchKey,
116
117
  "onUpdate:modelValue": o[1] || (o[1] = (a) => t(r).searchKey = a),
117
118
  class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
@@ -121,7 +122,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
121
122
  t(l).campaigns.experience && t(l).campaigns.experience.length > 0 ? (m(), _(x, { key: 0 }, [
122
123
  n("div", ae, [
123
124
  n("div", ne, [
124
- c(Z, {
125
+ i(Z, {
125
126
  modelValue: t(r).location,
126
127
  "onUpdate:modelValue": o[2] || (o[2] = (a) => t(r).location = a),
127
128
  label: "Location: ",
@@ -131,7 +132,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
131
132
  items: t(B).locationItems
132
133
  }, null, 8, ["modelValue", "items"])
133
134
  ]),
134
- c(u, {
135
+ i(u, {
135
136
  modelValue: t(r).searchKey,
136
137
  "onUpdate:modelValue": o[3] || (o[3] = (a) => t(r).searchKey = a),
137
138
  class: "xs:hidden",
@@ -139,7 +140,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
139
140
  collapsible: ""
140
141
  }, null, 8, ["modelValue"])
141
142
  ]),
142
- c(R, {
143
+ i(R, {
143
144
  class: "xs:hidden",
144
145
  "row-data": t(f),
145
146
  "column-defs": K,
@@ -148,7 +149,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
148
149
  onRowClick: o[4] || (o[4] = (a) => y(a.original)),
149
150
  "hide-footer": t(f).length < 10
150
151
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
151
- c(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
152
+ i(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
152
153
  default: h(() => [
153
154
  (m(!0), _(x, null, j(t(f).filter(
154
155
  (a) => a.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
@@ -161,9 +162,9 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
161
162
  n("div", se, [
162
163
  n("div", re, [
163
164
  (m(), w(M(t(L)(a)))),
164
- n("div", ce, p(a.currentReceive ?? 0) + " used ", 1)
165
+ n("div", ie, p(a.currentReceive ?? 0) + " used ", 1)
165
166
  ]),
166
- n("div", ie, [
167
+ n("div", ce, [
167
168
  n("div", le, p(a.name), 1),
168
169
  n("div", me, p(t(V)(a)), 1)
169
170
  ]),
@@ -171,7 +172,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
171
172
  count: a.currentReceive ?? 0
172
173
  })), 1)
173
174
  ]),
174
- c(F, {
175
+ i(F, {
175
176
  icon: "delete",
176
177
  "icon-color": "neutral-gray-400",
177
178
  variant: "tertiary",
@@ -197,7 +198,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
197
198
  n("div", ue, p(t(s)("connect.program.experience.empty_state.title")), 1),
198
199
  n("div", fe, p(t(s)("connect.program.experience.empty_state.description")), 1)
199
200
  ]),
200
- c(F, {
201
+ i(F, {
201
202
  variant: "primary",
202
203
  label: "Create experience program",
203
204
  icon: "add",
@@ -206,7 +207,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
206
207
  ]),
207
208
  _: 1
208
209
  })),
209
- c(ee, {
210
+ i(ee, {
210
211
  ref_key: "sheetRef",
211
212
  ref: b,
212
213
  "onSubmit:modelValue": N
@@ -217,5 +218,5 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
217
218
  }
218
219
  });
219
220
  export {
220
- Ve as default
221
+ Ie as default
221
222
  };
@@ -1,16 +1,17 @@
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";
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 v, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as b, 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-CZ0fiViM.js";
5
- import { u as Y } from "./business-CeCitOY4.js";
6
- import { u as Z } from "./campaign-CcLM6e4s.js";
7
- import { g as B, b as $ } from "./dto-CRJma6eX.js";
4
+ import { a as Q, p as W } from "./plugins-CFv-0uV9.js";
5
+ import { u as X } from "./loading-D_NOvElg.js";
6
+ import { u as Y } from "./business-Cdck2Mo8.js";
7
+ import { u as Z } from "./campaign-U0MVzGkd.js";
8
+ import { g as B, a as $ } from "./campaign-V6y28epS.js";
8
9
  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-Bgl90veU.js";
10
- import { u as oe } from "./template-C2OKWd_e.js";
11
- import { u as ae } from "./vue-i18n-CjxDUnX6.js";
12
- import { c as w } from "./index-B1e0LtDe.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({
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js";
11
+ import { u as oe } from "./template-5OZEG9e3.js";
12
+ import { u as ae } from "./vue-i18n-Cad7169E.js";
13
+ import { c as w } from "./index-czQ4GAtE.js";
14
+ 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" }, Ee = /* @__PURE__ */ D({
14
15
  __name: "Game",
15
16
  setup(we) {
16
17
  const { t: c } = ae(), E = {
@@ -20,7 +21,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
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 = oe("GAME", O()), f = Y(), m = Z(), { global: M, minor: k } = 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
  [
@@ -89,7 +90,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
89
90
  }
90
91
  ], F = A();
91
92
  async function S(e) {
92
- await X.remove(`Are you sure you want to remove ${e.name}?`) && await k(
93
+ await W.remove(`Are you sure you want to remove ${e.name}?`) && await k(
93
94
  async () => {
94
95
  await w.delete(e._id), await m.read("GAME");
95
96
  },
@@ -130,7 +131,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
130
131
  });
131
132
  }), (e, t) => {
132
133
  const u = r("FmPill"), _ = r("FmPageHead"), L = r("FmSearch"), I = r("FmTable"), P = r("FmButton"), T = r("FmListItem"), U = r("FmList"), j = r("FmCard");
133
- return d(), x(b, null, [
134
+ return d(), x(v, null, [
134
135
  i(_, {
135
136
  actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
136
137
  "onClick:action": t[0] || (t[0] = () => y())
@@ -151,7 +152,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
151
152
  placeholder: "search",
152
153
  collapsible: ""
153
154
  }, null, 8, ["modelValue"]),
154
- o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(b, { key: 0 }, [
155
+ o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(v, { key: 0 }, [
155
156
  n("div", re, [
156
157
  n("div", le, [
157
158
  i(ee, {
@@ -183,9 +184,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
183
184
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
184
185
  i(U, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
185
186
  default: h(() => [
186
- (d(!0), x(b, null, q(o(g).filter(
187
+ (d(!0), x(v, null, q(o(g).filter(
187
188
  (a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
188
- ), (a) => (d(), v(T, {
189
+ ), (a) => (d(), b(T, {
189
190
  key: a._id.toString(),
190
191
  onClick: (V) => y(a),
191
192
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
@@ -193,7 +194,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
193
194
  default: h(() => [
194
195
  n("div", ce, [
195
196
  n("div", me, [
196
- (d(), v(z(o(B)(a)))),
197
+ (d(), b(z(o(B)(a)))),
197
198
  n("div", de, l(a.currentReceive ?? 0) + " used ", 1)
198
199
  ]),
199
200
  n("div", pe, [
@@ -216,7 +217,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
216
217
  ]),
217
218
  _: 1
218
219
  })
219
- ], 64)) : (d(), v(j, {
220
+ ], 64)) : (d(), b(j, {
220
221
  key: 1,
221
222
  variant: "outlined",
222
223
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
@@ -251,5 +252,5 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
251
252
  }
252
253
  });
253
254
  export {
254
- $e as default
255
+ Ee as default
255
256
  };
@@ -0,0 +1,259 @@
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 $, 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-Cad7169E.js";
3
+ import "./index-DbzMtv9Z.js";
4
+ import { useRouter as K } from "vue-router";
5
+ import { u as Q } from "./loading-D_NOvElg.js";
6
+ import { f as V, p as X } from "./plugins-CFv-0uV9.js";
7
+ import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-gt0h6XDa.js";
8
+ import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
9
+ import { r as N } from "./index-BZjpXQbO.js";
10
+ import { u as ae } from "./reward-B2aqMThx.js";
11
+ import { u as oe } from "./business-Cdck2Mo8.js";
12
+ import { u as te } from "./membership-6M1ftDbz.js";
13
+ import { R as S } from "./app-BToiZpVg.js";
14
+ const re = { class: "space-y-24" }, le = {
15
+ key: 0,
16
+ class: /* @__PURE__ */ G([
17
+ "p-16 pl-24 space-x-8",
18
+ "bg-fm-color-primary-oats rounded-lg",
19
+ "flex items-center",
20
+ "justify-between"
21
+ ])
22
+ }, ie = { key: 1 }, se = {
23
+ key: 2,
24
+ class: /* @__PURE__ */ G([
25
+ "flex items-center",
26
+ "border border-fm-color-neutral-gray-300",
27
+ "p-16 space-x-16 rounded-md"
28
+ ])
29
+ }, ce = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, me = { class: "flex justify-end space-x-8 w-full" }, de = /* @__PURE__ */ U({
30
+ __name: "TermAndConditionDialog",
31
+ props: {
32
+ modelValue: { type: Boolean }
33
+ },
34
+ emits: ["update:modelValue"],
35
+ setup(B, { emit: k }) {
36
+ const y = B;
37
+ ee();
38
+ const s = ne(), { t } = H(), i = Y(), { minor: _ } = Q, d = g(!1), T = k, r = g(null), w = g(null);
39
+ async function h() {
40
+ if (!r.value) {
41
+ s.open({
42
+ type: "error",
43
+ title: "Please upload a file"
44
+ });
45
+ return;
46
+ }
47
+ _(
48
+ async () => {
49
+ d.value = !0;
50
+ const n = await V.update(
51
+ V.referralTermAndConditionPath(),
52
+ r.value
53
+ ), a = i.referralProgram;
54
+ a.term_and_condition = n, await N.update(a), d.value = !1, v();
55
+ },
56
+ {
57
+ successMessage: "Term and Condition uploaded successfully"
58
+ }
59
+ );
60
+ }
61
+ async function x() {
62
+ await X.confirm(
63
+ t("connect.referral.term_and_condition.confirm_remove"),
64
+ t("connect.common.confirm"),
65
+ t("connect.common.confirm"),
66
+ t("connect.common.cancel")
67
+ ) && _(
68
+ async () => {
69
+ d.value = !0, await V.delete(
70
+ V.referralTermAndConditionPath()
71
+ );
72
+ const a = i.referralProgram;
73
+ a.term_and_condition = void 0, await N.update(a), d.value = !1, v();
74
+ },
75
+ {
76
+ successMessage: "Term and Condition removed successfully"
77
+ }
78
+ );
79
+ }
80
+ function v() {
81
+ r.value = null, T("update:modelValue", !1);
82
+ }
83
+ function l() {
84
+ var n;
85
+ window.open((n = i.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
86
+ }
87
+ return O(
88
+ () => y.modelValue,
89
+ (n) => {
90
+ r.value = null;
91
+ }
92
+ ), I(() => {
93
+ }), (n, a) => {
94
+ const R = m("FmButton"), E = m("FmDropField"), u = m("fm-button"), A = m("fm-dialog");
95
+ return b(), j(A, {
96
+ "model-value": n.modelValue,
97
+ "onUpdate:modelValue": a[3] || (a[3] = (C) => n.$emit("update:modelValue", C)),
98
+ "dismiss-away": ""
99
+ }, {
100
+ "dialog-header": P(() => [
101
+ z($(n.$t("connect.referral.actions.terms")), 1)
102
+ ]),
103
+ "dialog-footer": P(() => [
104
+ c("div", me, [
105
+ o(u, {
106
+ variant: e(p).Tertiary,
107
+ label: e(t)("connect.common.cancel"),
108
+ onClick: v
109
+ }, null, 8, ["variant", "label"]),
110
+ o(u, {
111
+ variant: e(p).Primary,
112
+ class: "ml-auto mr-8",
113
+ label: e(t)("connect.common.save"),
114
+ loading: e(d),
115
+ onClick: h
116
+ }, null, 8, ["variant", "label", "loading"])
117
+ ])
118
+ ]),
119
+ default: P(() => {
120
+ var C;
121
+ return [
122
+ c("div", re, [
123
+ (C = e(i).referralProgram) != null && C.term_and_condition ? (b(), F("div", le, [
124
+ o(R, {
125
+ label: e(t)("View uploaded file"),
126
+ variant: e(p).Plain,
127
+ icon: "file_present",
128
+ onClick: l
129
+ }, null, 8, ["label", "variant"]),
130
+ o(R, {
131
+ variant: e(p).Plain,
132
+ icon: "delete",
133
+ onClick: x
134
+ }, null, 8, ["variant"])
135
+ ])) : W("", !0),
136
+ e(r) ? (b(), F("div", se, [
137
+ o(u, {
138
+ variant: e(p).Tertiary,
139
+ "prepend-icon": "attach_file"
140
+ }, null, 8, ["variant"]),
141
+ c("p", ce, $(e(r).name), 1),
142
+ c("label", {
143
+ ref_key: "fileLabelRef",
144
+ ref: w,
145
+ htmlFor: "file"
146
+ }, [
147
+ o(u, {
148
+ variant: e(p).Plain,
149
+ label: e(t)("Replace File"),
150
+ onClick: a[1] || (a[1] = () => {
151
+ var f;
152
+ return (f = e(w)) == null ? void 0 : f.click();
153
+ })
154
+ }, null, 8, ["variant", "label"]),
155
+ c("input", {
156
+ id: "file",
157
+ accept: ".pdf",
158
+ class: "hidden",
159
+ type: "file",
160
+ onChange: a[2] || (a[2] = (f) => {
161
+ var D, M;
162
+ return r.value = ((M = (D = f.target) == null ? void 0 : D.files) == null ? void 0 : M[0]) ?? null;
163
+ })
164
+ }, null, 32)
165
+ ], 512)
166
+ ])) : (b(), F("div", ie, [
167
+ o(E, {
168
+ onFileUpload: a[0] || (a[0] = (f) => r.value = f),
169
+ accept: ".pdf",
170
+ "max-file-size": 8e6
171
+ })
172
+ ]))
173
+ ])
174
+ ];
175
+ }),
176
+ _: 1
177
+ }, 8, ["model-value"]);
178
+ };
179
+ }
180
+ }), ue = { class: "flex items-center" }, fe = { 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 pb-24" }, he = /* @__PURE__ */ U({
181
+ __name: "Index",
182
+ setup(B) {
183
+ const k = ae(), y = g(null), { t: s } = H(), t = K(), i = g(!1), _ = oe(), d = te(), T = L(() => _.isPremium ? [
184
+ {
185
+ label: s("connect.referral.actions.terms"),
186
+ value: "term_and_condition"
187
+ },
188
+ {
189
+ label: s("connect.referral.actions.manage_reward"),
190
+ value: "manage_reward"
191
+ },
192
+ {
193
+ label: s("connect.referral.actions.add_referral_tier"),
194
+ value: "add_referral_tier",
195
+ prependIcon: "add",
196
+ isPrimary: !0
197
+ }
198
+ ] : []), r = [
199
+ {
200
+ label: s("connect.referral.tabs.overview"),
201
+ value: S["$connect-REFERRAL_OVERVIEW"],
202
+ actions: []
203
+ },
204
+ {
205
+ label: s("connect.referral.tabs.record"),
206
+ value: S["$connect-REFERRAL_RECORD"],
207
+ actions: []
208
+ }
209
+ ], w = L(() => r.find((l) => l.value === t.currentRoute.value.name) ?? r[0]);
210
+ async function h(l) {
211
+ await t.push({ name: l });
212
+ }
213
+ async function x(l) {
214
+ var n;
215
+ l === "add_referral_tier" && ((n = y.value) == null || n.onManageRewardGroup(-1)), l === "manage_reward" && await t.push({ name: S["$connect-REWARD_TEMPLATE"] }), l === "term_and_condition" && v();
216
+ }
217
+ async function v() {
218
+ i.value = !0;
219
+ }
220
+ return I(async () => {
221
+ await k.readRewards(), await _.readPremium(), await d.readSegments();
222
+ }), (l, n) => {
223
+ const a = m("FmPill"), R = m("FmPageHead"), E = m("FmTabs"), u = m("RouterView");
224
+ return b(), F(q, null, [
225
+ o(R, {
226
+ actions: e(T),
227
+ "onClick:action": x
228
+ }, {
229
+ title: P(() => [
230
+ c("div", ue, [
231
+ c("span", fe, $(e(s)("connect.referral.title")), 1),
232
+ o(a, { variant: "premium" })
233
+ ])
234
+ ]),
235
+ _: 1
236
+ }, 8, ["actions"]),
237
+ c("div", pe, [
238
+ o(E, {
239
+ "model-value": e(w).value,
240
+ items: r,
241
+ "onUpdate:modelValue": h
242
+ }, null, 8, ["model-value"]),
243
+ o(u)
244
+ ]),
245
+ o(de, {
246
+ modelValue: e(i),
247
+ "onUpdate:modelValue": n[0] || (n[0] = (A) => J(i) ? i.value = A : null)
248
+ }, null, 8, ["modelValue"]),
249
+ o(Z, {
250
+ ref_key: "rewardGroupRef",
251
+ ref: y
252
+ }, null, 512)
253
+ ], 64);
254
+ };
255
+ }
256
+ });
257
+ export {
258
+ he as default
259
+ };