@feedmepos/mf-connect 0.1.111-prod → 0.1.112-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 (125) hide show
  1. package/dist/{App-D3pYl3WL.js → App-CFJcQZEE.js} +83 -80
  2. package/dist/{Bin-DOZqpbYH.js → Bin-DaqUNsSV.js} +8 -8
  3. package/dist/{Broadcast-DZ4SP99P.js → Broadcast-CdAN6JCa.js} +11 -11
  4. package/dist/{CampaignAnalytic-cFKvCgxX.js → CampaignAnalytic-CpP7lgTX.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js} +49 -32
  6. package/dist/Card-Bmz5p5Pq.js +1085 -0
  7. package/dist/{Collections-9QK5hbLo.js → Collections-BKND60cK.js} +9 -9
  8. package/dist/{Credit-8Ouy4O9a.js → Credit-DQ_tDm8l.js} +11 -11
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js} +1 -1
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js} +34 -33
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js → EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js} +6 -6
  12. package/dist/{Experience-DMh4hR1S.js → Experience-BOE6jLIS.js} +12 -12
  13. package/dist/{FileSaver.min-Bx9mdUgJ.js → FileSaver.min-D0CP0E3N.js} +1 -1
  14. package/dist/{Game-CL0TZvg1.js → Game-B-8by2dp.js} +12 -12
  15. package/dist/GiftCardSetup-CdqZd1ee.js +748 -0
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js} +7 -7
  17. package/dist/{Goals-Dz5Vp-lj.js → Goals-xFHNbwt7.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js → ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js} +1 -1
  19. package/dist/{Index-kH8aAegB.js → Index-t6veJ0lU.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js → LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js} +1 -1
  22. package/dist/{LoyaltyDashboard-BBxEoWol.js → LoyaltyDashboard-DXNBsnM5.js} +15 -15
  23. package/dist/{MainLayout-2BLwDyHQ.js → MainLayout-CmCboaEn.js} +3 -3
  24. package/dist/{Marketing-C4OnSV-c.js → Marketing-DCq9O5eb.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-DFhpsI2-.js → MarketingMaterialEdit-CGLxanxm.js} +6 -6
  26. package/dist/{Member-CT9WwxP0.js → Member-BCYmEmhD.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js} +26 -25
  28. package/dist/{MemberImportHistory-B__BFID7.js → MemberImportHistory-D-5NAOfo.js} +7 -7
  29. package/dist/{MemberList-DgLI4wty.js → MemberList-IySTKOT_.js} +14 -14
  30. package/dist/{MemberTransactions-UFx_DZYe.js → MemberTransactions-BgQZvc5O.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js → MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js} +3369 -3290
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js} +1 -1
  33. package/dist/{Mission-CawzGzDu.js → Mission-DtaTKWE2.js} +13 -13
  34. package/dist/{Overview-CAtTlEVa.js → Overview-D-uC2-Pi.js} +4 -4
  35. package/dist/{Overview-D19oSo24.js → Overview-DVMdPa97.js} +57 -56
  36. package/dist/{Point-BPAGmKAj.js → Point-jnPIgHMZ.js} +13 -13
  37. package/dist/{Promotion-B0Uf9vjL.js → Promotion-mdQg-RSh.js} +13 -13
  38. package/dist/{Queue-CJEAFss_.js → Queue-D8YY1lbn.js} +20 -19
  39. package/dist/{Record-s6hSQG2P.js → Record-Dh-rN7a0.js} +9 -9
  40. package/dist/{Review-DhNCbAOm.js → Review-C8B-SIR8.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-DeZqcpJo.js → ReviewFacebookCallback-C3eyH0pS.js} +5 -5
  42. package/dist/{ReviewGoogleCallback-D8ENWii2.js → ReviewGoogleCallback-pNF2ICvQ.js} +5 -5
  43. package/dist/{Reward-BT00QsXL.js → Reward-D7KPnzXt.js} +16 -16
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js → RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js} +25 -24
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js} +17 -16
  46. package/dist/{Segment-BuGhX9zg.js → Segment-Ct8JRTjV.js} +32 -31
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js} +24 -23
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js} +4 -4
  49. package/dist/{Setting-BOWPp05N.js → Setting-C3Binnn_.js} +56 -56
  50. package/dist/{SettingAdvertisements-aqFErKAr.js → SettingAdvertisements-BrB-dGPs.js} +12 -12
  51. package/dist/{Settings-DekXvE-R.js → Settings-D6h2QM6X.js} +5 -5
  52. package/dist/Store-EKPfHEmY.js +2622 -0
  53. package/dist/{StoreRewards-D2pTL2oA.js → StoreRewards-B208ENOi.js} +15 -15
  54. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +1264 -0
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js} +2 -2
  56. package/dist/{Tier-OyE8oH2r.js → Tier-CjYiCZy_.js} +104 -103
  57. package/dist/{Title-DAl7CKL_.js → Title-BXkVolaL.js} +34 -33
  58. package/dist/Transaction-D1T3aIC3.js +45 -0
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js} +6 -6
  60. package/dist/{Voucher-D2QGWSxs.js → Voucher-DnQ8jNjI.js} +18 -18
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js} +2 -2
  63. package/dist/{app-QxosLNkH.js → app-BtGohMqA.js} +5724 -4914
  64. package/dist/app.js +1 -1
  65. package/dist/base.export-DulNMo7e.js +75 -0
  66. package/dist/{business-CbqG6NXr.js → business-Bla8vvZH.js} +1 -1
  67. package/dist/{campaign-Rj7oDBnN.js → campaign-BIPNFBY5.js} +2 -2
  68. package/dist/{campaign-Co4Lq-Wz.js → campaign-DYqAyRCY.js} +8 -8
  69. package/dist/{campaign.enum-B7vdNYKd.js → campaign.enum-liUaxkcy.js} +1 -1
  70. package/dist/{campaign.fn-DolD3lYJ.js → campaign.fn-J7hYcX_7.js} +98 -98
  71. package/dist/{collectible.enum-BsQseg7-.js → collectible.enum-C0FfRMrW.js} +1 -1
  72. package/dist/{collection.fn-EbUIyB1X.js → collection.fn-DdDMfaFO.js} +2 -2
  73. package/dist/currency-BrVnqxQ1.js +7 -0
  74. package/dist/{effect-B_91OlcX.js → effect-gfVmfrm9.js} +1 -1
  75. package/dist/{email-addresses-DXnYZG-e.js → email-addresses-Dy8NFNBw.js} +2 -2
  76. package/dist/{helper-_uhiXya1.js → helper-CMhQctQK.js} +1 -1
  77. package/dist/{index-Df4l6y-S.js → index-B6x6s8mu.js} +1805 -2128
  78. package/dist/{index-CWUmrVo_.js → index-BOZ3oVHd.js} +2 -2
  79. package/dist/{index-DlGnYR5y.js → index-BqKrePY8.js} +3 -3
  80. package/dist/{index-CDm0BWa3.js → index-C5rRuwhC.js} +1 -1
  81. package/dist/{index-CzYxnDWP.js → index-C67-z1uf.js} +11 -6
  82. package/dist/{index-BBihP1s2.js → index-CLiJUFmJ.js} +2 -2
  83. package/dist/{index-xuFTeVrb.js → index-CUFuU2eJ.js} +10 -9
  84. package/dist/index-CZqwIQXi.js +738 -0
  85. package/dist/{index-DzBzClHP.js → index-CghtzuVO.js} +1 -1
  86. package/dist/{index-aCuOvuEC.js → index-Culx-Z9v.js} +20 -14
  87. package/dist/{index-C_1iqF1Q.js → index-D1T4Yf4t.js} +1 -1
  88. package/dist/{index-Cp7oHMm3.js → index-D6RDVy95.js} +17 -16
  89. package/dist/index-DKmtDBKS.js +53 -0
  90. package/dist/{index-BZ2b0Pk6.js → index-Dalmv1m4.js} +3 -3
  91. package/dist/{index-uuNGb1nv.js → index-DvW-3flw.js} +4 -3
  92. package/dist/{index-DuhRCI0L.js → index-dyMdi0Rt.js} +1 -1
  93. package/dist/{index-BWgc2-Qz.js → index-otcusTFM.js} +1 -1
  94. package/dist/{index-DlQJZNwD.js → index-qJOEwQ_z.js} +4 -1
  95. package/dist/{index-tbo0pMIu.js → index-v1exQSyU.js} +1 -1
  96. package/dist/{index.esm2017-B72iWwk_.js → index.esm2017-BLKRIlb9.js} +1 -1
  97. package/dist/{loading-rIhCiB_S.js → loading-BkJ3h_4U.js} +1 -1
  98. package/dist/{lodash-B6fOjfjd.js → lodash-C0Kbs8lQ.js} +1 -1
  99. package/dist/{member-import-CbHn7zss.js → member-import-trpK8l8R.js} +1 -1
  100. package/dist/{membership-DkJN7jyQ.js → membership-TV1CoyKQ.js} +3 -3
  101. package/dist/{money-ChbDx6Nq.js → money-BM-DK9iD.js} +1 -1
  102. package/dist/{number-9TEd27Ku.js → number-BclgE86R.js} +1 -1
  103. package/dist/{objectid-CGol1NeA.js → objectid-C2XvpEgx.js} +10 -10
  104. package/dist/{onboarding-BN3MKVRs.js → onboarding-BLuoXyCY.js} +3 -3
  105. package/dist/{onboardingSetup-D9xhdgS3.js → onboardingSetup-BLmLAgIV.js} +2 -2
  106. package/dist/{plugins-CCibSJZa.js → plugins-3_mD58dh.js} +3 -3
  107. package/dist/{reward-DjasF-NL.js → reward-Bo4szVCU.js} +1 -1
  108. package/dist/{rule-DqeChj0e.js → rule-Bwy5-zD7.js} +3 -3
  109. package/dist/{rule-builder-DT854ycI.js → rule-builder-Co_1uuj4.js} +1 -1
  110. package/dist/{template-BeCVA0-N.js → template-fImyGLa7.js} +7 -7
  111. package/dist/{timezone-D0nC1LDx.js → timezone-DQ7TNXmV.js} +1 -1
  112. package/dist/{transaction.fn-BkF4Ad2z.js → transaction.fn-OT7ucfCB.js} +2 -2
  113. package/dist/{trigger-CxpXoQJO.js → trigger-BJKHGcNG.js} +14 -14
  114. package/dist/{useMarketingMaterialActions-p0-fyMkm.js → useMarketingMaterialActions-BX3C1Gga.js} +3 -3
  115. package/dist/{usePagination-CrC-1v4L.js → usePagination-Qp0qoWBj.js} +1 -1
  116. package/dist/{user-CrylHgF1.js → user-BcE3fiEa.js} +1 -1
  117. package/dist/{vue-i18n-BjtkXdmG.js → vue-i18n-BQmB8Ex1.js} +230 -230
  118. package/dist/{xlsx-CJNYF7-l.js → xlsx-DYZ421PG.js} +440 -440
  119. package/dist/{zod-Dzn9S95S.js → zod-DestzeIp.js} +1 -1
  120. package/package.json +1 -1
  121. package/dist/Card-B5ni027Q.js +0 -911
  122. package/dist/Store-DpVlMuau.js +0 -1998
  123. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js +0 -1009
  124. package/dist/Transaction-mvKzTgLx.js +0 -39
  125. package/dist/export-D0hWZSfH.js +0 -97
@@ -2,124 +2,124 @@ import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne
2
2
  import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
3
  import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
4
  import { u as pn } from "./app-wDQR6dpb.js";
5
- import { u as mn } from "./business-CbqG6NXr.js";
6
- import "./index-CDm0BWa3.js";
5
+ import { u as mn } from "./business-Bla8vvZH.js";
6
+ import "./index-C5rRuwhC.js";
7
7
  import { components as G, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
8
- import { u as Tt } from "./vue-i18n-BjtkXdmG.js";
9
- import { m as vn } from "./index-DzBzClHP.js";
10
- import { C as Xe } from "./timezone-D0nC1LDx.js";
11
- import { u as In } from "./onboarding-BN3MKVRs.js";
12
- import { R as f, A as yn, a as Qe } from "./app-QxosLNkH.js";
8
+ import { u as Tt } from "./vue-i18n-BQmB8Ex1.js";
9
+ import { m as vn } from "./index-CghtzuVO.js";
10
+ import { C as Xe } from "./timezone-DQ7TNXmV.js";
11
+ import { u as In } from "./onboarding-BLuoXyCY.js";
12
+ import { R as p, A as yn, a as Qe } from "./app-BtGohMqA.js";
13
13
  import { J as wn } from "./JsonViewer-v8_C7l5N.js";
14
- import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-B72iWwk_.js";
14
+ import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-BLKRIlb9.js";
15
15
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
16
- import { S as tt, c as Dn } from "./index-CWUmrVo_.js";
16
+ import { S as tt, c as Dn } from "./index-BOZ3oVHd.js";
17
17
  const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
18
18
  __name: "NavigationTab",
19
19
  setup(n) {
20
20
  const { t: e, locale: t } = Tt(), i = In(), r = ee(), s = [
21
21
  {
22
22
  label: e("connect.navigation.analytic"),
23
- value: f["$connect-ANALYTIC"]
23
+ value: p["$connect-ANALYTIC"]
24
24
  },
25
25
  {
26
26
  label: e("connect.navigation.campaign"),
27
- value: f["$connect-CAMPAIGN"],
27
+ value: p["$connect-CAMPAIGN"],
28
28
  children: [
29
29
  {
30
30
  label: e("connect.navigation.promotion"),
31
- value: f["$connect-CAMPAIGN_PROMOTION"]
31
+ value: p["$connect-CAMPAIGN_PROMOTION"]
32
32
  },
33
33
  {
34
34
  label: e("connect.navigation.voucher"),
35
- value: f["$connect-CAMPAIGN_VOUCHER"]
35
+ value: p["$connect-CAMPAIGN_VOUCHER"]
36
36
  },
37
37
  {
38
38
  label: e("connect.navigation.broadcast"),
39
- value: f["$connect-CAMPAIGN_BROADCAST"]
39
+ value: p["$connect-CAMPAIGN_BROADCAST"]
40
40
  }
41
41
  ]
42
42
  },
43
43
  {
44
44
  label: e("connect.navigation.program"),
45
- value: f["$connect-PROGRAM"],
45
+ value: p["$connect-PROGRAM"],
46
46
  children: [
47
47
  {
48
48
  label: e("connect.navigation.tier"),
49
- value: f["$connect-PROGRAM_TIER"]
49
+ value: p["$connect-PROGRAM_TIER"]
50
50
  },
51
51
  {
52
52
  label: e("connect.navigation.title"),
53
- value: f["$connect-PROGRAM_TITLE"]
53
+ value: p["$connect-PROGRAM_TITLE"]
54
54
  },
55
55
  {
56
56
  label: e("connect.navigation.experience"),
57
- value: f["$connect-PROGRAM_EXPERIENCE"]
57
+ value: p["$connect-PROGRAM_EXPERIENCE"]
58
58
  },
59
59
  {
60
60
  label: e("connect.navigation.point"),
61
- value: f["$connect-PROGRAM_POINT"],
61
+ value: p["$connect-PROGRAM_POINT"],
62
62
  badge: () => H(G.FmPill, { variant: "premium" })
63
63
  },
64
64
  {
65
65
  label: e("connect.navigation.credit"),
66
- value: f["$connect-PROGRAM_CREDIT"]
66
+ value: p["$connect-PROGRAM_CREDIT"]
67
67
  },
68
68
  {
69
69
  label: e("connect.navigation.game"),
70
- value: f["$connect-PROGRAM_GAME"],
70
+ value: p["$connect-PROGRAM_GAME"],
71
71
  badge: () => H(G.FmPill, { variant: "premium" })
72
72
  },
73
73
  {
74
74
  label: "Mission",
75
- value: f["$connect-PROGRAM_MISSION"]
75
+ value: p["$connect-PROGRAM_MISSION"]
76
76
  }
77
77
  ]
78
78
  },
79
79
  {
80
80
  label: e("connect.navigation.loyalty"),
81
- value: f["$connect-LOYALTY"],
81
+ value: p["$connect-LOYALTY"],
82
82
  children: [
83
83
  {
84
84
  label: e("connect.navigation.member"),
85
- value: f["$connect-LOYALTY_MEMBER_LIST"]
85
+ value: p["$connect-LOYALTY_MEMBER_LIST"]
86
86
  },
87
87
  {
88
88
  label: e("connect.navigation.segments"),
89
- value: f["$connect-LOYALTY_SEGMENT"],
89
+ value: p["$connect-LOYALTY_SEGMENT"],
90
90
  badge: () => H(G.FmPill, { variant: "premium" })
91
91
  },
92
92
  {
93
93
  label: e("connect.navigation.card"),
94
- value: f["$connect-LOYALTY_CARD"],
94
+ value: p["$connect-LOYALTY_CARD"],
95
95
  badge: () => H(G.FmPill, { variant: "premium" })
96
96
  }
97
97
  ]
98
98
  },
99
99
  {
100
100
  label: e("connect.navigation.referral"),
101
- value: f["$connect-REFERRAL"],
101
+ value: p["$connect-REFERRAL"],
102
102
  badge: () => H(G.FmPill, { variant: "premium" })
103
103
  },
104
104
  {
105
105
  label: e("connect.navigation.store"),
106
- value: f["$connect-STORE"]
106
+ value: p["$connect-STORE"]
107
107
  },
108
108
  {
109
109
  label: e("connect.navigation.transaction"),
110
- value: f["$connect-TRANSACTION"]
110
+ value: p["$connect-TRANSACTION"]
111
111
  },
112
112
  {
113
113
  label: e("connect.navigation.marketingMaterials"),
114
- value: f["$connect-MARKETING"]
114
+ value: p["$connect-MARKETING"]
115
115
  },
116
116
  {
117
117
  label: e("connect.navigation.review"),
118
- value: f["$connect-REVIEW"]
118
+ value: p["$connect-REVIEW"]
119
119
  },
120
120
  {
121
121
  label: e("connect.navigation.goals"),
122
- value: f["$connect-GOALS"],
122
+ value: p["$connect-GOALS"],
123
123
  badge: () => i.goalsRemaining > 0 ? H(G.FmBadge, {
124
124
  variant: "numeric",
125
125
  inline: !0,
@@ -128,21 +128,24 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
128
128
  },
129
129
  {
130
130
  label: e("connect.navigation.setting"),
131
- value: f["$connect-SETTING"]
131
+ value: p["$connect-SETTING"]
132
132
  },
133
133
  {
134
134
  label: e("connect.navigation.bin"),
135
- value: f["$connect-BIN"]
135
+ value: p["$connect-BIN"]
136
136
  }
137
137
  ], o = yt(), c = wt(), a = s.reduce((h, y) => [...(y.children ?? []).map((_) => _.value), ...h, y.value], []), l = ge(), d = ne(() => {
138
138
  const h = l.currentCountry.value || "MY";
139
139
  return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
140
140
  });
141
141
  pe(
142
- () => c,
142
+ // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
143
+ // whose identity never changes, so watching it directly fired once via
144
+ // `immediate` and the highlight then stayed on whatever page loaded first.
145
+ () => c.matched,
143
146
  (h) => {
144
- const y = h.matched.map((_) => _.name).reverse();
145
- r.value = y.find((_) => a.includes(_));
147
+ const _ = h.map((f) => f.name).reverse().find((f) => a.includes(f));
148
+ _ && (r.value = _);
146
149
  },
147
150
  { immediate: !0 }
148
151
  ), pe(
@@ -155,18 +158,18 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
155
158
  },
156
159
  { immediate: !0 }
157
160
  );
158
- async function p(h) {
161
+ async function m(h) {
159
162
  await o.push({ name: h });
160
163
  }
161
164
  return (h, y) => {
162
- var m;
165
+ var f;
163
166
  const _ = Z("FmCollapsibleTabs");
164
167
  return j(), me("div", xn, [
165
168
  S(_, {
166
169
  class: "border-fm-color-neutral-gray-100 border-r px-4",
167
- "model-value": (m = g(r)) == null ? void 0 : m.toString(),
170
+ "model-value": (f = g(r)) == null ? void 0 : f.toString(),
168
171
  items: s,
169
- "onUpdate:modelValue": p
172
+ "onUpdate:modelValue": m
170
173
  }, null, 8, ["model-value"]),
171
174
  v("div", Fn, [
172
175
  v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
@@ -220,14 +223,14 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
220
223
  },
221
224
  { immediate: !0 }
222
225
  );
223
- async function p() {
224
- o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
226
+ async function m() {
227
+ o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
225
228
  }
226
229
  function h() {
227
230
  Hn(), o.value = !1;
228
231
  }
229
232
  return (y, _) => {
230
- const m = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
233
+ const f = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
231
234
  return j(), Oe(M, {
232
235
  modelValue: o.value,
233
236
  "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
@@ -239,7 +242,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
239
242
  "dialog-header": Q(() => [
240
243
  v("div", jn, [
241
244
  v("div", Wn, [
242
- S(m, {
245
+ S(f, {
243
246
  name: "auto_awesome",
244
247
  size: "sm",
245
248
  color: "primary"
@@ -258,7 +261,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
258
261
  size: "lg",
259
262
  label: g(t)("connect.marketing.whatsNew.cta"),
260
263
  "append-icon": "arrow_forward",
261
- onClick: p
264
+ onClick: m
262
265
  }, null, 8, ["label"]),
263
266
  S(T, {
264
267
  variant: "tertiary",
@@ -280,7 +283,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
280
283
  }, {
281
284
  default: Q(() => [
282
285
  v("div", Jn, [
283
- S(m, {
286
+ S(f, {
284
287
  name: k.icon,
285
288
  size: "md",
286
289
  color: "primary"
@@ -300,7 +303,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
300
303
  }, {
301
304
  default: Q(() => [
302
305
  v("div", Qn, [
303
- S(m, {
306
+ S(f, {
304
307
  name: "lightbulb",
305
308
  size: "md",
306
309
  color: "primary"
@@ -1017,7 +1020,7 @@ async function ve(n) {
1017
1020
  );
1018
1021
  const s = r.users[0];
1019
1022
  n._notifyReloadListener(s);
1020
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, p = {
1023
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1021
1024
  uid: s.localId,
1022
1025
  displayName: s.displayName || null,
1023
1026
  photoURL: s.photoUrl || null,
@@ -1029,7 +1032,7 @@ async function ve(n) {
1029
1032
  metadata: new Ue(s.createdAt, s.lastLoginAt),
1030
1033
  isAnonymous: d
1031
1034
  };
1032
- Object.assign(n, p);
1035
+ Object.assign(n, m);
1033
1036
  }
1034
1037
  async function vi(n) {
1035
1038
  const e = Y(n);
@@ -1289,7 +1292,7 @@ class C {
1289
1292
  }
1290
1293
  static _fromJSON(e, t) {
1291
1294
  var i, r, s, o, c, a, l, d;
1292
- const p = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, m = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1295
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1293
1296
  u(
1294
1297
  k && Ye,
1295
1298
  e,
@@ -1302,7 +1305,7 @@ class C {
1302
1305
  e,
1303
1306
  "internal-error"
1304
1307
  /* AuthErrorCode.INTERNAL_ERROR */
1305
- ), U(p, e.name), U(h, e.name), u(
1308
+ ), U(m, e.name), U(h, e.name), u(
1306
1309
  typeof Ke == "boolean",
1307
1310
  e,
1308
1311
  "internal-error"
@@ -1312,17 +1315,17 @@ class C {
1312
1315
  e,
1313
1316
  "internal-error"
1314
1317
  /* AuthErrorCode.INTERNAL_ERROR */
1315
- ), U(y, e.name), U(_, e.name), U(m, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1318
+ ), U(y, e.name), U(_, e.name), U(f, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1316
1319
  const Ae = new C({
1317
1320
  uid: k,
1318
1321
  auth: e,
1319
1322
  email: h,
1320
1323
  emailVerified: Ke,
1321
- displayName: p,
1324
+ displayName: m,
1322
1325
  isAnonymous: Je,
1323
1326
  photoURL: _,
1324
1327
  phoneNumber: y,
1325
- tenantId: m,
1328
+ tenantId: f,
1326
1329
  stsTokenManager: on,
1327
1330
  createdAt: T,
1328
1331
  lastLoginAt: M
@@ -1503,8 +1506,8 @@ class K {
1503
1506
  try {
1504
1507
  const d = await l._get(o);
1505
1508
  if (d) {
1506
- const p = C._fromJSON(e, d);
1507
- l !== s && (c = p), s = l;
1509
+ const m = C._fromJSON(e, d);
1510
+ l !== s && (c = m), s = l;
1508
1511
  break;
1509
1512
  }
1510
1513
  } catch {
@@ -3389,8 +3392,8 @@ class Qi {
3389
3392
  }, i);
3390
3393
  o = {
3391
3394
  messageChannel: r,
3392
- onMessage(p) {
3393
- const h = p;
3395
+ onMessage(m) {
3396
+ const h = m;
3394
3397
  if (h.data.eventId === l)
3395
3398
  switch (h.data.status) {
3396
3399
  case "ack":
@@ -4383,18 +4386,18 @@ function Br(n, e, t, i = $r, r = Hr) {
4383
4386
  const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
4384
4387
  if (Ti(l) && c !== "_self")
4385
4388
  return Gr(e || "", c), new pt(null);
4386
- const p = window.open(e || "", c, d);
4389
+ const m = window.open(e || "", c, d);
4387
4390
  u(
4388
- p,
4391
+ m,
4389
4392
  n,
4390
4393
  "popup-blocked"
4391
4394
  /* AuthErrorCode.POPUP_BLOCKED */
4392
4395
  );
4393
4396
  try {
4394
- p.focus();
4397
+ m.focus();
4395
4398
  } catch {
4396
4399
  }
4397
- return new pt(p);
4400
+ return new pt(m);
4398
4401
  }
4399
4402
  function Gr(n, e) {
4400
4403
  const t = document.createElement("a");
@@ -4441,11 +4444,11 @@ async function mt(n, e, t, i, r, s) {
4441
4444
  };
4442
4445
  if (e instanceof qt) {
4443
4446
  e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", On(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4444
- for (const [d, p] of Object.entries({}))
4445
- o[d] = p;
4447
+ for (const [d, m] of Object.entries({}))
4448
+ o[d] = m;
4446
4449
  }
4447
4450
  if (e instanceof ae) {
4448
- const d = e.getScopes().filter((p) => p !== "");
4451
+ const d = e.getScopes().filter((m) => m !== "");
4449
4452
  d.length > 0 && (o.scopes = d.join(","));
4450
4453
  }
4451
4454
  n.tenantId && (o.tid = n.tenantId);
@@ -4747,36 +4750,36 @@ const cs = {
4747
4750
  }, ls = ["src"], Ss = /* @__PURE__ */ xe({
4748
4751
  __name: "App",
4749
4752
  setup(n) {
4750
- const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), p = ne(() => i.version), h = ne(() => {
4751
- const m = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4752
- return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${m}&token=${I}`;
4753
+ const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), m = ne(() => i.version), h = ne(() => {
4754
+ const f = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4755
+ return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${f}&token=${I}`;
4753
4756
  });
4754
4757
  async function y() {
4755
4758
  if (Ln().length) {
4756
4759
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4757
4760
  return;
4758
4761
  }
4759
- const m = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
4760
- await Bi(T, I), Un(m), console.log("initFirebase", m);
4762
+ const f = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
4763
+ await Bi(T, I), Un(f), console.log("initFirebase", f);
4761
4764
  }
4762
4765
  const _ = async () => {
4763
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && p.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4766
+ d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4764
4767
  };
4765
4768
  return un(() => {
4766
4769
  if (Dn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4767
- const m = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4768
- m == null || m.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4770
+ const f = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4771
+ f == null || f.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4769
4772
  }
4770
4773
  l.value != null && (console.log("App mounted, forceRerender"), _());
4771
4774
  }), pe(
4772
4775
  () => e.currentBusiness.value,
4773
- async (m, I) => {
4774
- console.log("Current business changed"), m != null && m._id != I._id && (console.log("forceRerender when business changes", m, I), _());
4776
+ async (f, I) => {
4777
+ console.log("Current business changed"), f != null && f._id != I._id && (console.log("forceRerender when business changes", f, I), _());
4775
4778
  }
4776
- ), (m, I) => (j(), me(It, null, [
4777
- g(d) && g(p) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4778
- g(d) && g(p) === "v2" && g(c) ? (j(), Oe(ii, { key: 1 })) : Pe("", !0),
4779
- g(d) && g(p) !== "v2" ? (j(), me("div", cs, [
4779
+ ), (f, I) => (j(), me(It, null, [
4780
+ g(d) && g(m) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4781
+ g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ii, { key: 1 })) : Pe("", !0),
4782
+ g(d) && g(m) !== "v2" ? (j(), me("div", cs, [
4780
4783
  S(wn, {
4781
4784
  json: { url: g(h) }
4782
4785
  }, null, 8, ["json"]),
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
2
2
  import { components as p } from "@feedmepos/ui-library";
3
- import { u as K } from "./loading-rIhCiB_S.js";
4
- import { u as R } from "./business-CbqG6NXr.js";
5
- import { C as A } from "./campaign-Co4Lq-Wz.js";
6
- import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js";
3
+ import { u as K } from "./loading-BkJ3h_4U.js";
4
+ import { u as R } from "./business-Bla8vvZH.js";
5
+ import { C as A } from "./campaign-DYqAyRCY.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js";
7
7
  import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
8
- import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js";
9
- import { u as D } from "./vue-i18n-BjtkXdmG.js";
8
+ import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js";
9
+ import { u as D } from "./vue-i18n-BQmB8Ex1.js";
10
10
  import { h as E } from "./moment-D7p2TMB-.js";
11
- import { p as I } from "./plugins-CCibSJZa.js";
12
- import { c as g } from "./index-CzYxnDWP.js";
11
+ import { p as I } from "./plugins-3_mD58dh.js";
12
+ import { c as g } from "./index-C67-z1uf.js";
13
13
  const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
14
14
  __name: "Bin",
15
15
  setup(H) {
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as q, ref as C, computed as z, onMounted as G, resolveComponent as m, openBlock as d, createElementBlock as w, Fragment as v, createVNode as i, unref as a, createElementVNode as n, withCtx as S, renderList as J, createBlock as x, resolveDynamicComponent as Q, toDisplayString as u, createCommentVNode as W, h as k } from "vue";
2
2
  import { _ as X } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as Y, components as R } from "@feedmepos/ui-library";
4
- import { p as Z } from "./plugins-CCibSJZa.js";
5
- import { u as ee } from "./loading-rIhCiB_S.js";
6
- import { u as te } from "./business-CbqG6NXr.js";
7
- import { u as ae } from "./campaign-Rj7oDBnN.js";
8
- import { a as L, b as O, g as oe } from "./campaign-Co4Lq-Wz.js";
9
- import { u as ne, c as se, p as ce } from "./template-BeCVA0-N.js";
10
- import { u as ie } from "./vue-i18n-BjtkXdmG.js";
4
+ import { p as Z } from "./plugins-3_mD58dh.js";
5
+ import { u as ee } from "./loading-BkJ3h_4U.js";
6
+ import { u as te } from "./business-Bla8vvZH.js";
7
+ import { u as ae } from "./campaign-BIPNFBY5.js";
8
+ import { a as L, b as O, g as oe } from "./campaign-DYqAyRCY.js";
9
+ import { u as ne, c as se, p as ce } from "./template-fImyGLa7.js";
10
+ import { u as ie } from "./vue-i18n-BQmB8Ex1.js";
11
11
  import { _ as re } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
12
- import { _ as le } from "./MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js";
13
- import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js";
14
- import { u as de } from "./onboardingSetup-D9xhdgS3.js";
15
- import { c as f } from "./index-CzYxnDWP.js";
12
+ import { _ as le } from "./MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js";
13
+ import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js";
14
+ import { u as de } from "./onboardingSetup-BLmLAgIV.js";
15
+ import { c as f } from "./index-C67-z1uf.js";
16
16
  const pe = { class: "px-24 flex flex-col gap-y-16" }, ue = { class: "flex items-center justify-between w-full" }, fe = { class: "flex gap-8 overflow-x-auto" }, ge = { class: "space-y-8" }, ye = { class: "flex w-full gap-4 items-center" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "flex items-center gap-8" }, ve = { key: 0 }, Se = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, xe = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = /* @__PURE__ */ q({
17
17
  __name: "Broadcast",
18
18
  setup(Be) {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as z, computed as P, resolveComponent as S, openBlock as r, createBlock as x, withCtx as D, createElementBlock as d, createCommentVNode as v, createElementVNode as s, toDisplayString as u, normalizeClass as K, unref as o, Fragment as L, normalizeStyle as ye, createTextVNode as xe, renderList as ee, createVNode as $, ref as Q, onMounted as ke } from "vue";
2
- import { u as he } from "./vue-i18n-BjtkXdmG.js";
2
+ import { u as he } from "./vue-i18n-BQmB8Ex1.js";
3
3
  import { useCoreStore as we } from "@feedmepos/mf-common";
4
- import { c as U } from "./index-CzYxnDWP.js";
5
- import { u as Re } from "./loading-rIhCiB_S.js";
6
- import { s as Me, g as _e } from "./campaign-Co4Lq-Wz.js";
7
- import { C as be } from "./timezone-D0nC1LDx.js";
4
+ import { c as U } from "./index-C67-z1uf.js";
5
+ import { u as Re } from "./loading-BkJ3h_4U.js";
6
+ import { s as Me, g as _e } from "./campaign-DYqAyRCY.js";
7
+ import { C as be } from "./timezone-DQ7TNXmV.js";
8
8
  import { h as Se } from "./moment-D7p2TMB-.js";
9
9
  import { s as Ce } from "./index-CuvNtC_M.js";
10
- import { T as Ie } from "./transaction.fn-BkF4Ad2z.js";
11
- import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js";
10
+ import { T as Ie } from "./transaction.fn-OT7ucfCB.js";
11
+ import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js";
12
12
  import { useRoute as $e, useRouter as Pe } from "vue-router";
13
13
  const Oe = {
14
14
  state: "populated",
@@ -1,12 +1,14 @@
1
- import { R as RuleOperator, _ } from "./index-DlGnYR5y.js";
2
- import { i as isRuleGroup } from "./rule-builder-DT854ycI.js";
3
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
1
+ import { R as RuleOperator, _ } from "./index-BqKrePY8.js";
2
+ import { i as isRuleGroup } from "./rule-builder-Co_1uuj4.js";
3
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, unref, createVNode, toDisplayString, createCommentVNode } from "vue";
4
4
  import { useDialog } from "@feedmepos/ui-library";
5
- import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-Df4l6y-S.js";
6
- import "./index-uuNGb1nv.js";
7
- import "./index-Cp7oHMm3.js";
8
- import "./index-BZ2b0Pk6.js";
9
- import "./index-BWgc2-Qz.js";
5
+ import "./index-B6x6s8mu.js";
6
+ import "./index-DvW-3flw.js";
7
+ import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CZqwIQXi.js";
8
+ import "./index-D6RDVy95.js";
9
+ import "./index-Dalmv1m4.js";
10
+ import "./index-otcusTFM.js";
11
+ import { u as useBusinessStore } from "./business-Bla8vvZH.js";
10
12
  function validateRule(data, r, date) {
11
13
  const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
12
14
  function meetConditions(e) {
@@ -21,11 +23,11 @@ function validateRule(data, r, date) {
21
23
  equator: t
22
24
  // raw: data,
23
25
  }), o;
24
- const i = rules[n](
26
+ const a = rules[n](
25
27
  l,
26
28
  t
27
29
  );
28
- return o && i;
30
+ return o && a;
29
31
  },
30
32
  !0
31
33
  );
@@ -44,7 +46,7 @@ function validateRule(data, r, date) {
44
46
  }
45
47
  return isRuleGroup(r) ? evaluateRuleResult(getRuleResults(r), r.logic) : meetConditions(r);
46
48
  }
47
- const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = { class: "fm-typo-en-title-sm-600" }, _hoisted_3 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
49
+ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = ["disabled", "onClick"], _hoisted_3 = { class: "flex items-center gap-8" }, _hoisted_4 = { class: "fm-typo-en-title-sm-600" }, _hoisted_5 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
48
50
  __name: "CampaignTypeDialog",
49
51
  props: {
50
52
  onSelect: {
@@ -53,7 +55,7 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
53
55
  }
54
56
  },
55
57
  setup(e) {
56
- const o = e, n = useDialog(), t = [
58
+ const o = e, n = useDialog(), t = useBusinessStore(), l = [
57
59
  {
58
60
  title: "Promotion",
59
61
  description: "Special offers or deals made available for a limited time",
@@ -72,12 +74,14 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
72
74
  {
73
75
  title: "Point",
74
76
  description: "Points allow customers to purchase bundle items.",
75
- value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN
77
+ value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN,
78
+ premium: !0
76
79
  },
77
80
  {
78
81
  title: "Game",
79
82
  description: "The game feature adds a fun and encourage customers to engage more.",
80
- value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME
83
+ value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME,
84
+ premium: !0
81
85
  },
82
86
  {
83
87
  title: "Credit",
@@ -85,30 +89,43 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
85
89
  value: F_RUNNABLE_CAMPAIGN_TYPE.enum.CREDIT
86
90
  }
87
91
  ];
88
- function l(i) {
89
- n.close(), o.onSelect(i);
92
+ function a(u) {
93
+ var s;
94
+ (s = l.find((c) => c.value === u)) != null && s.premium && !t.isPremium || (n.close(), o.onSelect(u));
90
95
  }
91
- return (i, a) => {
92
- const c = resolveComponent("FmCard");
93
- return openBlock(), createBlock(c, { class: "p-24 space-y-16" }, {
96
+ return (u, s) => {
97
+ const c = resolveComponent("FmPill"), m = resolveComponent("FmCard");
98
+ return openBlock(), createBlock(m, { class: "p-24 space-y-16" }, {
94
99
  default: withCtx(() => [
95
- a[0] || (a[0] = createElementVNode("div", { class: "" }, [
100
+ s[0] || (s[0] = createElementVNode("div", { class: "" }, [
96
101
  createElementVNode("div", { class: "fm-typo-en-title-sm-800" }, "Add benefit"),
97
102
  createElementVNode("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Select the benefit type that you want to reward the selected tier. ")
98
103
  ], -1)),
99
104
  createElementVNode("div", _hoisted_1, [
100
- (openBlock(), createElementBlock(Fragment, null, renderList(t, (s) => createVNode(c, {
101
- variant: "outlined",
102
- key: s.value,
103
- onClick: (u) => l(s.value),
104
- class: "p-16 space-y-8 cursor-pointer"
105
- }, {
106
- default: withCtx(() => [
107
- createElementVNode("div", _hoisted_2, toDisplayString(s.title), 1),
108
- createElementVNode("div", _hoisted_3, toDisplayString(s.description), 1)
109
- ]),
110
- _: 2
111
- }, 1032, ["onClick"])), 64))
105
+ (openBlock(), createElementBlock(Fragment, null, renderList(l, (i) => createElementVNode("button", {
106
+ key: i.value,
107
+ type: "button",
108
+ disabled: i.premium && !unref(t).isPremium,
109
+ onClick: (d) => a(i.value),
110
+ class: "w-full text-left disabled:cursor-not-allowed disabled:opacity-50"
111
+ }, [
112
+ createVNode(m, {
113
+ variant: "outlined",
114
+ class: "p-16 space-y-8"
115
+ }, {
116
+ default: withCtx(() => [
117
+ createElementVNode("div", _hoisted_3, [
118
+ createElementVNode("div", _hoisted_4, toDisplayString(i.title), 1),
119
+ i.premium ? (openBlock(), createBlock(c, {
120
+ key: 0,
121
+ variant: "premium"
122
+ })) : createCommentVNode("", !0)
123
+ ]),
124
+ createElementVNode("div", _hoisted_5, toDisplayString(i.description), 1)
125
+ ]),
126
+ _: 2
127
+ }, 1024)
128
+ ], 8, _hoisted_2)), 64))
112
129
  ])
113
130
  ]),
114
131
  _: 1