@feedmepos/mf-connect 0.1.118-prod → 0.1.119-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 (149) hide show
  1. package/README.md +12 -8
  2. package/dist/{App-BHcTqLff.js → App-z-u6skb5.js} +349 -337
  3. package/dist/AuditLogs-J0UJ3HJW.js +2016 -0
  4. package/dist/{Bin-DWhXJmHo.js → Bin-Dh9RAgYi.js} +8 -8
  5. package/dist/{Broadcast-Ct1DL8Pd.js → Broadcast-Dg6azPS8.js} +22 -21
  6. package/dist/{CampaignAnalytic-BSEKCM-4.js → CampaignAnalytic-CVB4dstO.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DYgBeT23.js} +8 -9
  8. package/dist/{Card-B7DwrAPH.js → Card-CY736Ul0.js} +22 -22
  9. package/dist/{Collections-BJw4JJq_.js → Collections-CdTKWkZZ.js} +197 -185
  10. package/dist/{Credit-BteIGXkp.js → Credit-CUhEKlMI.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CBwgeTXh.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BC4jTtVY.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js → EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js} +30 -30
  14. package/dist/{Experience-C_VQVfJX.js → Experience-CMp09U-6.js} +32 -31
  15. package/dist/{FileSaver.min-CMiQUZQE.js → FileSaver.min-Bq5McdmK.js} +1 -1
  16. package/dist/{Game-BiHMrMBF.js → Game-Dv5NvG-q.js} +19 -18
  17. package/dist/{GiftCardSetup-DtJIm6oI.js → GiftCardSetup-SO2Tk5In.js} +31 -31
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CgG5vHCp.js} +7 -7
  19. package/dist/{Goals-B7VjLMDT.js → Goals-BEwQP4cY.js} +4 -4
  20. package/dist/Grab-npbL7p7S.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js → ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js} +1 -1
  22. package/dist/{Index-D_DIHKZG.js → Index-8F2LOWng.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js → LocationPicker.vue_vue_type_script_setup_true_lang-BwAjki7Y.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DK4C0Y9j.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DOgHeJdK.js → LoyaltyDashboard-rWm0b8cm.js} +15 -15
  26. package/dist/{MainLayout-CfYgoXLS.js → MainLayout-ezbgp2IQ.js} +1 -1
  27. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js → MainLayout.vue_vue_type_script_setup_true_lang-1QY5-U5y.js} +3 -3
  28. package/dist/{Marketing-B6TCrwaR.js → Marketing-DcWF4xVc.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-Bu3a9NGj.js → MarketingMaterialEdit-C1bXj_hU.js} +214 -211
  30. package/dist/{Member-X51KrYXV.js → Member-CgDZqGsV.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dh1_j06F.js} +39 -47
  32. package/dist/{MemberImportHistory-CHd9fx7E.js → MemberImportHistory-DT3QJ5se.js} +7 -7
  33. package/dist/{MemberList-D4L3bSlw.js → MemberList-Bm05jnbk.js} +103 -105
  34. package/dist/{MemberTransactions-CEgjfhnX.js → MemberTransactions-D90tTpdC.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js → MessageInput.vue_vue_type_script_setup_true_lang-jvgjOXXA.js} +12 -12
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CxL-Nh6i.js} +1 -1
  37. package/dist/{Mission-BEVtvY0-.js → Mission-D_l2eJI3.js} +22 -21
  38. package/dist/{Overview-DVoXXZ16.js → Overview-1AYfTeMD.js} +20 -20
  39. package/dist/{Overview-4QRkldza.js → Overview-BOZBnorP.js} +145 -144
  40. package/dist/{Point-BJmebaL9.js → Point-Cqy4XzeG.js} +22 -21
  41. package/dist/{Promotion-DWZZBofu.js → Promotion-9RDNbCgB.js} +137 -131
  42. package/dist/{Queue-DLdsyhCT.js → Queue-D2Eie_np.js} +45 -45
  43. package/dist/{Record-QOD3XELf.js → Record-e4B--FD8.js} +9 -9
  44. package/dist/{Review-CKmhyuqj.js → Review-DcUpSvc-.js} +2 -2
  45. package/dist/ReviewFacebookCallback-BhHdYb4X.js +225 -0
  46. package/dist/{ReviewGoogleCallback-CDriVQPZ.js → ReviewGoogleCallback-JPkamgo2.js} +5 -5
  47. package/dist/Reward-BQJw-R8V.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js → RewardGroup.vue_vue_type_script_setup_true_lang-D_DSQ8q2.js} +13 -13
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js +1923 -0
  50. package/dist/{Segment-URdB0lnl.js → Segment-Cjdqsqqg.js} +303 -306
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-g-CJUZBF.js} +14 -14
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-lbH0b170.js} +4 -4
  53. package/dist/{Setting-BDIHH2Wk.js → Setting-B3HK4mtx.js} +159 -148
  54. package/dist/{SettingAdvertisements-CkJYZnIN.js → SettingAdvertisements-BQFJpdIm.js} +12 -12
  55. package/dist/Settings-DKWkiRuA.js +286 -0
  56. package/dist/{Store-CV0kYncl.js → Store-mp1LyXwr.js} +28 -28
  57. package/dist/{StoreRewards-30kSkAZ_.js → StoreRewards-DiSB6d7_.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BAYKqf-Y.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js +7007 -0
  60. package/dist/{Tier-DiQSC3iv.js → Tier-CxaXh96q.js} +2575 -687
  61. package/dist/{Title-DixxpjAg.js → Title-Byz0TGpi.js} +95 -94
  62. package/dist/{Transaction-DQK4LUGD.js → Transaction-CNXulI3o.js} +2 -2
  63. package/dist/Upselling-Dto64bmE.js +1013 -0
  64. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C0bfVZf8.js} +26 -26
  65. package/dist/{Voucher-CSVlk_Hr.js → Voucher-CVw3E8Y4.js} +19 -19
  66. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C0d3ktXA.js} +12 -12
  67. package/dist/{WhatsappAccount-CQYbv2Ew.js → WhatsappAccount-5vLzjaIV.js} +6 -6
  68. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CwGBRX-Q.js} +1 -1
  69. package/dist/{WhatsappBot-DdO9Bfvh.js → WhatsappBot-BWJbD7Gk.js} +6 -6
  70. package/dist/{WhatsappBotLogs-CjjWJGND.js → WhatsappBotLogs-C8gpmZyC.js} +6 -6
  71. package/dist/{WhatsappBotSettings-DYGx-kRr.js → WhatsappBotSettings-BvPnKHz-.js} +4 -4
  72. package/dist/WhatsappLayout-DJXhXeXf.js +21 -0
  73. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BxUYjrWQ.js} +3 -3
  74. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js → ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js} +2 -2
  75. package/dist/{app-CqQeNnGq.js → app-BF1vds2J.js} +11496 -10741
  76. package/dist/app.js +4 -3
  77. package/dist/{base.export-Dls5LQeu.js → base.export-B7FU8J4P.js} +2 -2
  78. package/dist/{business-gvLSQklz.js → business-DkUMhys1.js} +1 -1
  79. package/dist/{campaign-Cd6GmA4U.js → campaign-0AgQP43B.js} +34 -28
  80. package/dist/{campaign-BqazvOUj.js → campaign-C9cVkGMF.js} +121 -94
  81. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  82. package/dist/campaign.fn-N6rJeDUx.js +776 -0
  83. package/dist/{collection.fn-CERMsFPh.js → collection.fn-B_QnW0e3.js} +2 -2
  84. package/dist/{currency-IkiKiNg1.js → currency-XQmondpC.js} +1 -1
  85. package/dist/duplicateCampaign-CvQRWP-Z.js +51 -0
  86. package/dist/{effect-j_T62HBN.js → effect-Mwn1x6qN.js} +1 -1
  87. package/dist/{email-addresses-CN1kPlEj.js → email-addresses-DQQAi6-l.js} +2 -2
  88. package/dist/{feature-flag-DDfyOLsv.js → feature-flag-B1VMMZMd.js} +144 -144
  89. package/dist/google-BQK68wbe.js +5 -0
  90. package/dist/{helper-DVUe13eh.js → helper-D1R8vyjc.js} +1 -1
  91. package/dist/{index-fNYUguDQ.js → index-BU6CU5MP.js} +389 -232
  92. package/dist/{index-DALsfLV7.js → index-Bm43wR8L.js} +2699 -2613
  93. package/dist/{index-jS16KX9p.js → index-Bym-ZIcv.js} +1 -1
  94. package/dist/{index-BvoOJdfc.js → index-C9Nbb7wc.js} +2 -2
  95. package/dist/{index-UJHdDEG1.js → index-CLlGMbnP.js} +1 -1
  96. package/dist/{index-BvkqHehI.js → index-CPB7j8Wn.js} +10 -10
  97. package/dist/{index-COuLtOaw.js → index-CRAuAyO3.js} +1 -1
  98. package/dist/{index-k7FFxt_M.js → index-Cg8Z5eYT.js} +2 -2
  99. package/dist/{index-CPyK4a5J.js → index-CzE9ZPDV.js} +4 -4
  100. package/dist/{index-Cjy0SXCn.js → index-D5BwAYuA.js} +197 -197
  101. package/dist/{index-ep_Kxxid.js → index-DMfCzjiA.js} +2 -2
  102. package/dist/{index-DMiaWY0s.js → index-DQnCdGWe.js} +682 -581
  103. package/dist/{index-D_1pnadB.js → index-DaUhJ6xV.js} +29 -15
  104. package/dist/{index-9RBtEPPj.js → index-P8DDRVa3.js} +1 -1
  105. package/dist/{index-C_SaKemI.js → index-Rs75lw-x.js} +1 -1
  106. package/dist/{index-C-IajuP1.js → index-ZYrey0SM.js} +10 -10
  107. package/dist/{index-CWGbeg5X.js → index-eR9mqPPV.js} +19 -6
  108. package/dist/{index-BmIfGArh.js → index-mOGrVzUV.js} +3 -3
  109. package/dist/{index-lzQ6ehOk.js → index-ug7pxPAX.js} +608 -251
  110. package/dist/{index-DzbVgUEP.js → index-ytSMcSMt.js} +1 -1
  111. package/dist/{index.esm2017-vJKhLfdu.js → index.esm2017-Gkctw9Mb.js} +111 -111
  112. package/dist/{loading-jZV2Dm--.js → loading-kUQqT44G.js} +1 -1
  113. package/dist/{lodash-C2pLek0l.js → lodash-B4AjV7YZ.js} +1 -1
  114. package/dist/{member-import-BKI7soRD.js → member-import-CwDUG5mj.js} +1 -1
  115. package/dist/{membership-smdlFpPr.js → membership-BI6U8-eM.js} +2 -2
  116. package/dist/{money-5XyTnYwW.js → money-Bum-AbB7.js} +1 -1
  117. package/dist/{number-DHU9qJJQ.js → number-uAoNqG-N.js} +1 -1
  118. package/dist/objectid-CPTCMH2h.js +145 -0
  119. package/dist/{onboarding-C_5pyGx-.js → onboarding-wtYzQipv.js} +36 -36
  120. package/dist/{onboardingSetup-Bd1V-Ipy.js → onboardingSetup-DlYM-oqd.js} +2 -2
  121. package/dist/{plugins-D1Ru-da5.js → plugins-BGyTPNfc.js} +3 -3
  122. package/dist/{reward-BqPl68Xk.js → reward-D0xtG-bp.js} +1 -1
  123. package/dist/{rule-WBrRXwL-.js → rule-BAA5-vRj.js} +572 -492
  124. package/dist/style.css +1 -1
  125. package/dist/template-DKgW9ul3.js +188 -0
  126. package/dist/{timezone-O4qrCDcK.js → timezone-Bbw2OeEP.js} +1 -1
  127. package/dist/{transaction.fn-CY_F8Nb8.js → transaction.fn-DZdNjP_E.js} +2 -2
  128. package/dist/{trigger-D-vySeIB.js → trigger-BpotFb7G.js} +9 -9
  129. package/dist/{useMarketingMaterialActions-kA6SLHy_.js → useMarketingMaterialActions-CQ1M0N9c.js} +4 -4
  130. package/dist/{usePagination-AYE_RJH2.js → usePagination-qALFI_Td.js} +1 -1
  131. package/dist/{user-DJcMkYXP.js → user-X_94TRIK.js} +1 -1
  132. package/dist/vue-i18n-CRFpVnMa.js +2365 -0
  133. package/dist/{xlsx--s3hBdDk.js → xlsx-DW48eXDT.js} +224 -224
  134. package/dist/{zod-IpHRbxaJ.js → zod-BAP9II5C.js} +1 -1
  135. package/package.json +8 -3
  136. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +0 -3496
  137. package/dist/ReviewFacebookCallback-C6DlaJ_j.js +0 -238
  138. package/dist/Reward-DftoZfPN.js +0 -442
  139. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +0 -1884
  140. package/dist/Settings-9gaegvYJ.js +0 -179
  141. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +0 -1265
  142. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +0 -142
  143. package/dist/WhatsappLayout-B6k_79Kl.js +0 -21
  144. package/dist/campaign.fn-C0oMb1fs.js +0 -776
  145. package/dist/google-C3S8u0mT.js +0 -4
  146. package/dist/objectid-jT5g6pGt.js +0 -145
  147. package/dist/rule-builder-DAlSbaWh.js +0 -102
  148. package/dist/template-DDquG4Xc.js +0 -236
  149. package/dist/vue-i18n-kXHiDb_1.js +0 -2365
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as J, ref as y, computed as z, onMounted as K, resolveComponent as A, openBlock as u, createElementBlock as b, createElementVNode as s, createVNode as d, createTextVNode as W, toDisplayString as v, unref as e, withCtx as k, createBlock as B, Fragment as Y, renderList as Z, createCommentVNode as N, isRef as ee } from "vue";
2
- import { u as te } from "./loading-jZV2Dm--.js";
2
+ import { u as te } from "./loading-kUQqT44G.js";
3
3
  import { u as ne } from "./app-wDQR6dpb.js";
4
- import { u as se } from "./business-gvLSQklz.js";
5
- import { u as oe } from "./membership-smdlFpPr.js";
6
- import "./index-BmIfGArh.js";
7
- import { b as ae } from "./index-fNYUguDQ.js";
8
- import "./index-jS16KX9p.js";
9
- import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js";
10
- import { f as D, p as ie } from "./plugins-D1Ru-da5.js";
11
- import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js";
12
- import { u as ce } from "./vue-i18n-kXHiDb_1.js";
4
+ import { u as se } from "./business-DkUMhys1.js";
5
+ import { u as oe } from "./membership-BI6U8-eM.js";
6
+ import "./index-mOGrVzUV.js";
7
+ import { b as ae } from "./index-BU6CU5MP.js";
8
+ import "./index-Bym-ZIcv.js";
9
+ import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js";
10
+ import { f as D, p as ie } from "./plugins-BGyTPNfc.js";
11
+ import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js";
12
+ import { u as ce } from "./vue-i18n-CRFpVnMa.js";
13
13
  import { useRouter as de } from "vue-router";
14
- import { m as me } from "./index-CWGbeg5X.js";
15
- import { R as ue } from "./app-CqQeNnGq.js";
14
+ import { m as me } from "./index-eR9mqPPV.js";
15
+ import { R as ue } from "./app-BF1vds2J.js";
16
16
  import { a as ve } from "./object-BYyQ0PZp.js";
17
17
  const pe = { class: "min-h-screen bg-fm-color-neutral-gray-50" }, fe = { class: "bg-white border-b border-fm-color-neutral-gray-100 sticky top-0 z-10" }, ge = { class: "px-24 py-16 flex items-center justify-between" }, _e = { class: "flex items-center gap-16" }, he = { class: "fm-typo-en-title-md-800 flex items-center gap-8" }, ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, be = {
18
18
  key: 0,
@@ -0,0 +1,286 @@
1
+ import { defineComponent as M, useSlots as G, ref as F, watch as z, computed as b, openBlock as t, createElementBlock as s, createElementVNode as a, normalizeClass as N, unref as e, toDisplayString as d, Fragment as w, createBlock as U, createCommentVNode as C, createVNode as E, renderSlot as W, onMounted as q, withCtx as L, renderList as R, createStaticVNode as J } from "vue";
2
+ import { u as K } from "./loading-kUQqT44G.js";
3
+ import { u as Q } from "./business-DkUMhys1.js";
4
+ import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
5
+ import { u as O } from "./vue-i18n-CRFpVnMa.js";
6
+ import { h as A } from "./moment-D7p2TMB-.js";
7
+ import { g as Z, f as ee } from "./google-BQK68wbe.js";
8
+ import { R as ne } from "./app-BF1vds2J.js";
9
+ import { useRouter as oe } from "vue-router";
10
+ import { r as $ } from "./index-ZYrey0SM.js";
11
+ const te = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, ce = ["src"], ae = { class: "flex flex-col flex-1 gap-4 min-w-0" }, se = { class: "fm-typo-en-body-md-600 capitalize" }, re = { class: "truncate" }, le = { class: "truncate" }, ie = {
12
+ key: 1,
13
+ class: "truncate"
14
+ }, ue = {
15
+ key: 2,
16
+ class: "truncate"
17
+ }, de = {
18
+ key: 1,
19
+ class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
20
+ }, me = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, H = /* @__PURE__ */ M({
21
+ __name: "ReviewSource",
22
+ props: {
23
+ icon: {},
24
+ name: {},
25
+ connected: { type: Boolean },
26
+ subtitle: {},
27
+ syncing: { type: Boolean },
28
+ tokenExpired: { type: Boolean },
29
+ lastSyncTime: {}
30
+ },
31
+ emits: ["connect", "sync"],
32
+ setup(r, { emit: h }) {
33
+ const f = r, S = h, { t: l } = O(), c = G(), k = F(null);
34
+ z(
35
+ () => f.syncing,
36
+ (i) => {
37
+ i && (k.value = /* @__PURE__ */ new Date());
38
+ },
39
+ { immediate: !0 }
40
+ );
41
+ const p = b(
42
+ () => f.lastSyncTime ? A(f.lastSyncTime) : null
43
+ ), T = b(() => {
44
+ var i;
45
+ return ((i = p.value) == null ? void 0 : i.fromNow()) ?? "";
46
+ }), B = b(
47
+ () => {
48
+ var i;
49
+ return ((i = p.value) == null ? void 0 : i.format("D MMM YYYY, HH:mm")) ?? "";
50
+ }
51
+ ), I = b(
52
+ () => A(k.value ?? void 0).format("HH:mm")
53
+ ), u = b(() => f.syncing ? "syncing" : p.value ? "synced" : "never");
54
+ return (i, m) => (t(), s("div", te, [
55
+ a("div", {
56
+ class: N(["flex items-center gap-12 p-16", e(c).default ? "border-b border-fm-color-neutral-gray-100" : ""])
57
+ }, [
58
+ a("img", {
59
+ src: r.icon,
60
+ class: "w-10 h-10 shrink-0"
61
+ }, null, 8, ce),
62
+ a("div", ae, [
63
+ a("span", se, d(r.name), 1),
64
+ r.connected ? (t(), s("div", {
65
+ key: 0,
66
+ class: N(["flex items-center gap-8 fm-typo-en-body-sm-400 truncate", {
67
+ "text-fm-color-typo-secondary": u.value !== "syncing",
68
+ "text-fm-color-typo-warning": u.value === "syncing"
69
+ }])
70
+ }, [
71
+ a("span", {
72
+ class: N(["w-8 h-8 rounded-full shrink-0", {
73
+ "bg-fm-color-system-success-400": u.value === "synced",
74
+ "bg-fm-color-primary": u.value === "syncing",
75
+ "bg-fm-color-neutral-gray-300": u.value === "never"
76
+ }])
77
+ }, null, 2),
78
+ u.value === "synced" ? (t(), s(w, { key: 0 }, [
79
+ a("span", re, d(e(l)("connect.review.lastSynced", { relative: T.value })), 1),
80
+ m[3] || (m[3] = a("span", { class: "text-fm-color-neutral-gray-300" }, "·", -1)),
81
+ a("span", le, d(B.value), 1)
82
+ ], 64)) : u.value === "syncing" ? (t(), s("span", ie, d(e(l)("connect.review.syncingNow", { time: I.value })), 1)) : (t(), s("span", ue, d(e(l)("connect.review.neverSynced")), 1))
83
+ ], 2)) : (t(), s("span", de, d(r.subtitle || e(l)("connect.review.notConnected")), 1))
84
+ ]),
85
+ r.connected ? (t(), s(w, { key: 0 }, [
86
+ r.tokenExpired ? (t(), U(e(x).FmChip, {
87
+ key: 0,
88
+ label: e(l)("connect.review.expired"),
89
+ variant: "critical"
90
+ }, null, 8, ["label"])) : C("", !0),
91
+ E(e(x).FmButton, {
92
+ variant: "secondary",
93
+ "prepend-icon": "refresh",
94
+ label: e(l)("connect.review.reconnect"),
95
+ onClick: m[0] || (m[0] = (_) => S("connect"))
96
+ }, null, 8, ["label"]),
97
+ r.tokenExpired ? C("", !0) : (t(), U(e(x).FmButton, {
98
+ key: 1,
99
+ variant: "primary",
100
+ "prepend-icon": "sync",
101
+ label: e(l)("connect.review.sync"),
102
+ loading: r.syncing,
103
+ onClick: m[1] || (m[1] = (_) => S("sync"))
104
+ }, null, 8, ["label", "loading"]))
105
+ ], 64)) : C("", !0)
106
+ ], 2),
107
+ r.connected ? C("", !0) : (t(), s("div", {
108
+ key: 0,
109
+ class: N(["flex items-center justify-between gap-12 p-16", e(c).default ? "border-b border-fm-color-neutral-gray-100" : ""])
110
+ }, [
111
+ a("span", me, d(e(l)("connect.review.connectHint", { name: r.name })), 1),
112
+ E(e(x).FmButton, {
113
+ "prepend-icon": "add",
114
+ label: e(l)("connect.review.connect"),
115
+ onClick: m[2] || (m[2] = (_) => S("connect"))
116
+ }, null, 8, ["label"])
117
+ ], 2)),
118
+ W(i.$slots, "default")
119
+ ]));
120
+ }
121
+ }), ye = { class: "p-24 flex flex-col gap-8" }, fe = { class: "flex flex-col flex-1 min-w-0" }, ge = { class: "fm-typo-en-body-lg-600 truncate" }, pe = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, ve = ["src"], be = { class: "flex flex-col flex-1 min-w-0" }, ke = { class: "fm-typo-en-body-lg-600 truncate" }, we = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, Te = /* @__PURE__ */ M({
122
+ __name: "Settings",
123
+ setup(r) {
124
+ const { t: h } = O(), f = X(), S = oe(), l = Q(), c = F(null), k = F(!1), p = F(!1), T = b(
125
+ () => {
126
+ var n;
127
+ return c.value ? ((n = c.value.google) == null ? void 0 : n.accessToken) === null : !1;
128
+ }
129
+ ), B = b(
130
+ () => {
131
+ var n;
132
+ return c.value ? ((n = c.value.facebook) == null ? void 0 : n.token) === null : !1;
133
+ }
134
+ );
135
+ function I(n) {
136
+ const o = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
137
+ return `${window.location.origin}${o}${n}`;
138
+ }
139
+ async function u() {
140
+ await K.minor(async () => {
141
+ c.value = await $.getSource();
142
+ });
143
+ }
144
+ function i(n) {
145
+ var o;
146
+ return (o = l.locations.find(
147
+ (g) => g._id.toString() === n
148
+ )) == null ? void 0 : o.name;
149
+ }
150
+ function m(n) {
151
+ return n.map((o) => i(o)).filter((o) => o !== void 0).join(", ");
152
+ }
153
+ function _() {
154
+ f.open({
155
+ message: h("connect.review.syncSuccess"),
156
+ type: "success"
157
+ }), S.push({ name: ne["$connect-REVIEW_OVERVIEW"] });
158
+ }
159
+ async function P() {
160
+ var n, o;
161
+ k.value = !0;
162
+ try {
163
+ await $.syncGoogleReviews(), _();
164
+ } catch (g) {
165
+ if (await u(), ((o = (n = c.value) == null ? void 0 : n.google) == null ? void 0 : o.accessToken) === null) {
166
+ f.open({
167
+ message: h("connect.review.tokenExpired"),
168
+ type: "error"
169
+ });
170
+ return;
171
+ }
172
+ throw g;
173
+ } finally {
174
+ k.value = !1;
175
+ }
176
+ }
177
+ async function Y() {
178
+ var n, o;
179
+ p.value = !0;
180
+ try {
181
+ await $.syncFacebookReviews(), _();
182
+ } catch (g) {
183
+ if (await u(), ((o = (n = c.value) == null ? void 0 : n.facebook) == null ? void 0 : o.token) === null) {
184
+ f.open({
185
+ message: h("connect.review.tokenExpired"),
186
+ type: "error"
187
+ });
188
+ return;
189
+ }
190
+ throw g;
191
+ } finally {
192
+ p.value = !1;
193
+ }
194
+ }
195
+ async function j() {
196
+ const n = I("/review/google/callback"), { callbackUrl: o } = await $.getOauthUrl("google", n);
197
+ window.location.href = o;
198
+ }
199
+ async function D() {
200
+ const n = I("/review/facebook/callback"), { callbackUrl: o } = await $.getOauthUrl("facebook", n);
201
+ window.location.href = o;
202
+ }
203
+ return q(() => {
204
+ u(), l.readLocations();
205
+ }), (n, o) => {
206
+ var g, V;
207
+ return t(), s("div", ye, [
208
+ e(c) ? (t(), s(w, { key: 0 }, [
209
+ E(H, {
210
+ icon: e(Z),
211
+ name: "google",
212
+ connected: !!e(c).google,
213
+ syncing: e(k),
214
+ "token-expired": e(T),
215
+ "last-sync-time": (g = e(c).google) == null ? void 0 : g.lastSyncTime,
216
+ onConnect: j,
217
+ onSync: P
218
+ }, {
219
+ default: L(() => {
220
+ var v;
221
+ return [
222
+ (t(!0), s(w, null, R((v = e(c).google) == null ? void 0 : v.locations, (y) => (t(), s("div", {
223
+ key: y.googleLocationName,
224
+ class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
225
+ }, [
226
+ E(e(x).FmIcon, {
227
+ name: "location_on",
228
+ class: "text-fm-color-neutral-gray-300 shrink-0"
229
+ }),
230
+ a("div", fe, [
231
+ a("span", ge, d(y.displayName), 1),
232
+ a("span", pe, d(i(y.locationId)), 1)
233
+ ])
234
+ ]))), 128))
235
+ ];
236
+ }),
237
+ _: 1
238
+ }, 8, ["icon", "connected", "syncing", "token-expired", "last-sync-time"]),
239
+ E(H, {
240
+ icon: e(ee),
241
+ name: "facebook",
242
+ connected: !!e(c).facebook,
243
+ syncing: e(p),
244
+ "token-expired": e(B),
245
+ "last-sync-time": (V = e(c).facebook) == null ? void 0 : V.lastSyncTime,
246
+ onConnect: D,
247
+ onSync: Y
248
+ }, {
249
+ default: L(() => {
250
+ var v;
251
+ return [
252
+ (t(!0), s(w, null, R((v = e(c).facebook) == null ? void 0 : v.pages, (y) => (t(), s("div", {
253
+ key: y.facebookPageId,
254
+ class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
255
+ }, [
256
+ y.pageProfileImageUrl ? (t(), s("img", {
257
+ key: 0,
258
+ src: y.pageProfileImageUrl,
259
+ class: "w-10 h-10 rounded-full shrink-0 object-cover"
260
+ }, null, 8, ve)) : (t(), U(e(x).FmIcon, {
261
+ key: 1,
262
+ name: "person",
263
+ class: "text-fm-color-neutral-gray-300 shrink-0"
264
+ })),
265
+ a("div", be, [
266
+ a("span", ke, d(y.pageName), 1),
267
+ a("span", we, d(m(y.locationIds)), 1)
268
+ ])
269
+ ]))), 128))
270
+ ];
271
+ }),
272
+ _: 1
273
+ }, 8, ["icon", "connected", "syncing", "token-expired", "last-sync-time"])
274
+ ], 64)) : (t(), s(w, { key: 1 }, R(["google", "facebook"], (v) => a("div", {
275
+ key: v,
276
+ class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
277
+ }, [...o[0] || (o[0] = [
278
+ J('<div class="animate-pulse flex items-center gap-12"><div class="w-10 h-10 rounded-full bg-fm-color-neutral-gray-100 shrink-0"></div><div class="flex-1 min-w-0 space-y-8"><div class="h-16 w-20 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full max-w-[160px] rounded bg-fm-color-neutral-gray-100"></div></div><div class="h-32 w-24 rounded bg-fm-color-neutral-gray-100 shrink-0"></div></div>', 1)
279
+ ])])), 64))
280
+ ]);
281
+ };
282
+ }
283
+ });
284
+ export {
285
+ Te as default
286
+ };
@@ -1,37 +1,37 @@
1
1
  import { defineComponent as Y, computed as D, resolveComponent as v, openBlock as m, createBlock as R, withCtx as I, createElementVNode as n, toDisplayString as w, createVNode as l, createCommentVNode as M, createElementBlock as T, unref as e, Fragment as z, renderList as ce, ref as O, isRef as be, reactive as lt, onMounted as Ne, watch as We, toRaw as it, createTextVNode as ee, h as rt, normalizeStyle as tt, normalizeClass as we } from "vue";
2
2
  import { _ as ct } from "./tier-BJDhpH6X.js";
3
3
  import { useDialog as Ye, useDialogChild as Je, components as dt } from "@feedmepos/ui-library";
4
- import { c as q, e as Le, S as He } from "./index-BvkqHehI.js";
5
- import { u as ot } from "./loading-jZV2Dm--.js";
6
- import { u as Xe, C as Ie } from "./membership-smdlFpPr.js";
7
- import { o as ut, p as mt, q as pt, r as Qe, s as ft, t as yt } from "./index-DMiaWY0s.js";
4
+ import { c as q, e as Le, S as He } from "./index-CPB7j8Wn.js";
5
+ import { u as ot } from "./loading-kUQqT44G.js";
6
+ import { u as Xe, C as Ie } from "./membership-BI6U8-eM.js";
7
+ import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-DQnCdGWe.js";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
9
- import { _ as pe } from "./lodash-C2pLek0l.js";
10
- import { c as _e } from "./index-BmIfGArh.js";
11
- import { u as ve } from "./vue-i18n-kXHiDb_1.js";
12
- import { Z as ie, g as ae, a as se } from "./zod-IpHRbxaJ.js";
13
- import { z as re, R as Ae } from "./app-CqQeNnGq.js";
9
+ import { _ as pe } from "./lodash-B4AjV7YZ.js";
10
+ import { c as _e } from "./index-mOGrVzUV.js";
11
+ import { u as ve } from "./vue-i18n-CRFpVnMa.js";
12
+ import { Z as ie, g as ae, a as se } from "./zod-BAP9II5C.js";
13
+ import { z as re, R as Ae } from "./app-BF1vds2J.js";
14
14
  import { u as je } from "./app-wDQR6dpb.js";
15
- import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js";
16
- import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-D1Ru-da5.js";
15
+ import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js";
16
+ import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-BGyTPNfc.js";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
18
- import { _ as ht } from "./index-DALsfLV7.js";
19
- import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js";
18
+ import { _ as ht } from "./index-Bm43wR8L.js";
19
+ import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js";
20
20
  import { _ as _t } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
21
- import { z as Ct, a as St } from "./money-5XyTnYwW.js";
22
- import { f as Ft } from "./currency-IkiKiNg1.js";
23
- import { F as wt } from "./number-DHU9qJJQ.js";
24
- import { a as $t, t as kt } from "./helper-DVUe13eh.js";
25
- import "./index-jS16KX9p.js";
26
- import "./index-fNYUguDQ.js";
27
- import "./index-lzQ6ehOk.js";
28
- import "./index-BvoOJdfc.js";
21
+ import { z as Ct, a as St } from "./money-Bum-AbB7.js";
22
+ import { f as Ft } from "./currency-XQmondpC.js";
23
+ import { F as wt } from "./number-uAoNqG-N.js";
24
+ import { a as $t, t as kt } from "./helper-D1R8vyjc.js";
25
+ import "./index-Bym-ZIcv.js";
26
+ import "./index-ug7pxPAX.js";
27
+ import "./index-BU6CU5MP.js";
28
+ import "./index-C9Nbb7wc.js";
29
29
  import "./index-I9lmcd2w.js";
30
- import "./index-9RBtEPPj.js";
31
- import { m as Pt } from "./index-k7FFxt_M.js";
32
- import { m as De } from "./index-CWGbeg5X.js";
33
- import { g as Ke } from "./index-C_SaKemI.js";
34
- import { u as Vt } from "./business-gvLSQklz.js";
30
+ import "./index-P8DDRVa3.js";
31
+ import { m as Pt } from "./index-Cg8Z5eYT.js";
32
+ import { m as De } from "./index-eR9mqPPV.js";
33
+ import { g as Ke } from "./index-Rs75lw-x.js";
34
+ import { u as Vt } from "./business-DkUMhys1.js";
35
35
  import { useRouter as Tt } from "vue-router";
36
36
  function nt(b) {
37
37
  return _e.DineroFactory(b).toUnit();
@@ -600,7 +600,7 @@ const Yt = {
600
600
  };
601
601
  }
602
602
  });
