@feedmepos/mf-connect 0.1.98-beta.11 → 0.1.98-beta.12

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 (103) hide show
  1. package/dist/{App-DKClefqk.js → App-D6itaLJw.js} +7 -7
  2. package/dist/{AuditLogs-BeSkYL6M.js → AuditLogs-CQ0stjyy.js} +9 -9
  3. package/dist/{Bin-DqZYwOrb.js → Bin-CJDe9-rE.js} +8 -8
  4. package/dist/{Broadcast-D8AD4KkO.js → Broadcast-z-DB523F.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-vqHrjU8C.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DLb3CkoH.js} +5 -5
  6. package/dist/{Card-DvhrSAk4.js → Card-s98kesqz.js} +18 -18
  7. package/dist/{Collections-D2w-IYlv.js → Collections-CqXLzsl_.js} +7 -7
  8. package/dist/{Credit-C6WDUg72.js → Credit-DQQTkcIs.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CQJ6pNxV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BVYLFX8W.js} +30 -30
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CgoTE9a7.js → EffectSheet.vue_vue_type_style_index_0_lang-BuyX7O0S.js} +6 -6
  11. package/dist/{Experience-CzB0noGs.js → Experience-Dgfkur9H.js} +9 -9
  12. package/dist/{FileSaver.min-ChS9YTfX.js → FileSaver.min-CQUlapCd.js} +1 -1
  13. package/dist/{Game-C4NPtOis.js → Game-B8MqrMr5.js} +10 -10
  14. package/dist/{Grab-DRQkvRE-.js → Grab-C8CQfv0e.js} +8 -8
  15. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DD_fi0Z5.js → ImageInput.vue_vue_type_script_setup_true_lang-X6WPAflA.js} +1 -1
  16. package/dist/{Index-bOOUuYVP.js → Index-D_voDg8S.js} +10 -10
  17. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-uPK3w6VD.js → LocationPicker.vue_vue_type_script_setup_true_lang-UMsLQmTo.js} +1 -1
  18. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B9JJ2xSz.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CUYv3gXV.js} +1 -1
  19. package/dist/{LoyaltyDashboard-bD6MlAbo.js → LoyaltyDashboard-BIlcHZH1.js} +4 -4
  20. package/dist/{MainLayout-1DjfB3tH.js → MainLayout-axC3ZL1X.js} +1 -1
  21. package/dist/{Marketing-CEagZu_d.js → Marketing-CBrZOlT0.js} +4 -4
  22. package/dist/{MarketingMaterialEdit-pNm733VI.js → MarketingMaterialEdit-3-7ke5cX.js} +6 -6
  23. package/dist/{Member-Du0xk_f0.js → Member-CJAQrrBg.js} +11 -11
  24. package/dist/{MemberList-2BImw45d.js → MemberList-BsenVaU-.js} +25 -25
  25. package/dist/{MemberTransactions-Ce9ccBGW.js → MemberTransactions-DhHduUCA.js} +1 -1
  26. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CY7V8qMz.js → MessageInput.vue_vue_type_script_setup_true_lang-Dx26y5Ww.js} +9 -9
  27. package/dist/{Mission-C0S2U1yY.js → Mission-CYxydBII.js} +10 -10
  28. package/dist/{Overview-B0-bTPEk.js → Overview-BED1URv5.js} +18 -18
  29. package/dist/{Point-Blc4sA0k.js → Point-DwFQlUW_.js} +9 -9
  30. package/dist/{Promotion-8nM93Gci.js → Promotion-DkmApv1g.js} +10 -10
  31. package/dist/{Queue-Def03xU8.js → Queue-B-1zuJxM.js} +10 -10
  32. package/dist/{Record-Bop_7cP_.js → Record-B184P64p.js} +9 -9
  33. package/dist/{Review-CFdfmjkW.js → Review-DKhSVRiA.js} +4 -4
  34. package/dist/ReviewFacebookCallback-DYoNugpg.js +248 -0
  35. package/dist/ReviewGoogleCallback-dWLz16_8.js +213 -0
  36. package/dist/{Reward-DKkjbPWO.js → Reward-Ck54ulWv.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BglByPmS.js → RewardGroup.vue_vue_type_script_setup_true_lang-CdP2AitR.js} +11 -11
  38. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DHLeyxp_.js → RuleGroup.vue_vue_type_script_setup_true_lang-DEz1E2Ng.js} +13 -13
  39. package/dist/{Segment-DPBzExUz.js → Segment-D0FRULRN.js} +23 -23
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Di-Xv-Fk.js → SelectItems.vue_vue_type_script_setup_true_lang-B7PtCb6w.js} +2 -2
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DsSarYWA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-uBG9AonP.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MjnVm1zx.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyFsgiGV.js} +4 -4
  43. package/dist/{Setting-BH61xoUN.js → Setting-BYW4w7kn.js} +14 -14
  44. package/dist/{SettingAdvertisements-LfzmkWhb.js → SettingAdvertisements-A4DL6Q-4.js} +12 -12
  45. package/dist/{Store-DiNTwuRj.js → Store-ChG1K5Kn.js} +21 -21
  46. package/dist/{StoreRewards-3bylfB08.js → StoreRewards-DKuaLRA0.js} +15 -15
  47. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DR2M_zjD.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Ca9iWfJc.js} +21 -21
  48. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-gIqflCTb.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BEzeRQv2.js} +2 -2
  49. package/dist/{Tier-Dyy84802.js → Tier-DMr_I6g3.js} +22 -22
  50. package/dist/{Title-DQdRI9k0.js → Title-Dq-o2CZi.js} +19 -19
  51. package/dist/{Transaction-BxNk0O0-.js → Transaction-CAzG6-t1.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BqrFEBBM.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CwrWZxk7.js} +6 -6
  53. package/dist/{Voucher-D-qCe-wS.js → Voucher-6nQNS0Jw.js} +13 -13
  54. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-B3sadrpZ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CKHgcBu5.js} +12 -12
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang--TG7NPaw.js → ZodTextField.vue_vue_type_script_setup_true_lang-BNl6yMKg.js} +2 -2
  56. package/dist/{app-CYjBbA_4.js → app-CgspuYbj.js} +227 -227
  57. package/dist/app.js +1 -1
  58. package/dist/{business-B2SfzRDs.js → business-BEHG0xwq.js} +1 -1
  59. package/dist/{campaign-CpQjVRLb.js → campaign-B91enHl9.js} +10 -10
  60. package/dist/{campaign-DsZVOlpO.js → campaign-wCeJT4Go.js} +1 -1
  61. package/dist/{campaign.enum-CUrE4_NH.js → campaign.enum-BZ8kG7OY.js} +1 -1
  62. package/dist/{campaign.fn-WPHSaV98.js → campaign.fn-DaJ7DjV1.js} +131 -131
  63. package/dist/{collectible.enum-BBE8WrYO.js → collectible.enum-B8AT4OnI.js} +1 -1
  64. package/dist/{duplicateCampaign-BUGw2sf1.js → duplicateCampaign-PBh9HO6A.js} +2 -2
  65. package/dist/{effect-D4ONfQoQ.js → effect-B-xPzZdY.js} +1 -1
  66. package/dist/{email-addresses-BuZiD6UO.js → email-addresses-CsNLr3Mu.js} +2 -2
  67. package/dist/{export-Css_Pqj-.js → export-DnplodbX.js} +3 -3
  68. package/dist/{helper-CZfQKkv5.js → helper-D0sBffDY.js} +1 -1
  69. package/dist/{index-BCzQpGUZ.js → index-BDadgm7Y.js} +3 -3
  70. package/dist/{index-87QXVsV-.js → index-BbmVivCa.js} +3 -3
  71. package/dist/{index-3T8aqJmS.js → index-Bru3XmWB.js} +5 -5
  72. package/dist/{index-MJK4pjIp.js → index-C5v_DbGz.js} +4 -4
  73. package/dist/{index-BJPEIJ9Q.js → index-C72oc0Xv.js} +6 -6
  74. package/dist/{index-DjHvO9Tb.js → index-CJh0Zkfc.js} +3 -3
  75. package/dist/{index-B5FUen0h.js → index-CmMI0-_q.js} +1 -1
  76. package/dist/{index-Bkc0ov6S.js → index-DHsovF6L.js} +1 -1
  77. package/dist/{index-DsJwHWYF.js → index-DP8m8rzG.js} +1 -1
  78. package/dist/{index-wl8_bJLh.js → index-JoFYzdRp.js} +1 -1
  79. package/dist/{index-DK2Ciib6.js → index-Qe0gnFLE.js} +2 -2
  80. package/dist/{index-BfGNdgTX.js → index-g5gyg0wL.js} +2 -2
  81. package/dist/{index-DrJOutcM.js → index-l6FXImMh.js} +1 -1
  82. package/dist/{index-D-M_i6Mn.js → index-msTMxVP0.js} +1 -1
  83. package/dist/{index.esm2017-CM-jNysx.js → index.esm2017-Be5qqnN6.js} +1 -1
  84. package/dist/{loading-CXYKpSBl.js → loading-AClqtOVi.js} +1 -1
  85. package/dist/{lodash-DKWJqSEk.js → lodash-BT95FQYI.js} +1 -1
  86. package/dist/{membership-BDi5RNlV.js → membership-CoVjI5Vj.js} +3 -3
  87. package/dist/{money-CGM2GRnp.js → money-CZ_x3JRz.js} +1 -1
  88. package/dist/{number-DGznpJcf.js → number-D1koBRU3.js} +1 -1
  89. package/dist/{objectid-dfqc-m2y.js → objectid-v7ELMiH1.js} +9 -9
  90. package/dist/{plugins-BphKx8yz.js → plugins-Bf7utN6V.js} +3 -3
  91. package/dist/{reward-BxfsoKsP.js → reward-DkGkOUVT.js} +1 -1
  92. package/dist/{rule-Bdwoo4oE.js → rule-Bi65on8k.js} +3 -3
  93. package/dist/{template-BcbeqGkQ.js → template-DLCPQvHV.js} +6 -6
  94. package/dist/{trigger-DhYSpO0F.js → trigger-fi5pNEMx.js} +5 -5
  95. package/dist/{useMarketingMaterialActions-DpD2R5LH.js → useMarketingMaterialActions-DrDjejGD.js} +3 -3
  96. package/dist/{usePagination-9T8RlODO.js → usePagination-Bd-Rob5a.js} +1 -1
  97. package/dist/{user-DUZG4AEt.js → user-DfzKY2yk.js} +1 -1
  98. package/dist/{vue-i18n-B36YK77u.js → vue-i18n-D0_znkIz.js} +246 -246
  99. package/dist/{xlsx-7bg82jL7.js → xlsx-yw3GKPTS.js} +584 -584
  100. package/dist/{zod-BoDvtk8b.js → zod-TK3xWITf.js} +1 -1
  101. package/package.json +1 -1
  102. package/dist/ReviewFacebookCallback-KUQE5QOQ.js +0 -243
  103. package/dist/ReviewGoogleCallback-CZdfbE37.js +0 -208
@@ -1,37 +1,37 @@
1
1
  import { defineComponent as be, computed as H, ref as G, resolveComponent as V, openBlock as u, createElementBlock as A, Fragment as q, createElementVNode as n, unref as t, createBlock as U, createCommentVNode as le, createVNode as _, renderList as ie, withCtx as xe, createTextVNode as Me, toDisplayString as $, withDirectives as Re, vShow as Le, watch as ze, onBeforeMount as at, h as K, onMounted as je, isRef as rt, normalizeClass as st } from "vue";
2
2
  import { h as C } from "./moment-D7p2TMB-.js";
3
3
  import { useDialog as Ve, components as ve } from "@feedmepos/ui-library";
4
- import { e as it, M as lt } from "./email-addresses-BuZiD6UO.js";
5
- import { w as ct } from "./xlsx-7bg82jL7.js";
6
- import "./index-DrJOutcM.js";
7
- import "./index-BCzQpGUZ.js";
8
- import { u as Ie, C as Be, s as dt } from "./membership-BDi5RNlV.js";
9
- import { c as mt } from "./index-BfGNdgTX.js";
10
- import { _ as Ye } from "./lodash-DKWJqSEk.js";
4
+ import { e as it, M as lt } from "./email-addresses-CsNLr3Mu.js";
5
+ import { w as ct } from "./xlsx-yw3GKPTS.js";
6
+ import "./index-l6FXImMh.js";
7
+ import "./index-BDadgm7Y.js";
8
+ import { u as Ie, C as Be, s as dt } from "./membership-CoVjI5Vj.js";
9
+ import { c as mt } from "./index-g5gyg0wL.js";
10
+ import { _ as Ye } from "./lodash-BT95FQYI.js";
11
11
  import { D as ut } from "./type_drinks-D6jnpvwV.js";
12
- import { d as pt, e as ft, f as bt, g as yt, h as gt } from "./index-MJK4pjIp.js";
12
+ import { d as pt, e as ft, f as bt, g as yt, h as gt } from "./index-C5v_DbGz.js";
13
13
  import { c as Pe, f as Oe } from "./string-Gcy5IM_H.js";
14
- import { u as qe } from "./loading-CXYKpSBl.js";
15
- import { p as Ue } from "./plugins-BphKx8yz.js";
16
- import { d as Ee, a as vt, c as xt } from "./campaign-CpQjVRLb.js";
17
- import { u as Ke } from "./business-B2SfzRDs.js";
14
+ import { u as qe } from "./loading-AClqtOVi.js";
15
+ import { p as Ue } from "./plugins-Bf7utN6V.js";
16
+ import { d as Ee, a as vt, c as xt } from "./campaign-B91enHl9.js";
17
+ import { u as Ke } from "./business-BEHG0xwq.js";
18
18
  import { defineStore as ht } from "pinia";
19
- import { f as ee } from "./number-DGznpJcf.js";
20
- import "./index-3T8aqJmS.js";
21
- import "./index-87QXVsV-.js";
22
- import "./index-DjHvO9Tb.js";
19
+ import { f as ee } from "./number-D1koBRU3.js";
20
+ import "./index-Bru3XmWB.js";
21
+ import "./index-BbmVivCa.js";
22
+ import "./index-CJh0Zkfc.js";
23
23
  import { s as _t } from "./index-CuvNtC_M.js";
24
- import { u as Ge, _ as He } from "./usePagination-9T8RlODO.js";
25
- import { B as St, e as Ct } from "./export-Css_Pqj-.js";
26
- import { m as Te } from "./index-DsJwHWYF.js";
24
+ import { u as Ge, _ as He } from "./usePagination-Bd-Rob5a.js";
25
+ import { B as St, e as Ct } from "./export-DnplodbX.js";
26
+ import { m as Te } from "./index-DP8m8rzG.js";
27
27
  import { o as he } from "./objectId-dwaoBfJX.js";
28
- import { F as Ae } from "./collectible.enum-BBE8WrYO.js";
28
+ import { F as Ae } from "./collectible.enum-B8AT4OnI.js";
29
29
  import { useRouter as We } from "vue-router";
30
- import { m as fe } from "./index-B5FUen0h.js";
31
- import { t as wt } from "./index-wl8_bJLh.js";
32
- import { R as Je } from "./app-CYjBbA_4.js";
33
- import { t as Ft } from "./money-CGM2GRnp.js";
34
- import { g as Mt, a as Tt, b as kt } from "./user-DUZG4AEt.js";
30
+ import { m as fe } from "./index-CmMI0-_q.js";
31
+ import { t as wt } from "./index-JoFYzdRp.js";
32
+ import { R as Je } from "./app-CgspuYbj.js";
33
+ import { t as Ft } from "./money-CZ_x3JRz.js";
34
+ import { g as Mt, a as Tt, b as kt } from "./user-DfzKY2yk.js";
35
35
  const At = { class: "flex flex-col" }, Et = { key: 1 }, Vt = { class: "flex flex-nowrap gap-4 items-center my-[-4px]" }, It = { class: "flex flex-nowrap gap-8 items-center pt-24 w-full" }, $t = /* @__PURE__ */ be({
36
36
  __name: "MemberStatsDialog",
37
37
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as p, resolveComponent as _, openBlock as a, createElementBlock as f, createVNode as v, unref as o, createBlock as u, createCommentVNode as b } from "vue";
2
- import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-DR2M_zjD.js";
2
+ import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-Ca9iWfJc.js";
3
3
  import { useRouter as y } from "vue-router";
4
4
  const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
5
5
  __name: "MemberTransactions",
@@ -3,19 +3,19 @@ var Lg = (i, n, e) => n in i ? Vg(i, n, { enumerable: !0, configurable: !0, writ
3
3
  var h = (i, n, e) => Lg(i, typeof n != "symbol" ? n + "" : n, e);
4
4
  import * as bl from "vue";
5
5
  import { defineComponent as ni, shallowRef as Dg, openBlock as ue, createElementBlock as Ze, normalizeStyle as Ng, ref as ye, resolveComponent as Pe, createBlock as rt, unref as M, isRef as da, withCtx as lt, createVNode as Ee, createElementVNode as W, createCommentVNode as jn, withDirectives as vl, vShow as yl, mergeModels as kl, useModel as Fg, watch as Ns, onMounted as fa, markRaw as $g, onBeforeUnmount as Ug, resolveDynamicComponent as zg, version as Hg, computed as Xe, toDisplayString as de, Fragment as Co, renderList as jh, createTextVNode as El, normalizeClass as Wg } from "vue";
6
- import { p as qg } from "./plugins-BphKx8yz.js";
7
- import { J as jg } from "./index-MJK4pjIp.js";
8
- import "./index-BCzQpGUZ.js";
6
+ import { p as qg } from "./plugins-Bf7utN6V.js";
7
+ import { J as jg } from "./index-C5v_DbGz.js";
8
+ import "./index-BDadgm7Y.js";
9
9
  import { _ as Kg } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { _ as Gg, S as Zg } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-B9JJ2xSz.js";
11
- import { u as ma } from "./vue-i18n-B36YK77u.js";
10
+ import { _ as Gg, S as Zg } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CUYv3gXV.js";
11
+ import { u as ma } from "./vue-i18n-D0_znkIz.js";
12
12
  import { c as Jg } from "./object-BYyQ0PZp.js";
13
13
  import { useCoreStore as Qg } from "@feedmepos/mf-common";
14
- import { u as Yg } from "./membership-BDi5RNlV.js";
15
- import { u as Xg } from "./loading-CXYKpSBl.js";
16
- import { S as Ms } from "./index-BfGNdgTX.js";
14
+ import { u as Yg } from "./membership-CoVjI5Vj.js";
15
+ import { u as Xg } from "./loading-AClqtOVi.js";
16
+ import { S as Ms } from "./index-g5gyg0wL.js";
17
17
  import { useSnackbar as ep } from "@feedmepos/ui-library";
18
- import { m as tp } from "./index-DsJwHWYF.js";
18
+ import { m as tp } from "./index-DP8m8rzG.js";
19
19
  const np = {
20
20
  "user.name": {
21
21
  name: "User name"
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as W, ref as v, computed as G, h as m, onMounted as J, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as k, createVNode as c, unref as t, createElementVNode as i, withCtx as F, renderList as Q, createBlock as I, resolveDynamicComponent as X, toDisplayString as g } from "vue";
2
2
  import { _ as Y } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./loading-CXYKpSBl.js";
4
- import { a as ee, b as D, c as K } from "./campaign-CpQjVRLb.js";
5
- import { c as oe, p as te } from "./duplicateCampaign-BUGw2sf1.js";
6
- import { c as ne, p as ae } from "./plugins-BphKx8yz.js";
7
- import { u as ie } from "./business-B2SfzRDs.js";
8
- import { u as se, c as y } from "./campaign-DsZVOlpO.js";
3
+ import { u as Z } from "./loading-AClqtOVi.js";
4
+ import { a as ee, b as D, c as K } from "./campaign-B91enHl9.js";
5
+ import { c as oe, p as te } from "./duplicateCampaign-PBh9HO6A.js";
6
+ import { c as ne, p as ae } from "./plugins-Bf7utN6V.js";
7
+ import { u as ie } from "./business-BEHG0xwq.js";
8
+ import { u as se, c as y } from "./campaign-wCeJT4Go.js";
9
9
  import { useDialog as re, components as _ } from "@feedmepos/ui-library";
10
10
  import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
- import { u as le } from "./template-BcbeqGkQ.js";
12
- import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CQJ6pNxV.js";
11
+ import { u as le } from "./template-DLCPQvHV.js";
12
+ import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BVYLFX8W.js";
13
13
  import { s as de } from "./index-CuvNtC_M.js";
14
- import { u as pe } from "./vue-i18n-B36YK77u.js";
15
- import { _ as ue } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DsSarYWA.js";
14
+ import { u as pe } from "./vue-i18n-D0_znkIz.js";
15
+ import { _ as ue } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-uBG9AonP.js";
16
16
  const ge = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, we = { class: "space-y-4" }, Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex items-center gap-8" }, Se = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = /* @__PURE__ */ W({
17
17
  __name: "Mission",
18
18
  setup(Ie) {
@@ -1,28 +1,28 @@
1
1
  import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
2
2
  import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-B36YK77u.js";
4
- import { u as ue } from "./loading-CXYKpSBl.js";
5
- import { p as K } from "./plugins-BphKx8yz.js";
3
+ import { u as Z } from "./vue-i18n-D0_znkIz.js";
4
+ import { u as ue } from "./loading-AClqtOVi.js";
5
+ import { p as K } from "./plugins-Bf7utN6V.js";
6
6
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
7
- import { Z as N } from "./zod-BoDvtk8b.js";
7
+ import { Z as N } from "./zod-TK3xWITf.js";
8
8
  import { u as W } from "./app-wDQR6dpb.js";
9
- import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-BglByPmS.js";
10
- import { u as me } from "./reward-BxfsoKsP.js";
11
- import { b as ye, c as be } from "./index-3T8aqJmS.js";
12
- import { m as le, c as se } from "./index-MJK4pjIp.js";
13
- import "./index-87QXVsV-.js";
14
- import "./index-BCzQpGUZ.js";
15
- import "./index-DjHvO9Tb.js";
16
- import { C as fe } from "./membership-BDi5RNlV.js";
17
- import { t as ee } from "./helper-CZfQKkv5.js";
9
+ import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CdP2AitR.js";
10
+ import { u as me } from "./reward-DkGkOUVT.js";
11
+ import { b as ye, c as be } from "./index-Bru3XmWB.js";
12
+ import { m as le, c as se } from "./index-C5v_DbGz.js";
13
+ import "./index-BbmVivCa.js";
14
+ import "./index-BDadgm7Y.js";
15
+ import "./index-CJh0Zkfc.js";
16
+ import { C as fe } from "./membership-CoVjI5Vj.js";
17
+ import { t as ee } from "./helper-D0sBffDY.js";
18
18
  import { c as H } from "./object-BYyQ0PZp.js";
19
19
  import { useDialog as xe, components as oe } from "@feedmepos/ui-library";
20
- import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang--TG7NPaw.js";
21
- import { a as Re, _ as Se, b as Fe } from "./trigger-DhYSpO0F.js";
22
- import { O as ke } from "./objectid-dfqc-m2y.js";
20
+ import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BNl6yMKg.js";
21
+ import { a as Re, _ as Se, b as Fe } from "./trigger-fi5pNEMx.js";
22
+ import { O as ke } from "./objectid-v7ELMiH1.js";
23
23
  import { c as $e } from "./string-Gcy5IM_H.js";
24
- import { r as pe } from "./index-Bkc0ov6S.js";
25
- import { u as Pe } from "./business-B2SfzRDs.js";
24
+ import { r as pe } from "./index-DHsovF6L.js";
25
+ import { u as Pe } from "./business-BEHG0xwq.js";
26
26
  const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:!block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
27
27
  __name: "ReferralRewadGroupCard",
28
28
  props: {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as H, ref as I, computed as q, h as x, onMounted as z, resolveComponent as m, openBlock as d, createElementBlock as v, Fragment as k, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as u, renderList as G, createBlock as F, resolveDynamicComponent as J } from "vue";
2
2
  import { _ as Q } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as W, components as V } from "@feedmepos/ui-library";
4
- import { p as X } from "./plugins-BphKx8yz.js";
5
- import { u as Y } from "./loading-CXYKpSBl.js";
6
- import { u as Z } from "./business-B2SfzRDs.js";
7
- import { u as ee, c as f } from "./campaign-DsZVOlpO.js";
8
- import { a as te, b as $, c as N } from "./campaign-CpQjVRLb.js";
9
- import { c as oe, p as ae } from "./duplicateCampaign-BUGw2sf1.js";
4
+ import { p as X } from "./plugins-Bf7utN6V.js";
5
+ import { u as Y } from "./loading-AClqtOVi.js";
6
+ import { u as Z } from "./business-BEHG0xwq.js";
7
+ import { u as ee, c as f } from "./campaign-wCeJT4Go.js";
8
+ import { a as te, b as $, c as N } from "./campaign-B91enHl9.js";
9
+ import { c as oe, p as ae } from "./duplicateCampaign-PBh9HO6A.js";
10
10
  import { _ as ne } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
- import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CQJ6pNxV.js";
12
- import { u as se } from "./template-BcbeqGkQ.js";
13
- import { u as re } from "./vue-i18n-B36YK77u.js";
11
+ import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BVYLFX8W.js";
12
+ import { u as se } from "./template-DLCPQvHV.js";
13
+ import { u as re } from "./vue-i18n-D0_znkIz.js";
14
14
  const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "flex items-center gap-8" }, Ce = { class: "flex flex-col gap-16 text-center" }, we = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ H({
15
15
  __name: "Point",
16
16
  setup(xe) {
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as Q, ref as w, resolveComponent as d, openBlock as f, createBlock as S, unref as a, isRef as te, withCtx as k, createElementVNode as i, createVNode as c, computed as ne, h as I, onMounted as ae, createElementBlock as L, Fragment as B, renderList as se, resolveDynamicComponent as ie, toDisplayString as h } from "vue";
2
2
  import { _ as re } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as le, components as N } from "@feedmepos/ui-library";
4
- import { p as $ } from "./plugins-BphKx8yz.js";
5
- import { u as ce } from "./loading-CXYKpSBl.js";
6
- import { u as me } from "./business-B2SfzRDs.js";
7
- import { c as y, u as ue } from "./campaign-DsZVOlpO.js";
8
- import { u as de } from "./vue-i18n-B36YK77u.js";
9
- import { g as j, a as pe, b as q } from "./campaign-CpQjVRLb.js";
10
- import { c as fe, p as ye } from "./duplicateCampaign-BUGw2sf1.js";
11
- import { e as K } from "./effect-D4ONfQoQ.js";
4
+ import { p as $ } from "./plugins-Bf7utN6V.js";
5
+ import { u as ce } from "./loading-AClqtOVi.js";
6
+ import { u as me } from "./business-BEHG0xwq.js";
7
+ import { c as y, u as ue } from "./campaign-wCeJT4Go.js";
8
+ import { u as de } from "./vue-i18n-D0_znkIz.js";
9
+ import { g as j, a as pe, b as q } from "./campaign-B91enHl9.js";
10
+ import { c as fe, p as ye } from "./duplicateCampaign-PBh9HO6A.js";
11
+ import { e as K } from "./effect-B-xPzZdY.js";
12
12
  import { c as U } from "./string-Gcy5IM_H.js";
13
- import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CQJ6pNxV.js";
14
- import { u as he } from "./template-BcbeqGkQ.js";
13
+ import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BVYLFX8W.js";
14
+ import { u as he } from "./template-DLCPQvHV.js";
15
15
  import { _ as E } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
16
16
  const _e = { class: "space-y-8" }, be = /* @__PURE__ */ Q({
17
17
  __name: "QueueSheet",
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as L, Fragment as O, createVNode as m, unref as o, createElementVNode as g } from "vue";
2
- import { u as q, _ as G } from "./usePagination-9T8RlODO.js";
2
+ import { u as q, _ as G } from "./usePagination-Bd-Rob5a.js";
3
3
  import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
4
4
  import { c as u } from "./string-Gcy5IM_H.js";
5
- import { c as Y } from "./plugins-BphKx8yz.js";
5
+ import { c as Y } from "./plugins-Bf7utN6V.js";
6
6
  import { useDialog as j, components as y } from "@feedmepos/ui-library";
7
- import "./index-3T8aqJmS.js";
8
- import { L as c, c as d } from "./index-MJK4pjIp.js";
9
- import "./index-87QXVsV-.js";
10
- import "./index-BCzQpGUZ.js";
11
- import "./index-DjHvO9Tb.js";
7
+ import "./index-Bru3XmWB.js";
8
+ import { L as c, c as d } from "./index-C5v_DbGz.js";
9
+ import "./index-BbmVivCa.js";
10
+ import "./index-BDadgm7Y.js";
11
+ import "./index-CJh0Zkfc.js";
12
12
  import { h as b } from "./moment-D7p2TMB-.js";
13
- import { u as W } from "./vue-i18n-B36YK77u.js";
14
- import { u as H, v as K, w as Q } from "./index.esm2017-CM-jNysx.js";
13
+ import { u as W } from "./vue-i18n-D0_znkIz.js";
14
+ import { u as H, v as K, w as Q } from "./index.esm2017-Be5qqnN6.js";
15
15
  import { useRoute as $ } from "vue-router";
16
- import { g as J, S as Z, u as X } from "./index-BfGNdgTX.js";
16
+ import { g as J, S as Z, u as X } from "./index-g5gyg0wL.js";
17
17
  import { o as ee } from "./objectId-dwaoBfJX.js";
18
18
  const te = () => {
19
19
  if (!Z.getBusinessId()) throw new Error("Invalid business ID");
@@ -2,19 +2,19 @@ var q = Object.defineProperty;
2
2
  var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
3
3
  var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
4
4
  import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
5
- import { u as oe, _ as ae } from "./usePagination-9T8RlODO.js";
6
- import { g as A } from "./user-DUZG4AEt.js";
5
+ import { u as oe, _ as ae } from "./usePagination-Bd-Rob5a.js";
6
+ import { g as A } from "./user-DfzKY2yk.js";
7
7
  import { components as R } from "@feedmepos/ui-library";
8
- import "./index-BCzQpGUZ.js";
9
- import { u as j } from "./vue-i18n-B36YK77u.js";
10
- import { u as L } from "./loading-CXYKpSBl.js";
8
+ import "./index-BDadgm7Y.js";
9
+ import { u as j } from "./vue-i18n-D0_znkIz.js";
10
+ import { u as L } from "./loading-AClqtOVi.js";
11
11
  import { useCoreStore as se } from "@feedmepos/mf-common";
12
- import { r as v } from "./index-Bkc0ov6S.js";
12
+ import { r as v } from "./index-DHsovF6L.js";
13
13
  import { c as ie, a as ne } from "./object-BYyQ0PZp.js";
14
- import { u as ce } from "./membership-BDi5RNlV.js";
14
+ import { u as ce } from "./membership-CoVjI5Vj.js";
15
15
  import { c as le } from "./string-Gcy5IM_H.js";
16
- import { c as de } from "./plugins-BphKx8yz.js";
17
- import { u as V, w as me } from "./xlsx-7bg82jL7.js";
16
+ import { c as de } from "./plugins-Bf7utN6V.js";
17
+ import { u as V, w as me } from "./xlsx-yw3GKPTS.js";
18
18
  import { e as f } from "./index-vh86FiIQ.js";
19
19
  import { h as ue } from "./moment-D7p2TMB-.js";
20
20
  import { o as pe } from "./objectId-dwaoBfJX.js";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as E, ref as D, computed as w, resolveComponent as Y, openBlock as s, createBlock as I, unref as e, withCtx as U, createVNode as v, normalizeClass as V, createElementVNode as t, toDisplayString as d, createElementBlock as u, Fragment as M, renderList as R, useModel as z, onMounted as L, isRef as Q, createCommentVNode as S, watch as J, renderSlot as T, createTextVNode as q, Teleport as se, withModifiers as te, createSlots as re, onUnmounted as ie, normalizeStyle as K, useSlots as ce, createStaticVNode as de, KeepAlive as ue } from "vue";
2
- import { u as O } from "./vue-i18n-B36YK77u.js";
2
+ import { u as O } from "./vue-i18n-D0_znkIz.js";
3
3
  import { h as N } from "./moment-D7p2TMB-.js";
4
4
  import { _ as me } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
5
5
  import { _ as Z } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
6
- import { u as oe } from "./business-B2SfzRDs.js";
6
+ import { u as oe } from "./business-BEHG0xwq.js";
7
7
  import { components as k, useSnackbar as ve } from "@feedmepos/ui-library";
8
- import { r as G } from "./index-BJPEIJ9Q.js";
9
- import { u as ge } from "./loading-CXYKpSBl.js";
8
+ import { r as G } from "./index-C72oc0Xv.js";
9
+ import { u as ge } from "./loading-AClqtOVi.js";
10
10
  const fe = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, X = /* @__PURE__ */ E({
11
11
  __name: "SortChip",
12
12
  props: {
@@ -0,0 +1,248 @@
1
+ import { defineComponent as M, computed as S, openBlock as l, createElementBlock as f, normalizeClass as N, createElementVNode as g, createBlock as T, unref as e, toDisplayString as _, createCommentVNode as $, createVNode as k, onMounted as B, ref as I, Fragment as C, renderList as U, resolveComponent as z, isRef as V } from "vue";
2
+ import { u as R } from "./vue-i18n-D0_znkIz.js";
3
+ import { components as w } from "@feedmepos/ui-library";
4
+ import { r as L } from "./index-C72oc0Xv.js";
5
+ import { u as A } from "./business-BEHG0xwq.js";
6
+ import { _ as H } from "./LocationPicker.vue_vue_type_script_setup_true_lang-UMsLQmTo.js";
7
+ import { R as D } from "./app-CgspuYbj.js";
8
+ import { useRouter as O } from "vue-router";
9
+ const W = ["src"], q = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, G = {
10
+ key: 2,
11
+ class: "fm-typo-en-body-sm-400 text-fm-color-primary-500 shrink-0"
12
+ }, J = /* @__PURE__ */ M({
13
+ __name: "FacebookPageConfig",
14
+ props: {
15
+ page: {},
16
+ expanded: { type: Boolean },
17
+ availableLocations: {}
18
+ },
19
+ emits: ["toggleExpand", "toggleLocation"],
20
+ setup(s, { emit: n }) {
21
+ const P = s, p = n, { t: i } = R(), v = S(
22
+ () => P.page.locations.map((x) => x._id)
23
+ );
24
+ return (x, b) => (l(), f("div", {
25
+ class: N([
26
+ "rounded-lg border overflow-hidden transition-colors",
27
+ s.expanded ? "border-fm-color-primary-500" : "border-fm-color-neutral-gray-200"
28
+ ])
29
+ }, [
30
+ g("button", {
31
+ class: "w-full flex items-center gap-12 p-16 bg-white text-left hover:bg-fm-color-neutral-gray-50 transition-colors",
32
+ onClick: b[0] || (b[0] = (c) => p("toggleExpand"))
33
+ }, [
34
+ s.page.pageProfileImageUrl ? (l(), f("img", {
35
+ key: 0,
36
+ src: s.page.pageProfileImageUrl,
37
+ class: "w-32 h-32 rounded-full shrink-0 object-cover"
38
+ }, null, 8, W)) : (l(), T(e(w).FmIcon, {
39
+ key: 1,
40
+ name: "thumb_up",
41
+ class: "text-fm-color-neutral-gray-400 shrink-0"
42
+ })),
43
+ g("span", q, _(s.page.pageName), 1),
44
+ s.page.locations.length > 0 ? (l(), f("span", G, _(e(i)("connect.review.locationsSelected", s.page.locations.length)), 1)) : $("", !0),
45
+ k(e(w).FmIcon, {
46
+ name: s.expanded ? "expand_less" : "expand_more",
47
+ class: "text-fm-color-neutral-gray-400 shrink-0"
48
+ }, null, 8, ["name"])
49
+ ]),
50
+ s.expanded ? (l(), T(H, {
51
+ key: 0,
52
+ locations: s.availableLocations,
53
+ "selected-ids": e(v),
54
+ onToggle: b[1] || (b[1] = (c) => p("toggleLocation", c))
55
+ }, null, 8, ["locations", "selected-ids"])) : $("", !0)
56
+ ], 2));
57
+ }
58
+ }), K = { class: "flex flex-col gap-8" }, Q = /* @__PURE__ */ M({
59
+ __name: "FacebookPageLocationMapping",
60
+ props: {
61
+ pages: {}
62
+ },
63
+ emits: ["update:pages"],
64
+ setup(s, { emit: n }) {
65
+ const P = s, p = A();
66
+ B(() => p.readLocations());
67
+ const i = n, v = I(null), x = S(() => {
68
+ const r = /* @__PURE__ */ new Set();
69
+ for (const m of P.pages)
70
+ m.locations.forEach((a) => r.add(a._id));
71
+ return r;
72
+ });
73
+ function b(r) {
74
+ const m = new Set(r.locations.map((a) => a._id));
75
+ return p.locations.filter((a) => {
76
+ const y = a._id.toString();
77
+ return !x.value.has(y) || m.has(y);
78
+ });
79
+ }
80
+ function c(r, m) {
81
+ const a = m._id.toString(), y = P.pages.map((o) => {
82
+ if (o.facebookPageId !== r) return o;
83
+ const t = o.locations.some(
84
+ (d) => d._id === a
85
+ );
86
+ return {
87
+ ...o,
88
+ locations: t ? o.locations.filter((d) => d._id !== a) : [
89
+ ...o.locations,
90
+ {
91
+ _id: a,
92
+ name: m.name
93
+ }
94
+ ]
95
+ };
96
+ });
97
+ i("update:pages", y);
98
+ }
99
+ function F(r) {
100
+ v.value = v.value === r ? null : r;
101
+ }
102
+ return (r, m) => (l(), f("div", K, [
103
+ (l(!0), f(C, null, U(s.pages, (a) => (l(), T(J, {
104
+ key: a.facebookPageId,
105
+ page: a,
106
+ expanded: e(v) === a.facebookPageId,
107
+ "available-locations": b(a),
108
+ onToggleExpand: (y) => F(a.facebookPageId),
109
+ onToggleLocation: (y) => c(a.facebookPageId, y)
110
+ }, null, 8, ["page", "expanded", "available-locations", "onToggleExpand", "onToggleLocation"]))), 128))
111
+ ]));
112
+ }
113
+ }), X = { class: "flex flex-col min-h-full gap-16 p-24" }, Y = {
114
+ key: 0,
115
+ class: "flex flex-col items-center justify-center flex-1 gap-16"
116
+ }, Z = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ee = {
117
+ key: 1,
118
+ class: "flex flex-col items-center justify-center flex-1 gap-16"
119
+ }, oe = { class: "fm-typo-en-body-lg-600" }, te = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ne = {
120
+ key: 2,
121
+ class: "flex flex-col items-center justify-center flex-1 gap-16"
122
+ }, ae = { class: "fm-typo-en-body-lg-600" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ce = { class: "fm-typo-en-body-lg-600" }, le = { class: "flex gap-8 justify-end mt-auto pt-8" }, ve = /* @__PURE__ */ M({
123
+ __name: "ReviewFacebookCallback",
124
+ setup(s) {
125
+ const { t: n } = R(), P = O();
126
+ function p() {
127
+ return P.replace({ name: D["$connect-REVIEW"] });
128
+ }
129
+ const i = I([]), v = I(!1), x = I(!1), b = I(!1), c = I(null), F = S(
130
+ () => i.value.some((o) => o.locations.length > 0)
131
+ );
132
+ function r(o, t) {
133
+ const d = new Map(
134
+ t.map((u) => [u.facebookPageId, u])
135
+ );
136
+ return o.map((u) => {
137
+ var h;
138
+ return {
139
+ ...u,
140
+ locations: ((h = d.get(u.facebookPageId)) == null ? void 0 : h.locations) ?? []
141
+ };
142
+ });
143
+ }
144
+ function m(o, t) {
145
+ return o instanceof Error ? o.message : t;
146
+ }
147
+ async function a() {
148
+ var u;
149
+ const o = window.location.hash;
150
+ if (!o) {
151
+ c.value = n("connect.review.noToken");
152
+ return;
153
+ }
154
+ const d = new URLSearchParams(o.slice(1)).get("access_token");
155
+ if (!d) {
156
+ c.value = n("connect.review.noToken");
157
+ return;
158
+ }
159
+ v.value = !0;
160
+ try {
161
+ const h = await L.getSource(), j = ((u = h == null ? void 0 : h.facebook) == null ? void 0 : u.pages) ?? [], E = await L.connectFacebook(d);
162
+ i.value = r((E == null ? void 0 : E.pages) ?? [], j), i.value.length === 0 && (c.value = n("connect.review.facebook.noPages"));
163
+ } catch (h) {
164
+ c.value = m(h, n("connect.review.facebook.failed"));
165
+ } finally {
166
+ v.value = !1;
167
+ }
168
+ }
169
+ async function y() {
170
+ const o = i.value.filter((t) => t.locations.length > 0).map((t) => ({
171
+ facebookPageId: t.facebookPageId,
172
+ locationIds: t.locations.map((d) => d._id)
173
+ }));
174
+ if (o.length === 0) {
175
+ c.value = n("connect.review.noMappings");
176
+ return;
177
+ }
178
+ x.value = !0;
179
+ try {
180
+ await L.updateFacebookPages(o), b.value = !0, setTimeout(p, 2e3);
181
+ } catch (t) {
182
+ c.value = m(t, n("connect.review.facebook.failed"));
183
+ } finally {
184
+ x.value = !1;
185
+ }
186
+ }
187
+ return B(a), (o, t) => {
188
+ const d = z("FmPageHead");
189
+ return l(), f(C, null, [
190
+ k(d, {
191
+ title: e(n)("connect.navigation.review")
192
+ }, null, 8, ["title"]),
193
+ g("div", X, [
194
+ e(v) ? (l(), f("div", Y, [
195
+ k(e(w).FmIcon, {
196
+ name: "sync",
197
+ size: "xl",
198
+ class: "animate-spin text-fm-color-neutral-gray-400"
199
+ }),
200
+ g("p", Z, _(e(n)("connect.review.facebook.fetching")), 1)
201
+ ])) : e(b) ? (l(), f("div", ee, [
202
+ k(e(w).FmIcon, {
203
+ name: "check_circle",
204
+ size: "xl",
205
+ class: "text-fm-color-typo-success"
206
+ }),
207
+ g("p", oe, _(e(n)("connect.review.facebook.success")), 1),
208
+ g("p", te, _(e(n)("connect.review.redirecting")), 1)
209
+ ])) : e(c) ? (l(), f("div", ne, [
210
+ k(e(w).FmIcon, {
211
+ name: "error",
212
+ size: "xl",
213
+ class: "text-fm-color-system-error-500"
214
+ }),
215
+ g("p", ae, _(e(n)("connect.review.errorTitle")), 1),
216
+ g("p", se, _(e(c)), 1),
217
+ k(e(w).FmButton, {
218
+ label: e(n)("connect.review.goBack"),
219
+ onClick: t[0] || (t[0] = (u) => p())
220
+ }, null, 8, ["label"])
221
+ ])) : e(i).length > 0 ? (l(), f(C, { key: 3 }, [
222
+ g("p", ce, _(e(n)("connect.review.facebook.selectPage")), 1),
223
+ k(Q, {
224
+ pages: e(i),
225
+ "onUpdate:pages": t[1] || (t[1] = (u) => V(i) ? i.value = u : null)
226
+ }, null, 8, ["pages"]),
227
+ g("div", le, [
228
+ k(e(w).FmButton, {
229
+ variant: "outlined",
230
+ label: e(n)("connect.review.cancel"),
231
+ onClick: t[2] || (t[2] = (u) => p())
232
+ }, null, 8, ["label"]),
233
+ k(e(w).FmButton, {
234
+ label: e(n)("connect.review.connect"),
235
+ disabled: !e(F),
236
+ loading: e(x),
237
+ onClick: y
238
+ }, null, 8, ["label", "disabled", "loading"])
239
+ ])
240
+ ], 64)) : $("", !0)
241
+ ])
242
+ ], 64);
243
+ };
244
+ }
245
+ });
246
+ export {
247
+ ve as default
248
+ };