@feedmepos/mf-connect 0.1.0-beta.67 → 0.1.0-beta.69

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 (89) hide show
  1. package/dist/{Analytic-knY-Fody.js → Analytic-CtKDttAH.js} +11 -11
  2. package/dist/{App-CaSjMnkY.js → App-hcK_F34g.js} +6 -6
  3. package/dist/{AuditLogs-DyJ0BWHt.js → AuditLogs-wrDkryzX.js} +8 -8
  4. package/dist/{Bin-D73Ky2O3.js → Bin-BYtj7ugN.js} +8 -8
  5. package/dist/{Broadcast-BRMyf2ZA.js → Broadcast-PzcoY_Mc.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-0I_Pp2.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B8ikl5H3.js} +6 -6
  7. package/dist/{Card-BEgNn8SY.js → Card-jryLr70q.js} +15 -15
  8. package/dist/{Collections-C0KqBg5k.js → Collections-DUngeBBi.js} +5 -5
  9. package/dist/{Credit-D3Y1U0-i.js → Credit-DhAWh3lu.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJ7AzlQk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BY3LPgbL.js} +28 -28
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C9JgRiyA.js → EffectSheet.vue_vue_type_style_index_0_lang-DNKg3RSm.js} +6 -6
  12. package/dist/{Experience-B0LMRyXY.js → Experience-DAnT8SPU.js} +9 -9
  13. package/dist/{Game-Bz0eGUGe.js → Game-Q2mBNol1.js} +10 -10
  14. package/dist/{Index-DV7FO6TN.js → Index-CZEdZWQ8.js} +10 -10
  15. package/dist/{Marketing-xdKdn8qo.js → Marketing-3P8e8Sle.js} +6 -6
  16. package/dist/Member-Cs0-TJUl.js +331 -0
  17. package/dist/{MemberList-D1OLQAcR.js → MemberList-HGEJqYTS.js} +24 -24
  18. package/dist/{MemberTransactions-DO59eyLa.js → MemberTransactions-BEpqGzz9.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-bBjpPoOo.js → MessageInput.vue_vue_type_script_setup_true_lang-HqQuEPdJ.js} +2 -2
  20. package/dist/{Mission-CZvAG4ev.js → Mission-z54HJs8G.js} +10 -10
  21. package/dist/{Overview-DMCKeCar.js → Overview-voUs4Xz3.js} +17 -17
  22. package/dist/{Point-BMyDzFyO.js → Point-BanLyZXZ.js} +9 -9
  23. package/dist/{Promotion-D1nOUTxD.js → Promotion-DjNWj4Y9.js} +10 -10
  24. package/dist/{Queue-CGl0yzB4.js → Queue-BJMq-grO.js} +9 -9
  25. package/dist/{Record-BGmigp0Z.js → Record-rzCSXT-0.js} +7 -7
  26. package/dist/{Reward-ZYXuU6-e.js → Reward-pd2SMm4n.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C02Mj9a0.js → RewardGroup.vue_vue_type_script_setup_true_lang-DjGG_zBM.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DGS3_lis.js → RuleGroup.vue_vue_type_script_setup_true_lang-D5ED_y1Y.js} +12 -12
  29. package/dist/{Segment-BXxgrHVs.js → Segment-VNRLyu1n.js} +14 -14
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CSVXVt5K.js → SelectItems.vue_vue_type_script_setup_true_lang-DoLM2Ixg.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D9dpqYTQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6EVC8zl.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CM9312dS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DAtUBP_u.js} +3 -3
  33. package/dist/{Setting-B3HficZP.js → Setting-Bi5SqhFh.js} +10 -10
  34. package/dist/{Store-CWhmG8qW.js → Store-DYqMkBya.js} +145 -143
  35. package/dist/StoreRewards-DDh6tFnw.js +423 -0
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CTUT_564.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CdMTtNRL.js} +18 -18
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B059fdPj.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DlVqo7IB.js} +1 -1
  38. package/dist/{Tier-qm79T_vU.js → Tier-Df6ZUXoc.js} +20 -20
  39. package/dist/{Title-DOWrRYW8.js → Title-B6UYeR3i.js} +79 -79
  40. package/dist/{Transaction-DW7bUI7j.js → Transaction-ClKP1eCm.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-38On7ek-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-fCayOH18.js} +6 -6
  42. package/dist/{Voucher-BJBXjxZV.js → Voucher-C-YVNYtU.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DzdxjFhD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-VVCGaHcx.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CJ_O28uk.js → ZodTextField.vue_vue_type_script_setup_true_lang-CqUp3I7R.js} +1 -1
  45. package/dist/{app-CHUmGvDF.js → app-BN1ZrLvU.js} +31 -31
  46. package/dist/{app-BLFTLZqS.js → app-Bt-dyEJF.js} +1 -1
  47. package/dist/app.js +1 -1
  48. package/dist/{business-Dl7vGxa1.js → business-CL91Ywkh.js} +1 -1
  49. package/dist/{campaign-DMIBFpmQ.js → campaign-B6iMYgPr.js} +9 -9
  50. package/dist/{campaign-XH_j4bGc.js → campaign-CQ3ZQixl.js} +2 -2
  51. package/dist/{campaign.enum-UniuuBvU.js → campaign.enum-CbdP5Zm4.js} +1 -1
  52. package/dist/{campaign.fn-CDC2Cia7.js → campaign.fn-OYYpBTQB.js} +139 -139
  53. package/dist/{collectible.enum-Dx_pgMB9.js → collectible.enum-D6T0m8zD.js} +1 -1
  54. package/dist/{collection.fn-D0nutrYu.js → collection.fn-E--2GvHD.js} +2 -2
  55. package/dist/{dto-BAPti0UX.js → dto-CKTbMtRC.js} +4 -4
  56. package/dist/{effect-By6CZhli.js → effect-Bk2L2HPg.js} +1 -1
  57. package/dist/{email-addresses-DPBu_l0s.js → email-addresses-r7t2A2tP.js} +1 -1
  58. package/dist/{export-C6IKCW8q.js → export-CmFgMuUR.js} +3 -3
  59. package/dist/{helper-KCTyvhjf.js → helper-vj5pZDpi.js} +1 -1
  60. package/dist/{index-BVcdkWyy.js → index-BLy86IYC.js} +3 -3
  61. package/dist/{index-DQxldvxq.js → index-BjRIP-Nf.js} +4 -4
  62. package/dist/{index-_Fw2-H-c.js → index-BlfYTvc8.js} +1 -1
  63. package/dist/{index-DxT_ZaWI.js → index-CXgzEful.js} +6 -6
  64. package/dist/{index-DDCO8cDG.js → index-C_lJF24R.js} +21 -16
  65. package/dist/{index-C-HL3cGP.js → index-CoNW9g8f.js} +1 -1
  66. package/dist/{index-VPs9NXB7.js → index-DIVlPQs7.js} +3 -3
  67. package/dist/{index-Sw_FxWmd.js → index-DZmeZIfy.js} +1 -1
  68. package/dist/{index-D8dh7Th8.js → index-DifkHZQf.js} +1 -1
  69. package/dist/{index-BHB9VPNm.js → index-ciFWj5wK.js} +1 -1
  70. package/dist/{index-e0vKYT8t.js → index-q4jjAzh7.js} +1 -1
  71. package/dist/{index-C9bN_nRJ.js → index-rqMNeQeS.js} +1 -1
  72. package/dist/{index.esm2017-CiHGwLIY.js → index.esm2017-Btke1H-0.js} +1 -1
  73. package/dist/{loading-CmczlXAc.js → loading-CljWGxj2.js} +1 -1
  74. package/dist/{membership-D-uWTsu-.js → membership-DW8fhsPU.js} +3 -3
  75. package/dist/{money-BhXbOy-4.js → money-CmLENFDU.js} +1 -1
  76. package/dist/{number-CT16ZbSb.js → number-D52xOK1O.js} +1 -1
  77. package/dist/{objectid-BGQHcha_.js → objectid-6vZuUhBs.js} +5 -5
  78. package/dist/{plugins-uP-mKUTQ.js → plugins-VQvfB0aC.js} +4 -4
  79. package/dist/{reward-D7tB215Q.js → reward-0mjbr3P3.js} +1 -1
  80. package/dist/{rule-LLXbjCSc.js → rule-B1CCR_k_.js} +3 -3
  81. package/dist/{rule-builder-yxSBBeW6.js → rule-builder-QA20EFeh.js} +1 -1
  82. package/dist/{template-BRXG9AbZ.js → template-DUSSMzTJ.js} +4 -4
  83. package/dist/{trigger-BQTtyAtM.js → trigger-rXCb0cno.js} +4 -4
  84. package/dist/{user-BzRp43jn.js → user-DsR11JGx.js} +1 -1
  85. package/dist/{vue-i18n-7zGNsm-H.js → vue-i18n-DuUlTtHn.js} +357 -357
  86. package/dist/{xlsx-mkBvYNNs.js → xlsx-DcXLCX66.js} +1 -1
  87. package/package.json +1 -1
  88. package/dist/Member-CGDUgKb7.js +0 -317
  89. package/dist/StoreRewards-6Cjh9q4d.js +0 -402
@@ -1,31 +1,31 @@
1
1
  import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as g, createBlock as I, withCtx as T, createElementVNode as _, createElementBlock as B, createVNode as i, createCommentVNode as M, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as R, isRef as oe, reactive as Ke, onMounted as fe, watch as we, toRaw as He, createTextVNode as de, h as qe } from "vue";
2
2
  import { _ as Ye } from "./tier-BJDhpH6X.js";
3
3
  import { useDialog as Me, useDialogChild as Oe, components as We } from "@feedmepos/ui-library";
4
- import { c as N, e as he, S as ze } from "./index-VPs9NXB7.js";
5
- import { u as Ee } from "./loading-CmczlXAc.js";
6
- import { u as ke, C as me } from "./membership-D-uWTsu-.js";
4
+ import { c as D, e as he, S as ze } from "./index-DIVlPQs7.js";
5
+ import { u as Ee } from "./loading-CljWGxj2.js";
6
+ import { u as ke, C as me } from "./membership-DW8fhsPU.js";
7
7
  import { a as Je, c as De } from "./object-qECH92oz.js";
8
8
  import { _ as ue } from "./lodash-B5I3zXaY.js";
9
- import { d as se, a as Ge, p as _e, n as Xe, f as Fe } from "./plugins-uP-mKUTQ.js";
10
- import { u as be } from "./vue-i18n-7zGNsm-H.js";
9
+ import { d as se, a as Ge, p as _e, n as Xe, f as Fe } from "./plugins-VQvfB0aC.js";
10
+ import { u as be } from "./vue-i18n-DuUlTtHn.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-CHUmGvDF.js";
13
- import { l as Qe, m as et, n as tt, o as Ae, p as nt } from "./index-DQxldvxq.js";
12
+ import { z as Q, R as Ze } from "./app-BN1ZrLvU.js";
13
+ import { l as Qe, m as et, n as tt, o as Ae, p as nt } from "./index-BjRIP-Nf.js";
14
14
  import { u as Se } from "./app-wDQR6dpb.js";
15
- import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CJ_O28uk.js";
15
+ import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CqUp3I7R.js";
16
16
  import { J as Pe } from "./JsonViewer-v8_C7l5N.js";
17
- import { _ as ot } from "./index-DDCO8cDG.js";
17
+ import { _ as ot } from "./index-C_lJF24R.js";
18
18
  import { _ as at } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
19
19
  import { _ as lt } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
20
- import { z as st, a as rt } from "./money-BhXbOy-4.js";
21
- import { F as it } from "./number-CT16ZbSb.js";
22
- import { t as dt } from "./helper-KCTyvhjf.js";
23
- import "./index-_Fw2-H-c.js";
24
- import "./index-DxT_ZaWI.js";
25
- import "./index-BHB9VPNm.js";
26
- import "./index-BVcdkWyy.js";
27
- import { m as ut } from "./index-D8dh7Th8.js";
28
- import { m as Ce } from "./index-C-HL3cGP.js";
20
+ import { z as st, a as rt } from "./money-CmLENFDU.js";
21
+ import { F as it } from "./number-D52xOK1O.js";
22
+ import { t as dt } from "./helper-vj5pZDpi.js";
23
+ import "./index-BlfYTvc8.js";
24
+ import "./index-CXgzEful.js";
25
+ import "./index-ciFWj5wK.js";
26
+ import "./index-BLy86IYC.js";
27
+ import { m as ut } from "./index-DifkHZQf.js";
28
+ import { m as Ce } from "./index-CoNW9g8f.js";
29
29
  import { useRouter as ct } from "vue-router";
30
30
  function je(v) {
31
31
  return se.DineroFactory(v).toUnit();
@@ -103,7 +103,7 @@ const yt = { class: "relative h-[120px] aspect-video flex items-center justify-c
103
103
  const l = v, f = x, r = j(() => {
104
104
  const o = [];
105
105
  return l.bundle.price.amount > 0 && o.push(
106
- `${N.Config.getCountry().currency.symbol}${je(l.bundle.price)}`
106
+ `${D.Config.getCountry().currency.symbol}${je(l.bundle.price)}`
107
107
  ), l.bundle.coinPrice && o.push(`${l.bundle.coinPrice} point(s)`), o.join(" or ");
108
108
  }), b = j(() => {
109
109
  var m, u;
@@ -460,7 +460,7 @@ const Tt = {
460
460
  return xe(this);
461
461
  }
462
462
  }
463
- }, pe = () => N.Config.getCountry(), ye = {
463
+ }, pe = () => D.Config.getCountry(), ye = {
464
464
  get fullCurrency() {
465
465
  return pe().currency;
466
466
  },
@@ -468,7 +468,7 @@ const Tt = {
468
468
  return pe().currency.code;
469
469
  },
470
470
  get fullTax() {
471
- return N.Country.getCountryFlattenTaxes(pe().code);
471
+ return D.Country.getCountryFlattenTaxes(pe().code);
472
472
  },
473
473
  get taxSystem() {
474
474
  return pe().taxSystems;
@@ -480,7 +480,7 @@ const Tt = {
480
480
  }));
481
481
  },
482
482
  groupedTaxOptions() {
483
- const v = N.Country.getCountryFlattenTaxes(pe().code);
483
+ const v = D.Country.getCountryFlattenTaxes(pe().code);
484
484
  return ye.taxSystem.map((x) => ({
485
485
  code: x.code,
486
486
  options: v.map((l) => ({ ...l, feedmeTaxCode: ye.generateCode(l) })).filter((l) => l.systemCode === x.code)
@@ -579,7 +579,7 @@ const It = { class: "space-y-8" }, Bt = {
579
579
  }) : o || f("update:modelValue", void 0));
580
580
  });
581
581
  const b = j(() => {
582
- const o = Rt.mode === "development", m = N.Config.getCountry().code.toLowerCase(), u = m != "my" ? `.${m}` : "";
582
+ const o = Rt.mode === "development", m = D.Config.getCountry().code.toLowerCase(), u = m != "my" ? `.${m}` : "";
583
583
  return `https://marketing${o ? "-dev" : ""}${u}.feedmeapi.com/stripe/${ze.getBusinessId()}/webhook`;
584
584
  });
585
585
  return fe(() => {
@@ -666,7 +666,7 @@ const It = { class: "space-y-8" }, Bt = {
666
666
  city: "",
667
667
  postcode: "",
668
668
  state: "",
669
- country: N.Config.getCountry().name
669
+ country: D.Config.getCountry().name
670
670
  },
671
671
  phoneNo: "",
672
672
  regNo: "",
@@ -682,30 +682,30 @@ const It = { class: "space-y-8" }, Bt = {
682
682
  showSheet: d,
683
683
  data: o
684
684
  }), (V, a) => {
685
- const S = h("FmIcon"), k = h("FmMenuItem"), D = h("FmMenu"), Y = h("FmSelect"), z = h("FmButton"), K = h("FmSideSheet");
685
+ const S = h("FmIcon"), k = h("FmMenuItem"), A = h("FmMenu"), Y = h("FmSelect"), W = h("FmButton"), K = h("FmSideSheet");
686
686
  return g(), I(K, {
687
687
  "max-width": 560,
688
688
  modelValue: e(b),
689
- "onUpdate:modelValue": a[15] || (a[15] = (W) => oe(b) ? b.value = W : null),
689
+ "onUpdate:modelValue": a[15] || (a[15] = (z) => oe(b) ? b.value = z : null),
690
690
  header: e(f)("connect.store.setting.title")
691
691
  }, {
692
692
  "side-sheet-footer": T(() => [
693
693
  _("div", Yt, [
694
- i(z, {
694
+ i(W, {
695
695
  label: e(f)("connect.common.save"),
696
696
  onClick: c,
697
697
  disabled: !e(t) || e(Se)().isLoading,
698
698
  loading: e(Se)().isLoading
699
699
  }, null, 8, ["label", "disabled", "loading"]),
700
- i(z, {
700
+ i(W, {
701
701
  label: e(f)("connect.common.cancel"),
702
- onClick: a[14] || (a[14] = (W) => d(!1)),
702
+ onClick: a[14] || (a[14] = (z) => d(!1)),
703
703
  variant: "tertiary"
704
704
  }, null, 8, ["label"])
705
705
  ])
706
706
  ]),
707
707
  default: T(() => {
708
- var W, ae;
708
+ var z, ae;
709
709
  return [
710
710
  i(Pe, { json: e(o) }, null, 8, ["json"]),
711
711
  e(o) && e(o).company ? (g(), B("div", Dt, [
@@ -722,7 +722,7 @@ const It = { class: "space-y-8" }, Bt = {
722
722
  label: e(f)("connect.store.setting.company.reg_no"),
723
723
  schema: e(Z).typeAtPath(e(u), "company.regNo")
724
724
  }, null, 8, ["modelValue", "label", "schema"]),
725
- e(N.Config).getCountry().taxSystems.length ? (g(), I(te, {
725
+ e(D.Config).getCountry().taxSystems.length ? (g(), I(te, {
726
726
  key: 0,
727
727
  modelValue: e(o).company.sstRegNo,
728
728
  "onUpdate:modelValue": [
@@ -732,7 +732,7 @@ const It = { class: "space-y-8" }, Bt = {
732
732
  label: e(f)("connect.store.setting.company.tax_reg_no"),
733
733
  schema: e(Z).typeAtPath(e(u), "company.sstRegNo")
734
734
  }, null, 8, ["modelValue", "label", "schema"])) : M("", !0),
735
- (W = e(o).company) != null && W.sstRegNo && e(o).inclusiveTaxes ? (g(), B("div", Mt, [
735
+ (z = e(o).company) != null && z.sstRegNo && e(o).inclusiveTaxes ? (g(), B("div", Mt, [
736
736
  _("div", Ot, L(e(f)("connect.store.setting.company.tax")), 1),
737
737
  i(Ut, {
738
738
  modelValue: e(o).inclusiveTaxes,
@@ -773,7 +773,7 @@ const It = { class: "space-y-8" }, Bt = {
773
773
  }, null, 8, ["modelValue", "label", "schema"]),
774
774
  _("div", Lt, [
775
775
  _("div", Kt, L(e(f)("connect.store.setting.company.address.state")), 1),
776
- i(D, {
776
+ i(A, {
777
777
  placement: "top-end",
778
778
  "model-value": e(m)
779
779
  }, {
@@ -793,7 +793,7 @@ const It = { class: "space-y-8" }, Bt = {
793
793
  }, 8, ["modelValue", "schema"])
794
794
  ]),
795
795
  default: T(() => [
796
- (g(!0), B(X, null, re(e(Tt)[e(N.Config).getCountry().code].stateItems.filter(
796
+ (g(!0), B(X, null, re(e(Tt)[e(D.Config).getCountry().code].stateItems.filter(
797
797
  (s) => {
798
798
  var w, U;
799
799
  return s.label.toLowerCase().includes(((U = (w = e(o)) == null ? void 0 : w.company) == null ? void 0 : U.address.state.toLowerCase()) ?? "");
@@ -816,8 +816,8 @@ const It = { class: "space-y-8" }, Bt = {
816
816
  "onUpdate:modelValue": a[12] || (a[12] = (s) => e(o).company.address.country = s),
817
817
  items: [
818
818
  {
819
- label: e(N.Config).getCountry().name,
820
- value: e(N.Config).getCountry().name
819
+ label: e(D.Config).getCountry().name,
820
+ value: e(D.Config).getCountry().name
821
821
  }
822
822
  ],
823
823
  rules: [e(Z).ruleAtPath(e(u), "company.address.country")]
@@ -839,7 +839,7 @@ const It = { class: "space-y-8" }, Bt = {
839
839
  }
840
840
  });
841
841
  function zt(v, x = !0) {
842
- return N.DineroFactory(v).toFormat(x);
842
+ return D.DineroFactory(v).toFormat(x);
843
843
  }
844
844
  const Jt = /* @__PURE__ */ ee({
845
845
  __name: "TaxVariantSetting",
@@ -928,8 +928,8 @@ const Jt = /* @__PURE__ */ ee({
928
928
  return (/* @__PURE__ */ new Date()).toISOString();
929
929
  },
930
930
  name: "",
931
- price: N.Dinero.zero().toObject(),
932
- originalPrice: N.Dinero.zero().toObject(),
931
+ price: D.Dinero.zero().toObject(),
932
+ originalPrice: D.Dinero.zero().toObject(),
933
933
  vouchers: [],
934
934
  credit: {
935
935
  normal: 0,
@@ -981,9 +981,9 @@ const Jt = /* @__PURE__ */ ee({
981
981
  var C;
982
982
  const n = p.row.original;
983
983
  return n.collectible.type == "VOUCHER" || n.selectedReward == null ? n.description : qe(We.FmStepperField, {
984
- "onUpdate:modelValue": (P) => {
984
+ "onUpdate:modelValue": ($) => {
985
985
  t.value.titles = t.value.titles.map(
986
- (E) => E.id == n.collectible._id ? { ...E, dayToExpire: P } : E
986
+ (E) => E.id == n.collectible._id ? { ...E, dayToExpire: $ } : E
987
987
  );
988
988
  },
989
989
  modelValue: ((C = n.selectedReward) == null ? void 0 : C.extra) ?? 0,
@@ -991,14 +991,14 @@ const Jt = /* @__PURE__ */ ee({
991
991
  helperState: J(d.value, "titles"),
992
992
  helperText: G(d.value, "titles"),
993
993
  max: 9999,
994
- rules: [(P) => P <= 9999 || "Maximum 9999 days allowed"],
994
+ rules: [($) => $ <= 9999 || "Maximum 9999 days allowed"],
995
995
  showSteppers: !1,
996
996
  disabled: !!t.value.stripePriceId
997
997
  });
998
998
  }
999
999
  }
1000
1000
  ], a = R([]), S = j(() => b.bundleRewards.map((p) => {
1001
- const n = k.value.find((P) => P.id == p._id), C = p.type === "VOUCHER" ? `${p.options.maxUse} use(s), ${dt(
1001
+ const n = k.value.find(($) => $.id == p._id), C = p.type === "VOUCHER" ? `${p.options.maxUse} use(s), ${dt(
1002
1002
  p.options.validityOption || {}
1003
1003
  )}` : "No expiry";
1004
1004
  return {
@@ -1018,7 +1018,7 @@ const Jt = /* @__PURE__ */ ee({
1018
1018
  extra: void 0
1019
1019
  }))) ?? []
1020
1020
  ];
1021
- }), D = j(
1021
+ }), A = j(
1022
1022
  () => t.value.stripePriceId && t.value.subscriptionValidity ? t.value.subscriptionValidity : 0
1023
1023
  );
1024
1024
  function Y(p) {
@@ -1027,26 +1027,26 @@ const Jt = /* @__PURE__ */ ee({
1027
1027
  n.dayToExpire = p;
1028
1028
  t.value.credit.free && (t.value.credit.free.day = p);
1029
1029
  }
1030
- function z() {
1030
+ function W() {
1031
1031
  const p = S.value, n = t.value;
1032
1032
  if (!(!n || !p))
1033
1033
  for (let C = 0; C < p.length; C++) {
1034
- const P = p[C];
1035
- K.value[C] ? P.collectible.type == "TITLE" ? n.titles.findIndex(
1036
- (H) => H.id == P.collectible._id
1034
+ const $ = p[C];
1035
+ K.value[C] ? $.collectible.type == "TITLE" ? n.titles.findIndex(
1036
+ (H) => H.id == $.collectible._id
1037
1037
  ) < 0 && n.titles.push({
1038
- id: P.collectible._id,
1039
- dayToExpire: D.value
1038
+ id: $.collectible._id,
1039
+ dayToExpire: A.value
1040
1040
  }) : n.vouchers.findIndex(
1041
- (H) => H == P.collectible._id
1042
- ) < 0 && n.vouchers.push(P.collectible._id) : (n.titles = n.titles.filter((q) => q.id != P.collectible._id), n.vouchers = n.vouchers.filter(
1043
- (q) => q != P.collectible._id
1041
+ (H) => H == $.collectible._id
1042
+ ) < 0 && n.vouchers.push($.collectible._id) : (n.titles = n.titles.filter((q) => q.id != $.collectible._id), n.vouchers = n.vouchers.filter(
1043
+ (q) => q != $.collectible._id
1044
1044
  ));
1045
1045
  }
1046
1046
  }
1047
1047
  const K = R({});
1048
- we(K, z, { deep: !0 });
1049
- const W = j(() => {
1048
+ we(K, W, { deep: !0 });
1049
+ const z = j(() => {
1050
1050
  var p, n;
1051
1051
  return (n = (p = b.storeOption) == null ? void 0 : p.company) == null ? void 0 : n.sstRegNo;
1052
1052
  }), ae = j(() => {
@@ -1060,17 +1060,17 @@ const Jt = /* @__PURE__ */ ee({
1060
1060
  t.value.price,
1061
1061
  Number(t.value.credit.normal),
1062
1062
  ((p = b.storeOption) == null ? void 0 : p.inclusiveTaxes) ?? [],
1063
- (C = (n = b.storeOption) == null ? void 0 : n.company) != null && C.sstRegNo ? ne.taxSystem.map((P) => P.code) : []
1063
+ (C = (n = b.storeOption) == null ? void 0 : n.company) != null && C.sstRegNo ? ne.taxSystem.map(($) => $.code) : []
1064
1064
  );
1065
1065
  }), w = j(() => s.value.reduce(
1066
1066
  (n, C) => n.add(C.total),
1067
1067
  rt()
1068
1068
  ).toFormat()), U = j(() => {
1069
- var P;
1069
+ var $;
1070
1070
  const p = pt(
1071
1071
  s.value,
1072
1072
  t.value.price,
1073
- ((P = b.storeOption) == null ? void 0 : P.inclusiveTaxes) ?? []
1073
+ (($ = b.storeOption) == null ? void 0 : $.inclusiveTaxes) ?? []
1074
1074
  );
1075
1075
  t.value.priceWithTaxes = p;
1076
1076
  const n = zt(p, !1), C = Number(n.replace(/[^\d.-]/g, ""));
@@ -1079,19 +1079,19 @@ const Jt = /* @__PURE__ */ ee({
1079
1079
  function O() {
1080
1080
  t.value.taxTotals = s.value, f("update", Ae.parse(Je(t.value)));
1081
1081
  }
1082
- function $() {
1082
+ function P() {
1083
1083
  return ue.cloneDeep(Ve);
1084
1084
  }
1085
- function A(p, n) {
1086
- o.value = p, p && n && (c.value = void 0, m.value = n.categories, t.value = n.bundle || $(), u.value.category = n.category, u.value.index = n.index, u.value.originalCategoryIndex = n.category, K.value = S.value.reduce((C, P, E) => (C[E] = !!P.selectedReward, C), {}));
1085
+ function N(p, n) {
1086
+ 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, K.value = S.value.reduce((C, $, E) => (C[E] = !!$.selectedReward, C), {}));
1087
1087
  }
1088
1088
  return x({
1089
- showSheet: A,
1089
+ showSheet: N,
1090
1090
  bundleImage: c,
1091
1091
  target: u,
1092
1092
  data: t
1093
1093
  }), (p, n) => {
1094
- const C = h("FmSwitch"), P = h("FmHelperText"), E = h("FmTextField"), q = h("FmSelect"), H = h("FmStepperField"), ie = h("FmMenuItem"), ge = h("FmTable"), ce = h("FmButton"), ve = h("FmSideSheet");
1094
+ const C = h("FmSwitch"), $ = h("FmHelperText"), E = h("FmTextField"), q = h("FmSelect"), H = h("FmStepperField"), ie = h("FmMenuItem"), ge = h("FmTable"), ce = h("FmButton"), ve = h("FmSideSheet");
1095
1095
  return g(), I(ve, {
1096
1096
  "max-width": 768,
1097
1097
  modelValue: e(o),
@@ -1108,7 +1108,7 @@ const Jt = /* @__PURE__ */ ee({
1108
1108
  }, null, 8, ["label", "disabled", "loading"]),
1109
1109
  i(ce, {
1110
1110
  label: "Cancel",
1111
- onClick: n[19] || (n[19] = (le) => A(!1)),
1111
+ onClick: n[19] || (n[19] = (le) => N(!1)),
1112
1112
  variant: "tertiary"
1113
1113
  })
1114
1114
  ])
@@ -1119,7 +1119,7 @@ const Jt = /* @__PURE__ */ ee({
1119
1119
  i(Pe, { json: e(t) }, null, 8, ["json"]),
1120
1120
  e(t) ? (g(), B("div", Gt, [
1121
1121
  _("div", Xt, [
1122
- e(N.Config).getCountry().code == "MY" && ((le = e(b).payoutAccount) == null ? void 0 : le.status) == "APPROVED" && (($e = e(b).payoutAccount) != null && $e.enable) ? (g(), I(C, {
1122
+ e(D.Config).getCountry().code == "MY" && ((le = e(b).payoutAccount) == null ? void 0 : le.status) == "APPROVED" && (($e = e(b).payoutAccount) != null && $e.enable) ? (g(), I(C, {
1123
1123
  key: 0,
1124
1124
  "onUpdate:modelValue": n[0] || (n[0] = (F) => {
1125
1125
  e(t).isFeedvibe = F, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [], K.value = {});
@@ -1129,7 +1129,7 @@ const Jt = /* @__PURE__ */ ee({
1129
1129
  label: "Feedvibe Campaign",
1130
1130
  sublabel: "Bundle will be appear for Feedvibe campaign use"
1131
1131
  }, null, 8, ["model-value"])) : M("", !0),
1132
- e(t).isFeedvibe ? (g(), I(P, {
1132
+ e(t).isFeedvibe ? (g(), I($, {
1133
1133
  key: 1,
1134
1134
  text: "There will be a 15% charge for FeedVibe bundles sold in the FeedVibe app",
1135
1135
  state: "warning"
@@ -1162,7 +1162,7 @@ const Jt = /* @__PURE__ */ ee({
1162
1162
  "helper-text": e(G)(e(d), "image")
1163
1163
  }, null, 8, ["label", "thumbnail", "file", "helper-state", "helper-text"]),
1164
1164
  i(H, {
1165
- "model-value": e(N.Dinero).fromFdoDinero(e(t).price).toUnit(),
1165
+ "model-value": e(D.Dinero).fromFdoDinero(e(t).price).toUnit(),
1166
1166
  label: e(r)("connect.store.bundle.edit.bundlePrice"),
1167
1167
  min: 0,
1168
1168
  "max-fraction-digits": 2,
@@ -1171,23 +1171,23 @@ const Jt = /* @__PURE__ */ ee({
1171
1171
  }),
1172
1172
  "is-currency": !0,
1173
1173
  "show-steppers": !1,
1174
- "helper-text": e(G)(e(d), "price") || `${e(N.Dinero).fromNumber({ number: 1 }).toFormat(
1174
+ "helper-text": e(G)(e(d), "price") || `${e(D.Dinero).fromNumber({ number: 1 }).toFormat(
1175
1175
  !0
1176
- )} = ${e(N.Dinero).fromNumber({ number: 1 }).toUnit()} credit`,
1176
+ )} = ${e(D.Dinero).fromNumber({ number: 1 }).toUnit()} credit`,
1177
1177
  "helper-state": e(J)(e(d), "price")
1178
1178
  }, {
1179
1179
  prepend: T(() => [
1180
- de(L(e(N.Dinero).defaultCurrency()), 1)
1180
+ de(L(e(D.Dinero).defaultCurrency()), 1)
1181
1181
  ]),
1182
1182
  _: 1
1183
1183
  }, 8, ["model-value", "label", "helper-text", "helper-state"]),
1184
1184
  i(H, {
1185
- "model-value": e(N.Dinero).fromFdoDinero(e(t).originalPrice).toUnit(),
1185
+ "model-value": e(D.Dinero).fromFdoDinero(e(t).originalPrice).toUnit(),
1186
1186
  label: e(r)("connect.store.bundle.edit.bundleValue"),
1187
1187
  min: 0,
1188
1188
  "max-fraction-digits": 2,
1189
1189
  "onUpdate:modelValue": n[5] || (n[5] = (F) => {
1190
- e(t).originalPrice || (e(t).originalPrice = e(N.Dinero).zero().toObject()), e(t).originalPrice.amount = F * 10 ** e(t).originalPrice.precision;
1190
+ e(t).originalPrice || (e(t).originalPrice = e(D.Dinero).zero().toObject()), e(t).originalPrice.amount = F * 10 ** e(t).originalPrice.precision;
1191
1191
  }),
1192
1192
  "is-currency": !0,
1193
1193
  "show-steppers": !1,
@@ -1195,7 +1195,7 @@ const Jt = /* @__PURE__ */ ee({
1195
1195
  "helper-state": e(J)(e(d), "originalPrice")
1196
1196
  }, {
1197
1197
  prepend: T(() => [
1198
- de(L(e(N.Dinero).defaultCurrency()), 1)
1198
+ de(L(e(D.Dinero).defaultCurrency()), 1)
1199
1199
  ]),
1200
1200
  _: 1
1201
1201
  }, 8, ["model-value", "label", "helper-text", "helper-state"]),
@@ -1279,7 +1279,7 @@ const Jt = /* @__PURE__ */ ee({
1279
1279
  e(t).credit.free || (e(t).credit.free = {
1280
1280
  amount: 0,
1281
1281
  day: 1
1282
- }), e(t).credit.free.day = e(D) || F;
1282
+ }), e(t).credit.free.day = e(A) || F;
1283
1283
  }),
1284
1284
  label: "Free credit valid for",
1285
1285
  "show-steppers": !1,
@@ -1292,7 +1292,7 @@ const Jt = /* @__PURE__ */ ee({
1292
1292
  _: 1
1293
1293
  }, 8, ["disabled", "model-value", "helper-state", "helper-text"])) : M("", !0)
1294
1294
  ], 64)),
1295
- e(W) ? (g(), B(X, { key: 3 }, [
1295
+ e(z) ? (g(), B(X, { key: 3 }, [
1296
1296
  n[25] || (n[25] = _("div", { class: "fm-typo-en-title-sm-800 !mb-[-16px]" }, "Taxes", -1)),
1297
1297
  i(Jt, {
1298
1298
  modelValue: e(t).taxes,
@@ -1356,7 +1356,7 @@ const Jt = /* @__PURE__ */ ee({
1356
1356
  ),
1357
1357
  "hide-footer": e(S).length <= 10
1358
1358
  }, null, 8, ["modelValue", "column-filter", "row-data", "hide-footer"]),
1359
- i(P, {
1359
+ i($, {
1360
1360
  text: e(G)(e(d), "titles"),
1361
1361
  state: e(J)(e(d), "titles")
1362
1362
  }, null, 8, ["text", "state"])
@@ -1412,15 +1412,15 @@ const Jt = /* @__PURE__ */ ee({
1412
1412
  search: S,
1413
1413
  descending: !1
1414
1414
  });
1415
- m.value = k.resources.map((D) => ({
1416
- label: `${D.name} (${D.phoneNumber})`,
1417
- value: D._id
1418
- })), await new Promise((D) => setTimeout(D, 100));
1415
+ m.value = k.resources.map((A) => ({
1416
+ label: `${A.name} (${A.phoneNumber})`,
1417
+ value: A._id
1418
+ })), await new Promise((A) => setTimeout(A, 100));
1419
1419
  }
1420
1420
  async function V() {
1421
1421
  if (!r.value || !b.value) return;
1422
1422
  const S = m.value.find(
1423
- (D) => D.value === b.value
1423
+ (A) => A.value === b.value
1424
1424
  );
1425
1425
  await _e.confirm(
1426
1426
  `Are you sure you want to send bundle ${r.value.name} to ${S == null ? void 0 : S.label}?`,
@@ -1429,14 +1429,14 @@ const Jt = /* @__PURE__ */ ee({
1429
1429
  "Cancel"
1430
1430
  ) && await f(
1431
1431
  async () => {
1432
- const D = {
1432
+ const A = {
1433
1433
  bundle: r.value._id,
1434
1434
  member: b.value,
1435
1435
  source: nt.enum.ADMIN,
1436
1436
  ref: `ADMIN:${(/* @__PURE__ */ new Date()).toISOString()}:${o.value}`,
1437
1437
  withCoin: !1
1438
1438
  };
1439
- await Ce.sendBundle(D), y();
1439
+ await Ce.sendBundle(A), y();
1440
1440
  },
1441
1441
  {
1442
1442
  message: "Sending bundle",
@@ -1445,10 +1445,10 @@ const Jt = /* @__PURE__ */ ee({
1445
1445
  );
1446
1446
  }
1447
1447
  const a = j(() => {
1448
- var k, D, Y;
1448
+ var k, A, Y;
1449
1449
  const S = [];
1450
1450
  return ((k = r.value) == null ? void 0 : k.price.amount) > 0 && S.push(
1451
- `${N.Config.getCountry().currency.symbol}${je((D = r.value) == null ? void 0 : D.price)}`
1451
+ `${D.Config.getCountry().currency.symbol}${je((A = r.value) == null ? void 0 : A.price)}`
1452
1452
  ), (Y = r.value) != null && Y.coinPrice && S.push(`${r.value.coinPrice} point(s)`), S.join(" or ");
1453
1453
  });
1454
1454
  return x({
@@ -1457,15 +1457,15 @@ const Jt = /* @__PURE__ */ ee({
1457
1457
  }), fe(async () => {
1458
1458
  await d("");
1459
1459
  }), (S, k) => {
1460
- const D = h("FmCardMedia"), Y = h("FmCardHeader"), z = h("FmChip"), K = h("FmCardSection"), W = h("FmCard"), ae = h("FmSelect"), s = h("FmTextField"), w = h("FmForm"), U = h("FmButton"), O = h("FmSideSheet");
1460
+ const A = h("FmCardMedia"), Y = h("FmCardHeader"), W = h("FmChip"), K = h("FmCardSection"), z = h("FmCard"), ae = h("FmSelect"), s = h("FmTextField"), w = h("FmForm"), U = h("FmButton"), O = h("FmSideSheet");
1461
1461
  return g(), I(O, {
1462
1462
  "max-width": 560,
1463
1463
  "dismiss-away": !0,
1464
1464
  header: "Send bundle to member",
1465
1465
  modelValue: e(u),
1466
1466
  "onUpdate:modelValue": [
1467
- k[4] || (k[4] = ($) => oe(u) ? u.value = $ : null),
1468
- k[5] || (k[5] = ($) => u.value = $)
1467
+ k[4] || (k[4] = (P) => oe(u) ? u.value = P : null),
1468
+ k[5] || (k[5] = (P) => u.value = P)
1469
1469
  ]
1470
1470
  }, {
1471
1471
  "side-sheet-footer": T(() => [
@@ -1474,15 +1474,15 @@ const Jt = /* @__PURE__ */ ee({
1474
1474
  label: "Send",
1475
1475
  loading: e(Se)().isLoading,
1476
1476
  onClick: k[2] || (k[2] = async () => {
1477
- var $;
1478
- return ($ = e(t)) == null ? void 0 : $.validateInputs();
1477
+ var P;
1478
+ return (P = e(t)) == null ? void 0 : P.validateInputs();
1479
1479
  })
1480
1480
  }, null, 8, ["loading"]),
1481
1481
  i(U, {
1482
1482
  label: "Cancel",
1483
1483
  type: "button",
1484
1484
  variant: "tertiary",
1485
- onClick: k[3] || (k[3] = ($) => u.value = !1)
1485
+ onClick: k[3] || (k[3] = (P) => u.value = !1)
1486
1486
  })
1487
1487
  ])
1488
1488
  ]),
@@ -1495,18 +1495,18 @@ const Jt = /* @__PURE__ */ ee({
1495
1495
  blameFormChildOnValidationFailed: ""
1496
1496
  }, {
1497
1497
  default: T(() => [
1498
- i(W, {
1498
+ i(z, {
1499
1499
  class: "max-w-[700px]",
1500
1500
  horizontal: "",
1501
1501
  variant: "outlined"
1502
1502
  }, {
1503
1503
  default: T(() => {
1504
- var $, A;
1504
+ var P, N;
1505
1505
  return [
1506
- ($ = e(r)) != null && $.image ? (g(), I(D, {
1506
+ (P = e(r)) != null && P.image ? (g(), I(A, {
1507
1507
  key: 0,
1508
1508
  width: "100",
1509
- src: (A = e(r)) == null ? void 0 : A.image
1509
+ src: (N = e(r)) == null ? void 0 : N.image
1510
1510
  }, null, 8, ["src"])) : M("", !0),
1511
1511
  i(K, { class: "flex flex-col gap-16 justify-between" }, {
1512
1512
  default: T(() => {
@@ -1519,22 +1519,22 @@ const Jt = /* @__PURE__ */ ee({
1519
1519
  }, null, 8, ["title", "subtitle"]),
1520
1520
  i(K, { class: "p-0" }, {
1521
1521
  default: T(() => {
1522
- var n, C, P, E, q, H, ie, ge, ce, ve, le;
1522
+ var n, C, $, E, q, H, ie, ge, ce, ve, le;
1523
1523
  return [
1524
1524
  _("div", un, [
1525
- (n = e(r)) != null && n.isFeedvibe ? (g(), I(z, {
1525
+ (n = e(r)) != null && n.isFeedvibe ? (g(), I(W, {
1526
1526
  key: 0,
1527
1527
  label: "Feedvibe"
1528
1528
  })) : M("", !0),
1529
- (P = (C = e(r)) == null ? void 0 : C.titles) != null && P.length ? (g(), I(z, {
1529
+ ($ = (C = e(r)) == null ? void 0 : C.titles) != null && $.length ? (g(), I(W, {
1530
1530
  key: 1,
1531
1531
  label: `${e(r).titles.length} title(s)`
1532
1532
  }, null, 8, ["label"])) : M("", !0),
1533
- (q = (E = e(r)) == null ? void 0 : E.vouchers) != null && q.length ? (g(), I(z, {
1533
+ (q = (E = e(r)) == null ? void 0 : E.vouchers) != null && q.length ? (g(), I(W, {
1534
1534
  key: 2,
1535
1535
  label: `${e(r).vouchers.length} voucher(s)`
1536
1536
  }, null, 8, ["label"])) : M("", !0),
1537
- (ie = (H = e(r)) == null ? void 0 : H.credit) != null && ie.normal || (ve = (ce = (ge = e(r)) == null ? void 0 : ge.credit) == null ? void 0 : ce.free) != null && ve.amount ? (g(), I(z, {
1537
+ (ie = (H = e(r)) == null ? void 0 : H.credit) != null && ie.normal || (ve = (ce = (ge = e(r)) == null ? void 0 : ge.credit) == null ? void 0 : ce.free) != null && ve.amount ? (g(), I(W, {
1538
1538
  key: 3,
1539
1539
  label: `${(e(r).credit.normal || 0) + (((le = e(r).credit.free) == null ? void 0 : le.amount) || 0)} credit(s)`
1540
1540
  }, null, 8, ["label"])) : M("", !0)
@@ -1553,20 +1553,20 @@ const Jt = /* @__PURE__ */ ee({
1553
1553
  }),
1554
1554
  i(ae, {
1555
1555
  modelValue: e(b),
1556
- "onUpdate:modelValue": k[0] || (k[0] = ($) => oe(b) ? b.value = $ : null),
1556
+ "onUpdate:modelValue": k[0] || (k[0] = (P) => oe(b) ? b.value = P : null),
1557
1557
  label: "Select member",
1558
1558
  searchable: "",
1559
1559
  items: e(m),
1560
1560
  onSearch: d,
1561
- rules: [($) => !!$ > 0 || "Member is required"],
1561
+ rules: [(P) => !!P > 0 || "Member is required"],
1562
1562
  "helper-text": "Type to search member"
1563
1563
  }, null, 8, ["modelValue", "items", "rules"]),
1564
1564
  i(s, {
1565
1565
  modelValue: e(o),
1566
- "onUpdate:modelValue": k[1] || (k[1] = ($) => oe(o) ? o.value = $ : null),
1566
+ "onUpdate:modelValue": k[1] || (k[1] = (P) => oe(o) ? o.value = P : null),
1567
1567
  label: "Reference (optional)",
1568
1568
  rules: [
1569
- ($) => $.length < 50 || "Reference must be less than 50 characters"
1569
+ (P) => P.length < 50 || "Reference must be less than 50 characters"
1570
1570
  ]
1571
1571
  }, null, 8, ["modelValue", "rules"])
1572
1572
  ]),
@@ -1603,7 +1603,7 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1603
1603
  var w;
1604
1604
  s === "setting" ? (w = a.value) == null || w.showSheet(!0, u.storeOption) : s === "create_category" ? Y(-1) : s === "create_reward" ? await m.push({ name: Ze["$connect-STORE_REWARDS"] }) : s == "payout" && window.open(pn.paymentPortalUrl, "_blank");
1605
1605
  }
1606
- async function D(s) {
1606
+ async function A(s) {
1607
1607
  await c(
1608
1608
  async () => {
1609
1609
  var w;
@@ -1637,9 +1637,9 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1637
1637
  l("connect.store.category.remove.title")
1638
1638
  ) || await c(
1639
1639
  async () => {
1640
- const $ = s == -1 ? [...d.value, { name: O, bundles: [] }] : [...d.value].map((A, p) => p == s ? { ...A, name: O } : A).filter((A) => A.name !== null);
1640
+ const P = s == -1 ? [...d.value, { name: O, bundles: [] }] : [...d.value].map((N, p) => p == s ? { ...N, name: O } : N).filter((N) => N.name !== null);
1641
1641
  await Ce.updateStoreBundle({
1642
- categories: $
1642
+ categories: P
1643
1643
  }), await u.readMemberStore();
1644
1644
  },
1645
1645
  {
@@ -1649,16 +1649,16 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1649
1649
  );
1650
1650
  });
1651
1651
  }
1652
- async function z(s, w, U, O) {
1652
+ async function W(s, w, U, O) {
1653
1653
  var p, n, C;
1654
1654
  w ?? (w = (p = S.value) == null ? void 0 : p.target.category), U ?? (U = (n = S.value) == null ? void 0 : n.target.index), O ?? (O = (C = S.value) == null ? void 0 : C.target.originalCategoryIndex);
1655
- const $ = De(d.value);
1656
- for (const P of $)
1657
- for (const E of P.bundles)
1655
+ const P = De(d.value);
1656
+ for (const $ of P)
1657
+ for (const E of $.bundles)
1658
1658
  console.log(E, "bundle in payload"), "pf_vouchers" in E && delete E.pf_vouchers;
1659
- w != O && ($[O].bundles.splice(U, 1), U = $[w].bundles.length), console.log(w, U, O, "ci, bi, originalCategoryIndex");
1660
- const A = $[w];
1661
- if (!A) {
1659
+ w != O && (P[O].bundles.splice(U, 1), U = P[w].bundles.length), console.log(w, U, O, "ci, bi, originalCategoryIndex");
1660
+ const N = P[w];
1661
+ if (!N) {
1662
1662
  Xe.error("Unexpected error", 2e3);
1663
1663
  return;
1664
1664
  }
@@ -1668,21 +1668,21 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1668
1668
  "Delete bundle"
1669
1669
  ) == !1)
1670
1670
  return;
1671
- A.bundles.splice(U, 1);
1671
+ N.bundles.splice(U, 1);
1672
1672
  } else
1673
- U == -1 ? A.bundles.push(s) : A.bundles[U] = s;
1673
+ U == -1 ? N.bundles.push(s) : N.bundles[U] = s;
1674
1674
  await c(
1675
1675
  async () => {
1676
- var P, E;
1676
+ var $, E;
1677
1677
  if (s != null) {
1678
- const q = (P = S.value) == null ? void 0 : P.bundleImage;
1678
+ const q = ($ = S.value) == null ? void 0 : $.bundleImage;
1679
1679
  q === null && s.image ? (await Fe.delete(s.image), s.image = null) : q && (s.image = await Fe.update(
1680
1680
  Fe.bundleImagePath(void 0, q),
1681
1681
  q
1682
1682
  ));
1683
1683
  }
1684
1684
  await Ce.updateStoreBundle({
1685
- categories: $
1685
+ categories: P
1686
1686
  }), await u.readMemberStore(), await u.readMembership(), await u.readRewards(), (E = S.value) == null || E.showSheet(!1);
1687
1687
  },
1688
1688
  {
@@ -1698,7 +1698,7 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1698
1698
  bundle: s.bundle ? De(s.bundle) : void 0
1699
1699
  });
1700
1700
  }
1701
- const W = R([]);
1701
+ const z = R([]);
1702
1702
  function ae(s) {
1703
1703
  var w;
1704
1704
  (w = o.value) == null || w.showSheet({
@@ -1706,11 +1706,11 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1706
1706
  });
1707
1707
  }
1708
1708
  return fe(async () => {
1709
- var s, w;
1709
+ var w, U;
1710
1710
  await t(async () => {
1711
- var U, O;
1712
- if (await u.readMemberStore(), await u.readMembership(), await u.readRewards(), await u.readPayoutAccount(), (U = m.currentRoute.value.query) != null && U.action) {
1713
- switch ((O = m.currentRoute.value.query) == null ? void 0 : O.action) {
1711
+ var O, P;
1712
+ if (await u.readMemberStore(), await u.readMembership(), await u.readRewards(), await u.readPayoutAccount(), (O = m.currentRoute.value.query) != null && O.action) {
1713
+ switch ((P = m.currentRoute.value.query) == null ? void 0 : P.action) {
1714
1714
  case "update_setting":
1715
1715
  k("setting");
1716
1716
  break;
@@ -1721,15 +1721,15 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1721
1721
  y.open({
1722
1722
  title: "Select category",
1723
1723
  contentComponent: $t
1724
- }).onPrimary(($) => {
1724
+ }).onPrimary((N) => {
1725
1725
  y.close(), K({
1726
1726
  categories: V.value,
1727
- category: $,
1727
+ category: N,
1728
1728
  index: -1,
1729
1729
  bundle: {
1730
1730
  ...ue.cloneDeep(Ve),
1731
1731
  isFeedvibe: !0,
1732
- price: N.Dinero.fromNumber({
1732
+ price: D.Dinero.fromNumber({
1733
1733
  number: 10,
1734
1734
  precision: 2
1735
1735
  }).toObject()
@@ -1740,29 +1740,31 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1740
1740
  }
1741
1741
  m.replace({ query: {} });
1742
1742
  }
1743
- }), W.value = [f, r, b], (((s = u.payoutAccount) == null ? void 0 : s.status) != "APPROVED" || ((w = u.payoutAccount) == null ? void 0 : w.enable) != !0) && (W.value = [
1744
- x,
1743
+ });
1744
+ const s = ((w = u.payoutAccount) == null ? void 0 : w.status) === "APPROVED" && ((U = u.payoutAccount) == null ? void 0 : U.enable) === !0;
1745
+ z.value = [
1746
+ ...s ? [] : [x],
1745
1747
  f,
1746
1748
  r,
1747
1749
  b
1748
- ]);
1750
+ ];
1749
1751
  }), (s, w) => {
1750
- const U = h("FmPageHead"), O = h("FmButton"), $ = h("FmCard");
1752
+ const U = h("FmPageHead"), O = h("FmButton"), P = h("FmCard");
1751
1753
  return g(), B(X, null, [
1752
1754
  i(U, {
1753
1755
  title: e(l)("connect.store.title"),
1754
- actions: e(W),
1756
+ actions: e(z),
1755
1757
  "onClick:action": k
1756
1758
  }, null, 8, ["title", "actions"]),
1757
1759
  _("div", yn, [
1758
1760
  e(d) && e(d).length > 0 ? (g(), B(X, { key: 0 }, [
1759
- (g(!0), B(X, null, re(e(d), (A, p) => (g(), B("div", {
1760
- key: A.name,
1761
+ (g(!0), B(X, null, re(e(d), (N, p) => (g(), B("div", {
1762
+ key: N.name,
1761
1763
  class: "space-y-8 py-12"
1762
1764
  }, [
1763
1765
  _("div", fn, [
1764
- _("div", bn, L(A.name), 1),
1765
- i(Pe, { json: A }, null, 8, ["json"]),
1766
+ _("div", bn, L(N.name), 1),
1767
+ i(Pe, { json: N }, null, 8, ["json"]),
1766
1768
  i(O, {
1767
1769
  icon: "edit",
1768
1770
  size: "md",
@@ -1771,16 +1773,16 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1771
1773
  }, null, 8, ["onClick"])
1772
1774
  ]),
1773
1775
  _("div", gn, [
1774
- (g(!0), B(X, null, re(A.bundles, (n, C) => (g(), I(_t, {
1776
+ (g(!0), B(X, null, re(N.bundles, (n, C) => (g(), I(_t, {
1775
1777
  bundle: n,
1776
1778
  key: n._id,
1777
- onEdit: (P) => K({
1779
+ onEdit: ($) => K({
1778
1780
  bundle: n,
1779
1781
  category: p,
1780
1782
  index: C,
1781
1783
  categories: e(V)
1782
1784
  }),
1783
- onDelete: (P) => z(null, p, C),
1785
+ onDelete: ($) => W(null, p, C),
1784
1786
  onSend: ae
1785
1787
  }, null, 8, ["bundle", "onEdit", "onDelete"]))), 128)),
1786
1788
  i(Ct, {
@@ -1795,9 +1797,9 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1795
1797
  i(dn, {
1796
1798
  ref_key: "bundleSheetRef",
1797
1799
  ref: S,
1798
- onUpdate: z
1800
+ onUpdate: W
1799
1801
  }, null, 512)
1800
- ], 64)) : (g(), I($, {
1802
+ ], 64)) : (g(), I(P, {
1801
1803
  key: 1,
1802
1804
  variant: "outlined",
1803
1805
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
@@ -1815,7 +1817,7 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1815
1817
  variant: "primary",
1816
1818
  label: e(l)("connect.store.actions.addCategory"),
1817
1819
  icon: "add",
1818
- onClick: w[0] || (w[0] = (A) => Y(-1))
1820
+ onClick: w[0] || (w[0] = (N) => Y(-1))
1819
1821
  }, null, 8, ["label"])
1820
1822
  ]),
1821
1823
  _: 1
@@ -1823,7 +1825,7 @@ const yn = { class: "px-24 flex flex-col gap-y-16" }, fn = { class: "flex gap-8
1823
1825
  i(Wt, {
1824
1826
  ref_key: "settingSheetRef",
1825
1827
  ref: a,
1826
- onUpdate: D
1828
+ onUpdate: A
1827
1829
  }, null, 512),
1828
1830
  i(mn, {
1829
1831
  ref_key: "sendBundleSheetRef",