@feedmepos/mf-connect 0.1.0-beta.72 → 0.1.0-beta.74

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 (90) hide show
  1. package/dist/{Analytic-CeQ6Tgo4.js → Analytic-CmX1CjHI.js} +11 -11
  2. package/dist/{App-B94F1eM6.js → App-T0HK84dx.js} +6 -6
  3. package/dist/{AuditLogs-CduUWfDd.js → AuditLogs-0ERaLqfa.js} +16 -15
  4. package/dist/{Bin-muOo03RK.js → Bin-C7utgPUn.js} +8 -8
  5. package/dist/{Broadcast-CSco_Ev_.js → Broadcast-e2sHc8rv.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cfwv0VSC.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-mlnLZOdy.js} +14 -8
  7. package/dist/{Card-VojKGWaD.js → Card-Bi1q3NGE.js} +164 -155
  8. package/dist/{Collections-B8dsbCQ6.js → Collections-CJYy94Sc.js} +19 -18
  9. package/dist/{Credit-Ck_IuJMF.js → Credit-Mbgev3fe.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CkEPB1Ri.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCIj2_sx.js} +29 -28
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CA1awHcc.js → EffectSheet.vue_vue_type_style_index_0_lang-CGiI-3HJ.js} +6 -6
  12. package/dist/{Experience-CP6Lmado.js → Experience-BE9onJDQ.js} +9 -9
  13. package/dist/{Game-BfkyvrxR.js → Game-CxVwNVRg.js} +10 -10
  14. package/dist/{Index-CsjZUBT3.js → Index-NdgHNGa3.js} +10 -10
  15. package/dist/{Marketing-D-P76e73.js → Marketing-Deds20Ye.js} +6 -6
  16. package/dist/{Member-DplZWFjl.js → Member-BiwCcUbl.js} +106 -97
  17. package/dist/{MemberList-rmdZQk6G.js → MemberList-DCR44Sk4.js} +287 -282
  18. package/dist/{MemberTransactions-BLANcbUF.js → MemberTransactions-CYPPTT9t.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cfks94UO.js → MessageInput.vue_vue_type_script_setup_true_lang-j3cmjEyQ.js} +7 -6
  20. package/dist/{Mission-n-ctxUhM.js → Mission-DYk_Vv35.js} +10 -10
  21. package/dist/{Overview-DZlApGRk.js → Overview-CsRent_o.js} +20 -19
  22. package/dist/{Point-COtP0jzH.js → Point-BV5qm3r7.js} +9 -9
  23. package/dist/{Promotion-DxOTF9a5.js → Promotion-ieE1dY52.js} +10 -10
  24. package/dist/{Queue-CEIn9dZ3.js → Queue-DkIuyH5Y.js} +76 -67
  25. package/dist/{Record-3ZeBNdJL.js → Record-BO4eYofF.js} +17 -16
  26. package/dist/{Reward-QiI0aowk.js → Reward-DcoWW28K.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cz0tKJVt.js → RewardGroup.vue_vue_type_script_setup_true_lang-6s4ElOcQ.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrfQAYP9.js → RuleGroup.vue_vue_type_script_setup_true_lang-l-qayOI8.js} +15 -14
  29. package/dist/Segment-dTpsHadj.js +794 -0
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-C39_J7OP.js → SelectItems.vue_vue_type_script_setup_true_lang-Dei-K3cP.js} +2 -2
  31. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0fwBafY.js +188 -0
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DC1qZokI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dl30f-41.js} +3 -3
  33. package/dist/{Setting-BUQfywpm.js → Setting-Cnv36Pu0.js} +16 -15
  34. package/dist/{Store-STKhCXHd.js → Store-CTK5EtS1.js} +28 -27
  35. package/dist/{StoreRewards-BbyKdrXv.js → StoreRewards-CnHiDS7A.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BWilzG-3.js → StoreTransactions.vue_vue_type_script_setup_true_lang-o8BduJhH.js} +27 -26
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Cau0aOLA.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CDCQIDZh.js} +1 -1
  38. package/dist/{Tier-yaEA-a64.js → Tier-CcN8habX.js} +22 -21
  39. package/dist/{Title-BZvC2-Jh.js → Title-DtsvtR89.js} +19 -19
  40. package/dist/{Transaction-D8Q5tgJB.js → Transaction-NylYY_6m.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BhhdZbR2.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Book86tM.js} +6 -6
  42. package/dist/{Voucher-troykwYN.js → Voucher-z6XGrJrc.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CA-pu2mD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C0TGO7Cl.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DGgUG7Qj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Du4wOEBs.js} +1 -1
  45. package/dist/{app-CPknSRjl.js → app-Dew6WljN.js} +1 -1
  46. package/dist/{app-B89lfub2.js → app-nEHwJezD.js} +34 -34
  47. package/dist/app.js +1 -1
  48. package/dist/{business-hK-Tmb19.js → business-CXTuYix4.js} +1 -1
  49. package/dist/{campaign-Bz2phAKq.js → campaign-BZs7RPUJ.js} +9 -9
  50. package/dist/{campaign-DxBhaMAH.js → campaign-C18IUOcO.js} +2 -2
  51. package/dist/{campaign.enum-CaW4wKab.js → campaign.enum-C7o8B5Cf.js} +1 -1
  52. package/dist/{campaign.fn-VlvF65nU.js → campaign.fn-CP0x2e6M.js} +2 -2
  53. package/dist/{collectible.enum-CL4zeuNW.js → collectible.enum-QJSyw8dX.js} +1 -1
  54. package/dist/{collection.fn-DonS6vla.js → collection.fn-_9GY8WUr.js} +2 -2
  55. package/dist/{dto-Do28C6Us.js → dto-Cwr4tMef.js} +4 -4
  56. package/dist/{effect-BNoEad9s.js → effect-C3dyQmVR.js} +1 -1
  57. package/dist/{email-addresses-DVlPQOMF.js → email-addresses-DNwlAZV3.js} +1 -1
  58. package/dist/{export-B2HL-u8e.js → export-C11NCFgO.js} +3 -3
  59. package/dist/{helper-B-GwBl7o.js → helper-HHvZd4M_.js} +1 -1
  60. package/dist/{index-DziwUgQ3.js → index-8MnjnTtN.js} +1 -1
  61. package/dist/{index-CJfbls_c.js → index-B0zezW3E.js} +1 -1
  62. package/dist/{index-DLBH6Pz7.js → index-BzIzz7cS.js} +3 -3
  63. package/dist/{index-DrNO2330.js → index-CCTd1lLH.js} +437 -426
  64. package/dist/{index-CyLhq-Cu.js → index-CIKyf9ft.js} +1 -1
  65. package/dist/{index-DDyqoK-5.js → index-CL0DvpMU.js} +1 -1
  66. package/dist/{index-B1zeyOTK.js → index-CT4Hyf4w.js} +6 -6
  67. package/dist/{index-zetVbSGH.js → index-CyXkN89w.js} +2 -2
  68. package/dist/{index-BgaXtrUK.js → index-DJ-RhIDQ.js} +1 -1
  69. package/dist/{index-C00luv9F.js → index-DM6Zvwcl.js} +1 -1
  70. package/dist/{index-DdMBH5E3.js → index-DyfTL0NG.js} +1 -1
  71. package/dist/{plugins-0WrJ_ypd.js → index-jdsxOVkp.js} +2606 -2811
  72. package/dist/{index-DoLnZ0VU.js → index-yrwLRgg0.js} +3 -3
  73. package/dist/{index.esm2017-DUs_L3s2.js → index.esm2017-BMFlbxdx.js} +3 -3
  74. package/dist/{loading-BfH5PK5q.js → loading-ClVTDQc6.js} +1 -1
  75. package/dist/{membership-BSgYE5mw.js → membership-DqMQPgdF.js} +54 -48
  76. package/dist/{money-CXqLCoho.js → money-COS1BMzW.js} +1 -1
  77. package/dist/{number-CGz3yWyy.js → number-BuP5vRmO.js} +1 -1
  78. package/dist/{objectid-CH4l4E6N.js → objectid-B3LrrWLD.js} +1 -1
  79. package/dist/plugins-DWMQmNXZ.js +208 -0
  80. package/dist/{reward-DdFCP398.js → reward-Dh8eazpS.js} +1 -1
  81. package/dist/{rule-Fkz4cRmK.js → rule-CaiZcfw4.js} +3 -3
  82. package/dist/{rule-builder-Cq_MnX2R.js → rule-builder-DOHyUDI2.js} +1 -1
  83. package/dist/{template-DzWwfIhG.js → template-BZCh-lEH.js} +4 -4
  84. package/dist/{trigger-z_YD5Ld4.js → trigger-CUY_7-so.js} +4 -4
  85. package/dist/{user-qQossvab.js → user-DWsuhUnL.js} +1 -1
  86. package/dist/{vue-i18n-CeeBM23W.js → vue-i18n-BXjn2dYe.js} +158 -158
  87. package/dist/{xlsx-BaKm4Is1.js → xlsx-BGsRNT8x.js} +1 -1
  88. package/package.json +1 -1
  89. package/dist/Segment-Df47WLC6.js +0 -568
  90. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CCketLSU.js +0 -186
@@ -1,25 +1,30 @@
1
- import { defineComponent as I, ref as A, watch as D, resolveComponent as k, openBlock as g, createElementBlock as C, Fragment as B, createElementVNode as x, createVNode as h, unref as r, withCtx as M, renderList as $, createBlock as j, toDisplayString as H, normalizeClass as Y, computed as q, createCommentVNode as G } from "vue";
2
- import "./index-DziwUgQ3.js";
3
- import { useDialogChild as J, FmButtonVariant as U, useDialog as Q, useSnackbar as z } from "@feedmepos/ui-library";
4
- import { u as P } from "./vue-i18n-CeeBM23W.js";
5
- import { u as L, w as W } from "./xlsx-BaKm4Is1.js";
6
- import { c as T } from "./_commonjsHelpers-BkfeUUK-.js";
7
- import { useCoreStore as X } from "@feedmepos/mf-common";
8
- import { useRouter as K } from "vue-router";
9
- import { m as O } from "./index-DdMBH5E3.js";
10
- import { R as F } from "./app-B89lfub2.js";
11
- var N = { exports: {} };
12
- (function(S, u) {
1
+ import { defineComponent as D, ref as A, watch as P, resolveComponent as h, openBlock as F, createElementBlock as B, Fragment as S, createElementVNode as x, createVNode as E, unref as r, withCtx as L, renderList as H, createBlock as j, toDisplayString as q, normalizeClass as Y, computed as G, createCommentVNode as J } from "vue";
2
+ import "./index-8MnjnTtN.js";
3
+ import { useDialogChild as Q, FmButtonVariant as O, useDialog as z, useSnackbar as W } from "@feedmepos/ui-library";
4
+ import { u as N } from "./vue-i18n-BXjn2dYe.js";
5
+ import "./index-CT4Hyf4w.js";
6
+ import { c as I } from "./index-CCTd1lLH.js";
7
+ import "./index-CyXkN89w.js";
8
+ import "./index-CL0DvpMU.js";
9
+ import "./index-yrwLRgg0.js";
10
+ import { u as M, w as X } from "./xlsx-BGsRNT8x.js";
11
+ import { c as g } from "./_commonjsHelpers-BkfeUUK-.js";
12
+ import { useCoreStore as K } from "@feedmepos/mf-common";
13
+ import { useRouter as Z } from "vue-router";
14
+ import { m as U } from "./index-DyfTL0NG.js";
15
+ import { R as T } from "./app-nEHwJezD.js";
16
+ var V = { exports: {} };
17
+ (function(C, u) {
13
18
  (function(d, c) {
14
19
  c();
15
- })(T, function() {
20
+ })(g, function() {
16
21
  function d(e, t) {
17
22
  return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
18
23
  }
19
- function c(e, t, i) {
24
+ function c(e, t, l) {
20
25
  var n = new XMLHttpRequest();
21
26
  n.open("GET", e), n.responseType = "blob", n.onload = function() {
22
- p(n.response, t, i);
27
+ p(n.response, t, l);
23
28
  }, n.onerror = function() {
24
29
  console.error("could not download file");
25
30
  }, n.send();
@@ -41,54 +46,54 @@ var N = { exports: {} };
41
46
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
42
47
  }
43
48
  }
44
- var s = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof T == "object" && T.global === T ? T : void 0, R = s.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), p = s.saveAs || (typeof window != "object" || window !== s ? function() {
45
- } : "download" in HTMLAnchorElement.prototype && !R ? function(e, t, i) {
49
+ var s = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof g == "object" && g.global === g ? g : void 0, R = s.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), p = s.saveAs || (typeof window != "object" || window !== s ? function() {
50
+ } : "download" in HTMLAnchorElement.prototype && !R ? function(e, t, l) {
46
51
  var n = s.URL || s.webkitURL, o = document.createElement("a");
47
- t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? m(o) : f(o.href) ? c(e, t, i) : m(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
52
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? m(o) : f(o.href) ? c(e, t, l) : m(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
48
53
  n.revokeObjectURL(o.href);
49
54
  }, 4e4), setTimeout(function() {
50
55
  m(o);
51
56
  }, 0));
52
- } : "msSaveOrOpenBlob" in navigator ? function(e, t, i) {
53
- if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(d(e, i), t);
54
- else if (f(e)) c(e, t, i);
57
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, l) {
58
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(d(e, l), t);
59
+ else if (f(e)) c(e, t, l);
55
60
  else {
56
61
  var n = document.createElement("a");
57
62
  n.href = e, n.target = "_blank", setTimeout(function() {
58
63
  m(n);
59
64
  });
60
65
  }
61
- } : function(e, t, i, n) {
62
- if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return c(e, t, i);
66
+ } : function(e, t, l, n) {
67
+ if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return c(e, t, l);
63
68
  var o = e.type === "application/octet-stream", y = /constructor/i.test(s.HTMLElement) || s.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
64
69
  if ((v || o && y || R) && typeof FileReader < "u") {
65
- var w = new FileReader();
66
- w.onloadend = function() {
67
- var a = w.result;
70
+ var _ = new FileReader();
71
+ _.onloadend = function() {
72
+ var a = _.result;
68
73
  a = v ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = a : location = a, n = null;
69
- }, w.readAsDataURL(e);
74
+ }, _.readAsDataURL(e);
70
75
  } else {
71
- var E = s.URL || s.webkitURL, l = E.createObjectURL(e);
72
- n ? n.location = l : location.href = l, n = null, setTimeout(function() {
73
- E.revokeObjectURL(l);
76
+ var k = s.URL || s.webkitURL, i = k.createObjectURL(e);
77
+ n ? n.location = i : location.href = i, n = null, setTimeout(function() {
78
+ k.revokeObjectURL(i);
74
79
  }, 4e4);
75
80
  }
76
81
  });
77
- s.saveAs = p.saveAs = p, S.exports = p;
82
+ s.saveAs = p.saveAs = p, C.exports = p;
78
83
  });
79
- })(N);
80
- var Z = N.exports;
81
- const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne = {
84
+ })(V);
85
+ var ee = V.exports;
86
+ const te = { class: "space-y-8 mb-10" }, ne = { class: "flex justify-end" }, oe = {
82
87
  key: 1,
83
88
  class: /* @__PURE__ */ Y([
84
89
  "flex items-center",
85
90
  "border border-fm-color-neutral-gray-300",
86
91
  "p-16 space-x-16 rounded-md"
87
92
  ])
88
- }, oe = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ae = /* @__PURE__ */ I({
93
+ }, ae = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ie = /* @__PURE__ */ D({
89
94
  __name: "ImportMemberDialog",
90
- setup(S) {
91
- const { t: u } = P(), { emitData: d } = J(), c = A(null), f = A(null), m = A({
95
+ setup(C) {
96
+ const { t: u } = N(), { emitData: d } = Q(), c = A(null), f = A(null), m = A({
92
97
  resetCollectionExpiryBalance: !0
93
98
  }), s = [
94
99
  "Id",
@@ -138,7 +143,7 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
138
143
  t();
139
144
  break;
140
145
  case "xlsx":
141
- i();
146
+ l();
142
147
  break;
143
148
  }
144
149
  }
@@ -146,20 +151,20 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
146
151
  const n = new Blob([s.join(",")], {
147
152
  type: "text/csv;charset=utf-8;"
148
153
  });
149
- Z.saveAs(n, "ImportMemberTemplate.csv");
154
+ ee.saveAs(n, "ImportMemberTemplate.csv");
150
155
  }
151
- function i() {
152
- const n = L.aoa_to_sheet([s]), o = L.book_new();
153
- L.book_append_sheet(o, n, "Sheet1"), W(o, "ImportMemberTemplate.xlsx");
156
+ function l() {
157
+ const n = M.aoa_to_sheet([s]), o = M.book_new();
158
+ M.book_append_sheet(o, n, "Sheet1"), X(o, "ImportMemberTemplate.xlsx");
154
159
  }
155
- return D(c, () => {
160
+ return P(c, () => {
156
161
  d({ file: c.value, config: m.value });
157
162
  }), (n, o) => {
158
- const y = k("FmSwitch"), v = k("FmButton"), w = k("FmMenuItem"), E = k("FmMenu"), l = k("FmDropField");
159
- return g(), C(B, null, [
160
- x("div", ee, [
163
+ const y = h("FmSwitch"), v = h("FmButton"), _ = h("FmMenuItem"), k = h("FmMenu"), i = h("FmDropField");
164
+ return F(), B(S, null, [
165
+ x("div", te, [
161
166
  o[3] || (o[3] = x("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
162
- h(y, {
167
+ E(y, {
163
168
  "model-value": r(m).resetCollectionExpiryBalance ?? !0,
164
169
  "onUpdate:modelValue": o[0] || (o[0] = (a) => r(m).resetCollectionExpiryBalance = a),
165
170
  label: "Replace Existing Free Credit",
@@ -167,17 +172,17 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
167
172
  "label-placement": "right"
168
173
  }, null, 8, ["model-value"])
169
174
  ]),
170
- x("div", te, [
171
- h(E, null, {
172
- "menu-button": M(() => [
173
- h(v, {
175
+ x("div", ne, [
176
+ E(k, null, {
177
+ "menu-button": L(() => [
178
+ E(v, {
174
179
  variant: "tertiary",
175
180
  icon: "download",
176
181
  label: "Download Template"
177
182
  })
178
183
  ]),
179
- default: M(() => [
180
- (g(), C(B, null, $(R, (a) => h(w, {
184
+ default: L(() => [
185
+ (F(), B(S, null, H(R, (a) => E(_, {
181
186
  key: a.value,
182
187
  icon: a.icon,
183
188
  label: a.label,
@@ -188,19 +193,19 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
188
193
  _: 1
189
194
  })
190
195
  ]),
191
- r(c) ? (g(), C("div", ne, [
192
- h(v, {
193
- variant: r(U).Tertiary,
196
+ r(c) ? (F(), B("div", oe, [
197
+ E(v, {
198
+ variant: r(O).Tertiary,
194
199
  "prepend-icon": "attach_file"
195
200
  }, null, 8, ["variant"]),
196
- x("p", oe, H(r(c).name), 1),
201
+ x("p", ae, q(r(c).name), 1),
197
202
  x("label", {
198
203
  ref_key: "fileLabelRef",
199
204
  ref: f,
200
205
  htmlFor: "file"
201
206
  }, [
202
- h(v, {
203
- variant: r(U).Plain,
207
+ E(v, {
208
+ variant: r(O).Plain,
204
209
  label: r(u)("Replace File"),
205
210
  onClick: o[2] || (o[2] = () => {
206
211
  var a;
@@ -216,7 +221,7 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
216
221
  onChange: p
217
222
  }, null, 32)
218
223
  ], 512)
219
- ])) : (g(), j(l, {
224
+ ])) : (F(), j(i, {
220
225
  key: 0,
221
226
  onFileUpload: o[1] || (o[1] = (a) => c.value = a),
222
227
  accept: ".csv, .xlsx",
@@ -225,11 +230,11 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
225
230
  ], 64);
226
231
  };
227
232
  }
228
- }), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, be = /* @__PURE__ */ I({
233
+ }), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ D({
229
234
  __name: "Member",
230
- setup(S) {
231
- var v, w, E;
232
- const u = K(), { t: d } = P(), c = Q(), f = z(), m = X(), s = {
235
+ setup(C) {
236
+ var v, _, k;
237
+ const u = Z(), { t: d } = N(), c = z(), f = W(), m = K(), s = {
233
238
  label: d("connect.loyalty.member.import"),
234
239
  value: "import",
235
240
  isPrimary: !0,
@@ -242,12 +247,12 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
242
247
  }, p = [
243
248
  {
244
249
  label: d("connect.loyalty.member.tabs.member_list"),
245
- value: F["$connect-LOYALTY_MEMBER_LIST"],
246
- actions: (E = (w = (v = m.sessionUser) == null ? void 0 : v.value) == null ? void 0 : w.role) != null && E.isAdmin ? [R, s] : []
250
+ value: T["$connect-LOYALTY_MEMBER_LIST"],
251
+ actions: (k = (_ = (v = m.sessionUser) == null ? void 0 : v.value) == null ? void 0 : _.role) != null && k.isAdmin ? [R, s] : []
247
252
  }
248
- ], e = q(() => {
249
- var a, b, _;
250
- return u.currentRoute.value.name != F["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
253
+ ], e = G(() => {
254
+ var a, b, w;
255
+ return u.currentRoute.value.name != T["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
251
256
  title: t.value.label,
252
257
  actions: t.value.actions,
253
258
  description: void 0
@@ -255,74 +260,78 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
255
260
  backButton: !0,
256
261
  title: d("connect.loyalty.member.title"),
257
262
  actions: [],
258
- description: `${(a = i.value) == null ? void 0 : a.name} (${(b = i.value) == null ? void 0 : b._id}) (${(_ = i.value) == null ? void 0 : _.phoneNumber})`,
263
+ description: `${(a = l.value) == null ? void 0 : a.name} (${(b = l.value) == null ? void 0 : b._id}) (${(w = l.value) == null ? void 0 : w.phoneNumber})`,
259
264
  onBackButton: async () => {
260
- await u.push({ name: F["$connect-LOYALTY_MEMBER_LIST"] });
265
+ await u.push({ name: T["$connect-LOYALTY_MEMBER_LIST"] });
261
266
  }
262
267
  });
263
268
  }), t = A(
264
- p.find((l) => l.value === u.currentRoute.value.name) ?? p[0]
265
- ), i = A();
266
- async function n(l) {
267
- await u.push({ name: l });
269
+ p.find((i) => i.value === u.currentRoute.value.name) ?? p[0]
270
+ ), l = A();
271
+ async function n(i) {
272
+ await u.push({ name: i });
268
273
  }
269
274
  async function o() {
270
275
  c.open({
271
276
  title: "Upload File",
272
277
  closeButton: !0,
273
278
  dismissAway: !1,
274
- contentComponent: ae,
279
+ contentComponent: ie,
275
280
  primaryActions: { text: "Import", close: !1 }
276
- }).onPrimary(async (l) => {
277
- if (!l) {
281
+ }).onPrimary(async (i) => {
282
+ if (!i) {
278
283
  f.open({
279
284
  type: "error",
280
285
  title: "Please upload a file"
281
286
  });
282
287
  return;
283
288
  }
284
- const { file: a, config: b } = l;
289
+ const { file: a, config: b } = i;
285
290
  if (!a)
286
291
  f.open({
287
292
  type: "error",
288
293
  title: "Please upload a file"
289
294
  });
290
295
  else {
291
- const _ = new FormData();
292
- _.append("file", a), _.append("config", JSON.stringify(b)), await O.import(_), f.open({
296
+ const w = new FormData();
297
+ w.append("file", a), w.append("config", JSON.stringify(b)), await U.import(w), f.open({
293
298
  type: "info",
294
299
  title: "Import begins soon. Check Queue for updates.",
295
300
  action: "View",
296
301
  onAction: async () => {
297
302
  await u.push({
298
- name: F["$connect-QUEUE"]
303
+ name: T["$connect-QUEUE"],
304
+ query: { type: [I.enum.MEMBER_IMPORTED] }
299
305
  });
300
306
  }
301
307
  }), c.close();
302
308
  }
303
309
  });
304
310
  }
305
- function y(l) {
306
- switch (l) {
311
+ function y(i) {
312
+ switch (i) {
307
313
  case "import":
308
314
  o();
309
315
  break;
310
316
  case "queue":
311
- u.push({ name: F["$connect-QUEUE"] });
317
+ u.push({
318
+ name: T["$connect-QUEUE"],
319
+ query: { type: [I.enum.MEMBER_IMPORTED] }
320
+ });
312
321
  break;
313
322
  }
314
323
  }
315
- return D(
324
+ return P(
316
325
  () => u.currentRoute.value.name,
317
- async (l) => {
318
- t.value = p.find((b) => b.value === l) ?? p[0];
326
+ async (i) => {
327
+ t.value = p.find((b) => b.value === i) ?? p[0];
319
328
  const a = u.currentRoute.value.params.id;
320
- a && (i.value = await O.readById(a)), await u.push({ name: l });
329
+ a && (l.value = await U.readById(a)), await u.push({ name: i });
321
330
  }
322
- ), (l, a) => {
323
- const b = k("FmPageHead"), _ = k("FmTabs"), V = k("RouterView");
324
- return g(), C(B, null, [
325
- h(b, {
331
+ ), (i, a) => {
332
+ const b = h("FmPageHead"), w = h("FmTabs"), $ = h("RouterView");
333
+ return F(), B(S, null, [
334
+ E(b, {
326
335
  actions: r(e).actions,
327
336
  title: r(e).title,
328
337
  description: r(e).description,
@@ -331,18 +340,18 @@ const ee = { class: "space-y-8 mb-10" }, te = { class: "flex justify-end" }, ne
331
340
  "onClick:action": y
332
341
  }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
333
342
  x("div", le, [
334
- r(u).currentRoute.value.name != r(F)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (g(), j(_, {
343
+ r(u).currentRoute.value.name != r(T)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (F(), j(w, {
335
344
  key: 0,
336
345
  "model-value": r(t).value,
337
346
  items: p,
338
347
  "onUpdate:modelValue": n
339
- }, null, 8, ["model-value"])) : G("", !0),
340
- h(V)
348
+ }, null, 8, ["model-value"])) : J("", !0),
349
+ E($)
341
350
  ])
342
351
  ], 64);
343
352
  };
344
353
  }
345
354
  });
346
355
  export {
347
- be as default
356
+ ke as default
348
357
  };