@feedmepos/mf-connect 0.1.0-beta.54 → 0.1.0-beta.56

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 (92) hide show
  1. package/dist/{Analytic-DNI1i_SI.js → Analytic-D_D92i4G.js} +11 -11
  2. package/dist/{App-DObCjrhE.js → App-QpezWBnJ.js} +10 -6
  3. package/dist/{AuditLogs-DImm4Ydu.js → AuditLogs-D2pZEngG.js} +12 -11
  4. package/dist/{Bin-CcNRMd0x.js → Bin-DBf0InBH.js} +8 -8
  5. package/dist/{Broadcast-BotivEx9.js → Broadcast-DAk3nU0-.js} +55 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Ba3NttQm.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-vEnLN5sN.js} +6 -6
  7. package/dist/{Card-1LyRUNDz.js → Card-Bu-Z11ti.js} +15 -15
  8. package/dist/Collections-CXUv8OGD.js +459 -0
  9. package/dist/{Credit-C4FehhPS.js → Credit-BRu7pvJ8.js} +42 -41
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BlTxHhHW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bg5H5bLD.js} +28 -28
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CEfunKXB.js → EffectSheet.vue_vue_type_style_index_0_lang-CD-3CQjK.js} +6 -6
  13. package/dist/{Experience-gBfv7ru-.js → Experience-CGM9hWQF.js} +39 -38
  14. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  15. package/dist/{Game-R9RusPq4.js → Game-CCv8_6AO.js} +45 -44
  16. package/dist/{Index-DIwqSHLL.js → Index-DXTc6Yk3.js} +10 -10
  17. package/dist/{Marketing-CZYD2ddp.js → Marketing-9qidJ_bk.js} +6 -6
  18. package/dist/Member-I6-Pr4Fh.js +319 -0
  19. package/dist/{MemberList-DqeHySdg.js → MemberList-BWDjjtpG.js} +24 -24
  20. package/dist/{MemberTransactions-CXy0zxGc.js → MemberTransactions-_PT_WTRE.js} +1 -1
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbTndvQx.js → MessageInput.vue_vue_type_script_setup_true_lang-K6aZwciE.js} +5 -5
  22. package/dist/{Mission-Dt2R9JVy.js → Mission-DWfkmcdf.js} +36 -35
  23. package/dist/{Overview-BrSbdy2_.js → Overview-QMdBRBlA.js} +17 -17
  24. package/dist/{Point-BB4OoQ9O.js → Point-DwZQVgF_.js} +49 -48
  25. package/dist/{Promotion-Cd-4VoeS.js → Promotion-DYmwS5O9.js} +33 -32
  26. package/dist/Queue-6MPd1asH.js +244 -0
  27. package/dist/{Record-jvc_mbY3.js → Record-CCxdtJJr.js} +7 -7
  28. package/dist/{Reward-BlbNKLJO.js → Reward-C4VcRpIW.js} +15 -15
  29. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DPA6NyE3.js → RewardGroup.vue_vue_type_script_setup_true_lang-BES7zeqg.js} +11 -11
  30. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DeDE4FBr.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dd3Ljndp.js} +12 -12
  31. package/dist/{Segment-IxmlRjfR.js → Segment-bcXOjAzv.js} +14 -14
  32. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DGXsFLVO.js → SelectItems.vue_vue_type_script_setup_true_lang-Ci5ykIt2.js} +2 -2
  33. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CIuHzjZF.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CpHvvfH0.js} +3 -3
  34. package/dist/{Setting-D2KZjG9v.js → Setting-CZQT4bGV.js} +10 -10
  35. package/dist/{Store-BAtjSdn-.js → Store-DN55d_IW.js} +122 -119
  36. package/dist/{StoreRewards-zWZU6tL0.js → StoreRewards-BTnHFOZx.js} +13 -13
  37. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DPGqXgEM.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BJcBvSI0.js} +155 -151
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CpM53JM7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DpRC1Opy.js} +1 -1
  39. package/dist/{Tier-CfrVPz6a.js → Tier-B7WlTtk_.js} +19 -19
  40. package/dist/{Title-CUrZfzDs.js → Title-CGHvbMsj.js} +19 -19
  41. package/dist/{Transaction-DBjMeSL6.js → Transaction-Cce4r0cs.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BnGFcBsw.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-KYefM4Ey.js} +6 -6
  43. package/dist/{Voucher-k0x5ghAp.js → Voucher-BRryWivA.js} +44 -43
  44. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-B3Zbbg8H.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D9efKb13.js} +10 -10
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BCtEZ3YW.js → ZodTextField.vue_vue_type_script_setup_true_lang-BRPkxkU5.js} +1 -1
  46. package/dist/{app-BX_kcnjN.js → app-Cy8_Vaxo.js} +1 -1
  47. package/dist/{app-C27ny1rN.js → app-DTlg8MKp.js} +172 -142
  48. package/dist/app.js +1 -1
  49. package/dist/{business-CaL8dhbB.js → business-BMaADexo.js} +1 -1
  50. package/dist/{campaign-BEPgE5CH.js → campaign-C8fB-bPD.js} +12 -12
  51. package/dist/{campaign-D1IDv9pf.js → campaign-Cy1er8EV.js} +2 -2
  52. package/dist/{campaign.enum-DPtLnWTT.js → campaign.enum-C1u87jO3.js} +1 -1
  53. package/dist/{campaign.fn-gbTZCSx4.js → campaign.fn-Ba2PAVOQ.js} +54 -54
  54. package/dist/{collectible.enum-BGp0i5br.js → collectible.enum-TJ2-owoP.js} +1 -1
  55. package/dist/{collection.fn-BRYSNJcJ.js → collection.fn-Be0qsf0j.js} +2 -2
  56. package/dist/{dto-CKsjCDtT.js → dto-CYkVsWtG.js} +4 -4
  57. package/dist/{effect-COM0bU6H.js → effect-BsKfDszn.js} +1 -1
  58. package/dist/{email-addresses-8dkAXaaH.js → email-addresses-udodm5zn.js} +1 -1
  59. package/dist/{export-BOyaDPx1.js → export-BANYPH3S.js} +3 -3
  60. package/dist/{helper-BPWsTSo7.js → helper-B4n2GzUT.js} +1 -1
  61. package/dist/{index-syqkAq4m.js → index-CTnXuOHy.js} +1 -1
  62. package/dist/{index-CPhjQE7M.js → index-CZh5_4r2.js} +1 -1
  63. package/dist/{index-KMvP72cy.js → index-C_uA0tpL.js} +3 -3
  64. package/dist/{index-DOCmOcoV.js → index-DXsJh2qk.js} +355 -316
  65. package/dist/{index-C9HOsq0v.js → index-DvVCTYVh.js} +1 -1
  66. package/dist/{index-3cal5Crf.js → index-DxkyGhLq.js} +9 -9
  67. package/dist/{index-DnwoMUg-.js → index-H50yBk-G.js} +1 -1
  68. package/dist/{index-ziYFMe26.js → index-JDYQ7e_j.js} +3 -3
  69. package/dist/{index-BcGf92gd.js → index-JYlCBixV.js} +24 -21
  70. package/dist/{index-CPPpEEkl.js → index-fxGxOKSf.js} +10 -10
  71. package/dist/{index-EZiP7ATV.js → index-jD3VA_Wp.js} +1 -1
  72. package/dist/{index-M-cFQZfx.js → index-l7oroAM_.js} +1 -1
  73. package/dist/{index.esm2017-Bkj89W-b.js → index.esm2017-uOw4t7a-.js} +90 -90
  74. package/dist/{loading--fQbVp4h.js → loading-LKg7ETnZ.js} +1 -1
  75. package/dist/{membership-Bz5Os9GI.js → membership-Ce1306Ft.js} +3 -3
  76. package/dist/{money-m-8Q9Cic.js → money-asfLa4Lt.js} +1 -1
  77. package/dist/{number-BL2f3-uB.js → number-CQDR1ZIe.js} +1 -1
  78. package/dist/objectid-CPbhwwne.js +145 -0
  79. package/dist/{plugins-BHMrdAR2.js → plugins-Du32AI_-.js} +1189 -1189
  80. package/dist/{reward-fbGsZP19.js → reward-BgF2Ig1i.js} +1 -1
  81. package/dist/{rule-C4G5Qgb9.js → rule-B3tx1ogH.js} +3 -3
  82. package/dist/{rule-builder-t9GpaWj-.js → rule-builder-CrturC5Q.js} +1 -1
  83. package/dist/{template-DQJGwq08.js → template-DcEa3i5E.js} +4 -4
  84. package/dist/{trigger-Iva-VDNY.js → trigger-c_TWDwnV.js} +4 -4
  85. package/dist/{user-Ck3D1xfX.js → user-CUTqlbQz.js} +1 -1
  86. package/dist/{vue-i18n-D3N-L0QD.js → vue-i18n-bLo1ykBN.js} +157 -157
  87. package/dist/{xlsx-CcF8Y9u8.js → xlsx-BUKrzqzV.js} +1 -1
  88. package/package.json +6 -4
  89. package/dist/Collections-CCwwox7X.js +0 -449
  90. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js +0 -169
  91. package/dist/Member-CLlV_z9S.js +0 -69
  92. package/dist/objectid-Uw4EvP0I.js +0 -145
@@ -1,27 +1,27 @@
1
1
  import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
2
2
  import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-D3N-L0QD.js";
4
- import { u as ue } from "./loading--fQbVp4h.js";
5
- import { c as we, p as K } from "./plugins-BHMrdAR2.js";
3
+ import { u as Z } from "./vue-i18n-bLo1ykBN.js";
4
+ import { u as ue } from "./loading-LKg7ETnZ.js";
5
+ import { c as we, p as K } from "./plugins-Du32AI_-.js";
6
6
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
7
7
  import { Z as N } from "./zod-Bg2FbC-D.js";
8
8
  import { u as W } from "./app-wDQR6dpb.js";
9
- import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DPA6NyE3.js";
10
- import { u as me } from "./reward-fbGsZP19.js";
11
- import { a as be, b as xe } from "./index-CPPpEEkl.js";
12
- import { i as le, j as se } from "./index-DOCmOcoV.js";
13
- import "./index-3cal5Crf.js";
14
- import "./index-CPhjQE7M.js";
15
- import "./index-KMvP72cy.js";
16
- import { C as fe } from "./membership-Bz5Os9GI.js";
17
- import { t as ee } from "./helper-BPWsTSo7.js";
9
+ import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-BES7zeqg.js";
10
+ import { u as me } from "./reward-BgF2Ig1i.js";
11
+ import { a as be, b as xe } from "./index-fxGxOKSf.js";
12
+ import { i as le, j as se } from "./index-DXsJh2qk.js";
13
+ import "./index-DxkyGhLq.js";
14
+ import "./index-CZh5_4r2.js";
15
+ import "./index-C_uA0tpL.js";
16
+ import { C as fe } from "./membership-Ce1306Ft.js";
17
+ import { t as ee } from "./helper-B4n2GzUT.js";
18
18
  import { c as H } from "./object-qECH92oz.js";
