@feedmepos/mf-connect 0.1.113-prod → 0.1.114-dev

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 (156) hide show
  1. package/README.md +66 -1
  2. package/dist/{App-2J4yDonr.js → App-CIWTDYuZ.js} +700 -654
  3. package/dist/AuditLogs-BluLDXu9.js +2016 -0
  4. package/dist/{Bin-BU_hVuxJ.js → Bin-jS6pM4L3.js} +8 -8
  5. package/dist/Broadcast-DBqsSZ0S.js +306 -0
  6. package/dist/{CampaignAnalytic-DUUmFMvy.js → CampaignAnalytic-DJrjXD4H.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BZirReIy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CzwigRLi.js} +9 -9
  8. package/dist/{Card-DS2K_LFv.js → Card-B10nLilL.js} +25 -24
  9. package/dist/{Collections-BFdRdPHR.js → Collections-BN42A73p.js} +197 -185
  10. package/dist/{Credit-CODfiox3.js → Credit-0SS26HGE.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B2T5G1hZ.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B3wozBFs.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js +4442 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-KvZebiOu.js → EffectSheet.vue_vue_type_style_index_0_lang-zV9dLCWp.js} +32 -32
  14. package/dist/{Experience-BGBWc8Ep.js → Experience-D7qPzsrc.js} +32 -31
  15. package/dist/{FileSaver.min-DJAN3Eu0.js → FileSaver.min-BKWoklMK.js} +1 -1
  16. package/dist/{Game-6yyn0uAd.js → Game-BoYMwfog.js} +19 -18
  17. package/dist/{GiftCardSetup-B096bTm0.js → GiftCardSetup-B87O0xzo.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-ChvUXdF-.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B3uGbEFY.js} +7 -7
  19. package/dist/{Goals-Db2mwbRo.js → Goals-CVxf3xCA.js} +4 -4
  20. package/dist/Grab-mGL1Mue_.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-xdEzwMcS.js → ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js} +1 -1
  22. package/dist/{Index-580WNkG2.js → Index-Dptuy-6c.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BkAQXKNJ.js → LocationPicker.vue_vue_type_script_setup_true_lang-Cjc4UeKz.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CR6sSnx4.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bh0ari3f.js} +1 -1
  25. package/dist/{LoyaltyDashboard-Clr2aiUP.js → LoyaltyDashboard-BxhI6RAE.js} +15 -15
  26. package/dist/MainLayout-YfDxvZXl.js +4 -0
  27. package/dist/{MainLayout-_iCyT5mw.js → MainLayout.vue_vue_type_script_setup_true_lang-BgXpznbi.js} +5 -4
  28. package/dist/{Marketing-fq1wxANq.js → Marketing-C2cVJacf.js} +4 -4
  29. package/dist/MarketingMaterialEdit-DkOEy_L-.js +1037 -0
  30. package/dist/{Member-BfRy196y.js → Member-DufbKDOh.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BAR44Qcp.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CU8EmBxy.js} +43 -50
  32. package/dist/{MemberImportHistory-C4622Ivs.js → MemberImportHistory-DlFN-uQl.js} +7 -7
  33. package/dist/{MemberList-DqtsMN_N.js → MemberList-B344n8I4.js} +103 -105
  34. package/dist/{MemberTransactions-DsUoFg3z.js → MemberTransactions-BS7H640M.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CzFMUgXM.js → MessageInput.vue_vue_type_script_setup_true_lang-CxDtXvwd.js} +4228 -4176
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CVQYcuQ6.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lY0jlyOG.js} +1 -1
  37. package/dist/{Mission-B0GO4LiM.js → Mission-D2ed_oKn.js} +22 -21
  38. package/dist/{Overview-XpJJmHqs.js → Overview-CLh_T6YY.js} +145 -144
  39. package/dist/{Overview-CVITimwN.js → Overview-DJa-hXDC.js} +23 -22
  40. package/dist/{Point-B7aCrMkI.js → Point-DAPeg1VD.js} +22 -21
  41. package/dist/{Promotion-DfVcuXHy.js → Promotion-CPPCMMFl.js} +137 -131
  42. package/dist/{Queue-BT7O2cvj.js → Queue-BcPwCRcM.js} +47 -46
  43. package/dist/{Record-CAc030dz.js → Record-C5XKn--g.js} +9 -9
  44. package/dist/{Review-CyXo4GTY.js → Review-Cc51luIv.js} +2 -2
  45. package/dist/ReviewFacebookCallback-BSGInFB8.js +225 -0
  46. package/dist/{ReviewGoogleCallback-BxiFOl0B.js → ReviewGoogleCallback-C1gY4vcP.js} +5 -5
  47. package/dist/{Reward-ChfNtdwX.js → Reward-k1R3hLiF.js} +29 -29
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CpQu_QBQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-BGbbGVK4.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Coh3L11L.js +1923 -0
  50. package/dist/{Segment-H2zBDZeh.js → Segment-DsBnIvje.js} +290 -291
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0jCJ-Xq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CMKpvXN-.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW_ViNZM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js} +4 -4
  53. package/dist/Setting-BRueNgc4.js +574 -0
  54. package/dist/{SettingAdvertisements-DPQHP3-B.js → SettingAdvertisements-BrVcQyhF.js} +12 -12
  55. package/dist/Settings-fOvXd29Z.js +286 -0
  56. package/dist/{Store-B2f5HVQc.js → Store-rrh2pIHH.js} +661 -654
  57. package/dist/{StoreRewards-QxfaEt9f.js → StoreRewards-D-jivVKr.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CvQXsZbH.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DbnY9VE9.js +7007 -0
  60. package/dist/{Tier-BSk4rBm8.js → Tier-DJiLtw3M.js} +2576 -687
  61. package/dist/{Title-CIzpB8TT.js → Title-s0bzA7yZ.js} +94 -92
  62. package/dist/{Transaction-BjxxNEHa.js → Transaction-CQ-CJ_eh.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BMutYxOU.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Bfy8SZH1.js} +26 -26
  64. package/dist/{Voucher-B2lFq21Y.js → Voucher-9vydRET7.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BWV631It.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Dq7veRL5.js} +16 -16
  66. package/dist/WhatsappAccount-D12Hvzfl.js +159 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BrZEDi6O.js +39 -0
  68. package/dist/WhatsappBot-o5b_0CnB.js +629 -0
  69. package/dist/WhatsappBotLogs-CK_V_iT5.js +372 -0
  70. package/dist/WhatsappBotSettings-BooibLUg.js +694 -0
  71. package/dist/WhatsappLayout-bOyNHGUI.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-Cytrffdh.js +253 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BCoB0Fsa.js → ZodTextField.vue_vue_type_script_setup_true_lang-96t_eUzk.js} +2 -2
  74. package/dist/{app-DgFVWdhA.js → app-DV3e2LkD.js} +10610 -8223
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-B6Rojjek.js → base.export-DQUUtGmy.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-C6ID0exl.js → business-BZ0boE-5.js} +1 -1
  79. package/dist/campaign-CsfFq2S-.js +400 -0
  80. package/dist/{campaign-BgSJXWdU.js → campaign-DMrtYWcs.js} +31 -25
  81. package/dist/{campaign.enum-CVvm0LMm.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/campaign.fn-C-CdNNdR.js +776 -0
  83. package/dist/{collectible.enum-DGQVW464.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-dV4F8R-j.js → collection.fn-C-rryKSc.js} +2 -2
  85. package/dist/{currency-DlHi_3WN.js → currency-BOd9iVZV.js} +1 -1
  86. package/dist/duplicateCampaign-ey_rW0Bz.js +51 -0
  87. package/dist/{effect-BJgmiWY4.js → effect-BP6Hkxmj.js} +1 -1
  88. package/dist/{email-addresses-3GTx_xTh.js → email-addresses-CO61QAq0.js} +2 -2
  89. package/dist/feature-flag-Bq1SgbYC.js +868 -0
  90. package/dist/feature-flag-lvPP0ED-.js +50 -0
  91. package/dist/google-BQK68wbe.js +5 -0
  92. package/dist/{helper-BX0JQP06.js → helper-BRpts-M-.js} +1 -1
  93. package/dist/{index-BIpAzktM.js → index-03WIXl-H.js} +8 -7
  94. package/dist/{index-BeCKw7Y3.js → index-B0RavybO.js} +19 -6
  95. package/dist/{index-DeNbsrQx.js → index-BDNkoALK.js} +1 -1
  96. package/dist/{index-Bl5aHABH.js → index-BV5aPSYo.js} +11 -10
  97. package/dist/{index-Cnw0B8Lc.js → index-Bk20uvPY.js} +1 -1
  98. package/dist/index-Bn19rfby.js +14571 -0
  99. package/dist/index-C_H8jFYf.js +2743 -0
  100. package/dist/{index-nmw7_9ZE.js → index-Cj-eugzc.js} +1 -1
  101. package/dist/{index-uXgPJlic.js → index-CoROn5OA.js} +2700 -2613
  102. package/dist/{index-DdMVrWZy.js → index-CrBhcMaL.js} +8028 -10767
  103. package/dist/{index-2xed2K8D.js → index-CsBjAM3E.js} +4 -3
  104. package/dist/{index-CiFReW-F.js → index-D1t4_KaG.js} +1 -1
  105. package/dist/{index-DRNdJ_KC.js → index-D3wGTCWf.js} +8 -7
  106. package/dist/{index-CtBLnWVG.js → index-D41kjcrZ.js} +683 -581
  107. package/dist/{index-CNULhBPM.js → index-DIZLkVe0.js} +691 -230
  108. package/dist/{index-QaWLGgEC.js → index-DucKyzrD.js} +2 -2
  109. package/dist/{index-o2OQljHs.js → index-R5WS21OL.js} +4 -4
  110. package/dist/index-RwNlbTO8.js +115 -0
  111. package/dist/{index-R0qlOO6J.js → index-VYI0zWNC.js} +29 -15
  112. package/dist/index-ZRE89TKq.js +80 -0
  113. package/dist/{index-BHT6cvWA.js → index-_Cj-bsd_.js} +396 -232
  114. package/dist/{index-Y2Pu1YkB.js → index-mToWKHVs.js} +2 -2
  115. package/dist/{index.esm2017-Dum0onrS.js → index.esm2017-B_Sag8Pg.js} +209 -209
  116. package/dist/{loading-B2mSdkfy.js → loading-C5fVI0ry.js} +1 -1
  117. package/dist/{lodash-DtOypaKt.js → lodash-COo8_xCU.js} +1 -1
  118. package/dist/{member-import-C2pLnh44.js → member-import-I_pKwUfF.js} +6 -5
  119. package/dist/{membership-BWyBGF4n.js → membership-BgfH9Kva.js} +3 -3
  120. package/dist/{money-3lCCVCeP.js → money-Cr07YDlV.js} +1 -1
  121. package/dist/{number-zlqy2MLG.js → number-DFsj0dkh.js} +1 -1
  122. package/dist/objectid-Cu89BzwI.js +145 -0
  123. package/dist/{onboarding-BqD3B4M1.js → onboarding-DlkJCm-5.js} +25 -25
  124. package/dist/{onboardingSetup-CCQ90jg7.js → onboardingSetup-BEhVj613.js} +2 -2
  125. package/dist/{plugins-Bj3npYnL.js → plugins-CPTtiKqf.js} +3 -3
  126. package/dist/{MarketingMaterialEdit-0h7E0n5e.js → remy-icon-BhUGu2NI.js} +2 -1031
  127. package/dist/{reward-5dDuZEb7.js → reward-DqY0mQ_5.js} +1 -1
  128. package/dist/{rule-NqLeSyoO.js → rule-mJJ48eKw.js} +572 -492
  129. package/dist/style.css +1 -1
  130. package/dist/template-C1QftpDG.js +188 -0
  131. package/dist/{timezone-B0lkgvh-.js → timezone-BBgBHels.js} +1 -1
  132. package/dist/{transaction.fn-CACuVUBe.js → transaction.fn-Sr0hj3kY.js} +2 -2
  133. package/dist/{trigger-BKJwKTJx.js → trigger-PUP0mwKM.js} +8 -8
  134. package/dist/{useMarketingMaterialActions-DERvOmen.js → useMarketingMaterialActions-faslwaHd.js} +3 -3
  135. package/dist/{usePagination-FkjroUq2.js → usePagination-Be6nIQ9y.js} +1 -1
  136. package/dist/{user-H9MnsLbu.js → user-DBSYzG_9.js} +1 -1
  137. package/dist/vue-i18n-C6c2jsH3.js +2365 -0
  138. package/dist/{xlsx-BVmtIl_i.js → xlsx-Bfo19lFv.js} +786 -786
  139. package/dist/{zod-DI7OBdxu.js → zod-CihbDg3N.js} +1 -1
  140. package/package.json +12 -3
  141. package/dist/Broadcast-CoirZUyr.js +0 -271
  142. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js +0 -2431
  143. package/dist/ReviewFacebookCallback--IcyheQA.js +0 -238
  144. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang--5K-qagY.js +0 -1883
  145. package/dist/Setting-D4XOHSHT.js +0 -2036
  146. package/dist/Settings-Dt_oLoGl.js +0 -179
  147. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Db2cd6ny.js +0 -1264
  148. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D9L-AayN.js +0 -142
  149. package/dist/campaign-DDfFBFye.js +0 -228
  150. package/dist/campaign.fn-DRabv93K.js +0 -776
  151. package/dist/google-C3S8u0mT.js +0 -4
  152. package/dist/index-CmhDYsk6.js +0 -51
  153. package/dist/objectid-b2KGvMA7.js +0 -145
  154. package/dist/rule-builder-BzYwbbj4.js +0 -102
  155. package/dist/template-fjUz6xrU.js +0 -236
  156. package/dist/vue-i18n-DbJO6sZW.js +0 -2365
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as y, computed as b, openBlock as i, createBlock as R, unref as l, ref as E, watch as k, resolveComponent as h, createElementBlock as g, createElementVNode as B, Fragment as O, renderList as T, createVNode as V, isRef as U, createCommentVNode as v } from "vue";
2
- import "./index-uXgPJlic.js";
3
- import { i as C, R as e } from "./rule-builder-BzYwbbj4.js";
4
- import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang--5K-qagY.js";
5
- import { p as N } from "./plugins-Bj3npYnL.js";
6
- import { u as S } from "./membership-BWyBGF4n.js";
2
+ import "./index-CoROn5OA.js";
3
+ import { a as C, R as e } from "./index-DIZLkVe0.js";
4
+ import { a as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Coh3L11L.js";
5
+ import { p as N } from "./plugins-CPTtiKqf.js";
6
+ import { u as S } from "./membership-BgfH9Kva.js";
7
7
  import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
8
- import { u as x } from "./vue-i18n-DbJO6sZW.js";
8
+ import { u as x } from "./vue-i18n-C6c2jsH3.js";
9
9
  const A = /* @__PURE__ */ y({
10
10
  __name: "SegmentConfigurator",
11
11
  props: {
@@ -15,8 +15,8 @@ const A = /* @__PURE__ */ y({
15
15
  }
16
16
  },
17
17
  emits: ["update:model-value"],
18
- setup(n, { emit: f }) {
19
- const o = n, m = b(() => {
18
+ setup(a, { emit: f }) {
19
+ const o = a, n = b(() => {
20
20
  var s;
21
21
  const [u] = C(o.modelValue) ? Object.values(((s = o.modelValue) == null ? void 0 : s.rules) ?? {}) : [null];
22
22
  return (u ?? e.constructEntry("user.segment", "_hasAny", [])).conditions._hasAny;
@@ -24,7 +24,7 @@ const A = /* @__PURE__ */ y({
24
24
  return (u, c) => (i(), R(j, {
25
25
  multiselect: !0,
26
26
  items: l(S)().segmentOptions,
27
- "model-value": l(m),
27
+ "model-value": l(n),
28
28
  "onUpdate:modelValue": c[0] || (c[0] = (s) => r(
29
29
  "update:model-value",
30
30
  l(e).setRuleToGroup(
@@ -45,9 +45,9 @@ const A = /* @__PURE__ */ y({
45
45
  }
46
46
  },
47
47
  emits: ["update:model-value"],
48
- setup(n, { emit: f }) {
49
- const { t: o } = x(), m = n, r = f, u = E(
50
- m.modelValue ? e.getRules(m.modelValue.rules.g_user).length > 0 ? "custom" : e.getRules(m.modelValue.rules.g_segment).length > 0 ? "segment" : "all_users" : "all_users"
48
+ setup(a, { emit: f }) {
49
+ const { t: o } = x(), n = a, r = f, u = E(
50
+ n.modelValue ? e.getRules(n.modelValue.rules.g_user).length > 0 ? "custom" : e.getRules(n.modelValue.rules.g_segment).length > 0 ? "segment" : "all_users" : "all_users"
51
51
  ), c = [
52
52
  {
53
53
  value: "all_users",
@@ -65,7 +65,7 @@ const A = /* @__PURE__ */ y({
65
65
  return k(u, async (s, t) => {
66
66
  var p;
67
67
  if (t != "all_users" && t != s && e.getRules(
68
- (p = m.modelValue) == null ? void 0 : p.rules[t == "custom" ? "g_user" : "g_segment"]
68
+ (p = n.modelValue) == null ? void 0 : p.rules[t == "custom" ? "g_user" : "g_segment"]
69
69
  ).length > 0) {
70
70
  const d = await N.confirm(
71
71
  o("connect.template.rule.audience.confirm_remove"),
@@ -76,7 +76,7 @@ const A = /* @__PURE__ */ y({
76
76
  d && r(
77
77
  "update:model-value",
78
78
  e.setRuleToGroup(
79
- m.modelValue ?? e.scaffoldGroup(),
79
+ n.modelValue ?? e.scaffoldGroup(),
80
80
  e.scaffoldGroup(t == "custom" ? "g_user" : "g_segment")
81
81
  )
82
82
  ), u.value = d ? s : t;
@@ -86,22 +86,22 @@ const A = /* @__PURE__ */ y({
86
86
  const p = h("FmRadio");
87
87
  return i(), g("div", F, [
88
88
  B("div", null, [
89
- (i(), g(O, null, T(c, (a) => V(p, {
90
- key: a.value,
91
- value: a.value,
92
- label: a.label,
89
+ (i(), g(O, null, T(c, (m) => V(p, {
90
+ key: m.value,
91
+ value: m.value,
92
+ label: m.label,
93
93
  modelValue: l(u),
94
94
  "onUpdate:modelValue": t[0] || (t[0] = (G) => U(u) ? u.value = G : null)
95
95
  }, null, 8, ["value", "label", "modelValue"])), 64))
96
96
  ]),
97
97
  l(u) == "segment" ? (i(), g("div", M, [
98
98
  V(A, {
99
- modelValue: ((d = n.modelValue) == null ? void 0 : d.rules.g_segment) ?? l(e).scaffoldGroup("g_segment"),
100
- "onUpdate:modelValue": t[1] || (t[1] = (a) => r(
99
+ modelValue: ((d = a.modelValue) == null ? void 0 : d.rules.g_segment) ?? l(e).scaffoldGroup("g_segment"),
100
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => r(
101
101
  "update:model-value",
102
102
  l(e).setRuleToGroup(
103
- n.modelValue ?? l(e).scaffoldGroup(),
104
- a,
103
+ a.modelValue ?? l(e).scaffoldGroup(),
104
+ m,
105
105
  "&&"
106
106
  )
107
107
  ))
@@ -111,12 +111,12 @@ const A = /* @__PURE__ */ y({
111
111
  key: 1,
112
112
  "include-only": "user",
113
113
  "trigger-type": "MEMBERSHIP_JOINED",
114
- "model-value": ((_ = n.modelValue) == null ? void 0 : _.rules.g_user) ?? l(e).scaffoldGroup("g_user"),
115
- "onUpdate:modelValue": t[2] || (t[2] = (a) => r(
114
+ "model-value": ((_ = a.modelValue) == null ? void 0 : _.rules.g_user) ?? l(e).scaffoldGroup("g_user"),
115
+ "onUpdate:modelValue": t[2] || (t[2] = (m) => r(
116
116
  "update:model-value",
117
117
  l(e).setRuleToGroup(
118
- n.modelValue ?? l(e).scaffoldGroup(),
119
- a,
118
+ a.modelValue ?? l(e).scaffoldGroup(),
119
+ m,
120
120
  "&&"
121
121
  )
122
122
  ))
@@ -2,26 +2,26 @@ import { defineComponent as le, ref as w, computed as ce, h as m, onMounted as r
2
2
  import { _ as pe } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as ue, components as d } from "@feedmepos/ui-library";
4
4
  import { _ as M } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
5
- import { c as de, p as he } from "./plugins-Bj3npYnL.js";
5
+ import { c as de, p as he } from "./plugins-CPTtiKqf.js";
6
6
  import { useCoreStore as ge } from "@feedmepos/mf-common";
7
- import { u as fe } from "./loading-B2mSdkfy.js";
8
- import { u as ye } from "./business-C6ID0exl.js";
9
- import { u as _e } from "./campaign-BgSJXWdU.js";
10
- import { g as Ce, a as B, b as D } from "./campaign-DDfFBFye.js";
11
- import { c as be, p as ve, u as He } from "./template-fjUz6xrU.js";
12
- import "./index-DeNbsrQx.js";
13
- import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js";
14
- import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW_ViNZM.js";
15
- import { u as Ue } from "./vue-i18n-DbJO6sZW.js";
16
- import { T as Te } from "./trigger-BKJwKTJx.js";
17
- import { u as Ve } from "./onboardingSetup-CCQ90jg7.js";
18
- import { W as Pe, S as we } from "./index-CNULhBPM.js";
19
- import "./index-uXgPJlic.js";
20
- import { R as W } from "./rule-builder-BzYwbbj4.js";
21
- import { i as $ } from "./helper-BX0JQP06.js";
7
+ import { u as fe } from "./loading-C5fVI0ry.js";
8
+ import { u as ye } from "./business-BZ0boE-5.js";
9
+ import { u as _e } from "./campaign-DMrtYWcs.js";
10
+ import { a as Ce, b as B, c as D } from "./campaign-CsfFq2S-.js";
11
+ import { c as be, p as ve } from "./duplicateCampaign-ey_rW0Bz.js";
12
+ import "./index-BDNkoALK.js";
13
+ import { u as He } from "./template-C1QftpDG.js";
14
+ import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js";
15
+ import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js";
16
+ import { u as Ue } from "./vue-i18n-C6c2jsH3.js";
17
+ import { T as Te } from "./trigger-PUP0mwKM.js";
18
+ import { u as Ve } from "./onboardingSetup-BEhVj613.js";
19
+ import { R as W, W as Pe, S as we } from "./index-DIZLkVe0.js";
20
+ import "./index-CoROn5OA.js";
21
+ import { i as $ } from "./helper-BRpts-M-.js";
22
22
  import { useRouter as Ne } from "vue-router";
23
- import { c as C } from "./index-Y2Pu1YkB.js";
24
- import { R } from "./app-DgFVWdhA.js";
23
+ import { c as C } from "./index-mToWKHVs.js";
24
+ import { R } from "./app-DV3e2LkD.js";
25
25
  const Ee = {
26
26
  _id: "",
27
27
  intention: ["REVISITING", "MEMBER_REWARD"],
@@ -395,7 +395,7 @@ W.scaffoldGroup(), $("VOUCHER", {
395
395
  business: null,
396
396
  noCampaign: !1
397
397
  });
398
- var xe = { 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", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
398
+ var xe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
399
399
  const Fe = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, je = { class: "flex gap-8 overflow-x-auto" }, ke = { class: "space-y-8" }, Ie = { class: "flex w-full gap-4 items-center" }, Je = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = { class: "space-y-4" }, Le = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "flex gap-8 items-center" }, Be = { class: "flex flex-col gap-16 text-center" }, De = { class: "fm-typo-en-title-sm-800" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yt = /* @__PURE__ */ le({
400
400
  __name: "Voucher",
401
401
  setup($e) {
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as B, ref as L, resolveComponent as g, openBlock as p, createBlock as O, withCtx as y, renderSlot as J, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as S, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as T, resolveDynamicComponent as H } from "vue";
2
- import { u as G } from "./vue-i18n-DbJO6sZW.js";
3
- import { c as j } from "./index-BIpAzktM.js";
4
- import { e as W, F as Y } from "./index-uXgPJlic.js";
5
- import { C as ee } from "./membership-BWyBGF4n.js";
6
- import { Z as x } from "./zod-DI7OBdxu.js";
7
- import { S as te } from "./app-DgFVWdhA.js";
8
- import { u as le } from "./business-C6ID0exl.js";
2
+ import { u as G } from "./vue-i18n-C6c2jsH3.js";
3
+ import { c as j } from "./index-03WIXl-H.js";
4
+ import { g as W, F as Y } from "./index-CoROn5OA.js";
5
+ import { C as ee } from "./membership-BgfH9Kva.js";
6
+ import { Z as x } from "./zod-CihbDg3N.js";
7
+ import { S as te } from "./app-DV3e2LkD.js";
8
+ import { u as le } from "./business-BZ0boE-5.js";
9
9
  import { useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BCoB0Fsa.js";
11
- import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-xdEzwMcS.js";
12
- import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-KvZebiOu.js";
13
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-D9L-AayN.js";
14
- import { i as re } from "./helper-BX0JQP06.js";
10
+ import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-96t_eUzk.js";
11
+ import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js";
12
+ import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-zV9dLCWp.js";
13
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DbnY9VE9.js";
14
+ import { i as re } from "./helper-BRpts-M-.js";
15
15
  const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
16
16
  __name: "MenuSheet",
17
17
  props: {
@@ -95,7 +95,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
95
95
  },
96
96
  emits: ["update:model-value"],
97
97
  setup(o, { emit: I }) {
98
- var b, _, E;
98
+ var b, E, _;
99
99
  const C = le(), { t: l } = G(), t = o, u = I, h = N(
100
100
  () => [
101
101
  {
@@ -135,7 +135,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
135
135
  );
136
136
  }
137
137
  const v = L(
138
- ((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((E = (_ = t.modelValue) == null ? void 0 : _.property) != null && E.length) || !1
138
+ ((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((_ = (E = t.modelValue) == null ? void 0 : E.property) != null && _.length) || !1
139
139
  );
140
140
  return (a, i) => {
141
141
  var D, $, X;
@@ -329,7 +329,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
329
329
  })
330
330
  ), u = Y, h = I;
331
331
  return (c, n) => {
332
- var b, _, E;
332
+ var b, E, _;
333
333
  const P = g("FmTextarea"), v = g("FmHelperText");
334
334
  return p(), S(w, null, [
335
335
  m(ne, {
@@ -398,7 +398,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
398
398
  n[9] || (n[9] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
399
399
  e(t).type === "VOUCHER" ? (p(), O(me, {
400
400
  key: 1,
401
- "model-value": ((E = (_ = e(t).extras) == null ? void 0 : _.targetLocation) == null ? void 0 : E.map(String)) ?? null,
401
+ "model-value": ((_ = (E = e(t).extras) == null ? void 0 : E.targetLocation) == null ? void 0 : _.map(String)) ?? null,
402
402
  type: "select",
403
403
  "onUpdate:modelValue": n[5] || (n[5] = (a) => {
404
404
  e(t).extras.targetLocation = a;
@@ -0,0 +1,159 @@
1
+ import { defineComponent as j, computed as A, ref as m, watch as U, onBeforeUnmount as z, resolveComponent as v, openBlock as i, createElementBlock as u, Fragment as F, createElementVNode as o, createVNode as c, unref as e, withCtx as G, createTextVNode as I, toDisplayString as a, normalizeClass as O, createCommentVNode as T, createBlock as W } from "vue";
2
+ import { u as L } from "./vue-i18n-C6c2jsH3.js";
3
+ import { useRoute as D } from "vue-router";
4
+ import { S as H, a as M } from "./index-03WIXl-H.js";
5
+ import { w as J } from "./index-ZRE89TKq.js";
6
+ import { _ as K } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BrZEDi6O.js";
7
+ import { u as Q, _ as X } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-Cytrffdh.js";
8
+ import { R as Y } from "./app-DV3e2LkD.js";
9
+ const Z = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typo-primary" }, q = { class: "mx-auto w-full min-w-0 flex flex-col gap-[24px]" }, ee = {
10
+ key: 0,
11
+ role: "status",
12
+ class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
13
+ }, te = {
14
+ key: 1,
15
+ class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[16px]"
16
+ }, oe = {
17
+ role: "alert",
18
+ class: "text-[14px] text-fm-color-typo-error"
19
+ }, ne = { class: "flex items-center gap-[16px]" }, re = ["src"], ae = { key: 1 }, le = { class: "min-w-0 flex-1 flex flex-col gap-[2px]" }, se = { class: "text-[24px] leading-[32px] font-semibold tracking-[-0.01em] break-words" }, ie = { class: "flex items-center gap-[10px] flex-wrap text-[14px] text-fm-color-typo-secondary" }, ce = { class: "break-all" }, pe = {
20
+ "aria-labelledby": "notification-group-title",
21
+ class: "border border-fm-color-neutral-gray-100 rounded-[16px] p-[24px] xs:p-[20px] flex items-center gap-[16px] flex-wrap"
22
+ }, ue = {
23
+ "aria-hidden": "true",
24
+ class: "w-[40px] h-[40px] rounded-[8px] shrink-0 self-start bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center"
25
+ }, de = { class: "min-w-[240px] xs:min-w-0 flex-1 flex flex-col gap-[4px]" }, fe = {
26
+ id: "notification-group-title",
27
+ class: "text-[16px] leading-[24px] font-semibold"
28
+ }, xe = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, ke = /* @__PURE__ */ j({
29
+ __name: "WhatsappAccount",
30
+ setup(me) {
31
+ const { t: n } = L(), b = D(), f = A(() => H.getBusinessId() ?? ""), w = A(
32
+ () => typeof b.params.clientId == "string" ? b.params.clientId : ""
33
+ ), r = m(), _ = m(!0), p = m(""), d = m(!1), {
34
+ name: E,
35
+ phoneNumber: N,
36
+ initials: V,
37
+ state: P,
38
+ avatarColor: $,
39
+ profilePictureUrl: B,
40
+ profilePictureFailed: k
41
+ } = Q(r);
42
+ let l, h;
43
+ async function g(y = !1) {
44
+ clearTimeout(h), l == null || l.abort();
45
+ const t = new AbortController();
46
+ l = t, y || (_.value = !0, p.value = "");
47
+ try {
48
+ if (!f.value)
49
+ throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
50
+ const s = await J.getClient(
51
+ f.value,
52
+ w.value,
53
+ t.signal
54
+ );
55
+ if (t.signal.aborted) return;
56
+ r.value = s, p.value = "";
57
+ } catch (s) {
58
+ if (t.signal.aborted) return;
59
+ s instanceof M && s.status === 404 ? (d.value = !1, r.value = void 0, p.value = n("connect.whatsappBot.errors.accountNotFound")) : y || (p.value = f.value ? n("connect.whatsappBot.errors.loadAccount") : n("connect.whatsappBot.errors.selectBusiness"));
60
+ } finally {
61
+ t.signal.aborted || (_.value = !1, r.value && (h = setTimeout(() => void g(!0), 1e4)));
62
+ }
63
+ }
64
+ return U(
65
+ [f, w],
66
+ () => {
67
+ d.value = !1, r.value = void 0, g();
68
+ },
69
+ { immediate: !0 }
70
+ ), z(() => {
71
+ l == null || l.abort(), clearTimeout(h);
72
+ }), (y, t) => {
73
+ const s = v("FmIcon"), R = v("RouterLink"), S = v("FmCircularProgress"), C = v("FmButton");
74
+ return i(), u(F, null, [
75
+ o("div", Z, [
76
+ o("div", q, [
77
+ c(R, {
78
+ to: { name: e(Y)["$connect-WHATSAPP_BOT"] },
79
+ class: "self-start flex items-center gap-[4px] h-[32px] pl-[6px] pr-[10px] -ml-[6px] rounded-[8px] text-[14px] font-medium text-fm-color-typo-secondary no-underline hover:bg-fm-color-neutral-gray-100 hover:text-fm-color-typo-primary focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary"
80
+ }, {
81
+ default: G(() => [
82
+ c(s, {
83
+ name: "chevron_left",
84
+ size: "sm"
85
+ }),
86
+ I(" " + a(e(n)("connect.navigation.whatsappBot")), 1)
87
+ ]),
88
+ _: 1
89
+ }, 8, ["to"]),
90
+ _.value ? (i(), u("div", ee, [
91
+ c(S),
92
+ I(" " + a(e(n)("connect.whatsappBot.loadingAccount")), 1)
93
+ ])) : p.value ? (i(), u("div", te, [
94
+ o("p", oe, a(p.value), 1),
95
+ c(C, {
96
+ label: e(n)("connect.whatsappBot.tryAgain"),
97
+ "prepend-icon": "refresh",
98
+ class: "!rounded-full [&_.label]:text-[14px]",
99
+ onClick: t[0] || (t[0] = (x) => g())
100
+ }, null, 8, ["label"])
101
+ ])) : r.value ? (i(), u(F, { key: 2 }, [
102
+ o("div", ne, [
103
+ o("div", {
104
+ "aria-hidden": "true",
105
+ class: O(["w-[56px] h-[56px] rounded-full overflow-hidden shrink-0 flex items-center justify-center text-[18px] font-semibold text-fm-color-typo-white", e($)])
106
+ }, [
107
+ e(B) && !e(k) ? (i(), u("img", {
108
+ key: 0,
109
+ src: e(B),
110
+ alt: "",
111
+ class: "w-full h-full object-cover",
112
+ referrerpolicy: "no-referrer",
113
+ onError: t[1] || (t[1] = (x) => k.value = !0)
114
+ }, null, 40, re)) : (i(), u("span", ae, a(e(V)), 1))
115
+ ], 2),
116
+ o("div", le, [
117
+ o("h1", se, a(e(E)), 1),
118
+ o("div", ie, [
119
+ o("span", ce, a(e(N)), 1),
120
+ c(K, { state: e(P) }, null, 8, ["state"])
121
+ ])
122
+ ])
123
+ ]),
124
+ o("section", pe, [
125
+ o("div", ue, [
126
+ c(s, {
127
+ name: "notifications",
128
+ size: "md"
129
+ })
130
+ ]),
131
+ o("div", de, [
132
+ o("h2", fe, a(e(n)("connect.whatsappBot.notificationGroup.title")), 1),
133
+ o("p", xe, a(e(n)("connect.whatsappBot.notificationGroup.description")), 1)
134
+ ]),
135
+ c(C, {
136
+ variant: "secondary",
137
+ "border-color": "neutral-gray-200",
138
+ label: e(n)("connect.whatsappBot.notificationGroup.join"),
139
+ "prepend-icon": "group",
140
+ class: "shrink-0 !rounded-full !px-[20px] [&_.label]:text-[14px]",
141
+ onClick: t[2] || (t[2] = (x) => d.value = !0)
142
+ }, null, 8, ["label"])
143
+ ])
144
+ ], 64)) : T("", !0)
145
+ ])
146
+ ]),
147
+ r.value ? (i(), W(X, {
148
+ key: 0,
149
+ modelValue: d.value,
150
+ "onUpdate:modelValue": t[3] || (t[3] = (x) => d.value = x),
151
+ account: r.value
152
+ }, null, 8, ["modelValue", "account"])) : T("", !0)
153
+ ], 64);
154
+ };
155
+ }
156
+ });
157
+ export {
158
+ ke as default
159
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as l, computed as r, openBlock as a, createElementBlock as p, normalizeClass as t, createElementVNode as m, createTextVNode as i, toDisplayString as d, unref as u } from "vue";
2
+ import { u as f } from "./vue-i18n-C6c2jsH3.js";
3
+ const h = /* @__PURE__ */ l({
4
+ __name: "WhatsappAccountStatusLabel",
5
+ props: {
6
+ state: {}
7
+ },
8
+ setup(o) {
9
+ const s = o, { t: n } = f(), c = {
10
+ connected: {
11
+ label: "connect.whatsappBot.connected",
12
+ pill: "text-fm-color-typo-success bg-fm-color-system-success-100",
13
+ dot: "bg-fm-color-system-success-400"
14
+ },
15
+ disconnected: {
16
+ label: "connect.whatsappBot.disconnected",
17
+ pill: "text-fm-color-typo-error bg-fm-color-system-error-100",
18
+ dot: "bg-fm-color-system-error-400"
19
+ },
20
+ connecting: {
21
+ label: "connect.whatsappBot.statusConnecting",
22
+ pill: "text-fm-color-typo-warning bg-fm-color-system-warning-100",
23
+ dot: "bg-fm-color-system-warning-400"
24
+ }
25
+ }, e = r(() => c[s.state]);
26
+ return (x, g) => (a(), p("span", {
27
+ class: t(["flex items-center gap-[6px] text-[12px] font-semibold px-[8px] py-[3px] rounded-[6px]", e.value.pill])
28
+ }, [
29
+ m("span", {
30
+ "aria-hidden": "true",
31
+ class: t(["w-[6px] h-[6px] rounded-full", e.value.dot])
32
+ }, null, 2),
33
+ i(" " + d(u(n)(e.value.label)), 1)
34
+ ], 2));
35
+ }
36
+ });
37
+ export {
38
+ h as _
39
+ };