@feedmepos/mf-connect 0.1.121-dev → 0.1.121-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 (147) hide show
  1. package/dist/{App-DwtaLO6F.js → App-C4T5UWGw.js} +493 -502
  2. package/dist/{Bin-BBaVggZI.js → Bin-ude598pY.js} +8 -8
  3. package/dist/{Broadcast-CqAQ3EmE.js → Broadcast-BtJbmDzX.js} +21 -22
  4. package/dist/{CampaignAnalytic-34bfP8iY.js → CampaignAnalytic-DxC_sgPy.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BvAAxE3a.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CBy6cXYx.js} +9 -8
  6. package/dist/{Card-8hlnKnhk.js → Card-B6Qt_KqI.js} +22 -22
  7. package/dist/{Collections-BJ0-UjKf.js → Collections-BCsbhQJM.js} +185 -197
  8. package/dist/{Credit-DJNc__yp.js → Credit-CCl-UjVj.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BvilcyyB.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DE_JYKS8.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CReXb9gY.js +3493 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DFzVuuEy.js → EffectSheet.vue_vue_type_style_index_0_lang-D_wHxBmj.js} +16 -16
  12. package/dist/{Experience-D-cUhjWc.js → Experience-BZfx679t.js} +31 -32
  13. package/dist/{FileSaver.min-DKYYse6A.js → FileSaver.min-aAU7_riE.js} +1 -1
  14. package/dist/{Game-DdFV90Kp.js → Game-L-RmEmNY.js} +18 -19
  15. package/dist/{GiftCardSetup-Dz0AN159.js → GiftCardSetup-BA_I83wm.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-GCp3IFaC.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CtiPxBgn.js} +7 -7
  17. package/dist/{Goals-Dg_kAezl.js → Goals-Dur5LKYk.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js → ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.js} +1 -1
  19. package/dist/{Index-ZSup3I7J.js → Index-_sUu1gDp.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DisF-jcd.js → LocationPicker.vue_vue_type_script_setup_true_lang-BgweoLh2.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BHhjZOYi.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BjvB1fab.js} +1 -1
  22. package/dist/{LoyaltyDashboard-D8BhHsaw.js → LoyaltyDashboard-DgLAdZiP.js} +15 -15
  23. package/dist/{MainLayout-BBnhRxyR.js → MainLayout-DOXx217V.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DFrPlj5u.js → MainLayout.vue_vue_type_script_setup_true_lang-BwT0vGID.js} +3 -3
  25. package/dist/{Marketing-5F9LLn91.js → Marketing-CoBYtHdr.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-C7dD4Bzw.js → MarketingMaterialEdit-R2jgDJKr.js} +211 -214
  27. package/dist/{Member-Dk4JeGru.js → Member-CQicHGEK.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-ISolD_Qg.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BY57N2OM.js} +47 -39
  29. package/dist/{MemberImportHistory-C0Ep8L2q.js → MemberImportHistory-C_xDFYQh.js} +7 -7
  30. package/dist/{MemberList-BsuPfBgk.js → MemberList-DaOsohKg.js} +105 -103
  31. package/dist/{MemberTransactions-mZ3fHw5O.js → MemberTransactions-DOCrHQ2s.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js → MessageInput.vue_vue_type_script_setup_true_lang-ep7Yqi5n.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-caED3JRW.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CTorzIeM.js} +1 -1
  34. package/dist/{Mission-C7DqUOJz.js → Mission-BeNYiQ9K.js} +21 -22
  35. package/dist/{Overview-U201nBVO.js → Overview-8QoQ_gHU.js} +20 -20
  36. package/dist/{Overview-VABLg36G.js → Overview-BMXpAv-n.js} +144 -145
  37. package/dist/{Point-DU6Ndv35.js → Point-Dyq5SXT2.js} +21 -22
  38. package/dist/{Promotion-9UhZXNPb.js → Promotion-BLAsz0mu.js} +131 -137
  39. package/dist/{Queue-CUxMedbd.js → Queue-qmf3ymVp.js} +45 -45
  40. package/dist/{Record-BIftCQzV.js → Record-DMqhKlIc.js} +9 -9
  41. package/dist/{Review-lyVgTfsP.js → Review-DDGtAXxX.js} +2 -2
  42. package/dist/ReviewFacebookCallback-jCP7vNJ3.js +238 -0
  43. package/dist/{ReviewGoogleCallback-B41PXfsj.js → ReviewGoogleCallback-kIu4wO-x.js} +5 -5
  44. package/dist/{Reward-BMun_Rs4.js → Reward-B9eyzyk7.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-3TONrUQu.js → RewardGroup.vue_vue_type_script_setup_true_lang-B5oNDez7.js} +13 -13
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cyo98lN8.js +1884 -0
  47. package/dist/{Segment-1VS7ycXi.js → Segment-CSenE8-8.js} +306 -303
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5iJSlxi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-gUmEIxLj.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CXY9Wyk9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-5m7qY393.js} +4 -4
  50. package/dist/{Setting-BdtzvKjt.js → Setting-CshEhFJ0.js} +148 -159
  51. package/dist/{SettingAdvertisements-BO2l3HBT.js → SettingAdvertisements-B7NU1mTE.js} +12 -12
  52. package/dist/Settings-CSeRLtGl.js +179 -0
  53. package/dist/{Store-DWQz-MgY.js → Store-BouP_m9K.js} +28 -28
  54. package/dist/{StoreRewards-Bfwuqxf-.js → StoreRewards-NX24LqS_.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2zDGFAw.js +1265 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-IGh7Kiot.js +142 -0
  57. package/dist/{Tier-CKn-l-wY.js → Tier-Cg5KAErk.js} +687 -2575
  58. package/dist/{Title-BXDk69uL.js → Title-BcziCAh4.js} +94 -95
  59. package/dist/{Transaction-D4HQO4i9.js → Transaction-DK0Splad.js} +2 -2
  60. package/dist/Upselling-1RSD_l_k.js +200 -0
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-um124o4t.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C-mg8LqR.js} +26 -26
  62. package/dist/{Voucher-BGIyw4jq.js → Voucher-DX6-GX17.js} +19 -19
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BKyZj5SP.js → VoucherEditor.vue_vue_type_script_setup_true_lang-7KZNW6gS.js} +12 -12
  64. package/dist/{WhatsappAccount-Cd82g_xj.js → WhatsappAccount-qbnBp7mv.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DWy8kS66.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BAw8wUAu.js} +1 -1
  66. package/dist/{WhatsappBot-auQhO8zk.js → WhatsappBot-Dkx24HI7.js} +6 -6
  67. package/dist/{WhatsappBotLogs-CWuJzK9W.js → WhatsappBotLogs-CR9RPc-1.js} +6 -6
  68. package/dist/{WhatsappBotSettings-B8KXMpIF.js → WhatsappBotSettings-DF97RSSV.js} +4 -4
  69. package/dist/{WhatsappLayout-DxooAkkL.js → WhatsappLayout-JAye9JZI.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CYHmgQ2v.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-toCNd_Ip.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js → ZodTextField.vue_vue_type_script_setup_true_lang-DvMdQKET.js} +2 -2
  72. package/dist/{app-BG-zK89d.js → app-O2-Xtjxu.js} +15017 -14861
  73. package/dist/app.js +3 -4
  74. package/dist/{base.export-BcMuREGH.js → base.export-0NAAWE2x.js} +2 -2
  75. package/dist/{business-9_NOI2V9.js → business-DO-6gAei.js} +1 -1
  76. package/dist/{campaign-DjBTRZyA.js → campaign-CKpTYx8r.js} +94 -121
  77. package/dist/{campaign-8y_9SvKP.js → campaign-CjtbytTA.js} +28 -34
  78. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  79. package/dist/campaign.fn-DNva0Lzi.js +776 -0
  80. package/dist/{collection.fn-yXurU9iv.js → collection.fn-DgVYvv2u.js} +2 -2
  81. package/dist/{currency-YzyBFtDU.js → currency-RCSoljIc.js} +1 -1
  82. package/dist/{effect-bMGarJZ6.js → effect-Cic-yJ5a.js} +1 -1
  83. package/dist/{email-addresses-Ciu83j_3.js → email-addresses-Cz7nxyM7.js} +25 -25
  84. package/dist/{feature-flag-H5D1Cob5.js → feature-flag-BHFUKA3S.js} +70 -70
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BH9HMikb.js → helper-H_gC1vRi.js} +1 -1
  87. package/dist/{index-CH-KHkm5.js → index-B-RKMcrS.js} +1 -1
  88. package/dist/{index-DkMy7WpU.js → index-BEFoWcsk.js} +2 -2
  89. package/dist/{index-DbxiG50D.js → index-BFxCHHSQ.js} +2 -2
  90. package/dist/{index-Cyf05z_2.js → index-BU-CbflW.js} +2 -2
  91. package/dist/{index-CIOidYvo.js → index-C-vDa3pL.js} +1 -1
  92. package/dist/{index-MWNnMT2T.js → index-CSNMZuv4.js} +4 -4
  93. package/dist/{index-RvJ5cq__.js → index-CTDzF7d_.js} +3 -3
  94. package/dist/{index-BaTnDV-T.js → index-D5_gAcWw.js} +2613 -2699
  95. package/dist/{index-BHO82_Ix.js → index-DRuHmNoi.js} +1 -1
  96. package/dist/{index-DYu7ZdQt.js → index-DVIKJ8Fi.js} +1 -1
  97. package/dist/{index-_giqGuYM.js → index-DVt628Qh.js} +1 -1
  98. package/dist/{index-pnM5q4c_.js → index-DZBbFrO4.js} +232 -389
  99. package/dist/{index-BxwJfT08.js → index-DlRDCDW-.js} +197 -197
  100. package/dist/{index-BvKJM3M2.js → index-Dw5ikwFR.js} +15 -29
  101. package/dist/{index-CooParq-.js → index-G8S_j3nj.js} +581 -682
  102. package/dist/{index-taPHgOqE.js → index-GJRqAxuJ.js} +251 -608
  103. package/dist/{index-Ye3qFt34.js → index-bMAgU-Xo.js} +10 -10
  104. package/dist/{index-DpkoCl4z.js → index-ka7lQ9t1.js} +10 -10
  105. package/dist/{index-B7-Uvnfn.js → index-rQ30JRKa.js} +6 -19
  106. package/dist/{index-CJAFz9Nn.js → index-zsTY_sDR.js} +1 -1
  107. package/dist/{index.esm2017-CLxZor1Y.js → index.esm2017-Cf5e9e4I.js} +104 -104
  108. package/dist/{loading-CsOSUWBd.js → loading-Q15eugE9.js} +1 -1
  109. package/dist/{lodash-CshibTzh.js → lodash-B9y2Z6FT.js} +1 -1
  110. package/dist/{member-import-BdaGAjjt.js → member-import-B7-pNlAu.js} +1 -1
  111. package/dist/{membership-C5JWO1FM.js → membership-FjTQN8-W.js} +2 -2
  112. package/dist/{money-Blt5EM43.js → money-DpnjYb20.js} +1 -1
  113. package/dist/{number-COm3MiH8.js → number-DQpgkGJp.js} +1 -1
  114. package/dist/objectid-DDT17fUp.js +145 -0
  115. package/dist/{onboarding-BbQDJOOS.js → onboarding-j-EtZDu5.js} +36 -36
  116. package/dist/{onboardingSetup-BLISY52M.js → onboardingSetup-B4yc4Acp.js} +2 -2
  117. package/dist/{plugins-De_chCYU.js → plugins-TZdigPwR.js} +3 -3
  118. package/dist/{reward-Dl8Zoxe_.js → reward-BpRIHbOy.js} +1 -1
  119. package/dist/{rule-D6_iss3O.js → rule-PjQfvtJP.js} +492 -572
  120. package/dist/rule-builder-Vloq9R4R.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-CeZkljlm.js +275 -0
  123. package/dist/{timezone-CA5FwOyy.js → timezone-BmgCN50d.js} +1 -1
  124. package/dist/{transaction.fn-DI_NeGQb.js → transaction.fn-C9wUfIRo.js} +2 -2
  125. package/dist/{trigger-CuymoMM-.js → trigger-D9XVMrkP.js} +9 -9
  126. package/dist/{useMarketingMaterialActions-Bz0Kgvgd.js → useMarketingMaterialActions-2_HeLxeK.js} +4 -4
  127. package/dist/{usePagination-yb1rupwa.js → usePagination-Do3Rw4mx.js} +1 -1
  128. package/dist/{user-QSKyFaMI.js → user-CJpvF5mn.js} +1 -1
  129. package/dist/vue-i18n-CJsKXxJX.js +2365 -0
  130. package/dist/{xlsx--RjkGa9A.js → xlsx-CaTmMdcM.js} +440 -440
  131. package/dist/{zod-CmPMd-h0.js → zod-BcPs1As4.js} +1 -1
  132. package/package.json +3 -7
  133. package/dist/AuditLogs-s572aHLw.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js +0 -4439
  135. package/dist/Grab-BSQt4deB.js +0 -301
  136. package/dist/ReviewFacebookCallback-Da5G19bE.js +0 -225
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHzFgr4h.js +0 -1923
  138. package/dist/Settings-CvYawDU5.js +0 -286
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CBwmDKAw.js +0 -1319
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js +0 -7007
  141. package/dist/Upselling-CikWzKq7.js +0 -1032
  142. package/dist/campaign.fn-COkPH1QE.js +0 -776
  143. package/dist/duplicateCampaign-dRWioann.js +0 -51
  144. package/dist/google-BQK68wbe.js +0 -5
  145. package/dist/objectid-DQTx3-ee.js +0 -145
  146. package/dist/template-Cw6j1cLX.js +0 -224
  147. package/dist/vue-i18n-B_qtODCw.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-CsOSUWBd.js";
2
+ import { u as te } from "./loading-Q15eugE9.js";
3
3
  import { u as ne } from "./app-wDQR6dpb.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";
4
+ import { u as se } from "./business-DO-6gAei.js";
5
+ import { u as oe } from "./membership-FjTQN8-W.js";
6
+ import "./index-CTDzF7d_.js";
7
+ import { b as ae } from "./index-DZBbFrO4.js";
8
+ import "./index-zsTY_sDR.js";
9
+ import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.js";
10
+ import { f as D, p as ie } from "./plugins-TZdigPwR.js";
11
+ import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-IGh7Kiot.js";
12
+ import { u as ce } from "./vue-i18n-CJsKXxJX.js";
13
13
  import { useRouter as de } from "vue-router";
14
- import { m as me } from "./index-B7-Uvnfn.js";
15
- import { R as ue } from "./app-BG-zK89d.js";
14
+ import { m as me } from "./index-rQ30JRKa.js";
15
+ import { R as ue } from "./app-O2-Xtjxu.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-Q15eugE9.js";
3
+ import { u as M } from "./business-DO-6gAei.js";
4
+ import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
5
+ import { u as R } from "./vue-i18n-CJsKXxJX.js";
6
+ import { g as j } from "./google-C3S8u0mT.js";
7
+ import { R as D } from "./app-O2-Xtjxu.js";
8
+ import { useRouter as H } from "vue-router";
9
+ import { r as h } from "./index-ka7lQ9t1.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-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";
4
+ import { c as q, e as Le, S as He } from "./index-bMAgU-Xo.js";
5
+ import { u as ot } from "./loading-Q15eugE9.js";
6
+ import { u as Xe, C as Ie } from "./membership-FjTQN8-W.js";
7
+ import { o as ut, p as mt, q as pt, r as Qe, s as ft, t as yt } from "./index-G8S_j3nj.js";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.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";
9
+ import { _ as pe } from "./lodash-B9y2Z6FT.js";
10
+ import { c as _e } from "./index-CTDzF7d_.js";
11
+ import { u as ve } from "./vue-i18n-CJsKXxJX.js";
12
+ import { Z as ie, g as ae, a as se } from "./zod-BcPs1As4.js";
13
+ import { z as re, R as Ae } from "./app-O2-Xtjxu.js";
14
14
  import { u as je } from "./app-wDQR6dpb.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";
15
+ import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DvMdQKET.js";
16
+ import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-TZdigPwR.js";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.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";
18
+ import { _ as ht } from "./index-D5_gAcWw.js";
19
+ import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.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-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";
21
+ import { z as Ct, a as St } from "./money-DpnjYb20.js";
22
+ import { f as Ft } from "./currency-RCSoljIc.js";
23
+ import { F as wt } from "./number-DQpgkGJp.js";
24
+ import { a as $t, t as kt } from "./helper-H_gC1vRi.js";
25
+ import "./index-zsTY_sDR.js";
26
+ import "./index-DZBbFrO4.js";
27
+ import "./index-GJRqAxuJ.js";
28
+ import "./index-BFxCHHSQ.js";
29
29
  import "./index-I9lmcd2w.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";
30
+ import "./index-DVIKJ8Fi.js";
31
+ import { m as Pt } from "./index-BU-CbflW.js";
32
+ import { m as De } from "./index-rQ30JRKa.js";
33
+ import { g as Ke } from "./index-C-vDa3pL.js";
34
+ import { u as Vt } from "./business-DO-6gAei.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-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";
4
+ import "./index-zsTY_sDR.js";
5
+ import { u as ae } from "./loading-Q15eugE9.js";
6
+ import { C as Q, u as ne } from "./membership-FjTQN8-W.js";
7
+ import { p as B, f as K } from "./plugins-TZdigPwR.js";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-B_qtODCw.js";
10
- import { F as ie } from "./index-BaTnDV-T.js";
9
+ import { u as se } from "./vue-i18n-CJsKXxJX.js";
10
+ import { F as ie } from "./index-D5_gAcWw.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-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";
13
+ import { u as le } from "./business-DO-6gAei.js";
14
+ import { Z as h } from "./zod-BcPs1As4.js";
15
+ import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DvMdQKET.js";
16
+ import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.js";
17
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-IGh7Kiot.js";
18
+ import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-D_wHxBmj.js";
19
+ import { i as fe, F as ye, h as j, t as we } from "./helper-H_gC1vRi.js";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-B7-Uvnfn.js";
22
- import { R as L } from "./app-BG-zK89d.js";
21
+ import { m as G } from "./index-rQ30JRKa.js";
22
+ import { R as L } from "./app-O2-Xtjxu.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }