@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,31 +1,31 @@
1
- import { defineComponent as ee, computed as E, resolveComponent as h, openBlock as v, createBlock as I, withCtx as T, createElementVNode as _, createElementBlock as D, createVNode as r, createCommentVNode as A, toDisplayString as j, unref as e, Fragment as X, renderList as re, ref as R, isRef as oe, reactive as He, onMounted as fe, watch as we, toRaw as qe, createTextVNode as de, h as Ke } from "vue";
1
+ import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as v, createBlock as I, withCtx as T, createElementVNode as _, createElementBlock as D, createVNode as r, createCommentVNode as A, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as R, isRef as oe, reactive as He, onMounted as fe, watch as we, toRaw as qe, createTextVNode as de, h as Ke } from "vue";
2
2
  import { _ as We } from "./tier-BJDhpH6X.js";
3
3
  import { useDialog as Ae, useDialogChild as Me, components as ze } from "@feedmepos/ui-library";
4
- import { c as B, e as Ce, S as Ye } from "./index-ziYFMe26.js";
5
- import { u as Ee } from "./loading--fQbVp4h.js";
6
- import { u as $e, C as me } from "./membership-Bz5Os9GI.js";
4
+ import { c as B, e as Ce, S as Ye } from "./index-JDYQ7e_j.js";
5
+ import { u as Ee } from "./loading-LKg7ETnZ.js";
6
+ import { u as $e, C as me } from "./membership-Ce1306Ft.js";
7
7
  import { a as Je, c as Ne } from "./object-qECH92oz.js";
8
8
  import { _ as ue } from "./lodash-B5I3zXaY.js";
9
- import { d as se, a as Ge, p as he, n as Xe, f as Fe } from "./plugins-BHMrdAR2.js";
10
- import { u as be } from "./vue-i18n-D3N-L0QD.js";
9
+ import { d as se, a as Ge, p as he, n as Xe, f as Fe } from "./plugins-Du32AI_-.js";
10
+ import { u as be } from "./vue-i18n-bLo1ykBN.js";
11
11
  import { Z, g as J, a as G } from "./zod-Bg2FbC-D.js";
12
- import { z as Q, R as Ze } from "./app-C27ny1rN.js";
13
- import { k as Qe, l as et, m as tt, n as Oe, o as nt } from "./index-DOCmOcoV.js";
12
+ import { z as Q, R as Ze } from "./app-DTlg8MKp.js";
13
+ import { k as Qe, l as et, m as tt, n as Oe, o as nt } from "./index-DXsJh2qk.js";
14
14
  import { u as _e } from "./app-wDQR6dpb.js";
15
- import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BCtEZ3YW.js";
15
+ import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BRPkxkU5.js";
16
16
  import { J as ke } from "./JsonViewer-v8_C7l5N.js";
17
- import { _ as ot } from "./index-3cal5Crf.js";
17
+ import { _ as ot } from "./index-DxkyGhLq.js";
18
18
  import { _ as lt } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
19
19
  import { _ as at } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
20
- import { z as st, a as rt } from "./money-m-8Q9Cic.js";
21
- import { F as it } from "./number-BL2f3-uB.js";
22
- import { t as dt } from "./helper-BPWsTSo7.js";
23
- import "./index-M-cFQZfx.js";
24
- import "./index-CPPpEEkl.js";
25
- import "./index-CPhjQE7M.js";
26
- import "./index-KMvP72cy.js";
27
- import { m as ut } from "./index-BcGf92gd.js";
28
- import { m as xe } from "./index-C9HOsq0v.js";
20
+ import { z as st, a as rt } from "./money-asfLa4Lt.js";
21
+ import { F as it } from "./number-CQDR1ZIe.js";
22
+ import { t as dt } from "./helper-B4n2GzUT.js";
23
+ import "./index-l7oroAM_.js";
24
+ import "./index-fxGxOKSf.js";
25
+ import "./index-CZh5_4r2.js";
26
+ import "./index-C_uA0tpL.js";
27
+ import { m as ut } from "./index-JYlCBixV.js";
28
+ import { m as xe } from "./index-DvVCTYVh.js";
29
29
  import { useRouter as ct } from "vue-router";
30
30
  function je(g) {
31
31
  return se.DineroFactory(g).toUnit();
@@ -100,12 +100,12 @@ const yt = { class: "relative h-[120px] aspect-video flex items-center justify-c
100
100
  },
101
101
  emits: ["edit", "delete", "send"],
102
102
  setup(g, { emit: x }) {
103
- const a = g, f = x, i = E(() => {
103
+ const a = g, f = x, i = j(() => {
104
104
  const o = [];
105
105
  return a.bundle.price.amount > 0 && o.push(
106
106
  `${B.Config.getCountry().currency.symbol}${je(a.bundle.price)}`
107
107
  ), a.bundle.coinPrice && o.push(`${a.bundle.coinPrice} point(s)`), o.join(" or ");
108
- }), b = E(() => {
108
+ }), b = j(() => {
109
109
  var m, u;
110
110
  const o = [];
111
111
  if (a.bundle.titles.length > 0 && o.push(`${a.bundle.titles.length} title(s)`), a.bundle.vouchers.length > 0 && o.push(`${a.bundle.vouchers.length} voucher(s)`), a.bundle.credit.normal || (m = a.bundle.credit.free) != null && m.amount) {
@@ -174,8 +174,8 @@ const yt = { class: "relative h-[120px] aspect-video flex items-center justify-c
174
174
  })
175
175
  ])
176
176
  ]),
177
- _("div", gt, j(g.bundle.name), 1),
178
- _("div", ht, j(e(i) || "Free"), 1),
177
+ _("div", gt, L(g.bundle.name), 1),
178
+ _("div", ht, L(e(i) || "Free"), 1),
179
179
  _("div", xt, [
180
180
  (v(!0), D(X, null, re(e(b), (l, F) => (v(), I(t, {
181
181
  key: F,
@@ -267,7 +267,7 @@ const yt = { class: "relative h-[120px] aspect-video flex items-center justify-c
267
267
  }), $t = { class: "space-y-16" }, kt = { class: "flex items-center justify-end gap-8 pb-16" }, Pt = /* @__PURE__ */ ee({
268
268
  __name: "SelectCategoryDialog",
269
269
  setup(g) {
270
- const { emitData: x, emitAction: a } = Me(), f = $e(), i = R(), b = E(
270
+ const { emitData: x, emitAction: a } = Me(), f = $e(), i = R(), b = j(
271
271
  () => f.sortedStoreCategories.map((o, m) => ({
272
272
  label: o.name,
273
273
  value: m
@@ -466,7 +466,7 @@ const Tt = {
466
466
  label: T(() => {
467
467
  var $;
468
468
  return [
469
- _("div", null, j(t(S.label, (($ = e(b)[l]) == null ? void 0 : $.inclusive) || !1)), 1)
469
+ _("div", null, L(t(S.label, (($ = e(b)[l]) == null ? void 0 : $.inclusive) || !1)), 1)
470
470
  ];
471
471
  }),
472
472
  _: 2
@@ -494,7 +494,7 @@ const It = { class: "space-y-8" }, Dt = {
494
494
  webhookSecret: ""
495
495
  }) : o || f("update:modelValue", void 0));
496
496
  });
497
- const b = E(() => {
497
+ const b = j(() => {
498
498
  const o = Rt.mode === "development", m = B.Config.getCountry().code.toLowerCase(), u = m != "my" ? `.${m}` : "";
499
499
  return `https://marketing${o ? "-dev" : ""}${u}.feedmeapi.com/stripe/${Ye.getBusinessId()}/webhook`;
500
500
  });
@@ -567,7 +567,7 @@ const It = { class: "space-y-8" }, Dt = {
567
567
  phoneNo: Q.string().min(1, "Phone number is required"),
568
568
  sstRegNo: Q.string().optional()
569
569
  })
570
- }), t = E(() => u.safeParse(o.value).success);
570
+ }), t = j(() => u.safeParse(o.value).success);
571
571
  function c() {
572
572
  const S = u.safeParse(o.value);
573
573
  S.success && i("update", S.data);
@@ -598,8 +598,8 @@ const It = { class: "space-y-8" }, Dt = {
598
598
  showSheet: d,
599
599
  data: o
600
600
  }), (S, l) => {
601
- const F = h("FmIcon"), $ = h("FmMenuItem"), N = h("FmMenu"), W = h("FmSelect"), Y = h("FmButton"), L = h("FmSideSheet");
602
- return v(), I(L, {
601
+ const F = h("FmIcon"), $ = h("FmMenuItem"), N = h("FmMenu"), W = h("FmSelect"), Y = h("FmButton"), H = h("FmSideSheet");
602
+ return v(), I(H, {
603
603
  "max-width": 560,
604
604
  modelValue: e(b),
605
605
  "onUpdate:modelValue": l[15] || (l[15] = (z) => oe(b) ? b.value = z : null),
@@ -625,7 +625,7 @@ const It = { class: "space-y-8" }, Dt = {
625
625
  return [
626
626
  r(ke, { json: e(o) }, null, 8, ["json"]),
627
627
  e(o) && e(o).company ? (v(), D("div", Nt, [
628
- _("div", Ot, j(e(f)("connect.store.setting.company.legal_info")), 1),
628
+ _("div", Ot, L(e(f)("connect.store.setting.company.legal_info")), 1),
629
629
  r(te, {
630
630
  modelValue: e(o).company.name,
631
631
  "onUpdate:modelValue": l[0] || (l[0] = (s) => e(o).company.name = s),
@@ -649,7 +649,7 @@ const It = { class: "space-y-8" }, Dt = {
649
649
  schema: e(Z).typeAtPath(e(u), "company.sstRegNo")
650
650
  }, null, 8, ["modelValue", "label", "schema"])) : A("", !0),
651
651
  (z = e(o).company) != null && z.sstRegNo && e(o).inclusiveTaxes ? (v(), D("div", At, [
652
- _("div", Mt, j(e(f)("connect.store.setting.company.tax")), 1),
652
+ _("div", Mt, L(e(f)("connect.store.setting.company.tax")), 1),
653
653
  r(Ut, {
654
654
  modelValue: e(o).inclusiveTaxes,
655
655
  "onUpdate:modelValue": l[4] || (l[4] = (s) => e(o).inclusiveTaxes = s)
@@ -661,7 +661,7 @@ const It = { class: "space-y-8" }, Dt = {
661
661
  label: e(f)("connect.store.setting.company.phone"),
662
662
  schema: e(Z).typeAtPath(e(u), "company.phoneNo")
663
663
  }, null, 8, ["modelValue", "label", "schema"]),
664
- _("div", Et, j(e(f)("connect.store.setting.company.address.title")), 1),
664
+ _("div", Et, L(e(f)("connect.store.setting.company.address.title")), 1),
665
665
  r(te, {
666
666
  modelValue: e(o).company.address.line1,
667
667
  "onUpdate:modelValue": l[6] || (l[6] = (s) => e(o).company.address.line1 = s),
@@ -688,7 +688,7 @@ const It = { class: "space-y-8" }, Dt = {
688
688
  schema: e(Z).typeAtPath(e(u), "company.address.postcode")
689
689
  }, null, 8, ["modelValue", "label", "schema"]),
690
690
  _("div", Lt, [
691
- _("div", Ht, j(e(f)("connect.store.setting.company.address.state")), 1),
691
+ _("div", Ht, L(e(f)("connect.store.setting.company.address.state")), 1),
692
692
  r(N, {
693
693
  placement: "top-end",
694
694
  "model-value": e(m)
@@ -740,7 +740,7 @@ const It = { class: "space-y-8" }, Dt = {
740
740
  }, null, 8, ["label", "modelValue", "items", "rules"])
741
741
  ]),
742
742
  _("div", qt, [
743
- _("div", Kt, j(e(f)("connect.store.setting.stripe.title")), 1),
743
+ _("div", Kt, L(e(f)("connect.store.setting.stripe.title")), 1),
744
744
  r(Bt, {
745
745
  "model-value": (le = e(o)) == null ? void 0 : le.stripe,
746
746
  "onUpdate:modelValue": l[13] || (l[13] = (s) => e(o).stripe = s)
@@ -783,7 +783,7 @@ const Jt = /* @__PURE__ */ ee({
783
783
  function i() {
784
784
  return ne.groupedTaxOptions();
785
785
  }
786
- const b = E(() => i().map((t) => ({
786
+ const b = j(() => i().map((t) => ({
787
787
  name: t.code,
788
788
  value: (o.value || []).find(
789
789
  (c) => t.options.some((y) => y.feedmeTaxCode === c)
@@ -792,7 +792,7 @@ const Jt = /* @__PURE__ */ ee({
792
792
  label: `${c.name} (${it(c.rate)}%)`,
793
793
  value: c.feedmeTaxCode
794
794
  }))
795
- }))), o = E(() => a.modelValue.map((t) => ne.generateCode(t)));
795
+ }))), o = j(() => a.modelValue.map((t) => ne.generateCode(t)));
796
796
  function m(t) {
797
797
  const c = i().find(
798
798
  (l) => l.options.some((F) => F.feedmeTaxCode === t)
@@ -873,7 +873,7 @@ const Jt = /* @__PURE__ */ ee({
873
873
  category: 0,
874
874
  index: -1,
875
875
  originalCategoryIndex: void 0
876
- }), t = R(ue.cloneDeep(Se)), c = R(), y = Oe, d = E(() => {
876
+ }), t = R(ue.cloneDeep(Se)), c = R(), y = Oe, d = j(() => {
877
877
  const p = y.safeParse(t.value);
878
878
  return p.success ? [] : p.error.errors;
879
879
  }), S = [
@@ -897,9 +897,9 @@ const Jt = /* @__PURE__ */ ee({
897
897
  var C;
898
898
  const n = p.row.original;
899
899
  return n.collectible.type == "VOUCHER" || n.selectedReward == null ? n.description : Ke(ze.FmStepperField, {
900
- "onUpdate:modelValue": (P) => {
900
+ "onUpdate:modelValue": (k) => {
901
901
  t.value.titles = t.value.titles.map(
902
- (H) => H.id == n.collectible._id ? { ...H, dayToExpire: P } : H
902
+ (E) => E.id == n.collectible._id ? { ...E, dayToExpire: k } : E
903
903
  );
904
904
  },
905
905
  modelValue: ((C = n.selectedReward) == null ? void 0 : C.extra) ?? 0,
@@ -907,20 +907,20 @@ const Jt = /* @__PURE__ */ ee({
907
907
  helperState: J(d.value, "titles"),
908
908
  helperText: G(d.value, "titles"),
909
909
  max: 9999,
910
- rules: [(P) => P <= 9999 || "Maximum 9999 days allowed"],
910
+ rules: [(k) => k <= 9999 || "Maximum 9999 days allowed"],
911
911
  showSteppers: !1,
912
912
  disabled: !!t.value.stripePriceId
913
913
  });
914
914
  }
915
915
  }
916
- ], l = R([]), F = E(() => b.bundleRewards.map((p) => {
917
- const n = $.value.find((P) => P.id == p._id), C = p.type === "VOUCHER" ? `${p.options.maxUse} use(s), ${dt(p.options.validityOption || {})}` : "No expiry";
916
+ ], l = R([]), F = j(() => b.bundleRewards.map((p) => {
917
+ const n = $.value.find((k) => k.id == p._id), C = p.type === "VOUCHER" ? `${p.options.maxUse} use(s), ${dt(p.options.validityOption || {})}` : "No expiry";
918
918
  return {
919
919
  collectible: p,
920
920
  description: C,
921
921
  selectedReward: n
922
922
  };
923
- })), $ = E(() => {
923
+ })), $ = j(() => {
924
924
  var p, n;
925
925
  return [
926
926
  ...((p = t.value) == null ? void 0 : p.titles.map((C) => ({
@@ -932,7 +932,7 @@ const Jt = /* @__PURE__ */ ee({
932
932
  extra: void 0
933
933
  }))) ?? []
934
934
  ];
935
- }), N = E(
935
+ }), N = j(
936
936
  () => t.value.stripePriceId && t.value.subscriptionValidity ? t.value.subscriptionValidity : 0
937
937
  );
938
938
  function W(p) {
@@ -945,28 +945,28 @@ const Jt = /* @__PURE__ */ ee({
945
945
  const p = F.value, n = t.value;
946
946
  if (!(!n || !p))
947
947
  for (let C = 0; C < p.length; C++) {
948
- const P = p[C];
949
- L.value[C] ? P.collectible.type == "TITLE" ? n.titles.findIndex(
950
- (q) => q.id == P.collectible._id
948
+ const k = p[C];
949
+ H.value[C] ? k.collectible.type == "TITLE" ? n.titles.findIndex(
950
+ (q) => q.id == k.collectible._id
951
951
  ) < 0 && n.titles.push({
952
- id: P.collectible._id,
952
+ id: k.collectible._id,
953
953
  dayToExpire: N.value
954
954
  }) : n.vouchers.findIndex(
955
- (q) => q == P.collectible._id
956
- ) < 0 && n.vouchers.push(P.collectible._id) : (n.titles = n.titles.filter((K) => K.id != P.collectible._id), n.vouchers = n.vouchers.filter(
957
- (K) => K != P.collectible._id
955
+ (q) => q == k.collectible._id
956
+ ) < 0 && n.vouchers.push(k.collectible._id) : (n.titles = n.titles.filter((K) => K.id != k.collectible._id), n.vouchers = n.vouchers.filter(
957
+ (K) => K != k.collectible._id
958
958
  ));
959
959
  }
960
960
  }
961
- const L = R({});
962
- we(L, Y, { deep: !0 });
963
- const z = E(() => {
961
+ const H = R({});
962
+ we(H, Y, { deep: !0 });
963
+ const z = j(() => {
964
964
  var p, n;
965
965
  return (n = (p = b.storeOption) == null ? void 0 : p.company) == null ? void 0 : n.sstRegNo;
966
- }), le = E(() => {
966
+ }), le = j(() => {
967
967
  var p, n, C;
968
968
  return (C = (n = (p = b.storeOption) == null ? void 0 : p.inclusiveTaxes) == null ? void 0 : n[0]) != null && C.inclusive ? "Inclusive" : "Exclusive";
969
- }), s = E(() => {
969
+ }), s = j(() => {
970
970
  var p, n, C;
971
971
  return mt(
972
972
  ne.fullTax,
@@ -974,17 +974,17 @@ const Jt = /* @__PURE__ */ ee({
974
974
  t.value.price,
975
975
  Number(t.value.credit.normal),
976
976
  ((p = b.storeOption) == null ? void 0 : p.inclusiveTaxes) ?? [],
977
- (C = (n = b.storeOption) == null ? void 0 : n.company) != null && C.sstRegNo ? ne.taxSystem.map((P) => P.code) : []
977
+ (C = (n = b.storeOption) == null ? void 0 : n.company) != null && C.sstRegNo ? ne.taxSystem.map((k) => k.code) : []
978
978
  );
979
- }), w = E(() => s.value.reduce(
979
+ }), w = j(() => s.value.reduce(
980
980
  (n, C) => n.add(C.total),
981
981
  rt()
982
- ).toFormat()), U = E(() => {
983
- var P;
982
+ ).toFormat()), U = j(() => {
983
+ var k;
984
984
  const p = pt(
985
985
  s.value,
986
986
  t.value.price,
987
- ((P = b.storeOption) == null ? void 0 : P.inclusiveTaxes) ?? []
987
+ ((k = b.storeOption) == null ? void 0 : k.inclusiveTaxes) ?? []
988
988
  );
989
989
  t.value.priceWithTaxes = p;
990
990
  const n = Yt(p, !1), C = Number(n.replace(/[^\d.-]/g, ""));
@@ -993,11 +993,11 @@ const Jt = /* @__PURE__ */ ee({
993
993
  function M() {
994
994
  t.value.taxTotals = s.value, f("update", Oe.parse(Je(t.value)));
995
995
  }
996
- function k() {
996
+ function P() {
997
997
  return ue.cloneDeep(Se);
998
998
  }
999
999
  function O(p, n) {
1000
- o.value = p, p && n && (c.value = void 0, m.value = n.categories, t.value = n.bundle || k(), u.value.category = n.category, u.value.index = n.index, u.value.originalCategoryIndex = n.category, L.value = F.value.reduce((C, P, H) => (C[H] = !!P.selectedReward, C), {}));
1000
+ o.value = p, p && n && (c.value = void 0, m.value = n.categories, t.value = n.bundle || P(), u.value.category = n.category, u.value.index = n.index, u.value.originalCategoryIndex = n.category, H.value = F.value.reduce((C, k, E) => (C[E] = !!k.selectedReward, C), {}));
1001
1001
  }
1002
1002
  return x({
1003
1003
  showSheet: O,
@@ -1005,7 +1005,7 @@ const Jt = /* @__PURE__ */ ee({
1005
1005
  target: u,
1006
1006
  data: t
1007
1007
  }), (p, n) => {
1008
- const C = h("FmSwitch"), P = h("FmHelperText"), H = h("FmTextField"), K = h("FmSelect"), q = h("FmStepperField"), ie = h("FmMenuItem"), ve = h("FmTable"), ce = h("FmButton"), ge = h("FmSideSheet");
1008
+ const C = h("FmSwitch"), k = h("FmHelperText"), E = h("FmTextField"), K = h("FmSelect"), q = h("FmStepperField"), ie = h("FmMenuItem"), ve = h("FmTable"), ce = h("FmButton"), ge = h("FmSideSheet");
1009
1009
  return v(), I(ge, {
1010
1010
  "max-width": 768,
1011
1011
  modelValue: e(o),
@@ -1036,21 +1036,21 @@ const Jt = /* @__PURE__ */ ee({
1036
1036
  e(B.Config).getCountry().code == "MY" && ((ae = e(b).payoutAccount) == null ? void 0 : ae.status) == "APPROVED" && ((Pe = e(b).payoutAccount) != null && Pe.enable) ? (v(), I(C, {
1037
1037
  key: 0,
1038
1038
  "onUpdate:modelValue": n[0] || (n[0] = (V) => {
1039
- e(t).isFeedvibe = V, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [], L.value = {});
1039
+ e(t).isFeedvibe = V, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [], H.value = {});
1040
1040
  }),
1041
1041
  "label-placement": "right",
1042
1042
  "model-value": e(t).isFeedvibe || !1,
1043
1043
  label: "Feedvibe Campaign",
1044
1044
  sublabel: "Bundle will be appear for Feedvibe campaign use"
1045
1045
  }, null, 8, ["model-value"])) : A("", !0),
1046
- e(t).isFeedvibe ? (v(), I(P, {
1046
+ e(t).isFeedvibe ? (v(), I(k, {
1047
1047
  key: 1,
1048
1048
  text: "There will be a 15% charge for FeedVibe bundles sold in the FeedVibe app",
1049
1049
  state: "warning"
1050
1050
  })) : A("", !0)
1051
1051
  ]),
1052
- _("div", Zt, j(e(i)("connect.store.bundle.edit.basicInformation")), 1),
1053
- r(H, {
1052
+ _("div", Zt, L(e(i)("connect.store.bundle.edit.basicInformation")), 1),
1053
+ r(E, {
1054
1054
  label: e(i)("connect.store.bundle.edit.bundleName"),
1055
1055
  modelValue: e(t).name,
1056
1056
  "onUpdate:modelValue": n[1] || (n[1] = (V) => e(t).name = V),
@@ -1089,7 +1089,7 @@ const Jt = /* @__PURE__ */ ee({
1089
1089
  "helper-state": e(J)(e(d), "price")
1090
1090
  }, {
1091
1091
  prepend: T(() => [
1092
- de(j(e(B.Dinero).defaultCurrency()), 1)
1092
+ de(L(e(B.Dinero).defaultCurrency()), 1)
1093
1093
  ]),
1094
1094
  _: 1
1095
1095
  }, 8, ["model-value", "label", "helper-text", "helper-state"]),
@@ -1107,7 +1107,7 @@ const Jt = /* @__PURE__ */ ee({
1107
1107
  "helper-state": e(J)(e(d), "originalPrice")
1108
1108
  }, {
1109
1109
  prepend: T(() => [
1110
- de(j(e(B.Dinero).defaultCurrency()), 1)
1110
+ de(L(e(B.Dinero).defaultCurrency()), 1)
1111
1111
  ]),
1112
1112
  _: 1
1113
1113
  }, 8, ["model-value", "label", "helper-text", "helper-state"]),
@@ -1129,8 +1129,8 @@ const Jt = /* @__PURE__ */ ee({
1129
1129
  _: 1
1130
1130
  }, 8, ["model-value", "label", "helper-state", "helper-text"])),
1131
1131
  (Te = e(b).storeOption) != null && Te.stripe && !e(t).isFeedvibe ? (v(), D(X, { key: 1 }, [
1132
- _("div", Qt, j(e(i)("connect.store.bundle.edit.subscriptionSettings")), 1),
1133
- r(H, {
1132
+ _("div", Qt, L(e(i)("connect.store.bundle.edit.subscriptionSettings")), 1),
1133
+ r(E, {
1134
1134
  label: e(i)("connect.store.bundle.edit.stripePriceId"),
1135
1135
  modelValue: e(t).stripePriceId,
1136
1136
  "onUpdate:modelValue": n[7] || (n[7] = (V) => e(t).stripePriceId = V),
@@ -1210,7 +1210,7 @@ const Jt = /* @__PURE__ */ ee({
1210
1210
  modelValue: e(t).taxes,
1211
1211
  "onUpdate:modelValue": n[11] || (n[11] = (V) => e(t).taxes = V)
1212
1212
  }, null, 8, ["modelValue"]),
1213
- r(H, {
1213
+ r(E, {
1214
1214
  label: `Tax Charged (${e(le)})`,
1215
1215
  "model-value": e(w),
1216
1216
  disabled: ""
@@ -1221,8 +1221,8 @@ const Jt = /* @__PURE__ */ ee({
1221
1221
  "model-value": e(U),
1222
1222
  disabled: !0
1223
1223
  }, null, 8, ["model-value"]),
1224
- _("div", en, j(e(i)("connect.store.bundle.edit.bundleReward.title")), 1),
1225
- _("div", tn, j(e(i)("connect.store.bundle.edit.bundleReward.description")), 1),
1224
+ _("div", en, L(e(i)("connect.store.bundle.edit.bundleReward.title")), 1),
1225
+ _("div", tn, L(e(i)("connect.store.bundle.edit.bundleReward.description")), 1),
1226
1226
  _("div", nn, [
1227
1227
  _("div", on, [
1228
1228
  r(at, {
@@ -1258,8 +1258,8 @@ const Jt = /* @__PURE__ */ ee({
1258
1258
  }, 8, ["label"])
1259
1259
  ]),
1260
1260
  r(ve, {
1261
- modelValue: e(L),
1262
- "onUpdate:modelValue": n[15] || (n[15] = (V) => oe(L) ? L.value = V : null),
1261
+ modelValue: e(H),
1262
+ "onUpdate:modelValue": n[15] || (n[15] = (V) => oe(H) ? H.value = V : null),
1263
1263
  selection: "multiple",
1264
1264
  "column-filter": e(l),
1265
1265
  "column-defs": S,
@@ -1268,12 +1268,12 @@ const Jt = /* @__PURE__ */ ee({
1268
1268
  ),
1269
1269
  "hide-footer": e(F).length <= 10
1270
1270
  }, null, 8, ["modelValue", "column-filter", "row-data", "hide-footer"]),
1271
- r(P, {
1271
+ r(k, {
1272
1272
  text: e(G)(e(d), "titles"),
1273
1273
  state: e(J)(e(d), "titles")
1274
1274
  }, null, 8, ["text", "state"])
1275
1275
  ]),
1276
- _("div", ln, j(e(i)("connect.store.bundle.edit.advanceSetting")), 1),
1276
+ _("div", ln, L(e(i)("connect.store.bundle.edit.advanceSetting")), 1),
1277
1277
  _("div", an, [
1278
1278
  r(C, {
1279
1279
  "model-value": e(t).internal ?? !1,
@@ -1356,7 +1356,7 @@ const Jt = /* @__PURE__ */ ee({
1356
1356
  }
1357
1357
  );
1358
1358
  }
1359
- const l = E(() => {
1359
+ const l = j(() => {
1360
1360
  var $, N, W;
1361
1361
  const F = [];
1362
1362
  return (($ = i.value) == null ? void 0 : $.price.amount) > 0 && F.push(
@@ -1369,15 +1369,15 @@ const Jt = /* @__PURE__ */ ee({
1369
1369
  }), fe(async () => {
1370
1370
  await d("");
1371
1371
  }), (F, $) => {
1372
- const N = h("FmCardMedia"), W = h("FmCardHeader"), Y = h("FmChip"), L = h("FmCardSection"), z = h("FmCard"), le = h("FmSelect"), s = h("FmTextField"), w = h("FmForm"), U = h("FmButton"), M = h("FmSideSheet");
1372
+ const N = h("FmCardMedia"), W = h("FmCardHeader"), Y = h("FmChip"), H = h("FmCardSection"), z = h("FmCard"), le = h("FmSelect"), s = h("FmTextField"), w = h("FmForm"), U = h("FmButton"), M = h("FmSideSheet");
1373
1373
  return v(), I(M, {
1374
1374
  "max-width": 560,
1375
1375
  "dismiss-away": !0,
1376
1376
  header: "Send bundle to member",
1377
1377
  modelValue: e(u),
1378
1378
  "onUpdate:modelValue": [
1379
- $[4] || ($[4] = (k) => oe(u) ? u.value = k : null),
1380
- $[5] || ($[5] = (k) => u.value = k)
1379
+ $[4] || ($[4] = (P) => oe(u) ? u.value = P : null),
1380
+ $[5] || ($[5] = (P) => u.value = P)
1381
1381
  ]
1382
1382
  }, {
1383
1383
  "side-sheet-footer": T(() => [
@@ -1386,15 +1386,15 @@ const Jt = /* @__PURE__ */ ee({
1386
1386
  label: "Send",
1387
1387
  loading: e(_e)().isLoading,
1388
1388
  onClick: $[2] || ($[2] = async () => {
1389
- var k;
1390
- return (k = e(t)) == null ? void 0 : k.validateInputs();
1389
+ var P;
1390
+ return (P = e(t)) == null ? void 0 : P.validateInputs();
1391
1391
  })
1392
1392
  }, null, 8, ["loading"]),
1393
1393
  r(U, {
1394
1394
  label: "Cancel",
1395
1395
  type: "button",
1396
1396
  variant: "tertiary",
1397
- onClick: $[3] || ($[3] = (k) => u.value = !1)
1397
+ onClick: $[3] || ($[3] = (P) => u.value = !1)
1398
1398
  })
1399
1399
  ])
1400
1400
  ]),
@@ -1413,14 +1413,14 @@ const Jt = /* @__PURE__ */ ee({
1413
1413
  variant: "outlined"
1414
1414
  }, {
1415
1415
  default: T(() => {
1416
- var k, O;
1416
+ var P, O;
1417
1417
  return [
1418
- (k = e(i)) != null && k.image ? (v(), I(N, {
1418
+ (P = e(i)) != null && P.image ? (v(), I(N, {
1419
1419
  key: 0,
1420
1420
  width: "100",
1421
1421
  src: (O = e(i)) == null ? void 0 : O.image
1422
1422
  }, null, 8, ["src"])) : A("", !0),
1423
- r(L, { class: "flex flex-col gap-16 justify-between" }, {
1423
+ r(H, { class: "flex flex-col gap-16 justify-between" }, {
1424
1424
  default: T(() => {
1425
1425
  var p;
1426
1426
  return [
@@ -1429,20 +1429,20 @@ const Jt = /* @__PURE__ */ ee({
1429
1429
  title: (p = e(i)) == null ? void 0 : p.name,
1430
1430
  subtitle: e(l)
1431
1431
  }, null, 8, ["title", "subtitle"]),
1432
- r(L, { class: "p-0" }, {
1432
+ r(H, { class: "p-0" }, {
1433
1433
  default: T(() => {
1434
- var n, C, P, H, K, q, ie, ve, ce, ge, ae;
1434
+ var n, C, k, E, K, q, ie, ve, ce, ge, ae;
1435
1435
  return [
1436
1436
  _("div", dn, [
1437
1437
  (n = e(i)) != null && n.isFeedvibe ? (v(), I(Y, {
1438
1438
  key: 0,
1439
1439
  label: "Feedvibe"
1440
1440
  })) : A("", !0),
1441
- (P = (C = e(i)) == null ? void 0 : C.titles) != null && P.length ? (v(), I(Y, {
1441
+ (k = (C = e(i)) == null ? void 0 : C.titles) != null && k.length ? (v(), I(Y, {
1442
1442
  key: 1,
1443
1443
  label: `${e(i).titles.length} title(s)`
1444
1444
  }, null, 8, ["label"])) : A("", !0),
1445
- (K = (H = e(i)) == null ? void 0 : H.vouchers) != null && K.length ? (v(), I(Y, {
1445
+ (K = (E = e(i)) == null ? void 0 : E.vouchers) != null && K.length ? (v(), I(Y, {
1446
1446
  key: 2,
1447
1447
  label: `${e(i).vouchers.length} voucher(s)`
1448
1448
  }, null, 8, ["label"])) : A("", !0),
@@ -1465,20 +1465,20 @@ const Jt = /* @__PURE__ */ ee({
1465
1465
  }),
1466
1466
  r(le, {
1467
1467
  modelValue: e(b),
1468
- "onUpdate:modelValue": $[0] || ($[0] = (k) => oe(b) ? b.value = k : null),
1468
+ "onUpdate:modelValue": $[0] || ($[0] = (P) => oe(b) ? b.value = P : null),
1469
1469
  label: "Select member",
1470
1470
  searchable: "",
1471
1471
  items: e(m),
1472
1472
  onSearch: d,
1473
- rules: [(k) => !!k > 0 || "Member is required"],
1473
+ rules: [(P) => !!P > 0 || "Member is required"],
1474
1474
  "helper-text": "Type to search member"
1475
1475
  }, null, 8, ["modelValue", "items", "rules"]),
1476
1476
  r(s, {
1477
1477
  modelValue: e(o),
1478
- "onUpdate:modelValue": $[1] || ($[1] = (k) => oe(o) ? o.value = k : null),
1478
+ "onUpdate:modelValue": $[1] || ($[1] = (P) => oe(o) ? o.value = P : null),
1479
1479
  label: "Reference (optional)",
1480
1480
  rules: [
1481
- (k) => k.length < 50 || "Reference must be less than 50 characters"
1481
+ (P) => P.length < 50 || "Reference must be less than 50 characters"
1482
1482
  ]
1483
1483
  }, null, 8, ["modelValue", "rules"])
1484
1484
  ]),
@@ -1510,7 +1510,7 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1510
1510
  value: "create_category",
1511
1511
  isPrimary: !0,
1512
1512
  prependIcon: "add"
1513
- }, o = R(), m = ct(), u = $e(), { global: t, minor: c } = Ee, y = Ae(), d = E(() => u.sortedStoreCategories), S = E(() => u.sortedStoreCategories.map((s) => s.name)), l = R(), F = R();
1513
+ }, o = R(), m = ct(), u = $e(), { global: t, minor: c } = Ee, y = Ae(), d = j(() => u.sortedStoreCategories), S = j(() => u.sortedStoreCategories.map((s) => s.name)), l = R(), F = R();
1514
1514
  async function $(s) {
1515
1515
  var w;
1516
1516
  s === "setting" ? (w = l.value) == null || w.showSheet(!0, u.storeOption) : s === "create_category" ? W(-1) : s === "create_reward" ? await m.push({ name: Ze["$connect-STORE_REWARDS"] }) : s == "payout" && window.open(mn.paymentPortalUrl, "_blank");
@@ -1549,9 +1549,9 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1549
1549
  a("connect.store.category.remove.title")
1550
1550
  ) || await c(
1551
1551
  async () => {
1552
- const k = s == -1 ? [...d.value, { name: M, bundles: [] }] : [...d.value].map((O, p) => p == s ? { ...O, name: M } : O).filter((O) => O.name !== null);
1552
+ const P = s == -1 ? [...d.value, { name: M, bundles: [] }] : [...d.value].map((O, p) => p == s ? { ...O, name: M } : O).filter((O) => O.name !== null);
1553
1553
  await xe.updateStoreBundle({
1554
- categories: k
1554
+ categories: P
1555
1555
  }), await u.readMemberStore();
1556
1556
  },
1557
1557
  {
@@ -1564,9 +1564,12 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1564
1564
  async function Y(s, w, U, M) {
1565
1565
  var p, n, C;
1566
1566
  w ?? (w = (p = F.value) == null ? void 0 : p.target.category), U ?? (U = (n = F.value) == null ? void 0 : n.target.index), M ?? (M = (C = F.value) == null ? void 0 : C.target.originalCategoryIndex);
1567
- const k = Ne(d.value);
1568
- w != M && (k[M].bundles.splice(U, 1), U = k[w].bundles.length), console.log(w, U, M, "ci, bi, originalCategoryIndex");
1569
- const O = k[w];
1567
+ const P = Ne(d.value);
1568
+ for (const k of P)
1569
+ for (const E of k.bundles)
1570
+ console.log(E, "bundle in payload"), "pf_vouchers" in E && delete E.pf_vouchers;
1571
+ w != M && (P[M].bundles.splice(U, 1), U = P[w].bundles.length), console.log(w, U, M, "ci, bi, originalCategoryIndex");
1572
+ const O = P[w];
1570
1573
  if (!O) {
1571
1574
  Xe.error("Unexpected error", 2e3);
1572
1575
  return;
@@ -1582,17 +1585,17 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1582
1585
  U == -1 ? O.bundles.push(s) : O.bundles[U] = s;
1583
1586
  await c(
1584
1587
  async () => {
1585
- var P, H;
1588
+ var k, E;
1586
1589
  if (s != null) {
1587
- const K = (P = F.value) == null ? void 0 : P.bundleImage;
1590
+ const K = (k = F.value) == null ? void 0 : k.bundleImage;
1588
1591
  K === null && s.image ? (await Fe.delete(s.image), s.image = null) : K && (s.image = await Fe.update(
1589
1592
  Fe.bundleImagePath(void 0, K),
1590
1593
  K
1591
1594
  ));
1592
1595
  }
1593
1596
  await xe.updateStoreBundle({
1594
- categories: k
1595
- }), await u.readMemberStore(), await u.readMembership(), await u.readRewards(), (H = F.value) == null || H.showSheet(!1);
1597
+ categories: P
1598
+ }), await u.readMemberStore(), await u.readMembership(), await u.readRewards(), (E = F.value) == null || E.showSheet(!1);
1596
1599
  },
1597
1600
  {
1598
1601
  message: `${s == null ? "Deleting" : U == -1 ? "Creating" : "Updating"} bundle`,
@@ -1600,7 +1603,7 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1600
1603
  }
1601
1604
  );
1602
1605
  }
1603
- function L(s) {
1606
+ function H(s) {
1604
1607
  var w;
1605
1608
  (w = F.value) == null || w.showSheet(!0, {
1606
1609
  ...s,
@@ -1630,10 +1633,10 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1630
1633
  y.open({
1631
1634
  title: "Select category",
1632
1635
  contentComponent: Pt
1633
- }).onPrimary((k) => {
1634
- y.close(), L({
1636
+ }).onPrimary((P) => {
1637
+ y.close(), H({
1635
1638
  categories: S.value,
1636
- category: k,
1639
+ category: P,
1637
1640
  index: -1,
1638
1641
  bundle: {
1639
1642
  ...ue.cloneDeep(Se),
@@ -1656,7 +1659,7 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1656
1659
  b
1657
1660
  ]);
1658
1661
  }), (s, w) => {
1659
- const U = h("FmPageHead"), M = h("FmButton"), k = h("FmCard");
1662
+ const U = h("FmPageHead"), M = h("FmButton"), P = h("FmCard");
1660
1663
  return v(), D(X, null, [
1661
1664
  r(U, {
1662
1665
  title: e(a)("connect.store.title"),
@@ -1670,7 +1673,7 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1670
1673
  class: "space-y-8 py-12"
1671
1674
  }, [
1672
1675
  _("div", yn, [
1673
- _("div", fn, j(O.name), 1),
1676
+ _("div", fn, L(O.name), 1),
1674
1677
  r(ke, { json: O }, null, 8, ["json"]),
1675
1678
  r(M, {
1676
1679
  icon: "edit",
@@ -1683,17 +1686,17 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1683
1686
  (v(!0), D(X, null, re(O.bundles, (n, C) => (v(), I(_t, {
1684
1687
  bundle: n,
1685
1688
  key: n._id,
1686
- onEdit: (P) => L({
1689
+ onEdit: (k) => H({
1687
1690
  bundle: n,
1688
1691
  category: p,
1689
1692
  index: C,
1690
1693
  categories: e(S)
1691
1694
  }),
1692
- onDelete: (P) => Y(null, p, C),
1695
+ onDelete: (k) => Y(null, p, C),
1693
1696
  onSend: le
1694
1697
  }, null, 8, ["bundle", "onEdit", "onDelete"]))), 128)),
1695
1698
  r(Ct, {
1696
- onCreate: (n) => L({
1699
+ onCreate: (n) => H({
1697
1700
  category: p,
1698
1701
  index: -1,
1699
1702
  categories: e(S)
@@ -1706,7 +1709,7 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1706
1709
  ref: F,
1707
1710
  onUpdate: Y
1708
1711
  }, null, 512)
1709
- ], 64)) : (v(), I(k, {
1712
+ ], 64)) : (v(), I(P, {
1710
1713
  key: 1,
1711
1714
  variant: "outlined",
1712
1715
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
@@ -1717,8 +1720,8 @@ const pn = { class: "px-24 flex flex-col gap-y-16" }, yn = { class: "flex gap-8
1717
1720
  class: "aspect-square w-[150px]"
1718
1721
  }, null, -1)),
1719
1722
  _("div", vn, [
1720
- _("div", gn, j(e(a)("connect.store.bundle.title")), 1),
1721
- _("div", hn, j(e(a)("connect.store.bundle.description")), 1)
1723
+ _("div", gn, L(e(a)("connect.store.bundle.title")), 1),
1724
+ _("div", hn, L(e(a)("connect.store.bundle.description")), 1)
1722
1725
  ]),
1723
1726
  r(M, {
1724
1727
  variant: "primary",