@feedmepos/mf-connect 0.1.115-prod → 0.1.117-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 (153) hide show
  1. package/README.md +64 -1
  2. package/dist/{App-CvtSY8ZO.js → App-BpcsgH7K.js} +444 -427
  3. package/dist/AuditLogs-BNnUiVnD.js +2016 -0
  4. package/dist/{Bin-B3gS9QVZ.js → Bin-Cm0wjQeR.js} +8 -8
  5. package/dist/{Broadcast-DAeb-HaN.js → Broadcast-BoJaHqnO.js} +22 -21
  6. package/dist/{CampaignAnalytic-BfTaHVem.js → CampaignAnalytic-Eg4xZW0B.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js} +9 -9
  8. package/dist/{Card-JFeVIwFs.js → Card-BfkMcFaG.js} +25 -24
  9. package/dist/{Collections-xcDpEhIm.js → Collections-RXmxQbII.js} +197 -185
  10. package/dist/{Credit-C9HJZjDS.js → Credit-CsRPM1jv.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +4442 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js → EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js} +32 -32
  14. package/dist/{Experience-DszS8gto.js → Experience-BC8Pj-v9.js} +32 -31
  15. package/dist/{FileSaver.min-CFVQKaC-.js → FileSaver.min-DzmoQFA0.js} +1 -1
  16. package/dist/{Game-DhgeN7E2.js → Game-DJXNHFBs.js} +19 -18
  17. package/dist/{GiftCardSetup-CWm6IhrS.js → GiftCardSetup-_0n8lU-t.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js} +7 -7
  19. package/dist/{Goals-DtRVierH.js → Goals-DSZwKpds.js} +4 -4
  20. package/dist/Grab-DDc7e-AC.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js → ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js} +1 -1
  22. package/dist/{Index-DFRcu_qE.js → Index-Cbi0bquE.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js → LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js} +1 -1
  25. package/dist/{LoyaltyDashboard-BWHKDPzk.js → LoyaltyDashboard-fK90c27A.js} +15 -15
  26. package/dist/MainLayout-Bf-l9yL4.js +4 -0
  27. package/dist/{MainLayout-BmpNNAiE.js → MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js} +5 -4
  28. package/dist/Marketing-B7cZGsO-.js +269 -0
  29. package/dist/MarketingMaterialEdit-5IcV2ct6.js +1037 -0
  30. package/dist/{Member-xEzrBW_p.js → Member-BGTrRVdq.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js} +43 -50
  32. package/dist/{MemberImportHistory-CEQpBBF8.js → MemberImportHistory--FxkTJmu.js} +7 -7
  33. package/dist/{MemberList-CCvzkHv8.js → MemberList-EjY5dgwt.js} +103 -105
  34. package/dist/{MemberTransactions-Bmh39J2W.js → MemberTransactions-Oia7LIFK.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js → MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js} +14 -14
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js} +1 -1
  37. package/dist/{Mission-CpUo2Bgw.js → Mission-BFHYb4aT.js} +22 -21
  38. package/dist/{Overview-DcDZmDXA.js → Overview-BVNyQxFL.js} +23 -22
  39. package/dist/{Overview-CwQqQ1Tn.js → Overview-d5U37aot.js} +145 -144
  40. package/dist/{Point-CUNQsQIx.js → Point-CXkqH02Z.js} +22 -21
  41. package/dist/{Promotion-Cqdim7aW.js → Promotion-DdxNvlOO.js} +137 -131
  42. package/dist/{Queue-CNBVh1UG.js → Queue-C96oNKyP.js} +46 -45
  43. package/dist/{Record-BYwz4l4o.js → Record-Bj2e2Y4i.js} +9 -9
  44. package/dist/{Review-CqLcZFj8.js → Review-CJK5S1oI.js} +2 -2
  45. package/dist/ReviewFacebookCallback-ChG7TRy5.js +225 -0
  46. package/dist/{ReviewGoogleCallback-Dg8R7QlO.js → ReviewGoogleCallback-Dmk4VyGA.js} +5 -5
  47. package/dist/{Reward-M8GZ8eHq.js → Reward-Dh2YI0Xb.js} +29 -29
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js → RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +1923 -0
  50. package/dist/{Segment-CrMi6xrp.js → Segment-FYvtCkqH.js} +304 -305
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js} +4 -4
  53. package/dist/Setting-CUAWjCqa.js +574 -0
  54. package/dist/{SettingAdvertisements-Dh7v4c1D.js → SettingAdvertisements-COIQwUD6.js} +12 -12
  55. package/dist/Settings-D2gFPvmW.js +286 -0
  56. package/dist/{Store-CV-BmK5b.js → Store-BAXwiyvx.js} +31 -30
  57. package/dist/{StoreRewards-DPhSLvSZ.js → StoreRewards-2mUavtUg.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +7007 -0
  60. package/dist/{Tier-ChvYps23.js → Tier-BmAOzRHL.js} +2576 -687
  61. package/dist/{Title-v-Ivswr1.js → Title-DMxiUg30.js} +94 -92
  62. package/dist/{Transaction-CRqE1Ix0.js → Transaction-CF6hXEpN.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js} +26 -26
  64. package/dist/{Voucher-Bg8FOuzD.js → Voucher-DrtITxq-.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js → VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js} +16 -16
  66. package/dist/WhatsappAccount-Bb0Y7ikk.js +159 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js +39 -0
  68. package/dist/WhatsappBot-DNvvaPey.js +876 -0
  69. package/dist/WhatsappBotLogs-C8M-1pvv.js +372 -0
  70. package/dist/WhatsappBotSettings-D6egqUyU.js +705 -0
  71. package/dist/WhatsappLayout-DeQTPuF6.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +253 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js → ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js} +2 -2
  74. package/dist/{app-DdNKsn2Q.js → app-BjdLqYQq.js} +8879 -7107
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-R97FrSQL.js → base.export-B68z5BF6.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-Ce8vq3wQ.js → business-D9fgkHxb.js} +1 -1
  79. package/dist/{campaign-C19If7bW.js → campaign-Dw_ujovr.js} +121 -94
  80. package/dist/{campaign-BTllt2LH.js → campaign-eMaPX8r6.js} +31 -25
  81. package/dist/{campaign.enum-9CCbalR4.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/{campaign.fn-B4g03h0A.js → campaign.fn-DFjGNvmN.js} +78 -78
  83. package/dist/{collectible.enum-MvqF7mSg.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-CR0bD33S.js → collection.fn-CCOWtB-c.js} +2 -2
  85. package/dist/{currency-DmlguGIM.js → currency-CTLKReFC.js} +1 -1
  86. package/dist/duplicateCampaign-BcpBfUGL.js +51 -0
  87. package/dist/{effect-Dx3zfl28.js → effect-CTI1ZH57.js} +1 -1
  88. package/dist/{email-addresses-De5PGOY4.js → email-addresses-B74e3bnB.js} +2 -2
  89. package/dist/{feature-flag-CD9V1V0h.js → feature-flag-DVdEaChJ.js} +182 -166
  90. package/dist/google-BQK68wbe.js +5 -0
  91. package/dist/{helper-CEiv7SaO.js → helper-as9K-piK.js} +1 -1
  92. package/dist/{index-CBJy9bxB.js → index-3LjKJhQa.js} +1 -1
  93. package/dist/{index-BW6eb3n6.js → index-8mBfDn3M.js} +611 -252
  94. package/dist/{index-D4d3l0gw.js → index-B0h0iYWP.js} +8 -7
  95. package/dist/{index-BAXKd9Gg.js → index-BEKMTiFb.js} +198 -198
  96. package/dist/{index-B8yWVB8P.js → index-BW7FoVEA.js} +4 -3
  97. package/dist/{index-BVdYxi3l.js → index-B_wRpO02.js} +29 -15
  98. package/dist/{index-B8meeQoD.js → index-Ba719MYq.js} +1 -1
  99. package/dist/{index-BDPnyro2.js → index-BbVbqe4Y.js} +19 -6
  100. package/dist/{index-CqOCJTeR.js → index-BhTrG89b.js} +390 -232
  101. package/dist/index-C-iwb2Ln.js +109 -0
  102. package/dist/{index-CPODug8b.js → index-C5V6u2Qd.js} +2700 -2613
  103. package/dist/{index-CWUrODxL.js → index-CHU3UePP.js} +1 -1
  104. package/dist/{index-IZRfmmde.js → index-CQxkDpX0.js} +683 -581
  105. package/dist/{index-DT3S00_Y.js → index-CWLOcQ6j.js} +11 -10
  106. package/dist/index-C_H8jFYf.js +2743 -0
  107. package/dist/{index-__UT3_Ey.js → index-Ckz6u3ac.js} +2 -2
  108. package/dist/{index-BYI9ttxy.js → index-Czg-2Ni0.js} +8028 -10767
  109. package/dist/{index-xct3mnu8.js → index-DKI8401o.js} +7 -7
  110. package/dist/{index-649OZ_e1.js → index-DcZiikOH.js} +2 -2
  111. package/dist/{index-BquSqx6K.js → index-QHqcSN2q.js} +4 -4
  112. package/dist/{index-BR9h5DTI.js → index-TAoQpeLQ.js} +1 -1
  113. package/dist/index-wsCCqwdr.js +74 -0
  114. package/dist/{index.esm2017-AVbZ9btd.js → index.esm2017-DL6rTGDW.js} +177 -177
  115. package/dist/{loading-BvHm1m3K.js → loading-x6IScY4K.js} +1 -1
  116. package/dist/{lodash-Dvrceo7x.js → lodash-nwnDizYo.js} +1 -1
  117. package/dist/{member-import-c9avpiSS.js → member-import-C-b01Tyd.js} +6 -5
  118. package/dist/{membership-D-pZS634.js → membership-DfarOMtO.js} +3 -3
  119. package/dist/{money-D4skwMkD.js → money-CFn-jR4W.js} +1 -1
  120. package/dist/{number-DJ6ncfT6.js → number-CSlyDL2x.js} +1 -1
  121. package/dist/objectid-zcT6ESET.js +145 -0
  122. package/dist/{onboarding-t7R1d3h-.js → onboarding-DyaFaaF2.js} +25 -25
  123. package/dist/{onboardingSetup-lTaJc0oT.js → onboardingSetup-DQt91O9f.js} +2 -2
  124. package/dist/{plugins-DQNOWwRC.js → plugins-DEHr0UOe.js} +3 -3
  125. package/dist/{MarketingMaterialEdit-x3c_N7Gs.js → remy-icon-BhUGu2NI.js} +2 -1031
  126. package/dist/{reward-BK150pjm.js → reward-Du_Pv-4p.js} +1 -1
  127. package/dist/{rule-COcdAnUu.js → rule-DfqmQTVK.js} +572 -492
  128. package/dist/style.css +1 -1
  129. package/dist/template-CcbNF4PF.js +188 -0
  130. package/dist/{timezone-BP6UC4KL.js → timezone-_4tabIaK.js} +1 -1
  131. package/dist/{transaction.fn-BY0hzon0.js → transaction.fn-C46PHwCV.js} +2 -2
  132. package/dist/{trigger-DVBjVPbN.js → trigger-Dipr6btC.js} +8 -8
  133. package/dist/useMarketingMaterialActions-BAw2ZjeF.js +125 -0
  134. package/dist/{usePagination-QT552XyF.js → usePagination-D6RZ18zS.js} +1 -1
  135. package/dist/{user-CmAxNc7T.js → user-BCexQj3Q.js} +1 -1
  136. package/dist/vue-i18n-DXvyTCZf.js +2365 -0
  137. package/dist/{xlsx-DAczoc8y.js → xlsx-BTxt_Jg6.js} +224 -224
  138. package/dist/{zod-Aj-GuVQL.js → zod-T4wMYjWT.js} +1 -1
  139. package/package.json +6 -2
  140. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +0 -3494
  141. package/dist/Marketing-BKK45Eve.js +0 -236
  142. package/dist/ReviewFacebookCallback-DbSCILNN.js +0 -238
  143. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js +0 -1883
  144. package/dist/Setting-BnFRI0Se.js +0 -2037
  145. package/dist/Settings-BvT8_tkQ.js +0 -179
  146. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js +0 -1264
  147. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js +0 -142
  148. package/dist/google-C3S8u0mT.js +0 -4
  149. package/dist/objectid-DEMM_jdR.js +0 -145
  150. package/dist/rule-builder-Deufb6h_.js +0 -102
  151. package/dist/template-DeebIqJ_.js +0 -236
  152. package/dist/useMarketingMaterialActions-DpQCQHFI.js +0 -96
  153. package/dist/vue-i18n-Cze706-f.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-x6IScY4K.js";
3
+ import { u as Q } from "./business-D9fgkHxb.js";
4
+ import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
5
+ import { u as O } from "./vue-i18n-DXvyTCZf.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-BjdLqYQq.js";
9
+ import { useRouter as oe } from "vue-router";
10
+ import { r as $ } from "./index-CWLOcQ6j.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-xct3mnu8.js";
5
- import { u as ot } from "./loading-BvHm1m3K.js";
6
- import { u as Xe, C as Ie } from "./membership-D-pZS634.js";
7
- import { j as ut, k as mt, l as pt, m as Qe, n as ft, o as yt } from "./index-IZRfmmde.js";
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";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
9
- import { _ as pe } from "./lodash-Dvrceo7x.js";
10
- import { c as _e } from "./index-BYI9ttxy.js";
11
- import { u as ve } from "./vue-i18n-Cze706-f.js";
12
- import { Z as ie, g as ae, a as se } from "./zod-Aj-GuVQL.js";
13
- import { z as re, R as Ae } from "./app-DdNKsn2Q.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";
14
14
  import { u as je } from "./app-wDQR6dpb.js";
15
- import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js";
16
- import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-DQNOWwRC.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";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
18
- import { _ as ht } from "./index-CPODug8b.js";
19
- import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.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";
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-D4skwMkD.js";
22
- import { f as Ft } from "./currency-DmlguGIM.js";
23
- import { F as wt } from "./number-DJ6ncfT6.js";
24
- import { a as $t, t as kt } from "./helper-CEiv7SaO.js";
25
- import "./index-B8meeQoD.js";
26
- import "./index-CqOCJTeR.js";
27
- import "./index-BW6eb3n6.js";
28
- import "./index-D4d3l0gw.js";
29
- import "./index-B8yWVB8P.js";
30
- import { m as Pt } from "./index-__UT3_Ey.js";
31
- import { m as De } from "./index-BDPnyro2.js";
32
- import { g as Ke } from "./index-CWUrODxL.js";
33
- import { u as Vt } from "./business-Ce8vq3wQ.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";
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-B8meeQoD.js";
5
- import { u as ae } from "./loading-BvHm1m3K.js";
6
- import { C as Q, u as ne } from "./membership-D-pZS634.js";
7
- import { p as B, f as K } from "./plugins-DQNOWwRC.js";
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";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-Cze706-f.js";
10
- import { F as ie } from "./index-CPODug8b.js";
9
+ import { u as se } from "./vue-i18n-DXvyTCZf.js";
10
+ import { F as ie } from "./index-C5V6u2Qd.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-Ce8vq3wQ.js";
14
- import { Z as h } from "./zod-Aj-GuVQL.js";
15
- import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js";
16
- import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js";
17
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js";
18
- import { _ as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js";
19
- import { i as fe, F as ye, h as j, t as we } from "./helper-CEiv7SaO.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";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-BDPnyro2.js";
22
- import { R as L } from "./app-DdNKsn2Q.js";
21
+ import { m as G } from "./index-BbVbqe4Y.js";
22
+ import { R as L } from "./app-BjdLqYQq.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }