@feedmepos/mf-connect 0.1.119-dev → 0.1.119-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.
- package/dist/{App-z-u6skb5.js → App-BN2LKM3u.js} +135 -147
- package/dist/{Bin-Dh9RAgYi.js → Bin-DpQ1atb7.js} +8 -8
- package/dist/{Broadcast-Dg6azPS8.js → Broadcast-c1ZyYClI.js} +21 -22
- package/dist/{CampaignAnalytic-CVB4dstO.js → CampaignAnalytic-w1hIlc2r.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DYgBeT23.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js} +9 -8
- package/dist/{Card-CY736Ul0.js → Card-De53Xgbe.js} +22 -22
- package/dist/{Collections-CdTKWkZZ.js → Collections-BL2RD3FU.js} +185 -197
- package/dist/{Credit-CUhEKlMI.js → Credit-2KvFFcwR.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CBwgeTXh.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +3493 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js → EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js} +30 -30
- package/dist/{Experience-CMp09U-6.js → Experience-Cb0jHtVo.js} +31 -32
- package/dist/{FileSaver.min-Bq5McdmK.js → FileSaver.min-UDgZF_Cv.js} +1 -1
- package/dist/{Game-Dv5NvG-q.js → Game-BnysxSMs.js} +18 -19
- package/dist/{GiftCardSetup-SO2Tk5In.js → GiftCardSetup-s1OR6xQq.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CgG5vHCp.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js} +7 -7
- package/dist/{Goals-BEwQP4cY.js → Goals-BAieLPzR.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js → ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js} +1 -1
- package/dist/{Index-8F2LOWng.js → Index-DnX16GAE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BwAjki7Y.js → LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DK4C0Y9j.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js} +1 -1
- package/dist/{LoyaltyDashboard-rWm0b8cm.js → LoyaltyDashboard-D8g6OSbC.js} +15 -15
- package/dist/{MainLayout-ezbgp2IQ.js → MainLayout-DWABjpQn.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-1QY5-U5y.js → MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js} +3 -3
- package/dist/{Marketing-DcWF4xVc.js → Marketing-Dagatr0y.js} +4 -4
- package/dist/{MarketingMaterialEdit-C1bXj_hU.js → MarketingMaterialEdit-DYVzNDpM.js} +211 -214
- package/dist/{Member-CgDZqGsV.js → Member-DAxdEF_Z.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dh1_j06F.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js} +47 -39
- package/dist/{MemberImportHistory-DT3QJ5se.js → MemberImportHistory-2gx6FnLh.js} +7 -7
- package/dist/{MemberList-Bm05jnbk.js → MemberList-By_gGl-J.js} +105 -103
- package/dist/{MemberTransactions-D90tTpdC.js → MemberTransactions-BEF-4ZNp.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jvgjOXXA.js → MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CxL-Nh6i.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js} +1 -1
- package/dist/{Mission-D_l2eJI3.js → Mission-jg15lBxo.js} +21 -22
- package/dist/{Overview-BOZBnorP.js → Overview-BFKLTAk1.js} +144 -145
- package/dist/{Overview-1AYfTeMD.js → Overview-C7WfdzfV.js} +20 -20
- package/dist/{Point-Cqy4XzeG.js → Point-dv9WgWTQ.js} +21 -22
- package/dist/{Promotion-9RDNbCgB.js → Promotion-mFPF_8jO.js} +131 -137
- package/dist/{Queue-D2Eie_np.js → Queue-BQoR_M5H.js} +45 -45
- package/dist/{Record-e4B--FD8.js → Record-1JZ1N5iX.js} +9 -9
- package/dist/{Review-DcUpSvc-.js → Review-B52AxCeT.js} +2 -2
- package/dist/ReviewFacebookCallback-ihTdiI8V.js +238 -0
- package/dist/{ReviewGoogleCallback-JPkamgo2.js → ReviewGoogleCallback-DO6SVFIC.js} +5 -5
- package/dist/{Reward-BQJw-R8V.js → Reward-Cp4jPAB0.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D_DSQ8q2.js → RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +1884 -0
- package/dist/{Segment-Cjdqsqqg.js → Segment-DaKw0YXF.js} +306 -303
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-g-CJUZBF.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-lbH0b170.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js} +4 -4
- package/dist/{Setting-B3HK4mtx.js → Setting-DveUrt8J.js} +148 -159
- package/dist/{SettingAdvertisements-BQFJpdIm.js → SettingAdvertisements-QRXOMNnM.js} +12 -12
- package/dist/Settings-D9D-mkBa.js +179 -0
- package/dist/{Store-mp1LyXwr.js → Store-DjdXRw3V.js} +28 -28
- package/dist/{StoreRewards-DiSB6d7_.js → StoreRewards-CjlGrc9E.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +1265 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +142 -0
- package/dist/{Tier-CxaXh96q.js → Tier-D74Oh2np.js} +687 -2575
- package/dist/{Title-Byz0TGpi.js → Title-CeeviOW8.js} +94 -95
- package/dist/{Transaction-CNXulI3o.js → Transaction-CWdw0ITl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0bfVZf8.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js} +26 -26
- package/dist/{Voucher-CVw3E8Y4.js → Voucher-C0nNXMtv.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C0d3ktXA.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js} +12 -12
- package/dist/{WhatsappAccount-5vLzjaIV.js → WhatsappAccount-CoLSjCQ2.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CwGBRX-Q.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js} +1 -1
- package/dist/{WhatsappBot-BWJbD7Gk.js → WhatsappBot-kLb3kUav.js} +6 -6
- package/dist/{WhatsappBotLogs-C8gpmZyC.js → WhatsappBotLogs-jcYaHs0t.js} +6 -6
- package/dist/{WhatsappBotSettings-BvPnKHz-.js → WhatsappBotSettings-B6jJD61h.js} +4 -4
- package/dist/{WhatsappLayout-DJXhXeXf.js → WhatsappLayout-C24bIjI2.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BxUYjrWQ.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js → ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js} +2 -2
- package/dist/{app-BF1vds2J.js → app-C06bAZj3.js} +10806 -11561
- package/dist/app.js +3 -4
- package/dist/{base.export-B7FU8J4P.js → base.export-CgNRhKu8.js} +2 -2
- package/dist/{business-DkUMhys1.js → business-D23Dt1x4.js} +1 -1
- package/dist/{campaign-C9cVkGMF.js → campaign-DfEvGigm.js} +94 -121
- package/dist/{campaign-0AgQP43B.js → campaign-FVcbXtrP.js} +28 -34
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/campaign.fn-0MNUj1fZ.js +776 -0
- package/dist/{collection.fn-B_QnW0e3.js → collection.fn-DC1AMI9o.js} +2 -2
- package/dist/{currency-XQmondpC.js → currency-Bra2RJK4.js} +1 -1
- package/dist/{effect-Mwn1x6qN.js → effect-EL4V3pAu.js} +1 -1
- package/dist/{email-addresses-DQQAi6-l.js → email-addresses-Ddtf1x_y.js} +2 -2
- package/dist/{feature-flag-B1VMMZMd.js → feature-flag-umACX47C.js} +70 -70
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-D1R8vyjc.js → helper-DqDOnLCf.js} +1 -1
- package/dist/{index-Rs75lw-x.js → index-B2lqC_hH.js} +1 -1
- package/dist/{index-C9Nbb7wc.js → index-B3U3KZl0.js} +2 -2
- package/dist/{index-CRAuAyO3.js → index-BTjhdlN_.js} +1 -1
- package/dist/{index-Bm43wR8L.js → index-B_BmgKrh.js} +2613 -2699
- package/dist/{index-DMfCzjiA.js → index-BkKu2G2c.js} +2 -2
- package/dist/{index-ug7pxPAX.js → index-BroF2fC8.js} +251 -608
- package/dist/{index-P8DDRVa3.js → index-Bvk61_w_.js} +1 -1
- package/dist/{index-DQnCdGWe.js → index-ByVPdKdB.js} +581 -682
- package/dist/{index-Bym-ZIcv.js → index-BzwwXWpZ.js} +1 -1
- package/dist/{index-DaUhJ6xV.js → index-C3hAzzS2.js} +15 -29
- package/dist/{index-CzE9ZPDV.js → index-C3lk4GHF.js} +4 -4
- package/dist/{index-CLlGMbnP.js → index-C6p9Lsvf.js} +1 -1
- package/dist/{index-eR9mqPPV.js → index-CEh6ryp2.js} +6 -19
- package/dist/{index-mOGrVzUV.js → index-DK9zxpDu.js} +3 -3
- package/dist/{index-ytSMcSMt.js → index-DuCJtx1m.js} +1 -1
- package/dist/{index-ZYrey0SM.js → index-LjoAs_nX.js} +10 -10
- package/dist/{index-BU6CU5MP.js → index-TDCPGtW3.js} +232 -389
- package/dist/{index-CPB7j8Wn.js → index-iVbjwKxc.js} +10 -10
- package/dist/{index-Cg8Z5eYT.js → index-pfmx-Gor.js} +2 -2
- package/dist/{index-D5BwAYuA.js → index-rcfcslIC.js} +197 -197
- package/dist/{index.esm2017-Gkctw9Mb.js → index.esm2017-DCuQPCX2.js} +111 -111
- package/dist/{loading-kUQqT44G.js → loading-CQm1DKWE.js} +1 -1
- package/dist/{lodash-B4AjV7YZ.js → lodash-C2wVbAap.js} +1 -1
- package/dist/{member-import-CwDUG5mj.js → member-import-BLEmTRso.js} +1 -1
- package/dist/{membership-BI6U8-eM.js → membership-XycnxPEW.js} +2 -2
- package/dist/{money-Bum-AbB7.js → money-DY_QGzd1.js} +1 -1
- package/dist/{number-uAoNqG-N.js → number-BHthf4qF.js} +1 -1
- package/dist/objectid-CPCAqIiC.js +145 -0
- package/dist/{onboarding-wtYzQipv.js → onboarding-BOJw54Fn.js} +36 -36
- package/dist/{onboardingSetup-DlYM-oqd.js → onboardingSetup-Cf2u1tXu.js} +2 -2
- package/dist/{plugins-BGyTPNfc.js → plugins-DKQeoL_e.js} +3 -3
- package/dist/{reward-D0xtG-bp.js → reward-D4RIYSpl.js} +1 -1
- package/dist/{rule-BAA5-vRj.js → rule-Ba-s0L_w.js} +492 -572
- package/dist/rule-builder-D0B0DPao.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-B40I16Yg.js +236 -0
- package/dist/{timezone-Bbw2OeEP.js → timezone-CAc8xi1h.js} +1 -1
- package/dist/{transaction.fn-DZdNjP_E.js → transaction.fn-Cp2hnhyU.js} +2 -2
- package/dist/{trigger-BpotFb7G.js → trigger-3ebhNBX7.js} +9 -9
- package/dist/{useMarketingMaterialActions-CQ1M0N9c.js → useMarketingMaterialActions-6URv8neP.js} +4 -4
- package/dist/{usePagination-qALFI_Td.js → usePagination-C-fyMmiy.js} +1 -1
- package/dist/{user-X_94TRIK.js → user-T-iXTrYV.js} +1 -1
- package/dist/vue-i18n-DzsxJorb.js +2365 -0
- package/dist/{xlsx-DW48eXDT.js → xlsx-B8OqaJfb.js} +224 -224
- package/dist/{zod-BAP9II5C.js → zod-DZkNj425.js} +1 -1
- package/package.json +3 -8
- package/dist/AuditLogs-J0UJ3HJW.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BC4jTtVY.js +0 -4439
- package/dist/Grab-npbL7p7S.js +0 -301
- package/dist/ReviewFacebookCallback-BhHdYb4X.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js +0 -1923
- package/dist/Settings-DKWkiRuA.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BAYKqf-Y.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js +0 -7007
- package/dist/Upselling-Dto64bmE.js +0 -1013
- package/dist/campaign.fn-N6rJeDUx.js +0 -776
- package/dist/duplicateCampaign-CvQRWP-Z.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-CPTCMH2h.js +0 -145
- package/dist/template-DKgW9ul3.js +0 -188
- package/dist/vue-i18n-CRFpVnMa.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-
|
|
2
|
+
import { u as te } from "./loading-CQm1DKWE.js";
|
|
3
3
|
import { u as ne } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { u as se } from "./business-
|
|
5
|
-
import { u as oe } from "./membership-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { b as ae } from "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { f as D, p as ie } from "./plugins-
|
|
11
|
-
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as ce } from "./vue-i18n-
|
|
4
|
+
import { u as se } from "./business-D23Dt1x4.js";
|
|
5
|
+
import { u as oe } from "./membership-XycnxPEW.js";
|
|
6
|
+
import "./index-DK9zxpDu.js";
|
|
7
|
+
import { b as ae } from "./index-TDCPGtW3.js";
|
|
8
|
+
import "./index-BzwwXWpZ.js";
|
|
9
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js";
|
|
10
|
+
import { f as D, p as ie } from "./plugins-DKQeoL_e.js";
|
|
11
|
+
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js";
|
|
12
|
+
import { u as ce } from "./vue-i18n-DzsxJorb.js";
|
|
13
13
|
import { useRouter as de } from "vue-router";
|
|
14
|
-
import { m as me } from "./index-
|
|
15
|
-
import { R as ue } from "./app-
|
|
14
|
+
import { m as me } from "./index-CEh6ryp2.js";
|
|
15
|
+
import { R as ue } from "./app-C06bAZj3.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-CQm1DKWE.js";
|
|
3
|
+
import { u as M } from "./business-D23Dt1x4.js";
|
|
4
|
+
import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as R } from "./vue-i18n-DzsxJorb.js";
|
|
6
|
+
import { g as j } from "./google-C3S8u0mT.js";
|
|
7
|
+
import { R as D } from "./app-C06bAZj3.js";
|
|
8
|
+
import { useRouter as H } from "vue-router";
|
|
9
|
+
import { r as h } from "./index-LjoAs_nX.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-
|
|
5
|
-
import { u as ot } from "./loading-
|
|
6
|
-
import { u as Xe, C as Ie } from "./membership-
|
|
7
|
-
import {
|
|
4
|
+
import { c as q, e as Le, S as He } from "./index-iVbjwKxc.js";
|
|
5
|
+
import { u as ot } from "./loading-CQm1DKWE.js";
|
|
6
|
+
import { u as Xe, C as Ie } from "./membership-XycnxPEW.js";
|
|
7
|
+
import { o as ut, p as mt, q as pt, r as Qe, s as ft, t as yt } from "./index-ByVPdKdB.js";
|
|
8
8
|
import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
|
|
9
|
-
import { _ as pe } from "./lodash-
|
|
10
|
-
import { c as _e } from "./index-
|
|
11
|
-
import { u as ve } from "./vue-i18n-
|
|
12
|
-
import { Z as ie, g as ae, a as se } from "./zod-
|
|
13
|
-
import { z as re, R as Ae } from "./app-
|
|
9
|
+
import { _ as pe } from "./lodash-C2wVbAap.js";
|
|
10
|
+
import { c as _e } from "./index-DK9zxpDu.js";
|
|
11
|
+
import { u as ve } from "./vue-i18n-DzsxJorb.js";
|
|
12
|
+
import { Z as ie, g as ae, a as se } from "./zod-DZkNj425.js";
|
|
13
|
+
import { z as re, R as Ae } from "./app-C06bAZj3.js";
|
|
14
14
|
import { u as je } from "./app-wDQR6dpb.js";
|
|
15
|
-
import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-
|
|
15
|
+
import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js";
|
|
16
|
+
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-DKQeoL_e.js";
|
|
17
17
|
import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as ht } from "./index-
|
|
19
|
-
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { _ as ht } from "./index-B_BmgKrh.js";
|
|
19
|
+
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.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-
|
|
22
|
-
import { f as Ft } from "./currency-
|
|
23
|
-
import { F as wt } from "./number-
|
|
24
|
-
import { a as $t, t as kt } from "./helper-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./index-
|
|
21
|
+
import { z as Ct, a as St } from "./money-DY_QGzd1.js";
|
|
22
|
+
import { f as Ft } from "./currency-Bra2RJK4.js";
|
|
23
|
+
import { F as wt } from "./number-BHthf4qF.js";
|
|
24
|
+
import { a as $t, t as kt } from "./helper-DqDOnLCf.js";
|
|
25
|
+
import "./index-BzwwXWpZ.js";
|
|
26
|
+
import "./index-TDCPGtW3.js";
|
|
27
|
+
import "./index-BroF2fC8.js";
|
|
28
|
+
import "./index-B3U3KZl0.js";
|
|
29
29
|
import "./index-I9lmcd2w.js";
|
|
30
|
-
import "./index-
|
|
31
|
-
import { m as Pt } from "./index-
|
|
32
|
-
import { m as De } from "./index-
|
|
33
|
-
import { g as Ke } from "./index-
|
|
34
|
-
import { u as Vt } from "./business-
|
|
30
|
+
import "./index-Bvk61_w_.js";
|
|
31
|
+
import { m as Pt } from "./index-pfmx-Gor.js";
|
|
32
|
+
import { m as De } from "./index-CEh6ryp2.js";
|
|
33
|
+
import { g as Ke } from "./index-B2lqC_hH.js";
|
|
34
|
+
import { u as Vt } from "./business-D23Dt1x4.js";
|
|
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: "
|
|
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
|
|
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-
|
|
5
|
-
import { u as ae } from "./loading-
|
|
6
|
-
import { C as Q, u as ne } from "./membership-
|
|
7
|
-
import { p as B, f as K } from "./plugins-
|
|
4
|
+
import "./index-BzwwXWpZ.js";
|
|
5
|
+
import { u as ae } from "./loading-CQm1DKWE.js";
|
|
6
|
+
import { C as Q, u as ne } from "./membership-XycnxPEW.js";
|
|
7
|
+
import { p as B, f as K } from "./plugins-DKQeoL_e.js";
|
|
8
8
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as se } from "./vue-i18n-
|
|
10
|
-
import { F as ie } from "./index-
|
|
9
|
+
import { u as se } from "./vue-i18n-DzsxJorb.js";
|
|
10
|
+
import { F as ie } from "./index-B_BmgKrh.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-
|
|
14
|
-
import { Z as h } from "./zod-
|
|
15
|
-
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
19
|
-
import { i as fe, F as ye, h as j, t as we } from "./helper-
|
|
13
|
+
import { u as le } from "./business-D23Dt1x4.js";
|
|
14
|
+
import { Z as h } from "./zod-DZkNj425.js";
|
|
15
|
+
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js";
|
|
16
|
+
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js";
|
|
17
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js";
|
|
18
|
+
import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js";
|
|
19
|
+
import { i as fe, F as ye, h as j, t as we } from "./helper-DqDOnLCf.js";
|
|
20
20
|
import { useRouter as ge } from "vue-router";
|
|
21
|
-
import { m as G } from "./index-
|
|
22
|
-
import { R as L } from "./app-
|
|
21
|
+
import { m as G } from "./index-CEh6ryp2.js";
|
|
22
|
+
import { R as L } from "./app-C06bAZj3.js";
|
|
23
23
|
function ve(w) {
|
|
24
24
|
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
25
|
}
|