@feedmepos/mf-connect 0.1.0-beta.15 → 0.1.0-beta.17

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 (84) hide show
  1. package/dist/Analytic-BvsvVIaJ.js +424 -0
  2. package/dist/{App-BeD6_T_Z.js → App-B6i-kTvi.js} +40 -36
  3. package/dist/{Broadcast-Di-DP7MU.js → Broadcast-BMNY7jfz.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BszRUIC8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cl-VwkQw.js} +9 -8
  5. package/dist/Card-BUxMxMv3.js +685 -0
  6. package/dist/{Collections-kplzfC-n.js → Collections-fJ4dAA8O.js} +10 -9
  7. package/dist/{Credit-DrZdTG27.js → Credit-DeLJMW7U.js} +14 -14
  8. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-KB_zk3f0.js +2199 -0
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DE7rq_ro.js → EffectSheet.vue_vue_type_style_index_0_lang-Dy2q_1Kh.js} +8 -8
  10. package/dist/{Experience-BQz_RASv.js → Experience-DNlf2fYa.js} +8 -8
  11. package/dist/{Game-C5RUfcwo.js → Game-BXj3DErV.js} +15 -15
  12. package/dist/Index-FMFz2f9Z.js +218 -0
  13. package/dist/{Marketing-Ca00_q-k.js → Marketing-C8OjZOr2.js} +5 -5
  14. package/dist/{Member-B-9P7bbG.js → Member-BgwbYQrK.js} +4 -4
  15. package/dist/{MemberList-DoAOs_FC.js → MemberList-DMQUG_Kt.js} +251 -246
  16. package/dist/{MemberTransactions-D-qjANZL.js → MemberTransactions-CQO2cHn6.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DgWXNnd_.js → MessageInput.vue_vue_type_script_setup_true_lang-Ds_BwKa6.js} +2 -2
  18. package/dist/{Mission-DrKEtkuB.js → Mission-rHomcJXG.js} +15 -15
  19. package/dist/Overview-CmwJjXeT.js +864 -0
  20. package/dist/{Point-vO06ComP.js → Point-Du07BO13.js} +15 -15
  21. package/dist/{Promotion-DiJLB7iq.js → Promotion-B1gbbfk2.js} +53 -47
  22. package/dist/Record-0GtBWXRO.js +178 -0
  23. package/dist/Reward-aH7S8WL3.js +375 -0
  24. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-XdyqSqlC.js +138 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-E7ADhGR7.js +1597 -0
  26. package/dist/{Segment-x3OLFugO.js → Segment-Ci4BDnan.js} +65 -64
  27. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-I2KT0px7.js +181 -0
  28. package/dist/{Setting-C27PXvat.js → Setting-Dc9rLPuI.js} +8 -8
  29. package/dist/{Store-Dn2A_coC.js → Store-B94H-jff.js} +13 -13
  30. package/dist/{StoreRewards-CZMCXl-k.js → StoreRewards-Cho91MDd.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DMsmMCOw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CDiZz1AW.js} +10 -10
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-j8UbHQpT.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BmEP5mI5.js} +1 -1
  33. package/dist/{Tier-BnbE3qLA.js → Tier-DO9pTl_C.js} +15 -15
  34. package/dist/{Title-BAGSqm5D.js → Title-CgQD-_3y.js} +15 -15
  35. package/dist/{Transaction-DWvA09mr.js → Transaction-DPmvpR7n.js} +2 -2
  36. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CJa-Tkws.js +130 -0
  37. package/dist/{Voucher-CLgdPRSd.js → Voucher-Bq5Ev_fv.js} +31 -31
  38. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DeQTAvCe.js +419 -0
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DweS66z_.js → ZodTextField.vue_vue_type_script_setup_true_lang-DLFDd3Y3.js} +1 -1
  40. package/dist/{app-CEoOXnMP.js → app-BT6qeigc.js} +509 -391
  41. package/dist/{app-DbEoLwS2.js → app-CtaeuBcs.js} +1 -1
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DIsK1ZSi.js → business-Db2WFn9o.js} +1 -1
  44. package/dist/{campaign-DilFl2u4.js → campaign-Bo2jmBiD.js} +2 -2
  45. package/dist/collectible.enum-BR9zmyJv.js +19 -0
  46. package/dist/{collection.fn-DOGveN-U.js → collection.fn-Drj_6HD1.js} +2 -2
  47. package/dist/{dto-D146MexX.js → dto-BH8EtK7z.js} +54 -54
  48. package/dist/{effect-BAoY-7Mo.js → effect-l8oNjQBm.js} +1 -1
  49. package/dist/{email-addresses-D4ptdJi7.js → email-addresses-CBqWAs9Z.js} +1 -1
  50. package/dist/{export-ZdS0ijA0.js → export-D6S3dr04.js} +3 -3
  51. package/dist/{helper-CYBvYPRB.js → helper-CS2Hx33Q.js} +1 -1
  52. package/dist/{index-sJUCCkLn.js → index-5mZIFDhm.js} +21 -17
  53. package/dist/{index-D5OipTW2.js → index-BfhjAqeE.js} +3 -3
  54. package/dist/{index-Dw-QQGVh.js → index-Bj5M_at2.js} +1 -1
  55. package/dist/{index-BJNzAvF6.js → index-BsfC7C2D.js} +1 -1
  56. package/dist/{index-Dwsdu9aR.js → index-C7kr1TMO.js} +209 -116
  57. package/dist/{index-CBd5MdRb.js → index-CATw-eQI.js} +1348 -1342
  58. package/dist/{index-VOFTSIqj.js → index-CVfN0Gmc.js} +2 -2
  59. package/dist/{index-r3--ddX3.js → index-CXEJbUAO.js} +1 -1
  60. package/dist/{index-fSC0-_uQ.js → index-CmN2dQk5.js} +55 -44
  61. package/dist/index-Ct847l9G.js +50 -0
  62. package/dist/index-D2d2rTPz.js +38 -0
  63. package/dist/{index-CyvTJWa0.js → index-DVryx2wz.js} +1 -1
  64. package/dist/{index-DXwoelMh.js → index-XoOcBFvx.js} +39 -35
  65. package/dist/{index-RKVC43XB.js → index-Z61r-lWj.js} +1 -1
  66. package/dist/{index.esm2017-ClQvLeXO.js → index.esm2017-Dg7M2BO7.js} +1 -1
  67. package/dist/{loading-DyvR-Q2q.js → loading-DxWIhKJX.js} +156 -153
  68. package/dist/{membership-DjHOR91O.js → membership-Df7gtzWJ.js} +51 -43
  69. package/dist/{money-C9nfcrN2.js → money-Ck4ZGH4F.js} +1 -1
  70. package/dist/{number-BH4v9H5s.js → number-D8umDJ-5.js} +1 -1
  71. package/dist/objectid-BGnepAUg.js +145 -0
  72. package/dist/reward-5b5G4KYr.js +36 -0
  73. package/dist/{rule-DdzmxL5G.js → rule-BcLntzKp.js} +4 -3
  74. package/dist/{rule-builder-C3LgxTPd.js → rule-builder-B_RDlrnZ.js} +1 -1
  75. package/dist/{template-CTOkKogt.js → template-C-myFW3k.js} +4 -4
  76. package/dist/trigger-CAK3-5M9.js +114 -0
  77. package/dist/usePagination-BeF5K3M7.js +223 -0
  78. package/dist/{vue-i18n-Dw456kF3.js → vue-i18n-BC0lAbnG.js} +248 -248
  79. package/dist/{usePagination-BLsmsO5l.js → xlsx-DNZb1t3l.js} +2962 -3183
  80. package/package.json +1 -1
  81. package/dist/Analytic-BudPZ7yo.js +0 -622
  82. package/dist/Card-BSUIJ4V3.js +0 -824
  83. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DTxdtvAX.js +0 -2816
  84. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BO8_N-Hl.js +0 -1762
@@ -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-CEoOXnMP.js";
2
+ import { z as te } from "./app-BT6qeigc.js";
3
3
  import { Z as u } from "./zod-Bg2FbC-D.js";
4
- import { g as le, h as oe } from "./index-CBd5MdRb.js";
5
- import { u as Z } from "./vue-i18n-Dw456kF3.js";
6
- import { s as O } from "./effect-BAoY-7Mo.js";
7
- import { p as ae } from "./loading-DyvR-Q2q.js";
8
- import { I as ne } from "./app-DbEoLwS2.js";
4
+ import { g as le, f as oe } from "./index-CATw-eQI.js";
5
+ import { u as Z } from "./vue-i18n-BC0lAbnG.js";
6
+ import { s as O } from "./effect-l8oNjQBm.js";
7
+ import { p as ae } from "./loading-DxWIhKJX.js";
8
+ import { I as ne } from "./app-CtaeuBcs.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-DyvR-Q2q.js";
5
- import { u as W } from "./business-DIsK1ZSi.js";
6
- import { u as X } from "./campaign-DilFl2u4.js";
7
- import { g as L, b as V } from "./dto-D146MexX.js";
8
- import { u as Y } from "./vue-i18n-Dw456kF3.js";
4
+ import { u as J, p as Q } from "./loading-DxWIhKJX.js";
5
+ import { u as W } from "./business-Db2WFn9o.js";
6
+ import { u as X } from "./campaign-Bo2jmBiD.js";
7
+ import { g as L, a as V } from "./dto-BH8EtK7z.js";
8
+ import { u as Y } from "./vue-i18n-BC0lAbnG.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-DTxdtvAX.js";
11
- import { u as te } from "./template-CTOkKogt.js";
12
- import { c as g } from "./index-CyvTJWa0.js";
10
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-KB_zk3f0.js";
11
+ import { u as te } from "./template-C-myFW3k.js";
12
+ import { c as g } from "./index-DVryx2wz.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-DyvR-Q2q.js";
5
- import { u as Y } from "./business-DIsK1ZSi.js";
6
- import { u as Z } from "./campaign-DilFl2u4.js";
7
- import { g as B, b as $ } from "./dto-D146MexX.js";
4
+ import { u as Q, a as W, p as X } from "./loading-DxWIhKJX.js";
5
+ import { u as Y } from "./business-Db2WFn9o.js";
6
+ import { u as Z } from "./campaign-Bo2jmBiD.js";
7
+ import { g as B, a as $ } from "./dto-BH8EtK7z.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-DTxdtvAX.js";
10
- import { u as oe } from "./template-CTOkKogt.js";
11
- import { u as ae } from "./vue-i18n-Dw456kF3.js";
12
- import { c as w } from "./index-CyvTJWa0.js";
9
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-KB_zk3f0.js";
10
+ import { u as oe } from "./template-C-myFW3k.js";
11
+ import { u as ae } from "./vue-i18n-BC0lAbnG.js";
12
+ import { c as w } from "./index-DVryx2wz.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,218 @@
1
+ import { defineComponent as S, ref as f, onMounted as h, resolveComponent as s, openBlock as b, createBlock as U, withCtx as x, createTextVNode as N, createElementVNode as m, createVNode as t, unref as e, createElementBlock as C, createCommentVNode as I, toDisplayString as G, normalizeClass as B, computed as H, Fragment as O, isRef as z } from "vue";
2
+ import { u as $ } from "./vue-i18n-BC0lAbnG.js";
3
+ import "./index-BsfC7C2D.js";
4
+ import { useRouter as W } from "vue-router";
5
+ import { f as D, u as j } from "./loading-DxWIhKJX.js";
6
+ import { u as q, _ as J } from "./RewardGroup.vue_vue_type_script_setup_true_lang-XdyqSqlC.js";
7
+ import { useDialog as K, useSnackbar as Q, FmButtonVariant as v } from "@feedmepos/ui-library";
8
+ import { r as X } from "./index-D2d2rTPz.js";
9
+ import { u as Y } from "./reward-5b5G4KYr.js";
10
+ import { R as E } from "./app-BT6qeigc.js";
11
+ const Z = { class: "space-y-24" }, ee = {
12
+ key: 0,
13
+ class: /* @__PURE__ */ B([
14
+ "p-16 pl-24 space-x-8",
15
+ "bg-fm-color-primary-oats rounded-lg",
16
+ "flex items-center"
17
+ ])
18
+ }, ae = { key: 1 }, ne = {
19
+ key: 2,
20
+ class: /* @__PURE__ */ B([
21
+ "flex items-center",
22
+ "border border-fm-color-neutral-gray-300",
23
+ "p-16 space-x-16 rounded-md"
24
+ ])
25
+ }, oe = { class: "fm-typo-en-body-lg-400 flex-1" }, te = { class: "flex justify-end space-x-8 w-full" }, le = /* @__PURE__ */ S({
26
+ __name: "TermAndConditionDialog",
27
+ props: {
28
+ modelValue: { type: Boolean }
29
+ },
30
+ emits: ["update:modelValue"],
31
+ setup(L, { emit: V }) {
32
+ K();
33
+ const g = Q(), { t: o } = $(), i = q(), { minor: d } = j, p = f(!1), _ = V, r = f(null), y = f(null);
34
+ async function k() {
35
+ if (!r.value) {
36
+ g.open({
37
+ type: "error",
38
+ title: "Please upload a file"
39
+ });
40
+ return;
41
+ }
42
+ d(
43
+ async () => {
44
+ p.value = !0;
45
+ const n = await D.update(
46
+ D.referralTermAndConditionPath(),
47
+ r.value
48
+ ), a = i.referralProgram;
49
+ a.term_and_condition = n, await X.update(a), p.value = !1, R();
50
+ },
51
+ {
52
+ successMessage: "Term and Condition uploaded successfully"
53
+ }
54
+ );
55
+ }
56
+ function R() {
57
+ r.value = null, _("update:modelValue", !1);
58
+ }
59
+ function l() {
60
+ var n;
61
+ window.open((n = i.referralProgram) == null ? void 0 : n.term_and_condition, "_blank");
62
+ }
63
+ return h(() => {
64
+ }), (n, a) => {
65
+ const F = s("FmButton"), T = s("FmDropField"), c = s("fm-button"), M = s("fm-dialog");
66
+ return b(), U(M, {
67
+ "model-value": n.modelValue,
68
+ "onUpdate:modelValue": a[3] || (a[3] = (w) => n.$emit("update:modelValue", w)),
69
+ "dismiss-away": ""
70
+ }, {
71
+ "dialog-header": x(() => a[4] || (a[4] = [
72
+ N("Upload Term and Condition")
73
+ ])),
74
+ "dialog-footer": x(() => [
75
+ m("div", te, [
76
+ t(c, {
77
+ variant: e(v).Tertiary,
78
+ label: e(o)("Cancel"),
79
+ onClick: R
80
+ }, null, 8, ["variant", "label"]),
81
+ t(c, {
82
+ variant: e(v).Primary,
83
+ class: "ml-auto mr-8",
84
+ label: e(o)("Save"),
85
+ loading: e(p),
86
+ onClick: k
87
+ }, null, 8, ["variant", "label", "loading"])
88
+ ])
89
+ ]),
90
+ default: x(() => {
91
+ var w;
92
+ return [
93
+ m("div", Z, [
94
+ (w = e(i).referralProgram) != null && w.term_and_condition ? (b(), C("div", ee, [
95
+ t(F, {
96
+ label: e(o)("View uploaded file"),
97
+ variant: e(v).Plain,
98
+ icon: "file_present",
99
+ onClick: l
100
+ }, null, 8, ["label", "variant"])
101
+ ])) : I("", !0),
102
+ e(r) ? (b(), C("div", ne, [
103
+ t(c, {
104
+ variant: e(v).Tertiary,
105
+ "prepend-icon": "attach_file"
106
+ }, null, 8, ["variant"]),
107
+ m("p", oe, G(e(r).name), 1),
108
+ m("label", {
109
+ ref_key: "fileLabelRef",
110
+ ref: y,
111
+ htmlFor: "file"
112
+ }, [
113
+ t(c, {
114
+ variant: e(v).Plain,
115
+ label: e(o)("Replace File"),
116
+ onClick: a[1] || (a[1] = () => {
117
+ var u;
118
+ return (u = e(y)) == null ? void 0 : u.click();
119
+ })
120
+ }, null, 8, ["variant", "label"]),
121
+ m("input", {
122
+ id: "file",
123
+ accept: ".pdf",
124
+ class: "hidden",
125
+ type: "file",
126
+ onChange: a[2] || (a[2] = (u) => {
127
+ var P, A;
128
+ return r.value = ((A = (P = u.target) == null ? void 0 : P.files) == null ? void 0 : A[0]) ?? null;
129
+ })
130
+ }, null, 32)
131
+ ], 512)
132
+ ])) : (b(), C("div", ae, [
133
+ t(T, {
134
+ onFileUpload: a[0] || (a[0] = (u) => r.value = u),
135
+ accept: ".pdf",
136
+ "max-file-size": 8e6
137
+ })
138
+ ]))
139
+ ])
140
+ ];
141
+ }),
142
+ _: 1
143
+ }, 8, ["model-value"]);
144
+ };
145
+ }
146
+ }), re = { class: "px-24 flex flex-col gap-y-16 pb-24" }, be = /* @__PURE__ */ S({
147
+ __name: "Index",
148
+ setup(L) {
149
+ const V = Y(), g = f(null), { t: o } = $(), i = W(), d = f(!1), p = f([
150
+ {
151
+ label: o("connect.referral.actions.terms"),
152
+ value: "term_and_condition"
153
+ },
154
+ {
155
+ label: o("connect.referral.actions.manage_reward"),
156
+ value: "manage_reward"
157
+ },
158
+ {
159
+ label: o("connect.referral.actions.add_referral_tier"),
160
+ value: "add_referral_tier",
161
+ prependIcon: "add",
162
+ isPrimary: !0
163
+ }
164
+ ]), _ = [
165
+ {
166
+ label: o("connect.referral.tabs.overview"),
167
+ value: E["$connect-REFERRAL_OVERVIEW"],
168
+ actions: []
169
+ },
170
+ {
171
+ label: o("connect.referral.tabs.record"),
172
+ value: E["$connect-REFERRAL_RECORD"],
173
+ actions: []
174
+ }
175
+ ], r = H(() => _.find((l) => l.value === i.currentRoute.value.name) ?? _[0]);
176
+ async function y(l) {
177
+ await i.push({ name: l });
178
+ }
179
+ async function k(l) {
180
+ var n;
181
+ l === "add_referral_tier" && ((n = g.value) == null || n.onManageRewardGroup(-1)), l === "manage_reward" && await i.push({ name: E["$connect-REWARD_TEMPLATE"] }), l === "term_and_condition" && R();
182
+ }
183
+ async function R() {
184
+ d.value = !0;
185
+ }
186
+ return h(async () => {
187
+ await V.readRewards();
188
+ }), (l, n) => {
189
+ const a = s("FmPageHead"), F = s("FmTabs"), T = s("RouterView");
190
+ return b(), C(O, null, [
191
+ t(a, {
192
+ title: e(o)("connect.referral.title"),
193
+ actions: e(p),
194
+ "onClick:action": k
195
+ }, null, 8, ["title", "actions"]),
196
+ m("div", re, [
197
+ t(F, {
198
+ "model-value": e(r).value,
199
+ items: _,
200
+ "onUpdate:modelValue": y
201
+ }, null, 8, ["model-value"]),
202
+ t(T)
203
+ ]),
204
+ t(le, {
205
+ modelValue: e(d),
206
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => z(d) ? d.value = c : null)
207
+ }, null, 8, ["modelValue"]),
208
+ t(J, {
209
+ ref_key: "rewardGroupRef",
210
+ ref: g
211
+ }, null, 512)
212
+ ], 64);
213
+ };
214
+ }
215
+ });
216
+ export {
217
+ be as default
218
+ };
@@ -1,18 +1,18 @@
1
1
  import { ref as gt, reactive as he, defineComponent as bt, mergeModels as Lt, useModel as Dt, onMounted as Gt, resolveComponent as ft, openBlock as Q, createBlock as vt, withCtx as pt, createElementVNode as Y, createVNode as ot, unref as X, createElementBlock as ut, Fragment as xt, renderList as Ot, normalizeClass as kt, toDisplayString as Tt, Transition as ce, withDirectives as wt, renderSlot as ee, vShow as Pt, isRef as At, computed as Ct, watch as jt, resolveDirective as ue, createTextVNode as Kt, vModelText as te, createCommentVNode as Et, nextTick as fe, normalizeStyle as Ft, createStaticVNode as de, h as ge } from "vue";
2
2
  import { _ as me } from "./campaign-CpzFl8Vr.js";
3
3
  import { useSnackbar as Nt, useDialog as pe, components as ve } from "@feedmepos/ui-library";
4
- import { u as ie, p as ye } from "./loading-DyvR-Q2q.js";
4
+ import { u as ie, p as ye } from "./loading-DxWIhKJX.js";
5
5
  import { defineStore as _e } from "pinia";
6
- import { F as $t } from "./index-RKVC43XB.js";
6
+ import { F as $t } from "./index-Z61r-lWj.js";
7
7
  import { useCoreStore as Jt } from "@feedmepos/mf-common";
8
- import { g as Wt, S as ne, b as Ce, r as qt } from "./index-D5OipTW2.js";
8
+ import { g as Wt, S as ne, b as Ce, r as qt } from "./index-BfhjAqeE.js";
9
9
  import { _ as xe } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
10
10
  import { Y as Yt } from "./remy-vue-client-Cpppk9h-.js";
11
11
  import { s as re, c as zt } from "./index-CsaQJMAR.js";
12
- import { u as se } from "./campaign-DilFl2u4.js";
12
+ import { u as se } from "./campaign-Bo2jmBiD.js";
13
13
  import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  import { h as Se } from "./moment-BWErdI6_.js";
15
- import { u as we } from "./vue-i18n-Dw456kF3.js";
15
+ import { u as we } from "./vue-i18n-BC0lAbnG.js";
16
16
  var Te = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
17
17
  const Vt = () => {
18
18
  const P = ne.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-BJNzAvF6.js";
3
- import { u as M } from "./vue-i18n-Dw456kF3.js";
2
+ import "./index-BsfC7C2D.js";
3
+ import { u as M } from "./vue-i18n-BC0lAbnG.js";
4
4
  import { useRouter as N } from "vue-router";
5
- import { m as Y } from "./index-r3--ddX3.js";
6
- import { R as i } from "./app-CEoOXnMP.js";
5
+ import { m as Y } from "./index-CXEJbUAO.js";
6
+ import { R as i } from "./app-BT6qeigc.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) {