@feedmepos/mf-connect 0.1.117-prod → 0.1.118-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 (154) hide show
  1. package/README.md +68 -1
  2. package/dist/{App-CAo1izHr.js → App-CBFNBDb2.js} +435 -418
  3. package/dist/AuditLogs-BtSA8b08.js +2016 -0
  4. package/dist/{Bin-DDDfjisJ.js → Bin-CjmS_Tfn.js} +8 -8
  5. package/dist/{Broadcast-BsCulZhE.js → Broadcast-BeePmZa1.js} +22 -21
  6. package/dist/{CampaignAnalytic-CnVYFSkT.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
  8. package/dist/{Card-DPyQH9qZ.js → Card-C8SzQQ0z.js} +25 -24
  9. package/dist/{Collections-CZCVA969.js → Collections-BXNWTSZH.js} +197 -185
  10. package/dist/{Credit-BTg364-i.js → Credit-CK0-0yD1.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +32 -32
  14. package/dist/{Experience-Bk_eUcSX.js → Experience-CWJaj62g.js} +32 -31
  15. package/dist/{FileSaver.min-CXFiZAp7.js → FileSaver.min-lV9H82L5.js} +1 -1
  16. package/dist/{Game-CBnKpFdl.js → Game-zBV1LYAg.js} +19 -18
  17. package/dist/{GiftCardSetup-q75wNV_F.js → GiftCardSetup-Cnq9353j.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
  19. package/dist/{Goals-Bbbgurfd.js → Goals-Utk08egN.js} +4 -4
  20. package/dist/Grab-DwMmWmbT.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
  22. package/dist/{Index-C8_OWllb.js → Index-Bjgs18xf.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DJlE0371.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
  26. package/dist/MainLayout-DlDZQJfy.js +4 -0
  27. package/dist/{MainLayout-Bs2UPvFx.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +5 -4
  28. package/dist/Marketing-B0iKlHP-.js +269 -0
  29. package/dist/MarketingMaterialEdit-BNHxVb8A.js +1037 -0
  30. package/dist/{Member-C4yqwsMH.js → Member-Bcm3_pWB.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +43 -50
  32. package/dist/{MemberImportHistory-CbuXCdxC.js → MemberImportHistory-AQgLzB3g.js} +7 -7
  33. package/dist/{MemberList-CpAepPBe.js → MemberList-CkMTo2uD.js} +103 -105
  34. package/dist/{MemberTransactions-BbpXvsSk.js → MemberTransactions-CxLCVjvw.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +14 -14
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
  37. package/dist/{Mission-Bdb9KVeP.js → Mission-CQS1CoDN.js} +22 -21
  38. package/dist/{Overview-CEiyGMcf.js → Overview-NQ287sgq.js} +23 -22
  39. package/dist/{Overview-D_9JwnFU.js → Overview-UG1IjY7-.js} +145 -144
  40. package/dist/{Point-Bd5cMXQx.js → Point-krMa_mb1.js} +22 -21
  41. package/dist/{Promotion-D9gZDvgR.js → Promotion-vFBmJSti.js} +137 -131
  42. package/dist/{Queue-BnAOL_rp.js → Queue-BusxSPt-.js} +46 -45
  43. package/dist/{Record-D6TWFKe0.js → Record-DjKqn0za.js} +9 -9
  44. package/dist/{Review-DLEgvnc-.js → Review-CqLp8l7U.js} +2 -2
  45. package/dist/ReviewFacebookCallback-D2kMSVFC.js +225 -0
  46. package/dist/{ReviewGoogleCallback-BgAbO3pI.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
  47. package/dist/Reward-FeSxgzuS.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js +1923 -0
  50. package/dist/{Segment-B9Se5FFw.js → Segment-Nj59F9Nr.js} +304 -305
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
  53. package/dist/Setting-CCIzNxv-.js +574 -0
  54. package/dist/{SettingAdvertisements-CLw-dqiA.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
  55. package/dist/Settings-CYjKGCpa.js +286 -0
  56. package/dist/{Store-B5PPP5zM.js → Store-Bp8Zkzi2.js} +31 -30
  57. package/dist/{StoreRewards-DllyaVBY.js → StoreRewards-DXW5nVyW.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js +7007 -0
  60. package/dist/{Tier-M_TApfju.js → Tier-B8Utn9Qb.js} +2576 -687
  61. package/dist/{Title-Cpltm-I2.js → Title-CwaNSFer.js} +94 -92
  62. package/dist/{Transaction-BYfAYRpv.js → Transaction-ieciAdXP.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +26 -26
  64. package/dist/{Voucher-DHoyg0YZ.js → Voucher-BKfujj6r.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +16 -16
  66. package/dist/WhatsappAccount-D73WDP7a.js +161 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js +39 -0
  68. package/dist/WhatsappBot-DTWZAXhi.js +878 -0
  69. package/dist/WhatsappBotLogs-DtDcrjs9.js +372 -0
  70. package/dist/WhatsappBotSettings-7_mH9U4y.js +704 -0
  71. package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
  74. package/dist/{app-B_doYklh.js → app-DX7OWVY2.js} +9159 -7383
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-DmbnT_bp.js → base.export-bamzzexi.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-DdVGtTvx.js → business-D3U9HSu9.js} +1 -1
  79. package/dist/{campaign-jEhKmpKg.js → campaign-BqRf2VUO.js} +121 -94
  80. package/dist/{campaign-CVkA08zl.js → campaign-CKfeN2xN.js} +31 -25
  81. package/dist/{campaign.enum-DWu6-kOo.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/{campaign.fn-BlgEyeFz.js → campaign.fn-DQe5LZuT.js} +82 -82
  83. package/dist/{collectible.enum-CVLkXKml.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-DLNGTrPf.js → collection.fn-BcGqExuE.js} +2 -2
  85. package/dist/{currency-DKS1md4e.js → currency-sjMYWoI8.js} +1 -1
  86. package/dist/duplicateCampaign-CJF3ZLNd.js +51 -0
  87. package/dist/{effect-Bk-zYexf.js → effect-Cv8ugBR3.js} +1 -1
  88. package/dist/{email-addresses-I9A5iLzf.js → email-addresses-CWqtseTn.js} +2 -2
  89. package/dist/{feature-flag-DQti61iR.js → feature-flag-BIh6MM4i.js} +152 -136
  90. package/dist/google-BQK68wbe.js +5 -0
  91. package/dist/{helper-9cPlo6ae.js → helper-WnxOxoRK.js} +1 -1
  92. package/dist/{index-DuvnRxeo.js → index-5TTGGDnF.js} +1 -1
  93. package/dist/{index-CuyzSc1l.js → index-B3CkAr-6.js} +1 -1
  94. package/dist/{index-cgtAlOl9.js → index-B9XVyhtC.js} +8028 -10767
  95. package/dist/{index-ClYX4COd.js → index-BGguMtc0.js} +4 -3
  96. package/dist/{index-CNUXbXvG.js → index-Bdg48Cus.js} +19 -6
  97. package/dist/{index-fHiFL1dW.js → index-BoAmM8QH.js} +29 -15
  98. package/dist/{index-C-OnJpT8.js → index-BtmVXdRR.js} +1 -1
  99. package/dist/{index-1Cdj34z1.js → index-CDTETsXQ.js} +1 -1
  100. package/dist/index-C_H8jFYf.js +2743 -0
  101. package/dist/{index-BxpbI0GH.js → index-CeafUn1o.js} +7 -7
  102. package/dist/{index-Dj51vqab.js → index-CiSTQhs9.js} +4 -4
  103. package/dist/{index-CIwdXphn.js → index-ClvaVYkG.js} +2700 -2613
  104. package/dist/{index-Cj6oxbl0.js → index-CnsSd5Dg.js} +11 -10
  105. package/dist/{index-oNMFyOGe.js → index-D3yYjyaj.js} +8 -7
  106. package/dist/{index-BRm0LMTo.js → index-DDzi_-Lu.js} +611 -252
  107. package/dist/{index-3V8E9GaZ.js → index-DOgDR_QH.js} +2 -2
  108. package/dist/{index-DOE2VR99.js → index-DqZX-A6e.js} +198 -198
  109. package/dist/{index-vKvGJ4Ve.js → index-DxhNNZ-a.js} +2 -2
  110. package/dist/index-DzYFQGSw.js +74 -0
  111. package/dist/index-I9lmcd2w.js +109 -0
  112. package/dist/{index-728mP6kW.js → index-iiWxryxo.js} +683 -581
  113. package/dist/{index-DWkuIfHy.js → index-qI1yx02a.js} +390 -232
  114. package/dist/{index.esm2017-CsF37oA-.js → index.esm2017-GI2alVO5.js} +177 -177
  115. package/dist/{loading-BJJmTFoe.js → loading-Qx5K2WL0.js} +1 -1
  116. package/dist/{lodash-BMJ6_hsa.js → lodash-CeSjJptg.js} +1 -1
  117. package/dist/{member-import-DrGxVJt9.js → member-import-Cq8G7SsW.js} +6 -5
  118. package/dist/{membership-CAqKihwy.js → membership-BbeavSNs.js} +3 -3
  119. package/dist/{money-Bf9d2ZUH.js → money-D8YIFaGA.js} +1 -1
  120. package/dist/{number-CWXlGZa5.js → number-DAubZ5bt.js} +1 -1
  121. package/dist/objectid-DeXFWDMh.js +145 -0
  122. package/dist/{onboarding-Dn9O7r3a.js → onboarding-SyFxaTJY.js} +25 -25
  123. package/dist/{onboardingSetup-BMkDoGy-.js → onboardingSetup-CLpHlBn8.js} +2 -2
  124. package/dist/{plugins-KDgceFWV.js → plugins-BHuaMEYA.js} +3 -3
  125. package/dist/{MarketingMaterialEdit-o88sdvTM.js → remy-icon-BhUGu2NI.js} +2 -1031
  126. package/dist/{reward-eilGRaXi.js → reward-dYWnmAC8.js} +1 -1
  127. package/dist/{rule-Dr9Zjg_o.js → rule-BVsfOP2h.js} +572 -492
  128. package/dist/style.css +1 -1
  129. package/dist/template-BcdtbhUJ.js +188 -0
  130. package/dist/{timezone-C5CIfvHs.js → timezone-CUc7q5Ii.js} +1 -1
  131. package/dist/{transaction.fn-Cr-FLjh0.js → transaction.fn-jF9u_cBy.js} +2 -2
  132. package/dist/{trigger-B0Fv6wbN.js → trigger-COlbQlaB.js} +8 -8
  133. package/dist/useMarketingMaterialActions-Dq6-gsOW.js +125 -0
  134. package/dist/{usePagination-BcA-imTr.js → usePagination-BYZB6ORK.js} +1 -1
  135. package/dist/{user-DRvLwlBE.js → user-DK7L8VFR.js} +1 -1
  136. package/dist/vue-i18n-CDSTH7g5.js +2365 -0
  137. package/dist/{xlsx-CBObn76o.js → xlsx-CKxXlDzD.js} +224 -224
  138. package/dist/{zod-DWU5EdQV.js → zod-DjtAaF0U.js} +1 -1
  139. package/package.json +6 -2
  140. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js +0 -3494
  141. package/dist/Marketing-BvRYzFV8.js +0 -236
  142. package/dist/ReviewFacebookCallback-jVlm2O8f.js +0 -238
  143. package/dist/Reward-DBheQiFu.js +0 -442
  144. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js +0 -1883
  145. package/dist/Setting-B92JT_Y4.js +0 -2037
  146. package/dist/Settings-BmmM8ZnR.js +0 -179
  147. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js +0 -1264
  148. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js +0 -142
  149. package/dist/google-C3S8u0mT.js +0 -4
  150. package/dist/objectid-2DN5a9sY.js +0 -145
  151. package/dist/rule-builder-cz6Dy-no.js +0 -102
  152. package/dist/template-DwbazO8p.js +0 -236
  153. package/dist/useMarketingMaterialActions-CNk3LR9M.js +0 -96
  154. package/dist/vue-i18n-y7bHQpNx.js +0 -2365
@@ -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-Qx5K2WL0.js";
3
+ import { u as Q } from "./business-D3U9HSu9.js";
4
+ import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
5
+ import { u as O } from "./vue-i18n-CDSTH7g5.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-DX7OWVY2.js";
9
+ import { useRouter as oe } from "vue-router";
10
+ import { r as $ } from "./index-CnsSd5Dg.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,36 +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-BxpbI0GH.js";
5
- import { u as ot } from "./loading-BJJmTFoe.js";
6
- import { u as Xe, C as Ie } from "./membership-CAqKihwy.js";
7
- import { j as ut, k as mt, l as pt, m as Qe, n as ft, o as yt } from "./index-728mP6kW.js";
4
+ import { c as q, e as Le, S as He } from "./index-CeafUn1o.js";
5
+ import { u as ot } from "./loading-Qx5K2WL0.js";
6
+ import { u as Xe, C as Ie } from "./membership-BbeavSNs.js";
7
+ import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-iiWxryxo.js";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
9
- import { _ as pe } from "./lodash-BMJ6_hsa.js";
10
- import { c as _e } from "./index-cgtAlOl9.js";
11
- import { u as ve } from "./vue-i18n-y7bHQpNx.js";
12
- import { Z as ie, g as ae, a as se } from "./zod-DWU5EdQV.js";
13
- import { z as re, R as Ae } from "./app-B_doYklh.js";
9
+ import { _ as pe } from "./lodash-CeSjJptg.js";
10
+ import { c as _e } from "./index-B9XVyhtC.js";
11
+ import { u as ve } from "./vue-i18n-CDSTH7g5.js";
12
+ import { Z as ie, g as ae, a as se } from "./zod-DjtAaF0U.js";
13
+ import { z as re, R as Ae } from "./app-DX7OWVY2.js";
14
14
  import { u as je } from "./app-wDQR6dpb.js";
15
- import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js";
16
- import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-KDgceFWV.js";
15
+ import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js";
16
+ import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-BHuaMEYA.js";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
18
- import { _ as ht } from "./index-CIwdXphn.js";
19
- import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js";
18
+ import { _ as ht } from "./index-ClvaVYkG.js";
19
+ import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.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-Bf9d2ZUH.js";
22
- import { f as Ft } from "./currency-DKS1md4e.js";
23
- import { F as wt } from "./number-CWXlGZa5.js";
24
- import { a as $t, t as kt } from "./helper-9cPlo6ae.js";
25
- import "./index-CuyzSc1l.js";
26
- import "./index-DWkuIfHy.js";
27
- import "./index-BRm0LMTo.js";
28
- import "./index-oNMFyOGe.js";
29
- import "./index-ClYX4COd.js";
30
- import { m as Pt } from "./index-3V8E9GaZ.js";
31
- import { m as De } from "./index-CNUXbXvG.js";
32
- import { g as Ke } from "./index-DuvnRxeo.js";
33
- import { u as Vt } from "./business-DdVGtTvx.js";
21
+ import { z as Ct, a as St } from "./money-D8YIFaGA.js";
22
+ import { f as Ft } from "./currency-sjMYWoI8.js";
23
+ import { F as wt } from "./number-DAubZ5bt.js";
24
+ import { a as $t, t as kt } from "./helper-WnxOxoRK.js";
25
+ import "./index-B3CkAr-6.js";
26
+ import "./index-DDzi_-Lu.js";
27
+ import "./index-qI1yx02a.js";
28
+ import "./index-D3yYjyaj.js";
29
+ import "./index-I9lmcd2w.js";
30
+ import "./index-BGguMtc0.js";
31
+ import { m as Pt } from "./index-DOgDR_QH.js";
32
+ import { m as De } from "./index-Bdg48Cus.js";
33
+ import { g as Ke } from "./index-5TTGGDnF.js";
34
+ import { u as Vt } from "./business-D3U9HSu9.js";
34
35
  import { useRouter as Tt } from "vue-router";
35
36
  function nt(b) {
36
37
  return _e.DineroFactory(b).toUnit();
@@ -599,7 +600,7 @@ const Yt = {
599
600
  };
600
601
  }
601
602
  });
602
- var Xt = { mode: "production", appMode: "mf" };
603
+ var Xt = { mode: "development", appMode: "mf" };
603
604
  const Zt = { class: "space-y-8" }, Qt = {
604
605
  key: 0,
605
606
  class: "space-y-16"
@@ -2116,14 +2117,14 @@ const vn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, hn = { class: "
2116
2117
  };
2117
2118
  }
2118
2119
  });
2119
- 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/" };
2120
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 = {
2121
2122
  key: 1,
2122
2123
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
2123
2124
  }, jn = {
2124
2125
  key: 1,
2125
2126
  class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24"
2126
- }, qn = { class: "flex gap-8 items-center" }, Gn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Hn = { class: "flex flex-col gap-16 text-center" }, zn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Va = /* @__PURE__ */ Y({
2127
+ }, qn = { class: "flex gap-8 items-center" }, Gn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Hn = { class: "flex flex-col gap-16 text-center" }, zn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ta = /* @__PURE__ */ Y({
2127
2128
  __name: "Store",
2128
2129
  setup(b) {
2129
2130
  const { t: a } = ve(), d = {
@@ -2624,5 +2625,5 @@ const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
2624
2625
  }
2625
2626
  });
2626
2627
  export {
2627
- Va as default
2628
+ Ta as default
2628
2629
  };
@@ -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-CuyzSc1l.js";
5
- import { u as ae } from "./loading-BJJmTFoe.js";
6
- import { C as Q, u as ne } from "./membership-CAqKihwy.js";
7
- import { p as B, f as K } from "./plugins-KDgceFWV.js";
4
+ import "./index-B3CkAr-6.js";
5
+ import { u as ae } from "./loading-Qx5K2WL0.js";
6
+ import { C as Q, u as ne } from "./membership-BbeavSNs.js";
7
+ import { p as B, f as K } from "./plugins-BHuaMEYA.js";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-y7bHQpNx.js";
10
- import { F as ie } from "./index-CIwdXphn.js";
9
+ import { u as se } from "./vue-i18n-CDSTH7g5.js";
10
+ import { F as ie } from "./index-ClvaVYkG.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-DdVGtTvx.js";
14
- import { Z as h } from "./zod-DWU5EdQV.js";
15
- import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js";
16
- import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js";
17
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js";
18
- import { _ as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js";
19
- import { i as fe, F as ye, h as j, t as we } from "./helper-9cPlo6ae.js";
13
+ import { u as le } from "./business-D3U9HSu9.js";
14
+ import { Z as h } from "./zod-DjtAaF0U.js";
15
+ import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js";
16
+ import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js";
17
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js";
18
+ import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js";
19
+ import { i as fe, F as ye, h as j, t as we } from "./helper-WnxOxoRK.js";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-CNUXbXvG.js";
22
- import { R as L } from "./app-B_doYklh.js";
21
+ import { m as G } from "./index-Bdg48Cus.js";
22
+ import { R as L } from "./app-DX7OWVY2.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }