@feedmepos/mf-connect 0.1.119-prod → 0.1.121-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 (146) hide show
  1. package/dist/{App-BN2LKM3u.js → App-DwtaLO6F.js} +147 -135
  2. package/dist/AuditLogs-s572aHLw.js +2016 -0
  3. package/dist/{Bin-DpQ1atb7.js → Bin-BBaVggZI.js} +8 -8
  4. package/dist/{Broadcast-c1ZyYClI.js → Broadcast-CqAQ3EmE.js} +22 -21
  5. package/dist/{CampaignAnalytic-w1hIlc2r.js → CampaignAnalytic-34bfP8iY.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BvAAxE3a.js} +8 -9
  7. package/dist/{Card-De53Xgbe.js → Card-8hlnKnhk.js} +22 -22
  8. package/dist/{Collections-BL2RD3FU.js → Collections-BJ0-UjKf.js} +197 -185
  9. package/dist/{Credit-2KvFFcwR.js → Credit-DJNc__yp.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BvilcyyB.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js +4439 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js → EffectSheet.vue_vue_type_style_index_0_lang-DFzVuuEy.js} +30 -30
  13. package/dist/{Experience-Cb0jHtVo.js → Experience-D-cUhjWc.js} +32 -31
  14. package/dist/{FileSaver.min-UDgZF_Cv.js → FileSaver.min-DKYYse6A.js} +1 -1
  15. package/dist/{Game-BnysxSMs.js → Game-DdFV90Kp.js} +19 -18
  16. package/dist/{GiftCardSetup-s1OR6xQq.js → GiftCardSetup-Dz0AN159.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-GCp3IFaC.js} +7 -7
  18. package/dist/{Goals-BAieLPzR.js → Goals-Dg_kAezl.js} +4 -4
  19. package/dist/Grab-BSQt4deB.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js → ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js} +1 -1
  21. package/dist/{Index-DnX16GAE.js → Index-ZSup3I7J.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js → LocationPicker.vue_vue_type_script_setup_true_lang-DisF-jcd.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BHhjZOYi.js} +1 -1
  24. package/dist/{LoyaltyDashboard-D8g6OSbC.js → LoyaltyDashboard-D8BhHsaw.js} +15 -15
  25. package/dist/{MainLayout-DWABjpQn.js → MainLayout-BBnhRxyR.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js → MainLayout.vue_vue_type_script_setup_true_lang-DFrPlj5u.js} +16 -16
  27. package/dist/{Marketing-Dagatr0y.js → Marketing-5F9LLn91.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-DYVzNDpM.js → MarketingMaterialEdit-C7dD4Bzw.js} +214 -211
  29. package/dist/{Member-DAxdEF_Z.js → Member-Dk4JeGru.js} +7 -7
  30. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-ISolD_Qg.js} +39 -47
  31. package/dist/{MemberImportHistory-2gx6FnLh.js → MemberImportHistory-C0Ep8L2q.js} +7 -7
  32. package/dist/{MemberList-By_gGl-J.js → MemberList-BsuPfBgk.js} +103 -105
  33. package/dist/{MemberTransactions-BEF-4ZNp.js → MemberTransactions-mZ3fHw5O.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js → MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-caED3JRW.js} +1 -1
  36. package/dist/{Mission-jg15lBxo.js → Mission-C7DqUOJz.js} +22 -21
  37. package/dist/{Overview-C7WfdzfV.js → Overview-U201nBVO.js} +20 -20
  38. package/dist/{Overview-BFKLTAk1.js → Overview-VABLg36G.js} +145 -144
  39. package/dist/{Point-dv9WgWTQ.js → Point-DU6Ndv35.js} +22 -21
  40. package/dist/{Promotion-mFPF_8jO.js → Promotion-9UhZXNPb.js} +137 -131
  41. package/dist/{Queue-BQoR_M5H.js → Queue-CUxMedbd.js} +45 -45
  42. package/dist/{Record-1JZ1N5iX.js → Record-BIftCQzV.js} +9 -9
  43. package/dist/{Review-B52AxCeT.js → Review-lyVgTfsP.js} +2 -2
  44. package/dist/ReviewFacebookCallback-Da5G19bE.js +225 -0
  45. package/dist/{ReviewGoogleCallback-DO6SVFIC.js → ReviewGoogleCallback-B41PXfsj.js} +5 -5
  46. package/dist/{Reward-Cp4jPAB0.js → Reward-BMun_Rs4.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js → RewardGroup.vue_vue_type_script_setup_true_lang-3TONrUQu.js} +13 -13
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHzFgr4h.js +1923 -0
  49. package/dist/{Segment-DaKw0YXF.js → Segment-1VS7ycXi.js} +303 -306
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5iJSlxi.js} +14 -14
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CXY9Wyk9.js} +4 -4
  52. package/dist/{Setting-DveUrt8J.js → Setting-BdtzvKjt.js} +159 -148
  53. package/dist/{SettingAdvertisements-QRXOMNnM.js → SettingAdvertisements-BO2l3HBT.js} +12 -12
  54. package/dist/Settings-CvYawDU5.js +286 -0
  55. package/dist/{Store-DjdXRw3V.js → Store-DWQz-MgY.js} +28 -28
  56. package/dist/{StoreRewards-CjlGrc9E.js → StoreRewards-Bfwuqxf-.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CBwmDKAw.js +1319 -0
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js +7007 -0
  59. package/dist/{Tier-D74Oh2np.js → Tier-CKn-l-wY.js} +2575 -687
  60. package/dist/{Title-CeeviOW8.js → Title-BXDk69uL.js} +95 -94
  61. package/dist/{Transaction-CWdw0ITl.js → Transaction-D4HQO4i9.js} +2 -2
  62. package/dist/Upselling-CikWzKq7.js +1032 -0
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-um124o4t.js} +26 -26
  64. package/dist/{Voucher-C0nNXMtv.js → Voucher-BGIyw4jq.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BKyZj5SP.js} +12 -12
  66. package/dist/{WhatsappAccount-CoLSjCQ2.js → WhatsappAccount-Cd82g_xj.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DWy8kS66.js} +1 -1
  68. package/dist/{WhatsappBot-kLb3kUav.js → WhatsappBot-auQhO8zk.js} +6 -6
  69. package/dist/{WhatsappBotLogs-jcYaHs0t.js → WhatsappBotLogs-CWuJzK9W.js} +6 -6
  70. package/dist/{WhatsappBotSettings-B6jJD61h.js → WhatsappBotSettings-B8KXMpIF.js} +4 -4
  71. package/dist/{WhatsappLayout-C24bIjI2.js → WhatsappLayout-DxooAkkL.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CYHmgQ2v.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js → ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js} +2 -2
  74. package/dist/{app-C06bAZj3.js → app-BG-zK89d.js} +4181 -3401
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-CgNRhKu8.js → base.export-BcMuREGH.js} +2 -2
  77. package/dist/{business-D23Dt1x4.js → business-9_NOI2V9.js} +1 -1
  78. package/dist/{campaign-FVcbXtrP.js → campaign-8y_9SvKP.js} +34 -28
  79. package/dist/{campaign-DfEvGigm.js → campaign-DjBTRZyA.js} +121 -94
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  81. package/dist/campaign.fn-COkPH1QE.js +776 -0
  82. package/dist/{collection.fn-DC1AMI9o.js → collection.fn-yXurU9iv.js} +2 -2
  83. package/dist/{currency-Bra2RJK4.js → currency-YzyBFtDU.js} +1 -1
  84. package/dist/duplicateCampaign-dRWioann.js +51 -0
  85. package/dist/{effect-EL4V3pAu.js → effect-bMGarJZ6.js} +1 -1
  86. package/dist/{email-addresses-Ddtf1x_y.js → email-addresses-Ciu83j_3.js} +2 -2
  87. package/dist/{feature-flag-umACX47C.js → feature-flag-H5D1Cob5.js} +70 -70
  88. package/dist/google-BQK68wbe.js +5 -0
  89. package/dist/{helper-DqDOnLCf.js → helper-BH9HMikb.js} +1 -1
  90. package/dist/{index-CEh6ryp2.js → index-B7-Uvnfn.js} +19 -6
  91. package/dist/{index-DuCJtx1m.js → index-BHO82_Ix.js} +1 -1
  92. package/dist/{index-B_BmgKrh.js → index-BaTnDV-T.js} +2699 -2613
  93. package/dist/{index-C3hAzzS2.js → index-BvKJM3M2.js} +29 -15
  94. package/dist/{index-rcfcslIC.js → index-BxwJfT08.js} +197 -197
  95. package/dist/{index-C6p9Lsvf.js → index-CH-KHkm5.js} +1 -1
  96. package/dist/{index-B2lqC_hH.js → index-CIOidYvo.js} +1 -1
  97. package/dist/{index-BzwwXWpZ.js → index-CJAFz9Nn.js} +1 -1
  98. package/dist/{index-ByVPdKdB.js → index-CooParq-.js} +682 -581
  99. package/dist/{index-pfmx-Gor.js → index-Cyf05z_2.js} +2 -2
  100. package/dist/{index-Bvk61_w_.js → index-DYu7ZdQt.js} +1 -1
  101. package/dist/{index-B3U3KZl0.js → index-DbxiG50D.js} +2 -2
  102. package/dist/{index-BkKu2G2c.js → index-DkMy7WpU.js} +2 -2
  103. package/dist/{index-LjoAs_nX.js → index-DpkoCl4z.js} +10 -10
  104. package/dist/{index-C3lk4GHF.js → index-MWNnMT2T.js} +4 -4
  105. package/dist/{index-DK9zxpDu.js → index-RvJ5cq__.js} +3 -3
  106. package/dist/{index-iVbjwKxc.js → index-Ye3qFt34.js} +10 -10
  107. package/dist/{index-BTjhdlN_.js → index-_giqGuYM.js} +1 -1
  108. package/dist/{index-TDCPGtW3.js → index-pnM5q4c_.js} +389 -232
  109. package/dist/{index-BroF2fC8.js → index-taPHgOqE.js} +608 -251
  110. package/dist/{index.esm2017-DCuQPCX2.js → index.esm2017-CLxZor1Y.js} +111 -111
  111. package/dist/{loading-CQm1DKWE.js → loading-CsOSUWBd.js} +1 -1
  112. package/dist/{lodash-C2wVbAap.js → lodash-CshibTzh.js} +1 -1
  113. package/dist/{member-import-BLEmTRso.js → member-import-BdaGAjjt.js} +1 -1
  114. package/dist/{membership-XycnxPEW.js → membership-C5JWO1FM.js} +2 -2
  115. package/dist/{money-DY_QGzd1.js → money-Blt5EM43.js} +1 -1
  116. package/dist/{number-BHthf4qF.js → number-COm3MiH8.js} +1 -1
  117. package/dist/objectid-DQTx3-ee.js +145 -0
  118. package/dist/{onboarding-BOJw54Fn.js → onboarding-BbQDJOOS.js} +36 -36
  119. package/dist/{onboardingSetup-Cf2u1tXu.js → onboardingSetup-BLISY52M.js} +2 -2
  120. package/dist/{plugins-DKQeoL_e.js → plugins-De_chCYU.js} +3 -3
  121. package/dist/{reward-D4RIYSpl.js → reward-Dl8Zoxe_.js} +1 -1
  122. package/dist/{rule-Ba-s0L_w.js → rule-D6_iss3O.js} +572 -492
  123. package/dist/style.css +1 -1
  124. package/dist/template-Cw6j1cLX.js +224 -0
  125. package/dist/{timezone-CAc8xi1h.js → timezone-CA5FwOyy.js} +1 -1
  126. package/dist/{transaction.fn-Cp2hnhyU.js → transaction.fn-DI_NeGQb.js} +2 -2
  127. package/dist/{trigger-3ebhNBX7.js → trigger-CuymoMM-.js} +9 -9
  128. package/dist/{useMarketingMaterialActions-6URv8neP.js → useMarketingMaterialActions-Bz0Kgvgd.js} +4 -4
  129. package/dist/{usePagination-C-fyMmiy.js → usePagination-yb1rupwa.js} +1 -1
  130. package/dist/{user-T-iXTrYV.js → user-QSKyFaMI.js} +1 -1
  131. package/dist/vue-i18n-B_qtODCw.js +2365 -0
  132. package/dist/{xlsx-B8OqaJfb.js → xlsx--RjkGa9A.js} +224 -224
  133. package/dist/{zod-DZkNj425.js → zod-CmPMd-h0.js} +1 -1
  134. package/package.json +8 -3
  135. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +0 -3493
  136. package/dist/ReviewFacebookCallback-ihTdiI8V.js +0 -238
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +0 -1884
  138. package/dist/Settings-D9D-mkBa.js +0 -179
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +0 -1265
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +0 -142
  141. package/dist/campaign.fn-0MNUj1fZ.js +0 -776
  142. package/dist/google-C3S8u0mT.js +0 -4
  143. package/dist/objectid-CPCAqIiC.js +0 -145
  144. package/dist/rule-builder-D0B0DPao.js +0 -102
  145. package/dist/template-B40I16Yg.js +0 -236
  146. package/dist/vue-i18n-DzsxJorb.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-CQm1DKWE.js";
2
+ import { u as te } from "./loading-CsOSUWBd.js";
3
3
  import { u as ne } from "./app-wDQR6dpb.js";
4
- import { u as se } from "./business-D23Dt1x4.js";
5
- import { u as oe } from "./membership-XycnxPEW.js";
6
- import "./index-DK9zxpDu.js";
7
- import { b as ae } from "./index-TDCPGtW3.js";
8
- import "./index-BzwwXWpZ.js";
9
- import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js";
10
- import { f as D, p as ie } from "./plugins-DKQeoL_e.js";
11
- import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js";
12
- import { u as ce } from "./vue-i18n-DzsxJorb.js";
4
+ import { u as se } from "./business-9_NOI2V9.js";
5
+ import { u as oe } from "./membership-C5JWO1FM.js";
6
+ import "./index-RvJ5cq__.js";
7
+ import { b as ae } from "./index-pnM5q4c_.js";
8
+ import "./index-CJAFz9Nn.js";
9
+ import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js";
10
+ import { f as D, p as ie } from "./plugins-De_chCYU.js";
11
+ import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js";
12
+ import { u as ce } from "./vue-i18n-B_qtODCw.js";
13
13
  import { useRouter as de } from "vue-router";
14
- import { m as me } from "./index-CEh6ryp2.js";
15
- import { R as ue } from "./app-C06bAZj3.js";
14
+ import { m as me } from "./index-B7-Uvnfn.js";
15
+ import { R as ue } from "./app-BG-zK89d.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-CsOSUWBd.js";
3
+ import { u as Q } from "./business-9_NOI2V9.js";
4
+ import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
5
+ import { u as O } from "./vue-i18n-B_qtODCw.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-BG-zK89d.js";
9
+ import { useRouter as oe } from "vue-router";
10
+ import { r as $ } from "./index-DpkoCl4z.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-iVbjwKxc.js";
5
- import { u as ot } from "./loading-CQm1DKWE.js";
6
- import { u as Xe, C as Ie } from "./membership-XycnxPEW.js";
7
- import { o as ut, p as mt, q as pt, r as Qe, s as ft, t as yt } from "./index-ByVPdKdB.js";
4
+ import { c as q, e as Le, S as He } from "./index-Ye3qFt34.js";
5
+ import { u as ot } from "./loading-CsOSUWBd.js";
6
+ import { u as Xe, C as Ie } from "./membership-C5JWO1FM.js";
7
+ import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-CooParq-.js";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
9
- import { _ as pe } from "./lodash-C2wVbAap.js";
10
- import { c as _e } from "./index-DK9zxpDu.js";
11
- import { u as ve } from "./vue-i18n-DzsxJorb.js";
12
- import { Z as ie, g as ae, a as se } from "./zod-DZkNj425.js";
13
- import { z as re, R as Ae } from "./app-C06bAZj3.js";
9
+ import { _ as pe } from "./lodash-CshibTzh.js";
10
+ import { c as _e } from "./index-RvJ5cq__.js";
11
+ import { u as ve } from "./vue-i18n-B_qtODCw.js";
12
+ import { Z as ie, g as ae, a as se } from "./zod-CmPMd-h0.js";
13
+ import { z as re, R as Ae } from "./app-BG-zK89d.js";
14
14
  import { u as je } from "./app-wDQR6dpb.js";
15
- import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js";
16
- import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-DKQeoL_e.js";
15
+ import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js";
16
+ import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-De_chCYU.js";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
18
- import { _ as ht } from "./index-B_BmgKrh.js";
19
- import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js";
18
+ import { _ as ht } from "./index-BaTnDV-T.js";
19
+ import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.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-DY_QGzd1.js";
22
- import { f as Ft } from "./currency-Bra2RJK4.js";
23
- import { F as wt } from "./number-BHthf4qF.js";
24
- import { a as $t, t as kt } from "./helper-DqDOnLCf.js";
25
- import "./index-BzwwXWpZ.js";
26
- import "./index-TDCPGtW3.js";
27
- import "./index-BroF2fC8.js";
28
- import "./index-B3U3KZl0.js";
21
+ import { z as Ct, a as St } from "./money-Blt5EM43.js";
22
+ import { f as Ft } from "./currency-YzyBFtDU.js";
23
+ import { F as wt } from "./number-COm3MiH8.js";
24
+ import { a as $t, t as kt } from "./helper-BH9HMikb.js";
25
+ import "./index-CJAFz9Nn.js";
26
+ import "./index-taPHgOqE.js";
27
+ import "./index-pnM5q4c_.js";
28
+ import "./index-DbxiG50D.js";
29
29
  import "./index-I9lmcd2w.js";
30
- import "./index-Bvk61_w_.js";
31
- import { m as Pt } from "./index-pfmx-Gor.js";
32
- import { m as De } from "./index-CEh6ryp2.js";
33
- import { g as Ke } from "./index-B2lqC_hH.js";
34
- import { u as Vt } from "./business-D23Dt1x4.js";
30
+ import "./index-DYu7ZdQt.js";
31
+ import { m as Pt } from "./index-Cyf05z_2.js";
32
+ import { m as De } from "./index-B7-Uvnfn.js";
33
+ import { g as Ke } from "./index-CIOidYvo.js";
34
+ import { u as Vt } from "./business-9_NOI2V9.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-BzwwXWpZ.js";
5
- import { u as ae } from "./loading-CQm1DKWE.js";
6
- import { C as Q, u as ne } from "./membership-XycnxPEW.js";
7
- import { p as B, f as K } from "./plugins-DKQeoL_e.js";
4
+ import "./index-CJAFz9Nn.js";
5
+ import { u as ae } from "./loading-CsOSUWBd.js";
6
+ import { C as Q, u as ne } from "./membership-C5JWO1FM.js";
7
+ import { p as B, f as K } from "./plugins-De_chCYU.js";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-DzsxJorb.js";
10
- import { F as ie } from "./index-B_BmgKrh.js";
9
+ import { u as se } from "./vue-i18n-B_qtODCw.js";
10
+ import { F as ie } from "./index-BaTnDV-T.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-D23Dt1x4.js";
14
- import { Z as h } from "./zod-DZkNj425.js";
15
- import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js";
16
- import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js";
17
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js";
18
- import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js";
19
- import { i as fe, F as ye, h as j, t as we } from "./helper-DqDOnLCf.js";
13
+ import { u as le } from "./business-9_NOI2V9.js";
14
+ import { Z as h } from "./zod-CmPMd-h0.js";
15
+ import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js";
16
+ import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js";
17
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js";
18
+ import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-DFzVuuEy.js";
19
+ import { i as fe, F as ye, h as j, t as we } from "./helper-BH9HMikb.js";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-CEh6ryp2.js";
22
- import { R as L } from "./app-C06bAZj3.js";
21
+ import { m as G } from "./index-B7-Uvnfn.js";
22
+ import { R as L } from "./app-BG-zK89d.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }