@feedmepos/mf-connect 0.1.98-beta.6 → 0.1.98-beta.60
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-CvJ0ASlp.js → App-BUwQLdzG.js} +812 -666
- package/dist/{AuditLogs-Bt9S2LKL.js → AuditLogs-laNQB1ef.js} +14 -13
- package/dist/{Bin-ZSCDSioa.js → Bin-Bfboeea_.js} +8 -8
- package/dist/{Broadcast-BT0R11RB.js → Broadcast-CDz-_eDz.js} +40 -37
- package/dist/CampaignAnalytic-BiA-5XG3.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-LweQ57aG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VrTN-c_a.js} +6 -5
- package/dist/Card-CKHaW8N7.js +1084 -0
- package/dist/{Collections-H7zhe9zN.js → Collections-DRocQb1D.js} +14 -13
- package/dist/Credit-DWaoVhSP.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-B7ZdULCu.js +53 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B2sZFWUF.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-3ERieT1j.js} +54 -52
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-qNmiKaJc.js → EffectSheet.vue_vue_type_style_index_0_lang-yDUjXV2O.js} +35 -35
- package/dist/{Experience-CH5tg-tm.js → Experience-C1_LpneJ.js} +112 -86
- package/dist/{FileSaver.min-DNFqiyZb.js → FileSaver.min-CWJ-6CFP.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-DtTYcSZk.js +356 -0
- package/dist/GiftCardSetup-B770Rl1Q.js +662 -0
- package/dist/{Grab-3s_sLewD.js → Grab-CN0gmIxT.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-fbmoN1e9.js → ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js} +1 -1
- package/dist/{Index-zTWZCiEo.js → Index-0F6aq3f9.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BOxYPkf5.js → LocationPicker.vue_vue_type_script_setup_true_lang-BrKj8W2H.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-wjJ_cwft.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DOuHSVdR.js} +1 -1
- package/dist/LoyaltyDashboard-CtXyDFqa.js +2865 -0
- package/dist/MainLayout-BSWLr3gE.js +143 -0
- package/dist/{Marketing-Bto1OvK1.js → Marketing-Ci2haxRd.js} +7 -6
- package/dist/{MarketingMaterialEdit-D7rIqF5U.js → MarketingMaterialEdit-Cw6R0bNM.js} +15 -14
- package/dist/Member-DEzSTAQy.js +649 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-BrhSxbrI.js +1287 -0
- package/dist/MemberImportHistory-BGfNLzma.js +187 -0
- package/dist/MemberList-Cq5Gsv3G.js +336 -0
- package/dist/{MemberTransactions-CjTtGB2y.js → MemberTransactions-BrUVZRtt.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DvKL7BL5.js → MessageInput.vue_vue_type_script_setup_true_lang-DCQ6Fse-.js} +5434 -5279
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CETwYfZD.js +40 -0
- package/dist/Mission-Do4IonLo.js +360 -0
- package/dist/{Overview-mxGLyFvE.js → Overview-DA90l9Kb.js} +21 -20
- package/dist/Overview-DN-nJxw9.js +1316 -0
- package/dist/Point-DQ4w857n.js +288 -0
- package/dist/Promotion-Rgt9LcYi.js +423 -0
- package/dist/{Queue-DgaFyyyH.js → Queue-SzypUxgD.js} +14 -13
- package/dist/{Record-BRol__6_.js → Record-DYvPPhIW.js} +9 -9
- package/dist/Review-B0TERyHM.js +45 -0
- package/dist/ReviewFacebookCallback-BJ5jQ3Dv.js +238 -0
- package/dist/ReviewGoogleCallback-BKQD39dv.js +213 -0
- package/dist/{Reward-DQI0PvmR.js → Reward-BexlVT_C.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B6bvQNsU.js → RewardGroup.vue_vue_type_script_setup_true_lang-C-ygqNur.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DgAU7jGo.js → RuleGroup.vue_vue_type_script_setup_true_lang-DjxIJcdv.js} +103 -109
- package/dist/{Segment-DFaLx0QZ.js → Segment-CYa4GjtQ.js} +30 -29
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cpb2i9iV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b-K-VDJC.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MvoepHn9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-t2mlDDtn.js} +4 -4
- package/dist/{Setting-D2NjFJvq.js → Setting-Dmm5BKdF.js} +14 -14
- package/dist/{SettingAdvertisements-CPWgSMaA.js → SettingAdvertisements-cy4cRBop.js} +12 -12
- package/dist/Settings-DMQuLDM4.js +230 -0
- package/dist/Store-B7KflfSk.js +2612 -0
- package/dist/{StoreRewards-Ccj12pyq.js → StoreRewards-BKae8uZn.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-sbIR-k1R.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CfWTn0Xd.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js} +2 -2
- package/dist/{Tier-vaJoohiM.js → Tier-BeTz6LHH.js} +2296 -750
- package/dist/{Title-BqHC7-v9.js → Title-OEVVw5I-.js} +39 -37
- package/dist/Transaction-D-MZjntW.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Dporb9KE.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-xIEOUOdo.js} +26 -26
- package/dist/{Voucher-DeN6C6DQ.js → Voucher-BJCf3pSa.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-De16fuC4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BFQ_CYub.js} +115 -121
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DAC-j0Ln.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGDw3Too.js} +2 -2
- package/dist/{app-n4Y2jMee.js → app-J8VIC7-H.js} +29852 -25997
- package/dist/app.js +1 -1
- package/dist/base.export-HYFFI4OS.js +75 -0
- package/dist/{business-jn-_l48y.js → business-BonuheMK.js} +5 -5
- package/dist/{campaign-rgDnocfT.js → campaign-7CI7gfS5.js} +74 -96
- package/dist/campaign-Ct7jhugP.js +100 -0
- package/dist/{campaign.enum-C9HvoKuq.js → campaign.enum-OzJ9IbAW.js} +1 -1
- package/dist/{campaign.fn-D21ettpH.js → campaign.fn-CDjxE9B2.js} +99 -99
- package/dist/{collectible.enum-_HVU4lWn.js → collectible.enum-Dw_tlI9E.js} +1 -1
- package/dist/collection.fn-CER0_NEn.js +26 -0
- package/dist/currency-CTUS4vS8.js +7 -0
- package/dist/{duplicateCampaign-gzVwrnWb.js → duplicateCampaign-CMQ-RMH-.js} +11 -11
- package/dist/{effect-DhpIv1L3.js → effect-DBeGoMNE.js} +1 -1
- package/dist/{email-addresses-DPxYLSoa.js → email-addresses-BH3mQzan.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-WYHUnHVy.js → helper-DJe_JbKJ.js} +1 -1
- package/dist/{index-BdnHQSDd.js → index-B14H1rLW.js} +5 -4
- package/dist/{index-7HizF3GI.js → index-BOVnM3gL.js} +1588 -1522
- package/dist/{index-Cvfavr2M.js → index-BRCB6yJ6.js} +232 -200
- package/dist/{index-BPsofsGt.js → index-BZKKS7jO.js} +1933 -2560
- package/dist/{index-BuLfxJyC.js → index-BlwAgY_z.js} +105 -123
- package/dist/index-BmN_Qcw7.js +151 -0
- package/dist/index-Bnk3vdb-.js +72 -0
- package/dist/index-BzVTqlVH.js +137 -0
- package/dist/{index--fNMSXUf.js → index-CEDhjZzd.js} +1 -1
- package/dist/{index-BdqRrCt8.js → index-CM9GTQIo.js} +5 -5
- package/dist/index-CN8VyVEB.js +53 -0
- package/dist/{index-Cte6dHHy.js → index-COuceEFz.js} +14 -14
- package/dist/{index-BN-FP9kx.js → index-CWR2s6Nt.js} +1 -1
- package/dist/index-CrMBqkKk.js +897 -0
- package/dist/{index-xao4ggML.js → index-D9f3AIaO.js} +5 -5
- package/dist/index-Do36kJeb.js +51 -0
- package/dist/{index-C-5YgmkC.js → index-bGByr1XM.js} +7 -5
- package/dist/{index-DUTFNEn9.js → index-bJX4zgh0.js} +4 -4
- package/dist/{index.esm2017-CjzFPUCa.js → index.esm2017-BpCPgTjc.js} +128 -128
- package/dist/{loading-CojnK00V.js → loading-D_rPJ-Yc.js} +1 -1
- package/dist/{lodash-CLkg5jTT.js → lodash-BM976Z2I.js} +1 -1
- package/dist/member-import-C5rhD3f8.js +187 -0
- package/dist/membership-CIQCEKiL.js +274 -0
- package/dist/{money-CyaLaEKo.js → money-BrMT193t.js} +1 -1
- package/dist/{number-DEtI4bEX.js → number-DOcD1tqL.js} +1 -1
- package/dist/objectid-CAdRRoFu.js +145 -0
- package/dist/{plugins-MnP1vCcg.js → plugins-696Z9K6A.js} +3 -3
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-Dk3D26xC.js → reward-lSVIBiE9.js} +1 -1
- package/dist/{rule-B1Agad1n.js → rule-BUGAimk8.js} +335 -275
- package/dist/style.css +1 -1
- package/dist/{template-DpqLCq1p.js → template-01_h2Gac.js} +6 -6
- package/dist/timezone-okTdM2YU.js +20 -0
- package/dist/transaction.fn-Nz0T33ex.js +64 -0
- package/dist/{trigger-cwPN-4Ia.js → trigger-CKj1X6zs.js} +17 -17
- package/dist/useMarketingMaterialActions-yKqKaPpe.js +96 -0
- package/dist/{usePagination-D8zBMxdJ.js → usePagination-D6cYlfni.js} +1 -1
- package/dist/{user-EUGwaL2f.js → user-DX5qCQfz.js} +1 -1
- package/dist/{vue-i18n-BBj45p9N.js → vue-i18n-DowpocqN.js} +204 -204
- package/dist/{xlsx-DiMIlKmu.js → xlsx-Dv4SuJbw.js} +1 -1
- package/dist/{zod-B1cU167C.js → zod-DVw24Ejy.js} +1 -1
- package/package.json +6 -5
- package/dist/Card-Wdh8lyUv.js +0 -910
- package/dist/Credit-BuKLrFtM.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-C9s4qZz4.js +0 -330
- package/dist/LoyaltyDashboard-tOOk6zvV.js +0 -1082
- package/dist/MainLayout-iWi1DzXS.js +0 -41
- package/dist/Member-BdgdT-sa.js +0 -280
- package/dist/MemberList-DBIE-RWC.js +0 -1601
- package/dist/Mission-CWR6FBvN.js +0 -334
- package/dist/Point-BIt82fJk.js +0 -262
- package/dist/Promotion-Cl1vPi0B.js +0 -397
- package/dist/Review-DmV2YnFd.js +0 -1076
- package/dist/ReviewFacebookCallback-B5XgAWXo.js +0 -243
- package/dist/ReviewGoogleCallback-CYR03Wfd.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CAImd3yc.js +0 -181
- package/dist/Store-DjUe8ady.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B7w69A3j.js +0 -1130
- package/dist/Transaction-BOmDOGnD.js +0 -39
- package/dist/campaign-BnI7-ceP.js +0 -219
- package/dist/export-CWAxYj7W.js +0 -97
- package/dist/index-B6EBgIUx.js +0 -85
- package/dist/index-CxR1baaG.js +0 -52
- package/dist/membership-CeX8E_I9.js +0 -255
- package/dist/objectid-CMau7CW-.js +0 -145
- package/dist/useMarketingMaterialActions-CGzfJ68e.js +0 -107
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { defineComponent as le, ref as W, resolveComponent as S, openBlock as r, createElementBlock as k, createElementVNode as s, createVNode as d, unref as e, createCommentVNode as J, withCtx as $, Fragment as Z, renderList as me, createBlock as V, toDisplayString as D, normalizeClass as ce, computed as O, onMounted as we, isRef as Te, createSlots as Ee, h as B, onBeforeMount as De } from "vue";
|
|
2
2
|
import { _ as $e } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { n as Ae, p as Pe } from "./plugins-
|
|
4
|
-
import { u as Re } from "./loading-
|
|
3
|
+
import { n as Ae, p as Pe } from "./plugins-696Z9K6A.js";
|
|
4
|
+
import { u as Re } from "./loading-D_rPJ-Yc.js";
|
|
5
5
|
import { FmButtonVariant as re, useSnackbar as Ne, components as ae } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as Fe, _ as Ce } from "./usePagination-
|
|
7
|
-
import { u as pe } from "./vue-i18n-
|
|
8
|
-
import { R as ye } from "./index-
|
|
9
|
-
import {
|
|
10
|
-
import "./index-
|
|
11
|
-
import { F as
|
|
12
|
-
import "./index-
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
6
|
+
import { u as Fe, _ as Ce } from "./usePagination-D6cYlfni.js";
|
|
7
|
+
import { u as pe } from "./vue-i18n-DowpocqN.js";
|
|
8
|
+
import { R as ye } from "./index-BRCB6yJ6.js";
|
|
9
|
+
import { h as Be, i as U, D as Ue, j as Ve } from "./index-BZKKS7jO.js";
|
|
10
|
+
import "./index-BOVnM3gL.js";
|
|
11
|
+
import { F as ge, z as Le } from "./index-D9f3AIaO.js";
|
|
12
|
+
import { a as ve } from "./index-CrMBqkKk.js";
|
|
13
|
+
import "./index-CM9GTQIo.js";
|
|
14
|
+
import { u as de, w as ke } from "./xlsx-Dv4SuJbw.js";
|
|
15
|
+
import { e as Ye, M as ze } from "./email-addresses-BH3mQzan.js";
|
|
16
|
+
import { Z as Oe } from "./zod-DVw24Ejy.js";
|
|
16
17
|
import { u as je } from "./app-wDQR6dpb.js";
|
|
17
|
-
import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import {
|
|
19
|
-
import { u as He, v as Je, w as Ke } from "./index.esm2017-
|
|
20
|
-
import { F as Qe } from "./FileSaver.min-
|
|
18
|
+
import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DGDw3Too.js";
|
|
19
|
+
import { a as Ge } from "./RuleGroup.vue_vue_type_script_setup_true_lang-DjxIJcdv.js";
|
|
20
|
+
import { u as He, v as Je, w as Ke } from "./index.esm2017-BpCPgTjc.js";
|
|
21
|
+
import { F as Qe } from "./FileSaver.min-CWJ-6CFP.js";
|
|
21
22
|
import { h as se } from "./moment-D7p2TMB-.js";
|
|
22
|
-
import { s as z, u as We } from "./membership-
|
|
23
|
+
import { s as z, u as We } from "./membership-CIQCEKiL.js";
|
|
23
24
|
import { o as Ze } from "./objectId-dwaoBfJX.js";
|
|
24
25
|
import { J as Xe } from "./JsonViewer-v8_C7l5N.js";
|
|
25
|
-
import { u as Ie } from "./business-
|
|
26
|
-
import { f as et } from "./number-
|
|
27
|
-
import { t as tt } from "./money-
|
|
28
|
-
import "./index
|
|
26
|
+
import { u as Ie } from "./business-BonuheMK.js";
|
|
27
|
+
import { f as et } from "./number-DOcD1tqL.js";
|
|
28
|
+
import { t as tt } from "./money-BrMT193t.js";
|
|
29
|
+
import "./index-CEDhjZzd.js";
|
|
29
30
|
import { useRouter as ot } from "vue-router";
|
|
30
|
-
import { m as _e } from "./index-
|
|
31
|
-
import { R as xe } from "./app-
|
|
31
|
+
import { m as _e } from "./index-BzVTqlVH.js";
|
|
32
|
+
import { R as xe } from "./app-J8VIC7-H.js";
|
|
32
33
|
const nt = Be.extend({
|
|
33
|
-
_id:
|
|
34
|
-
business:
|
|
34
|
+
_id: ge.optional(),
|
|
35
|
+
business: ge.optional(),
|
|
35
36
|
file: Le.any().nullish()
|
|
36
37
|
});
|
|
37
38
|
var at = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
|
@@ -581,7 +582,7 @@ const Nt = {
|
|
|
581
582
|
)}`
|
|
582
583
|
};
|
|
583
584
|
}
|
|
584
|
-
}, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
585
|
+
}, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100", ko = /* @__PURE__ */ le({
|
|
585
586
|
__name: "Segment",
|
|
586
587
|
setup(t) {
|
|
587
588
|
const { minor: f } = Re, { t: c } = pe(), M = Ie(), { mapMemberExportRow: b } = Nt, _ = Ne(), u = ot(), T = W(0);
|
|
@@ -816,7 +817,7 @@ const Nt = {
|
|
|
816
817
|
onAction: async () => {
|
|
817
818
|
await u.push({
|
|
818
819
|
name: xe["$connect-QUEUE"],
|
|
819
|
-
query: { type: [
|
|
820
|
+
query: { type: [ve.enum.SEGMENTATION_IMPORTED] }
|
|
820
821
|
});
|
|
821
822
|
}
|
|
822
823
|
});
|
|
@@ -876,7 +877,7 @@ const Nt = {
|
|
|
876
877
|
case "queue":
|
|
877
878
|
u.push({
|
|
878
879
|
name: xe["$connect-QUEUE"],
|
|
879
|
-
query: { type: [
|
|
880
|
+
query: { type: [ve.enum.SEGMENTATION_IMPORTED] }
|
|
880
881
|
});
|
|
881
882
|
break;
|
|
882
883
|
case "start-default-segments":
|
|
@@ -1010,5 +1011,5 @@ const Nt = {
|
|
|
1010
1011
|
}
|
|
1011
1012
|
});
|
|
1012
1013
|
export {
|
|
1013
|
-
|
|
1014
|
+
ko as default
|
|
1014
1015
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as S, createElementVNode as v, createVNode as c, toDisplayString as w } from "vue";
|
|
2
|
-
import { u as O } from "./loading-
|
|
3
|
-
import { p as Z } from "./plugins-
|
|
2
|
+
import { u as O } from "./loading-D_rPJ-Yc.js";
|
|
3
|
+
import { p as Z } from "./plugins-696Z9K6A.js";
|
|
4
4
|
import { u as q } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { m as z } from "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { b as G } from "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
5
|
+
import { m as z } from "./index-BzVTqlVH.js";
|
|
6
|
+
import "./index-BRCB6yJ6.js";
|
|
7
|
+
import { b as G } from "./index-BZKKS7jO.js";
|
|
8
|
+
import "./index-BOVnM3gL.js";
|
|
9
|
+
import "./index-D9f3AIaO.js";
|
|
10
|
+
import "./index-CrMBqkKk.js";
|
|
11
|
+
import "./index-CM9GTQIo.js";
|
|
12
|
+
import { Z as d } from "./zod-DVw24Ejy.js";
|
|
13
|
+
import { z as Y } from "./app-J8VIC7-H.js";
|
|
14
|
+
import { u as j } from "./vue-i18n-DowpocqN.js";
|
|
15
|
+
import { c as J } from "./index-BmN_Qcw7.js";
|
|
16
|
+
const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, he = /* @__PURE__ */ L({
|
|
16
17
|
__name: "SendCollectionSheet",
|
|
17
18
|
emits: ["success"],
|
|
18
19
|
setup(X, { expose: V, emit: I }) {
|
|
19
|
-
const { t:
|
|
20
|
+
const { t: m } = j(), { minor: k } = O, A = I, n = p({
|
|
20
21
|
memberId: [],
|
|
21
22
|
amount: 1,
|
|
22
23
|
ref: ""
|
|
@@ -26,9 +27,9 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
26
27
|
var a;
|
|
27
28
|
switch ((a = h.value) == null ? void 0 : a.type) {
|
|
28
29
|
case "MISSION":
|
|
29
|
-
return
|
|
30
|
+
return m("connect.sendCollectionSheet.stamp");
|
|
30
31
|
case "GAME":
|
|
31
|
-
return
|
|
32
|
+
return m("connect.sendCollectionSheet.game_token");
|
|
32
33
|
default:
|
|
33
34
|
return "Unknown";
|
|
34
35
|
}
|
|
@@ -58,24 +59,24 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
58
59
|
label: `${s.name} (${s.phoneNumber})`,
|
|
59
60
|
value: s._id
|
|
60
61
|
}));
|
|
61
|
-
const
|
|
62
|
-
await new Promise((s) => setTimeout(s,
|
|
62
|
+
const l = 100;
|
|
63
|
+
await new Promise((s) => setTimeout(s, l));
|
|
63
64
|
}
|
|
64
65
|
async function U() {
|
|
65
66
|
var t;
|
|
66
67
|
await Z.confirm(
|
|
67
|
-
|
|
68
|
+
m("connect.sendCollectionSheet.confirmation_message", {
|
|
68
69
|
amount: n.value.amount,
|
|
69
70
|
type: F.value,
|
|
70
|
-
memberName: f.value ? (t = b.value.find((
|
|
71
|
+
memberName: f.value ? (t = b.value.find((l) => l.value === f.value)) == null ? void 0 : t.label : "Unknown Member"
|
|
71
72
|
}),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
m("connect.common.confirm"),
|
|
74
|
+
m("connect.common.confirm"),
|
|
75
|
+
m("connect.common.cancel")
|
|
75
76
|
) && await k(
|
|
76
77
|
async () => {
|
|
77
|
-
var
|
|
78
|
-
await J.sendStamp((
|
|
78
|
+
var l;
|
|
79
|
+
await J.sendStamp((l = h.value) == null ? void 0 : l._id.toString(), {
|
|
79
80
|
memberId: n.value.memberId,
|
|
80
81
|
amount: n.value.amount,
|
|
81
82
|
ref: n.value.ref
|
|
@@ -93,11 +94,11 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
93
94
|
}), P(async () => {
|
|
94
95
|
await y("");
|
|
95
96
|
}), (a, t) => {
|
|
96
|
-
const
|
|
97
|
+
const l = i("FmCard"), s = i("FmSelect"), B = i("FmStepperField"), N = i("FmTextField"), E = i("FmForm"), x = i("FmButton"), R = i("FmSideSheet");
|
|
97
98
|
return $(), D(R, {
|
|
98
99
|
"max-width": 560,
|
|
99
100
|
"dismiss-away": !0,
|
|
100
|
-
header: e(
|
|
101
|
+
header: e(m)("connect.sendCollectionSheet.title", {
|
|
101
102
|
type: e(F)
|
|
102
103
|
}),
|
|
103
104
|
modelValue: e(r),
|
|
@@ -133,14 +134,14 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
133
134
|
blameFormChildOnValidationFailed: ""
|
|
134
135
|
}, {
|
|
135
136
|
default: S(() => [
|
|
136
|
-
c(
|
|
137
|
+
c(l, {
|
|
137
138
|
variant: "outlined",
|
|
138
139
|
class: "p-16"
|
|
139
140
|
}, {
|
|
140
141
|
default: S(() => {
|
|
141
142
|
var o;
|
|
142
143
|
return [
|
|
143
|
-
v("div", K, w(e(
|
|
144
|
+
v("div", K, w(e(m)("connect.campaign.common.campaign")), 1),
|
|
144
145
|
v("div", Q, w((o = e(h)) == null ? void 0 : o.name), 1)
|
|
145
146
|
];
|
|
146
147
|
}),
|
|
@@ -184,5 +185,5 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
184
185
|
}
|
|
185
186
|
});
|
|
186
187
|
export {
|
|
187
|
-
|
|
188
|
+
he as _
|
|
188
189
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as O, ref as p, computed as g, watch as T, onMounted as q, resolveComponent as x, openBlock as I, createBlock as G, unref as t, isRef as k, withCtx as z, createElementVNode as n, createVNode as s, toDisplayString as f, createElementBlock as H, createCommentVNode as K } from "vue";
|
|
2
2
|
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
3
3
|
import { _ as F } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
4
|
-
import { u as W } from "./loading-
|
|
4
|
+
import { u as W } from "./loading-D_rPJ-Yc.js";
|
|
5
5
|
import { u as X } from "./app-wDQR6dpb.js";
|
|
6
|
-
import { l as Y } from "./lodash-
|
|
7
|
-
import { m as Z } from "./index-
|
|
8
|
-
import { c as ee } from "./
|
|
6
|
+
import { l as Y } from "./lodash-BM976Z2I.js";
|
|
7
|
+
import { m as Z } from "./index-BzVTqlVH.js";
|
|
8
|
+
import { c as ee } from "./index-BmN_Qcw7.js";
|
|
9
9
|
const ae = { class: "space-y-16" }, te = { class: "fm-typo-en-body-md-600" }, oe = { class: "flex items-center justify-end" }, le = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as Le, ref as $, computed as j, onMounted as Ze, resolveComponent as N, openBlock as U, createBlock as te, withCtx as H, createElementVNode as p, createVNode as P, unref as c, isRef as Me, watch as At, createElementBlock as x, toDisplayString as B, Fragment as Z, renderList as Se, createTextVNode as X, createCommentVNode as we } from "vue";
|
|
2
2
|
import { h as Bt } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { Z as qe } from "./zod-
|
|
3
|
+
import { Z as qe } from "./zod-DVw24Ejy.js";
|
|
4
4
|
import { useDialog as et } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Pt } from "./loading-
|
|
5
|
+
import { u as Pt } from "./loading-D_rPJ-Yc.js";
|
|
6
6
|
import { u as Mt } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as Ie, l as tt } from "./business-
|
|
8
|
-
import { u as nt } from "./membership-
|
|
9
|
-
import { P as be } from "./index-
|
|
10
|
-
import {
|
|
11
|
-
import { _ as Tt } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { c as ot, p as Nt, f as re } from "./plugins-
|
|
13
|
-
import { p as Ut, r as Ft, _ as Lt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as st } from "./vue-i18n-
|
|
15
|
-
import { M as Rt,
|
|
7
|
+
import { u as Ie, l as tt } from "./business-BonuheMK.js";
|
|
8
|
+
import { u as nt } from "./membership-CIQCEKiL.js";
|
|
9
|
+
import { P as be } from "./index-D9f3AIaO.js";
|
|
10
|
+
import { m as St, b as It } from "./index-CrMBqkKk.js";
|
|
11
|
+
import { _ as Tt } from "./ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js";
|
|
12
|
+
import { c as ot, p as Nt, f as re } from "./plugins-696Z9K6A.js";
|
|
13
|
+
import { p as Ut, r as Ft, _ as Lt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js";
|
|
14
|
+
import { u as st } from "./vue-i18n-DowpocqN.js";
|
|
15
|
+
import { M as Rt, a as kt } from "./MessageInput.vue_vue_type_script_setup_true_lang-DCQ6Fse-.js";
|
|
16
16
|
import { useCoreStore as Dt } from "@feedmepos/mf-common";
|
|
17
17
|
import { useRouter as Vt } from "vue-router";
|
|
18
|
-
import { R as xt } from "./app-
|
|
19
|
-
import { m as ve } from "./index-
|
|
20
|
-
import { S as Ge } from "./index-
|
|
18
|
+
import { R as xt } from "./app-J8VIC7-H.js";
|
|
19
|
+
import { m as ve } from "./index-bGByr1XM.js";
|
|
20
|
+
import { S as Ge } from "./index-B14H1rLW.js";
|
|
21
21
|
import { o as $t } from "./objectId-dwaoBfJX.js";
|
|
22
22
|
import { a as zt } from "./object-BYyQ0PZp.js";
|
|
23
23
|
var oe = {}, Ht = function() {
|
|
@@ -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-D_rPJ-Yc.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 {
|
|
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-BonuheMK.js";
|
|
5
|
+
import { u as oe } from "./membership-CIQCEKiL.js";
|
|
6
|
+
import "./index-D9f3AIaO.js";
|
|
7
|
+
import { b as ae } from "./index-CrMBqkKk.js";
|
|
8
|
+
import "./index-CEDhjZzd.js";
|
|
9
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-BaAhKWhX.js";
|
|
10
|
+
import { f as D, p as ie } from "./plugins-696Z9K6A.js";
|
|
11
|
+
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DRT3N9SD.js";
|
|
12
|
+
import { u as ce } from "./vue-i18n-DowpocqN.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-bGByr1XM.js";
|
|
15
|
+
import { R as ue } from "./app-J8VIC7-H.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,230 @@
|
|
|
1
|
+
import { defineComponent as A, useSlots as L, ref as E, watch as M, computed as g, openBlock as t, createElementBlock as s, createElementVNode as c, normalizeClass as $, unref as e, toDisplayString as m, Fragment as x, createBlock as V, createCommentVNode as w, createVNode as B, renderSlot as U, onMounted as Y, withCtx as D, renderList as F, createStaticVNode as G } from "vue";
|
|
2
|
+
import { u as O } from "./loading-D_rPJ-Yc.js";
|
|
3
|
+
import { u as z } from "./business-BonuheMK.js";
|
|
4
|
+
import { components as k, useSnackbar as W } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as H } from "./vue-i18n-DowpocqN.js";
|
|
6
|
+
import { h as I } from "./moment-D7p2TMB-.js";
|
|
7
|
+
import { g as j } from "./google-C3S8u0mT.js";
|
|
8
|
+
import { R as P } from "./app-J8VIC7-H.js";
|
|
9
|
+
import { useRouter as q } from "vue-router";
|
|
10
|
+
import { r as T } from "./index-Bnk3vdb-.js";
|
|
11
|
+
const J = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, K = ["src"], Q = { class: "flex flex-col flex-1 gap-4 min-w-0" }, X = { class: "fm-typo-en-body-md-600 capitalize" }, Z = { class: "truncate" }, ee = { class: "truncate" }, ne = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "truncate"
|
|
14
|
+
}, te = {
|
|
15
|
+
key: 2,
|
|
16
|
+
class: "truncate"
|
|
17
|
+
}, oe = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
|
|
20
|
+
}, ce = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, se = /* @__PURE__ */ A({
|
|
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(a, { emit: h }) {
|
|
33
|
+
const y = a, p = h, { t: r } = H(), o = L(), f = E(null);
|
|
34
|
+
M(
|
|
35
|
+
() => y.syncing,
|
|
36
|
+
(i) => {
|
|
37
|
+
i && (f.value = /* @__PURE__ */ new Date());
|
|
38
|
+
},
|
|
39
|
+
{ immediate: !0 }
|
|
40
|
+
);
|
|
41
|
+
const b = g(
|
|
42
|
+
() => y.lastSyncTime ? I(y.lastSyncTime) : null
|
|
43
|
+
), C = g(() => {
|
|
44
|
+
var i;
|
|
45
|
+
return ((i = b.value) == null ? void 0 : i.fromNow()) ?? "";
|
|
46
|
+
}), S = g(
|
|
47
|
+
() => {
|
|
48
|
+
var i;
|
|
49
|
+
return ((i = b.value) == null ? void 0 : i.format("D MMM YYYY, HH:mm")) ?? "";
|
|
50
|
+
}
|
|
51
|
+
), N = g(
|
|
52
|
+
() => I(f.value ?? void 0).format("HH:mm")
|
|
53
|
+
), d = g(() => y.syncing ? "syncing" : b.value ? "synced" : "never");
|
|
54
|
+
return (i, u) => (t(), s("div", J, [
|
|
55
|
+
c("div", {
|
|
56
|
+
class: $(["flex items-center gap-12 p-16", e(o).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
57
|
+
}, [
|
|
58
|
+
c("img", {
|
|
59
|
+
src: a.icon,
|
|
60
|
+
class: "w-10 h-10 shrink-0"
|
|
61
|
+
}, null, 8, K),
|
|
62
|
+
c("div", Q, [
|
|
63
|
+
c("span", X, m(a.name), 1),
|
|
64
|
+
a.connected ? (t(), s("div", {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: $(["flex items-center gap-8 fm-typo-en-body-sm-400 truncate", {
|
|
67
|
+
"text-fm-color-typo-secondary": d.value !== "syncing",
|
|
68
|
+
"text-fm-color-typo-warning": d.value === "syncing"
|
|
69
|
+
}])
|
|
70
|
+
}, [
|
|
71
|
+
c("span", {
|
|
72
|
+
class: $(["w-8 h-8 rounded-full shrink-0", {
|
|
73
|
+
"bg-fm-color-system-success-400": d.value === "synced",
|
|
74
|
+
"bg-fm-color-primary": d.value === "syncing",
|
|
75
|
+
"bg-fm-color-neutral-gray-300": d.value === "never"
|
|
76
|
+
}])
|
|
77
|
+
}, null, 2),
|
|
78
|
+
d.value === "synced" ? (t(), s(x, { key: 0 }, [
|
|
79
|
+
c("span", Z, m(e(r)("connect.review.lastSynced", { relative: C.value })), 1),
|
|
80
|
+
u[3] || (u[3] = c("span", { class: "text-fm-color-neutral-gray-300" }, "·", -1)),
|
|
81
|
+
c("span", ee, m(S.value), 1)
|
|
82
|
+
], 64)) : d.value === "syncing" ? (t(), s("span", ne, m(e(r)("connect.review.syncingNow", { time: N.value })), 1)) : (t(), s("span", te, m(e(r)("connect.review.neverSynced")), 1))
|
|
83
|
+
], 2)) : (t(), s("span", oe, m(a.subtitle || e(r)("connect.review.notConnected")), 1))
|
|
84
|
+
]),
|
|
85
|
+
a.connected ? (t(), s(x, { key: 0 }, [
|
|
86
|
+
a.tokenExpired ? (t(), V(e(k).FmChip, {
|
|
87
|
+
key: 0,
|
|
88
|
+
label: e(r)("connect.review.expired"),
|
|
89
|
+
variant: "critical"
|
|
90
|
+
}, null, 8, ["label"])) : w("", !0),
|
|
91
|
+
B(e(k).FmButton, {
|
|
92
|
+
variant: "secondary",
|
|
93
|
+
"prepend-icon": "refresh",
|
|
94
|
+
label: e(r)("connect.review.reconnect"),
|
|
95
|
+
onClick: u[0] || (u[0] = (n) => p("connect"))
|
|
96
|
+
}, null, 8, ["label"]),
|
|
97
|
+
a.tokenExpired ? w("", !0) : (t(), V(e(k).FmButton, {
|
|
98
|
+
key: 1,
|
|
99
|
+
variant: "primary",
|
|
100
|
+
"prepend-icon": "sync",
|
|
101
|
+
label: e(r)("connect.review.sync"),
|
|
102
|
+
loading: a.syncing,
|
|
103
|
+
onClick: u[1] || (u[1] = (n) => p("sync"))
|
|
104
|
+
}, null, 8, ["label", "loading"]))
|
|
105
|
+
], 64)) : w("", !0)
|
|
106
|
+
], 2),
|
|
107
|
+
a.connected ? w("", !0) : (t(), s("div", {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: $(["flex items-center justify-between gap-12 p-16", e(o).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
110
|
+
}, [
|
|
111
|
+
c("span", ce, m(e(r)("connect.review.connectHint", { name: a.name })), 1),
|
|
112
|
+
B(e(k).FmButton, {
|
|
113
|
+
"prepend-icon": "add",
|
|
114
|
+
label: e(r)("connect.review.connect"),
|
|
115
|
+
onClick: u[2] || (u[2] = (n) => p("connect"))
|
|
116
|
+
}, null, 8, ["label"])
|
|
117
|
+
], 2)),
|
|
118
|
+
U(i.$slots, "default")
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
}), ae = { class: "p-24 flex flex-col gap-8" }, re = { class: "flex flex-col flex-1 min-w-0" }, le = { class: "fm-typo-en-body-lg-600 truncate" }, ie = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, ke = /* @__PURE__ */ A({
|
|
122
|
+
__name: "Settings",
|
|
123
|
+
setup(a) {
|
|
124
|
+
const { t: h } = H(), y = W(), p = q(), r = z(), o = E(null), f = E(!1);
|
|
125
|
+
E(!1);
|
|
126
|
+
const b = g(
|
|
127
|
+
() => {
|
|
128
|
+
var n;
|
|
129
|
+
return o.value ? ((n = o.value.google) == null ? void 0 : n.accessToken) === null : !1;
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
g(
|
|
133
|
+
() => {
|
|
134
|
+
var n;
|
|
135
|
+
return o.value ? ((n = o.value.facebook) == null ? void 0 : n.token) === null : !1;
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
function C(n) {
|
|
139
|
+
const l = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
|
|
140
|
+
return `${window.location.origin}${l}${n}`;
|
|
141
|
+
}
|
|
142
|
+
async function S() {
|
|
143
|
+
await O.minor(async () => {
|
|
144
|
+
o.value = await T.getSource();
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function N(n) {
|
|
148
|
+
var l;
|
|
149
|
+
return (l = r.locations.find(
|
|
150
|
+
(v) => v._id.toString() === n
|
|
151
|
+
)) == null ? void 0 : l.name;
|
|
152
|
+
}
|
|
153
|
+
function d() {
|
|
154
|
+
y.open({
|
|
155
|
+
message: h("connect.review.syncSuccess"),
|
|
156
|
+
type: "success"
|
|
157
|
+
}), p.push({ name: P["$connect-REVIEW_OVERVIEW"] });
|
|
158
|
+
}
|
|
159
|
+
async function i() {
|
|
160
|
+
var n, l;
|
|
161
|
+
f.value = !0;
|
|
162
|
+
try {
|
|
163
|
+
await T.syncGoogleReviews(), d();
|
|
164
|
+
} catch (v) {
|
|
165
|
+
if (await S(), ((l = (n = o.value) == null ? void 0 : n.google) == null ? void 0 : l.accessToken) === null) {
|
|
166
|
+
y.open({
|
|
167
|
+
message: h("connect.review.tokenExpired"),
|
|
168
|
+
type: "error"
|
|
169
|
+
});
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
throw v;
|
|
173
|
+
} finally {
|
|
174
|
+
f.value = !1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
async function u() {
|
|
178
|
+
const n = C("/review/google/callback"), { callbackUrl: l } = await T.getOauthUrl("google", n);
|
|
179
|
+
window.location.href = l;
|
|
180
|
+
}
|
|
181
|
+
return Y(() => {
|
|
182
|
+
S(), r.readLocations();
|
|
183
|
+
}), (n, l) => {
|
|
184
|
+
var v;
|
|
185
|
+
return t(), s("div", ae, [
|
|
186
|
+
e(o) ? (t(), s(x, { key: 0 }, [
|
|
187
|
+
B(se, {
|
|
188
|
+
icon: e(j),
|
|
189
|
+
name: "google",
|
|
190
|
+
connected: !!e(o).google,
|
|
191
|
+
syncing: e(f),
|
|
192
|
+
"token-expired": e(b),
|
|
193
|
+
"last-sync-time": (v = e(o).google) == null ? void 0 : v.lastSyncTime,
|
|
194
|
+
onConnect: u,
|
|
195
|
+
onSync: i
|
|
196
|
+
}, {
|
|
197
|
+
default: D(() => {
|
|
198
|
+
var _;
|
|
199
|
+
return [
|
|
200
|
+
(t(!0), s(x, null, F((_ = e(o).google) == null ? void 0 : _.locations, (R) => (t(), s("div", {
|
|
201
|
+
key: R.googleLocationName,
|
|
202
|
+
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
203
|
+
}, [
|
|
204
|
+
B(e(k).FmIcon, {
|
|
205
|
+
name: "location_on",
|
|
206
|
+
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
207
|
+
}),
|
|
208
|
+
c("div", re, [
|
|
209
|
+
c("span", le, m(R.displayName), 1),
|
|
210
|
+
c("span", ie, m(N(R.locationId)), 1)
|
|
211
|
+
])
|
|
212
|
+
]))), 128))
|
|
213
|
+
];
|
|
214
|
+
}),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["icon", "connected", "syncing", "token-expired", "last-sync-time"]),
|
|
217
|
+
w("", !0)
|
|
218
|
+
], 64)) : (t(), s(x, { key: 1 }, F(["google", "facebook"], (_) => c("div", {
|
|
219
|
+
key: _,
|
|
220
|
+
class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
|
|
221
|
+
}, [...l[0] || (l[0] = [
|
|
222
|
+
G('<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)
|
|
223
|
+
])])), 64))
|
|
224
|
+
]);
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
export {
|
|
229
|
+
ke as default
|
|
230
|
+
};
|