@feedmepos/mf-connect 0.1.117-prod → 0.1.118-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 (154) hide show
  1. package/README.md +68 -1
  2. package/dist/{App-CAo1izHr.js → App-CBFNBDb2.js} +435 -418
  3. package/dist/AuditLogs-BtSA8b08.js +2016 -0
  4. package/dist/{Bin-DDDfjisJ.js → Bin-CjmS_Tfn.js} +8 -8
  5. package/dist/{Broadcast-BsCulZhE.js → Broadcast-BeePmZa1.js} +22 -21
  6. package/dist/{CampaignAnalytic-CnVYFSkT.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
  8. package/dist/{Card-DPyQH9qZ.js → Card-C8SzQQ0z.js} +25 -24
  9. package/dist/{Collections-CZCVA969.js → Collections-BXNWTSZH.js} +197 -185
  10. package/dist/{Credit-BTg364-i.js → Credit-CK0-0yD1.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +32 -32
  14. package/dist/{Experience-Bk_eUcSX.js → Experience-CWJaj62g.js} +32 -31
  15. package/dist/{FileSaver.min-CXFiZAp7.js → FileSaver.min-lV9H82L5.js} +1 -1
  16. package/dist/{Game-CBnKpFdl.js → Game-zBV1LYAg.js} +19 -18
  17. package/dist/{GiftCardSetup-q75wNV_F.js → GiftCardSetup-Cnq9353j.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
  19. package/dist/{Goals-Bbbgurfd.js → Goals-Utk08egN.js} +4 -4
  20. package/dist/Grab-DwMmWmbT.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
  22. package/dist/{Index-C8_OWllb.js → Index-Bjgs18xf.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DJlE0371.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
  26. package/dist/MainLayout-DlDZQJfy.js +4 -0
  27. package/dist/{MainLayout-Bs2UPvFx.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +5 -4
  28. package/dist/Marketing-B0iKlHP-.js +269 -0
  29. package/dist/MarketingMaterialEdit-BNHxVb8A.js +1037 -0
  30. package/dist/{Member-C4yqwsMH.js → Member-Bcm3_pWB.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +43 -50
  32. package/dist/{MemberImportHistory-CbuXCdxC.js → MemberImportHistory-AQgLzB3g.js} +7 -7
  33. package/dist/{MemberList-CpAepPBe.js → MemberList-CkMTo2uD.js} +103 -105
  34. package/dist/{MemberTransactions-BbpXvsSk.js → MemberTransactions-CxLCVjvw.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +14 -14
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
  37. package/dist/{Mission-Bdb9KVeP.js → Mission-CQS1CoDN.js} +22 -21
  38. package/dist/{Overview-CEiyGMcf.js → Overview-NQ287sgq.js} +23 -22
  39. package/dist/{Overview-D_9JwnFU.js → Overview-UG1IjY7-.js} +145 -144
  40. package/dist/{Point-Bd5cMXQx.js → Point-krMa_mb1.js} +22 -21
  41. package/dist/{Promotion-D9gZDvgR.js → Promotion-vFBmJSti.js} +137 -131
  42. package/dist/{Queue-BnAOL_rp.js → Queue-BusxSPt-.js} +46 -45
  43. package/dist/{Record-D6TWFKe0.js → Record-DjKqn0za.js} +9 -9
  44. package/dist/{Review-DLEgvnc-.js → Review-CqLp8l7U.js} +2 -2
  45. package/dist/ReviewFacebookCallback-D2kMSVFC.js +225 -0
  46. package/dist/{ReviewGoogleCallback-BgAbO3pI.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
  47. package/dist/Reward-FeSxgzuS.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js +1923 -0
  50. package/dist/{Segment-B9Se5FFw.js → Segment-Nj59F9Nr.js} +304 -305
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
  53. package/dist/Setting-CCIzNxv-.js +574 -0
  54. package/dist/{SettingAdvertisements-CLw-dqiA.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
  55. package/dist/Settings-CYjKGCpa.js +286 -0
  56. package/dist/{Store-B5PPP5zM.js → Store-Bp8Zkzi2.js} +31 -30
  57. package/dist/{StoreRewards-DllyaVBY.js → StoreRewards-DXW5nVyW.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js +7007 -0
  60. package/dist/{Tier-M_TApfju.js → Tier-B8Utn9Qb.js} +2576 -687
  61. package/dist/{Title-Cpltm-I2.js → Title-CwaNSFer.js} +94 -92
  62. package/dist/{Transaction-BYfAYRpv.js → Transaction-ieciAdXP.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +26 -26
  64. package/dist/{Voucher-DHoyg0YZ.js → Voucher-BKfujj6r.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +16 -16
  66. package/dist/WhatsappAccount-D73WDP7a.js +161 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js +39 -0
  68. package/dist/WhatsappBot-DTWZAXhi.js +878 -0
  69. package/dist/WhatsappBotLogs-DtDcrjs9.js +372 -0
  70. package/dist/WhatsappBotSettings-7_mH9U4y.js +704 -0
  71. package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
  74. package/dist/{app-B_doYklh.js → app-DX7OWVY2.js} +9159 -7383
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-DmbnT_bp.js → base.export-bamzzexi.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-DdVGtTvx.js → business-D3U9HSu9.js} +1 -1
  79. package/dist/{campaign-jEhKmpKg.js → campaign-BqRf2VUO.js} +121 -94
  80. package/dist/{campaign-CVkA08zl.js → campaign-CKfeN2xN.js} +31 -25
  81. package/dist/{campaign.enum-DWu6-kOo.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/{campaign.fn-BlgEyeFz.js → campaign.fn-DQe5LZuT.js} +82 -82
  83. package/dist/{collectible.enum-CVLkXKml.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-DLNGTrPf.js → collection.fn-BcGqExuE.js} +2 -2
  85. package/dist/{currency-DKS1md4e.js → currency-sjMYWoI8.js} +1 -1
  86. package/dist/duplicateCampaign-CJF3ZLNd.js +51 -0
  87. package/dist/{effect-Bk-zYexf.js → effect-Cv8ugBR3.js} +1 -1
  88. package/dist/{email-addresses-I9A5iLzf.js → email-addresses-CWqtseTn.js} +2 -2
  89. package/dist/{feature-flag-DQti61iR.js → feature-flag-BIh6MM4i.js} +152 -136
  90. package/dist/google-BQK68wbe.js +5 -0
  91. package/dist/{helper-9cPlo6ae.js → helper-WnxOxoRK.js} +1 -1
  92. package/dist/{index-DuvnRxeo.js → index-5TTGGDnF.js} +1 -1
  93. package/dist/{index-CuyzSc1l.js → index-B3CkAr-6.js} +1 -1
  94. package/dist/{index-cgtAlOl9.js → index-B9XVyhtC.js} +8028 -10767
  95. package/dist/{index-ClYX4COd.js → index-BGguMtc0.js} +4 -3
  96. package/dist/{index-CNUXbXvG.js → index-Bdg48Cus.js} +19 -6
  97. package/dist/{index-fHiFL1dW.js → index-BoAmM8QH.js} +29 -15
  98. package/dist/{index-C-OnJpT8.js → index-BtmVXdRR.js} +1 -1
  99. package/dist/{index-1Cdj34z1.js → index-CDTETsXQ.js} +1 -1
  100. package/dist/index-C_H8jFYf.js +2743 -0
  101. package/dist/{index-BxpbI0GH.js → index-CeafUn1o.js} +7 -7
  102. package/dist/{index-Dj51vqab.js → index-CiSTQhs9.js} +4 -4
  103. package/dist/{index-CIwdXphn.js → index-ClvaVYkG.js} +2700 -2613
  104. package/dist/{index-Cj6oxbl0.js → index-CnsSd5Dg.js} +11 -10
  105. package/dist/{index-oNMFyOGe.js → index-D3yYjyaj.js} +8 -7
  106. package/dist/{index-BRm0LMTo.js → index-DDzi_-Lu.js} +611 -252
  107. package/dist/{index-3V8E9GaZ.js → index-DOgDR_QH.js} +2 -2
  108. package/dist/{index-DOE2VR99.js → index-DqZX-A6e.js} +198 -198
  109. package/dist/{index-vKvGJ4Ve.js → index-DxhNNZ-a.js} +2 -2
  110. package/dist/index-DzYFQGSw.js +74 -0
  111. package/dist/index-I9lmcd2w.js +109 -0
  112. package/dist/{index-728mP6kW.js → index-iiWxryxo.js} +683 -581
  113. package/dist/{index-DWkuIfHy.js → index-qI1yx02a.js} +390 -232
  114. package/dist/{index.esm2017-CsF37oA-.js → index.esm2017-GI2alVO5.js} +177 -177
  115. package/dist/{loading-BJJmTFoe.js → loading-Qx5K2WL0.js} +1 -1
  116. package/dist/{lodash-BMJ6_hsa.js → lodash-CeSjJptg.js} +1 -1
  117. package/dist/{member-import-DrGxVJt9.js → member-import-Cq8G7SsW.js} +6 -5
  118. package/dist/{membership-CAqKihwy.js → membership-BbeavSNs.js} +3 -3
  119. package/dist/{money-Bf9d2ZUH.js → money-D8YIFaGA.js} +1 -1
  120. package/dist/{number-CWXlGZa5.js → number-DAubZ5bt.js} +1 -1
  121. package/dist/objectid-DeXFWDMh.js +145 -0
  122. package/dist/{onboarding-Dn9O7r3a.js → onboarding-SyFxaTJY.js} +25 -25
  123. package/dist/{onboardingSetup-BMkDoGy-.js → onboardingSetup-CLpHlBn8.js} +2 -2
  124. package/dist/{plugins-KDgceFWV.js → plugins-BHuaMEYA.js} +3 -3
  125. package/dist/{MarketingMaterialEdit-o88sdvTM.js → remy-icon-BhUGu2NI.js} +2 -1031
  126. package/dist/{reward-eilGRaXi.js → reward-dYWnmAC8.js} +1 -1
  127. package/dist/{rule-Dr9Zjg_o.js → rule-BVsfOP2h.js} +572 -492
  128. package/dist/style.css +1 -1
  129. package/dist/template-BcdtbhUJ.js +188 -0
  130. package/dist/{timezone-C5CIfvHs.js → timezone-CUc7q5Ii.js} +1 -1
  131. package/dist/{transaction.fn-Cr-FLjh0.js → transaction.fn-jF9u_cBy.js} +2 -2
  132. package/dist/{trigger-B0Fv6wbN.js → trigger-COlbQlaB.js} +8 -8
  133. package/dist/useMarketingMaterialActions-Dq6-gsOW.js +125 -0
  134. package/dist/{usePagination-BcA-imTr.js → usePagination-BYZB6ORK.js} +1 -1
  135. package/dist/{user-DRvLwlBE.js → user-DK7L8VFR.js} +1 -1
  136. package/dist/vue-i18n-CDSTH7g5.js +2365 -0
  137. package/dist/{xlsx-CBObn76o.js → xlsx-CKxXlDzD.js} +224 -224
  138. package/dist/{zod-DWU5EdQV.js → zod-DjtAaF0U.js} +1 -1
  139. package/package.json +6 -2
  140. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js +0 -3494
  141. package/dist/Marketing-BvRYzFV8.js +0 -236
  142. package/dist/ReviewFacebookCallback-jVlm2O8f.js +0 -238
  143. package/dist/Reward-DBheQiFu.js +0 -442
  144. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js +0 -1883
  145. package/dist/Setting-B92JT_Y4.js +0 -2037
  146. package/dist/Settings-BmmM8ZnR.js +0 -179
  147. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js +0 -1264
  148. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js +0 -142
  149. package/dist/google-C3S8u0mT.js +0 -4
  150. package/dist/objectid-2DN5a9sY.js +0 -145
  151. package/dist/rule-builder-cz6Dy-no.js +0 -102
  152. package/dist/template-DwbazO8p.js +0 -236
  153. package/dist/useMarketingMaterialActions-CNk3LR9M.js +0 -96
  154. package/dist/vue-i18n-y7bHQpNx.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-CIwdXphn.js";
3
- import { i as C, R as e } from "./rule-builder-cz6Dy-no.js";
4
- import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js";
5
- import { p as N } from "./plugins-KDgceFWV.js";
6
- import { u as S } from "./membership-CAqKihwy.js";
2
+ import "./index-ClvaVYkG.js";
3
+ import { a as C, R as e } from "./index-DDzi_-Lu.js";
4
+ import { a as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js";
5
+ import { p as N } from "./plugins-BHuaMEYA.js";
6
+ import { u as S } from "./membership-BbeavSNs.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-y7bHQpNx.js";
8
+ import { u as x } from "./vue-i18n-CDSTH7g5.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-KDgceFWV.js";
5
+ import { c as de, p as he } from "./plugins-BHuaMEYA.js";
6
6
  import { useCoreStore as ge } from "@feedmepos/mf-common";
7
- import { u as fe } from "./loading-BJJmTFoe.js";
8
- import { u as ye } from "./business-DdVGtTvx.js";
9
- import { u as _e } from "./campaign-CVkA08zl.js";
10
- import { g as Ce, a as B, b as D } from "./campaign-jEhKmpKg.js";
11
- import { c as be, p as ve, u as He } from "./template-DwbazO8p.js";
12
- import "./index-CuyzSc1l.js";
13
- import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js";
14
- import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js";
15
- import { u as Ue } from "./vue-i18n-y7bHQpNx.js";
16
- import { T as Te } from "./trigger-B0Fv6wbN.js";
17
- import { u as Ve } from "./onboardingSetup-BMkDoGy-.js";
18
- import { W as Pe, S as we } from "./index-BRm0LMTo.js";
19
- import "./index-CIwdXphn.js";
20
- import { R as W } from "./rule-builder-cz6Dy-no.js";
21
- import { i as $ } from "./helper-9cPlo6ae.js";
7
+ import { u as fe } from "./loading-Qx5K2WL0.js";
8
+ import { u as ye } from "./business-D3U9HSu9.js";
9
+ import { u as _e } from "./campaign-CKfeN2xN.js";
10
+ import { a as Ce, b as B, c as D } from "./campaign-BqRf2VUO.js";
11
+ import { c as be, p as ve } from "./duplicateCampaign-CJF3ZLNd.js";
12
+ import "./index-B3CkAr-6.js";
13
+ import { u as He } from "./template-BcdtbhUJ.js";
14
+ import { _ as Se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js";
15
+ import { _ as ze } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js";
16
+ import { u as Ue } from "./vue-i18n-CDSTH7g5.js";
17
+ import { T as Te } from "./trigger-COlbQlaB.js";
18
+ import { u as Ve } from "./onboardingSetup-CLpHlBn8.js";
19
+ import { R as W, W as Pe, S as we } from "./index-DDzi_-Lu.js";
20
+ import "./index-ClvaVYkG.js";
21
+ import { i as $ } from "./helper-WnxOxoRK.js";
22
22
  import { useRouter as Ne } from "vue-router";
23
- import { c as C } from "./index-vKvGJ4Ve.js";
24
- import { R } from "./app-B_doYklh.js";
23
+ import { c as C } from "./index-DxhNNZ-a.js";
24
+ import { R } from "./app-DX7OWVY2.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-y7bHQpNx.js";
3
- import { c as j } from "./index-BxpbI0GH.js";
4
- import { e as W, F as Y } from "./index-CIwdXphn.js";
5
- import { C as ee } from "./membership-CAqKihwy.js";
6
- import { Z as x } from "./zod-DWU5EdQV.js";
7
- import { S as te } from "./app-B_doYklh.js";
8
- import { u as le } from "./business-DdVGtTvx.js";
2
+ import { u as G } from "./vue-i18n-CDSTH7g5.js";
3
+ import { c as j } from "./index-CeafUn1o.js";
4
+ import { g as W, F as Y } from "./index-ClvaVYkG.js";
5
+ import { C as ee } from "./membership-BbeavSNs.js";
6
+ import { Z as x } from "./zod-DjtAaF0U.js";
7
+ import { S as te } from "./app-DX7OWVY2.js";
8
+ import { u as le } from "./business-D3U9HSu9.js";
9
9
  import { useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js";
11
- import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js";
12
- import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js";
13
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js";
14
- import { i as re } from "./helper-9cPlo6ae.js";
10
+ import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js";
11
+ import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js";
12
+ import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js";
13
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js";
14
+ import { i as re } from "./helper-WnxOxoRK.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,161 @@
1
+ import { defineComponent as U, computed as A, ref as m, watch as z, onBeforeUnmount as G, resolveComponent as v, openBlock as c, createElementBlock as u, Fragment as F, createElementVNode as o, createVNode as i, unref as e, withCtx as O, createTextVNode as I, toDisplayString as l, normalizeClass as W, createCommentVNode as T, createBlock as L } from "vue";
2
+ import { u as D } from "./vue-i18n-CDSTH7g5.js";
3
+ import { useRoute as H } from "vue-router";
4
+ import { S as M, a as J } from "./index-CeafUn1o.js";
5
+ import { w as K } from "./index-DzYFQGSw.js";
6
+ import { _ as Q } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js";
7
+ import { u as X, _ as Y } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js";
8
+ import { R as Z } from "./app-DX7OWVY2.js";
9
+ const q = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typo-primary" }, ee = { class: "mx-auto w-full min-w-0 flex flex-col gap-[24px]" }, te = {
10
+ key: 0,
11
+ class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
12
+ }, oe = {
13
+ key: 1,
14
+ class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[16px]"
15
+ }, ne = {
16
+ role: "alert",
17
+ class: "text-[14px] text-fm-color-typo-error"
18
+ }, re = { class: "flex items-center gap-[16px]" }, le = ["src"], se = { key: 1 }, ae = { class: "min-w-0 flex-1 flex flex-col gap-[2px]" }, ce = { 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" }, pe = { class: "break-all" }, ue = {
19
+ "aria-labelledby": "notification-group-title",
20
+ class: "border border-fm-color-neutral-gray-100 rounded-[16px] p-[24px] xs:p-[20px] flex items-center gap-[16px] flex-wrap"
21
+ }, de = {
22
+ "aria-hidden": "true",
23
+ 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"
24
+ }, fe = { class: "min-w-[240px] xs:min-w-0 flex-1 flex flex-col gap-[4px]" }, xe = {
25
+ id: "notification-group-title",
26
+ class: "text-[16px] leading-[24px] font-semibold"
27
+ }, me = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, Ce = /* @__PURE__ */ U({
28
+ __name: "WhatsappAccount",
29
+ setup(ve) {
30
+ const { t: n } = D(), b = H(), f = A(() => M.getBusinessId() ?? ""), w = A(
31
+ () => typeof b.params.clientId == "string" ? b.params.clientId : ""
32
+ ), r = m(), _ = m(!0), p = m(""), d = m(!1), {
33
+ name: E,
34
+ phoneNumber: N,
35
+ initials: V,
36
+ state: P,
37
+ avatarColor: R,
38
+ profilePictureUrl: B,
39
+ profilePictureFailed: k
40
+ } = X(r);
41
+ let s, h;
42
+ function $() {
43
+ r.value && (h = setTimeout(() => void g(!0), 1e4));
44
+ }
45
+ async function g(y = !1) {
46
+ clearTimeout(h), s == null || s.abort();
47
+ const t = new AbortController();
48
+ s = t, y || (_.value = !0, p.value = "");
49
+ try {
50
+ if (!f.value)
51
+ throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
52
+ const a = await K.getClient(
53
+ f.value,
54
+ w.value,
55
+ t.signal
56
+ );
57
+ if (t.signal.aborted) return;
58
+ r.value = a, p.value = "";
59
+ } catch (a) {
60
+ if (t.signal.aborted) return;
61
+ a instanceof J && a.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"));
62
+ } finally {
63
+ t.signal.aborted || (_.value = !1, $());
64
+ }
65
+ }
66
+ return z(
67
+ [f, w],
68
+ () => {
69
+ d.value = !1, r.value = void 0, g();
70
+ },
71
+ { immediate: !0 }
72
+ ), G(() => {
73
+ s == null || s.abort(), clearTimeout(h);
74
+ }), (y, t) => {
75
+ const a = v("FmIcon"), S = v("RouterLink"), j = v("FmCircularProgress"), C = v("FmButton");
76
+ return c(), u(F, null, [
77
+ o("div", q, [
78
+ o("div", ee, [
79
+ i(S, {
80
+ to: { name: e(Z)["$connect-WHATSAPP_BOT"] },
81
+ 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"
82
+ }, {
83
+ default: O(() => [
84
+ i(a, {
85
+ name: "chevron_left",
86
+ size: "sm"
87
+ }),
88
+ I(" " + l(e(n)("connect.navigation.whatsappBot")), 1)
89
+ ]),
90
+ _: 1
91
+ }, 8, ["to"]),
92
+ _.value ? (c(), u("output", te, [
93
+ i(j),
94
+ I(" " + l(e(n)("connect.whatsappBot.loadingAccount")), 1)
95
+ ])) : p.value ? (c(), u("div", oe, [
96
+ o("p", ne, l(p.value), 1),
97
+ i(C, {
98
+ label: e(n)("connect.whatsappBot.tryAgain"),
99
+ "prepend-icon": "refresh",
100
+ class: "!rounded-full [&_.label]:text-[14px]",
101
+ onClick: t[0] || (t[0] = (x) => g())
102
+ }, null, 8, ["label"])
103
+ ])) : r.value ? (c(), u(F, { key: 2 }, [
104
+ o("div", re, [
105
+ o("div", {
106
+ "aria-hidden": "true",
107
+ class: W(["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(R)])
108
+ }, [
109
+ e(B) && !e(k) ? (c(), u("img", {
110
+ key: 0,
111
+ src: e(B),
112
+ alt: "",
113
+ class: "w-full h-full object-cover",
114
+ referrerpolicy: "no-referrer",
115
+ onError: t[1] || (t[1] = (x) => k.value = !0)
116
+ }, null, 40, le)) : (c(), u("span", se, l(e(V)), 1))
117
+ ], 2),
118
+ o("div", ae, [
119
+ o("h1", ce, l(e(E)), 1),
120
+ o("div", ie, [
121
+ o("span", pe, l(e(N)), 1),
122
+ i(Q, { state: e(P) }, null, 8, ["state"])
123
+ ])
124
+ ])
125
+ ]),
126
+ o("section", ue, [
127
+ o("div", de, [
128
+ i(a, {
129
+ name: "notifications",
130
+ size: "md"
131
+ })
132
+ ]),
133
+ o("div", fe, [
134
+ o("h2", xe, l(e(n)("connect.whatsappBot.notificationGroup.title")), 1),
135
+ o("p", me, l(e(n)("connect.whatsappBot.notificationGroup.description")), 1)
136
+ ]),
137
+ i(C, {
138
+ variant: "secondary",
139
+ "border-color": "neutral-gray-200",
140
+ label: e(n)("connect.whatsappBot.notificationGroup.join"),
141
+ "prepend-icon": "group",
142
+ class: "shrink-0 !rounded-full !px-[20px] [&_.label]:text-[14px]",
143
+ onClick: t[2] || (t[2] = (x) => d.value = !0)
144
+ }, null, 8, ["label"])
145
+ ])
146
+ ], 64)) : T("", !0)
147
+ ])
148
+ ]),
149
+ r.value ? (c(), L(Y, {
150
+ key: 0,
151
+ modelValue: d.value,
152
+ "onUpdate:modelValue": t[3] || (t[3] = (x) => d.value = x),
153
+ account: r.value
154
+ }, null, 8, ["modelValue", "account"])) : T("", !0)
155
+ ], 64);
156
+ };
157
+ }
158
+ });
159
+ export {
160
+ Ce as default
161
+ };
@@ -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-CDSTH7g5.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
+ };