@feedmepos/mf-connect 0.1.9-prod → 0.1.10-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{Analytic-8Ew7y5t9.js → Analytic-CpSbitWV.js} +24 -23
  2. package/dist/{App-3BVNH3r-.js → App-BPT8XzjX.js} +56 -51
  3. package/dist/{Broadcast-CrsPUhLT.js → Broadcast-CJHpiQeN.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js} +7 -7
  5. package/dist/Card-Bvn36zqZ.js +895 -0
  6. package/dist/{Collections-djS9hLI8.js → Collections-Bq6OxsJC.js} +24 -29
  7. package/dist/{Credit-D4KEvIov.js → Credit-Dno_g7dW.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js} +648 -1284
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js → EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js} +19 -19
  10. package/dist/{Experience-2FPLO7aV.js → Experience-BC1qSIGO.js} +8 -8
  11. package/dist/{Game-e_UjVJgU.js → Game-C_CKGMBW.js} +8 -8
  12. package/dist/Index-BXFaWTfw.js +255 -0
  13. package/dist/{Marketing-B2hCjZ2r.js → Marketing-Ni0WAie5.js} +5 -5
  14. package/dist/{Member-D_ykRIBb.js → Member-djnisrK1.js} +4 -4
  15. package/dist/{MemberList-LmzzYxEn.js → MemberList-CclU-3B7.js} +193 -189
  16. package/dist/{MemberTransactions-B2vqlKaP.js → MemberTransactions-DVVsv3Ux.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js → MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js} +2 -2
  18. package/dist/Mission-Z5somdo_.js +273 -0
  19. package/dist/Overview-BvMVz3lQ.js +1074 -0
  20. package/dist/{Point-DFriwWWY.js → Point-DdPukiTg.js} +8 -8
  21. package/dist/{Promotion-Db3IEs2F.js → Promotion-DCqdIwjG.js} +9 -9
  22. package/dist/Record-CvMxXm1B.js +337 -0
  23. package/dist/Reward-CiJHGXfQ.js +441 -0
  24. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js +150 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js +1638 -0
  26. package/dist/{Segment-CE8q9JV2.js → Segment-CQb3j-o0.js} +13 -13
  27. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js +181 -0
  28. package/dist/{Setting-Vcz1S27V.js → Setting-91cK3ssU.js} +31 -31
  29. package/dist/Store-B-uldUKt.js +1744 -0
  30. package/dist/{StoreRewards-Dt30AkWo.js → StoreRewards-dDNeFlA9.js} +12 -12
  31. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js +1132 -0
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js} +1 -1
  33. package/dist/{Tier-a6yXEtLd.js → Tier-_jMaLj3u.js} +19 -19
  34. package/dist/{Title-A3-2EI0w.js → Title-By7o67aT.js} +19 -19
  35. package/dist/{Transaction-DswABr2P.js → Transaction-BLpEgeI2.js} +2 -2
  36. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js +130 -0
  37. package/dist/{Voucher-DEoVgZYa.js → Voucher-CG5tfibn.js} +11 -11
  38. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js +419 -0
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js → ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js} +1 -1
  40. package/dist/{app-C23GfQGq.js → app-DDmTqTb7.js} +1 -1
  41. package/dist/{app-C66C2KLW.js → app-vCqTQIeC.js} +424 -273
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DNAVZOSH.js → business-Cz78KGF2.js} +1 -1
  44. package/dist/{campaign-Cv0HaUD1.js → campaign-BBd4o7F_.js} +2 -2
  45. package/dist/campaign.enum-CIhi0b-m.js +20 -0
  46. package/dist/campaign.fn-5silF1DK.js +758 -0
  47. package/dist/collectible.enum-cMIQ6ogq.js +19 -0
  48. package/dist/{collection.fn-Dxzr2oPt.js → collection.fn-BGc7Qeli.js} +2 -2
  49. package/dist/dto-i04OPJfW.js +2018 -0
  50. package/dist/{effect-CUuL8Tci.js → effect-D8UzkYRg.js} +1 -1
  51. package/dist/{email-addresses-Yt3s7i2b.js → email-addresses-u05o35hN.js} +1 -1
  52. package/dist/{export-CNg5YWMm.js → export-BEXuPYEd.js} +3 -3
  53. package/dist/{helper-DzmKNFue.js → helper-RptRJGv6.js} +1 -1
  54. package/dist/{index-Dnf7j71V.js → index-B8s-gucK.js} +9 -3
  55. package/dist/{index-B88e_9YI.js → index-BjHZUhiH.js} +1 -1
  56. package/dist/{index-O9lB54LY.js → index-Bpu2DYUc.js} +1348 -1342
  57. package/dist/{index-BK8X9RF6.js → index-C6-rCMhD.js} +3 -3
  58. package/dist/{index-D0obMrAS.js → index-Cq_ZIbRm.js} +173 -62
  59. package/dist/{index-CsCgQ8gt.js → index-DFAnoAe9.js} +1 -1
  60. package/dist/index-DbyJ6Nyn.js +54 -0
  61. package/dist/{index-yzH5eyKW.js → index-Dt6K2eG8.js} +1 -1
  62. package/dist/{index-9CXt2kbQ.js → index-DwzoqCt8.js} +293 -287
  63. package/dist/index-UfL5qRzR.js +1049 -0
  64. package/dist/index-g8EbRVnr.js +32 -0
  65. package/dist/{index-QuBsnXgx.js → index-hEE_ntHd.js} +1 -1
  66. package/dist/index-vh86FiIQ.js +10 -0
  67. package/dist/{index.esm2017-TpBElhnN.js → index.esm2017-BSzW_yaL.js} +1 -1
  68. package/dist/{loading-ChoC5E9d.js → loading-DjEdwdnj.js} +156 -153
  69. package/dist/{membership-CU-k0-Tf.js → membership-BL9Xs8lD.js} +52 -44
  70. package/dist/{money-DANmyTBj.js → money-D7lq0cx-.js} +1 -1
  71. package/dist/{number-DrocTWDD.js → number-BiDabTkI.js} +1 -1
  72. package/dist/objectid-CXf0jb1W.js +145 -0
  73. package/dist/reward-Cr8rbe5R.js +36 -0
  74. package/dist/{rule-builder-3YRdr18A.js → rule-builder-DPKFZ5UX.js} +1 -1
  75. package/dist/{rule-BQLmpER9.js → rule-vkYJij4h.js} +4 -3
  76. package/dist/{template-DOKU1QkY.js → template-Bep5Y5ch.js} +4 -4
  77. package/dist/trigger-fWhQ3bqv.js +144 -0
  78. package/dist/{usePagination-JGI7x0W7.js → usePagination-DSF5b4hM.js} +1 -1
  79. package/dist/user-9UiaP0xs.js +54 -0
  80. package/dist/{vue-i18n-Bch1JmhI.js → vue-i18n-BhiDOB1j.js} +232 -232
  81. package/package.json +2 -2
  82. package/dist/Card-DndggRLr.js +0 -1036
  83. package/dist/Mission-CsLdMq1M.js +0 -261
  84. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js +0 -1804
  85. package/dist/Store-C8kT7JN5.js +0 -1531
  86. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +0 -1065
  87. package/dist/dto-CcrufW2j.js +0 -2770
  88. package/dist/index-C7745kXl.js +0 -755
  89. package/dist/index-CZ28ywyB.js +0 -298
  90. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,11 +1,11 @@
1
- import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as S, 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 A, createTextVNode as ee } from "vue";
2
- import { z as te } from "./app-C66C2KLW.js";
1
+ import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as h, 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 A, createTextVNode as ee } from "vue";
2
+ import { z as te } from "./app-vCqTQIeC.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-O9lB54LY.js";
5
- import { u as Z } from "./vue-i18n-Bch1JmhI.js";
6
- import { s as O } from "./effect-CUuL8Tci.js";
7
- import { p as ae } from "./loading-ChoC5E9d.js";
8
- import { I as ne } from "./app-C23GfQGq.js";
4
+ import { f as le, g as oe } from "./index-Bpu2DYUc.js";
5
+ import { u as Z } from "./vue-i18n-BhiDOB1j.js";
6
+ import { s as O } from "./effect-D8UzkYRg.js";
7
+ import { p as ae } from "./loading-DjEdwdnj.js";
8
+ import { I as ne } from "./app-DDmTqTb7.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"
@@ -52,10 +52,10 @@ const ie = { class: "flex flex-col gap-8" }, se = {
52
52
  });
53
53
  const a = R(
54
54
  l.type ? o.find((c) => c.value === l.type) : (B = l.modelValue) != null && B.validBefore || (C = l.modelValue) != null && C.validAfter ? o[0] : o[1]
55
- ), h = H(
55
+ ), S = H(
56
56
  () => l.forCredit ? le : oe
57
57
  ), m = H(() => {
58
- const c = h.value.safeParse(l.modelValue);
58
+ const c = S.value.safeParse(l.modelValue);
59
59
  return c.success ? [] : c.error.errors;
60
60
  });
61
61
  function n(c) {
@@ -79,7 +79,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
79
79
  const k = y("FmButtonGroup"), Y = y("FmSimpleDateRangePicker"), J = y("FmSwitch"), K = y("FmStepperField"), I = y("FmHelperText");
80
80
  return i(), x("div", ie, [
81
81
  W(c.$slots, "label", {}, () => [
82
- t.label ? (i(), x("div", se, S(t.label), 1)) : v("", !0)
82
+ t.label ? (i(), x("div", se, h(t.label), 1)) : v("", !0)
83
83
  ]),
84
84
  t.type ? v("", !0) : (i(), f(k, {
85
85
  key: 0,
@@ -172,9 +172,9 @@ const ie = { class: "flex flex-col gap-8" }, se = {
172
172
  setup(t, { emit: w }) {
173
173
  const { t: d } = Z(), l = t, g = w, o = R(l.modelValue ?? {});
174
174
  return X(o, () => g("update:model-value", o.value)), (s, a) => {
175
- const h = y("FmSwitch"), m = y("FmStepperField");
175
+ const S = y("FmSwitch"), m = y("FmStepperField");
176
176
  return i(), x("div", ue, [
177
- t.isMission ? v("", !0) : (i(), f(h, {
177
+ t.isMission ? v("", !0) : (i(), f(S, {
178
178
  key: 0,
179
179
  label: e(d)("connect.template.enable_transfer"),
180
180
  "label-placement": "right",
@@ -282,8 +282,8 @@ const ie = { class: "flex flex-col gap-8" }, se = {
282
282
  o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && d("update:model-value", null);
283
283
  }
284
284
  return (o, s) => {
285
- const a = y("FmButton"), h = y("FmSideSheet");
286
- return i(), f(h, {
285
+ const a = y("FmButton"), S = y("FmSideSheet");
286
+ return i(), f(S, {
287
287
  "max-width": 550,
288
288
  header: "Apply discount",
289
289
  modelValue: e(l),
@@ -299,8 +299,8 @@ const ie = { class: "flex flex-col gap-8" }, se = {
299
299
  pe,
300
300
  t.modelValue ? (i(), x("div", fe, [
301
301
  A("div", ve, [
302
- A("div", null, S((m = e(O)(t.modelValue)) == null ? void 0 : m.type), 1),
303
- A("div", ye, S((n = e(O)(t.modelValue)) == null ? void 0 : n.adjustment) + " with " + S((U = e(O)(t.modelValue)) == null ? void 0 : U.requirements), 1)
302
+ A("div", null, h((m = e(O)(t.modelValue)) == null ? void 0 : m.type), 1),
303
+ A("div", ye, h((n = e(O)(t.modelValue)) == null ? void 0 : n.adjustment) + " with " + h((U = e(O)(t.modelValue)) == null ? void 0 : U.requirements), 1)
304
304
  ]),
305
305
  b(a, {
306
306
  icon: "delete",
@@ -320,7 +320,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
320
320
  ];
321
321
  }),
322
322
  "side-sheet-footer": F(() => [
323
- ee(S(void 0))
323
+ ee(h(void 0))
324
324
  ]),
325
325
  default: F(() => [
326
326
  b(e(ne), {
@@ -339,7 +339,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
339
339
  }
340
340
  });
341
341
  export {
342
- Ue as _,
342
+ re as _,
343
343
  Ae as a,
344
- re as b
344
+ Ue 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 d, 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-ChoC5E9d.js";
5
- import { u as W } from "./business-DNAVZOSH.js";
6
- import { u as X } from "./campaign-Cv0HaUD1.js";
7
- import { g as L, a as V } from "./dto-CcrufW2j.js";
8
- import { u as Y } from "./vue-i18n-Bch1JmhI.js";
4
+ import { u as J, p as Q } from "./loading-DjEdwdnj.js";
5
+ import { u as W } from "./business-Cz78KGF2.js";
6
+ import { u as X } from "./campaign-BBd4o7F_.js";
7
+ import { g as L, a as V } from "./dto-i04OPJfW.js";
8
+ import { u as Y } from "./vue-i18n-BhiDOB1j.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-BjM81fmS.js";
11
- import { u as te } from "./template-DOKU1QkY.js";
12
- import { c as g } from "./index-CsCgQ8gt.js";
10
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js";
11
+ import { u as te } from "./template-Bep5Y5ch.js";
12
+ import { c as g } from "./index-DFAnoAe9.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" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = /* @__PURE__ */ n("img", {
14
14
  src: q,
15
15
  class: "aspect-square w-[150px]"
@@ -1,15 +1,15 @@
1
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 t, 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-ChoC5E9d.js";
5
- import { u as Y } from "./business-DNAVZOSH.js";
6
- import { u as Z } from "./campaign-Cv0HaUD1.js";
7
- import { g as B, a as $ } from "./dto-CcrufW2j.js";
4
+ import { u as Q, a as W, p as X } from "./loading-DjEdwdnj.js";
5
+ import { u as Y } from "./business-Cz78KGF2.js";
6
+ import { u as Z } from "./campaign-BBd4o7F_.js";
7
+ import { g as B, a as $ } from "./dto-i04OPJfW.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-BjM81fmS.js";
10
- import { u as oe } from "./template-DOKU1QkY.js";
11
- import { u as ae } from "./vue-i18n-Bch1JmhI.js";
12
- import { c as w } from "./index-CsCgQ8gt.js";
9
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js";
10
+ import { u as oe } from "./template-Bep5Y5ch.js";
11
+ import { u as ae } from "./vue-i18n-BhiDOB1j.js";
12
+ import { c as w } from "./index-DFAnoAe9.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 = /* @__PURE__ */ n("img", {
14
14
  src: J,
15
15
  class: "aspect-square w-[150px]"
@@ -0,0 +1,255 @@
1
+ import { defineComponent as U, ref as g, watch as O, onMounted as N, resolveComponent as d, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, toDisplayString as I, normalizeClass as G, computed as $, Fragment as q, isRef as J } from "vue";
2
+ import { u as H } from "./vue-i18n-BhiDOB1j.js";
3
+ import "./index-Dt6K2eG8.js";
4
+ import { useRouter as K } from "vue-router";
5
+ import { f as V, p as Q, u as X } from "./loading-DjEdwdnj.js";
6
+ import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js";
7
+ import { useDialog as ee, useSnackbar as ae, FmButtonVariant as p } from "@feedmepos/ui-library";
8
+ import { r as L } from "./index-g8EbRVnr.js";
9
+ import { u as ne } from "./reward-Cr8rbe5R.js";
10
+ import { u as oe } from "./business-Cz78KGF2.js";
11
+ import { u as te } from "./membership-BL9Xs8lD.js";
12
+ import { R as S } from "./app-vCqTQIeC.js";
13
+ const re = { class: "space-y-24" }, le = {
14
+ key: 0,
15
+ class: /* @__PURE__ */ G([
16
+ "p-16 pl-24 space-x-8",
17
+ "bg-fm-color-primary-oats rounded-lg",
18
+ "flex items-center",
19
+ "justify-between"
20
+ ])
21
+ }, ie = { key: 1 }, se = {
22
+ key: 2,
23
+ class: /* @__PURE__ */ G([
24
+ "flex items-center",
25
+ "border border-fm-color-neutral-gray-300",
26
+ "p-16 space-x-16 rounded-md"
27
+ ])
28
+ }, ce = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, de = { class: "flex justify-end space-x-8 w-full" }, ue = /* @__PURE__ */ U({
29
+ __name: "TermAndConditionDialog",
30
+ props: {
31
+ modelValue: { type: Boolean }
32
+ },
33
+ emits: ["update:modelValue"],
34
+ setup(B, { emit: T }) {
35
+ const y = B;
36
+ ee();
37
+ const i = ae(), { t: s } = H(), l = Y(), { minor: _ } = X, u = g(!1), k = T, t = g(null), w = g(null);
38
+ async function h() {
39
+ if (!t.value) {
40
+ i.open({
41
+ type: "error",
42
+ title: "Please upload a file"
43
+ });
44
+ return;
45
+ }
46
+ _(
47
+ async () => {
48
+ u.value = !0;
49
+ const n = await V.update(
50
+ V.referralTermAndConditionPath(),
51
+ t.value
52
+ ), a = l.referralProgram;
53
+ a.term_and_condition = n, await L.update(a), u.value = !1, v();
54
+ },
55
+ {
56
+ successMessage: "Term and Condition uploaded successfully"
57
+ }
58
+ );
59
+ }
60
+ async function x() {
61
+ await Q.confirm(
62
+ "Are you sure you want to remove the term and condition?"
63
+ ) && _(
64
+ async () => {
65
+ u.value = !0, await V.delete(
66
+ V.referralTermAndConditionPath()
67
+ );
68
+ const a = l.referralProgram;
69
+ a.term_and_condition = void 0, await L.update(a), u.value = !1, v();
70
+ },
71
+ {
72
+ successMessage: "Term and Condition removed successfully"
73
+ }
74
+ );
75
+ }
76
+ function v() {
77
+ t.value = null, k("update:modelValue", !1);
78
+ }
79
+ function r() {
80
+ var n;
81
+ window.open((n = l.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
82
+ }
83
+ return O(
84
+ () => y.modelValue,
85
+ (n) => {
86
+ t.value = null;
87
+ }
88
+ ), N(() => {
89
+ }), (n, a) => {
90
+ const R = d("FmButton"), A = d("FmDropField"), m = d("fm-button"), E = d("fm-dialog");
91
+ return b(), j(E, {
92
+ "model-value": n.modelValue,
93
+ "onUpdate:modelValue": a[3] || (a[3] = (C) => n.$emit("update:modelValue", C)),
94
+ "dismiss-away": ""
95
+ }, {
96
+ "dialog-header": P(() => [
97
+ z("Upload Term and Condition")
98
+ ]),
99
+ "dialog-footer": P(() => [
100
+ c("div", de, [
101
+ o(m, {
102
+ variant: e(p).Tertiary,
103
+ label: e(s)("Cancel"),
104
+ onClick: v
105
+ }, null, 8, ["variant", "label"]),
106
+ o(m, {
107
+ variant: e(p).Primary,
108
+ class: "ml-auto mr-8",
109
+ label: e(s)("Save"),
110
+ loading: e(u),
111
+ onClick: h
112
+ }, null, 8, ["variant", "label", "loading"])
113
+ ])
114
+ ]),
115
+ default: P(() => {
116
+ var C;
117
+ return [
118
+ c("div", re, [
119
+ (C = e(l).referralProgram) != null && C.term_and_condition ? (b(), F("div", le, [
120
+ o(R, {
121
+ label: e(s)("View uploaded file"),
122
+ variant: e(p).Plain,
123
+ icon: "file_present",
124
+ onClick: r
125
+ }, null, 8, ["label", "variant"]),
126
+ o(R, {
127
+ variant: e(p).Plain,
128
+ icon: "delete",
129
+ onClick: x
130
+ }, null, 8, ["variant"])
131
+ ])) : W("", !0),
132
+ e(t) ? (b(), F("div", se, [
133
+ o(m, {
134
+ variant: e(p).Tertiary,
135
+ "prepend-icon": "attach_file"
136
+ }, null, 8, ["variant"]),
137
+ c("p", ce, I(e(t).name), 1),
138
+ c("label", {
139
+ ref_key: "fileLabelRef",
140
+ ref: w,
141
+ htmlFor: "file"
142
+ }, [
143
+ o(m, {
144
+ variant: e(p).Plain,
145
+ label: e(s)("Replace File"),
146
+ onClick: a[1] || (a[1] = () => {
147
+ var f;
148
+ return (f = e(w)) == null ? void 0 : f.click();
149
+ })
150
+ }, null, 8, ["variant", "label"]),
151
+ c("input", {
152
+ id: "file",
153
+ accept: ".pdf",
154
+ class: "hidden",
155
+ type: "file",
156
+ onChange: a[2] || (a[2] = (f) => {
157
+ var D, M;
158
+ return t.value = ((M = (D = f.target) == null ? void 0 : D.files) == null ? void 0 : M[0]) ?? null;
159
+ })
160
+ }, null, 32)
161
+ ], 512)
162
+ ])) : (b(), F("div", ie, [
163
+ o(A, {
164
+ onFileUpload: a[0] || (a[0] = (f) => t.value = f),
165
+ accept: ".pdf",
166
+ "max-file-size": 8e6
167
+ })
168
+ ]))
169
+ ])
170
+ ];
171
+ }),
172
+ _: 1
173
+ }, 8, ["model-value"]);
174
+ };
175
+ }
176
+ }), me = { class: "flex items-center" }, fe = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, pe = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ U({
177
+ __name: "Index",
178
+ setup(B) {
179
+ const T = ne(), y = g(null), { t: i } = H(), s = K(), l = g(!1), _ = oe(), u = te(), k = $(() => _.isPremium ? [
180
+ {
181
+ label: i("connect.referral.actions.terms"),
182
+ value: "term_and_condition"
183
+ },
184
+ {
185
+ label: i("connect.referral.actions.manage_reward"),
186
+ value: "manage_reward"
187
+ },
188
+ {
189
+ label: i("connect.referral.actions.add_referral_tier"),
190
+ value: "add_referral_tier",
191
+ prependIcon: "add",
192
+ isPrimary: !0
193
+ }
194
+ ] : []), t = [
195
+ {
196
+ label: i("connect.referral.tabs.overview"),
197
+ value: S["$connect-REFERRAL_OVERVIEW"],
198
+ actions: []
199
+ },
200
+ {
201
+ label: i("connect.referral.tabs.record"),
202
+ value: S["$connect-REFERRAL_RECORD"],
203
+ actions: []
204
+ }
205
+ ], w = $(() => t.find((r) => r.value === s.currentRoute.value.name) ?? t[0]);
206
+ async function h(r) {
207
+ await s.push({ name: r });
208
+ }
209
+ async function x(r) {
210
+ var n;
211
+ r === "add_referral_tier" && ((n = y.value) == null || n.onManageRewardGroup(-1)), r === "manage_reward" && await s.push({ name: S["$connect-REWARD_TEMPLATE"] }), r === "term_and_condition" && v();
212
+ }
213
+ async function v() {
214
+ l.value = !0;
215
+ }
216
+ return N(async () => {
217
+ await T.readRewards(), await _.readPremium(), await u.readSegments();
218
+ }), (r, n) => {
219
+ const a = d("FmPill"), R = d("FmPageHead"), A = d("FmTabs"), m = d("RouterView");
220
+ return b(), F(q, null, [
221
+ o(R, {
222
+ actions: e(k),
223
+ "onClick:action": x
224
+ }, {
225
+ title: P(() => [
226
+ c("div", me, [
227
+ c("span", fe, I(e(i)("connect.referral.title")), 1),
228
+ o(a, { variant: "premium" })
229
+ ])
230
+ ]),
231
+ _: 1
232
+ }, 8, ["actions"]),
233
+ c("div", pe, [
234
+ o(A, {
235
+ "model-value": e(w).value,
236
+ items: t,
237
+ "onUpdate:modelValue": h
238
+ }, null, 8, ["model-value"]),
239
+ o(m)
240
+ ]),
241
+ o(ue, {
242
+ modelValue: e(l),
243
+ "onUpdate:modelValue": n[0] || (n[0] = (E) => J(l) ? l.value = E : null)
244
+ }, null, 8, ["modelValue"]),
245
+ o(Z, {
246
+ ref_key: "rewardGroupRef",
247
+ ref: y
248
+ }, null, 512)
249
+ ], 64);
250
+ };
251
+ }
252
+ });
253
+ export {
254
+ ke as default
255
+ };
@@ -1,15 +1,15 @@
1
1
  import { openBlock as m, createElementBlock as p, defineComponent as z, ref as S, onMounted as Y, computed as H, h as J, resolveComponent as c, Fragment as x, createVNode as i, unref as r, createElementVNode as s, withCtx as F, renderList as $, createBlock as B, toDisplayString as f, createCommentVNode as j } from "vue";
2
2
  import { _ as q } from "./campaign-CpzFl8Vr.js";
3
3
  import { components as G } from "@feedmepos/ui-library";
4
- import { p as X, u as Q } from "./loading-ChoC5E9d.js";
4
+ import { p as X, u as Q } from "./loading-DjEdwdnj.js";
5
5
  import { defineStore as W } from "pinia";
6
- import { F as C } from "./index-QuBsnXgx.js";
6
+ import { F as C } from "./index-hEE_ntHd.js";
7
7
  import { useCoreStore as Z } from "@feedmepos/mf-common";
8
- import { g as h, S as ee, b as te } from "./index-BK8X9RF6.js";
8
+ import { g as h, S as ee, b as te } from "./index-C6-rCMhD.js";
9
9
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as ae } from "./campaign-Cv0HaUD1.js";
10
+ import { u as ae } from "./campaign-BBd4o7F_.js";
11
11
  import { h as oe } from "./moment-BWErdI6_.js";
12
- import { u as re } from "./vue-i18n-Bch1JmhI.js";
12
+ import { u as re } from "./vue-i18n-BhiDOB1j.js";
13
13
  var se = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedme.cc" };
14
14
  const y = () => {
15
15
  const o = ee.getBusinessId();
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as f, computed as T, ref as d, watch as k, resolveComponent as s, openBlock as _, createElementBlock as B, Fragment as E, createVNode as b, unref as n, createElementVNode as y, createBlock as A, createCommentVNode as L } from "vue";
2
- import "./index-yzH5eyKW.js";
3
- import { u as M } from "./vue-i18n-Bch1JmhI.js";
2
+ import "./index-Dt6K2eG8.js";
3
+ import { u as M } from "./vue-i18n-BhiDOB1j.js";
4
4
  import { useRouter as N } from "vue-router";
5
- import { m as Y } from "./index-B88e_9YI.js";
6
- import { R as i } from "./app-C66C2KLW.js";
5
+ import { m as Y } from "./index-BjHZUhiH.js";
6
+ import { R as i } from "./app-vCqTQIeC.js";
7
7
  const h = { class: "px-24 flex flex-col gap-y-16 pb-24" }, g = /* @__PURE__ */ f({
8
8
  __name: "Member",
9
9
  setup(w) {