@feedmepos/mf-connect 0.1.116-dev → 0.1.117-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/README.md +1 -66
- package/dist/{App-DWDgsBqW.js → App-CAo1izHr.js} +618 -652
- package/dist/{Bin-Cz6fmewG.js → Bin-DDDfjisJ.js} +8 -8
- package/dist/{Broadcast-CQ0pfKpx.js → Broadcast-BsCulZhE.js} +21 -22
- package/dist/{CampaignAnalytic-CiRCB3kh.js → CampaignAnalytic-CnVYFSkT.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bp7UeQWJ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js} +9 -9
- package/dist/{Card-Kw2PFL2m.js → Card-DPyQH9qZ.js} +24 -25
- package/dist/{Collections-D8Vx_EEH.js → Collections-CZCVA969.js} +185 -197
- package/dist/{Credit-B1jsQ5zg.js → Credit-BTg364-i.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B6Fpf8zy.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js +3494 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Cdpr9Ku4.js → EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js} +32 -32
- package/dist/{Experience-B0JIA3sL.js → Experience-Bk_eUcSX.js} +31 -32
- package/dist/{FileSaver.min-M-9kTN8q.js → FileSaver.min-CXFiZAp7.js} +1 -1
- package/dist/{Game-CNJyqnK3.js → Game-CBnKpFdl.js} +18 -19
- package/dist/{GiftCardSetup-DSQIC7fD.js → GiftCardSetup-q75wNV_F.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-ABiLOF1j.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js} +7 -7
- package/dist/{Goals-DBPzGIRK.js → Goals-Bbbgurfd.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B2edB52s.js → ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js} +1 -1
- package/dist/{Index-CiWyZXnK.js → Index-C8_OWllb.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DnP03_b7.js → LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DM17LaNE.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js} +1 -1
- package/dist/{LoyaltyDashboard-C4ZlK9Hv.js → LoyaltyDashboard-DJlE0371.js} +15 -15
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-CJncINki.js → MainLayout-Bs2UPvFx.js} +4 -5
- package/dist/Marketing-BvRYzFV8.js +236 -0
- package/dist/{remy-icon-BhUGu2NI.js → MarketingMaterialEdit-o88sdvTM.js} +1031 -2
- package/dist/{Member-B-l5P9jk.js → Member-C4yqwsMH.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C_ZjHH4I.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js} +50 -43
- package/dist/{MemberImportHistory-BJcu-ahG.js → MemberImportHistory-CbuXCdxC.js} +7 -7
- package/dist/{MemberList-DVsWNWIc.js → MemberList-CpAepPBe.js} +105 -103
- package/dist/{MemberTransactions-C2VPySEO.js → MemberTransactions-BbpXvsSk.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BXqrn9tg.js → MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js} +14 -14
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BouFp66T.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js} +1 -1
- package/dist/{Mission-DWO-IF0f.js → Mission-Bdb9KVeP.js} +21 -22
- package/dist/{Overview-DPcWm2S0.js → Overview-CEiyGMcf.js} +22 -23
- package/dist/{Overview-Dbp4Sv-H.js → Overview-D_9JwnFU.js} +144 -145
- package/dist/{Point-PnWrzVOY.js → Point-Bd5cMXQx.js} +21 -22
- package/dist/{Promotion-Bwpi60dN.js → Promotion-D9gZDvgR.js} +131 -137
- package/dist/{Queue-BvEcKyVJ.js → Queue-BnAOL_rp.js} +45 -46
- package/dist/{Record-DzNvU2fM.js → Record-D6TWFKe0.js} +9 -9
- package/dist/{Review-HDYwnMd6.js → Review-DLEgvnc-.js} +2 -2
- package/dist/ReviewFacebookCallback-jVlm2O8f.js +238 -0
- package/dist/{ReviewGoogleCallback-6V9JNKsl.js → ReviewGoogleCallback-BgAbO3pI.js} +5 -5
- package/dist/{Reward-DI6IyG-d.js → Reward-DBheQiFu.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DFAIPMe7.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js} +15 -16
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js +1883 -0
- package/dist/{Segment-DrV6pQyx.js → Segment-B9Se5FFw.js} +305 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CXHt_ZeT.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js} +30 -31
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-XRXkLy6j.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js} +4 -4
- package/dist/Setting-B92JT_Y4.js +2037 -0
- package/dist/{SettingAdvertisements-BtqKt4Ca.js → SettingAdvertisements-CLw-dqiA.js} +12 -12
- package/dist/Settings-BmmM8ZnR.js +179 -0
- package/dist/{Store-HZs9GG03.js → Store-B5PPP5zM.js} +30 -31
- package/dist/{StoreRewards-BSTXL4FR.js → StoreRewards-DllyaVBY.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js +1264 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js +142 -0
- package/dist/{Tier-Ka0rbjC_.js → Tier-M_TApfju.js} +687 -2576
- package/dist/{Title-7jvrf34J.js → Title-Cpltm-I2.js} +92 -94
- package/dist/{Transaction-D-M3udf5.js → Transaction-BYfAYRpv.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CrlpuElX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js} +26 -26
- package/dist/{Voucher-BZCLPyDk.js → Voucher-DHoyg0YZ.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C_MOMFkX.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js} +16 -16
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Do4GTTKx.js → ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js} +2 -2
- package/dist/{app-CEe3kSZM.js → app-B_doYklh.js} +7107 -8879
- package/dist/app.js +3 -4
- package/dist/{base.export-BjSdr85q.js → base.export-DmbnT_bp.js} +2 -2
- package/dist/{business-CJjiItSo.js → business-DdVGtTvx.js} +1 -1
- package/dist/{campaign-DEXq52fE.js → campaign-CVkA08zl.js} +25 -31
- package/dist/{campaign-D4MWLs1D.js → campaign-jEhKmpKg.js} +94 -121
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-DWu6-kOo.js} +2 -3
- package/dist/{campaign.fn-DiadKjES.js → campaign.fn-BlgEyeFz.js} +82 -82
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-CVLkXKml.js} +1 -1
- package/dist/{collection.fn-CfqIdnSS.js → collection.fn-DLNGTrPf.js} +2 -2
- package/dist/{currency-CPB6E_s-.js → currency-DKS1md4e.js} +1 -1
- package/dist/{effect-DFodA5mh.js → effect-Bk-zYexf.js} +1 -1
- package/dist/{email-addresses-C0CwgNs_.js → email-addresses-I9A5iLzf.js} +2 -2
- package/dist/{feature-flag-Bap2oi_S.js → feature-flag-DQti61iR.js} +74 -74
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DKKsSb2o.js → helper-9cPlo6ae.js} +1 -1
- package/dist/{index-CJGb1iJi.js → index-1Cdj34z1.js} +1 -1
- package/dist/{index-CtwPthW5.js → index-3V8E9GaZ.js} +2 -2
- package/dist/{index-CfqmNZUH.js → index-728mP6kW.js} +581 -683
- package/dist/{index-DDmpyI6z.js → index-BRm0LMTo.js} +252 -611
- package/dist/{index-qAQiQd-s.js → index-BxpbI0GH.js} +7 -7
- package/dist/{index-DFV2ydYE.js → index-C-OnJpT8.js} +1 -1
- package/dist/{index-D5veZ8LP.js → index-CIwdXphn.js} +2613 -2700
- package/dist/{index-DxmlvoHV.js → index-CNUXbXvG.js} +6 -19
- package/dist/{index-RUdMURTx.js → index-Cj6oxbl0.js} +10 -11
- package/dist/{index-CXqPYmyv.js → index-ClYX4COd.js} +3 -4
- package/dist/{index-CEFEuMOF.js → index-CuyzSc1l.js} +1 -1
- package/dist/{index-BS6725ZB.js → index-DOE2VR99.js} +198 -198
- package/dist/{index-C_4eW8Sr.js → index-DWkuIfHy.js} +232 -390
- package/dist/{index-BdGo-qgB.js → index-Dj51vqab.js} +4 -4
- package/dist/{index-DRnUcSVN.js → index-DuvnRxeo.js} +1 -1
- package/dist/{index-BJCirs9i.js → index-cgtAlOl9.js} +10767 -8028
- package/dist/{index-BWsGYTzB.js → index-fHiFL1dW.js} +15 -29
- package/dist/{index-CFZMwKR6.js → index-oNMFyOGe.js} +7 -8
- package/dist/{index-4LQanFJi.js → index-vKvGJ4Ve.js} +2 -2
- package/dist/{index.esm2017-i1myv90H.js → index.esm2017-CsF37oA-.js} +177 -177
- package/dist/{loading-BAFiJnEb.js → loading-BJJmTFoe.js} +1 -1
- package/dist/{lodash-De2KDgqX.js → lodash-BMJ6_hsa.js} +1 -1
- package/dist/{member-import-BP4RZGbA.js → member-import-DrGxVJt9.js} +5 -6
- package/dist/{membership-CQWw-rTa.js → membership-CAqKihwy.js} +3 -3
- package/dist/{money-rwjWYzdi.js → money-Bf9d2ZUH.js} +1 -1
- package/dist/{number-DwSvkBpS.js → number-CWXlGZa5.js} +1 -1
- package/dist/objectid-2DN5a9sY.js +145 -0
- package/dist/{onboarding-u7cpl6k3.js → onboarding-Dn9O7r3a.js} +25 -25
- package/dist/{onboardingSetup-DoxDlcVN.js → onboardingSetup-BMkDoGy-.js} +2 -2
- package/dist/{plugins-CKaeoHSK.js → plugins-KDgceFWV.js} +3 -3
- package/dist/{reward-BasbGRWt.js → reward-eilGRaXi.js} +1 -1
- package/dist/{rule-IN41b-qE.js → rule-Dr9Zjg_o.js} +492 -572
- package/dist/rule-builder-cz6Dy-no.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DwbazO8p.js +236 -0
- package/dist/{timezone-C68y8HiI.js → timezone-C5CIfvHs.js} +1 -1
- package/dist/{transaction.fn-Ckxm2gof.js → transaction.fn-Cr-FLjh0.js} +2 -2
- package/dist/{trigger-xA8j3s9B.js → trigger-B0Fv6wbN.js} +8 -8
- package/dist/useMarketingMaterialActions-CNk3LR9M.js +96 -0
- package/dist/{usePagination-CIRxyVr8.js → usePagination-BcA-imTr.js} +1 -1
- package/dist/{user-PTTQTMyQ.js → user-DRvLwlBE.js} +1 -1
- package/dist/vue-i18n-y7bHQpNx.js +2365 -0
- package/dist/{xlsx-l0AsOrP1.js → xlsx-CBObn76o.js} +379 -379
- package/dist/{zod-Bm1pKYLC.js → zod-DWU5EdQV.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-BqEtvKFs.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BW1RntIP.js +0 -4442
- package/dist/Grab-CGWinKBS.js +0 -301
- package/dist/MainLayout-D22Q2_jN.js +0 -4
- package/dist/Marketing-CmVnvEN6.js +0 -269
- package/dist/MarketingMaterialEdit-CQ55zG-W.js +0 -1037
- package/dist/ReviewFacebookCallback-rAlgcTQ_.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CDoba0oG.js +0 -1923
- package/dist/Setting-aLQCUCP9.js +0 -574
- package/dist/Settings-BkYtKb4l.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-D9nykzc3.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DBnHk6jn.js +0 -7007
- package/dist/WhatsappAccount-BG0dIroG.js +0 -159
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Co05OXon.js +0 -39
- package/dist/WhatsappBot-O5h5UKXz.js +0 -876
- package/dist/WhatsappBotLogs-BOPTuu6o.js +0 -372
- package/dist/WhatsappBotSettings-BSiIvpGO.js +0 -705
- package/dist/WhatsappLayout-DLVIfkzJ.js +0 -21
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DJdi7dV6.js +0 -253
- package/dist/browser-BSAOEeIM.js +0 -1478
- package/dist/duplicateCampaign-BzWvsZwc.js +0 -51
- package/dist/feature-flag--GbS6Qn_.js +0 -50
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/index-C-iwb2Ln.js +0 -109
- package/dist/index-C1C21iKU.js +0 -74
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/objectid-DtEPzPd_.js +0 -145
- package/dist/template-3Nu_MAMG.js +0 -188
- package/dist/useMarketingMaterialActions-ClYoBaFw.js +0 -125
- package/dist/vue-i18n-DYnrLWFT.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-BJJmTFoe.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-DdVGtTvx.js";
|
|
5
|
+
import { u as oe } from "./membership-CAqKihwy.js";
|
|
6
|
+
import "./index-cgtAlOl9.js";
|
|
7
|
+
import { b as ae } from "./index-DWkuIfHy.js";
|
|
8
|
+
import "./index-CuyzSc1l.js";
|
|
9
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js";
|
|
10
|
+
import { f as D, p as ie } from "./plugins-KDgceFWV.js";
|
|
11
|
+
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js";
|
|
12
|
+
import { u as ce } from "./vue-i18n-y7bHQpNx.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-CNUXbXvG.js";
|
|
15
|
+
import { R as ue } from "./app-B_doYklh.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-BJJmTFoe.js";
|
|
3
|
+
import { u as M } from "./business-DdVGtTvx.js";
|
|
4
|
+
import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as R } from "./vue-i18n-y7bHQpNx.js";
|
|
6
|
+
import { g as j } from "./google-C3S8u0mT.js";
|
|
7
|
+
import { R as D } from "./app-B_doYklh.js";
|
|
8
|
+
import { useRouter as H } from "vue-router";
|
|
9
|
+
import { r as h } from "./index-Cj6oxbl0.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,36 @@
|
|
|
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-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";
|
|
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-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";
|
|
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-B6tTjLAZ.js";
|
|
16
|
+
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-KDgceFWV.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-CIwdXphn.js";
|
|
19
|
+
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.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-
|
|
29
|
-
import "./index-
|
|
30
|
-
import "./index-
|
|
31
|
-
import { m as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { u as Vt } from "./business-CJjiItSo.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";
|
|
35
34
|
import { useRouter as Tt } from "vue-router";
|
|
36
35
|
function nt(b) {
|
|
37
36
|
return _e.DineroFactory(b).toUnit();
|
|
@@ -600,7 +599,7 @@ const Yt = {
|
|
|
600
599
|
};
|
|
601
600
|
}
|
|
602
601
|
});
|
|
603
|
-
var Xt = { mode: "
|
|
602
|
+
var Xt = { mode: "production", appMode: "mf" };
|
|
604
603
|
const Zt = { class: "space-y-8" }, Qt = {
|
|
605
604
|
key: 0,
|
|
606
605
|
class: "space-y-16"
|
|
@@ -2117,14 +2116,14 @@ const vn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, hn = { class: "
|
|
|
2117
2116
|
};
|
|
2118
2117
|
}
|
|
2119
2118
|
});
|
|
2120
|
-
var et = { authUrl: "https://portal-v2
|
|
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/" };
|
|
2121
2120
|
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
2121
|
key: 1,
|
|
2123
2122
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
2124
2123
|
}, jn = {
|
|
2125
2124
|
key: 1,
|
|
2126
2125
|
class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24"
|
|
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" },
|
|
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({
|
|
2128
2127
|
__name: "Store",
|
|
2129
2128
|
setup(b) {
|
|
2130
2129
|
const { t: a } = ve(), d = {
|
|
@@ -2625,5 +2624,5 @@ const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2625
2624
|
}
|
|
2626
2625
|
});
|
|
2627
2626
|
export {
|
|
2628
|
-
|
|
2627
|
+
Va as default
|
|
2629
2628
|
};
|
|
@@ -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-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";
|
|
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-y7bHQpNx.js";
|
|
10
|
+
import { F as ie } from "./index-CIwdXphn.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 {
|
|
19
|
-
import { i as fe, F as ye, h as j, t as we } from "./helper-
|
|
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";
|
|
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-CNUXbXvG.js";
|
|
22
|
+
import { R as L } from "./app-B_doYklh.js";
|
|
23
23
|
function ve(w) {
|
|
24
24
|
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
25
|
}
|