@feedmepos/mf-connect 0.1.0-beta.42 → 0.1.0-beta.43

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 (81) hide show
  1. package/dist/{Analytic-D4CyKUaD.js → Analytic-CcNooL-g.js} +10 -10
  2. package/dist/{App-Cu4LXMPd.js → App-zM5JzMTA.js} +6 -6
  3. package/dist/{Broadcast-Ch0h4h_M.js → Broadcast-DfFQn90A.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ejsdSb6n.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CB9FJjRx.js} +6 -6
  5. package/dist/{Card-DTKA23ua.js → Card-DDlDoaU2.js} +14 -14
  6. package/dist/{Collections-avZr7_0f.js → Collections-II8LTxT_.js} +4 -4
  7. package/dist/{Credit-DTTvZPM1.js → Credit-BmCrxH_y.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-vklFmIsn.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D69JT2Pv.js} +50 -79
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BlaPDy92.js → EffectSheet.vue_vue_type_style_index_0_lang-B2XMOBM5.js} +6 -6
  10. package/dist/{Experience-DCa6TS0Q.js → Experience-B0Van8WY.js} +8 -8
  11. package/dist/{Game-BzCGDHtQ.js → Game-C6eyL9l3.js} +8 -8
  12. package/dist/{Index-r0qwconU.js → Index-LiIELbNK.js} +10 -10
  13. package/dist/{Marketing-Bo9ORV-U.js → Marketing-D99U72tf.js} +5 -5
  14. package/dist/{Member-B9Wx7mj-.js → Member-DxbBYc50.js} +4 -4
  15. package/dist/{MemberList-_zrfJtHx.js → MemberList-U2revmy2.js} +23 -23
  16. package/dist/{MemberTransactions-Dr3KpbPV.js → MemberTransactions-9CRf3tCM.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D4sApKiB.js → MessageInput.vue_vue_type_script_setup_true_lang-cD5FFR9P.js} +2 -2
  18. package/dist/{Mission-Dj4HDGzw.js → Mission-TGudgwV7.js} +8 -8
  19. package/dist/{Overview-BGunrEfp.js → Overview-B03G9nki.js} +263 -253
  20. package/dist/{Point-DN8wvLPf.js → Point-Cwqk838v.js} +8 -8
  21. package/dist/{Promotion-Cg1GXv5k.js → Promotion-COYNVAI3.js} +9 -9
  22. package/dist/{Record-CEkCHJv5.js → Record---BGIYbB.js} +6 -6
  23. package/dist/{Reward-C9lkdGz1.js → Reward-kwuaaCfG.js} +14 -14
  24. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DhOM3_he.js → RewardGroup.vue_vue_type_script_setup_true_lang-CofAUniA.js} +10 -10
  25. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BT11zrtr.js → RuleGroup.vue_vue_type_script_setup_true_lang-DLshXqMu.js} +12 -12
  26. package/dist/{Segment-ve4u49Es.js → Segment-BTG35sUt.js} +13 -13
  27. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-W8GOxCe8.js → SelectItems.vue_vue_type_script_setup_true_lang-D3cAojfE.js} +2 -2
  28. package/dist/{Setting-DPKJ4_dA.js → Setting-DcS6mUOn.js} +9 -9
  29. package/dist/{Store-BM3tDUR7.js → Store-B8pXMGRZ.js} +17 -17
  30. package/dist/{StoreRewards-CUSKcJCb.js → StoreRewards-CJnZaJ3z.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bv84TRw7.js → StoreTransactions.vue_vue_type_script_setup_true_lang-ZMS-eAIK.js} +17 -17
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BaZt5eEY.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bjq2VvOp.js} +1 -1
  33. package/dist/{Tier-BTihXYcH.js → Tier-DOu-QAjN.js} +18 -18
  34. package/dist/{Title-B9tTTFH5.js → Title-rDDxdZ4r.js} +18 -18
  35. package/dist/{Transaction-BENAWE73.js → Transaction-AWZQ7ZTe.js} +2 -2
  36. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Urz6dfyq.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DGtwt2iL.js} +6 -6
  37. package/dist/{Voucher-BzJjo4fl.js → Voucher-B6KfuR0o.js} +11 -11
  38. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-duHl9hIp.js → VoucherEditor.vue_vue_type_script_setup_true_lang-rvhbBeEe.js} +10 -10
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D5EZSfkp.js → ZodTextField.vue_vue_type_script_setup_true_lang-DKeylO9L.js} +1 -1
  40. package/dist/{app-CX_SQVUR.js → app-Cqw8hP5z.js} +1 -1
  41. package/dist/{app-qb2LBXOm.js → app-zNXPhbUz.js} +28 -28
  42. package/dist/app.js +1 -1
  43. package/dist/{business-Do5pRKw2.js → business-CznE6Svn.js} +1 -1
  44. package/dist/{campaign-iYtyzp9V.js → campaign-CUYac6Su.js} +2 -2
  45. package/dist/{campaign-Cvi5_asz.js → campaign-Dhr4jure.js} +9 -9
  46. package/dist/{campaign.enum-D2L8HJBq.js → campaign.enum-CIDeX5hI.js} +1 -1
  47. package/dist/{campaign.fn-Bnue2bVX.js → campaign.fn-du7oX48w.js} +135 -135
  48. package/dist/{collectible.enum-GDYQTbAW.js → collectible.enum-BvtHUpIg.js} +1 -1
  49. package/dist/{collection.fn-BQ_ZEiRJ.js → collection.fn-D0UfJ7nQ.js} +2 -2
  50. package/dist/{dto-BWPwB9bN.js → dto-B2xriA5R.js} +4 -4
  51. package/dist/{effect-hTkshcY5.js → effect-Dq0tyIyK.js} +1 -1
  52. package/dist/{email-addresses-eIVejjI0.js → email-addresses-BrQJLpUq.js} +1 -1
  53. package/dist/{export-Dp8G7E__.js → export-B05X7Phs.js} +3 -3
  54. package/dist/{helper-DnxUEmd_.js → helper-Dct_VSQa.js} +1 -1
  55. package/dist/{index-8pxD1kKV.js → index-7TPJV0gI.js} +3 -3
  56. package/dist/{index-B_u8s4Lf.js → index-AXhOH9d3.js} +1 -1
  57. package/dist/{index-Cp6SSFau.js → index-B0ypBnG-.js} +3 -3
  58. package/dist/{index-CZJLR-Ml.js → index-BCtdvht8.js} +1 -1
  59. package/dist/{index-CBAYvtxq.js → index-BESZjmTQ.js} +4 -4
  60. package/dist/{index-CyvoNwdF.js → index-BPGSpiqh.js} +6 -6
  61. package/dist/{index-CQihq9Bj.js → index-BWQJCRjy.js} +1 -1
  62. package/dist/{index-Cu-LW6MM.js → index-BpbCfX7D.js} +2 -2
  63. package/dist/{index-BlzPvIJ2.js → index-BrG4tQij.js} +1 -1
  64. package/dist/{index-CYPlMFQ2.js → index-D1xG5UeY.js} +1 -1
  65. package/dist/{index-Cuuhn6YS.js → index-Dej-1u7X.js} +1 -1
  66. package/dist/{index-BfwVSVMh.js → index-Dt72tLOr.js} +1 -1
  67. package/dist/{index.esm2017-DmI33Q2P.js → index.esm2017-BsrwN3O8.js} +1 -1
  68. package/dist/{loading-DKKULV_E.js → loading-DX2ksaO4.js} +4 -4
  69. package/dist/{membership-BXV1XXY4.js → membership-DIxJebgN.js} +3 -3
  70. package/dist/{money-CcCkF5IQ.js → money-DyJygY8g.js} +1 -1
  71. package/dist/{number-C6HhIacF.js → number-C1pLpt8a.js} +1 -1
  72. package/dist/{objectid-DJhAHBgC.js → objectid-BYuSHnQg.js} +7 -7
  73. package/dist/{reward-BvR9i8X2.js → reward-DHf6gXlt.js} +1 -1
  74. package/dist/{rule-DInlRpPw.js → rule-9BPyYlg8.js} +3 -3
  75. package/dist/{rule-builder-C42YRYbm.js → rule-builder-CClPEyAm.js} +1 -1
  76. package/dist/{template-aB-zHI0M.js → template-jm2WKKrb.js} +4 -4
  77. package/dist/{trigger-S-z5eyHz.js → trigger-B_qCtHOV.js} +51 -21
  78. package/dist/{usePagination-yoBBttw0.js → usePagination-BGl6s-Lb.js} +1 -1
  79. package/dist/{user-L0aUIwIm.js → user-CiCMNvu8.js} +1 -1
  80. package/dist/{vue-i18n-FdWz2LOJ.js → vue-i18n-B0cMT7bz.js} +288 -288
  81. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
- import { defineComponent as Y, resolveComponent as _, openBlock as S, createElementBlock as E, Fragment as z, createVNode as d, withCtx as V, createElementVNode as a, toDisplayString as O, unref as t, renderSlot as he, ref as F, computed as G, watch as se, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ie, createTextVNode as de, createCommentVNode as W, h as te, onMounted as ve } from "vue";
2
- import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-FdWz2LOJ.js";
4
- import { c as we, p as q, u as ce } from "./loading-DKKULV_E.js";
1
+ import { defineComponent as q, resolveComponent as _, openBlock as R, createElementBlock as B, Fragment as Y, createVNode as d, withCtx as V, createElementVNode as a, toDisplayString as O, unref as t, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as D, isRef as W, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as ge } from "vue";
2
+ import { _ as we } from "./campaign-CpzFl8Vr.js";
3
+ import { u as Z } from "./vue-i18n-B0cMT7bz.js";
4
+ import { c as _e, p as K, u as ue } from "./loading-DX2ksaO4.js";
5
5
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
6
6
  import { Z as N } from "./zod-Bg2FbC-D.js";
7
- import { u as K } from "./app-wDQR6dpb.js";
8
- import { u as Q, _ as _e } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DhOM3_he.js";
9
- import { u as ue } from "./reward-BvR9i8X2.js";
10
- import { q as le, r as ye } from "./index-CBAYvtxq.js";
11
- import "./index-Cu-LW6MM.js";
12
- import { a as be, b as xe } from "./index-CyvoNwdF.js";
13
- import "./index-CZJLR-Ml.js";
14
- import "./index-Cp6SSFau.js";
15
- import { C as me } from "./membership-BXV1XXY4.js";
16
- import { t as ee } from "./helper-DnxUEmd_.js";
7
+ import { u as J } from "./app-wDQR6dpb.js";
8
+ import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CofAUniA.js";
9
+ import { u as me } from "./reward-DHf6gXlt.js";
10
+ import { q as le, r as se } from "./index-BESZjmTQ.js";
11
+ import "./index-BpbCfX7D.js";
12
+ import { a as be, b as xe } from "./index-BPGSpiqh.js";
13
+ import "./index-BCtdvht8.js";
14
+ import "./index-B0ypBnG-.js";
15
+ import { C as fe } from "./membership-DIxJebgN.js";
16
+ import { t as ee } from "./helper-Dct_VSQa.js";
17
17
  import { c as H } from "./object-qECH92oz.js";
18
18
  import { useDialog as Re, components as oe } from "@feedmepos/ui-library";
19
- import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-D5EZSfkp.js";
20
- import { a as Se, _ as Fe } from "./trigger-S-z5eyHz.js";
21
- import { O as ke } from "./objectid-DJhAHBgC.js";
22
- import { r as fe } from "./index-B_u8s4Lf.js";
23
- import { u as $e } from "./business-Do5pRKw2.js";
24
- const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Ie = { class: "flex-1" }, Te = { class: "flex items-center gap-8" }, Ue = { class: "fm-typo-en-title-sm-800" }, Ae = { class: "flex gap-8 items-center" }, Le = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Ee = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Oe = { class: "flex-1 space-y-4" }, je = { class: "fm-typo-en-body-lg-600" }, De = /* @__PURE__ */ Y({
19
+ import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DKeylO9L.js";
20
+ import { b as Se, _ as Fe, a as ke } from "./trigger-B_qCtHOV.js";
21
+ import { O as $e } from "./objectid-BYuSHnQg.js";
22
+ import { r as pe } from "./index-AXhOH9d3.js";
23
+ import { u as Pe } from "./business-CznE6Svn.js";
24
+ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, De = { class: "flex-1 space-y-4" }, je = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
25
25
  __name: "ReferralRewadGroupCard",
26
26
  props: {
27
27
  rewardGroup: {
@@ -37,23 +37,23 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
37
37
  setup(k, { emit: m }) {
38
38
  const { t: I } = Z(), p = m;
39
39
  return (w, f) => {
40
- const n = _("FmButton"), c = _("FmListItem");
41
- return S(), E(z, null, [
40
+ const l = _("FmButton"), c = _("FmListItem");
41
+ return R(), B(Y, null, [
42
42
  d(c, {
43
43
  onClick: f[4] || (f[4] = (u) => p("edit", k.level)),
44
44
  class: "!p-0"
45
45
  }, {
46
46
  default: V(() => [
47
- a("div", Pe, [
48
- a("div", Ve, [
49
- a("div", Ie, [
50
- a("div", Te, [
51
- a("div", Ue, O(k.rewardGroup.name), 1)
47
+ a("div", Ve, [
48
+ a("div", Ie, [
49
+ a("div", Te, [
50
+ a("div", Ue, [
51
+ a("div", Ae, O(k.rewardGroup.name), 1)
52
52
  ])
53
53
  ])
54
54
  ]),
55
- a("div", Ae, [
56
- d(n, {
55
+ a("div", Le, [
56
+ d(l, {
57
57
  variant: "secondary",
58
58
  label: t(I)("connect.referral.reward.add_count"),
59
59
  icon: "add",
@@ -61,7 +61,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
61
61
  u.stopPropagation(), p("addCount", k.level);
62
62
  })
63
63
  }, null, 8, ["label"]),
64
- d(n, {
64
+ d(l, {
65
65
  icon: "delete",
66
66
  onClick: f[1] || (f[1] = (u) => {
67
67
  u.stopPropagation(), p("remove", k.level);
@@ -70,22 +70,22 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
70
70
  })
71
71
  ])
72
72
  ]),
73
- a("div", Le, [
73
+ a("div", Ee, [
74
74
  a("div", Be, [
75
- a("div", Ee, [
76
- a("div", Oe, [
75
+ a("div", Oe, [
76
+ a("div", De, [
77
77
  a("div", null, [
78
78
  a("div", je, O(k.rewardGroup.name), 1)
79
79
  ])
80
80
  ])
81
81
  ]),
82
- d(n, {
82
+ d(l, {
83
83
  variant: "tertiary",
84
84
  icon: "delete",
85
85
  onClick: f[2] || (f[2] = (u) => (u.stopPropagation(), p("remove", k.level)))
86
86
  })
87
87
  ]),
88
- d(n, {
88
+ d(l, {
89
89
  class: "w-full",
90
90
  variant: "secondary",
91
91
  label: "Add count",
@@ -97,17 +97,17 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
97
97
  ]),
98
98
  _: 1
99
99
  }),
100
- he(w.$slots, "default")
100
+ ve(w.$slots, "default")
101
101
  ], 64);
102
102
  };
103
103
  }
104
- }), Ge = { class: "flex flex-col space-y-16 pr-12" }, Me = { class: "flex gap-16 items-center" }, Ne = { class: "fm-typo-en-title-sm-800" }, He = { class: "flex items-center gap-8" }, ze = /* @__PURE__ */ Y({
104
+ }), Me = { class: "flex flex-col space-y-16 pr-12" }, Ne = { class: "flex gap-16 items-center" }, He = { class: "fm-typo-en-title-sm-800" }, ze = { class: "flex items-center gap-8" }, Ye = /* @__PURE__ */ q({
105
105
  __name: "EditReferralCountSheet",
106
106
  emits: ["update"],
107
107
  setup(k, { expose: m, emit: I }) {
108
- const { t: p } = Z(), w = I, f = F(!1), n = F({}), c = F(-1), u = F(-1), R = Q(), A = be.superRefine((e, r) => {
109
- var $, U, P, x, v, B, ae;
110
- const i = u.value == -1 ? ((P = (U = ($ = R.referralProgram) == null ? void 0 : $.reward[c.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : u.value, g = (v = (x = R.referralProgram) == null ? void 0 : x.reward[c.value]) == null ? void 0 : v.rewards[i - 1], b = (ae = (B = R.referralProgram) == null ? void 0 : B.reward[c.value]) == null ? void 0 : ae.rewards[i + 1];
108
+ const { t: p } = Z(), w = I, f = F(!1), l = F({}), c = F(-1), u = F(-1), C = Q(), A = be.superRefine((e, r) => {
109
+ var $, U, P, x, v, E, ae;
110
+ const i = u.value == -1 ? ((P = (U = ($ = C.referralProgram) == null ? void 0 : $.reward[c.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : u.value, g = (v = (x = C.referralProgram) == null ? void 0 : x.reward[c.value]) == null ? void 0 : v.rewards[i - 1], b = (ae = (E = C.referralProgram) == null ? void 0 : E.reward[c.value]) == null ? void 0 : ae.rewards[i + 1];
111
111
  g && e.threshold.from < g.threshold.from + 1 && r.addIssue({
112
112
  code: "custom",
113
113
  message: `The min referral must be at least ${g.threshold.from + 1}`,
@@ -118,27 +118,27 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
118
118
  path: ["option"]
119
119
  });
120
120
  }), T = G(() => {
121
- const e = A.safeParse(n.value);
121
+ const e = A.safeParse(l.value);
122
122
  return e.success ? [] : e.error.errors;
123
123
  });
124
124
  function M() {
125
- const e = A.safeParse(n.value);
125
+ const e = A.safeParse(l.value);
126
126
  e.success && w("update", {
127
127
  groupIndex: c.value,
128
128
  countIndex: u.value,
129
129
  referralCount: e.data
130
130
  });
131
131
  }
132
- async function D(e, r) {
132
+ async function j(e, r) {
133
133
  var i, g, b, $, U, P;
134
134
  if (f.value = e, e && typeof (r == null ? void 0 : r.countIndex) == "number" && r.countIndex >= 0)
135
- c.value = r.groupIndex, u.value = r.countIndex, n.value = H(
136
- (i = R.referralProgram) == null ? void 0 : i.reward[r.groupIndex].rewards[r.countIndex]
135
+ c.value = r.groupIndex, u.value = r.countIndex, l.value = H(
136
+ (i = C.referralProgram) == null ? void 0 : i.reward[r.groupIndex].rewards[r.countIndex]
137
137
  );
138
138
  else {
139
139
  c.value = r.groupIndex, u.value = -1;
140
- const x = u.value == -1 ? (($ = (b = (g = R.referralProgram) == null ? void 0 : g.reward[c.value]) == null ? void 0 : b.rewards) == null ? void 0 : $.length) || 0 : u.value, v = (P = (U = R.referralProgram) == null ? void 0 : U.reward[c.value]) == null ? void 0 : P.rewards[x - 1];
141
- n.value = {
140
+ const x = u.value == -1 ? (($ = (b = (g = C.referralProgram) == null ? void 0 : g.reward[c.value]) == null ? void 0 : b.rewards) == null ? void 0 : $.length) || 0 : u.value, v = (P = (U = C.referralProgram) == null ? void 0 : U.reward[c.value]) == null ? void 0 : P.rewards[x - 1];
141
+ l.value = {
142
142
  threshold: {
143
143
  from: v != null && v.threshold ? v != null && v.threshold.to ? v.threshold.to + 1 : (v == null ? void 0 : v.threshold.from) + 1 : 1,
144
144
  to: null
@@ -146,8 +146,8 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
146
146
  rewards: []
147
147
  };
148
148
  }
149
- h.value = [], h.value = l.value.map(
150
- (x) => n.value.rewards.includes(x.id)
149
+ h.value = [], h.value = s.value.map(
150
+ (x) => l.value.rewards.includes(x.id)
151
151
  );
152
152
  }
153
153
  function L() {
@@ -163,7 +163,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
163
163
  id: "type",
164
164
  header: "Reward type",
165
165
  cell(e) {
166
- return me[e.row.original.collectibleConfig.type].chip();
166
+ return fe[e.row.original.collectibleConfig.type].chip();
167
167
  }
168
168
  },
169
169
  {
@@ -175,7 +175,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
175
175
  return r.description;
176
176
  }
177
177
  }
178
- ], s = ue(), o = F([]), l = G(() => s.rewards.map((e) => {
178
+ ], n = me(), o = F([]), s = G(() => n.rewards.map((e) => {
179
179
  let r = "No expiry";
180
180
  switch (e.option.type) {
181
181
  case "VOUCHER":
@@ -194,35 +194,35 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
194
194
  };
195
195
  }));
196
196
  G(() => []);
197
- function C() {
198
- const e = l.value;
197
+ function S() {
198
+ const e = s.value;
199
199
  for (let r = 0; r < e.length; r++) {
200
200
  const i = e[r], g = h.value[r];
201
- g && !n.value.rewards.includes(i.id) && n.value.rewards.push(i.id), !g && n.value.rewards.includes(i.id) && (n.value.rewards = n.value.rewards.filter(
201
+ g && !l.value.rewards.includes(i.id) && l.value.rewards.push(i.id), !g && l.value.rewards.includes(i.id) && (l.value.rewards = l.value.rewards.filter(
202
202
  (b) => b != i.id
203
203
  ));
204
204
  }
205
205
  }
206
206
  const h = F({});
207
- return se(h, C, { deep: !0 }), m({
208
- showSheet: D,
207
+ return ie(h, S, { deep: !0 }), m({
208
+ showSheet: j,
209
209
  hideSheet: L,
210
- data: n
210
+ data: l
211
211
  }), (e, r) => {
212
212
  const i = _("FmStepperField"), g = _("FmHelperText"), b = _("FmTable"), $ = _("FmButton"), U = _("FmSideSheet");
213
- return S(), j(U, {
213
+ return R(), D(U, {
214
214
  "max-width": 1e3,
215
215
  modelValue: t(f),
216
- "onUpdate:modelValue": r[4] || (r[4] = (P) => J(f) ? f.value = P : null),
216
+ "onUpdate:modelValue": r[4] || (r[4] = (P) => W(f) ? f.value = P : null),
217
217
  header: `${t(u) == -1 ? t(p)("connect.referral.editReferralCountSheet.add") : t(p)("connect.referral.editReferralCountSheet.edit")}`
218
218
  }, {
219
219
  "side-sheet-footer": V(() => [
220
- a("div", He, [
220
+ a("div", ze, [
221
221
  d($, {
222
222
  label: t(p)("connect.editTierSheet.submit"),
223
223
  onClick: M,
224
- disabled: t(T).length > 0 || t(K)().isLoading,
225
- loading: t(K)().isLoading
224
+ disabled: t(T).length > 0 || t(J)().isLoading,
225
+ loading: t(J)().isLoading
226
226
  }, null, 8, ["label", "disabled", "loading"]),
227
227
  d($, {
228
228
  label: t(p)("connect.editTierSheet.cancel"),
@@ -232,19 +232,19 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
232
232
  ])
233
233
  ]),
234
234
  default: V(() => [
235
- d(X, { json: t(n) }, null, 8, ["json"]),
235
+ d(X, { json: t(l) }, null, 8, ["json"]),
236
236
  d(X, { json: t(T) }, null, 8, ["json"]),
237
- a("div", Ge, [
237
+ a("div", Me, [
238
238
  a("div", null, [
239
- a("div", Me, [
239
+ a("div", Ne, [
240
240
  d(i, {
241
- modelValue: t(n).threshold.from,
242
- "onUpdate:modelValue": r[0] || (r[0] = (P) => t(n).threshold.from = P),
241
+ modelValue: t(l).threshold.from,
242
+ "onUpdate:modelValue": r[0] || (r[0] = (P) => t(l).threshold.from = P),
243
243
  "show-steppers": !1,
244
244
  rules: [t(N).ruleAtPath(t(A), "threshold.from")]
245
245
  }, {
246
246
  label: V(() => [
247
- (S(), j(ne(
247
+ (R(), D(ne(
248
248
  t(N).toInputLabel(
249
249
  t(N).typeAtPath(t(A), "threshold.from"),
250
250
  t(p)(
@@ -256,13 +256,13 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
256
256
  _: 1
257
257
  }, 8, ["modelValue", "rules"]),
258
258
  d(i, {
259
- modelValue: t(n).threshold.to,
260
- "onUpdate:modelValue": r[1] || (r[1] = (P) => t(n).threshold.to = P),
259
+ modelValue: t(l).threshold.to,
260
+ "onUpdate:modelValue": r[1] || (r[1] = (P) => t(l).threshold.to = P),
261
261
  "show-steppers": !1,
262
262
  rules: [t(N).ruleAtPath(t(A), "threshold.to")]
263
263
  }, {
264
264
  label: V(() => [
265
- (S(), j(ne(
265
+ (R(), D(ne(
266
266
  t(N).toInputLabel(
267
267
  t(N).typeAtPath(t(A), "threshold.to"),
268
268
  t(p)(
@@ -280,14 +280,14 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
280
280
  }, null, 8, ["text", "state"]),
281
281
  r[5] || (r[5] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " When max. referral count is not set, it will default unlimited ", -1))
282
282
  ]),
283
- a("div", Ne, O(t(p)("connect.referral.editReferralCountSheet.referrer_reward")), 1),
283
+ a("div", He, O(t(p)("connect.referral.editReferralCountSheet.referrer_reward")), 1),
284
284
  d(b, {
285
285
  modelValue: t(h),
286
- "onUpdate:modelValue": r[2] || (r[2] = (P) => J(h) ? h.value = P : null),
286
+ "onUpdate:modelValue": r[2] || (r[2] = (P) => W(h) ? h.value = P : null),
287
287
  selection: "multiple",
288
288
  "column-filter": t(o),
289
289
  "column-defs": y,
290
- "row-data": t(l),
290
+ "row-data": t(s),
291
291
  "page-size": 10
292
292
  }, null, 8, ["modelValue", "column-filter", "row-data"])
293
293
  ])
@@ -296,7 +296,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
296
296
  }, 8, ["modelValue", "header"]);
297
297
  };
298
298
  }
299
- }), Ye = { class: "space-y-16" }, qe = { class: "grid grid-cols-3 gap-16" }, We = { class: "fm-typo-en-title-sm-800" }, Je = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ Y({
299
+ }), qe = { class: "space-y-16" }, Ke = { class: "grid grid-cols-3 gap-16" }, We = { class: "fm-typo-en-title-sm-800" }, Je = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ze = /* @__PURE__ */ q({
300
300
  __name: "CriteriaTriggerInput",
301
301
  props: {
302
302
  modelValue: {
@@ -313,16 +313,16 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
313
313
  le.enum.BILL_COMPLETED,
314
314
  le.enum.FEEDBACK
315
315
  ].map((f) => Se[f]));
316
- return (f, n) => {
316
+ return (f, l) => {
317
317
  const c = _("FmCard");
318
- return S(), E("div", Ye, [
319
- n[0] || (n[0] = a("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Define the conditions that must be met to activate a reward. ", -1)),
320
- a("div", qe, [
321
- (S(!0), E(z, null, re(t(w), (u) => (S(), j(c, {
318
+ return R(), B("div", qe, [
319
+ l[0] || (l[0] = a("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Define the conditions that must be met to activate a reward. ", -1)),
320
+ a("div", Ke, [
321
+ (R(!0), B(Y, null, re(t(w), (u) => (R(), D(c, {
322
322
  key: u.name,
323
323
  variant: "outlined",
324
324
  disabled: I.disabled,
325
- class: ie(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3", {
325
+ class: de(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3", {
326
326
  "col-span-3": t(w).length == 1,
327
327
  "border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": k.modelValue == u.value,
328
328
  "hover:bg-fm-color-opacity-sm": k.modelValue != u.value
@@ -341,31 +341,34 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
341
341
  ]);
342
342
  };
343
343
  }
344
- }), Ze = { class: "flex items-center gap-x-8" }, Qe = { class: "flex flex-col space-y-16 pr-12" }, Xe = {
344
+ }), Qe = { class: "flex items-center gap-x-8" }, Xe = { class: "flex flex-col space-y-16 pr-12" }, er = {
345
345
  key: 0,
346
346
  class: "space-y-16"
347
- }, er = { class: "flex items-center gap-8" }, rr = /* @__PURE__ */ Y({
347
+ }, rr = {
348
+ key: 1,
349
+ class: "space-y-16"
350
+ }, tr = { class: "flex items-center gap-8" }, or = /* @__PURE__ */ q({
348
351
  __name: "EditCriteriaSheet",
349
352
  emits: ["update"],
350
353
  setup(k, { expose: m, emit: I }) {
351
- const { t: p } = Z(), w = I, f = F(!1), n = F(-1), c = F({}), u = Q(), R = xe.superRefine((y, s) => {
352
- y.name.length >= 50 && s.addIssue({
354
+ const { t: p } = Z(), w = I, f = F(!1), l = F(-1), c = F({}), u = Q(), C = xe.superRefine((y, n) => {
355
+ y.name.length >= 50 && n.addIssue({
353
356
  code: "custom",
354
357
  message: "Name must be less than 50 characters"
355
- }), y.name.length < 1 && s.addIssue({
358
+ }), y.name.length < 1 && n.addIssue({
356
359
  code: "custom",
357
360
  message: "Name is required"
358
361
  });
359
362
  }), A = G(() => {
360
- const y = R.safeParse(c.value);
363
+ const y = C.safeParse(c.value);
361
364
  return y.success ? [] : y.error.errors;
362
365
  });
363
- function T(y, s) {
366
+ function T(y, n) {
364
367
  var o;
365
- f.value = y, y && typeof s == "number" && s >= 0 ? (n.value = s, c.value = H(
366
- (o = u.referralProgram) == null ? void 0 : o.criteria[s]
367
- )) : (n.value = -1, c.value = {
368
- _id: new ke().toString(),
368
+ f.value = y, y && typeof n == "number" && n >= 0 ? (l.value = n, c.value = H(
369
+ (o = u.referralProgram) == null ? void 0 : o.criteria[n]
370
+ )) : (l.value = -1, c.value = {
371
+ _id: new $e().toString(),
369
372
  name: "",
370
373
  type: "AUTO",
371
374
  event: { type: "BILL_COMPLETED" }
@@ -374,9 +377,9 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
374
377
  function M() {
375
378
  f.value = !1;
376
379
  }
377
- function D() {
378
- const y = R.safeParse(c.value);
379
- y.success && w("update", n.value, y.data);
380
+ function j() {
381
+ const y = C.safeParse(c.value);
382
+ y.success && w("update", l.value, y.data);
380
383
  }
381
384
  function L(y) {
382
385
  c.value.type = y, y == "AUTO" ? c.value.event = { type: "BILL_COMPLETED" } : c.value.event = void 0;
@@ -385,61 +388,61 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
385
388
  showSheet: T,
386
389
  hideSheet: M,
387
390
  data: c
388
- }), (y, s) => {
389
- const o = _("FmButton"), l = _("FmRadio"), C = _("FmRadioGroup"), h = _("FmSideSheet");
390
- return S(), j(h, {
391
+ }), (y, n) => {
392
+ const o = _("FmButton"), s = _("FmRadio"), S = _("FmRadioGroup"), h = _("FmSideSheet");
393
+ return R(), D(h, {
391
394
  "max-width": 768,
392
395
  modelValue: t(f),
393
- "onUpdate:modelValue": s[5] || (s[5] = (e) => J(f) ? f.value = e : null)
396
+ "onUpdate:modelValue": n[6] || (n[6] = (e) => W(f) ? f.value = e : null)
394
397
  }, {
395
398
  "side-sheet-header": V(() => [
396
- a("div", Ze, [
399
+ a("div", Qe, [
397
400
  d(o, {
398
401
  icon: "arrow_back",
399
402
  variant: "tertiary",
400
- onClick: s[0] || (s[0] = (e) => T(!1))
403
+ onClick: n[0] || (n[0] = (e) => T(!1))
401
404
  }),
402
- s[6] || (s[6] = de("Add Criteria "))
405
+ n[7] || (n[7] = ce("Add Criteria "))
403
406
  ])
404
407
  ]),
405
408
  "side-sheet-footer": V(() => [
406
- a("div", er, [
409
+ a("div", tr, [
407
410
  d(o, {
408
411
  label: t(p)("connect.editTierSheet.submit"),
409
- onClick: D,
410
- disabled: t(A).length > 0 || t(K)().isLoading,
411
- loading: t(K)().isLoading
412
+ onClick: j,
413
+ disabled: t(A).length > 0 || t(J)().isLoading,
414
+ loading: t(J)().isLoading
412
415
  }, null, 8, ["label", "disabled", "loading"]),
413
416
  d(o, {
414
417
  label: t(p)("connect.editTierSheet.cancel"),
415
- onClick: s[4] || (s[4] = (e) => T(!1)),
418
+ onClick: n[5] || (n[5] = (e) => T(!1)),
416
419
  variant: "tertiary"
417
420
  }, null, 8, ["label"])
418
421
  ])
419
422
  ]),
420
423
  default: V(() => [
421
424
  d(X, { json: t(c) }, null, 8, ["json"]),
422
- a("div", Qe, [
423
- s[10] || (s[10] = a("div", { class: "fm-typo-en-title-sm-600" }, "Program Criteria", -1)),
425
+ a("div", Xe, [
426
+ n[12] || (n[12] = a("div", { class: "fm-typo-en-title-sm-600" }, "Program Criteria", -1)),
424
427
  d(Ce, {
425
428
  modelValue: t(c).name,
426
- "onUpdate:modelValue": s[1] || (s[1] = (e) => t(c).name = e),
429
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => t(c).name = e),
427
430
  label: t(p)("connect.referral.editReferralTierSheet.name"),
428
- schema: t(N).typeAtPath(t(R), "name")
431
+ schema: t(N).typeAtPath(t(C), "name")
429
432
  }, null, 8, ["modelValue", "label", "schema"]),
430
- s[11] || (s[11] = a("div", { class: "fm-typo-en-title-sm-600" }, "Configuration", -1)),
431
- d(C, {
433
+ n[13] || (n[13] = a("div", { class: "fm-typo-en-title-sm-600" }, "Configuration", -1)),
434
+ d(S, {
432
435
  "model-value": t(c).type,
433
436
  label: "Verify status",
434
437
  "onUpdate:modelValue": L
435
438
  }, {
436
439
  default: V(() => [
437
- d(l, {
440
+ d(s, {
438
441
  value: "AUTO",
439
442
  label: "Auto",
440
443
  sublabel: "Verify based on rule configuration"
441
444
  }),
442
- d(l, {
445
+ d(s, {
443
446
  value: "MANUAL",
444
447
  label: "Manual",
445
448
  sublabel: "Verify based on manual inspection"
@@ -447,21 +450,28 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
447
450
  ]),
448
451
  _: 1
449
452
  }, 8, ["model-value"]),
450
- t(c).type == "AUTO" ? (S(), E(z, { key: 0 }, [
451
- s[8] || (s[8] = a("div", { class: "fm-typo-en-title-sm-600" }, "Trigger", -1)),
452
- s[9] || (s[9] = a("div", null, " Select trigger what referee need to complete in order for referral to earn reward ", -1)),
453
- d(Ke, {
453
+ t(c).type == "AUTO" ? (R(), B(Y, { key: 0 }, [
454
+ n[10] || (n[10] = a("div", { class: "fm-typo-en-title-sm-600" }, "Trigger", -1)),
455
+ n[11] || (n[11] = a("div", null, " Select trigger what referee need to complete in order for referral to earn reward ", -1)),
456
+ d(Ze, {
454
457
  "model-value": t(c).event.type,
455
- "onUpdate:modelValue": s[2] || (s[2] = (e) => t(c).event.type = e)
458
+ "onUpdate:modelValue": n[2] || (n[2] = (e) => t(c).event.type = e)
456
459
  }, null, 8, ["model-value"]),
457
- t(c).event.type == t(ye).enum.BILL_COMPLETED ? (S(), E("div", Xe, [
458
- s[7] || (s[7] = a("div", { class: "fm-typo-en-title-sm-600" }, "Spending Criteria", -1)),
460
+ t(c).event.type == t(se).enum.BILL_COMPLETED ? (R(), B("div", er, [
461
+ n[8] || (n[8] = a("div", { class: "fm-typo-en-title-sm-600" }, "Spending Criteria", -1)),
459
462
  d(Fe, {
460
463
  "model-value": t(c).event.rule,
461
- "onUpdate:modelValue": s[3] || (s[3] = (e) => t(c).event.rule = e)
464
+ "onUpdate:modelValue": n[3] || (n[3] = (e) => t(c).event.rule = e)
462
465
  }, null, 8, ["model-value"])
463
- ])) : W("", !0)
464
- ], 64)) : W("", !0)
466
+ ])) : z("", !0),
467
+ t(c).event.type == t(se).enum.FEEDBACK ? (R(), B("div", rr, [
468
+ n[9] || (n[9] = a("div", { class: "fm-typo-en-title-sm-600" }, "Feedback Criteria", -1)),
469
+ d(ke, {
470
+ "model-value": t(c).event.rule,
471
+ "onUpdate:modelValue": n[4] || (n[4] = (e) => t(c).event.rule = e)
472
+ }, null, 8, ["model-value"])
473
+ ])) : z("", !0)
474
+ ], 64)) : z("", !0)
465
475
  ])
466
476
  ]),
467
477
  _: 1
@@ -469,7 +479,7 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
469
479
  };
470
480
  }
471
481
  });
472
- function pe() {
482
+ function he() {
473
483
  const k = F(!1), m = Re();
474
484
  return {
475
485
  confirmUpdateReferralRecord: async () => {
@@ -489,10 +499,10 @@ function pe() {
489
499
  updateReferralRecord: k
490
500
  };
491
501
  }
492
- const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex justify-between items-center" }, ar = /* @__PURE__ */ Y({
502
+ const ar = { class: "flex flex-col space-y-16 mt-24" }, nr = { class: "flex justify-between items-center" }, lr = /* @__PURE__ */ q({
493
503
  __name: "ManageCriteriaSheet",
494
504
  setup(k, { expose: m }) {
495
- const { t: I } = Z(), { minor: p } = ce, { confirmUpdateReferralRecord: w, updateReferralRecord: f } = pe(), n = F(!1), c = F({}), u = Q(), R = F(
505
+ const { t: I } = Z(), { minor: p } = ue, { confirmUpdateReferralRecord: w, updateReferralRecord: f } = he(), l = F(!1), c = F({}), u = Q(), C = F(
496
506
  null
497
507
  ), A = G(() => {
498
508
  var o;
@@ -500,28 +510,28 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
500
510
  });
501
511
  async function T(o) {
502
512
  await w(), await p(async () => {
503
- await fe.update({
513
+ await pe.update({
504
514
  ...o,
505
515
  updateReferralRecord: f.value
506
516
  }), await u.readReferralProgram();
507
517
  });
508
518
  }
509
- async function M(o, l) {
519
+ async function M(o, s) {
510
520
  var e, r;
511
- const C = o == -1 ? ((e = u.referralProgram) == null ? void 0 : e.criteria.length) || 0 : o, h = H(u.referralProgram);
512
- h.criteria[C] = l, await T(h), (r = R.value) == null || r.showSheet(!1);
521
+ const S = o == -1 ? ((e = u.referralProgram) == null ? void 0 : e.criteria.length) || 0 : o, h = H(u.referralProgram);
522
+ h.criteria[S] = s, await T(h), (r = C.value) == null || r.showSheet(!1);
513
523
  }
514
- async function D(o) {
524
+ async function j(o) {
515
525
  var h, e;
516
- if (!await q.remove(
526
+ if (!await K.remove(
517
527
  "Are you sure to remove criteria",
518
528
  "Remove criteria",
519
529
  I("connect.prompt.confirm"),
520
530
  I("connect.prompt.cancel")
521
531
  ))
522
532
  return;
523
- const l = o == -1 ? ((h = u.referralProgram) == null ? void 0 : h.criteria.length) || 0 : o, C = H(u.referralProgram);
524
- C.criteria.splice(l, 1), await T(C), (e = R.value) == null || e.showSheet(!1);
533
+ const s = o == -1 ? ((h = u.referralProgram) == null ? void 0 : h.criteria.length) || 0 : o, S = H(u.referralProgram);
534
+ S.criteria.splice(s, 1), await T(S), (e = C.value) == null || e.showSheet(!1);
525
535
  }
526
536
  const L = [
527
537
  {
@@ -532,7 +542,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
532
542
  header: "Validity method",
533
543
  cell(o) {
534
544
  return te(oe.FmChip, {
535
- label: we.title(o.row.original.type),
545
+ label: _e.title(o.row.original.type),
536
546
  variant: "plain"
537
547
  });
538
548
  }
@@ -545,8 +555,8 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
545
555
  variant: "tertiary",
546
556
  icon: "delete",
547
557
  iconColor: "neutral-gray-400",
548
- onClick: (l) => {
549
- l.stopPropagation(), D(o.row.index);
558
+ onClick: (s) => {
559
+ s.stopPropagation(), j(o.row.index);
550
560
  }
551
561
  })
552
562
  ];
@@ -554,38 +564,38 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
554
564
  }
555
565
  ];
556
566
  function y(o) {
557
- n.value = o;
567
+ l.value = o;
558
568
  }
559
- function s() {
560
- n.value = !1;
569
+ function n() {
570
+ l.value = !1;
561
571
  }
562
572
  return m({
563
573
  showSheet: y,
564
- hideSheet: s,
574
+ hideSheet: n,
565
575
  data: c
566
- }), (o, l) => {
567
- const C = _("FmButton"), h = _("FmTable"), e = _("FmSideSheet");
568
- return S(), E(z, null, [
576
+ }), (o, s) => {
577
+ const S = _("FmButton"), h = _("FmTable"), e = _("FmSideSheet");
578
+ return R(), B(Y, null, [
569
579
  d(e, {
570
580
  "max-width": 768,
571
- modelValue: t(n),
572
- "onUpdate:modelValue": l[2] || (l[2] = (r) => J(n) ? n.value = r : null),
581
+ modelValue: t(l),
582
+ "onUpdate:modelValue": s[2] || (s[2] = (r) => W(l) ? l.value = r : null),
573
583
  header: "Manage Criteria"
574
584
  }, {
575
585
  default: V(() => [
576
- a("div", tr, [
577
- a("div", or, [
578
- l[3] || (l[3] = a("div", null, [
586
+ a("div", ar, [
587
+ a("div", nr, [
588
+ s[3] || (s[3] = a("div", null, [
579
589
  a("div", { class: "fm-typo-en-title-sm-600" }, "Program Criteria"),
580
590
  a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Set participation rules to start your referral program ")
581
591
  ], -1)),
582
- d(C, {
592
+ d(S, {
583
593
  label: "Add Criteria",
584
594
  icon: "add",
585
595
  variant: "secondary",
586
- onClick: l[0] || (l[0] = (r) => {
596
+ onClick: s[0] || (s[0] = (r) => {
587
597
  var i;
588
- return (i = t(R)) == null ? void 0 : i.showSheet(!0);
598
+ return (i = t(C)) == null ? void 0 : i.showSheet(!0);
589
599
  })
590
600
  })
591
601
  ]),
@@ -595,34 +605,34 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
595
605
  "page-size": 100,
596
606
  "shrink-at": !1,
597
607
  "column-defs": L,
598
- onRowClick: l[1] || (l[1] = (r) => {
608
+ onRowClick: s[1] || (s[1] = (r) => {
599
609
  var i;
600
- return (i = t(R)) == null ? void 0 : i.showSheet(!0, r.index);
610
+ return (i = t(C)) == null ? void 0 : i.showSheet(!0, r.index);
601
611
  })
602
612
  }, null, 8, ["row-data"])
603
613
  ])
604
614
  ]),
605
615
  _: 1
606
616
  }, 8, ["modelValue"]),
607
- d(rr, {
617
+ d(or, {
608
618
  ref_key: "editCriteriaSheetRef",
609
- ref: R,
619
+ ref: C,
610
620
  onUpdate: M
611
621
  }, null, 512)
612
622
  ], 64);
613
623
  };
614
624
  }
615
- }), nr = { class: "flex flex-col space-y-16 pr-12" }, lr = { class: "fm-typo-en-title-sm-800" }, sr = { class: "flex items-center gap-8" }, ir = /* @__PURE__ */ Y({
625
+ }), sr = { class: "flex flex-col space-y-16 pr-12" }, ir = { class: "fm-typo-en-title-sm-800" }, dr = { class: "flex items-center gap-8" }, cr = /* @__PURE__ */ q({
616
626
  __name: "EditRefereeRewardSheet",
617
627
  emits: ["update"],
618
628
  setup(k, { expose: m, emit: I }) {
619
- const { t: p } = Z(), w = I, f = F(!1), n = F([]), c = Q();
629
+ const { t: p } = Z(), w = I, f = F(!1), l = F([]), c = Q();
620
630
  function u() {
621
- w("update", n.value);
631
+ w("update", l.value);
622
632
  }
623
- async function R(o) {
624
- var l, C;
625
- f.value = o, n.value = ((C = (l = c.referralProgram) == null ? void 0 : l.refereeReward) == null ? void 0 : C.map((h) => h.toString())) || [], s.value = L.value.map((h) => n.value.includes(h.id));
633
+ async function C(o) {
634
+ var s, S;
635
+ f.value = o, l.value = ((S = (s = c.referralProgram) == null ? void 0 : s.refereeReward) == null ? void 0 : S.map((h) => h.toString())) || [], n.value = L.value.map((h) => l.value.includes(h.id));
626
636
  }
627
637
  function A() {
628
638
  f.value = !1;
@@ -637,26 +647,26 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
637
647
  id: "type",
638
648
  header: "Reward type",
639
649
  cell(o) {
640
- return me[o.row.original.collectibleConfig.type].chip();
650
+ return fe[o.row.original.collectibleConfig.type].chip();
641
651
  }
642
652
  },
643
653
  {
644
654
  header: "Description",
645
655
  accessorFn: (o) => o.description,
646
656
  cell(o) {
647
- const l = o.row.original;
648
- if (l.collectible.type == "VOUCHER" || l.selectedReward == null)
649
- return l.description;
657
+ const s = o.row.original;
658
+ if (s.collectible.type == "VOUCHER" || s.selectedReward == null)
659
+ return s.description;
650
660
  }
651
661
  }
652
- ], M = ue(), D = F([]), L = G(() => M.rewards.map((o) => {
653
- let l = "No expiry";
662
+ ], M = me(), j = F([]), L = G(() => M.rewards.map((o) => {
663
+ let s = "No expiry";
654
664
  switch (o.option.type) {
655
665
  case "VOUCHER":
656
- l = `${o.option.collectibleConfig.options.maxUse} use(s), ${ee(o.option.collectibleConfig.options.validityOption || {})}`;
666
+ s = `${o.option.collectibleConfig.options.maxUse} use(s), ${ee(o.option.collectibleConfig.options.validityOption || {})}`;
657
667
  break;
658
668
  case "LOYALTY":
659
- l = `${o.option.earningOption.amount}, ${ee(o.option.validityOption || {})}`;
669
+ s = `${o.option.earningOption.amount}, ${ee(o.option.validityOption || {})}`;
660
670
  break;
661
671
  }
662
672
  return {
@@ -664,54 +674,54 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
664
674
  name: o.name,
665
675
  collectible: o.option,
666
676
  collectibleConfig: o.collectibleConfig,
667
- description: l
677
+ description: s
668
678
  };
669
679
  }));
670
680
  G(() => []);
671
681
  function y() {
672
682
  const o = L.value;
673
- for (let l = 0; l < o.length; l++) {
674
- const C = o[l], h = s.value[l];
675
- h && !n.value.includes(C.id) && n.value.push(C.id), !h && n.value.includes(C.id) && (n.value = n.value.filter((e) => e != C.id));
683
+ for (let s = 0; s < o.length; s++) {
684
+ const S = o[s], h = n.value[s];
685
+ h && !l.value.includes(S.id) && l.value.push(S.id), !h && l.value.includes(S.id) && (l.value = l.value.filter((e) => e != S.id));
676
686
  }
677
687
  }
678
- const s = F({});
679
- return se(s, y, { deep: !0 }), m({
680
- showSheet: R,
688
+ const n = F({});
689
+ return ie(n, y, { deep: !0 }), m({
690
+ showSheet: C,
681
691
  hideSheet: A,
682
- data: n
683
- }), (o, l) => {
684
- const C = _("FmTable"), h = _("FmButton"), e = _("FmSideSheet");
685
- return S(), j(e, {
692
+ data: l
693
+ }), (o, s) => {
694
+ const S = _("FmTable"), h = _("FmButton"), e = _("FmSideSheet");
695
+ return R(), D(e, {
686
696
  "max-width": 1e3,
687
697
  modelValue: t(f),
688
- "onUpdate:modelValue": l[2] || (l[2] = (r) => J(f) ? f.value = r : null),
698
+ "onUpdate:modelValue": s[2] || (s[2] = (r) => W(f) ? f.value = r : null),
689
699
  header: "Referee reward"
690
700
  }, {
691
701
  "side-sheet-footer": V(() => [
692
- a("div", sr, [
702
+ a("div", dr, [
693
703
  d(h, {
694
704
  label: t(p)("connect.common.save"),
695
705
  onClick: u,
696
- disabled: t(K)().isLoading,
697
- loading: t(K)().isLoading
706
+ disabled: t(J)().isLoading,
707
+ loading: t(J)().isLoading
698
708
  }, null, 8, ["label", "disabled", "loading"]),
699
709
  d(h, {
700
710
  label: t(p)("connect.common.cancel"),
701
- onClick: l[1] || (l[1] = (r) => A()),
711
+ onClick: s[1] || (s[1] = (r) => A()),
702
712
  variant: "tertiary"
703
713
  }, null, 8, ["label"])
704
714
  ])
705
715
  ]),
706
716
  default: V(() => [
707
- d(X, { json: t(n) }, null, 8, ["json"]),
708
- a("div", nr, [
709
- a("div", lr, O(t(p)("connect.referral.refereeRewardSheet.referee_reward")), 1),
710
- d(C, {
711
- modelValue: t(s),
712
- "onUpdate:modelValue": l[0] || (l[0] = (r) => J(s) ? s.value = r : null),
717
+ d(X, { json: t(l) }, null, 8, ["json"]),
718
+ a("div", sr, [
719
+ a("div", ir, O(t(p)("connect.referral.refereeRewardSheet.referee_reward")), 1),
720
+ d(S, {
721
+ modelValue: t(n),
722
+ "onUpdate:modelValue": s[0] || (s[0] = (r) => W(n) ? n.value = r : null),
713
723
  selection: "multiple",
714
- "column-filter": t(D),
724
+ "column-filter": t(j),
715
725
  "column-defs": T,
716
726
  "row-data": t(L),
717
727
  "page-size": 10
@@ -722,18 +732,18 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
722
732
  }, 8, ["modelValue"]);
723
733
  };
724
734
  }
725
- }), dr = { class: "fm-typo-en-title-sm-600" }, cr = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, ur = { class: "flex gap-x-8" }, mr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, fr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pr = { class: "mb-40" }, hr = {
735
+ }), ur = { class: "fm-typo-en-title-sm-600" }, mr = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, fr = { class: "flex gap-x-8" }, pr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, hr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vr = { class: "mb-40" }, gr = {
726
736
  key: 0,
727
737
  class: "flex flex-col items-center justify-center gap-y-16 p-24"
728
- }, vr = { class: "flex flex-col gap-16 text-center" }, gr = { class: "fm-typo-en-title-sm-800" }, wr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mr = /* @__PURE__ */ Y({
738
+ }, wr = { class: "flex flex-col gap-16 text-center" }, _r = { class: "fm-typo-en-title-sm-800" }, yr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Hr = /* @__PURE__ */ q({
729
739
  __name: "Overview",
730
740
  setup(k) {
731
- const { t: m } = Z(), { minor: I } = ce, p = $e(), w = Q(), { confirmUpdateReferralRecord: f, updateReferralRecord: n } = pe(), c = G(() => {
741
+ const { t: m } = Z(), { minor: I } = ue, p = Pe(), w = Q(), { confirmUpdateReferralRecord: f, updateReferralRecord: l } = he(), c = G(() => {
732
742
  var e;
733
743
  return ((e = w.referralProgram) == null ? void 0 : e.reward) ?? [];
734
744
  }), u = F(null);
735
745
  F(null);
736
- const R = F(null), A = F(null), T = F(null), M = G(() => {
746
+ const C = F(null), A = F(null), T = F(null), M = G(() => {
737
747
  var e, r, i, g;
738
748
  return [
739
749
  {
@@ -770,26 +780,26 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
770
780
  }
771
781
  ];
772
782
  });
773
- function D(e) {
783
+ function j(e) {
774
784
  var r;
775
785
  (r = u.value) == null || r.onManageRewardGroup(e);
776
786
  }
777
787
  function L(e) {
778
788
  var r;
779
- (r = R.value) == null || r.showSheet(!0, {
789
+ (r = C.value) == null || r.showSheet(!0, {
780
790
  groupIndex: e.groupIndex,
781
791
  countIndex: e.countIndex
782
792
  });
783
793
  }
784
794
  async function y(e) {
785
- var P, x, v, B;
795
+ var P, x, v, E;
786
796
  const r = e.countIndex == -1 ? ((x = (P = w.referralProgram) == null ? void 0 : P.reward[e.groupIndex]) == null ? void 0 : x.rewards.length) || 0 : e.countIndex || 0, i = e.referralCount, g = H(
787
797
  w.referralProgram
788
798
  ), b = g.reward[e.groupIndex];
789
799
  b.rewards[r] = e.referralCount;
790
800
  const $ = b.rewards[r - 1], U = b.rewards[r + 1];
791
801
  if ($ && $.threshold.to != i.threshold.from - 1) {
792
- if (!await q.confirm(
802
+ if (!await K.confirm(
793
803
  m(
794
804
  "connect.referral.referral_count.update.range_discontinuous.previous",
795
805
  {
@@ -806,7 +816,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
806
816
  $.threshold.to = i.threshold.from - 1;
807
817
  }
808
818
  if (U && U.threshold.from - 1 != i.threshold.to) {
809
- if (!await q.confirm(
819
+ if (!await K.confirm(
810
820
  m("connect.program.tier.update.range_discontinuous.next", {
811
821
  name: U.threshold.from,
812
822
  from: U.threshold.from ?? 0,
@@ -820,9 +830,9 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
820
830
  return;
821
831
  U.threshold.from = (i.threshold.to ?? 0) + 1;
822
832
  }
823
- !U && !((v = i.threshold) != null && v.to) && (i.threshold.to = void 0), await o(g), (B = R.value) == null || B.hideSheet();
833
+ !U && !((v = i.threshold) != null && v.to) && (i.threshold.to = void 0), await o(g), (E = C.value) == null || E.hideSheet();
824
834
  }
825
- async function s(e) {
835
+ async function n(e) {
826
836
  var i;
827
837
  const r = H(w.referralProgram);
828
838
  r.refereeReward = e, await o(r), (i = T.value) == null || i.hideSheet();
@@ -830,9 +840,9 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
830
840
  async function o(e) {
831
841
  await f(), await I(
832
842
  async () => {
833
- await fe.update({
843
+ await pe.update({
834
844
  ...e,
835
- updateReferralRecord: n.value
845
+ updateReferralRecord: l.value
836
846
  }), await w.readReferralProgram();
837
847
  },
838
848
  {
@@ -841,8 +851,8 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
841
851
  }
842
852
  );
843
853
  }
844
- async function l(e) {
845
- if (!await q.remove(
854
+ async function s(e) {
855
+ if (!await K.remove(
846
856
  "Are you sure to remove referral tier",
847
857
  "Remove referral tier",
848
858
  m("connect.prompt.confirm"),
@@ -852,8 +862,8 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
852
862
  const r = H(w.referralProgram);
853
863
  r.reward.splice(e, 1), await o(r);
854
864
  }
855
- async function C(e, r) {
856
- if (!await q.remove(
865
+ async function S(e, r) {
866
+ if (!await K.remove(
857
867
  "Are you sure to remove referral count",
858
868
  "Remove referral tier",
859
869
  m("connect.prompt.confirm"),
@@ -862,7 +872,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
862
872
  return;
863
873
  const i = H(w.referralProgram), g = i.reward[e].rewards[r + 1];
864
874
  if (g) {
865
- if (!await q.confirm(
875
+ if (!await K.confirm(
866
876
  m("connect.referral.referral_count.update.range_discontinuous.next", {
867
877
  from: g.threshold.from ?? 0,
868
878
  to: g.threshold.to ?? 1 / 0,
@@ -902,39 +912,39 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
902
912
  iconColor: "neutral-gray-400",
903
913
  class: "ml-auto",
904
914
  onClick: (r) => {
905
- r.stopPropagation(), console.log(e.row), C(e.row.original.groupIndex, e.row.index);
915
+ r.stopPropagation(), console.log(e.row), S(e.row.original.groupIndex, e.row.index);
906
916
  }
907
917
  });
908
918
  }
909
919
  }
910
920
  ];
911
- return ve(async () => {
921
+ return ge(async () => {
912
922
  await w.readReferralProgram();
913
923
  }), (e, r) => {
914
924
  const i = _("FmCard"), g = _("FmIcon"), b = _("FmTooltip"), $ = _("FmButton"), U = _("FmTable"), P = _("FmList");
915
- return S(), E(z, null, [
916
- W("", !0),
925
+ return R(), B(Y, null, [
926
+ z("", !0),
917
927
  d(i, {
918
928
  variant: "outlined",
919
929
  class: "flex flex-col gap-16 p-16"
920
930
  }, {
921
931
  default: V(() => [
922
- a("div", dr, O(t(m)("connect.referral.how_it_works.title")), 1),
923
- a("div", cr, [
924
- (S(!0), E(z, null, re(t(M), (x, v) => (S(), E("div", {
932
+ a("div", ur, O(t(m)("connect.referral.how_it_works.title")), 1),
933
+ a("div", mr, [
934
+ (R(!0), B(Y, null, re(t(M), (x, v) => (R(), B("div", {
925
935
  key: v,
926
- class: ie(["px-8", { "xs:!border-r": v % 2 == 0 }])
936
+ class: de(["px-8", { "xs:!border-r": v % 2 == 0 }])
927
937
  }, [
928
- a("div", ur, [
938
+ a("div", fr, [
929
939
  d(g, {
930
940
  name: x.icon,
931
941
  color: "primary",
932
942
  class: "bg-fm-color-system-warning-100 p-8 fm-corner-radius-md max-h-40 max-w-40"
933
943
  }, null, 8, ["name"]),
934
944
  a("div", null, [
935
- a("div", mr, [
936
- de(O(t(m)(x.label)) + " ", 1),
937
- x.helperText ? (S(), j(b, {
945
+ a("div", pr, [
946
+ ce(O(t(m)(x.label)) + " ", 1),
947
+ x.helperText ? (R(), D(b, {
938
948
  key: 0,
939
949
  content: x.helperText
940
950
  }, {
@@ -946,17 +956,17 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
946
956
  })
947
957
  ]),
948
958
  _: 2
949
- }, 1032, ["content"])) : W("", !0)
959
+ }, 1032, ["content"])) : z("", !0)
950
960
  ]),
951
- a("div", fr, O(x.sublabel), 1),
952
- x.action ? (S(), j($, {
961
+ a("div", hr, O(x.sublabel), 1),
962
+ x.action ? (R(), D($, {
953
963
  key: 0,
954
964
  variant: "plain",
955
965
  label: x.action,
956
966
  disabled: !t(p).isPremium,
957
967
  class: "fm-typo-en-body-md-400 !p-0",
958
968
  onClick: x.onClick
959
- }, null, 8, ["label", "disabled", "onClick"])) : W("", !0)
969
+ }, null, 8, ["label", "disabled", "onClick"])) : z("", !0)
960
970
  ])
961
971
  ])
962
972
  ], 2))), 128))
@@ -964,7 +974,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
964
974
  ]),
965
975
  _: 1
966
976
  }),
967
- t(c) && t(c).length > 0 ? (S(), j(i, {
977
+ t(c) && t(c).length > 0 ? (R(), D(i, {
968
978
  key: 1,
969
979
  variant: "outlined",
970
980
  class: "flex flex-col gap-16 p-16"
@@ -972,27 +982,27 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
972
982
  default: V(() => [
973
983
  d(P, { separator: !0 }, {
974
984
  default: V(() => [
975
- (S(!0), E(z, null, re(t(c), (x, v) => (S(), j(De, {
985
+ (R(!0), B(Y, null, re(t(c), (x, v) => (R(), D(Ge, {
976
986
  key: v,
977
987
  "reward-group": x,
978
988
  level: v,
979
- onEdit: (B) => D(v),
980
- onRemove: (B) => l(v),
981
- onAddCount: r[0] || (r[0] = (B) => {
982
- L({ groupIndex: B, countIndex: -1 });
989
+ onEdit: (E) => j(v),
990
+ onRemove: (E) => s(v),
991
+ onAddCount: r[0] || (r[0] = (E) => {
992
+ L({ groupIndex: E, countIndex: -1 });
983
993
  })
984
994
  }, {
985
995
  default: V(() => [
986
- a("div", pr, [
996
+ a("div", vr, [
987
997
  d(U, {
988
- "row-data": x.rewards.map((B) => ({ ...B, groupIndex: v })),
998
+ "row-data": x.rewards.map((E) => ({ ...E, groupIndex: v })),
989
999
  "column-defs": h,
990
1000
  "hide-footer": !0,
991
1001
  "page-size": 50,
992
- onRowClick: (B) => L({ groupIndex: v, countIndex: B.index })
1002
+ onRowClick: (E) => L({ groupIndex: v, countIndex: E.index })
993
1003
  }, null, 8, ["row-data", "onRowClick"])
994
1004
  ]),
995
- x.rewards.length ? W("", !0) : (S(), E("div", hr, [
1005
+ x.rewards.length ? z("", !0) : (R(), B("div", gr, [
996
1006
  r[3] || (r[3] = a("div", { class: "flex flex-col gap-16 text-center" }, [
997
1007
  a("div", { class: "fm-typo-en-title-sm-800" }, "Create progressive reward"),
998
1008
  a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Add referral count to configure progression reward to the referral program ")
@@ -1001,7 +1011,7 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
1001
1011
  variant: "secondary",
1002
1012
  label: "Add count",
1003
1013
  icon: "add",
1004
- onClick: (B) => L({ groupIndex: v, countIndex: -1 })
1014
+ onClick: (E) => L({ groupIndex: v, countIndex: -1 })
1005
1015
  }, null, 8, ["onClick"])
1006
1016
  ]))
1007
1017
  ]),
@@ -1012,52 +1022,52 @@ const tr = { class: "flex flex-col space-y-16 mt-24" }, or = { class: "flex just
1012
1022
  })
1013
1023
  ]),
1014
1024
  _: 1
1015
- })) : (S(), j(i, {
1025
+ })) : (R(), D(i, {
1016
1026
  key: 2,
1017
1027
  variant: "outlined",
1018
1028
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
1019
1029
  }, {
1020
1030
  default: V(() => [
1021
1031
  r[4] || (r[4] = a("img", {
1022
- src: ge,
1032
+ src: we,
1023
1033
  class: "aspect-square w-[150px]"
1024
1034
  }, null, -1)),
1025
- a("div", vr, [
1026
- a("div", gr, O(t(m)("connect.referral.referral_tier_title")), 1),
1027
- a("div", wr, O(t(m)("connect.referral.referral_tier_description")), 1)
1035
+ a("div", wr, [
1036
+ a("div", _r, O(t(m)("connect.referral.referral_tier_title")), 1),
1037
+ a("div", yr, O(t(m)("connect.referral.referral_tier_description")), 1)
1028
1038
  ]),
1029
1039
  d($, {
1030
1040
  variant: "primary",
1031
1041
  label: t(m)("connect.referral.add_referral_tier"),
1032
1042
  icon: "add",
1033
1043
  disabled: !t(p).isPremium,
1034
- onClick: r[1] || (r[1] = (x) => D(-1))
1044
+ onClick: r[1] || (r[1] = (x) => j(-1))
1035
1045
  }, null, 8, ["label", "disabled"])
1036
1046
  ]),
1037
1047
  _: 1
1038
1048
  })),
1039
- d(_e, {
1049
+ d(ye, {
1040
1050
  ref_key: "rewardGroupRef",
1041
1051
  ref: u
1042
1052
  }, null, 512),
1043
- d(ze, {
1053
+ d(Ye, {
1044
1054
  ref_key: "editReferralCountSheetRef",
1045
- ref: R,
1055
+ ref: C,
1046
1056
  onUpdate: y
1047
1057
  }, null, 512),
1048
- d(ar, {
1058
+ d(lr, {
1049
1059
  ref_key: "manageCriteriaSheetRef",
1050
1060
  ref: A
1051
1061
  }, null, 512),
1052
- d(ir, {
1062
+ d(cr, {
1053
1063
  ref_key: "editRefereeRewardSheetRef",
1054
1064
  ref: T,
1055
- onUpdate: s
1065
+ onUpdate: n
1056
1066
  }, null, 512)
1057
1067
  ], 64);
1058
1068
  };
1059
1069
  }
1060
1070
  });
1061
1071
  export {
1062
- Mr as default
1072
+ Hr as default
1063
1073
  };