19
19
  import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
20
- import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BCtEZ3YW.js";
21
- import { T as Se, _ as Fe, a as ke } from "./trigger-Iva-VDNY.js";
22
- import { O as $e } from "./objectid-Uw4EvP0I.js";
23
- import { r as pe } from "./index-DnwoMUg-.js";
24
- import { u as Pe } from "./business-CaL8dhbB.js";
20
+ import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BRPkxkU5.js";
21
+ import { T as Se, _ as Fe, a as ke } from "./trigger-c_TWDwnV.js";
22
+ import { O as $e } from "./objectid-CPbhwwne.js";
23
+ import { r as pe } from "./index-H50yBk-G.js";
24
+ import { u as Pe } from "./business-BMaADexo.js";
25
25
  const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
26
26
  __name: "ReferralRewadGroupCard",
27
27
  props: {
@@ -1,27 +1,27 @@
1
- import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as w, Fragment as b, createVNode as r, unref as t, withCtx as g, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as x, resolveDynamicComponent as q } from "vue";
1
+ import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, resolveDynamicComponent 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-BHMrdAR2.js";
5
- import { u as W } from "./loading--fQbVp4h.js";
6
- import { u as X } from "./business-CaL8dhbB.js";
7
- import { u as Y } from "./campaign-D1IDv9pf.js";
8
- import { g as V, a as I } from "./campaign-BEPgE5CH.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-BlTxHhHW.js";
11
- import { u as te } from "./template-DQJGwq08.js";
12
- import { u as oe } from "./vue-i18n-D3N-L0QD.js";
13
- import { c as _ } from "./index-syqkAq4m.js";
14
- const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, se = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = /* @__PURE__ */ j({
4
+ import { p as Q } from "./plugins-Du32AI_-.js";
5
+ import { u as W } from "./loading-LKg7ETnZ.js";
6
+ import { u as X } from "./business-BMaADexo.js";
7
+ import { u as Y } from "./campaign-Cy1er8EV.js";
8
+ import { g as Z, a as V, b as I } from "./campaign-C8fB-bPD.js";
9
+ import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bg5H5bLD.js";
11
+ import { u as oe } from "./template-DcEa3i5E.js";
12
+ import { u as ae } from "./vue-i18n-bLo1ykBN.js";
13
+ import { c as _ } from "./index-CTnXuOHy.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" }, Ke = /* @__PURE__ */ j({
15
15
  __name: "Point",
16
- setup(he) {
17
- const { t: s } = oe(), B = {
16
+ setup(be) {
17
+ const { t: s } = ae(), B = {
18
18
  label: s("connect.program.common.actions.create", {
19
19
  type: s("connect.program.point.title").toLowerCase()
20
20
  }),
21
21
  value: "create",
22
22
  isPrimary: !0,
23
23
  prependIcon: "add"
24
- }, $ = te("COIN", G()), h = X(), m = Y(), { global: K, minor: C } = W, i = P({
24
+ }, $ = oe("COIN", G()), h = X(), m = Y(), { global: K, minor: x } = W, i = P({
25
25
  searchKey: "",
26
26
  location: null
27
27
  }), u = A(
@@ -35,6 +35,7 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
35
35
  },
36
36
  {
37
37
  header: s("connect.program.common.table.status"),
38
+ accessorFn: (e) => Z(e),
38
39
  cell(e) {
39
40
  return V(e.row.original);
40
41
  }
@@ -58,7 +59,7 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
58
59
  }
59
60
  ], v = P();
60
61
  async function F(e) {
61
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await C(
62
+ await Q.remove(`Are you sure you want to remove ${e.name}?`) && await x(
62
63
  async () => {
63
64
  await _.delete(e._id), await m.read("COIN");
64
65
  },
@@ -73,8 +74,8 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
73
74
  await o(p);
74
75
  });
75
76
  async function o(p) {
76
- var y;
77
- (y = v.value) == null || y.showSheet(
77
+ var g;
78
+ (g = v.value) == null || g.showSheet(
78
79
  !0,
79
80
  "COIN",
80
81
  e ? await _.readById(e._id) : void 0,
@@ -83,7 +84,7 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
83
84
  }
84
85
  }
85
86
  async function R(e) {
86
- await C(
87
+ await x(
87
88
  async () => {
88
89
  e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await m.read("COIN");
89
90
  },
@@ -98,22 +99,22 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
98
99
  await m.read("COIN");
99
100
  });
100
101
  }), (e, o) => {
101
- const p = l("FmPill"), y = l("FmPageHead"), k = l("FmSearch"), O = l("FmTable"), S = l("FmButton"), U = l("FmListItem"), D = l("FmList"), T = l("FmCard");
102
- return d(), w(b, null, [
103
- r(y, {
102
+ const p = l("FmPill"), g = l("FmPageHead"), k = l("FmSearch"), O = l("FmTable"), S = l("FmButton"), U = l("FmListItem"), D = l("FmList"), T = l("FmCard");
103
+ return d(), b(w, null, [
104
+ r(g, {
104
105
  title: t(s)("connect.program.point.title"),
105
106
  actions: t(u).length > 0 && t(h).isPremium ? [B] : [],
106
107
  "onClick:action": o[0] || (o[0] = () => f())
107
108
  }, {
108
- title: g(() => [
109
- n("div", ae, [
110
- n("span", ne, c(t(s)("connect.program.point.title")), 1),
109
+ title: y(() => [
110
+ n("div", ne, [
111
+ n("span", se, c(t(s)("connect.program.point.title")), 1),
111
112
  r(p, { variant: "premium" })
112
113
  ])
113
114
  ]),
114
115
  _: 1
115
116
  }, 8, ["title", "actions"]),
116
- n("div", se, [
117
+ n("div", ie, [
117
118
  r(k, {
118
119
  modelValue: t(i).searchKey,
119
120
  "onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
@@ -121,10 +122,10 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
121
122
  placeholder: "search",
122
123
  collapsible: ""
123
124
  }, null, 8, ["modelValue"]),
124
- t(m).campaigns.point && t(m).campaigns.point.length > 0 ? (d(), w(b, { key: 0 }, [
125
- n("div", ie, [
126
- n("div", re, [
127
- r(Z, {
125
+ t(m).campaigns.point && t(m).campaigns.point.length > 0 ? (d(), b(w, { key: 0 }, [
126
+ n("div", re, [
127
+ n("div", le, [
128
+ r(ee, {
128
129
  modelValue: t(i).location,
129
130
  "onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
130
131
  label: "Location: ",
@@ -152,25 +153,25 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
152
153
  "hide-footer": t(u).length < 10
153
154
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
154
155
  r(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
155
- default: g(() => [
156
- (d(!0), w(b, null, H(t(u).filter(
156
+ default: y(() => [
157
+ (d(!0), b(w, null, H(t(u).filter(
157
158
  (a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
158
- ), (a) => (d(), x(U, {
159
+ ), (a) => (d(), C(U, {
159
160
  key: a._id.toString(),
160
161
  onClick: (L) => f(a),
161
162
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
162
163
  }, {
163
- default: g(() => [
164
- n("div", le, [
165
- n("div", ce, [
166
- (d(), x(q(t(V)(a)))),
167
- n("div", me, c(t(s)("program.point.used", { count: a.currentReceive ?? 0 })), 1)
164
+ default: y(() => [
165
+ n("div", ce, [
166
+ n("div", me, [
167
+ (d(), C(q(t(V)(a)))),
168
+ n("div", de, c(t(s)("program.point.used", { count: a.currentReceive ?? 0 })), 1)
168
169
  ]),
169
- n("div", de, [
170
- n("div", pe, c(a.name), 1),
171
- n("div", ue, c(t(I)(a)), 1)
170
+ n("div", pe, [
171
+ n("div", ue, c(a.name), 1),
172
+ n("div", fe, c(t(I)(a)), 1)
172
173
  ]),
173
- n("div", fe, " Point received: " + c(a.currentReceive ?? 0), 1)
174
+ n("div", ge, " Point received: " + c(a.currentReceive ?? 0), 1)
174
175
  ]),
175
176
  r(S, {
176
177
  icon: "delete",
@@ -184,19 +185,19 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
184
185
  ]),
185
186
  _: 1
186
187
  })
187
- ], 64)) : (d(), x(T, {
188
+ ], 64)) : (d(), C(T, {
188
189
  key: 1,
189
190
  variant: "outlined",
190
191
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
191
192
  }, {
192
- default: g(() => [
193
+ default: y(() => [
193
194
  o[6] || (o[6] = n("img", {
194
195
  src: z,
195
196
  class: "aspect-square w-[150px]"
196
197
  }, null, -1)),
197
198
  n("div", ye, [
198
- n("div", ge, c(t(s)("connect.program.point.empty_state.title")), 1),
199
- n("div", _e, c(t(s)("connect.program.point.empty_state.description")), 1)
199
+ n("div", _e, c(t(s)("connect.program.point.empty_state.title")), 1),
200
+ n("div", he, c(t(s)("connect.program.point.empty_state.description")), 1)
200
201
  ]),
201
202
  r(S, {
202
203
  variant: "primary",
@@ -208,7 +209,7 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
208
209
  ]),
209
210
  _: 1
210
211
  })),
211
- r(ee, {
212
+ r(te, {
212
213
  ref_key: "sheetRef",
213
214
  ref: v,
214
215
  "onSubmit:modelValue": R
@@ -219,5 +220,5 @@ const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-60
219
220
  }
220
221
  });
221
222
  export {
222
- $e as default
223
+ Ke as default
223
224
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as H, ref as S, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as a, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
1
+ import { defineComponent as H, ref as P, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as a, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
2
2
  import { _ as W } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as X, components as Y } from "@feedmepos/ui-library";
4
- import { c as O, p as I } from "./plugins-BHMrdAR2.js";
5
- import { u as Z } from "./loading--fQbVp4h.js";
6
- import { u as ee } from "./business-CaL8dhbB.js";
7
- import { u as oe } from "./campaign-D1IDv9pf.js";
8
- import { u as te } from "./vue-i18n-D3N-L0QD.js";
9
- import { g as V } from "./campaign-BEPgE5CH.js";
10
- import { e as L } from "./effect-COM0bU6H.js";
11
- import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
12
- import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BlTxHhHW.js";
13
- import { u as se } from "./template-DQJGwq08.js";
14
- import { c as u } from "./index-syqkAq4m.js";
15
- const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, pe = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, 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" }, Te = /* @__PURE__ */ H({
4
+ import { c as O, p as I } from "./plugins-Du32AI_-.js";
5
+ import { u as Z } from "./loading-LKg7ETnZ.js";
6
+ import { u as ee } from "./business-BMaADexo.js";
7
+ import { u as oe } from "./campaign-Cy1er8EV.js";
8
+ import { u as te } from "./vue-i18n-bLo1ykBN.js";
9
+ import { g as ne, a as V } from "./campaign-C8fB-bPD.js";
10
+ import { e as L } from "./effect-BsKfDszn.js";
11
+ import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
12
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bg5H5bLD.js";
13
+ import { u as ce } from "./template-DcEa3i5E.js";
14
+ import { c as u } from "./index-CTnXuOHy.js";
15
+ const 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" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { 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" }, ye = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ H({
16
16
  __name: "Promotion",
17
- setup(_e) {
17
+ setup(he) {
18
18
  const { t } = te(), T = {
19
19
  label: t("connect.promotion.createCampaign"),
20
20
  value: "create",
@@ -25,7 +25,7 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
25
25
  value: "sync",
26
26
  isPrimary: !1,
27
27
  prependIcon: "refresh"
28
- }, M = se("PROMOTION", X()), x = ee(), f = oe(), { global: R, minor: _ } = Z, c = S({
28
+ }, M = ce("PROMOTION", X()), x = ee(), f = oe(), { global: R, minor: _ } = Z, c = P({
29
29
  searchKey: "",
30
30
  location: null
31
31
  }), l = q(
@@ -39,6 +39,7 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
39
39
  },
40
40
  {
41
41
  header: t("connect.promotion.status"),
42
+ accessorFn: (e) => ne(e),
42
43
  cell(e) {
43
44
  return V(e.row.original);
44
45
  }
@@ -64,7 +65,7 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
64
65
  });
65
66
  }
66
67
  }
67
- ], C = S();
68
+ ], C = P();
68
69
  async function F(e) {
69
70
  await I.remove(
70
71
  t("connect.promotion.confirmRemove", { name: e.name })
@@ -142,7 +143,7 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
142
143
  actions: a(l).length > 0 ? [T, B] : [],
143
144
  "onClick:action": A
144
145
  }, null, 8, ["title", "actions"]),
145
- s("div", ce, [
146
+ s("div", ie, [
146
147
  i(d, {
147
148
  modelValue: c.value.searchKey,
148
149
  "onUpdate:modelValue": n[0] || (n[0] = (o) => c.value.searchKey = o),
@@ -151,9 +152,9 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
151
152
  collapsible: ""
152
153
  }, null, 8, ["modelValue", "placeholder"]),
153
154
  a(l) && a(l).length > 0 ? (m(), h(w, { key: 0 }, [
154
- s("div", ie, [
155
- s("div", re, [
156
- i(ne, {
155
+ s("div", re, [
156
+ s("div", le, [
157
+ i(ae, {
157
158
  modelValue: c.value.location,
158
159
  "onUpdate:modelValue": n[1] || (n[1] = (o) => c.value.location = o),
159
160
  label: a(t)("connect.promotion.location"),
@@ -186,12 +187,12 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
186
187
  (o) => o.name.toLowerCase().includes(c.value.searchKey.toLowerCase())
187
188
  ), (o) => (m(), b(U, {
188
189
  key: o._id.toString(),
189
- onClick: (P) => y(o),
190
+ onClick: (S) => y(o),
190
191
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
191
192
  }, {
192
193
  default: v(() => [
193
- s("div", le, [
194
- s("div", me, [
194
+ s("div", me, [
195
+ s("div", pe, [
195
196
  (m(), b(Q(a(V)(o)))),
196
197
  i(D, {
197
198
  class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
@@ -199,16 +200,16 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
199
200
  label: `${a(O).title(o.effect.options.target)} promotion`
200
201
  }, null, 8, ["label"])
201
202
  ]),
202
- s("div", pe, [
203
- s("div", de, g(o.name), 1),
204
- s("div", ue, g(a(L)(o.effect)), 1)
203
+ s("div", de, [
204
+ s("div", ue, g(o.name), 1),
205
+ s("div", fe, g(a(L)(o.effect)), 1)
205
206
  ])
206
207
  ]),
207
208
  i(k, {
208
209
  icon: "delete",
209
210
  "icon-color": "neutral-gray-400",
210
211
  variant: "tertiary",
211
- onClick: (P) => (P.stopPropagation(), F(o))
212
+ onClick: (S) => (S.stopPropagation(), F(o))
212
213
  }, null, 8, ["onClick"])
213
214
  ]),
214
215
  _: 2
@@ -226,9 +227,9 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
226
227
  src: W,
227
228
  class: "aspect-square w-[150px]"
228
229
  }, null, -1)),
229
- s("div", fe, [
230
- s("div", ye, g(a(t)("connect.promotion.createPromotionCampaign")), 1),
231
- s("div", ge, g(a(t)("connect.promotion.description")), 1)
230
+ s("div", ye, [
231
+ s("div", ge, g(a(t)("connect.promotion.createPromotionCampaign")), 1),
232
+ s("div", _e, g(a(t)("connect.promotion.description")), 1)
232
233
  ]),
233
234
  i(k, {
234
235
  variant: "primary",
@@ -240,7 +241,7 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
240
241
  _: 1
241
242
  }))
242
243
  ]),
243
- i(ae, {
244
+ i(se, {
244
245
  ref_key: "sheetRef",
245
246
  ref: C,
246
247
  "onSubmit:modelValue": N
@@ -250,5 +251,5 @@ const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-
250
251
  }
251
252
  });
252
253
  export {
253
- Te as default
254
+ Be as default
254
255
  };
@@ -0,0 +1,244 @@
1
+ import { defineComponent as _, h as n, ref as P, watch as T, onBeforeMount as k, resolveComponent as V, openBlock as N, createElementBlock as B, Fragment as U, createVNode as m, unref as o, createElementVNode as f } from "vue";
2
+ import { u as A, _ as z } from "./usePagination-BeF5K3M7.js";
3
+ import { _ as x } from "./FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js";
4
+ import { c as u, a as q } from "./plugins-Du32AI_-.js";
5
+ import { useDialog as Y, components as w } from "@feedmepos/ui-library";
6
+ import "./index-fxGxOKSf.js";
7
+ import { H as c, j as h } from "./index-DXsJh2qk.js";
8
+ import "./index-DxkyGhLq.js";
9
+ import "./index-CZh5_4r2.js";
10
+ import "./index-C_uA0tpL.js";
11
+ import { h as L } from "./moment-BWErdI6_.js";
12
+ import { u as j } from "./vue-i18n-bLo1ykBN.js";
13
+ import { u as H, v as O, x as $ } from "./index.esm2017-uOw4t7a-.js";
14
+ import { g as K, S as W, u as G } from "./index-JDYQ7e_j.js";
15
+ import { o as Q } from "./objectId-dwaoBfJX.js";
16
+ const J = () => {
17
+ if (!W.getBusinessId()) throw new Error("Invalid business ID");
18
+ return G("queues");
19
+ }, X = {
20
+ async readImportMember(d, p) {
21
+ return K(
22
+ await J().get("", {
23
+ params: { ...d, ...p }
24
+ })
25
+ );
26
+ }
27
+ }, Z = { class: "p-24 flex flex-col gap-y-2" }, ee = { class: "flex items-center justify-between" }, te = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, ye = /* @__PURE__ */ _({
28
+ __name: "Queue",
29
+ setup(d) {
30
+ const { t: p } = j(), S = Y(), F = [
31
+ {
32
+ header: "ID",
33
+ accessorKey: "_id",
34
+ meta: {
35
+ maxWidth: "100px"
36
+ },
37
+ cell(t) {
38
+ return n("div", { class: "flex items-center" }, [
39
+ n(w.FmIcon, {
40
+ name: "content_copy",
41
+ outline: !0,
42
+ size: "sm",
43
+ class: "cursor-pointer mr-4",
44
+ onClick: (e) => {
45
+ e.preventDefault(), e.stopPropagation(), q(t.row.original._id.toString());
46
+ }
47
+ }),
48
+ n(
49
+ "div",
50
+ { class: "pr-2 text-ellipsis overflow-hidden" },
51
+ t.row.original._id.toString()
52
+ )
53
+ ]);
54
+ },
55
+ enableSorting: !1
56
+ },
57
+ {
58
+ header: "Type",
59
+ accessorFn: (t) => u.title(t.type.replace("_", " ")),
60
+ enableSorting: !1
61
+ },
62
+ {
63
+ header: "Status",
64
+ accessorFn: (t) => {
65
+ var e;
66
+ return t.status ? u.title((e = t.status) == null ? void 0 : e.toString()) : "-";
67
+ },
68
+ cell(t) {
69
+ const e = t.row.original.status;
70
+ return n(w.FmChip, {
71
+ label: e ? u.title(e) : "-",
72
+ compact: !0,
73
+ class: I(e)
74
+ });
75
+ },
76
+ enableSorting: !1
77
+ },
78
+ {
79
+ header: "Ref",
80
+ accessorKey: "ref",
81
+ enableSorting: !1
82
+ },
83
+ {
84
+ header: "Created at",
85
+ accessorFn: (t) => L(Q(t._id.toString())).format("D MMM YYYY, hh:mmA"),
86
+ enableSorting: !0
87
+ },
88
+ {
89
+ header: "Context",
90
+ cell(t) {
91
+ var r, a;
92
+ const e = ((a = (r = t.row.original.context) == null ? void 0 : r.context) == null ? void 0 : a.file) || null;
93
+ return e != null && e.downloadUrl && (e != null && e.originalName) ? n(
94
+ "a",
95
+ {
96
+ class: "fm-typo-en-link-md-600",
97
+ href: e.downloadUrl,
98
+ download: e.originalName,
99
+ target: "_blank",
100
+ rel: "noopener"
101
+ },
102
+ e.originalName
103
+ ) : e != null && e.originalName && (e != null && e.isFbFileDeleted) ? n("div", null, e.originalName) : n("div", null, "-");
104
+ },
105
+ enableSorting: !1
106
+ },
107
+ {
108
+ header: "Failed reason",
109
+ cell(t) {
110
+ return n(w.FmButton, {
111
+ icon: "visibility",
112
+ variant: "tertiary",
113
+ disabled: !t.row.original.failedReason,
114
+ onClick: (e) => {
115
+ e.preventDefault(), e.stopPropagation(), D(t.row.original.failedReason);
116
+ }
117
+ });
118
+ },
119
+ enableSorting: !1
120
+ }
121
+ ], I = (t) => {
122
+ switch (t) {
123
+ case c.enum.ACTIVE:
124
+ return "text-fm-color-typo-info bg-fm-color-system-info-100";
125
+ case c.enum.WAITING:
126
+ return "text-fm-color-typo-warning bg-fm-color-system-warning-100";
127
+ case c.enum.COMPLETED:
128
+ return "text-fm-color-typo-success bg-fm-color-system-success-100";
129
+ case c.enum.FAILED:
130
+ return "text-fm-color-typo-error bg-fm-color-system-error-100";
131
+ default:
132
+ return "text-fm-color-typo-primary bg-fm-color-system-primary-100";
133
+ }
134
+ }, C = _({
135
+ name: "FailedReasonDialog",
136
+ props: {
137
+ data: {
138
+ type: String,
139
+ required: !0
140
+ }
141
+ },
142
+ setup(t) {
143
+ return () => n("pre", t.data);
144
+ }
145
+ });
146
+ async function D(t) {
147
+ S.open({
148
+ title: "Failed Reason",
149
+ closeButton: !0,
150
+ dismissAway: !0,
151
+ contentComponent: C,
152
+ contentComponentProps: {
153
+ data: t
154
+ }
155
+ });
156
+ }
157
+ const v = async (t) => {
158
+ const e = H(), r = O(e, t);
159
+ return await $(r);
160
+ }, E = c.options.map((t) => ({ label: u.title(t), value: t })), l = P({
161
+ type: [h.enum.MEMBER_IMPORTED],
162
+ status: []
163
+ }), { tableMeta: i, rowData: M, onSort: R, debouncedFetchData: g } = A(
164
+ async (t) => {
165
+ const e = {
166
+ ...l.value
167
+ }, r = await X.readImportMember(t, e);
168
+ return await Promise.all(
169
+ r.resources.map(async (a) => {
170
+ var y, b;
171
+ const s = (b = (y = a.context) == null ? void 0 : y.context) == null ? void 0 : b.file;
172
+ s != null && s.isFbFileDeleted || (s.downloadUrl = await v(s == null ? void 0 : s.fbFilePath));
173
+ })
174
+ ), {
175
+ resources: r.resources,
176
+ meta: r.meta
177
+ };
178
+ }
179
+ );
180
+ return T(
181
+ l,
182
+ () => {
183
+ g();
184
+ },
185
+ { deep: !0 }
186
+ ), k(async () => {
187
+ await g();
188
+ }), (t, e) => {
189
+ const r = V("FmPageHead");
190
+ return N(), B(U, null, [
191
+ m(r, {
192
+ title: o(p)("connect.queue.title")
193
+ }, null, 8, ["title"]),
194
+ f("div", Z, [
195
+ f("div", ee, [
196
+ f("div", te, [
197
+ m(x, {
198
+ class: "cursor-pointer text-fm-color-neutral-gray-400",
199
+ "right-icon": "keyboard_arrow_down",
200
+ modelValue: o(l).type,
201
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => o(l).type = a),
202
+ label: "Type: ",
203
+ "show-item-label": !0,
204
+ items: [
205
+ {
206
+ label: "Member Imported",
207
+ value: o(h).enum.MEMBER_IMPORTED
208
+ }
209
+ ]
210
+ }, null, 8, ["modelValue", "items"]),
211
+ m(x, {
212
+ class: "cursor-pointer text-fm-color-neutral-gray-400",
213
+ "right-icon": "keyboard_arrow_down",
214
+ modelValue: o(l).status,
215
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => o(l).status = a),
216
+ label: "Status: ",
217
+ "show-item-label": !0,
218
+ items: o(E)
219
+ }, null, 8, ["modelValue", "items"])
220
+ ])
221
+ ]),
222
+ m(z, {
223
+ loading: o(i).isLoading,
224
+ "row-data": o(M),
225
+ "row-count": o(i).totalRows,
226
+ "column-defs": F,
227
+ "page-count": o(i).pageCount,
228
+ "page-index": o(i).pageIndex,
229
+ "page-size": o(i).pageSize,
230
+ "shrink-at": !1,
231
+ onSortChange: o(R),
232
+ onPageChange: e[2] || (e[2] = (a) => o(g)({
233
+ pageSize: a.pageSize,
234
+ pageIndex: a.pageIndex
235
+ }))
236
+ }, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"])
237
+ ])
238
+ ], 64);
239
+ };
240
+ }
241
+ });
242
+ export {
243
+ ye as default
244
+ };