@feedmepos/mf-connect 0.1.117-dev → 0.1.118-prod

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-BpcsgH7K.js → App-BHcTqLff.js} +89 -97
  2. package/dist/{Bin-Cm0wjQeR.js → Bin-DWhXJmHo.js} +8 -8
  3. package/dist/{Broadcast-BoJaHqnO.js → Broadcast-Ct1DL8Pd.js} +21 -22
  4. package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-BSEKCM-4.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js} +10 -9
  6. package/dist/{Card-BfkMcFaG.js → Card-B7DwrAPH.js} +23 -23
  7. package/dist/{Collections-RXmxQbII.js → Collections-BJw4JJq_.js} +185 -197
  8. package/dist/{Credit-CsRPM1jv.js → Credit-BteIGXkp.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +3496 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js} +30 -30
  12. package/dist/{Experience-BC8Pj-v9.js → Experience-C_VQVfJX.js} +31 -32
  13. package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-CMiQUZQE.js} +1 -1
  14. package/dist/{Game-DJXNHFBs.js → Game-BiHMrMBF.js} +18 -19
  15. package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-DtJIm6oI.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js} +7 -7
  17. package/dist/{Goals-DSZwKpds.js → Goals-B7VjLMDT.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js} +1 -1
  19. package/dist/{Index-Cbi0bquE.js → Index-D_DIHKZG.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js} +1 -1
  22. package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DOgHeJdK.js} +15 -15
  23. package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-CfYgoXLS.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js} +3 -3
  25. package/dist/{Marketing-B7cZGsO-.js → Marketing-B6TCrwaR.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-Bu3a9NGj.js} +211 -214
  27. package/dist/{Member-BGTrRVdq.js → Member-X51KrYXV.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js} +48 -40
  29. package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-CHd9fx7E.js} +7 -7
  30. package/dist/{MemberList-EjY5dgwt.js → MemberList-D4L3bSlw.js} +105 -103
  31. package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CEgjfhnX.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js} +1 -1
  34. package/dist/{Mission-BFHYb4aT.js → Mission-BEVtvY0-.js} +21 -22
  35. package/dist/{Overview-d5U37aot.js → Overview-4QRkldza.js} +144 -145
  36. package/dist/{Overview-BVNyQxFL.js → Overview-DVoXXZ16.js} +21 -21
  37. package/dist/{Point-CXkqH02Z.js → Point-BJmebaL9.js} +21 -22
  38. package/dist/{Promotion-DdxNvlOO.js → Promotion-DWZZBofu.js} +131 -137
  39. package/dist/{Queue-C96oNKyP.js → Queue-DLdsyhCT.js} +46 -46
  40. package/dist/{Record-Bj2e2Y4i.js → Record-QOD3XELf.js} +9 -9
  41. package/dist/{Review-CJK5S1oI.js → Review-CKmhyuqj.js} +2 -2
  42. package/dist/ReviewFacebookCallback-C6DlaJ_j.js +238 -0
  43. package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-CDriVQPZ.js} +5 -5
  44. package/dist/{Reward-Dh2YI0Xb.js → Reward-DftoZfPN.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js} +14 -14
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +1884 -0
  47. package/dist/{Segment-FYvtCkqH.js → Segment-URdB0lnl.js} +307 -304
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js} +15 -15
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js} +4 -4
  50. package/dist/{Setting-CUAWjCqa.js → Setting-BDIHH2Wk.js} +148 -159
  51. package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkJYZnIN.js} +12 -12
  52. package/dist/Settings-9gaegvYJ.js +179 -0
  53. package/dist/{Store-BAXwiyvx.js → Store-CV0kYncl.js} +29 -29
  54. package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-30kSkAZ_.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +1265 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +142 -0
  57. package/dist/{Tier-BmAOzRHL.js → Tier-DiQSC3iv.js} +688 -2576
  58. package/dist/{Title-DMxiUg30.js → Title-DixxpjAg.js} +95 -96
  59. package/dist/{Transaction-CF6hXEpN.js → Transaction-DQK4LUGD.js} +2 -2
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js} +26 -26
  61. package/dist/{Voucher-DrtITxq-.js → Voucher-CSVlk_Hr.js} +19 -19
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js} +12 -12
  63. package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-CQYbv2Ew.js} +66 -64
  64. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js} +1 -1
  65. package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DdO9Bfvh.js} +324 -322
  66. package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-CjjWJGND.js} +11 -11
  67. package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-DYGx-kRr.js} +287 -288
  68. package/dist/{WhatsappLayout-DeQTPuF6.js → WhatsappLayout-B6k_79Kl.js} +3 -3
  69. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js +261 -0
  70. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js} +2 -2
  71. package/dist/{app-BjdLqYQq.js → app-CqQeNnGq.js} +3382 -4110
  72. package/dist/app.js +3 -4
  73. package/dist/{base.export-B68z5BF6.js → base.export-Dls5LQeu.js} +2 -2
  74. package/dist/{business-D9fgkHxb.js → business-gvLSQklz.js} +1 -1
  75. package/dist/{campaign-Dw_ujovr.js → campaign-BqazvOUj.js} +94 -121
  76. package/dist/{campaign-eMaPX8r6.js → campaign-Cd6GmA4U.js} +25 -31
  77. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  78. package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-C0oMb1fs.js} +99 -99
  79. package/dist/{collection.fn-CCOWtB-c.js → collection.fn-CERMsFPh.js} +2 -2
  80. package/dist/{currency-CTLKReFC.js → currency-IkiKiNg1.js} +1 -1
  81. package/dist/{effect-CTI1ZH57.js → effect-j_T62HBN.js} +1 -1
  82. package/dist/{email-addresses-B74e3bnB.js → email-addresses-CN1kPlEj.js} +2 -2
  83. package/dist/{feature-flag-DVdEaChJ.js → feature-flag-DDfyOLsv.js} +88 -88
  84. package/dist/google-C3S8u0mT.js +4 -0
  85. package/dist/{helper-as9K-piK.js → helper-DVUe13eh.js} +1 -1
  86. package/dist/{index-BW7FoVEA.js → index-9RBtEPPj.js} +1 -1
  87. package/dist/{index-Czg-2Ni0.js → index-BmIfGArh.js} +3 -3
  88. package/dist/{index-DKI8401o.js → index-BvkqHehI.js} +7 -7
  89. package/dist/{index-B0h0iYWP.js → index-BvoOJdfc.js} +2 -2
  90. package/dist/{index-CWLOcQ6j.js → index-C-IajuP1.js} +9 -9
  91. package/dist/{index-3LjKJhQa.js → index-COuLtOaw.js} +1 -1
  92. package/dist/{index-QHqcSN2q.js → index-CPyK4a5J.js} +4 -4
  93. package/dist/{index-BbVbqe4Y.js → index-CWGbeg5X.js} +6 -19
  94. package/dist/{index-CHU3UePP.js → index-C_SaKemI.js} +1 -1
  95. package/dist/{index-BEKMTiFb.js → index-Cjy0SXCn.js} +197 -197
  96. package/dist/{index-C5V6u2Qd.js → index-DALsfLV7.js} +2613 -2699
  97. package/dist/{index-CQxkDpX0.js → index-DMiaWY0s.js} +581 -682
  98. package/dist/{index-B_wRpO02.js → index-D_1pnadB.js} +15 -29
  99. package/dist/{index-TAoQpeLQ.js → index-DzbVgUEP.js} +1 -1
  100. package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
  101. package/dist/{index-wsCCqwdr.js → index-UJHdDEG1.js} +2 -2
  102. package/dist/{index-DcZiikOH.js → index-ep_Kxxid.js} +2 -2
  103. package/dist/{index-BhTrG89b.js → index-fNYUguDQ.js} +232 -389
  104. package/dist/{index-Ba719MYq.js → index-jS16KX9p.js} +1 -1
  105. package/dist/{index-Ckz6u3ac.js → index-k7FFxt_M.js} +2 -2
  106. package/dist/{index-8mBfDn3M.js → index-lzQ6ehOk.js} +251 -608
  107. package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-vJKhLfdu.js} +177 -177
  108. package/dist/{loading-x6IScY4K.js → loading-jZV2Dm--.js} +1 -1
  109. package/dist/{lodash-nwnDizYo.js → lodash-C2pLek0l.js} +1 -1
  110. package/dist/{member-import-C-b01Tyd.js → member-import-BKI7soRD.js} +1 -1
  111. package/dist/{membership-DfarOMtO.js → membership-smdlFpPr.js} +2 -2
  112. package/dist/{money-CFn-jR4W.js → money-5XyTnYwW.js} +1 -1
  113. package/dist/{number-CSlyDL2x.js → number-DHU9qJJQ.js} +1 -1
  114. package/dist/objectid-jT5g6pGt.js +145 -0
  115. package/dist/{onboarding-DyaFaaF2.js → onboarding-C_5pyGx-.js} +25 -25
  116. package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-Bd1V-Ipy.js} +2 -2
  117. package/dist/{plugins-DEHr0UOe.js → plugins-D1Ru-da5.js} +3 -3
  118. package/dist/{reward-Du_Pv-4p.js → reward-BqPl68Xk.js} +1 -1
  119. package/dist/{rule-DfqmQTVK.js → rule-WBrRXwL-.js} +492 -572
  120. package/dist/rule-builder-DAlSbaWh.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-DDquG4Xc.js +236 -0
  123. package/dist/{timezone-_4tabIaK.js → timezone-O4qrCDcK.js} +1 -1
  124. package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-CY_F8Nb8.js} +2 -2
  125. package/dist/{trigger-Dipr6btC.js → trigger-D-vySeIB.js} +8 -8
  126. package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-kA6SLHy_.js} +4 -4
  127. package/dist/{usePagination-D6RZ18zS.js → usePagination-AYE_RJH2.js} +1 -1
  128. package/dist/{user-BCexQj3Q.js → user-DJcMkYXP.js} +1 -1
  129. package/dist/vue-i18n-kXHiDb_1.js +2365 -0
  130. package/dist/{xlsx-BTxt_Jg6.js → xlsx--s3hBdDk.js} +224 -224
  131. package/dist/{zod-T4wMYjWT.js → zod-IpHRbxaJ.js} +1 -1
  132. package/package.json +2 -6
  133. package/dist/AuditLogs-BNnUiVnD.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +0 -4442
  135. package/dist/Grab-DDc7e-AC.js +0 -301
  136. package/dist/ReviewFacebookCallback-ChG7TRy5.js +0 -225
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +0 -1923
  138. package/dist/Settings-D2gFPvmW.js +0 -286
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +0 -1319
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +0 -7007
  141. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
  142. package/dist/duplicateCampaign-BcpBfUGL.js +0 -51
  143. package/dist/google-BQK68wbe.js +0 -5
  144. package/dist/objectid-zcT6ESET.js +0 -145
  145. package/dist/template-CcbNF4PF.js +0 -188
  146. package/dist/vue-i18n-DXvyTCZf.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-x6IScY4K.js";
2
+ import { u as te } from "./loading-jZV2Dm--.js";
3
3
  import { u as ne } from "./app-wDQR6dpb.js";
4
- import { u as se } from "./business-D9fgkHxb.js";
5
- import { u as oe } from "./membership-DfarOMtO.js";
6
- import "./index-Czg-2Ni0.js";
7
- import { b as ae } from "./index-BhTrG89b.js";
8
- import "./index-Ba719MYq.js";
9
- import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js";
10
- import { f as D, p as ie } from "./plugins-DEHr0UOe.js";
11
- import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js";
12
- import { u as ce } from "./vue-i18n-DXvyTCZf.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";
13
13
  import { useRouter as de } from "vue-router";
14
- import { m as me } from "./index-BbVbqe4Y.js";
15
- import { R as ue } from "./app-BjdLqYQq.js";
14
+ import { m as me } from "./index-CWGbeg5X.js";
15
+ import { R as ue } from "./app-CqQeNnGq.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,179 @@
1
+ import { defineComponent as N, useSlots as U, openBlock as r, createElementBlock as l, createElementVNode as s, normalizeClass as $, unref as e, toDisplayString as y, createCommentVNode as m, Fragment as b, createBlock as E, createVNode as w, renderSlot as T, ref as x, computed as B, onMounted as G, withCtx as O, renderList as C, createStaticVNode as z } from "vue";
2
+ import { u as A } from "./loading-jZV2Dm--.js";
3
+ import { u as M } from "./business-gvLSQklz.js";
4
+ import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
5
+ import { u as R } from "./vue-i18n-kXHiDb_1.js";
6
+ import { g as j } from "./google-C3S8u0mT.js";
7
+ import { R as D } from "./app-CqQeNnGq.js";
8
+ import { useRouter as H } from "vue-router";
9
+ import { r as h } from "./index-C-IajuP1.js";
10
+ const P = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, q = ["src"], J = { class: "flex flex-col flex-1 gap-1 min-w-0" }, K = { class: "fm-typo-en-body-md-600 capitalize" }, Q = {
11
+ key: 0,
12
+ class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
13
+ }, X = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, Y = /* @__PURE__ */ N({
14
+ __name: "ReviewSource",
15
+ props: {
16
+ icon: {},
17
+ name: {},
18
+ connected: { type: Boolean },
19
+ subtitle: {},
20
+ syncing: { type: Boolean },
21
+ tokenExpired: { type: Boolean }
22
+ },
23
+ emits: ["connect", "sync"],
24
+ setup(o, { emit: p }) {
25
+ const u = p, { t: i } = R(), g = U();
26
+ return (c, a) => (r(), l("div", P, [
27
+ s("div", {
28
+ class: $(["flex items-center gap-12 p-16", e(g).default ? "border-b border-fm-color-neutral-gray-100" : ""])
29
+ }, [
30
+ s("img", {
31
+ src: o.icon,
32
+ class: "w-10 h-10 shrink-0"
33
+ }, null, 8, q),
34
+ s("div", J, [
35
+ s("span", K, y(o.name), 1),
36
+ o.subtitle || !o.connected ? (r(), l("span", Q, y(o.connected ? o.subtitle : e(i)("connect.review.notConnected")), 1)) : m("", !0)
37
+ ]),
38
+ o.connected ? (r(), l(b, { key: 0 }, [
39
+ o.tokenExpired ? (r(), E(e(f).FmChip, {
40
+ key: 0,
41
+ label: e(i)("connect.review.expired"),
42
+ variant: "critical"
43
+ }, null, 8, ["label"])) : m("", !0),
44
+ w(e(f).FmButton, {
45
+ variant: "secondary",
46
+ "prepend-icon": "refresh",
47
+ label: e(i)("connect.review.reconnect"),
48
+ onClick: a[0] || (a[0] = (v) => u("connect"))
49
+ }, null, 8, ["label"]),
50
+ o.tokenExpired ? m("", !0) : (r(), E(e(f).FmButton, {
51
+ key: 1,
52
+ variant: "primary",
53
+ "prepend-icon": "sync",
54
+ label: e(i)("connect.review.sync"),
55
+ loading: o.syncing,
56
+ onClick: a[1] || (a[1] = (v) => u("sync"))
57
+ }, null, 8, ["label", "loading"]))
58
+ ], 64)) : m("", !0)
59
+ ], 2),
60
+ o.connected ? m("", !0) : (r(), l("div", {
61
+ key: 0,
62
+ class: $(["flex items-center justify-between gap-12 p-16", e(g).default ? "border-b border-fm-color-neutral-gray-100" : ""])
63
+ }, [
64
+ s("span", X, y(e(i)("connect.review.connectHint", { name: o.name })), 1),
65
+ w(e(f).FmButton, {
66
+ "prepend-icon": "add",
67
+ label: e(i)("connect.review.connect"),
68
+ onClick: a[2] || (a[2] = (v) => u("connect"))
69
+ }, null, 8, ["label"])
70
+ ], 2)),
71
+ T(c.$slots, "default")
72
+ ]));
73
+ }
74
+ }), Z = { class: "p-24 flex flex-col gap-8" }, ee = { class: "flex flex-col flex-1 min-w-0" }, ne = { class: "fm-typo-en-body-lg-600 truncate" }, oe = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, me = /* @__PURE__ */ N({
75
+ __name: "Settings",
76
+ setup(o) {
77
+ const { t: p } = R(), u = W(), i = H(), g = M(), c = x(null), a = x(!1);
78
+ x(!1);
79
+ const v = B(
80
+ () => {
81
+ var n;
82
+ return c.value ? ((n = c.value.google) == null ? void 0 : n.accessToken) === null : !1;
83
+ }
84
+ );
85
+ B(
86
+ () => {
87
+ var n;
88
+ return c.value ? ((n = c.value.facebook) == null ? void 0 : n.token) === null : !1;
89
+ }
90
+ );
91
+ function _(n) {
92
+ const t = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
93
+ return `${window.location.origin}${t}${n}`;
94
+ }
95
+ async function S() {
96
+ await A.minor(async () => {
97
+ c.value = await h.getSource();
98
+ });
99
+ }
100
+ function V(n) {
101
+ var t;
102
+ return (t = g.locations.find(
103
+ (d) => d._id.toString() === n
104
+ )) == null ? void 0 : t.name;
105
+ }
106
+ function F() {
107
+ u.open({
108
+ message: p("connect.review.syncSuccess"),
109
+ type: "success"
110
+ }), i.push({ name: D["$connect-REVIEW_OVERVIEW"] });
111
+ }
112
+ async function I() {
113
+ var n, t;
114
+ a.value = !0;
115
+ try {
116
+ await h.syncGoogleReviews(), F();
117
+ } catch (d) {
118
+ if (await S(), ((t = (n = c.value) == null ? void 0 : n.google) == null ? void 0 : t.accessToken) === null) {
119
+ u.open({
120
+ message: p("connect.review.tokenExpired"),
121
+ type: "error"
122
+ });
123
+ return;
124
+ }
125
+ throw d;
126
+ } finally {
127
+ a.value = !1;
128
+ }
129
+ }
130
+ async function L() {
131
+ const n = _("/review/google/callback"), { callbackUrl: t } = await h.getOauthUrl("google", n);
132
+ window.location.href = t;
133
+ }
134
+ return G(() => {
135
+ S(), g.readLocations();
136
+ }), (n, t) => (r(), l("div", Z, [
137
+ e(c) ? (r(), l(b, { key: 0 }, [
138
+ w(Y, {
139
+ icon: e(j),
140
+ name: "google",
141
+ connected: !!e(c).google,
142
+ syncing: e(a),
143
+ "token-expired": e(v),
144
+ onConnect: L,
145
+ onSync: I
146
+ }, {
147
+ default: O(() => {
148
+ var d;
149
+ return [
150
+ (r(!0), l(b, null, C((d = e(c).google) == null ? void 0 : d.locations, (k) => (r(), l("div", {
151
+ key: k.googleLocationName,
152
+ class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
153
+ }, [
154
+ w(e(f).FmIcon, {
155
+ name: "location_on",
156
+ class: "text-fm-color-neutral-gray-300 shrink-0"
157
+ }),
158
+ s("div", ee, [
159
+ s("span", ne, y(k.displayName), 1),
160
+ s("span", oe, y(V(k.locationId)), 1)
161
+ ])
162
+ ]))), 128))
163
+ ];
164
+ }),
165
+ _: 1
166
+ }, 8, ["icon", "connected", "syncing", "token-expired"]),
167
+ m("", !0)
168
+ ], 64)) : (r(), l(b, { key: 1 }, C(["google", "facebook"], (d) => s("div", {
169
+ key: d,
170
+ class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
171
+ }, [...t[0] || (t[0] = [
172
+ z('<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)
173
+ ])])), 64))
174
+ ]));
175
+ }
176
+ });
177
+ export {
178
+ me as default
179
+ };
@@ -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-DKI8401o.js";
5
- import { u as ot } from "./loading-x6IScY4K.js";
6
- import { u as Xe, C as Ie } from "./membership-DfarOMtO.js";
7
- import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-CQxkDpX0.js";
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";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
9
- import { _ as pe } from "./lodash-nwnDizYo.js";
10
- import { c as _e } from "./index-Czg-2Ni0.js";
11
- import { u as ve } from "./vue-i18n-DXvyTCZf.js";
12
- import { Z as ie, g as ae, a as se } from "./zod-T4wMYjWT.js";
13
- import { z as re, R as Ae } from "./app-BjdLqYQq.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";
14
14
  import { u as je } from "./app-wDQR6dpb.js";
15
- import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js";
16
- import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-DEHr0UOe.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";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
18
- import { _ as ht } from "./index-C5V6u2Qd.js";
19
- import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js";
18
+ import { _ as ht } from "./index-DALsfLV7.js";
19
+ import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.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-CFn-jR4W.js";
22
- import { f as Ft } from "./currency-CTLKReFC.js";
23
- import { F as wt } from "./number-CSlyDL2x.js";
24
- import { a as $t, t as kt } from "./helper-as9K-piK.js";
25
- import "./index-Ba719MYq.js";
26
- import "./index-8mBfDn3M.js";
27
- import "./index-BhTrG89b.js";
28
- import "./index-B0h0iYWP.js";
29
- import "./index-C-iwb2Ln.js";
30
- import "./index-BW7FoVEA.js";
31
- import { m as Pt } from "./index-Ckz6u3ac.js";
32
- import { m as De } from "./index-BbVbqe4Y.js";
33
- import { g as Ke } from "./index-CHU3UePP.js";
34
- import { u as Vt } from "./business-D9fgkHxb.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";
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";
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: "development", appMode: "mf" };
603
+ var Xt = { mode: "production", 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-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/" };
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/" };
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-Ba719MYq.js";
5
- import { u as ae } from "./loading-x6IScY4K.js";
6
- import { C as Q, u as ne } from "./membership-DfarOMtO.js";
7
- import { p as B, f as K } from "./plugins-DEHr0UOe.js";
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";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-DXvyTCZf.js";
10
- import { F as ie } from "./index-C5V6u2Qd.js";
9
+ import { u as se } from "./vue-i18n-kXHiDb_1.js";
10
+ import { F as ie } from "./index-DALsfLV7.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-D9fgkHxb.js";
14
- import { Z as h } from "./zod-T4wMYjWT.js";
15
- import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js";
16
- import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js";
17
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js";
18
- import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js";
19
- import { i as fe, F as ye, h as j, t as we } from "./helper-as9K-piK.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";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-BbVbqe4Y.js";
22
- import { R as L } from "./app-BjdLqYQq.js";
21
+ import { m as G } from "./index-CWGbeg5X.js";
22
+ import { R as L } from "./app-CqQeNnGq.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }