@feedmepos/mf-connect 0.1.0-beta.2 → 0.1.0-beta.21

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 (97) hide show
  1. package/dist/Analytic-CZ8gfj2V.js +424 -0
  2. package/dist/{App-D8a5eW51.js → App-Da9h7lhI.js} +397 -384
  3. package/dist/{Broadcast-C8jgMe6g.js → Broadcast-m6ehTw7F.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BTKA2Ygl.js} +8 -8
  5. package/dist/Card-DqZveZ44.js +685 -0
  6. package/dist/{Collections-lMrdPUuM.js → Collections-XIY6SLgQ.js} +4 -4
  7. package/dist/{Credit-CJfU5tP4.js → Credit-B6Yg3_al.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js +2198 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js → EffectSheet.vue_vue_type_style_index_0_lang-tRUwA8zh.js} +8 -8
  11. package/dist/{Experience-Bp2ki8gU.js → Experience-CsoneWLZ.js} +8 -8
  12. package/dist/{Game-BpTf6ebE.js → Game-B029f9yE.js} +15 -15
  13. package/dist/Index-B2LvLfrR.js +226 -0
  14. package/dist/Marketing-DUTyDRXu.js +20070 -0
  15. package/dist/{Member-BSWyy32a.js → Member-CATybMaC.js} +4 -4
  16. package/dist/MemberList-DxvQ7DnC.js +1045 -0
  17. package/dist/{MemberTransactions-BzHiXCnp.js → MemberTransactions-fEZyBY9P.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js → MessageInput.vue_vue_type_script_setup_true_lang-BCCEsJZj.js} +2 -2
  19. package/dist/{Mission-8IGT3T2C.js → Mission-Cl3O0ULj.js} +16 -16
  20. package/dist/Overview-BVI2xGvT.js +1014 -0
  21. package/dist/{Point-CbbJ6ohd.js → Point-DSVn47pK.js} +23 -23
  22. package/dist/{Promotion-BYXCJa_S.js → Promotion-C4HyMpPg.js} +53 -47
  23. package/dist/Record-BSKXwUu2.js +187 -0
  24. package/dist/Reward-Cus20Wq5.js +399 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Dm6Vgx8-.js +151 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CqMCdTsv.js +1597 -0
  27. package/dist/Segment-DAHJ2FYV.js +567 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DpkIgpqy.js +181 -0
  29. package/dist/{Setting-CLpvvZTv.js → Setting-D7dKlTiZ.js} +8 -8
  30. package/dist/Store-DQdWn1Dw.js +1745 -0
  31. package/dist/{StoreRewards-CUM2irXK.js → StoreRewards-Cut9mJGn.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BQscw_Di.js +957 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BVzz2Zkl.js} +1 -1
  34. package/dist/{Tier-DZTDxWBo.js → Tier-DGpNybHO.js} +15 -15
  35. package/dist/{Title-C2Dr5ceK.js → Title-D5y8GEwE.js} +15 -15
  36. package/dist/{Transaction-BL4mS29d.js → Transaction-CCnZouEv.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Cr9DV7hr.js +130 -0
  38. package/dist/{Voucher-Cx0r2-df.js → Voucher-BJ6RC4SS.js} +31 -31
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-6751WdaT.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js → ZodTextField.vue_vue_type_script_setup_true_lang-aq-9V3Gc.js} +1 -1
  41. package/dist/{app-wE5HTF_Y.js → app-D3chCumI.js} +1279 -1282
  42. package/dist/{app-B_xuZ5HB.js → app-PfWyqx7U.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/{business-DSv8zM8C.js → business-trsrJyHK.js} +1 -1
  45. package/dist/{campaign-7y5qquHZ.js → campaign-B1rgdv77.js} +2 -2
  46. package/dist/collectible.enum-ZoD0ya1M.js +19 -0
  47. package/dist/{collection.fn-BxVZQAx0.js → collection.fn-CnQjdokW.js} +2 -2
  48. package/dist/{dto-Ew1QwLci.js → dto-DuJumvC2.js} +12 -20
  49. package/dist/{effect-BzPh8fRI.js → effect-CFYktLyZ.js} +9 -9
  50. package/dist/email-addresses-BocLAqLt.js +705 -0
  51. package/dist/{export-C9tDplkA.js → export-BDxbvd3c.js} +3 -3
  52. package/dist/{helper-Sz7oQ0F4.js → helper-Bx6u7f_W.js} +1 -1
  53. package/dist/{index-DH_1nOJ_.js → index-7QsBQpBM.js} +39 -35
  54. package/dist/{index-z0IfdrZk.js → index-AcoIUTDS.js} +203 -195
  55. package/dist/{index-C3_4GUiI.js → index-BAUe6Mqp.js} +7 -1
  56. package/dist/{index-C0lpADCo.js → index-C20tnKDo.js} +1 -1
  57. package/dist/{index-C-SOz7jt.js → index-CDgSJNKm.js} +1 -1
  58. package/dist/{index-DBMaUGYI.js → index-CTnZ9dt0.js} +30 -26
  59. package/dist/index-CUMB0mpB.js +28997 -0
  60. package/dist/index-CsF6BSZU.js +1067 -0
  61. package/dist/index-CsaQJMAR.js +66 -0
  62. package/dist/{index-tv4t0Pnh.js → index-DwXHEi0X.js} +1 -1
  63. package/dist/{index-_3qBsogG.js → index-ZXWgygOr.js} +1500 -1479
  64. package/dist/index-_v_LQTuR.js +53 -0
  65. package/dist/index-kLMiwwB-.js +38 -0
  66. package/dist/{index-gIRszcHf.js → index-pRpTA8Kd.js} +1 -1
  67. package/dist/{index.esm2017-BnKJDxUo.js → index.esm2017-DuOZ7nuk.js} +33 -33
  68. package/dist/{loading-Ds-yFYhc.js → loading-BTEwnG5-.js} +591 -597
  69. package/dist/{membership-DaiVw9qF.js → membership-DkH7qw6W.js} +51 -43
  70. package/dist/money-BfCdj0Ts.js +15 -0
  71. package/dist/number-BKHcstZb.js +12 -0
  72. package/dist/objectid-CumRza_j.js +145 -0
  73. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  74. package/dist/reward-DpR3xoxT.js +36 -0
  75. package/dist/{rule-Cd2M6Ri2.js → rule-Hb9_sJvP.js} +180 -177
  76. package/dist/{rule-builder-B6og27Q1.js → rule-builder-BhwlX4fv.js} +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/{template-DouRWBpv.js → template-PkDFDppy.js} +5 -5
  79. package/dist/trigger-vLHrldAH.js +114 -0
  80. package/dist/{vue-i18n-BTlOChXs.js → vue-i18n-ComnFt3O.js} +2 -2
  81. package/dist/{xlsx-SahfXQ70.js → xlsx-CsUJ1mq4.js} +1 -1
  82. package/package.json +8 -7
  83. package/dist/Analytic-DSD9TsKr.js +0 -622
  84. package/dist/Card-C1K7ULPo.js +0 -825
  85. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js +0 -2809
  86. package/dist/Marketing-BiKE2gxA.js +0 -316
  87. package/dist/MemberList-CHlGREyR.js +0 -1733
  88. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js +0 -1753
  89. package/dist/Segment-DXDNM0yd.js +0 -437
  90. package/dist/Store-C6-P6bwc.js +0 -1511
  91. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js +0 -890
  92. package/dist/index-BQm0C3Jm.js +0 -298
  93. package/dist/index-CuvNtC_M.js +0 -61
  94. package/dist/index-D-2nFLsg.js +0 -762
  95. package/dist/index-Dy4pmQpt.js +0 -29193
  96. package/dist/money-BHtBdZoz.js +0 -15
  97. package/dist/number-CZhcB8ef.js +0 -12
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as A, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as D, Fragment as _, createElementVNode as h, createTextVNode as ee } from "vue";
2
- import { z as te } from "./app-wE5HTF_Y.js";
2
+ import { z as te } from "./app-D3chCumI.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-_3qBsogG.js";
5
- import { u as Z } from "./vue-i18n-BTlOChXs.js";
6
- import { s as O } from "./effect-BzPh8fRI.js";
7
- import { p as ae } from "./loading-Ds-yFYhc.js";
8
- import { I as ne } from "./app-B_xuZ5HB.js";
4
+ import { g as le, f as oe } from "./index-ZXWgygOr.js";
5
+ import { u as Z } from "./vue-i18n-ComnFt3O.js";
6
+ import { s as O } from "./effect-CFYktLyZ.js";
7
+ import { p as ae } from "./loading-BTEwnG5-.js";
8
+ import { I as ne } from "./app-PfWyqx7U.js";
9
9
  const ie = { class: "flex flex-col gap-8" }, se = {
10
10
  key: 0,
11
11
  class: "fm-typo-en-body-lg-600"
@@ -339,7 +339,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
339
339
  }
340
340
  });
341
341
  export {
342
- Ae as _,
342
+ re as _,
343
343
  he as a,
344
- re as b
344
+ Ae as b
345
345
  };
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
2
2
  import { _ as q } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as z, components as G } from "@feedmepos/ui-library";
4
- import { u as J, p as Q } from "./loading-Ds-yFYhc.js";
5
- import { u as W } from "./business-DSv8zM8C.js";
6
- import { u as X } from "./campaign-7y5qquHZ.js";
7
- import { g as L, b as V } from "./dto-Ew1QwLci.js";
8
- import { u as Y } from "./vue-i18n-BTlOChXs.js";
4
+ import { u as J, p as Q } from "./loading-BTEwnG5-.js";
5
+ import { u as W } from "./business-trsrJyHK.js";
6
+ import { u as X } from "./campaign-B1rgdv77.js";
7
+ import { g as L, a as V } from "./dto-DuJumvC2.js";
8
+ import { u as Y } from "./vue-i18n-ComnFt3O.js";
9
9
  import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js";
11
- import { u as te } from "./template-DouRWBpv.js";
12
- import { c as g } from "./index-C-SOz7jt.js";
10
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js";
11
+ import { u as te } from "./template-PkDFDppy.js";
12
+ import { c as g } from "./index-CDgSJNKm.js";
13
13
  const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, le = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ D({
14
14
  __name: "Experience",
15
15
  setup(ye) {
@@ -1,15 +1,15 @@
1
- import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as b, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as v, resolveDynamicComponent as z, h as p } from "vue";
1
+ import { defineComponent as D, ref as A, computed as H, onMounted as N, resolveComponent as r, openBlock as d, createElementBlock as x, Fragment as v, createVNode as i, unref as o, withCtx as h, createElementVNode as n, toDisplayString as l, renderList as q, createBlock as b, resolveDynamicComponent as z, h as p } from "vue";
2
2
  import { _ as J } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as O, components as C } from "@feedmepos/ui-library";
4
- import { u as Q, a as W, p as X } from "./loading-Ds-yFYhc.js";
5
- import { u as Y } from "./business-DSv8zM8C.js";
6
- import { u as Z } from "./campaign-7y5qquHZ.js";
7
- import { g as B, b as $ } from "./dto-Ew1QwLci.js";
4
+ import { u as Q, a as W, p as X } from "./loading-BTEwnG5-.js";
5
+ import { u as Y } from "./business-trsrJyHK.js";
6
+ import { u as Z } from "./campaign-B1rgdv77.js";
7
+ import { g as B, a as $ } from "./dto-DuJumvC2.js";
8
8
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js";
10
- import { u as oe } from "./template-DouRWBpv.js";
11
- import { u as ae } from "./vue-i18n-BTlOChXs.js";
12
- import { c as w } from "./index-C-SOz7jt.js";
9
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js";
10
+ import { u as oe } from "./template-PkDFDppy.js";
11
+ import { u as ae } from "./vue-i18n-ComnFt3O.js";
12
+ import { c as w } from "./index-CDgSJNKm.js";
13
13
  const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = /* @__PURE__ */ D({
14
14
  __name: "Game",
15
15
  setup(we) {
@@ -130,7 +130,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
130
130
  });
131
131
  }), (e, t) => {
132
132
  const u = r("FmPill"), _ = r("FmPageHead"), L = r("FmSearch"), I = r("FmTable"), P = r("FmButton"), T = r("FmListItem"), U = r("FmList"), j = r("FmCard");
133
- return d(), x(b, null, [
133
+ return d(), x(v, null, [
134
134
  i(_, {
135
135
  actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
136
136
  "onClick:action": t[0] || (t[0] = () => y())
@@ -151,7 +151,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
151
151
  placeholder: "search",
152
152
  collapsible: ""
153
153
  }, null, 8, ["modelValue"]),
154
- o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(b, { key: 0 }, [
154
+ o(m).campaigns.token && o(m).campaigns.token.length > 0 ? (d(), x(v, { key: 0 }, [
155
155
  n("div", re, [
156
156
  n("div", le, [
157
157
  i(ee, {
@@ -183,9 +183,9 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
183
183
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
184
184
  i(U, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
185
185
  default: h(() => [
186
- (d(!0), x(b, null, q(o(g).filter(
186
+ (d(!0), x(v, null, q(o(g).filter(
187
187
  (a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
188
- ), (a) => (d(), v(T, {
188
+ ), (a) => (d(), b(T, {
189
189
  key: a._id.toString(),
190
190
  onClick: (V) => y(a),
191
191
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
@@ -193,7 +193,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
193
193
  default: h(() => [
194
194
  n("div", ce, [
195
195
  n("div", me, [
196
- (d(), v(z(o(B)(a)))),
196
+ (d(), b(z(o(B)(a)))),
197
197
  n("div", de, l(a.currentReceive ?? 0) + " used ", 1)
198
198
  ]),
199
199
  n("div", pe, [
@@ -216,7 +216,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
216
216
  ]),
217
217
  _: 1
218
218
  })
219
- ], 64)) : (d(), v(j, {
219
+ ], 64)) : (d(), b(j, {
220
220
  key: 1,
221
221
  variant: "outlined",
222
222
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
@@ -0,0 +1,226 @@
1
+ import { defineComponent as D, ref as v, onMounted as $, resolveComponent as i, openBlock as _, createBlock as I, withCtx as R, createTextVNode as G, createElementVNode as r, createVNode as o, unref as a, createElementBlock as w, createCommentVNode as H, toDisplayString as L, normalizeClass as M, computed as h, Fragment as O, isRef as z } from "vue";
2
+ import { u as U } from "./vue-i18n-ComnFt3O.js";
3
+ import "./index-pRpTA8Kd.js";
4
+ import { useRouter as W } from "vue-router";
5
+ import { f as B, u as j } from "./loading-BTEwnG5-.js";
6
+ import { u as q, _ as J } from "./RewardGroup.vue_vue_type_script_setup_true_lang-Dm6Vgx8-.js";
7
+ import { useDialog as K, useSnackbar as Q, FmButtonVariant as p } from "@feedmepos/ui-library";
8
+ import { r as X } from "./index-kLMiwwB-.js";
9
+ import { u as Y } from "./reward-DpR3xoxT.js";
10
+ import { u as Z } from "./business-trsrJyHK.js";
11
+ import { R as E } from "./app-D3chCumI.js";
12
+ const ee = { class: "space-y-24" }, ae = {
13
+ key: 0,
14
+ class: /* @__PURE__ */ M([
15
+ "p-16 pl-24 space-x-8",
16
+ "bg-fm-color-primary-oats rounded-lg",
17
+ "flex items-center"
18
+ ])
19
+ }, ne = { key: 1 }, oe = {
20
+ key: 2,
21
+ class: /* @__PURE__ */ M([
22
+ "flex items-center",
23
+ "border border-fm-color-neutral-gray-300",
24
+ "p-16 space-x-16 rounded-md"
25
+ ])
26
+ }, te = { class: "fm-typo-en-body-lg-400 flex-1" }, le = { class: "flex justify-end space-x-8 w-full" }, re = /* @__PURE__ */ D({
27
+ __name: "TermAndConditionDialog",
28
+ props: {
29
+ modelValue: { type: Boolean }
30
+ },
31
+ emits: ["update:modelValue"],
32
+ setup(N, { emit: C }) {
33
+ K();
34
+ const b = Q(), { t } = U(), s = q(), { minor: d } = j, c = v(!1), V = C, l = v(null), g = v(null);
35
+ async function F() {
36
+ if (!l.value) {
37
+ b.open({
38
+ type: "error",
39
+ title: "Please upload a file"
40
+ });
41
+ return;
42
+ }
43
+ d(
44
+ async () => {
45
+ c.value = !0;
46
+ const n = await B.update(
47
+ B.referralTermAndConditionPath(),
48
+ l.value
49
+ ), e = s.referralProgram;
50
+ e.term_and_condition = n, await X.update(e), c.value = !1, y();
51
+ },
52
+ {
53
+ successMessage: "Term and Condition uploaded successfully"
54
+ }
55
+ );
56
+ }
57
+ function y() {
58
+ l.value = null, V("update:modelValue", !1);
59
+ }
60
+ function k() {
61
+ var n;
62
+ window.open((n = s.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
63
+ }
64
+ return $(() => {
65
+ }), (n, e) => {
66
+ const P = i("FmButton"), T = i("FmDropField"), m = i("fm-button"), x = i("fm-dialog");
67
+ return _(), I(x, {
68
+ "model-value": n.modelValue,
69
+ "onUpdate:modelValue": e[3] || (e[3] = (u) => n.$emit("update:modelValue", u)),
70
+ "dismiss-away": ""
71
+ }, {
72
+ "dialog-header": R(() => e[4] || (e[4] = [
73
+ G("Upload Term and Condition")
74
+ ])),
75
+ "dialog-footer": R(() => [
76
+ r("div", le, [
77
+ o(m, {
78
+ variant: a(p).Tertiary,
79
+ label: a(t)("Cancel"),
80
+ onClick: y
81
+ }, null, 8, ["variant", "label"]),
82
+ o(m, {
83
+ variant: a(p).Primary,
84
+ class: "ml-auto mr-8",
85
+ label: a(t)("Save"),
86
+ loading: a(c),
87
+ onClick: F
88
+ }, null, 8, ["variant", "label", "loading"])
89
+ ])
90
+ ]),
91
+ default: R(() => {
92
+ var u;
93
+ return [
94
+ r("div", ee, [
95
+ (u = a(s).referralProgram) != null && u.term_and_condition ? (_(), w("div", ae, [
96
+ o(P, {
97
+ label: a(t)("View uploaded file"),
98
+ variant: a(p).Plain,
99
+ icon: "file_present",
100
+ onClick: k
101
+ }, null, 8, ["label", "variant"])
102
+ ])) : H("", !0),
103
+ a(l) ? (_(), w("div", oe, [
104
+ o(m, {
105
+ variant: a(p).Tertiary,
106
+ "prepend-icon": "attach_file"
107
+ }, null, 8, ["variant"]),
108
+ r("p", te, L(a(l).name), 1),
109
+ r("label", {
110
+ ref_key: "fileLabelRef",
111
+ ref: g,
112
+ htmlFor: "file"
113
+ }, [
114
+ o(m, {
115
+ variant: a(p).Plain,
116
+ label: a(t)("Replace File"),
117
+ onClick: e[1] || (e[1] = () => {
118
+ var f;
119
+ return (f = a(g)) == null ? void 0 : f.click();
120
+ })
121
+ }, null, 8, ["variant", "label"]),
122
+ r("input", {
123
+ id: "file",
124
+ accept: ".pdf",
125
+ class: "hidden",
126
+ type: "file",
127
+ onChange: e[2] || (e[2] = (f) => {
128
+ var A, S;
129
+ return l.value = ((S = (A = f.target) == null ? void 0 : A.files) == null ? void 0 : S[0]) ?? null;
130
+ })
131
+ }, null, 32)
132
+ ], 512)
133
+ ])) : (_(), w("div", ne, [
134
+ o(T, {
135
+ onFileUpload: e[0] || (e[0] = (f) => l.value = f),
136
+ accept: ".pdf",
137
+ "max-file-size": 8e6
138
+ })
139
+ ]))
140
+ ])
141
+ ];
142
+ }),
143
+ _: 1
144
+ }, 8, ["model-value"]);
145
+ };
146
+ }
147
+ }), ie = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, de = { class: "px-24 flex flex-col gap-y-16 pb-24" }, we = /* @__PURE__ */ D({
148
+ __name: "Index",
149
+ setup(N) {
150
+ const C = Y(), b = v(null), { t } = U(), s = W(), d = v(!1), c = Z(), V = h(() => c.isPremium ? [
151
+ {
152
+ label: t("connect.referral.actions.terms"),
153
+ value: "term_and_condition"
154
+ },
155
+ {
156
+ label: t("connect.referral.actions.manage_reward"),
157
+ value: "manage_reward"
158
+ },
159
+ {
160
+ label: t("connect.referral.actions.add_referral_tier"),
161
+ value: "add_referral_tier",
162
+ prependIcon: "add",
163
+ isPrimary: !0
164
+ }
165
+ ] : []), l = [
166
+ {
167
+ label: t("connect.referral.tabs.overview"),
168
+ value: E["$connect-REFERRAL_OVERVIEW"],
169
+ actions: []
170
+ },
171
+ {
172
+ label: t("connect.referral.tabs.record"),
173
+ value: E["$connect-REFERRAL_RECORD"],
174
+ actions: []
175
+ }
176
+ ], g = h(() => l.find((n) => n.value === s.currentRoute.value.name) ?? l[0]);
177
+ async function F(n) {
178
+ await s.push({ name: n });
179
+ }
180
+ async function y(n) {
181
+ var e;
182
+ n === "add_referral_tier" && ((e = b.value) == null || e.onManageRewardGroup(-1)), n === "manage_reward" && await s.push({ name: E["$connect-REWARD_TEMPLATE"] }), n === "term_and_condition" && k();
183
+ }
184
+ async function k() {
185
+ d.value = !0;
186
+ }
187
+ return $(async () => {
188
+ await C.readRewards(), await c.readPremium();
189
+ }), (n, e) => {
190
+ const P = i("FmPill"), T = i("FmPageHead"), m = i("FmTabs"), x = i("RouterView");
191
+ return _(), w(O, null, [
192
+ o(T, {
193
+ actions: a(V),
194
+ "onClick:action": y
195
+ }, {
196
+ title: R(() => [
197
+ r("div", ie, [
198
+ r("span", se, L(a(t)("connect.referral.title")), 1),
199
+ o(P, { variant: "premium" })
200
+ ])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["actions"]),
204
+ r("div", de, [
205
+ o(m, {
206
+ "model-value": a(g).value,
207
+ items: l,
208
+ "onUpdate:modelValue": F
209
+ }, null, 8, ["model-value"]),
210
+ o(x)
211
+ ]),
212
+ o(re, {
213
+ modelValue: a(d),
214
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => z(d) ? d.value = u : null)
215
+ }, null, 8, ["modelValue"]),
216
+ o(J, {
217
+ ref_key: "rewardGroupRef",
218
+ ref: b
219
+ }, null, 512)
220
+ ], 64);
221
+ };
222
+ }
223
+ });
224
+ export {
225
+ we as default
226
+ };