603
- var Xt = { mode: "production", appMode: "mf" };
603
+ var Xt = { mode: "development", appMode: "mf" };
604
604
  const Zt = { class: "space-y-8" }, Qt = {
605
605
  key: 0,
606
606
  class: "space-y-16"
@@ -2117,7 +2117,7 @@ const vn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, hn = { class: "
2117
2117
  };
2118
2118
  }
2119
2119
  });
2120
- var et = { 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/" };
2120
+ var et = { 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/" };
2121
2121
  const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, Nn = { class: "px-24 flex flex-col gap-y-16" }, Mn = { class: "space-y-8 py-12" }, On = { class: "flex gap-8 items-center" }, Ln = { class: "fm-typo-en-body-lg-600" }, An = {
2122
2122
  key: 1,
2123
2123
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as Z, ref as A, computed as q, onMounted as z, resolveComponent as F, openBlock as y, createBlock as E, unref as e, isRef as ee, withCtx as V, createElementVNode as s, createVNode as c, createElementBlock as D, createTextVNode as te, resolveDynamicComponent as N, toDisplayString as H, Fragment as W, createCommentVNode as P, h as C } from "vue";
2
2
  import { _ as oe } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as J, components as $ } from "@feedmepos/ui-library";
4
- import "./index-jS16KX9p.js";
5
- import { u as ae } from "./loading-jZV2Dm--.js";
6
- import { C as Q, u as ne } from "./membership-smdlFpPr.js";
7
- import { p as B, f as K } from "./plugins-D1Ru-da5.js";
4
+ import "./index-Bym-ZIcv.js";
5
+ import { u as ae } from "./loading-kUQqT44G.js";
6
+ import { C as Q, u as ne } from "./membership-BI6U8-eM.js";
7
+ import { p as B, f as K } from "./plugins-BGyTPNfc.js";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-kXHiDb_1.js";
10
- import { F as ie } from "./index-DALsfLV7.js";
9
+ import { u as se } from "./vue-i18n-CRFpVnMa.js";
10
+ import { F as ie } from "./index-Bm43wR8L.js";
11
11
  import { c as re } from "./object-BYyQ0PZp.js";
12
12
  import { u as Y } from "./app-wDQR6dpb.js";
13
- import { u as le } from "./business-gvLSQklz.js";
14
- import { Z as h } from "./zod-IpHRbxaJ.js";
15
- import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js";
16
- import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js";
17
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js";
18
- import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js";
19
- import { i as fe, F as ye, h as j, t as we } from "./helper-DVUe13eh.js";
13
+ import { u as le } from "./business-DkUMhys1.js";
14
+ import { Z as h } from "./zod-BAP9II5C.js";
15
+ import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js";
16
+ import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js";
17
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js";
18
+ import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js";
19
+ import { i as fe, F as ye, h as j, t as we } from "./helper-D1R8vyjc.js";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-CWGbeg5X.js";
22
- import { R as L } from "./app-CqQeNnGq.js";
21
+ import { m as G } from "./index-eR9mqPPV.js";
22
+ import { R as L } from "./app-BF1vds2J.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }